@epam/ai-dial-celebrations 1.3.0-dev.28 → 1.3.0-dev.288
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/celebration-capabilities-DABcz0mO.js +27 -0
- package/components/LottieScene/LottieScene.d.ts +14 -0
- package/components/LottieScene/LottieScene.d.ts.map +1 -0
- package/components/StaticTriggerDecoration/StaticTriggerDecoration.d.ts +14 -0
- package/components/StaticTriggerDecoration/StaticTriggerDecoration.d.ts.map +1 -0
- package/constants/celebration-capabilities.d.ts +3 -0
- package/constants/celebration-capabilities.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenCandy.d.ts.map +1 -1
- package/halloween/components/Halloween/HalloweenMimic.d.ts.map +1 -1
- package/halloween/components/Halloween/HalloweenSpiderTheft.d.ts.map +1 -1
- package/halloween/components/Halloween/HalloweenTrain.d.ts.map +1 -1
- package/halloween/utils/halloween-bowling.d.ts.map +1 -1
- package/halloween/utils/halloween-candy-plan.d.ts.map +1 -1
- package/halloween/utils/halloween-footprint-plan.d.ts.map +1 -1
- package/halloween/utils/halloween-raven-targets.d.ts.map +1 -1
- package/halloween/utils/halloween-skeleton-plan.d.ts.map +1 -1
- package/halloween/utils/halloween-witch-plan.d.ts.map +1 -1
- package/halloween.js +3109 -3277
- package/hooks/useLottieSceneSession.d.ts +1 -1
- package/hooks/useLottieSceneSession.d.ts.map +1 -1
- package/index.css +3 -2
- package/index.d.ts +3 -0
- package/index.d.ts.map +1 -1
- package/index.js +63 -62
- package/{lottie_light-DVla0_7m.js → lottie_light-DUHSXGUj.js} +1003 -1056
- package/models/celebration-pack.d.ts +126 -0
- package/models/celebration-pack.d.ts.map +1 -0
- package/models/lottie-scene.d.ts +17 -4
- package/models/lottie-scene.d.ts.map +1 -1
- package/new-year/components/NewYear/NewYearSceneOverlay.d.ts.map +1 -1
- package/new-year/components/NewYearReindeerTakeoff/NewYearReindeerTakeoff.d.ts +5 -0
- package/new-year/components/NewYearReindeerTakeoff/NewYearReindeerTakeoff.d.ts.map +1 -0
- package/new-year/components/NewYearReindeerTakeoff/ReindeerStill.d.ts +4 -0
- package/new-year/components/NewYearReindeerTakeoff/ReindeerStill.d.ts.map +1 -0
- package/new-year/components/NewYearSnowmanDelivery/NewYearSnowmanDelivery.d.ts +5 -0
- package/new-year/components/NewYearSnowmanDelivery/NewYearSnowmanDelivery.d.ts.map +1 -0
- package/new-year/components/NewYearSnowmanDelivery/SnowmanDeliveryStill.d.ts +4 -0
- package/new-year/components/NewYearSnowmanDelivery/SnowmanDeliveryStill.d.ts.map +1 -0
- package/new-year/constants/labels.d.ts +2 -3
- package/new-year/constants/labels.d.ts.map +1 -1
- package/new-year/constants/new-year.d.ts +3 -3
- package/new-year/constants/new-year.d.ts.map +1 -1
- package/new-year/event.d.ts.map +1 -1
- package/new-year/models/labels.d.ts +4 -6
- package/new-year/models/labels.d.ts.map +1 -1
- package/new-year/types/new-year.d.ts +17 -6
- package/new-year/types/new-year.d.ts.map +1 -1
- package/new-year/utils/gift-wrapping-composition.d.ts.map +1 -1
- package/new-year/utils/penguin-star-art.d.ts.map +1 -1
- package/new-year/utils/penguin-star-composition.d.ts.map +1 -1
- package/new-year/utils/reindeer-animation.d.ts +5 -0
- package/new-year/utils/reindeer-animation.d.ts.map +1 -0
- package/new-year/utils/reindeer-art.d.ts +58 -0
- package/new-year/utils/reindeer-art.d.ts.map +1 -0
- package/new-year/utils/reindeer-composition.d.ts +66 -0
- package/new-year/utils/reindeer-composition.d.ts.map +1 -0
- package/new-year/utils/reindeer-physics.d.ts +60 -0
- package/new-year/utils/reindeer-physics.d.ts.map +1 -0
- package/new-year/utils/reindeer-scene.d.ts +4 -0
- package/new-year/utils/reindeer-scene.d.ts.map +1 -0
- package/new-year/utils/reindeer-targets.d.ts +28 -0
- package/new-year/utils/reindeer-targets.d.ts.map +1 -0
- package/new-year/utils/reindeer-text.d.ts +14 -0
- package/new-year/utils/reindeer-text.d.ts.map +1 -0
- package/new-year/utils/snowman-delivery-animation.d.ts +7 -0
- package/new-year/utils/snowman-delivery-animation.d.ts.map +1 -0
- package/new-year/utils/snowman-delivery-art.d.ts +96 -0
- package/new-year/utils/snowman-delivery-art.d.ts.map +1 -0
- package/new-year/utils/snowman-delivery-card.d.ts +12 -0
- package/new-year/utils/snowman-delivery-card.d.ts.map +1 -0
- package/new-year/utils/snowman-delivery-composition.d.ts +161 -0
- package/new-year/utils/snowman-delivery-composition.d.ts.map +1 -0
- package/new-year/utils/snowman-delivery-rig.d.ts +87 -0
- package/new-year/utils/snowman-delivery-rig.d.ts.map +1 -0
- package/new-year/utils/snowman-delivery-targets.d.ts +65 -0
- package/new-year/utils/snowman-delivery-targets.d.ts.map +1 -0
- package/new-year/utils/snowman-delivery-timeline.d.ts +47 -0
- package/new-year/utils/snowman-delivery-timeline.d.ts.map +1 -0
- package/new-year.js +3474 -1026
- package/package.json +9 -4
- package/packs/index.d.ts +6 -0
- package/packs/index.d.ts.map +1 -0
- package/packs.js +197 -0
- package/scene-targets-C5LEjDnN.js +180 -0
- package/types/celebration-pack.d.ts +82 -0
- package/types/celebration-pack.d.ts.map +1 -0
- package/useLottieSceneSession-FcSRnJ26.js +204 -0
- package/useReducedMotion-BWIeAFB_.js +8 -0
- package/utils/celebration-descriptor-event.d.ts +9 -0
- package/utils/celebration-descriptor-event.d.ts.map +1 -0
- package/utils/celebration-pack-scene.d.ts +19 -0
- package/utils/celebration-pack-scene.d.ts.map +1 -0
- package/utils/celebration-snapshots.d.ts.map +1 -1
- package/utils/celebration-variant.d.ts +7 -0
- package/utils/celebration-variant.d.ts.map +1 -0
- package/utils/lottie-scene-session.d.ts +1 -1
- package/utils/lottie-scene-session.d.ts.map +1 -1
- package/flying-characters-Czuzwf8T.js +0 -40
- package/new-year/components/NewYear/NewYearParticles.d.ts +0 -10
- package/new-year/components/NewYear/NewYearParticles.d.ts.map +0 -1
- package/new-year/components/NewYear/NewYearSleigh.d.ts +0 -3
- package/new-year/components/NewYear/NewYearSleigh.d.ts.map +0 -1
- package/new-year/components/NewYear/particles.d.ts +0 -5
- package/new-year/components/NewYear/particles.d.ts.map +0 -1
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import { useCallback as e, useEffect as t, useRef as n, useState as r } from "react";
|
|
2
|
+
//#region \0rolldown/runtime.js
|
|
3
|
+
var i = Object.create, a = Object.defineProperty, o = Object.getOwnPropertyDescriptor, s = Object.getOwnPropertyNames, c = Object.getPrototypeOf, l = Object.prototype.hasOwnProperty, u = (e, t) => () => (t || (e((t = { exports: {} }).exports, t, t.exports), e = null), t.exports), d = (e, t, n, r) => {
|
|
4
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = s(t), c = 0, u = i.length, d; c < u; c++) d = i[c], !l.call(e, d) && d !== n && a(e, d, {
|
|
5
|
+
get: ((e) => t[e]).bind(null, d),
|
|
6
|
+
enumerable: !(r = o(t, d)) || r.enumerable
|
|
7
|
+
});
|
|
8
|
+
return e;
|
|
9
|
+
}, f = (e, t, n) => (n = e == null ? {} : i(c(e)), d(t || !e || !e.__esModule || !l.call(e, "default") ? a(n, "default", {
|
|
10
|
+
value: e,
|
|
11
|
+
enumerable: !0
|
|
12
|
+
}) : n, e)), p = /* @__PURE__ */ function(e) {
|
|
13
|
+
return e.Idle = "idle", e.Loading = "loading", e.Prepared = "prepared", e.Initializing = "initializing", e.Playing = "playing", e.Completed = "completed", e.Cancelled = "cancelled", e.Failed = "failed", e;
|
|
14
|
+
}({}), m = /* @__PURE__ */ function(e) {
|
|
15
|
+
return e.Completed = "completed", e.Cancelled = "cancelled", e.Failed = "failed", e;
|
|
16
|
+
}({}), h = /* @__PURE__ */ function(e) {
|
|
17
|
+
return e.Transferred = "transferred", e.Shared = "shared", e;
|
|
18
|
+
}({}), g = /* @__PURE__ */ function(e) {
|
|
19
|
+
return e.Idle = "idle", e.Loading = "loading", e.Prepared = "prepared", e.Ended = "ended", e.Failed = "failed", e;
|
|
20
|
+
}({}), _ = async () => {
|
|
21
|
+
let { default: e } = await import("./lottie_light-DUHSXGUj.js").then((e) => /* @__PURE__ */ f(e.default, 1));
|
|
22
|
+
return e;
|
|
23
|
+
}, v = (e, t, n) => {
|
|
24
|
+
let r = e.loadAnimation({
|
|
25
|
+
container: t,
|
|
26
|
+
renderer: "svg",
|
|
27
|
+
loop: !1,
|
|
28
|
+
autoplay: !1,
|
|
29
|
+
animationData: n,
|
|
30
|
+
rendererSettings: {
|
|
31
|
+
progressiveLoad: !1,
|
|
32
|
+
preserveAspectRatio: "xMidYMid meet",
|
|
33
|
+
focusable: !1
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
try {
|
|
37
|
+
r.setSubframe(!0);
|
|
38
|
+
} catch (e) {
|
|
39
|
+
try {
|
|
40
|
+
r.destroy();
|
|
41
|
+
} catch {
|
|
42
|
+
t.replaceChildren();
|
|
43
|
+
}
|
|
44
|
+
throw e;
|
|
45
|
+
}
|
|
46
|
+
return r;
|
|
47
|
+
}, y = {
|
|
48
|
+
[m.Completed]: p.Completed,
|
|
49
|
+
[m.Cancelled]: p.Cancelled,
|
|
50
|
+
[m.Failed]: p.Failed
|
|
51
|
+
}, b = (e) => e === p.Completed || e === p.Cancelled || e === p.Failed, x = (e) => {
|
|
52
|
+
try {
|
|
53
|
+
e();
|
|
54
|
+
} catch {}
|
|
55
|
+
}, S = ({ playback: e, prepare: t, onPrepared: n, onTerminal: r, loadPlayer: i = _, loadData: a }) => {
|
|
56
|
+
let o = p.Idle, s = !1, c = !1, l, u, d, f, g, S, C, w, T, E = [], D = (e) => {
|
|
57
|
+
if (b(o)) return;
|
|
58
|
+
o = y[e];
|
|
59
|
+
let t = d;
|
|
60
|
+
t && x(() => {
|
|
61
|
+
t.style.visibility = "hidden";
|
|
62
|
+
}), clearTimeout(C), clearTimeout(w), clearTimeout(T);
|
|
63
|
+
let n = S;
|
|
64
|
+
S = void 0, n && x(() => n.abort()), E.splice(0).reverse().forEach(x);
|
|
65
|
+
let i = f;
|
|
66
|
+
if (i) {
|
|
67
|
+
x(() => i.removeEventListener("DOMLoaded", M)), x(() => i.removeEventListener("enterFrame", j)), x(() => i.removeEventListener("complete", O)), x(() => i.removeEventListener("data_failed", k)), x(() => i.removeEventListener("error", k));
|
|
68
|
+
try {
|
|
69
|
+
i.destroy();
|
|
70
|
+
} catch {
|
|
71
|
+
x(() => t?.replaceChildren());
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
c || r(e);
|
|
75
|
+
}, O = () => D(m.Completed), k = () => D(m.Failed), A = () => D(m.Cancelled), j = () => {
|
|
76
|
+
let t = f, n = e.onPlaybackStarted;
|
|
77
|
+
if (o !== p.Playing || !t || !g || (t.removeEventListener("enterFrame", j), !n)) return;
|
|
78
|
+
let r = document.timeline?.currentTime, i = typeof r == "number" ? r : performance.now();
|
|
79
|
+
try {
|
|
80
|
+
n({
|
|
81
|
+
...g,
|
|
82
|
+
timelineZeroMs: i - t.currentFrame / t.frameRate * 1e3
|
|
83
|
+
});
|
|
84
|
+
} catch {
|
|
85
|
+
k();
|
|
86
|
+
}
|
|
87
|
+
}, M = () => {
|
|
88
|
+
if (o !== p.Initializing || !f) return;
|
|
89
|
+
if (!f.isLoaded) {
|
|
90
|
+
k();
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
let t = e.isRendererAccepted;
|
|
94
|
+
if (t && d) {
|
|
95
|
+
let e = !1;
|
|
96
|
+
try {
|
|
97
|
+
e = t(d);
|
|
98
|
+
} catch {}
|
|
99
|
+
if (!e) {
|
|
100
|
+
k();
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
o = p.Playing, clearTimeout(w), f.removeEventListener("DOMLoaded", M), T = setTimeout(O, e.timings.playbackMs), e.onPlaybackStarted && f.addEventListener("enterFrame", j);
|
|
105
|
+
try {
|
|
106
|
+
f.play();
|
|
107
|
+
} catch {
|
|
108
|
+
k();
|
|
109
|
+
}
|
|
110
|
+
}, N = (e) => {
|
|
111
|
+
b(o) ? x(e) : E.push(e);
|
|
112
|
+
}, P = async () => {
|
|
113
|
+
if (await Promise.resolve(), b(o)) return;
|
|
114
|
+
if (document.hidden) {
|
|
115
|
+
A();
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
o = p.Loading, C = setTimeout(k, e.timings.loadTimeoutMs), S = a ? new AbortController() : void 0;
|
|
119
|
+
let r = S?.signal, s, c;
|
|
120
|
+
try {
|
|
121
|
+
[s, c] = await Promise.all([i(), a && r ? a(r) : void 0]);
|
|
122
|
+
} catch {
|
|
123
|
+
o === p.Loading && k();
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
if (o === p.Loading) {
|
|
127
|
+
if (S = void 0, clearTimeout(C), document.hidden) A();
|
|
128
|
+
else try {
|
|
129
|
+
u = { preparation: t(s, c) }, l = s, o = p.Prepared, n(u.preparation);
|
|
130
|
+
} catch {
|
|
131
|
+
k();
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
return {
|
|
136
|
+
get state() {
|
|
137
|
+
return o;
|
|
138
|
+
},
|
|
139
|
+
start: () => {
|
|
140
|
+
s || (s = !0, P());
|
|
141
|
+
},
|
|
142
|
+
attach: (t) => {
|
|
143
|
+
if (o !== p.Prepared || !l || !u) return;
|
|
144
|
+
let { preparation: n } = u;
|
|
145
|
+
d = t, o = p.Initializing;
|
|
146
|
+
try {
|
|
147
|
+
let r = e.getAnimationData(n), i = e.ownership === h.Shared ? JSON.parse(JSON.stringify(r)) : r;
|
|
148
|
+
f = v(l, t, i), f.addEventListener("DOMLoaded", M), f.addEventListener("complete", O), f.addEventListener("data_failed", k), f.addEventListener("error", k), g = {
|
|
149
|
+
preparation: n,
|
|
150
|
+
host: t,
|
|
151
|
+
addDisposer: N,
|
|
152
|
+
cancel: A
|
|
153
|
+
}, e.onAnimationCreated?.(g), o === p.Initializing && (w = setTimeout(k, e.timings.readyTimeoutMs));
|
|
154
|
+
} catch {
|
|
155
|
+
k();
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
cancel: A,
|
|
159
|
+
dispose: () => {
|
|
160
|
+
c = !0, A();
|
|
161
|
+
}
|
|
162
|
+
};
|
|
163
|
+
}, C = ({ enabled: i, playback: a, prepare: o, loadData: s }) => {
|
|
164
|
+
let [c, l] = r(null), [u, d] = r(!1), [f, p] = r(!1), h = n(null), _ = n(null), v = n(o);
|
|
165
|
+
v.current = o;
|
|
166
|
+
let y = n(a);
|
|
167
|
+
y.current = a;
|
|
168
|
+
let b = n(s);
|
|
169
|
+
b.current = s, t(() => {
|
|
170
|
+
if (!i || u || f) return;
|
|
171
|
+
let e = b.current, t = S({
|
|
172
|
+
playback: y.current,
|
|
173
|
+
prepare: (e, t) => v.current(e, t),
|
|
174
|
+
loadData: e ? (t) => e(t) : void 0,
|
|
175
|
+
onPrepared: (e) => l({
|
|
176
|
+
session: t,
|
|
177
|
+
preparation: e
|
|
178
|
+
}),
|
|
179
|
+
onTerminal: (e) => {
|
|
180
|
+
e === m.Failed ? p(!0) : d(!0);
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
return _.current = t, t.start(), () => {
|
|
184
|
+
t.dispose(), _.current === t && (_.current = null), l((e) => e?.session === t ? null : e);
|
|
185
|
+
};
|
|
186
|
+
}, [
|
|
187
|
+
i,
|
|
188
|
+
u,
|
|
189
|
+
f
|
|
190
|
+
]), t(() => {
|
|
191
|
+
c && h.current && c.session.attach(h.current);
|
|
192
|
+
}, [c]);
|
|
193
|
+
let x = e(() => {
|
|
194
|
+
h.current && (h.current.style.visibility = "hidden"), _.current?.cancel(), d(!0);
|
|
195
|
+
}, []), C = g.Idle;
|
|
196
|
+
return u ? C = g.Ended : f ? C = g.Failed : c ? C = g.Prepared : i && (C = g.Loading), {
|
|
197
|
+
phase: C,
|
|
198
|
+
preparation: c?.preparation ?? null,
|
|
199
|
+
hostRef: h,
|
|
200
|
+
cancel: x
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
//#endregion
|
|
204
|
+
export { g as a, h as i, v as n, u as o, _ as r, C as t };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { useSyncExternalStore as e } from "react";
|
|
2
|
+
//#region src/hooks/useReducedMotion.ts
|
|
3
|
+
var t = "(prefers-reduced-motion: reduce)", n = (e) => {
|
|
4
|
+
let n = window.matchMedia?.(t);
|
|
5
|
+
return n?.addEventListener("change", e), () => n?.removeEventListener("change", e);
|
|
6
|
+
}, r = () => window.matchMedia?.(t).matches ?? !1, i = () => e(n, r, () => !0);
|
|
7
|
+
//#endregion
|
|
8
|
+
export { i as t };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CelebrationEvent, CelebrationScene } from '../models/celebration';
|
|
2
|
+
import { CelebrationAssetLoaders, CelebrationPackDescriptor, CelebrationSceneDescriptor, CelebrationVariantContext } from '../models/celebration-pack';
|
|
3
|
+
/** Returns a scene that plays the descriptor through `LottieScene` and lives for `timing.maxLifetimeMs`. */
|
|
4
|
+
export declare const createCelebrationSceneFromDescriptor: (descriptor: CelebrationSceneDescriptor, loaders: CelebrationAssetLoaders, context: CelebrationVariantContext) => CelebrationScene;
|
|
5
|
+
/** Returns a copy of `event` whose existing scenes are swapped for same-id replacements, keeping their `labelId`. */
|
|
6
|
+
export declare const replaceCelebrationScenes: (event: CelebrationEvent, scenes: readonly CelebrationScene[]) => CelebrationEvent;
|
|
7
|
+
/** Returns the event an external-only pack describes; throws when the descriptor has no `event` block. */
|
|
8
|
+
export declare const createCelebrationEventFromDescriptor: (descriptor: CelebrationPackDescriptor, loaders: CelebrationAssetLoaders, context: CelebrationVariantContext) => CelebrationEvent;
|
|
9
|
+
//# sourceMappingURL=celebration-descriptor-event.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"celebration-descriptor-event.d.ts","sourceRoot":"","sources":["../../src/utils/celebration-descriptor-event.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAEV,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EACV,uBAAuB,EACvB,yBAAyB,EACzB,0BAA0B,EAC1B,yBAAyB,EAC1B,MAAM,4BAA4B,CAAC;AAEpC,4GAA4G;AAC5G,eAAO,MAAM,oCAAoC,GAC/C,YAAY,0BAA0B,EACtC,SAAS,uBAAuB,EAChC,SAAS,yBAAyB,KACjC,gBASF,CAAC;AAEF,qHAAqH;AACrH,eAAO,MAAM,wBAAwB,GACnC,OAAO,gBAAgB,EACvB,QAAQ,SAAS,gBAAgB,EAAE,KAClC,gBASF,CAAC;AAiBF,0GAA0G;AAC1G,eAAO,MAAM,oCAAoC,GAC/C,YAAY,yBAAyB,EACrC,SAAS,uBAAuB,EAChC,SAAS,yBAAyB,KACjC,gBA2BF,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CelebrationSceneDescriptor, CelebrationStageAlignment, CelebrationTextDirection } from '../models/celebration-pack';
|
|
2
|
+
/** Most SVG elements a generated pack renderer may hold before it counts as a failure. */
|
|
3
|
+
export declare const MAX_PACK_SCENE_ELEMENTS = 800;
|
|
4
|
+
/** A pack animation ready for the player, with its stage width-to-height ratio. */
|
|
5
|
+
export interface PackScenePreparation {
|
|
6
|
+
/** The validated Lottie JSON. */
|
|
7
|
+
data: object;
|
|
8
|
+
/** Composition width divided by its height. */
|
|
9
|
+
aspectRatio: number;
|
|
10
|
+
}
|
|
11
|
+
/** Whether this release can play the scene's renderer, capabilities and placement. */
|
|
12
|
+
export declare const isCelebrationSceneSupported: (scene: CelebrationSceneDescriptor) => boolean;
|
|
13
|
+
/** Returns the preparation for loaded Lottie JSON; throws when it has no positive `w` and `h`. */
|
|
14
|
+
export declare const preparePackSceneData: (data: unknown) => PackScenePreparation;
|
|
15
|
+
/** Whether the rendered stage stays within the element budget. */
|
|
16
|
+
export declare const isPackRendererWithinBudget: (host: HTMLElement) => boolean;
|
|
17
|
+
/** Returns the poster's `object-position`; the inline edge follows `direction`, inverted for a mirrored poster. */
|
|
18
|
+
export declare const resolvePosterObjectPosition: (alignment: CelebrationStageAlignment, direction: CelebrationTextDirection, isMirrored: boolean) => string;
|
|
19
|
+
//# sourceMappingURL=celebration-pack-scene.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"celebration-pack-scene.d.ts","sourceRoot":"","sources":["../../src/utils/celebration-pack-scene.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,0BAA0B,EAC1B,yBAAyB,EACzB,wBAAwB,EACzB,MAAM,4BAA4B,CAAC;AAOpC,0FAA0F;AAC1F,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAE3C,mFAAmF;AACnF,MAAM,WAAW,oBAAoB;IACnC,iCAAiC;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,+CAA+C;IAC/C,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,sFAAsF;AACtF,eAAO,MAAM,2BAA2B,GACtC,OAAO,0BAA0B,KAChC,OAKA,CAAC;AAKJ,kGAAkG;AAClG,eAAO,MAAM,oBAAoB,GAAI,MAAM,OAAO,KAAG,oBAOpD,CAAC;AAEF,kEAAkE;AAClE,eAAO,MAAM,0BAA0B,GAAI,MAAM,WAAW,KAAG,OACG,CAAC;AAQnE,mHAAmH;AACnH,eAAO,MAAM,2BAA2B,GACtC,WAAW,yBAAyB,EACpC,WAAW,wBAAwB,EACnC,YAAY,OAAO,KAClB,MAQF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"celebration-snapshots.d.ts","sourceRoot":"","sources":["../../src/utils/celebration-snapshots.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,WAAW,CAAC;IACrB,IAAI,EAAE,OAAO,CAAC;CACf;
|
|
1
|
+
{"version":3,"file":"celebration-snapshots.d.ts","sourceRoot":"","sources":["../../src/utils/celebration-snapshots.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,WAAW,CAAC;IACrB,IAAI,EAAE,OAAO,CAAC;CACf;AAED,UAAU,wBAAwB;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC,CAAC;IAC7C,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,KAAK,QAAQ,EAAE,CAAC;IACrD,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1D,uFAAuF;IACvF,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,8EAA8E;IAC9E,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA8FD,yFAAyF;AACzF,eAAO,MAAM,2BAA2B,GACtC,SAAS,SAAS,yBAAyB,EAAE,EAC7C,MAAM,WAAW,EACjB,SAAS,wBAAwB,KAChC,CAAC,MAAM,IAAI,CAmIb,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CelebrationSceneVariantDescriptor, CelebrationStageAlignment, CelebrationVariantInput } from '../models/celebration-pack';
|
|
2
|
+
import { CelebrationStageAlign } from '../types/celebration-pack';
|
|
3
|
+
/** Returns the variant meeting the most conditions, the earliest on a tie, or `undefined` when none applies. */
|
|
4
|
+
export declare const selectCelebrationVariant: (variants: readonly CelebrationSceneVariantDescriptor[], input: CelebrationVariantInput) => CelebrationSceneVariantDescriptor | undefined;
|
|
5
|
+
/** Returns the logical block and inline position of a stage; `start`/`end` follow the stage's own `dir`. */
|
|
6
|
+
export declare const resolveStageAlignment: (align: CelebrationStageAlign) => CelebrationStageAlignment;
|
|
7
|
+
//# sourceMappingURL=celebration-variant.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"celebration-variant.d.ts","sourceRoot":"","sources":["../../src/utils/celebration-variant.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iCAAiC,EACjC,yBAAyB,EACzB,uBAAuB,EACxB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,qBAAqB,EAEtB,MAAM,2BAA2B,CAAC;AAsBnC,gHAAgH;AAChH,eAAO,MAAM,wBAAwB,GACnC,UAAU,SAAS,iCAAiC,EAAE,EACtD,OAAO,uBAAuB,KAC7B,iCAAiC,GAAG,SAWtC,CAAC;AAoCF,4GAA4G;AAC5G,eAAO,MAAM,qBAAqB,GAChC,OAAO,qBAAqB,KAC3B,yBACsE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { LottieSceneSession, LottieSceneSessionOptions } from '../models/lottie-scene';
|
|
2
2
|
/** Creates one activation's Lottie session; it ends exactly once and then holds no resources. */
|
|
3
|
-
export declare const createLottieSceneSession: <P>({ playback, prepare, onPrepared, onTerminal, loadPlayer, }: LottieSceneSessionOptions<P>) => LottieSceneSession;
|
|
3
|
+
export declare const createLottieSceneSession: <P>({ playback, prepare, onPrepared, onTerminal, loadPlayer, loadData, }: LottieSceneSessionOptions<P>) => LottieSceneSession;
|
|
4
4
|
//# sourceMappingURL=lottie-scene-session.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lottie-scene-session.d.ts","sourceRoot":"","sources":["../../src/utils/lottie-scene-session.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,kBAAkB,EAClB,yBAAyB,EAC1B,MAAM,wBAAwB,CAAC;AAgChC,iGAAiG;AACjG,eAAO,MAAM,wBAAwB,GAAI,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"lottie-scene-session.d.ts","sourceRoot":"","sources":["../../src/utils/lottie-scene-session.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,kBAAkB,EAClB,yBAAyB,EAC1B,MAAM,wBAAwB,CAAC;AAgChC,iGAAiG;AACjG,eAAO,MAAM,wBAAwB,GAAI,CAAC,EAAE,sEAOzC,yBAAyB,CAAC,CAAC,CAAC,KAAG,kBAsMjC,CAAC"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { memo as e, useSyncExternalStore as t } from "react";
|
|
2
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
-
//#region src/hooks/useReducedMotion.ts
|
|
4
|
-
var r = "(prefers-reduced-motion: reduce)", i = (e) => {
|
|
5
|
-
let t = window.matchMedia?.(r);
|
|
6
|
-
return t?.addEventListener("change", e), () => t?.removeEventListener("change", e);
|
|
7
|
-
}, a = () => window.matchMedia?.(r).matches ?? !1, o = () => t(i, a, () => !0), s = {
|
|
8
|
-
layer: "_layer_17k2o_20",
|
|
9
|
-
flight: "_flight_17k2o_29",
|
|
10
|
-
"character-flight": "_character-flight_17k2o_1",
|
|
11
|
-
facing: "_facing_17k2o_37"
|
|
12
|
-
}, c = e(({ flights: e, Character: t }) => /* @__PURE__ */ n("div", {
|
|
13
|
-
className: s.layer,
|
|
14
|
-
"aria-hidden": "true",
|
|
15
|
-
children: e.map((e, r) => /* @__PURE__ */ n("span", {
|
|
16
|
-
style: e,
|
|
17
|
-
className: s.flight,
|
|
18
|
-
children: /* @__PURE__ */ n("span", {
|
|
19
|
-
className: s.facing,
|
|
20
|
-
children: /* @__PURE__ */ n(t, {})
|
|
21
|
-
})
|
|
22
|
-
}, r))
|
|
23
|
-
})), l = ({ count: e, sizesPx: t, durationSeconds: n, staggerSeconds: r }) => Array.from({ length: e }, (i, a) => {
|
|
24
|
-
let o = a % 2 == 0, s = 12 + a * 17 % 62;
|
|
25
|
-
return {
|
|
26
|
-
"--flight-start-x": o ? "-22vw" : "115vw",
|
|
27
|
-
"--flight-end-x": o ? "115vw" : "-22vw",
|
|
28
|
-
"--flight-start-y": `${s}vh`,
|
|
29
|
-
"--flight-mid-y": `${Math.max(3, s - 18)}vh`,
|
|
30
|
-
"--flight-end-y": `${Math.min(84, s + 8)}vh`,
|
|
31
|
-
"--flight-rest-x": `${8 + a / e * 78}vw`,
|
|
32
|
-
"--flight-rest-y": `${s}vh`,
|
|
33
|
-
"--flight-facing": o ? 1 : -1,
|
|
34
|
-
"--flight-size": `${t[a % t.length]}px`,
|
|
35
|
-
"--flight-delay": `${(a * r).toFixed(2)}s`,
|
|
36
|
-
"--flight-duration": `${n}s`
|
|
37
|
-
};
|
|
38
|
-
});
|
|
39
|
-
//#endregion
|
|
40
|
-
export { c as n, o as r, l as t };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { NewYearScene } from '../../types/new-year';
|
|
3
|
-
interface Props {
|
|
4
|
-
scene: NewYearScene.Snow | NewYearScene.Confetti;
|
|
5
|
-
}
|
|
6
|
-
export declare const NewYearSnow: FC;
|
|
7
|
-
export declare const NewYearConfetti: FC;
|
|
8
|
-
declare const _default: import('react').NamedExoticComponent<Props>;
|
|
9
|
-
export default _default;
|
|
10
|
-
//# sourceMappingURL=NewYearParticles.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NewYearParticles.d.ts","sourceRoot":"","sources":["../../../../src/new-year/components/NewYear/NewYearParticles.tsx"],"names":[],"mappings":"AACA,OAAO,EAAiB,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAE/C,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAIpD,UAAU,KAAK;IACb,KAAK,EAAE,YAAY,CAAC,IAAI,GAAG,YAAY,CAAC,QAAQ,CAAC;CAClD;AAwBD,eAAO,MAAM,WAAW,EAAE,EAEzB,CAAC;AACF,eAAO,MAAM,eAAe,EAAE,EAE7B,CAAC;;AAEF,wBAAsC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NewYearSleigh.d.ts","sourceRoot":"","sources":["../../../../src/new-year/components/NewYear/NewYearSleigh.tsx"],"names":[],"mappings":";AA0FA,wBAAmC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
import { NewYearScene } from '../../types/new-year';
|
|
3
|
-
/** Scatter short-lived particles once per scene, keeping a static reduced-motion layout. */
|
|
4
|
-
export declare const buildNewYearParticles: (scene: NewYearScene.Snow | NewYearScene.Confetti, isMobile: boolean) => CSSProperties[];
|
|
5
|
-
//# sourceMappingURL=particles.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"particles.d.ts","sourceRoot":"","sources":["../../../../src/new-year/components/NewYear/particles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,4FAA4F;AAC5F,eAAO,MAAM,qBAAqB,GAChC,OAAO,YAAY,CAAC,IAAI,GAAG,YAAY,CAAC,QAAQ,EAChD,UAAU,OAAO,KAChB,aAAa,EAmBf,CAAC"}
|