@capivv/capacitor-sdk 0.1.0 → 0.1.3

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 +22 -0
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -238,6 +238,28 @@ Get all active entitlements for the current user.
238
238
  | purchaseCompleted | Fired when a purchase completes |
239
239
  | purchaseFailed | Fired when a purchase fails |
240
240
 
241
+ ## Paywall Components
242
+
243
+ Pre-built paywall components are available as companion packages:
244
+
245
+ - **React**: `npm install @capivv/capacitor-react`
246
+ - **Vue**: `npm install @capivv/capacitor-vue`
247
+ - **Angular**: `npm install @capivv/capacitor-angular`
248
+
249
+ ```tsx
250
+ // React example
251
+ import { CapivvPaywall } from '@capivv/capacitor-react';
252
+
253
+ <CapivvPaywall
254
+ offeringId="default"
255
+ title="Unlock Premium"
256
+ features={['Unlimited access', 'No ads', 'Priority support']}
257
+ showRestoreButton={true}
258
+ onPurchaseComplete={(result) => console.log('Purchased!', result)}
259
+ onDismiss={() => setShowPaywall(false)}
260
+ />
261
+ ```
262
+
241
263
  ## Integration with Ionic
242
264
 
243
265
  ### Angular
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capivv/capacitor-sdk",
3
- "version": "0.1.0",
3
+ "version": "0.1.3",
4
4
  "description": "Capacitor plugin for Capivv - Revenue as Code for subscription management",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -71,7 +71,7 @@
71
71
  "vitest": "^4.0.17"
72
72
  },
73
73
  "peerDependencies": {
74
- "@capacitor/core": "^6.0.0"
74
+ "@capacitor/core": ">=6.0.0"
75
75
  },
76
76
  "prettier": "@ionic/prettier-config",
77
77
  "swiftlint": "@ionic/swiftlint-config",