@capacitor/action-sheet 1.0.6 → 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,17 @@
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/action-sheet@1.0.6...@capacitor/action-sheet@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
+
6
17
  ## [1.0.6](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/action-sheet@1.0.5...@capacitor/action-sheet@1.0.6) (2021-11-03)
7
18
 
8
19
  **Note:** Version bump only for package @capacitor/action-sheet
@@ -44,8 +44,8 @@ android {
44
44
 
45
45
  repositories {
46
46
  google()
47
- jcenter()
48
47
  mavenCentral()
48
+ jcenter()
49
49
  }
50
50
 
51
51
 
@@ -1 +1 @@
1
- {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"AAyBA,MAAM,CAAN,IAAY,sBAsBX;AAtBD,WAAY,sBAAsB;IAChC;;;;OAIG;IACH,6CAAmB,CAAA;IAEnB;;;;OAIG;IACH,qDAA2B,CAAA;IAE3B;;;;;OAKG;IACH,2CAAiB,CAAA;AACnB,CAAC,EAtBW,sBAAsB,KAAtB,sBAAsB,QAsBjC;AAkED;;;GAGG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,sBAAsB,CAAC"}
1
+ {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"AAyBA,MAAM,CAAN,IAAY,sBAsBX;AAtBD,WAAY,sBAAsB;IAChC;;;;OAIG;IACH,6CAAmB,CAAA;IAEnB;;;;OAIG;IACH,qDAA2B,CAAA;IAE3B;;;;;OAKG;IACH,2CAAiB,CAAA;AACnB,CAAC,EAtBW,sBAAsB,KAAtB,sBAAsB,QAsBjC;AAkED;;;GAGG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,sBAAsB,CAAC","sourcesContent":["export interface ShowActionsOptions {\n /**\n * The title of the Action Sheet.\n *\n * @since 1.0.0\n */\n title: string;\n\n /**\n * A message to show under the title.\n *\n * This option is only supported on iOS.\n *\n * @since 1.0.0\n */\n message?: string;\n\n /**\n * Options the user can choose from.\n *\n * @since 1.0.0\n */\n options: ActionSheetButton[];\n}\n\nexport enum ActionSheetButtonStyle {\n /**\n * Default style of the option.\n *\n * @since 1.0.0\n */\n Default = 'DEFAULT',\n\n /**\n * Style to use on destructive options.\n *\n * @since 1.0.0\n */\n Destructive = 'DESTRUCTIVE',\n\n /**\n * Style to use on the option that cancels the Action Sheet.\n * If used, should be on the latest availabe option.\n *\n * @since 1.0.0\n */\n Cancel = 'CANCEL',\n}\n\nexport interface ActionSheetButton {\n /**\n * The title of the option\n *\n * @since 1.0.0\n */\n title: string;\n\n /**\n * The style of the option\n *\n * This option is only supported on iOS.\n *\n * @since 1.0.0\n */\n style?: ActionSheetButtonStyle;\n\n /**\n * Icon for the option (ionicon naming convention)\n *\n * This option is only supported on Web.\n *\n * @since 1.0.0\n */\n icon?: string;\n}\n\nexport interface ShowActionsResult {\n /**\n * The index of the clicked option (Zero-based)\n *\n * @since 1.0.0\n */\n index: number;\n}\n\nexport interface ActionSheetPlugin {\n /**\n * Show an Action Sheet style modal with various options for the user\n * to select.\n *\n * @since 1.0.0\n */\n showActions(options: ShowActionsOptions): Promise<ShowActionsResult>;\n}\n\n/**\n * @deprecated Use `ShowActionsOptions`.\n * @since 1.0.0\n */\nexport type ActionSheetOptions = ShowActionsOptions;\n\n/**\n * @deprecated Use `ShowActionsResult`.\n * @since 1.0.0\n */\nexport type ActionSheetResult = ShowActionsResult;\n\n/**\n * @deprecated Use `ActionSheetButton`.\n * @since 1.0.0\n */\nexport type ActionSheetOption = ActionSheetButton;\n\n/**\n * @deprecated Use `ActionSheetButtonStyle`.\n * @since 1.0.0\n */\nexport const ActionSheetOptionStyle = ActionSheetButtonStyle;\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,WAAW,GAAG,cAAc,CAAoB,aAAa,EAAE;IACnE,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,cAAc,EAAE,CAAC;CAC7D,CAAC,CAAC;AAEH,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,WAAW,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,WAAW,GAAG,cAAc,CAAoB,aAAa,EAAE;IACnE,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,cAAc,EAAE,CAAC;CAC7D,CAAC,CAAC;AAEH,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,CAAC","sourcesContent":["import { registerPlugin } from '@capacitor/core';\n\nimport type { ActionSheetPlugin } from './definitions';\n\nconst ActionSheet = registerPlugin<ActionSheetPlugin>('ActionSheet', {\n web: () => import('./web').then(m => new m.ActionSheetWeb()),\n});\n\nexport * from './definitions';\nexport { ActionSheet };\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"web.js","sourceRoot":"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B,WAAW,GAAG,QAAQ,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC;gBACzD,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;aACxC;YACD,WAAW,CAAC,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC;YACnC,WAAW,CAAC,UAAU,GAAG,KAAK,CAAC;YAC/B,WAAW,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;YACtC,WAAW,CAAC,gBAAgB,CAAC,aAAa,EAAE,KAAK,EAAE,CAAM,EAAE,EAAE;gBAC3D,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC;gBAC3B,OAAO,CAAC;oBACN,KAAK,EAAE,SAAS;iBACjB,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import { WebPlugin } from '@capacitor/core';\n\nimport type {\n ActionSheetPlugin,\n ShowActionsResult,\n ShowActionsOptions,\n} from './definitions';\n\nexport class ActionSheetWeb extends WebPlugin implements ActionSheetPlugin {\n async showActions(options: ShowActionsOptions): Promise<ShowActionsResult> {\n return new Promise<ShowActionsResult>((resolve, _reject) => {\n let actionSheet: any = document.querySelector('pwa-action-sheet');\n if (!actionSheet) {\n actionSheet = document.createElement('pwa-action-sheet');\n document.body.appendChild(actionSheet);\n }\n actionSheet.header = options.title;\n actionSheet.cancelable = false;\n actionSheet.options = options.options;\n actionSheet.addEventListener('onSelection', async (e: any) => {\n const selection = e.detail;\n resolve({\n index: selection,\n });\n });\n });\n }\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor/action-sheet",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "The Action Sheet API provides access to native Action Sheets, which come up from the bottom of the screen and display actions a user can take.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -79,5 +79,5 @@
79
79
  "publishConfig": {
80
80
  "access": "public"
81
81
  },
82
- "gitHead": "64df93225736e9dfad336562f5e53e5a2243052b"
82
+ "gitHead": "f18ee6482e1ec8e5fb0290d51f598397133af990"
83
83
  }