@revenuecat/purchases-ui-js 3.4.2 → 3.5.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.
@@ -57,13 +57,13 @@
57
57
  overflow: "hidden",
58
58
  "background-color": mapColor(colorMode, color),
59
59
  "mask-image": `url(${webpUrl})`,
60
- "webkit-mask-image": `url(${webpUrl})`,
60
+ "-webkit-mask-image": `url(${webpUrl})`,
61
61
  "mask-size": "contain",
62
- "webkit-mask-size": "contain",
62
+ "-webkit-mask-size": "contain",
63
63
  "mask-position": "center",
64
- "webkit-mask-position": "center",
64
+ "-webkit-mask-position": "center",
65
65
  "mask-repeat": "no-repeat",
66
- "webkit-mask-repeat": "no-repeat",
66
+ "-webkit-mask-repeat": "no-repeat",
67
67
  }),
68
68
  );
69
69
  </script>
@@ -4,7 +4,6 @@
4
4
  } from "../paywall/Paywall.svelte";
5
5
  import type { WorkflowScreen } from "../../types/workflow";
6
6
  import type { VariableDictionary } from "../../types/variables";
7
- import { VARIABLES } from "../paywall/fixtures/variables";
8
7
  interface Props {
9
8
  paywallComponents: WorkflowScreen | null | undefined;
10
9
  selectedLocale?: string;
@@ -15,8 +14,10 @@
15
14
  packageId: string,
16
15
  actionId: string,
17
16
  ) => void | Promise<void>;
17
+ onBackClicked?: () => void;
18
18
  containerId?: string;
19
19
  maxContentWidth?: string;
20
+ variablesPerPackage?: Record<string, VariableDictionary>;
20
21
  }
21
22
  const {
22
23
  paywallComponents,
@@ -25,8 +26,10 @@
25
26
  globalVariables = {},
26
27
  onActionTriggered,
27
28
  onPurchaseClicked,
29
+ onBackClicked,
28
30
  containerId = "screen-container",
29
31
  maxContentWidth,
32
+ variablesPerPackage,
30
33
  }: Props = $props();
31
34
  </script>
32
35
 
@@ -36,12 +39,12 @@
36
39
  paywallData={paywallComponents}
37
40
  {selectedLocale}
38
41
  {uiConfig}
39
- variablesPerPackage={VARIABLES}
42
+ {variablesPerPackage}
40
43
  {globalVariables}
41
44
  {maxContentWidth}
42
45
  onNavigateToUrlClicked={() => {}}
43
46
  onVisitCustomerCenterClicked={() => {}}
44
- onBackClicked={() => {}}
47
+ {onBackClicked}
45
48
  onRestorePurchasesClicked={() => {}}
46
49
  onActionTriggered={(actionId: string) => {
47
50
  onActionTriggered?.(actionId);
@@ -8,8 +8,10 @@ interface Props {
8
8
  globalVariables?: VariableDictionary;
9
9
  onActionTriggered?: (actionId: string) => void;
10
10
  onPurchaseClicked?: (packageId: string, actionId: string) => void | Promise<void>;
11
+ onBackClicked?: () => void;
11
12
  containerId?: string;
12
13
  maxContentWidth?: string;
14
+ variablesPerPackage?: Record<string, VariableDictionary>;
13
15
  }
14
16
  declare const Screen: import("svelte").Component<Props, {}, "">;
15
17
  type Screen = ReturnType<typeof Screen>;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@revenuecat/purchases-ui-js",
3
3
  "description": "Web components for Paywalls. Powered by RevenueCat",
4
4
  "private": false,
5
- "version": "3.4.2",
5
+ "version": "3.5.1",
6
6
  "author": {
7
7
  "name": "RevenueCat, Inc."
8
8
  },
@@ -67,6 +67,13 @@
67
67
  "default": "./dist/web-components/index.js"
68
68
  }
69
69
  },
70
+ "engines": {
71
+ "node": "^22.18 || ^24.11"
72
+ },
73
+ "packageManager": "npm@11.7.0+sha512.c22099a6fff8d5b2286c2a09df5352b4858a7c0c716320f58989d60ad8b29ecf2ce6fdfe97ccb41c23ffb1272e1fa079f868487dd6b81d02a2a9e199c095a117",
74
+ "dependencies": {
75
+ "qrcode": "^1.5.4"
76
+ },
70
77
  "peerDependencies": {
71
78
  "svelte": "^5.12.0"
72
79
  },
@@ -112,12 +119,5 @@
112
119
  "prettier --write --ignore-unknown",
113
120
  "eslint --fix"
114
121
  ]
115
- },
116
- "engines": {
117
- "node": "^22.18"
118
- },
119
- "packageManager": "npm@11.5.2+sha512.aac1241cfc3f41dc38780d64295c6c6b917a41e24288b33519a7b11adfc5a54a5f881c642d7557215b6c70e01e55655ed7ba666300fd0238bc75fb17478afaf3",
120
- "dependencies": {
121
- "qrcode": "^1.5.4"
122
122
  }
123
123
  }