@epam/ai-dial-celebrations 1.2.0-dev.260 → 1.2.0-dev.262
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/hooks/useLottieSceneSession.d.ts +8 -0
- package/hooks/useLottieSceneSession.d.ts.map +1 -0
- package/models/lottie-scene.d.ts +81 -0
- package/models/lottie-scene.d.ts.map +1 -0
- package/new-year/components/NewYearGiftWrapping/NewYearGiftWrapping.d.ts.map +1 -1
- package/new-year/utils/gift-wrapping-animation.d.ts +5 -3
- package/new-year/utils/gift-wrapping-animation.d.ts.map +1 -1
- package/new-year/utils/penguin-star-animation.d.ts +1 -1
- package/new-year/utils/penguin-star-animation.d.ts.map +1 -1
- package/new-year.js +654 -567
- package/package.json +3 -3
- package/types/lottie-scene.d.ts +49 -0
- package/types/lottie-scene.d.ts.map +1 -0
- package/utils/lottie-player.d.ts +16 -0
- package/utils/lottie-player.d.ts.map +1 -0
- package/utils/lottie-scene-session.d.ts +4 -0
- package/utils/lottie-scene-session.d.ts.map +1 -0
- package/new-year/utils/gift-wrapping-player.d.ts +0 -8
- package/new-year/utils/gift-wrapping-player.d.ts.map +0 -1
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.2.0-dev.
|
|
4
|
+
"version": "1.2.0-dev.262",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"lottie-web": "
|
|
30
|
+
"lottie-web": "5.13.0",
|
|
31
31
|
"react-error-boundary": "^6.1.5"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@epam/ai-dial-chat-shared": "1.2.0-dev.
|
|
34
|
+
"@epam/ai-dial-chat-shared": "1.2.0-dev.262",
|
|
35
35
|
"@epam/ai-dial-ui-kit": "^0.15.0-dev.36",
|
|
36
36
|
"react": "^19.2.8",
|
|
37
37
|
"react-dom": "^19.2.8"
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/** Where a Lottie scene session is in its lifecycle. */
|
|
2
|
+
export declare enum LottieSceneSessionState {
|
|
3
|
+
/** Created; the player import has not started. */
|
|
4
|
+
Idle = "idle",
|
|
5
|
+
/** The player import is pending under the load deadline. */
|
|
6
|
+
Loading = "loading",
|
|
7
|
+
/** The scene is measured and composed; waiting for its host element. */
|
|
8
|
+
Prepared = "prepared",
|
|
9
|
+
/** The renderer exists; waiting for readiness under the readiness deadline. */
|
|
10
|
+
Initializing = "initializing",
|
|
11
|
+
/** Playback started at readiness and runs under the playback deadline. */
|
|
12
|
+
Playing = "playing",
|
|
13
|
+
/** Ended by the authored story or the playback deadline. */
|
|
14
|
+
Completed = "completed",
|
|
15
|
+
/** Ended by an interrupt, an environment change or disposal. */
|
|
16
|
+
Cancelled = "cancelled",
|
|
17
|
+
/** Ended because the player or renderer could not load, start or play. */
|
|
18
|
+
Failed = "failed"
|
|
19
|
+
}
|
|
20
|
+
/** How a Lottie scene session ended. */
|
|
21
|
+
export declare enum LottieSceneOutcome {
|
|
22
|
+
/** The story played to its end. */
|
|
23
|
+
Completed = "completed",
|
|
24
|
+
/** Playback was interrupted; the scene must not fall back to static art. */
|
|
25
|
+
Cancelled = "cancelled",
|
|
26
|
+
/** Playback could not happen; the scene shows its static fallback. */
|
|
27
|
+
Failed = "failed"
|
|
28
|
+
}
|
|
29
|
+
/** Who owns the animation data a session hands to the player. */
|
|
30
|
+
export declare enum LottieDataOwnership {
|
|
31
|
+
/** Built for one session; the player may consume it once. */
|
|
32
|
+
Transferred = "transferred",
|
|
33
|
+
/** An immutable source the caller keeps; every playback gets a clone. */
|
|
34
|
+
Shared = "shared"
|
|
35
|
+
}
|
|
36
|
+
/** What a scene component renders while its Lottie session runs. */
|
|
37
|
+
export declare enum LottieScenePhase {
|
|
38
|
+
/** No session runs, for example under reduced motion. */
|
|
39
|
+
Idle = "idle",
|
|
40
|
+
/** The player import is pending. */
|
|
41
|
+
Loading = "loading",
|
|
42
|
+
/** The host element can render and the renderer will attach to it. */
|
|
43
|
+
Prepared = "prepared",
|
|
44
|
+
/** The scene completed or was cancelled and renders nothing. */
|
|
45
|
+
Ended = "ended",
|
|
46
|
+
/** Playback failed and the scene shows its static fallback. */
|
|
47
|
+
Failed = "failed"
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=lottie-scene.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lottie-scene.d.ts","sourceRoot":"","sources":["../../src/types/lottie-scene.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,oBAAY,uBAAuB;IACjC,kDAAkD;IAClD,IAAI,SAAS;IACb,4DAA4D;IAC5D,OAAO,YAAY;IACnB,wEAAwE;IACxE,QAAQ,aAAa;IACrB,+EAA+E;IAC/E,YAAY,iBAAiB;IAC7B,0EAA0E;IAC1E,OAAO,YAAY;IACnB,4DAA4D;IAC5D,SAAS,cAAc;IACvB,gEAAgE;IAChE,SAAS,cAAc;IACvB,0EAA0E;IAC1E,MAAM,WAAW;CAClB;AAED,wCAAwC;AACxC,oBAAY,kBAAkB;IAC5B,mCAAmC;IACnC,SAAS,cAAc;IACvB,4EAA4E;IAC5E,SAAS,cAAc;IACvB,sEAAsE;IACtE,MAAM,WAAW;CAClB;AAED,iEAAiE;AACjE,oBAAY,mBAAmB;IAC7B,6DAA6D;IAC7D,WAAW,gBAAgB;IAC3B,yEAAyE;IACzE,MAAM,WAAW;CAClB;AAED,oEAAoE;AACpE,oBAAY,gBAAgB;IAC1B,yDAAyD;IACzD,IAAI,SAAS;IACb,oCAAoC;IACpC,OAAO,YAAY;IACnB,sEAAsE;IACtE,QAAQ,aAAa;IACrB,gEAAgE;IAChE,KAAK,UAAU;IACf,+DAA+D;IAC/D,MAAM,WAAW;CAClB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AnimationConfigWithData, AnimationItem } from 'lottie-web';
|
|
2
|
+
/** The `lottie-web` release that renderer capability `lottie-light-svg-v1` is pinned to. */
|
|
3
|
+
export declare const LOTTIE_LIGHT_SVG_V1_PLAYER_VERSION = "5.13.0";
|
|
4
|
+
/** The part of the SVG-only player a scene uses; scenes never own the global player. */
|
|
5
|
+
export interface LottiePlayer {
|
|
6
|
+
loadAnimation(options: AnimationConfigWithData<'svg'>): AnimationItem;
|
|
7
|
+
}
|
|
8
|
+
/** Imports the SVG-only player into its own lazy chunk; holds no state between calls. */
|
|
9
|
+
export declare const loadLottiePlayer: () => Promise<LottiePlayer>;
|
|
10
|
+
/**
|
|
11
|
+
* Creates a paused, non-looping renderer in `container` with the
|
|
12
|
+
* `lottie-light-svg-v1` settings. When the renderer cannot be configured, it is
|
|
13
|
+
* released here and the error is rethrown.
|
|
14
|
+
*/
|
|
15
|
+
export declare const createLottieLightSvgAnimation: (player: LottiePlayer, container: HTMLElement, animationData: object) => AnimationItem;
|
|
16
|
+
//# sourceMappingURL=lottie-player.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lottie-player.d.ts","sourceRoot":"","sources":["../../src/utils/lottie-player.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEzE,4FAA4F;AAC5F,eAAO,MAAM,kCAAkC,WAAW,CAAC;AAE3D,wFAAwF;AACxF,MAAM,WAAW,YAAY;IAC3B,aAAa,CAAC,OAAO,EAAE,uBAAuB,CAAC,KAAK,CAAC,GAAG,aAAa,CAAC;CACvE;AAED,yFAAyF;AACzF,eAAO,MAAM,gBAAgB,QAAa,OAAO,CAAC,YAAY,CAI7D,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,GACxC,QAAQ,YAAY,EACpB,WAAW,WAAW,EACtB,eAAe,MAAM,KACpB,aAyBF,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { LottieSceneSession, LottieSceneSessionOptions } from '../models/lottie-scene';
|
|
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;
|
|
4
|
+
//# sourceMappingURL=lottie-scene-session.d.ts.map
|
|
@@ -0,0 +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,4DAMzC,yBAAyB,CAAC,CAAC,CAAC,KAAG,kBAoJjC,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { AnimationConfigWithData, AnimationItem } from 'lottie-web';
|
|
2
|
-
/** The scene uses one local composition without owning the global player. */
|
|
3
|
-
export interface LottiePlayer {
|
|
4
|
-
loadAnimation(options: AnimationConfigWithData<'svg'>): AnimationItem;
|
|
5
|
-
}
|
|
6
|
-
/** Keep the SVG-only player out of the event until this scene is selected. */
|
|
7
|
-
export declare const loadGiftWrappingPlayer: () => Promise<LottiePlayer>;
|
|
8
|
-
//# sourceMappingURL=gift-wrapping-player.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gift-wrapping-player.d.ts","sourceRoot":"","sources":["../../../src/new-year/utils/gift-wrapping-player.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEzE,6EAA6E;AAC7E,MAAM,WAAW,YAAY;IAC3B,aAAa,CAAC,OAAO,EAAE,uBAAuB,CAAC,KAAK,CAAC,GAAG,aAAa,CAAC;CACvE;AAED,8EAA8E;AAC9E,eAAO,MAAM,sBAAsB,QAAa,OAAO,CAAC,YAAY,CAInE,CAAC"}
|