@epam/ai-dial-celebrations 1.2.0-dev.241 → 1.2.0-dev.250
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/new-year/components/NewYear/NewYearParticles.d.ts +1 -1
- package/new-year/components/NewYear/NewYearParticles.d.ts.map +1 -1
- package/new-year/components/NewYear/NewYearSceneOverlay.d.ts +8 -0
- package/new-year/components/NewYear/NewYearSceneOverlay.d.ts.map +1 -0
- package/new-year/components/NewYear/particles.d.ts +1 -1
- package/new-year/components/NewYear/particles.d.ts.map +1 -1
- package/new-year/components/NewYearPenguinStar/NewYearPenguinStar.d.ts +5 -0
- package/new-year/components/NewYearPenguinStar/NewYearPenguinStar.d.ts.map +1 -0
- package/new-year/components/NewYearPenguinStar/PenguinStarStill.d.ts +4 -0
- package/new-year/components/NewYearPenguinStar/PenguinStarStill.d.ts.map +1 -0
- package/new-year/constants/labels.d.ts +1 -0
- package/new-year/constants/labels.d.ts.map +1 -1
- package/new-year/constants/new-year.d.ts +8 -0
- package/new-year/constants/new-year.d.ts.map +1 -0
- package/new-year/event.d.ts.map +1 -1
- package/new-year/index.d.ts +1 -1
- package/new-year/index.d.ts.map +1 -1
- package/new-year/models/labels.d.ts +2 -0
- package/new-year/models/labels.d.ts.map +1 -1
- package/new-year/{components/NewYear/types.d.ts → types/new-year.d.ts} +3 -1
- package/new-year/types/new-year.d.ts.map +1 -0
- package/new-year/utils/penguin-star-animation.d.ts +5 -0
- package/new-year/utils/penguin-star-animation.d.ts.map +1 -0
- package/new-year/utils/penguin-star-art.d.ts +45 -0
- package/new-year/utils/penguin-star-art.d.ts.map +1 -0
- package/new-year/utils/penguin-star-composition.d.ts +41 -0
- package/new-year/utils/penguin-star-composition.d.ts.map +1 -0
- package/new-year/utils/penguin-star-selector.d.ts +3 -0
- package/new-year/utils/penguin-star-selector.d.ts.map +1 -0
- package/new-year/utils/penguin-star-targets.d.ts +27 -0
- package/new-year/utils/penguin-star-targets.d.ts.map +1 -0
- package/new-year.js +1563 -408
- package/package.json +3 -3
- package/new-year/components/NewYear/types.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
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;
|
|
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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { NewYearScene } from '../../types/new-year';
|
|
2
|
+
interface Props {
|
|
3
|
+
/** Scene selected by the shared celebration runtime. */
|
|
4
|
+
scene: NewYearScene;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: import('react').NamedExoticComponent<Props>;
|
|
7
|
+
export default _default;
|
|
8
|
+
//# sourceMappingURL=NewYearSceneOverlay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NewYearSceneOverlay.d.ts","sourceRoot":"","sources":["../../../../src/new-year/components/NewYear/NewYearSceneOverlay.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAcpD,UAAU,KAAK;IACb,wDAAwD;IACxD,KAAK,EAAE,YAAY,CAAC;CACrB;;AAQD,wBAAyC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
-
import { NewYearScene } from '
|
|
2
|
+
import { NewYearScene } from '../../types/new-year';
|
|
3
3
|
/** Scatter short-lived particles once per scene, keeping a static reduced-motion layout. */
|
|
4
4
|
export declare const buildNewYearParticles: (scene: NewYearScene.Snow | NewYearScene.Confetti, isMobile: boolean) => CSSProperties[];
|
|
5
5
|
//# sourceMappingURL=particles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NewYearPenguinStar.d.ts","sourceRoot":"","sources":["../../../../src/new-year/components/NewYearPenguinStar/NewYearPenguinStar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAoB7D,gFAAgF;AAChF,QAAA,MAAM,kBAAkB,EAAE,EAkJzB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PenguinStarStill.d.ts","sourceRoot":"","sources":["../../../../src/new-year/components/NewYearPenguinStar/PenguinStarStill.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,mFAAmF;AACnF,eAAO,MAAM,gBAAgB,EAAE,EAoG9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"labels.d.ts","sourceRoot":"","sources":["../../../src/new-year/constants/labels.ts"],"names":[],"mappings":"AAEA,iDAAiD;AACjD,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"labels.d.ts","sourceRoot":"","sources":["../../../src/new-year/constants/labels.ts"],"names":[],"mappings":"AAEA,iDAAiD;AACjD,eAAO,MAAM,eAAe;;;;;;;;CAaH,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { NewYearScene } from '../types/new-year';
|
|
2
|
+
/** The phrase that selects the hidden confetti scene from the chat input. */
|
|
3
|
+
export declare const NEW_YEAR_SECRET_PHRASE = "happy new year";
|
|
4
|
+
/** Gift-click scenes in their existing random-pool order. */
|
|
5
|
+
export declare const NEW_YEAR_CLICK_SCENES: readonly [NewYearScene.PenguinStar, NewYearScene.GiftWrapping, NewYearScene.Snow, NewYearScene.Confetti, NewYearScene.Sleigh];
|
|
6
|
+
/** Every scene's runtime deadline, including its exit and cleanup allowance. */
|
|
7
|
+
export declare const NEW_YEAR_SCENE_DURATIONS: Record<NewYearScene, number>;
|
|
8
|
+
//# sourceMappingURL=new-year.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"new-year.d.ts","sourceRoot":"","sources":["../../../src/new-year/constants/new-year.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAIjD,6EAA6E;AAC7E,eAAO,MAAM,sBAAsB,mBAAmB,CAAC;AAEvD,6DAA6D;AAC7D,eAAO,MAAM,qBAAqB,+HAMxB,CAAC;AAEX,gFAAgF;AAChF,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAMjE,CAAC"}
|
package/new-year/event.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../src/new-year/event.
|
|
1
|
+
{"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../src/new-year/event.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAqB9D,sCAAsC;AACtC,eAAO,MAAM,YAAY,EAAE,gBAkB1B,CAAC"}
|
package/new-year/index.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ import { newYearEvent } from './event';
|
|
|
2
2
|
export { newYearEvent } from './event';
|
|
3
3
|
export { NEW_YEAR_LABELS } from './constants/labels';
|
|
4
4
|
export type { NewYearLabels } from './models/labels';
|
|
5
|
-
export { NewYearScene } from './
|
|
5
|
+
export { NewYearScene } from './types/new-year';
|
|
6
6
|
export default newYearEvent;
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
package/new-year/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/new-year/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/new-year/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAGhD,eAAe,YAAY,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/** Visible text of the New Year event; `{{phrase}}` becomes the secret hint. */
|
|
2
2
|
export interface NewYearLabels {
|
|
3
|
+
/** Notification message of the penguin and star scene. */
|
|
4
|
+
penguinStarToastMessage?: string;
|
|
3
5
|
/** Notification message of the gift-wrapping scene. */
|
|
4
6
|
giftWrappingToastMessage?: string;
|
|
5
7
|
/** Title of every scene notification. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"labels.d.ts","sourceRoot":"","sources":["../../../src/new-year/models/labels.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,MAAM,WAAW,aAAa;IAC5B,uDAAuD;IACvD,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,yCAAyC;IACzC,UAAU,EAAE,MAAM,CAAC;IACnB,8CAA8C;IAC9C,gBAAgB,EAAE,MAAM,CAAC;IACzB,kDAAkD;IAClD,oBAAoB,EAAE,MAAM,CAAC;IAC7B,gDAAgD;IAChD,kBAAkB,EAAE,MAAM,CAAC;IAC3B,2CAA2C;IAC3C,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
1
|
+
{"version":3,"file":"labels.d.ts","sourceRoot":"","sources":["../../../src/new-year/models/labels.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,MAAM,WAAW,aAAa;IAC5B,0DAA0D;IAC1D,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,uDAAuD;IACvD,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,yCAAyC;IACzC,UAAU,EAAE,MAAM,CAAC;IACnB,8CAA8C;IAC9C,gBAAgB,EAAE,MAAM,CAAC;IACzB,kDAAkD;IAClD,oBAAoB,EAAE,MAAM,CAAC;IAC7B,gDAAgD;IAChD,kBAAkB,EAAE,MAAM,CAAC;IAC3B,2CAA2C;IAC3C,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/** Every New Year scene; hosts enable or disable them by these ids. */
|
|
2
2
|
export declare enum NewYearScene {
|
|
3
|
+
/** A penguin borrows a page control and folds it into the tree's star. */
|
|
4
|
+
PenguinStar = "penguin-star",
|
|
3
5
|
/** Two elves wrap the composer and free a hat caught in the bow. */
|
|
4
6
|
GiftWrapping = "gift-wrapping",
|
|
5
7
|
/** Snowflakes drift down the viewport. */
|
|
@@ -9,4 +11,4 @@ export declare enum NewYearScene {
|
|
|
9
11
|
/** A flying sleigh crosses the sky. */
|
|
10
12
|
Sleigh = "sleigh"
|
|
11
13
|
}
|
|
12
|
-
//# sourceMappingURL=
|
|
14
|
+
//# sourceMappingURL=new-year.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"new-year.d.ts","sourceRoot":"","sources":["../../../src/new-year/types/new-year.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,oBAAY,YAAY;IACtB,0EAA0E;IAC1E,WAAW,iBAAiB;IAC5B,oEAAoE;IACpE,YAAY,kBAAkB;IAC9B,0CAA0C;IAC1C,IAAI,SAAS;IACb,sDAAsD;IACtD,QAAQ,aAAa;IACrB,uCAAuC;IACvC,MAAM,WAAW;CAClB"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { LottiePlayer } from './gift-wrapping-player';
|
|
2
|
+
import { PenguinStarComposition } from './penguin-star-composition';
|
|
3
|
+
/** Play the scene and release its resources on completion or interruption. */
|
|
4
|
+
export declare const animatePenguinStar: (plan: PenguinStarComposition, host: HTMLElement, player: LottiePlayer, onStop: (failed: boolean) => void) => (() => void);
|
|
5
|
+
//# sourceMappingURL=penguin-star-animation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"penguin-star-animation.d.ts","sourceRoot":"","sources":["../../../src/new-year/utils/penguin-star-animation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,4BAA4B,CAAC;AAGpC,8EAA8E;AAC9E,eAAO,MAAM,kBAAkB,GAC7B,MAAM,sBAAsB,EAC5B,MAAM,WAAW,EACjB,QAAQ,YAAY,EACpB,QAAQ,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,KAChC,CAAC,MAAM,IAAI,CAqKb,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/** Native Lottie property, fixed or authored in keyframes. */
|
|
2
|
+
export interface StarProperty {
|
|
3
|
+
/** Animation flag. */ a: number;
|
|
4
|
+
/** Native value/keys. */ k: unknown;
|
|
5
|
+
}
|
|
6
|
+
/** Native Lottie vector shape. */
|
|
7
|
+
export interface StarShape {
|
|
8
|
+
/** Shape kind. */ ty: string;
|
|
9
|
+
/** Authoring name. */ nm?: string;
|
|
10
|
+
/** Nested shapes. */ it?: StarShape[];
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
/** Native transform shared by a layer or a vector group. */
|
|
14
|
+
export interface StarTransform {
|
|
15
|
+
/** Anchor. */ a: StarProperty;
|
|
16
|
+
/** Position. */ p: StarProperty;
|
|
17
|
+
/** Scale. */ s: StarProperty;
|
|
18
|
+
/** Rotation. */ r: StarProperty;
|
|
19
|
+
/** Opacity. */ o: StarProperty;
|
|
20
|
+
}
|
|
21
|
+
/** A fixed native property. */
|
|
22
|
+
export declare const fixed: (k: unknown) => StarProperty;
|
|
23
|
+
/** An identity transform for native vector data. */
|
|
24
|
+
export declare const identity: () => StarTransform;
|
|
25
|
+
/** A vector group with optional transform and a single shared fill. */
|
|
26
|
+
export declare const group: (nm: string, shapes: StarShape[], hex?: string, transform?: StarTransform) => StarShape;
|
|
27
|
+
/** Monochrome reference silhouette with independently articulated head and flipper. */
|
|
28
|
+
export declare const penguinArt: () => StarShape[];
|
|
29
|
+
/** Near flipper, with an articulated shoulder and grip at local (28, 0). */
|
|
30
|
+
export declare const flipperArt: () => StarShape[];
|
|
31
|
+
/** Small pale feet pivot at y=0 for alternating planted steps. */
|
|
32
|
+
export declare const leftFootArt: () => StarShape[];
|
|
33
|
+
/** Small pale feet pivot at y=0 for alternating planted steps. */
|
|
34
|
+
export declare const rightFootArt: () => StarShape[];
|
|
35
|
+
/** Weighted pot stays level while the trunk bends. */
|
|
36
|
+
export declare const potArt: () => StarShape[];
|
|
37
|
+
/** Fir boughs keep an irregular silhouette; the crown is exactly y=-height. */
|
|
38
|
+
export declare const treeArt: (height: number) => StarShape[];
|
|
39
|
+
/** A small warm-metal star, detailed only enough to read at mobile size. */
|
|
40
|
+
export declare const starArt: () => StarShape[];
|
|
41
|
+
/** A folded paper nugget that takes over as the borrowed control disappears. */
|
|
42
|
+
export declare const crumpledPaperArt: () => StarShape[];
|
|
43
|
+
/** Simple snowy support, never an effect or a filter. */
|
|
44
|
+
export declare const snowArt: (width: number, height: number) => StarShape[];
|
|
45
|
+
//# sourceMappingURL=penguin-star-art.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"penguin-star-art.d.ts","sourceRoot":"","sources":["../../../src/new-year/utils/penguin-star-art.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAC9D,MAAM,WAAW,YAAY;IAC3B,sBAAsB,CAAC,CAAC,EAAE,MAAM,CAAC;IACjC,yBAAyB,CAAC,CAAC,EAAE,OAAO,CAAC;CACtC;AACD,kCAAkC;AAClC,MAAM,WAAW,SAAS;IACxB,kBAAkB,CAAC,EAAE,EAAE,MAAM,CAAC;IAC9B,sBAAsB,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACnC,qBAAqB,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC;IACvC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AACD,4DAA4D;AAC5D,MAAM,WAAW,aAAa;IAC5B,cAAc,CAAC,CAAC,EAAE,YAAY,CAAC;IAC/B,gBAAgB,CAAC,CAAC,EAAE,YAAY,CAAC;IACjC,aAAa,CAAC,CAAC,EAAE,YAAY,CAAC;IAC9B,gBAAgB,CAAC,CAAC,EAAE,YAAY,CAAC;IACjC,eAAe,CAAC,CAAC,EAAE,YAAY,CAAC;CACjC;AACD,+BAA+B;AAC/B,eAAO,MAAM,KAAK,GAAI,GAAG,OAAO,KAAG,YAA6B,CAAC;AACjE,oDAAoD;AACpD,eAAO,MAAM,QAAQ,QAAO,aAM1B,CAAC;AAIH,uEAAuE;AACvE,eAAO,MAAM,KAAK,GAChB,IAAI,MAAM,EACV,QAAQ,SAAS,EAAE,EACnB,MAAM,MAAM,EACZ,yBAAsB,KACrB,SAQD,CAAC;AAoQH,uFAAuF;AACvF,eAAO,MAAM,UAAU,QAAO,SAAS,EA4JtC,CAAC;AACF,4EAA4E;AAC5E,eAAO,MAAM,UAAU,QAAO,SAAS,EAwDtC,CAAC;AACF,kEAAkE;AAClE,eAAO,MAAM,WAAW,QAAO,SAAS,EAgCvC,CAAC;AACF,kEAAkE;AAClE,eAAO,MAAM,YAAY,QAAO,SAAS,EAgCxC,CAAC;AACF,sDAAsD;AACtD,eAAO,MAAM,MAAM,QAAO,SAAS,EAoClC,CAAC;AACF,+EAA+E;AAC/E,eAAO,MAAM,OAAO,GAAI,QAAQ,MAAM,KAAG,SAAS,EAiHjD,CAAC;AACF,4EAA4E;AAC5E,eAAO,MAAM,OAAO,QAAO,SAAS,EAWnC,CAAC;AACF,gFAAgF;AAChF,eAAO,MAAM,gBAAgB,QAAO,SAAS,EA8B5C,CAAC;AACF,yDAAyD;AACzD,eAAO,MAAM,OAAO,GAAI,OAAO,MAAM,EAAE,QAAQ,MAAM,KAAG,SAAS,EAEhE,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { StarShape, StarTransform } from './penguin-star-art';
|
|
2
|
+
import { PenguinStarTargets } from './penguin-star-targets';
|
|
3
|
+
/** Side entrance, borrowed interface fragment, paper star and fir decoration. */
|
|
4
|
+
export declare const PENGUIN_STAR_MS = 20000;
|
|
5
|
+
type Point = [number, number];
|
|
6
|
+
interface Layer {
|
|
7
|
+
ty: number;
|
|
8
|
+
ind: number;
|
|
9
|
+
nm: string;
|
|
10
|
+
parent?: number;
|
|
11
|
+
ip: number;
|
|
12
|
+
op: number;
|
|
13
|
+
st: number;
|
|
14
|
+
sr: number;
|
|
15
|
+
ks: StarTransform;
|
|
16
|
+
shapes: StarShape[];
|
|
17
|
+
}
|
|
18
|
+
/** Local Lottie data and the measured elements it depends on. */
|
|
19
|
+
export interface PenguinStarComposition {
|
|
20
|
+
/** Read-only source elements watched throughout playback. */
|
|
21
|
+
targets: PenguinStarTargets;
|
|
22
|
+
/** Measured destination for the borrowed control's reversible DOM motion. */
|
|
23
|
+
capturePoint: Point;
|
|
24
|
+
/** Serializable native vector composition. */
|
|
25
|
+
animationData: {
|
|
26
|
+
v: string;
|
|
27
|
+
fr: number;
|
|
28
|
+
ip: number;
|
|
29
|
+
op: number;
|
|
30
|
+
w: number;
|
|
31
|
+
h: number;
|
|
32
|
+
nm: string;
|
|
33
|
+
ddd: number;
|
|
34
|
+
assets: never[];
|
|
35
|
+
layers: Layer[];
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
/** Compose the actors and star handoffs on one Lottie clock. */
|
|
39
|
+
export declare const buildPenguinStarComposition: (targets: PenguinStarTargets, isMobile: boolean) => PenguinStarComposition;
|
|
40
|
+
export {};
|
|
41
|
+
//# sourceMappingURL=penguin-star-composition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"penguin-star-composition.d.ts","sourceRoot":"","sources":["../../../src/new-year/utils/penguin-star-composition.ts"],"names":[],"mappings":"AAAA,OAAO,EAaL,KAAK,SAAS,EACd,KAAK,aAAa,EACnB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAEjE,iFAAiF;AACjF,eAAO,MAAM,eAAe,QAAQ,CAAC;AAMrC,KAAK,KAAK,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAG9B,UAAU,KAAK;IACb,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,aAAa,CAAC;IAClB,MAAM,EAAE,SAAS,EAAE,CAAC;CACrB;AAED,iEAAiE;AACjE,MAAM,WAAW,sBAAsB;IACrC,6DAA6D;IAC7D,OAAO,EAAE,kBAAkB,CAAC;IAC5B,6EAA6E;IAC7E,YAAY,EAAE,KAAK,CAAC;IACpB,8CAA8C;IAC9C,aAAa,EAAE;QACb,CAAC,EAAE,MAAM,CAAC;QACV,EAAE,EAAE,MAAM,CAAC;QACX,EAAE,EAAE,MAAM,CAAC;QACX,EAAE,EAAE,MAAM,CAAC;QACX,CAAC,EAAE,MAAM,CAAC;QACV,CAAC,EAAE,MAAM,CAAC;QACV,EAAE,EAAE,MAAM,CAAC;QACX,GAAG,EAAE,MAAM,CAAC;QACZ,MAAM,EAAE,KAAK,EAAE,CAAC;QAChB,MAAM,EAAE,KAAK,EAAE,CAAC;KACjB,CAAC;CACH;AA+DD,gEAAgE;AAChE,eAAO,MAAM,2BAA2B,GACtC,SAAS,kBAAkB,EAC3B,UAAU,OAAO,KAChB,sBA8TF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"penguin-star-selector.d.ts","sourceRoot":"","sources":["../../../src/new-year/utils/penguin-star-selector.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,eAAO,MAAM,wBAAwB,GACnC,SAAS,WAAW,EACpB,MAAM,OAAO,EACb,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,KACnB,CAAC,MAAM,IAAI,CAqDb,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { CelebrationAnchors } from '../../models/celebration';
|
|
2
|
+
import { GiftWrappingTarget } from './gift-wrapping-targets';
|
|
3
|
+
interface MeasuredElement {
|
|
4
|
+
element: HTMLElement;
|
|
5
|
+
rect: DOMRect;
|
|
6
|
+
}
|
|
7
|
+
/** Read-only composer and selector coordinates for the scene. */
|
|
8
|
+
export interface PenguinStarTargets extends GiftWrappingTarget {
|
|
9
|
+
/** Greeting whose text must remain visible throughout playback. */
|
|
10
|
+
heading: MeasuredElement | null;
|
|
11
|
+
/** Starter prompts must remain readable while the fir stands. */
|
|
12
|
+
starters?: MeasuredElement | null;
|
|
13
|
+
/** An idle starter prompt that may be borrowed for the star. */
|
|
14
|
+
starterButton?: MeasuredElement | null;
|
|
15
|
+
/** The existing interface element pulled into the penguin's flipper. */
|
|
16
|
+
borrowed?: MeasuredElement | null;
|
|
17
|
+
/** Eligible model selector used when no starter prompt can be borrowed. */
|
|
18
|
+
modelSelector?: MeasuredElement | null;
|
|
19
|
+
/** Fir center on the selector side of the stage. */
|
|
20
|
+
center: number;
|
|
21
|
+
/** Penguin's separate throwing position opposite the fir. */
|
|
22
|
+
throwCenter: number;
|
|
23
|
+
}
|
|
24
|
+
/** Keep the cast clear of host text and find one reversible interface prop. */
|
|
25
|
+
export declare const getPenguinStarTargets: (anchors: CelebrationAnchors, isMobile: boolean) => PenguinStarTargets;
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=penguin-star-targets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"penguin-star-targets.d.ts","sourceRoot":"","sources":["../../../src/new-year/utils/penguin-star-targets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,yBAAyB,CAAC;AAEjC,UAAU,eAAe;IACvB,OAAO,EAAE,WAAW,CAAC;IACrB,IAAI,EAAE,OAAO,CAAC;CACf;AAED,iEAAiE;AACjE,MAAM,WAAW,kBAAmB,SAAQ,kBAAkB;IAC5D,mEAAmE;IACnE,OAAO,EAAE,eAAe,GAAG,IAAI,CAAC;IAChC,iEAAiE;IACjE,QAAQ,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IAClC,gEAAgE;IAChE,aAAa,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IACvC,wEAAwE;IACxE,QAAQ,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IAClC,2EAA2E;IAC3E,aAAa,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IACvC,oDAAoD;IACpD,MAAM,EAAE,MAAM,CAAC;IACf,6DAA6D;IAC7D,WAAW,EAAE,MAAM,CAAC;CACrB;AAWD,+EAA+E;AAC/E,eAAO,MAAM,qBAAqB,GAChC,SAAS,kBAAkB,EAC3B,UAAU,OAAO,KAChB,kBAqKF,CAAC"}
|