@epam/ai-dial-celebrations 1.3.0-dev.273 → 1.3.0-dev.276
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.js +144 -143
- package/hooks/useLottieSceneSession.d.ts +1 -1
- package/hooks/useLottieSceneSession.d.ts.map +1 -1
- package/index.css +1 -1
- package/index.d.ts +3 -0
- package/index.d.ts.map +1 -1
- package/index.js +62 -61
- package/{lottie_light-CowwItMl.js → lottie_light-DUHSXGUj.js} +1 -1
- package/models/celebration-pack.d.ts +126 -0
- package/models/celebration-pack.d.ts.map +1 -0
- package/models/lottie-scene.d.ts +10 -4
- package/models/lottie-scene.d.ts.map +1 -1
- package/new-year.js +1525 -1698
- package/package.json +8 -3
- package/packs/index.d.ts +6 -0
- package/packs/index.d.ts.map +1 -0
- package/packs.js +197 -0
- package/{scene-targets-BgiQPucY.js → scene-targets-C5LEjDnN.js} +44 -48
- 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-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/rolldown-runtime-VHNaYcLd.js +0 -13
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
//#region src/types/celebration-pack.ts
|
|
2
|
+
var e = /* @__PURE__ */ function(e) {
|
|
3
|
+
return e.LottieLightSvgV1 = "lottie-light-svg-v1", e.ViewportStageV1 = "viewport-stage-v1", e.ComposerAnchorV1 = "composer-anchor-v1", e.StaticPosterV1 = "static-poster-v1", e.StaticTriggerV1 = "static-trigger-v1", e;
|
|
4
|
+
}({}), t = /* @__PURE__ */ function(e) {
|
|
5
|
+
return e.None = "none", e.Mirror = "mirror", e.Variant = "variant", e;
|
|
6
|
+
}({}), n = /* @__PURE__ */ function(e) {
|
|
7
|
+
return e.Mobile = "mobile", e.Desktop = "desktop", e;
|
|
8
|
+
}({}), r = /* @__PURE__ */ function(e) {
|
|
9
|
+
return e.Light = "light", e.Dark = "dark", e;
|
|
10
|
+
}({}), i = /* @__PURE__ */ function(e) {
|
|
11
|
+
return e.ViewportStageV1 = "viewport-stage-v1", e.ComposerAnchorV1 = "composer-anchor-v1", e;
|
|
12
|
+
}({}), a = /* @__PURE__ */ function(e) {
|
|
13
|
+
return e.Contain = "contain", e.Cover = "cover", e;
|
|
14
|
+
}({}), o = /* @__PURE__ */ function(e) {
|
|
15
|
+
return e.Center = "center", e.Top = "top", e.Bottom = "bottom", e.TopStart = "top-start", e.TopEnd = "top-end", e.BottomStart = "bottom-start", e.BottomEnd = "bottom-end", e;
|
|
16
|
+
}({}), s = /* @__PURE__ */ function(e) {
|
|
17
|
+
return e.StaticTriggerV1 = "static-trigger-v1", e;
|
|
18
|
+
}({}), c = /* @__PURE__ */ function(e) {
|
|
19
|
+
return e.Start = "start", e.Center = "center", e.End = "end", e;
|
|
20
|
+
}({}), l = /* @__PURE__ */ new Set([
|
|
21
|
+
e.LottieLightSvgV1,
|
|
22
|
+
e.ViewportStageV1,
|
|
23
|
+
e.StaticPosterV1,
|
|
24
|
+
e.StaticTriggerV1
|
|
25
|
+
]);
|
|
26
|
+
//#endregion
|
|
27
|
+
export { t as a, o as c, s as i, c as l, e as n, n as o, r, i as s, l as t, a as u };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { CelebrationAssetLoaders, CelebrationSceneDescriptor, CelebrationVariantContext } from '../../models/celebration-pack';
|
|
3
|
+
/** Props of `LottieScene`. */
|
|
4
|
+
export interface LottieSceneProps {
|
|
5
|
+
/** The validated scene to play. */
|
|
6
|
+
scene: CelebrationSceneDescriptor;
|
|
7
|
+
/** Host callbacks that load the animation and resolve the poster URL. */
|
|
8
|
+
loaders: CelebrationAssetLoaders;
|
|
9
|
+
/** Host direction and color scheme at activation. */
|
|
10
|
+
context: CelebrationVariantContext;
|
|
11
|
+
}
|
|
12
|
+
/** Plays one pack scene in the viewport scene layer, or its poster when it cannot play. */
|
|
13
|
+
export declare const LottieScene: FC<LottieSceneProps>;
|
|
14
|
+
//# sourceMappingURL=LottieScene.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LottieScene.d.ts","sourceRoot":"","sources":["../../../src/components/LottieScene/LottieScene.tsx"],"names":[],"mappings":"AACA,OAAO,EAML,KAAK,EAAE,EACR,MAAM,OAAO,CAAC;AAIf,OAAO,KAAK,EACV,uBAAuB,EACvB,0BAA0B,EAC1B,yBAAyB,EAC1B,MAAM,+BAA+B,CAAC;AAyBvC,8BAA8B;AAC9B,MAAM,WAAW,gBAAgB;IAC/B,mCAAmC;IACnC,KAAK,EAAE,0BAA0B,CAAC;IAClC,yEAAyE;IACzE,OAAO,EAAE,uBAAuB,CAAC;IACjC,qDAAqD;IACrD,OAAO,EAAE,yBAAyB,CAAC;CACpC;AAcD,2FAA2F;AAC3F,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CA8H5C,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { CelebrationDecorationProps } from '../../models/celebration';
|
|
3
|
+
/** English accessible name used when the resolved label is empty. */
|
|
4
|
+
export declare const STATIC_TRIGGER_DEFAULT_LABEL = "Play celebration";
|
|
5
|
+
/** Props of `StaticTriggerDecoration`. */
|
|
6
|
+
export interface StaticTriggerDecorationProps extends CelebrationDecorationProps {
|
|
7
|
+
/** Host-built URL of the trigger image; no image renders when `undefined`. */
|
|
8
|
+
imageUrl?: string;
|
|
9
|
+
/** Resolved accessible name. Defaults to `'Play celebration'` when empty. */
|
|
10
|
+
label?: string;
|
|
11
|
+
}
|
|
12
|
+
/** Native image button that plays a click scene of an external event. */
|
|
13
|
+
export declare const StaticTriggerDecoration: FC<StaticTriggerDecorationProps>;
|
|
14
|
+
//# sourceMappingURL=StaticTriggerDecoration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StaticTriggerDecoration.d.ts","sourceRoot":"","sources":["../../../src/components/StaticTriggerDecoration/StaticTriggerDecoration.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAG3E,qEAAqE;AACrE,eAAO,MAAM,4BAA4B,qBAAqB,CAAC;AAE/D,0CAA0C;AAC1C,MAAM,WAAW,4BAA6B,SAAQ,0BAA0B;IAC9E,8EAA8E;IAC9E,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,6EAA6E;IAC7E,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,yEAAyE;AACzE,eAAO,MAAM,uBAAuB,EAAE,EAAE,CAAC,4BAA4B,CAepE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"celebration-capabilities.d.ts","sourceRoot":"","sources":["../../src/constants/celebration-capabilities.ts"],"names":[],"mappings":"AAEA,sFAAsF;AACtF,eAAO,MAAM,kCAAkC,EAAE,WAAW,CAAC,MAAM,CAM/D,CAAC"}
|