@xenia-martech/sdk-js 1.0.0-dev.28 → 1.0.0-dev.30
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/client/index.cjs +14 -0
- package/dist/client/index.cjs.map +1 -1
- package/dist/client/index.js +14 -0
- package/dist/client/index.js.map +1 -1
- package/dist/client/react/index.cjs +14 -0
- package/dist/client/react/index.cjs.map +1 -1
- package/dist/client/react/index.js +14 -0
- package/dist/client/react/index.js.map +1 -1
- package/dist/xenia-sdk.iife.js +14 -3
- package/dist/xenia-sdk.iife.js.map +1 -1
- package/package.json +1 -1
package/dist/client/index.js
CHANGED
|
@@ -1359,6 +1359,9 @@ function crossFadeReveal(outgoing, incoming) {
|
|
|
1359
1359
|
el.style.opacity = "0";
|
|
1360
1360
|
el.style.transform = revealTransform(0.94, -60);
|
|
1361
1361
|
});
|
|
1362
|
+
inContent.forEach((el) => {
|
|
1363
|
+
if (el instanceof HTMLElement) void el.offsetHeight;
|
|
1364
|
+
});
|
|
1362
1365
|
nextFrame(() => {
|
|
1363
1366
|
outContent.forEach((el) => {
|
|
1364
1367
|
if (!(el instanceof HTMLElement)) return;
|
|
@@ -1812,6 +1815,17 @@ var STYLES = `
|
|
|
1812
1815
|
border: 0; border-radius: var(--xenia-cta-radius, 8px); padding: var(--xenia-cta-padding, 8px 14px);
|
|
1813
1816
|
font-size: var(--xenia-cta-size, 14px); font-family: inherit; cursor: pointer; }
|
|
1814
1817
|
.xenia-wheel-spin:disabled { opacity: 0.6; cursor: default; }
|
|
1818
|
+
/* The spinner face and the win/loss screens are siblings toggled via the 'hidden' attribute \u2014
|
|
1819
|
+
during crossFadeReveal's ~320ms crossfade, BOTH the outgoing and incoming screen are visible
|
|
1820
|
+
(not hidden) at once, so without this they'd stack in normal block flow and roughly double
|
|
1821
|
+
this box's height for that window. Since .xenia-modal's flexbox re-centers on every height
|
|
1822
|
+
change, that briefly-doubled height yanks the whole card to a new position with ZERO
|
|
1823
|
+
animation \u2014 right before the scale-down transition starts animating smoothly from that
|
|
1824
|
+
already-jumped spot, reading as "not scaling from center". Grid-stacking every child into the
|
|
1825
|
+
same cell (sized to the tallest non-hidden one) makes the outgoing/incoming screens overlay in
|
|
1826
|
+
place instead of stacking, so there is no discrete height jump to correct for. */
|
|
1827
|
+
.xenia-spin-wheel { display: grid; }
|
|
1828
|
+
.xenia-spin-wheel > * { grid-area: 1 / 1; }
|
|
1815
1829
|
/* No animation/transform here \u2014 spin-wheel's win/loss screens are ALWAYS full
|
|
1816
1830
|
custom HTML now (winHtml/lossHtml), never this class's own generated icon/title/prize/cta
|
|
1817
1831
|
content (those sub-classes below are unreachable dead CSS, kept only for backwards-compat with
|