@capacitor/dialog
Advanced tools
Comparing version 0.1.1 to 0.2.0
@@ -6,2 +6,10 @@ # Change Log | ||
# [0.2.0](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/dialog@0.1.1...@capacitor/dialog@0.2.0) (2020-12-02) | ||
**Note:** Version bump only for package @capacitor/dialog | ||
## [0.1.1](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/dialog@0.1.0...@capacitor/dialog@0.1.1) (2020-10-30) | ||
@@ -8,0 +16,0 @@ |
@@ -1,6 +0,1 @@ | ||
declare module '@capacitor/core' { | ||
interface PluginRegistry { | ||
Dialog: DialogPlugin; | ||
} | ||
} | ||
export interface AlertOptions { | ||
@@ -7,0 +2,0 @@ /** |
@@ -1,10 +0,6 @@ | ||
import { Plugins, registerPlugin } from '@capacitor/core'; | ||
import { DialogWeb } from './web'; | ||
const implementations = { | ||
android: Plugins.Dialog, | ||
ios: Plugins.Dialog, | ||
web: new DialogWeb(), | ||
}; | ||
const Dialog = registerPlugin('Dialog', implementations).getImplementation(); | ||
import { registerPlugin } from '@capacitor/core'; | ||
const Dialog = registerPlugin('Dialog', { | ||
web: () => import('./web').then(m => new m.DialogWeb()), | ||
}); | ||
export { Dialog }; | ||
//# sourceMappingURL=index.js.map |
import { WebPlugin } from '@capacitor/core'; | ||
import type { DialogPlugin, AlertOptions, PromptOptions, PromptResult, ConfirmOptions, ConfirmResult } from './definitions'; | ||
export declare class DialogWeb extends WebPlugin implements DialogPlugin { | ||
constructor(); | ||
alert(options: AlertOptions): Promise<void>; | ||
@@ -6,0 +5,0 @@ prompt(options: PromptOptions): Promise<PromptResult>; |
import { WebPlugin } from '@capacitor/core'; | ||
export class DialogWeb extends WebPlugin { | ||
constructor() { | ||
super({ name: 'Dialog' }); | ||
} | ||
async alert(options) { | ||
@@ -7,0 +4,0 @@ window.alert(options.message); |
var capacitorDialog = (function (exports, core) { | ||
'use strict'; | ||
const Dialog = core.registerPlugin('Dialog', { | ||
web: () => Promise.resolve().then(function () { return web; }).then(m => new m.DialogWeb()), | ||
}); | ||
class DialogWeb extends core.WebPlugin { | ||
constructor() { | ||
super({ name: 'Dialog' }); | ||
} | ||
async alert(options) { | ||
@@ -26,8 +27,6 @@ window.alert(options.message); | ||
const implementations = { | ||
android: core.Plugins.Dialog, | ||
ios: core.Plugins.Dialog, | ||
web: new DialogWeb(), | ||
}; | ||
const Dialog = core.registerPlugin('Dialog', implementations).getImplementation(); | ||
var web = /*#__PURE__*/Object.freeze({ | ||
__proto__: null, | ||
DialogWeb: DialogWeb | ||
}); | ||
@@ -34,0 +33,0 @@ exports.Dialog = Dialog; |
{ | ||
"name": "@capacitor/dialog", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"description": "The Dialog API provides methods for triggering native dialog windows for alerts, confirmations, and input prompts", | ||
"main": "dist/plugin.js", | ||
"module": "dist/esm/index.js", | ||
"main": "dist/esm/index.js", | ||
"types": "dist/esm/index.d.ts", | ||
"unpkg": "dist/plugin.js", | ||
"files": [ | ||
"android/src/main/", | ||
"android/build.gradle", | ||
"dist/", | ||
"ios/Plugin/", | ||
"CapacitorDialog.podspec" | ||
], | ||
"author": "Ionic <hi@ionicframework.com>", | ||
@@ -39,13 +46,12 @@ "license": "MIT", | ||
"devDependencies": { | ||
"@capacitor/android": "^3.0.0-alpha.6", | ||
"@capacitor/core": "^3.0.0-alpha.6", | ||
"@capacitor/android": "^3.0.0-alpha.7", | ||
"@capacitor/core": "^3.0.0-alpha.7", | ||
"@capacitor/docgen": "^0.0.10", | ||
"@capacitor/ios": "^3.0.0-alpha.6", | ||
"@capacitor/ios": "^3.0.0-alpha.7", | ||
"@ionic/eslint-config": "^0.3.0", | ||
"@ionic/prettier-config": "^1.0.1", | ||
"@ionic/prettier-config": "~1.0.1", | ||
"@ionic/swiftlint-config": "^1.1.2", | ||
"@rollup/plugin-node-resolve": "^9.0.0", | ||
"eslint": "^7.11.0", | ||
"prettier": "^2.0.5", | ||
"prettier-plugin-java": "^0.8.3", | ||
"prettier": "~2.2.0", | ||
"prettier-plugin-java": "~1.0.0", | ||
"rimraf": "^3.0.0", | ||
@@ -75,3 +81,3 @@ "rollup": "^2.29.0", | ||
}, | ||
"gitHead": "3ab6d510236e3f595945c7de16ca731323cc295b" | ||
"gitHead": "78c1981920988ec84c17bbc61b1da1df9743571c" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
14
0
0
43340
25
539