@capgo/capacitor-widget-kit 8.1.10 → 8.1.11

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 +18 -6
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,16 +1,28 @@
1
1
  # @capgo/capacitor-widget-kit
2
- <a href="https://capgo.app/"><img src="https://capgo.app/readme-banner.svg?repo=Cap-go/capacitor-widget-kit" alt="Capgo - Instant updates for Capacitor" /></a>
2
+
3
+ Build iOS Home Screen widgets, Lock Screen Live Activities and Android widgets from your Capacitor app, with SVG templates or fully native widget code.
4
+
5
+ <a href="https://capgo.app/?ref=plugin_widget_kit"><img src="https://capgo.app/readme-banner.svg?repo=Cap-go/capacitor-widget-kit" alt="Capgo - Instant updates for Capacitor" /></a>
3
6
 
4
7
  <div align="center">
5
- <h2><a href="https://capgo.app/?ref=plugin_widget_kit"> ➡️ Get Instant updates for your App with Capgo</a></h2>
6
- <h2><a href="https://capgo.app/consulting/?ref=plugin_widget_kit"> Missing a feature? We’ll build the plugin for you 💪</a></h2>
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_widget_kit">➡️ 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_widget_kit">Missing a feature? We'll build the plugin for you 💪</a></p>
7
12
  </div>
8
13
 
9
- Create Home Screen WidgetKit, ActivityKit, and Android widget experiences from Capacitor without forcing one rendering model.
14
+ <p align="center">
15
+ <img src="./.github/assets/readme-demo.webp" alt="Demo of capacitor-widget-kit showing a Lock Screen Live Activity" width="300" />
16
+ </p>
10
17
 
11
- ## Demo
18
+ ## Key features
12
19
 
13
- <img src="./docs/demo.webp" alt="Demo of capacitor-widget-kit in action" width="300" />
20
+ - **SVG template widgets**: `startTemplateWidget()` and `startTemplateActivity()` store layouts for the Home Screen, Lock Screen, Dynamic Island and Android.
21
+ - **Updates and actions**: `updateTemplateActivity()`, `endTemplateActivity()` and `performTemplateAction()` with declarative state patches and timers.
22
+ - **Interaction events**: `listTemplateEvents()` and `acknowledgeTemplateEvents()` process widget taps in your app.
23
+ - **Native widget sessions**: `startWidgetSession()`, `updateWidgetSession()` and `sendWidgetMessage()` share JSON state with Swift or Kotlin widget code.
24
+ - **Shared storage**: data lives in your App Group on iOS so widgets and the app stay in sync.
25
+ - **Platforms**: iOS, Android and Web. Live Activities need ActivityKit on iOS. Web stores state in `localStorage` for development.
14
26
 
15
27
  ## Widget Screenshots
16
28
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-widget-kit",
3
- "version": "8.1.10",
3
+ "version": "8.1.11",
4
4
  "private": false,
5
5
  "description": "Capacitor plugin for generic iOS Home Screen widgets, WidgetKit, and Live Activities using SVG templates, declarative actions, and shared App Group persistence.",
6
6
  "main": "dist/plugin.cjs.js",