@epam/ai-dial-celebrations 1.3.0-dev.225 → 1.3.0-dev.235

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-celebrations",
3
3
  "description": "Seasonal start-page celebrations with lazily loaded Halloween and New Year scenes that hosts can switch on and off one by one",
4
- "version": "1.3.0-dev.225",
4
+ "version": "1.3.0-dev.235",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -31,7 +31,7 @@
31
31
  "react-error-boundary": "^6.1.5"
32
32
  },
33
33
  "peerDependencies": {
34
- "@epam/ai-dial-chat-shared": "1.3.0-dev.225",
34
+ "@epam/ai-dial-chat-shared": "1.3.0-dev.235",
35
35
  "@epam/ai-dial-ui-kit": "^0.16.0-dev.45",
36
36
  "react": "^19.2.8",
37
37
  "react-dom": "^19.2.8"
@@ -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 };
@@ -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,3 +0,0 @@
1
- declare const _default: import('react').NamedExoticComponent<{}>;
2
- export default _default;
3
- //# sourceMappingURL=NewYearSleigh.d.ts.map
@@ -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"}