@revenuecat/purchases-ui-js 3.6.2 → 3.7.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.
|
@@ -178,14 +178,7 @@
|
|
|
178
178
|
|
|
179
179
|
setPackageInfoContext(packageInfo);
|
|
180
180
|
|
|
181
|
-
const style = $derived(
|
|
182
|
-
css({
|
|
183
|
-
...mapBackground(colorMode, null, base.background),
|
|
184
|
-
...(maxContentWidth && {
|
|
185
|
-
"padding-inline": `max(0px, calc((100vw - ${maxContentWidth}) / 2))`,
|
|
186
|
-
}),
|
|
187
|
-
}),
|
|
188
|
-
);
|
|
181
|
+
const style = $derived(css(mapBackground(colorMode, null, base.background)));
|
|
189
182
|
|
|
190
183
|
onMount(() => {
|
|
191
184
|
registerFonts(uiConfig);
|
|
@@ -198,11 +191,17 @@
|
|
|
198
191
|
|
|
199
192
|
<svelte:boundary onerror={onError}>
|
|
200
193
|
<div class={paywallClass} {style}>
|
|
201
|
-
<
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
194
|
+
<div
|
|
195
|
+
class="paywall-content"
|
|
196
|
+
style={maxContentWidth
|
|
197
|
+
? `max-width: ${maxContentWidth}; margin-inline: auto;`
|
|
198
|
+
: ""}
|
|
199
|
+
>
|
|
200
|
+
<Stack {...stack} class="paywall-content-scroll" />
|
|
201
|
+
{#if sticky_footer}
|
|
202
|
+
<Footer {...sticky_footer} />
|
|
203
|
+
{/if}
|
|
204
|
+
</div>
|
|
206
205
|
</div>
|
|
207
206
|
|
|
208
207
|
{#if sheet}
|
|
@@ -227,9 +226,18 @@
|
|
|
227
226
|
filter: blur(10px) brightness(0.8);
|
|
228
227
|
transform: scale(1.045);
|
|
229
228
|
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.paywall-content {
|
|
232
|
+
width: 100%;
|
|
233
|
+
flex: 1;
|
|
234
|
+
display: flex;
|
|
235
|
+
flex-direction: column;
|
|
236
|
+
min-height: 0;
|
|
230
237
|
|
|
231
|
-
& > :global(
|
|
238
|
+
& > :global(.paywall-content-scroll) {
|
|
232
239
|
flex-grow: 1;
|
|
240
|
+
min-height: 0;
|
|
233
241
|
overflow-y: auto;
|
|
234
242
|
}
|
|
235
243
|
}
|
|
@@ -26,10 +26,11 @@
|
|
|
26
26
|
onclick?: () => void;
|
|
27
27
|
children?: Snippet;
|
|
28
28
|
style?: CSS;
|
|
29
|
+
class?: string;
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
const props: StackProps & MiscProps = $props();
|
|
32
|
-
const { onclick, children, style } = props;
|
|
33
|
+
const { onclick, children, style, class: classProp } = props;
|
|
33
34
|
|
|
34
35
|
const selectedState = getSelectedStateContext();
|
|
35
36
|
const hoverState = getHoverStateContext();
|
|
@@ -101,7 +102,7 @@
|
|
|
101
102
|
role={onclick !== undefined ? "button" : undefined}
|
|
102
103
|
{onclick}
|
|
103
104
|
style={stackStyle}
|
|
104
|
-
class="stack"
|
|
105
|
+
class={["stack", classProp].filter(Boolean).join(" ")}
|
|
105
106
|
>
|
|
106
107
|
{#if badge}
|
|
107
108
|
<div style={badgeStyle}>
|
|
@@ -42,7 +42,9 @@
|
|
|
42
42
|
{variablesPerPackage}
|
|
43
43
|
{globalVariables}
|
|
44
44
|
{maxContentWidth}
|
|
45
|
-
onNavigateToUrlClicked={() => {
|
|
45
|
+
onNavigateToUrlClicked={(url: string) => {
|
|
46
|
+
window.open(url, "_blank");
|
|
47
|
+
}}
|
|
46
48
|
onVisitCustomerCenterClicked={() => {}}
|
|
47
49
|
{onBackClicked}
|
|
48
50
|
onRestorePurchasesClicked={() => {}}
|