@revenuecat/purchases-js 0.18.2 → 1.0.1
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/README.md +2 -6
- package/dist/Purchases.es.d.ts +22 -0
- package/dist/Purchases.es.js +5900 -4898
- package/dist/Purchases.umd.js +152 -90
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -82,13 +82,9 @@ Internal team members can find the required environment variables in 1Password.
|
|
|
82
82
|
### Option 2: Setup Manually
|
|
83
83
|
|
|
84
84
|
1. Create a test account in Stripe
|
|
85
|
-
2.
|
|
86
|
-
- Setup intent (read/write)
|
|
87
|
-
- Payment methods (read/write)
|
|
88
|
-
3. Create a `.env.development.local` file and set the following variables:
|
|
85
|
+
2. Create a `.env.development.local` file and set the following variables:
|
|
89
86
|
|
|
90
87
|
```bash
|
|
91
|
-
VITE_STORYBOOK_RESTRICTED_SECRET="sk_test_1234567890"
|
|
92
88
|
VITE_STORYBOOK_PUBLISHABLE_API_KEY="pk_test_1234567890"
|
|
93
89
|
VITE_STORYBOOK_ACCOUNT_ID="acct_1234567890"
|
|
94
90
|
```
|
|
@@ -119,7 +115,7 @@ npm run extract-api
|
|
|
119
115
|
```
|
|
120
116
|
|
|
121
117
|
This will update the files in `api-report` with the latest public API.
|
|
122
|
-
If it has
|
|
118
|
+
If it has uncommitted changes, CI tests will fail. Run this command and commit the changes if
|
|
123
119
|
they are expected.
|
|
124
120
|
|
|
125
121
|
# Publishing a new version
|
package/dist/Purchases.es.d.ts
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
import { PaywallData } from '@revenuecat/purchases-ui-js';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
* `BrandingAppearance` defines the appearance settings
|
|
6
|
+
* of an app's branding configuration.
|
|
7
|
+
*/
|
|
8
|
+
export declare interface BrandingAppearance {
|
|
9
|
+
color_buttons_primary: string;
|
|
10
|
+
color_accent: string;
|
|
11
|
+
color_error: string;
|
|
12
|
+
color_product_info_bg: string;
|
|
13
|
+
color_form_bg: string;
|
|
14
|
+
color_page_bg: string;
|
|
15
|
+
font: string;
|
|
16
|
+
shapes: "default" | "rectangle" | "rounded" | "pill";
|
|
17
|
+
show_product_description: boolean;
|
|
18
|
+
}
|
|
19
|
+
|
|
3
20
|
/**
|
|
4
21
|
* Type containing all information regarding the customer.
|
|
5
22
|
* @public
|
|
@@ -182,6 +199,11 @@ export declare interface FlagsConfig {
|
|
|
182
199
|
* @defaultValue true
|
|
183
200
|
*/
|
|
184
201
|
autoCollectUTMAsMetadata?: boolean;
|
|
202
|
+
/**
|
|
203
|
+
* If set to true, the SDK will automatically collect analytics events.
|
|
204
|
+
* @defaultValue true
|
|
205
|
+
*/
|
|
206
|
+
collectAnalyticsEvents?: boolean;
|
|
185
207
|
}
|
|
186
208
|
|
|
187
209
|
/**
|