@revenuecat/purchases-js 0.9.0 → 0.11.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/Purchases.es.d.ts +19 -1
- package/dist/Purchases.es.js +3404 -2723
- package/dist/Purchases.umd.js +32 -5
- package/dist/style.css +1 -1
- package/package.json +15 -13
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.rcb-modal-section.svelte-1bzqb13{padding:8px 0;display:flex}section.rcb-modal-section.svelte-1bzqb13{flex-grow:1}.rcb-modal-section.svelte-1bzqb13:last-of-type{padding:0}.rcb-pricing-info.svelte-
|
|
1
|
+
.rcb-modal-section.svelte-1bzqb13{padding:8px 0;display:flex}section.rcb-modal-section.svelte-1bzqb13{flex-grow:1}.rcb-modal-section.svelte-1bzqb13:last-of-type{padding:0}.rcb-pricing-info.svelte-1mdrqnh{display:flex;flex-direction:column;margin-top:102px;font-weight:500}.rcb-product-price.svelte-1mdrqnh{color:var(--rc-color-grey-text-dark);font-size:24px;margin:12px 0}.rcb-product-description.svelte-1mdrqnh{color:var(--rc-color-grey-text-dark);margin:0 0 12px}.rcb-product-price-after-trial.svelte-1mdrqnh{margin-bottom:12px}.rcb-product-details.svelte-1mdrqnh{color:var(--rc-color-grey-text-light);list-style-type:disc;list-style-position:inside;margin:0;padding:0}@media screen and (max-width: 960px){.rcb-pricing-info.svelte-1mdrqnh{margin-top:48px}}@-webkit-keyframes svelte-16h2a8k-rotating{0%{-webkit-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes svelte-16h2a8k-rotating{0%{-ms-transform:rotate(0deg);-moz-transform:rotate(0deg);-webkit-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}to{-ms-transform:rotate(360deg);-moz-transform:rotate(360deg);-webkit-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}div.svelte-16h2a8k{width:80px;height:80px;-webkit-animation:svelte-16h2a8k-rotating 2s ease-in-out infinite;-moz-animation:svelte-16h2a8k-rotating 2s ease-in-out infinite;-ms-animation:svelte-16h2a8k-rotating 2s ease-in-out infinite;-o-animation:svelte-16h2a8k-rotating 2s ease-in-out infinite;animation:svelte-16h2a8k-rotating 2s ease-in-out infinite}.rcb-modal-loader.svelte-l57ojl{width:100%;flex-grow:1;min-height:100%;display:flex;justify-content:center;align-items:center}button.svelte-2xwwo{border:none;border-radius:var(--rc-shape-input-button-border-radius);font-size:16px;cursor:pointer;height:56px;color:var(--rc-color-grey-text-dark);background-color:var(--rc-color-grey-ui-dark);display:flex;align-items:center;justify-content:center;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:transparent}button.svelte-2xwwo:focus,button.svelte-2xwwo:active{outline:2px solid var(--rc-color-focus)}button.intent-primary.svelte-2xwwo{background-color:var(--rc-color-primary);color:var(--rc-color-primary-text);font-size:16px}button.svelte-2xwwo:disabled{color:var(--rc-color-grey-text-light);background-color:var(--rc-color-grey-ui-dark)}button.intent-primary.svelte-2xwwo:disabled{color:var(--rc-color-grey-text-light);background-color:var(--rc-color-grey-ui-dark)}footer.svelte-1f9z0o8{display:flex;flex-direction:column}.column.svelte-6o8e90{display:flex;flex-direction:column;justify-content:flex-start;gap:var(--gap, "8px");flex-grow:1}.close-button.svelte-1hv9ta1{border:none;cursor:pointer;background-color:transparent;padding:0;height:24px;border-radius:50%}.close-button.svelte-1hv9ta1:focus{outline:2px solid var(--rc-color-focus)}.rcb-app-icon.svelte-44qpq9{width:40px;height:40px;border-radius:12px;box-shadow:0 1px 10px #0000001a;margin-right:16px}.rcb-app-icon-picture-container.svelte-44qpq9{height:40px}.rcb-app-icon.loading.svelte-44qpq9{background-color:gray}.app-title.svelte-10uf5fq{font-weight:500;margin:8px 0;font-size:16px}.rcb-header-layout__business-info.svelte-10uf5fq{display:flex;align-items:center}.rcb-post-purchase-header-layout.svelte-17puakv{display:flex;justify-content:space-between;align-items:center;width:100%;margin-top:-4px}.rcb-modal-message.svelte-idou50{width:100%;min-height:160px;display:flex;justify-content:center;align-items:center;flex-direction:column;text-align:center;margin-bottom:16px;margin-top:16px}.title.svelte-idou50{font-size:24px;line-height:1.25em}.subtitle.svelte-idou50{font-size:16px;line-height:1.25em;overflow-wrap:anywhere}.rcb-ui-asset-icon.svelte-7wiquz{width:96px;height:96px;margin:0 auto}.rcb-header-layout.svelte-1xe711j{display:flex;justify-content:space-between;align-items:center;width:100%;font-size:24px;margin:0;font-weight:500}div.svelte-1z0jca3{height:24px;width:24px}.processing.svelte-rjmul6{width:12px;aspect-ratio:1;border-radius:50%;animation:svelte-rjmul6-l5 1.5s infinite linear}@keyframes svelte-rjmul6-l5{0%{box-shadow:20px 0 #fff2,-20px 0 #fff2;background:#fff2}25%{box-shadow:20px 0 #fff2,-20px 0 #fff;background:#fff2}50%{box-shadow:20px 0 #fff2,-20px 0 #fff2;background:#fff}75%{box-shadow:20px 0 #fff,-20px 0 #fff2;background:#fff2}to{box-shadow:20px 0 #fff2,-20px 0 #fff2;background:#fff2}}.rcb-stripe-elements-container.svelte-8jsoa8{width:100%;min-height:320px;margin-top:32px;margin-bottom:24px}.container.svelte-yf01ty.svelte-yf01ty{display:flex;flex-direction:column;flex-grow:1}form.svelte-yf01ty.svelte-yf01ty{display:flex;flex-direction:column;min-height:100%;flex-grow:1}.form-container.svelte-yf01ty.svelte-yf01ty{display:flex;flex-direction:column;width:100%;margin-top:32px;margin-bottom:16px}.form-label.svelte-yf01ty.svelte-yf01ty{margin-top:8px;margin-bottom:8px;display:block;font-weight:500;line-height:22px}.form-input.error.svelte-yf01ty input.svelte-yf01ty{border-color:var(--rc-color-error)}.form-error.svelte-yf01ty.svelte-yf01ty{margin-top:4px;font-size:16px;line-height:20px;min-height:40px;color:var(--rc-color-error)}input.svelte-yf01ty.svelte-yf01ty{width:100%;box-sizing:border-box;border:2px solid var(--rc-color-grey-ui-dark);border-radius:var(--rc-shape-input-border-radius);font-size:16px;height:48px;padding:6px 14px;background:var(--rc-color-input-background);color:inherit}input.svelte-yf01ty.svelte-yf01ty:focus{outline:none;border:2px solid var(--rc-color-focus)}.rcb-modal-backdrop.svelte-17tslso{position:fixed;top:0;left:0;right:0;min-width:100%;width:100vw;width:100dvw;min-height:100%;height:100vh;height:100dvh;background-color:#282828bf;display:flex;flex-direction:column;justify-content:space-around;z-index:1000001}.rcb-modal-container.svelte-1fufj5b{width:100%}.rcb-modal-main.svelte-1fufj5b{box-sizing:border-box;border-radius:var(--rc-shape-modal-border-radius);background-color:var(--rc-color-background);color:var(--rc-color-grey-text-dark);padding:40px;flex-direction:column;display:flex}@media screen and (max-width: 960px){.rcb-modal-container.svelte-1fufj5b{width:calc(100% - 32px);min-width:300px;max-width:640px;margin:auto}.rcb-modal-main.svelte-1fufj5b{min-width:300px;max-width:640px;padding:32px}}div.svelte-1ny4y2s{background-color:var(--rc-color-warning);color:#000;font-size:10px;font-weight:700;text-transform:uppercase;padding:4px 10px;line-height:10px;border-radius:9px;margin:0 0 0 16px}.rcb-ui-layout.svelte-1iuls9l{width:100vw;margin-right:auto;display:flex;justify-content:center;align-items:flex-start;position:relative;padding:0 80px;box-sizing:border-box}@media screen and (max-width: 960px){.rcb-ui-layout.svelte-1iuls9l{flex-direction:column;align-items:center;justify-content:center;height:100%;min-width:100%}}@media screen and (max-width: 960px) and (max-height: 960px){.rcb-ui-layout.svelte-1iuls9l{overflow-y:scroll;justify-content:flex-start;padding:16px 0}}.rcb-ui-container.svelte-1sfb5if{color-scheme:none;font-size:16px;line-height:1.5em;font-weight:400;font-family:-apple-system,"system-ui",Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}.rcb-ui-aside.svelte-17dr902{margin-right:16px;flex:320px 1 0;max-width:480px}@media screen and (max-width: 960px){.rcb-ui-aside.svelte-17dr902{margin-right:0;margin-bottom:16px;min-width:100%;display:flex;flex-direction:column;align-items:center;flex:none;max-width:none}}.rcb-ui-main.svelte-vpgys{flex:480px 1 0;max-width:640px}@media screen and (max-width: 960px){.rcb-ui-main.svelte-vpgys{flex:none;max-width:none;min-width:100%}}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@revenuecat/purchases-js",
|
|
3
3
|
"description": "Web subscriptions made easy. Powered by RevenueCat",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.11.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|
|
@@ -39,9 +39,10 @@
|
|
|
39
39
|
"watch": "vite build --watch",
|
|
40
40
|
"build": "tsc && vite build",
|
|
41
41
|
"build:dev": "tsc && vite build --mode development",
|
|
42
|
+
"build:dev-watch": "tsc && vite build --mode development --watch",
|
|
42
43
|
"preview": "vite preview",
|
|
43
|
-
"lint": "
|
|
44
|
-
"format": "
|
|
44
|
+
"lint": "prettier --check .",
|
|
45
|
+
"format": "prettier --write .",
|
|
45
46
|
"test": "vitest",
|
|
46
47
|
"test:typeCheck": "tsc --project tsconfig.test.json",
|
|
47
48
|
"prettier": "prettier --write .",
|
|
@@ -53,15 +54,16 @@
|
|
|
53
54
|
},
|
|
54
55
|
"devDependencies": {
|
|
55
56
|
"@microsoft/api-extractor": "^7.43.0",
|
|
56
|
-
"@storybook/addon-essentials": "^
|
|
57
|
-
"@storybook/addon-interactions": "^
|
|
58
|
-
"@storybook/addon-links": "^
|
|
59
|
-
"@storybook/
|
|
60
|
-
"@storybook/
|
|
61
|
-
"@storybook/svelte
|
|
62
|
-
"@storybook/
|
|
57
|
+
"@storybook/addon-essentials": "^8.3.5",
|
|
58
|
+
"@storybook/addon-interactions": "^8.3.5",
|
|
59
|
+
"@storybook/addon-links": "^8.3.5",
|
|
60
|
+
"@storybook/addon-svelte-csf": "^4.1.7",
|
|
61
|
+
"@storybook/blocks": "^8.3.5",
|
|
62
|
+
"@storybook/svelte": "^8.3.5",
|
|
63
|
+
"@storybook/svelte-vite": "^8.3.5",
|
|
64
|
+
"@storybook/test": "^8.3.5",
|
|
63
65
|
"@sveltejs/vite-plugin-svelte": "^3.0.1",
|
|
64
|
-
"@tsconfig/svelte": "^5.0.
|
|
66
|
+
"@tsconfig/svelte": "^5.0.4",
|
|
65
67
|
"@typescript-eslint/eslint-plugin": "^6.10.0",
|
|
66
68
|
"eslint": "^8.53.0",
|
|
67
69
|
"eslint-config-prettier": "^9.0.0",
|
|
@@ -70,13 +72,13 @@
|
|
|
70
72
|
"eslint-plugin-n": "^16.2.0",
|
|
71
73
|
"eslint-plugin-prettier": "^5.0.1",
|
|
72
74
|
"eslint-plugin-promise": "^6.1.1",
|
|
73
|
-
"eslint-plugin-storybook": "^0.
|
|
75
|
+
"eslint-plugin-storybook": "^0.9.0",
|
|
74
76
|
"jsdom": "^22.1.0",
|
|
75
77
|
"msw": "^2.0.4",
|
|
76
78
|
"prettier": "^3.1.0",
|
|
77
79
|
"react": "^18.2.0",
|
|
78
80
|
"react-dom": "^18.2.0",
|
|
79
|
-
"storybook": "^
|
|
81
|
+
"storybook": "^8.3.5",
|
|
80
82
|
"svelte": "^4.2.7",
|
|
81
83
|
"svelte-check": "^3.6.3",
|
|
82
84
|
"svelte-stripe": "^1.1.2",
|