@farcaster/snap 1.15.2 → 1.15.3
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/react/index.js
CHANGED
|
@@ -225,7 +225,7 @@ export function SnapView({ snap, handlers, loading = false, appearance = "dark",
|
|
|
225
225
|
break;
|
|
226
226
|
}
|
|
227
227
|
}, [handlers]);
|
|
228
|
-
return (_jsxs("div", { style: { position: "relative", width: "100%" }, children: [showConfetti && _jsx(ConfettiOverlay, {}, confettiEpochRef.current), _jsx(SnapLoadingOverlay, { appearance: appearance, accentHex: accentHex, active: loading }), _jsx("div", { style: previewSurfaceStyle, children: _jsx(SnapPreviewAccentProvider, { pageAccent: snap.theme?.accent, appearance: appearance, children: _jsx(SnapCatalogView, { spec: spec, state: initialState, loading: false, onStateChange: (changes) => {
|
|
228
|
+
return (_jsxs("div", { style: { position: "relative", width: "100%" }, children: [showConfetti && _jsx(ConfettiOverlay, {}, `confetti-${confettiEpochRef.current}`), _jsx(SnapLoadingOverlay, { appearance: appearance, accentHex: accentHex, active: loading }), _jsx("div", { style: previewSurfaceStyle, children: _jsx(SnapPreviewAccentProvider, { pageAccent: snap.theme?.accent, appearance: appearance, children: _jsx(SnapCatalogView, { spec: spec, state: initialState, loading: false, onStateChange: (changes) => {
|
|
229
229
|
applyStatePaths(stateRef.current, changes);
|
|
230
230
|
}, onAction: handleAction }, pageKey) }) })] }));
|
|
231
231
|
}
|
|
@@ -149,7 +149,7 @@ function SnapViewInner({ snap, handlers, loading = false, }) {
|
|
|
149
149
|
{
|
|
150
150
|
backgroundColor: mode === "dark" ? "rgba(0,0,0,0.1)" : "rgba(255,255,255,0.2)",
|
|
151
151
|
},
|
|
152
|
-
], children: _jsx(ActivityIndicator, { size: "large", color: accentHex }) })) : null, showConfetti ? _jsx(ConfettiOverlay, {}, confettiEpochRef.current) : null, _jsx(SnapCatalogView, { spec: spec, state: initialState, loading: false, onStateChange: (changes) => {
|
|
152
|
+
], children: _jsx(ActivityIndicator, { size: "large", color: accentHex }) })) : null, showConfetti ? _jsx(ConfettiOverlay, {}, `confetti-${confettiEpochRef.current}`) : null, _jsx(SnapCatalogView, { spec: spec, state: initialState, loading: false, onStateChange: (changes) => {
|
|
153
153
|
applyStatePaths(stateRef.current, changes);
|
|
154
154
|
}, onAction: handleAction }, pageKey)] }));
|
|
155
155
|
}
|
package/package.json
CHANGED
package/src/react/index.tsx
CHANGED
|
@@ -356,7 +356,7 @@ export function SnapView({
|
|
|
356
356
|
|
|
357
357
|
return (
|
|
358
358
|
<div style={{ position: "relative", width: "100%" }}>
|
|
359
|
-
{showConfetti && <ConfettiOverlay key={confettiEpochRef.current} />}
|
|
359
|
+
{showConfetti && <ConfettiOverlay key={`confetti-${confettiEpochRef.current}`} />}
|
|
360
360
|
<SnapLoadingOverlay
|
|
361
361
|
appearance={appearance}
|
|
362
362
|
accentHex={accentHex}
|
|
@@ -241,7 +241,7 @@ function SnapViewInner({
|
|
|
241
241
|
<ActivityIndicator size="large" color={accentHex} />
|
|
242
242
|
</View>
|
|
243
243
|
) : null}
|
|
244
|
-
{showConfetti ? <ConfettiOverlay key={confettiEpochRef.current} /> : null}
|
|
244
|
+
{showConfetti ? <ConfettiOverlay key={`confetti-${confettiEpochRef.current}`} /> : null}
|
|
245
245
|
<SnapCatalogView
|
|
246
246
|
key={pageKey}
|
|
247
247
|
spec={spec}
|