@capacitor/toast 1.0.7 → 1.0.8
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 +8 -0
- package/README.md +5 -1
- package/dist/docs.json +1 -1
- package/dist/esm/definitions.d.ts +1 -1
- package/dist/esm/definitions.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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.8](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/toast@1.0.7...@capacitor/toast@1.0.8) (2022-02-10)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @capacitor/toast
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [1.0.7](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/toast@1.0.6...@capacitor/toast@1.0.7) (2022-01-19)
|
|
7
15
|
|
|
8
16
|
|
package/README.md
CHANGED
|
@@ -9,6 +9,10 @@ npm install @capacitor/toast
|
|
|
9
9
|
npx cap sync
|
|
10
10
|
```
|
|
11
11
|
|
|
12
|
+
## PWA Notes
|
|
13
|
+
|
|
14
|
+
[PWA Elements](https://capacitorjs.com/docs/web/pwa-elements) are required for the Toast plugin to work.
|
|
15
|
+
|
|
12
16
|
## Example
|
|
13
17
|
|
|
14
18
|
```typescript
|
|
@@ -59,6 +63,6 @@ Shows a Toast on the screen
|
|
|
59
63
|
| -------------- | ------------------------------------------ | ----------------------------------------------------------------- | --------------------- | ----- |
|
|
60
64
|
| **`text`** | <code>string</code> | Text to display on the Toast | | 1.0.0 |
|
|
61
65
|
| **`duration`** | <code>'short' \| 'long'</code> | Duration of the Toast, either 'short' (2000ms) or 'long' (3500ms) | <code>'short'</code> | 1.0.0 |
|
|
62
|
-
| **`position`** | <code>'top' \| 'center' \| 'bottom'</code> |
|
|
66
|
+
| **`position`** | <code>'top' \| 'center' \| 'bottom'</code> | Position of the Toast | <code>'bottom'</code> | 1.0.0 |
|
|
63
67
|
|
|
64
68
|
</docgen-api>
|
package/dist/docs.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["export interface ToastPlugin {\n /**\n * Shows a Toast on the screen\n *\n * @since 1.0.0\n */\n show(options: ShowOptions): Promise<void>;\n}\n\nexport interface ShowOptions {\n /**\n * Text to display on the Toast\n *\n * @since 1.0.0\n */\n text: string;\n\n /**\n * Duration of the Toast, either 'short' (2000ms) or 'long' (3500ms)\n *\n * @default 'short'\n * @since 1.0.0\n */\n duration?: 'short' | 'long';\n\n /**\n *
|
|
1
|
+
{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["export interface ToastPlugin {\n /**\n * Shows a Toast on the screen\n *\n * @since 1.0.0\n */\n show(options: ShowOptions): Promise<void>;\n}\n\nexport interface ShowOptions {\n /**\n * Text to display on the Toast\n *\n * @since 1.0.0\n */\n text: string;\n\n /**\n * Duration of the Toast, either 'short' (2000ms) or 'long' (3500ms)\n *\n * @default 'short'\n * @since 1.0.0\n */\n duration?: 'short' | 'long';\n\n /**\n * Position of the Toast\n *\n * @default 'bottom'\n * @since 1.0.0\n */\n position?: 'top' | 'center' | 'bottom';\n}\n\n/**\n * @deprecated Use `ToastShowOptions`.\n * @since 1.0.0\n */\nexport type ToastShowOptions = ShowOptions;\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capacitor/toast",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "The Toast API provides a notification pop up for displaying important information to a user. Just like real toast!",
|
|
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": "
|
|
82
|
+
"gitHead": "5bebfefe9bdca4d49f0e02dab74b02a692d3ed86"
|
|
83
83
|
}
|