@capacitor/dialog 1.0.3 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,47 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.0.7](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/dialog@1.0.6...@capacitor/dialog@1.0.7) (2022-01-19)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * inline source code in esm map files ([#760](https://github.com/ionic-team/capacitor-plugins/issues/760)) ([a960489](https://github.com/ionic-team/capacitor-plugins/commit/a960489a19db0182b90d187a50deff9dfbe51038))
12
+
13
+
14
+
15
+
16
+
17
+ ## [1.0.6](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/dialog@1.0.5...@capacitor/dialog@1.0.6) (2021-11-03)
18
+
19
+ **Note:** Version bump only for package @capacitor/dialog
20
+
21
+
22
+
23
+
24
+
25
+ ## [1.0.5](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/dialog@1.0.4...@capacitor/dialog@1.0.5) (2021-10-14)
26
+
27
+
28
+ ### Bug Fixes
29
+
30
+ * remove postpublish scripts ([#656](https://github.com/ionic-team/capacitor-plugins/issues/656)) ([ed6ac49](https://github.com/ionic-team/capacitor-plugins/commit/ed6ac499ebf4a47525071ccbfc36c27503e11f60))
31
+
32
+
33
+
34
+
35
+
36
+ ## [1.0.4](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/dialog@1.0.3...@capacitor/dialog@1.0.4) (2021-10-13)
37
+
38
+
39
+ ### Bug Fixes
40
+
41
+ * correct addListeners links ([#655](https://github.com/ionic-team/capacitor-plugins/issues/655)) ([f9871e7](https://github.com/ionic-team/capacitor-plugins/commit/f9871e7bd53478addb21155e148829f550c0e457))
42
+
43
+
44
+
45
+
46
+
6
47
  ## [1.0.3](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/dialog@1.0.2...@capacitor/dialog@1.0.3) (2021-09-01)
7
48
 
8
49
  **Note:** Version bump only for package @capacitor/dialog
@@ -43,8 +43,8 @@ android {
43
43
 
44
44
  repositories {
45
45
  google()
46
- jcenter()
47
46
  mavenCentral()
47
+ jcenter()
48
48
  }
49
49
 
50
50
 
@@ -1 +1 @@
1
- {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["export interface AlertOptions {\n /**\n * Title of the dialog.\n *\n * @since 1.0.0\n */\n title: string;\n\n /**\n * Message to show on the dialog.\n *\n * @since 1.0.0\n */\n message: string;\n\n /**\n * Text to use on the action button.\n *\n * @default \"OK\"\n * @since 1.0.0\n */\n buttonTitle?: string;\n}\n\nexport interface PromptOptions {\n /**\n * Title of the dialog.\n *\n * @since 1.0.0\n */\n title: string;\n\n /**\n * Message to show on the dialog.\n *\n * @since 1.0.0\n */\n message: string;\n\n /**\n * Text to use on the positive action button.\n *\n * @default \"OK\"\n * @since 1.0.0\n */\n okButtonTitle?: string;\n\n /**\n * Text to use on the negative action button.\n *\n * @default \"Cancel\"\n * @since 1.0.0\n */\n cancelButtonTitle?: string;\n\n /**\n * Placeholder text for hints.\n *\n * @since 1.0.0\n */\n inputPlaceholder?: string;\n\n /**\n * Prepopulated text.\n *\n * @since 1.0.0\n */\n inputText?: string;\n}\n\nexport interface ConfirmOptions {\n /**\n * Title of the dialog.\n *\n * @since 1.0.0\n */\n title: string;\n\n /**\n * Message to show on the dialog.\n *\n * @since 1.0.0\n */\n message: string;\n\n /**\n * Text to use on the positive action button.\n *\n * @default \"OK\"\n * @since 1.0.0\n */\n okButtonTitle?: string;\n\n /**\n * Text to use on the negative action button.\n *\n * @default \"Cancel\"\n * @since 1.0.0\n */\n cancelButtonTitle?: string;\n}\n\nexport interface PromptResult {\n /**\n * Text entered on the prompt.\n *\n * @since 1.0.0\n */\n value: string;\n\n /**\n * Whether if the prompt was canceled or accepted.\n *\n * @since 1.0.0\n */\n cancelled: boolean;\n}\n\nexport interface ConfirmResult {\n /**\n * true if the positive button was clicked, false otherwise.\n *\n * @since 1.0.0\n */\n value: boolean;\n}\n\nexport interface DialogPlugin {\n /**\n * Show an alert dialog\n *\n * @since 1.0.0\n */\n alert(options: AlertOptions): Promise<void>;\n\n /**\n * Show a prompt dialog\n *\n * @since 1.0.0\n */\n prompt(options: PromptOptions): Promise<PromptResult>;\n\n /**\n * Show a confirmation dialog\n *\n * @since 1.0.0\n */\n confirm(options: ConfirmOptions): Promise<ConfirmResult>;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAIjD,MAAM,MAAM,GAAG,cAAc,CAAe,QAAQ,EAAE;IACpD,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,CAAC;CACxD,CAAC,CAAC;AAEH,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAIjD,MAAM,MAAM,GAAG,cAAc,CAAe,QAAQ,EAAE;IACpD,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,CAAC;CACxD,CAAC,CAAC;AAEH,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,CAAC","sourcesContent":["import { registerPlugin } from '@capacitor/core';\n\nimport type { DialogPlugin } from './definitions';\n\nconst Dialog = registerPlugin<DialogPlugin>('Dialog', {\n web: () => import('./web').then(m => new m.DialogWeb()),\n});\n\nexport * from './definitions';\nexport { Dialog };\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAW5C,MAAM,OAAO,SAAU,SAAQ,SAAS;IACtC,KAAK,CAAC,KAAK,CAAC,OAAqB;QAC/B,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAChC,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,OAAsB;QACjC,MAAM,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC;QACpE,OAAO;YACL,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE;YAC9B,SAAS,EAAE,GAAG,KAAK,IAAI;SACxB,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,OAAuB;QACnC,MAAM,GAAG,GAAG,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAC5C,OAAO;YACL,KAAK,EAAE,GAAG;SACX,CAAC;IACJ,CAAC;CACF"}
1
+ {"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAW5C,MAAM,OAAO,SAAU,SAAQ,SAAS;IACtC,KAAK,CAAC,KAAK,CAAC,OAAqB;QAC/B,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAChC,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,OAAsB;QACjC,MAAM,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC;QACpE,OAAO;YACL,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE;YAC9B,SAAS,EAAE,GAAG,KAAK,IAAI;SACxB,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,OAAuB;QACnC,MAAM,GAAG,GAAG,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAC5C,OAAO;YACL,KAAK,EAAE,GAAG;SACX,CAAC;IACJ,CAAC;CACF","sourcesContent":["import { WebPlugin } from '@capacitor/core';\n\nimport type {\n DialogPlugin,\n AlertOptions,\n PromptOptions,\n PromptResult,\n ConfirmOptions,\n ConfirmResult,\n} from './definitions';\n\nexport class DialogWeb extends WebPlugin implements DialogPlugin {\n async alert(options: AlertOptions): Promise<void> {\n window.alert(options.message);\n }\n\n async prompt(options: PromptOptions): Promise<PromptResult> {\n const val = window.prompt(options.message, options.inputText || '');\n return {\n value: val !== null ? val : '',\n cancelled: val === null,\n };\n }\n\n async confirm(options: ConfirmOptions): Promise<ConfirmResult> {\n const val = window.confirm(options.message);\n return {\n value: val,\n };\n }\n}\n"]}
package/dist/plugin.js CHANGED
@@ -35,5 +35,5 @@ var capacitorDialog = (function (exports, core) {
35
35
 
36
36
  return exports;
37
37
 
38
- }({}, capacitorExports));
38
+ })({}, capacitorExports);
39
39
  //# sourceMappingURL=plugin.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor/dialog",
3
- "version": "1.0.3",
3
+ "version": "1.0.7",
4
4
  "description": "The Dialog API provides methods for triggering native dialog windows for alerts, confirmations, and input prompts",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -33,7 +33,7 @@
33
33
  "verify:android": "cd android && ./gradlew clean build test && cd ..",
34
34
  "verify:web": "npm run build",
35
35
  "lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
36
- "fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- autocorrect --format",
36
+ "fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",
37
37
  "eslint": "eslint . --ext ts",
38
38
  "prettier": "prettier \"**/*.{css,html,ts,js,java}\"",
39
39
  "swiftlint": "node-swiftlint",
@@ -42,13 +42,12 @@
42
42
  "clean": "rimraf ./dist",
43
43
  "watch": "tsc --watch",
44
44
  "prepublishOnly": "npm run build",
45
- "postpublish": "npm run publish:cocoapod",
46
45
  "publish:cocoapod": "pod trunk push ./CapacitorDialog.podspec --allow-warnings"
47
46
  },
48
47
  "devDependencies": {
49
48
  "@capacitor/android": "^3.0.0",
50
49
  "@capacitor/core": "^3.0.0",
51
- "@capacitor/docgen": "0.0.17",
50
+ "@capacitor/docgen": "0.0.18",
52
51
  "@capacitor/ios": "^3.0.0",
53
52
  "@ionic/eslint-config": "^0.3.0",
54
53
  "@ionic/prettier-config": "~1.0.1",
@@ -80,5 +79,5 @@
80
79
  "publishConfig": {
81
80
  "access": "public"
82
81
  },
83
- "gitHead": "f0dcbb1413ba781714dfdc44f41c0ccab735b1e9"
82
+ "gitHead": "f18ee6482e1ec8e5fb0290d51f598397133af990"
84
83
  }