@capgo/capacitor-pretty-toast 8.1.19 → 8.1.21

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.
Files changed (2) hide show
  1. package/README.md +21 -6
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,13 +1,28 @@
1
1
  # @capgo/capacitor-pretty-toast
2
2
 
3
- Native-first pretty toast notifications for Capacitor and the web.
3
+ Show beautiful toast notifications in your Capacitor app with native overlays on iOS and Android and a DOM renderer on web. Same `toast.*` API as react-native-pretty-toast.
4
4
 
5
- ## Demo
5
+ <a href="https://capgo.app/?ref=plugin_pretty_toast"><img src="https://capgo.app/readme-banner.svg?repo=Cap-go/capacitor-pretty-toast" alt="Capgo - Instant updates for Capacitor" /></a>
6
6
 
7
- <img
8
- src="./media/pretty-toast-external-device.webp"
9
- alt="Animated Pretty Toast demo on an external device"
10
- />
7
+ <div align="center">
8
+ <p><b>Capgo</b>: open-source live updates for Ionic and Capacitor apps. Ship OTA fixes and features instantly, without waiting for app store review.</p>
9
+ <h2><a href="https://capgo.app/register/?ref=plugin_pretty_toast">➡️ Get started for free</a></h2>
10
+ <p>14-day unlimited free trial. No credit card required</p>
11
+ <p><a href="https://capgo.app/consulting/?ref=plugin_pretty_toast">Missing a feature? We'll build the plugin for you 💪</a></p>
12
+ </div>
13
+
14
+ <p align="center">
15
+ <img src="https://raw.githubusercontent.com/Cap-go/capacitor-pretty-toast/main/.github/assets/readme-demo.webp" alt="Animated Pretty Toast demo on an external device" width="300" />
16
+ </p>
17
+
18
+ ## Key features
19
+
20
+ - **Variants**: `success()`, `error()`, `info()`, `warning()`, `loading()` and fully custom `show()`.
21
+ - **Promise toasts**: `promise()` shows loading, then success or error when your promise settles.
22
+ - **Live updates**: `update()` changes a toast in place, `dismiss()` and `dismissAll()` close them.
23
+ - **Queueing**: toasts queue by default, and `force` puts the new toast first and shows it once the current toast is dismissed.
24
+ - **Icons**: symbol icons and raw SVG through `icon`, and image URIs through `iconSource`.
25
+ - **Platforms**: iOS, Android and Web.
11
26
 
12
27
  This package keeps the familiar `toast.*` surface from `react-native-pretty-toast`, but ships as a Capacitor plugin with:
13
28
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-pretty-toast",
3
- "version": "8.1.19",
3
+ "version": "8.1.21",
4
4
  "description": "Native-first pretty toast notifications for Capacitor and the web",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",