@getsupertab/supertab-js 3.48.2 → 3.50.0
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/dist/pkg/prod/{browser-ponyfill-DBgBTe5i.js → browser-ponyfill-v9oEh6a3.js} +1 -1
- package/dist/pkg/prod/{supertab-LVgJr5tH.js → index-B5HYqTpm.js} +10873 -10791
- package/dist/pkg/prod/{sentry-F4GheEBg.js → sentry-N2e3pghu.js} +1 -1
- package/dist/pkg/prod/supertab.d.ts +34 -11
- package/dist/pkg/prod/supertab.js +3 -2
- package/package.json +8 -11
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as Nu, T as Ou, P as Lu, a as Du, V as Pu } from "./
|
|
1
|
+
import { r as Nu, T as Ou, P as Lu, a as Du, V as Pu } from "./index-B5HYqTpm.js";
|
|
2
2
|
const T = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, F = globalThis, ft = "10.32.1";
|
|
3
3
|
function bt() {
|
|
4
4
|
return mr(F), F;
|
|
@@ -18,22 +18,22 @@ declare class ApiClient {
|
|
|
18
18
|
};
|
|
19
19
|
testMode: boolean;
|
|
20
20
|
total: {
|
|
21
|
-
amount: number;
|
|
22
21
|
currency: {
|
|
23
22
|
symbol: string;
|
|
24
23
|
code: string;
|
|
25
24
|
name: string;
|
|
26
25
|
baseUnit: number;
|
|
27
26
|
};
|
|
27
|
+
amount: number;
|
|
28
28
|
};
|
|
29
29
|
limit: {
|
|
30
|
-
amount: number;
|
|
31
30
|
currency: {
|
|
32
31
|
symbol: string;
|
|
33
32
|
code: string;
|
|
34
33
|
name: string;
|
|
35
34
|
baseUnit: number;
|
|
36
35
|
};
|
|
36
|
+
amount: number;
|
|
37
37
|
};
|
|
38
38
|
purchases: {
|
|
39
39
|
status: "completed" | "pending" | "abandoned";
|
|
@@ -44,13 +44,13 @@ declare class ApiClient {
|
|
|
44
44
|
completedAt: string | (string | null)[] | null;
|
|
45
45
|
description: string;
|
|
46
46
|
price: {
|
|
47
|
-
amount: number;
|
|
48
47
|
currency: {
|
|
49
48
|
symbol: string;
|
|
50
49
|
code: string;
|
|
51
50
|
name: string;
|
|
52
51
|
baseUnit: number;
|
|
53
52
|
};
|
|
53
|
+
amount: number;
|
|
54
54
|
};
|
|
55
55
|
entitlementStatus: null[] | {
|
|
56
56
|
contentKey: string;
|
|
@@ -72,13 +72,13 @@ declare class ApiClient {
|
|
|
72
72
|
completedAt: unknown[];
|
|
73
73
|
description: string;
|
|
74
74
|
price: {
|
|
75
|
-
amount: number;
|
|
76
75
|
currency: {
|
|
77
76
|
symbol: string;
|
|
78
77
|
code: string;
|
|
79
78
|
name: string;
|
|
80
79
|
baseUnit: number;
|
|
81
80
|
};
|
|
81
|
+
amount: number;
|
|
82
82
|
};
|
|
83
83
|
entitlementStatus: unknown[];
|
|
84
84
|
metadata?: unknown;
|
|
@@ -98,18 +98,17 @@ declare class ApiClient {
|
|
|
98
98
|
}>;
|
|
99
99
|
retrieveSite(): Promise<{
|
|
100
100
|
name: string;
|
|
101
|
-
testMode: boolean;
|
|
102
101
|
offerings: {
|
|
103
102
|
id: string;
|
|
104
103
|
description: string;
|
|
105
104
|
price: {
|
|
106
|
-
amount: number;
|
|
107
105
|
currency: {
|
|
108
106
|
symbol: string;
|
|
109
107
|
code: string;
|
|
110
108
|
name: string;
|
|
111
109
|
baseUnit: number;
|
|
112
110
|
};
|
|
111
|
+
amount: number;
|
|
113
112
|
};
|
|
114
113
|
entitlementDetails: {
|
|
115
114
|
contentKey: string;
|
|
@@ -122,20 +121,21 @@ declare class ApiClient {
|
|
|
122
121
|
}[] | null;
|
|
123
122
|
isPayNow: boolean;
|
|
124
123
|
}[];
|
|
124
|
+
testMode: boolean;
|
|
125
125
|
url: string;
|
|
126
126
|
logoUrl: string | (string | null)[] | null;
|
|
127
127
|
contentKeys: string[];
|
|
128
128
|
experiences: {
|
|
129
129
|
type: "basic_paygate" | "basic_supertab_button" | "rich_paygate" | "rich_supertab_button";
|
|
130
|
-
name: string;
|
|
131
130
|
id: string;
|
|
131
|
+
name: string;
|
|
132
132
|
offerings: string[];
|
|
133
133
|
configuration: {
|
|
134
134
|
onClose: string | (string | null)[] | null;
|
|
135
135
|
upsells: {
|
|
136
|
+
discount: number;
|
|
136
137
|
mainOffering: string;
|
|
137
138
|
upsellOffering: string;
|
|
138
|
-
discount: number;
|
|
139
139
|
}[];
|
|
140
140
|
uiConfig?: unknown;
|
|
141
141
|
};
|
|
@@ -152,13 +152,13 @@ declare class ApiClient {
|
|
|
152
152
|
completedAt: string | (string | null)[] | null;
|
|
153
153
|
description: string;
|
|
154
154
|
price: {
|
|
155
|
-
amount: number;
|
|
156
155
|
currency: {
|
|
157
156
|
symbol: string;
|
|
158
157
|
code: string;
|
|
159
158
|
name: string;
|
|
160
159
|
baseUnit: number;
|
|
161
160
|
};
|
|
161
|
+
amount: number;
|
|
162
162
|
};
|
|
163
163
|
entitlementStatus: null[] | {
|
|
164
164
|
contentKey: string;
|
|
@@ -183,13 +183,13 @@ declare class ApiClient {
|
|
|
183
183
|
completedAt: string | (string | null)[] | null;
|
|
184
184
|
description: string;
|
|
185
185
|
price: {
|
|
186
|
-
amount: number;
|
|
187
186
|
currency: {
|
|
188
187
|
symbol: string;
|
|
189
188
|
code: string;
|
|
190
189
|
name: string;
|
|
191
190
|
baseUnit: number;
|
|
192
191
|
};
|
|
192
|
+
amount: number;
|
|
193
193
|
};
|
|
194
194
|
entitlementStatus: null[] | {
|
|
195
195
|
contentKey: string;
|
|
@@ -219,13 +219,13 @@ declare class ApiClient {
|
|
|
219
219
|
completedAt: string | (string | null)[] | null;
|
|
220
220
|
description: string;
|
|
221
221
|
price: {
|
|
222
|
-
amount: number;
|
|
223
222
|
currency: {
|
|
224
223
|
symbol: string;
|
|
225
224
|
code: string;
|
|
226
225
|
name: string;
|
|
227
226
|
baseUnit: number;
|
|
228
227
|
};
|
|
228
|
+
amount: number;
|
|
229
229
|
};
|
|
230
230
|
entitlementStatus: null[] | {
|
|
231
231
|
contentKey: string;
|
|
@@ -422,6 +422,23 @@ declare type HTTPHeaders = {
|
|
|
422
422
|
[key: string]: string;
|
|
423
423
|
};
|
|
424
424
|
|
|
425
|
+
/**
|
|
426
|
+
* Loads the latest compatible version of Supertab.js from CDN.
|
|
427
|
+
* @returns A promise that resolves with an object containing the `Supertab` class.
|
|
428
|
+
* @example
|
|
429
|
+
* ```ts
|
|
430
|
+
* // Import the `loadSupertab` function.
|
|
431
|
+
* import { loadSupertab } from "@getsupertab/supertab-js";
|
|
432
|
+
*
|
|
433
|
+
* // Load the latest compatible version of Supertab.js from CDN.
|
|
434
|
+
* const { Supertab } = await loadSupertab();
|
|
435
|
+
*
|
|
436
|
+
* // Create a new instance of the `Supertab` class (use an actual client ID).
|
|
437
|
+
* const supertab = new Supertab({ clientId: "client.xyz" });
|
|
438
|
+
* ```
|
|
439
|
+
*/
|
|
440
|
+
export declare const loadSupertab: () => Promise<typeof SupertabModuleExports>;
|
|
441
|
+
|
|
425
442
|
declare interface Metadata {
|
|
426
443
|
[key: string]: string | number | boolean | null;
|
|
427
444
|
}
|
|
@@ -552,6 +569,12 @@ declare interface SupertabConfig {
|
|
|
552
569
|
mockEnabled?: boolean;
|
|
553
570
|
}
|
|
554
571
|
|
|
572
|
+
declare namespace SupertabModuleExports {
|
|
573
|
+
export {
|
|
574
|
+
Supertab
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
|
|
555
578
|
declare interface SystemProps {
|
|
556
579
|
apiBaseUrl: string;
|
|
557
580
|
ssoBaseUrl: string;
|
package/package.json
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"access": "public",
|
|
20
20
|
"registry": "https://registry.npmjs.org/"
|
|
21
21
|
},
|
|
22
|
-
"version": "3.
|
|
22
|
+
"version": "3.50.0",
|
|
23
23
|
"type": "module",
|
|
24
24
|
"scripts": {
|
|
25
25
|
"dev": "vite --config .vite/vite.dev.config.ts",
|
|
@@ -76,14 +76,9 @@
|
|
|
76
76
|
"@semantic-release/npm": "^13.1.2",
|
|
77
77
|
"@semantic-release/release-notes-generator": "^14.1.0",
|
|
78
78
|
"@sentry/react": "^10.32.1",
|
|
79
|
-
"@storybook/addon-
|
|
80
|
-
"@storybook/
|
|
81
|
-
"@storybook/
|
|
82
|
-
"@storybook/blocks": "^8.6.12",
|
|
83
|
-
"@storybook/builder-vite": "^8.3.6",
|
|
84
|
-
"@storybook/react": "^8.6.12",
|
|
85
|
-
"@storybook/react-vite": "^8.6.12",
|
|
86
|
-
"@storybook/test": "^8.6.12",
|
|
79
|
+
"@storybook/addon-links": "10.1.11",
|
|
80
|
+
"@storybook/builder-vite": "10.1.11",
|
|
81
|
+
"@storybook/react-vite": "10.1.11",
|
|
87
82
|
"@testing-library/react": "^16.3.0",
|
|
88
83
|
"@types/react": "^19.2.7",
|
|
89
84
|
"@types/react-dom": "^19.2.3",
|
|
@@ -107,7 +102,7 @@
|
|
|
107
102
|
"react-dom": "^18.3.1",
|
|
108
103
|
"react-i18next": "^16.5.1",
|
|
109
104
|
"semantic-release": "^25.0.2",
|
|
110
|
-
"storybook": "
|
|
105
|
+
"storybook": "10.1.11",
|
|
111
106
|
"tailwindcss": "^3.4.18",
|
|
112
107
|
"tailwindcss-radix": "^3.0.5",
|
|
113
108
|
"ts-case-convert": "^2.1.0",
|
|
@@ -118,6 +113,8 @@
|
|
|
118
113
|
"vite-tsconfig-paths": "^6.0.3",
|
|
119
114
|
"vitest": "^4.0.16",
|
|
120
115
|
"xstate": "^5.24.0",
|
|
121
|
-
"zod": "^3.24.4"
|
|
116
|
+
"zod": "^3.24.4",
|
|
117
|
+
"eslint-plugin-storybook": "10.1.11",
|
|
118
|
+
"@storybook/addon-docs": "10.1.11"
|
|
122
119
|
}
|
|
123
120
|
}
|