@epam/ai-dial-celebrations 1.2.0-dev.231 → 1.2.0-dev.232
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/flying-characters-Czuzwf8T.js +40 -0
- package/halloween.js +1749 -1752
- package/index.css +1 -1
- package/lottie_light-DVla0_7m.js +4435 -0
- package/new-year/assets/gift-wrapping-elves.json.d.ts +4794 -0
- package/new-year/components/NewYear/types.d.ts +2 -0
- package/new-year/components/NewYear/types.d.ts.map +1 -1
- package/new-year/components/NewYearGiftWrapping/GiftWrappingArt.d.ts +13 -0
- package/new-year/components/NewYearGiftWrapping/GiftWrappingArt.d.ts.map +1 -0
- package/new-year/components/NewYearGiftWrapping/NewYearGiftWrapping.d.ts +5 -0
- package/new-year/components/NewYearGiftWrapping/NewYearGiftWrapping.d.ts.map +1 -0
- package/new-year/constants/labels.d.ts +8 -2
- package/new-year/constants/labels.d.ts.map +1 -1
- package/new-year/event.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/utils/gift-wrapping-animation.d.ts +5 -0
- package/new-year/utils/gift-wrapping-animation.d.ts.map +1 -0
- package/new-year/utils/gift-wrapping-composition.d.ts +51 -0
- package/new-year/utils/gift-wrapping-composition.d.ts.map +1 -0
- package/new-year/utils/gift-wrapping-player.d.ts +8 -0
- package/new-year/utils/gift-wrapping-player.d.ts.map +1 -0
- package/new-year/utils/gift-wrapping-rig.d.ts +26 -0
- package/new-year/utils/gift-wrapping-rig.d.ts.map +1 -0
- package/new-year/utils/gift-wrapping-targets.d.ts +20 -0
- package/new-year/utils/gift-wrapping-targets.d.ts.map +1 -0
- package/new-year.js +1561 -97
- package/package.json +3 -2
- package/flying-characters-2UJGx5Nh.js +0 -36
|
@@ -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
|
+
/** Two elves wrap the composer and free a hat caught in the bow. */
|
|
4
|
+
GiftWrapping = "gift-wrapping",
|
|
3
5
|
/** Snowflakes drift down the viewport. */
|
|
4
6
|
Snow = "snow",
|
|
5
7
|
/** A confetti burst; also the secret-phrase scene. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/new-year/components/NewYear/types.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,oBAAY,YAAY;IACtB,0CAA0C;IAC1C,IAAI,SAAS;IACb,sDAAsD;IACtD,QAAQ,aAAa;IACrB,uCAAuC;IACvC,MAAM,WAAW;CAClB"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/new-year/components/NewYear/types.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,oBAAY,YAAY;IACtB,oEAAoE;IACpE,YAAY,kBAAkB;IAC9B,0CAA0C;IAC1C,IAAI,SAAS;IACb,sDAAsD;IACtD,QAAQ,aAAa;IACrB,uCAAuC;IACvC,MAAM,WAAW;CAClB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
/** Golden ribbon with broad folded loops that remain readable at scene size. */
|
|
3
|
+
export declare const GiftBow: FC;
|
|
4
|
+
interface GiftElfProps {
|
|
5
|
+
/** Draw the springy coral helper. Defaults to `false`. */
|
|
6
|
+
helper?: boolean;
|
|
7
|
+
/** Show the master's bound, annoyed pose. Defaults to `false`. */
|
|
8
|
+
stationary?: boolean;
|
|
9
|
+
}
|
|
10
|
+
/** Mischievous cartoon elves with short sleeves and independently posed expressions. */
|
|
11
|
+
export declare const GiftElf: FC<GiftElfProps>;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=GiftWrappingArt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GiftWrappingArt.d.ts","sourceRoot":"","sources":["../../../../src/new-year/components/NewYearGiftWrapping/GiftWrappingArt.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,gFAAgF;AAChF,eAAO,MAAM,OAAO,EAAE,EAgBrB,CAAC;AAYF,UAAU,YAAY;IACpB,0DAA0D;IAC1D,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,kEAAkE;IAClE,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,wFAAwF;AACxF,eAAO,MAAM,OAAO,EAAE,EAAE,CAAC,YAAY,CAyTpC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NewYearGiftWrapping.d.ts","sourceRoot":"","sources":["../../../../src/new-year/components/NewYearGiftWrapping/NewYearGiftWrapping.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAoB7D,yEAAyE;AACzE,QAAA,MAAM,mBAAmB,EAAE,EAyJ1B,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import { NewYearLabels } from '../models/labels';
|
|
2
1
|
/** English defaults for every New Year label. */
|
|
3
|
-
export declare const NEW_YEAR_LABELS:
|
|
2
|
+
export declare const NEW_YEAR_LABELS: {
|
|
3
|
+
giftWrappingToastMessage: string;
|
|
4
|
+
toastTitle: string;
|
|
5
|
+
snowToastMessage: string;
|
|
6
|
+
confettiToastMessage: string;
|
|
7
|
+
sleighToastMessage: string;
|
|
8
|
+
giftLabel: string;
|
|
9
|
+
};
|
|
4
10
|
//# sourceMappingURL=labels.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"labels.d.ts","sourceRoot":"","sources":["../../../src/new-year/constants/labels.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"labels.d.ts","sourceRoot":"","sources":["../../../src/new-year/constants/labels.ts"],"names":[],"mappings":"AAEA,iDAAiD;AACjD,eAAO,MAAM,eAAe;;;;;;;CAWH,CAAC"}
|
package/new-year/event.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../src/new-year/event.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../src/new-year/event.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAY9D,sCAAsC;AACtC,eAAO,MAAM,YAAY,EAAE,gBAsC1B,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 gift-wrapping scene. */
|
|
4
|
+
giftWrappingToastMessage?: string;
|
|
3
5
|
/** Title of every scene notification. */
|
|
4
6
|
toastTitle: string;
|
|
5
7
|
/** Notification message of the snow scene. */
|
|
@@ -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,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,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"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { GiftWrappingComposition } from './gift-wrapping-composition';
|
|
2
|
+
import { LottiePlayer } from './gift-wrapping-player';
|
|
3
|
+
/** Plays the prepared scene and releases every resource on interruption. */
|
|
4
|
+
export declare const animateGiftWrapping: (plan: GiftWrappingComposition, host: HTMLElement, player: LottiePlayer, onStop: (failed: boolean) => void) => (() => void);
|
|
5
|
+
//# sourceMappingURL=gift-wrapping-animation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gift-wrapping-animation.d.ts","sourceRoot":"","sources":["../../../src/new-year/utils/gift-wrapping-animation.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D,4EAA4E;AAC5E,eAAO,MAAM,mBAAmB,GAC9B,MAAM,uBAAuB,EAC7B,MAAM,WAAW,EACjB,QAAQ,YAAY,EACpB,QAAQ,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,KAChC,CAAC,MAAM,IAAI,CAqIb,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { GiftWrappingTarget } from './gift-wrapping-targets';
|
|
2
|
+
/** One authored timeline, independent of the display's refresh rate. */
|
|
3
|
+
export declare const GIFT_WRAPPING_MS = 16000;
|
|
4
|
+
interface Property {
|
|
5
|
+
a: number;
|
|
6
|
+
k: unknown;
|
|
7
|
+
}
|
|
8
|
+
interface Shape {
|
|
9
|
+
ty: string;
|
|
10
|
+
nm?: string;
|
|
11
|
+
it?: Shape[];
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
}
|
|
14
|
+
interface Transform {
|
|
15
|
+
a: Property;
|
|
16
|
+
p: Property;
|
|
17
|
+
s: Property;
|
|
18
|
+
r: Property;
|
|
19
|
+
o: Property;
|
|
20
|
+
}
|
|
21
|
+
interface Layer {
|
|
22
|
+
ty: number;
|
|
23
|
+
ind: number;
|
|
24
|
+
nm: string;
|
|
25
|
+
ip: number;
|
|
26
|
+
op: number;
|
|
27
|
+
st: number;
|
|
28
|
+
sr: number;
|
|
29
|
+
ks: Transform;
|
|
30
|
+
shapes: Shape[];
|
|
31
|
+
}
|
|
32
|
+
/** Measured stage plus native vector data consumed by the local SVG player. */
|
|
33
|
+
export interface GiftWrappingComposition {
|
|
34
|
+
target: GiftWrappingTarget;
|
|
35
|
+
animationData: {
|
|
36
|
+
v: string;
|
|
37
|
+
fr: number;
|
|
38
|
+
ip: number;
|
|
39
|
+
op: number;
|
|
40
|
+
w: number;
|
|
41
|
+
h: number;
|
|
42
|
+
nm: string;
|
|
43
|
+
ddd: number;
|
|
44
|
+
assets: never[];
|
|
45
|
+
layers: Layer[];
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
/** Author the scene once in composer coordinates; no layout is read during playback. */
|
|
49
|
+
export declare const buildGiftWrappingComposition: (target: GiftWrappingTarget, isMobile: boolean) => GiftWrappingComposition;
|
|
50
|
+
export {};
|
|
51
|
+
//# sourceMappingURL=gift-wrapping-composition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gift-wrapping-composition.d.ts","sourceRoot":"","sources":["../../../src/new-year/utils/gift-wrapping-composition.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,wEAAwE;AACxE,eAAO,MAAM,gBAAgB,QAAQ,CAAC;AAUtC,UAAU,QAAQ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|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/** Shared drawing coordinates keep short sleeves, hands and carried props aligned. */
|
|
2
|
+
export declare const ELF_RIG: {
|
|
3
|
+
shoulder: {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
};
|
|
7
|
+
upperArmLength: number;
|
|
8
|
+
palm: {
|
|
9
|
+
x: number;
|
|
10
|
+
y: number;
|
|
11
|
+
};
|
|
12
|
+
reel: {
|
|
13
|
+
x: number;
|
|
14
|
+
y: number;
|
|
15
|
+
};
|
|
16
|
+
head: {
|
|
17
|
+
x: number;
|
|
18
|
+
y: number;
|
|
19
|
+
};
|
|
20
|
+
cap: {
|
|
21
|
+
x: number;
|
|
22
|
+
y: number;
|
|
23
|
+
};
|
|
24
|
+
legPivotY: number;
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=gift-wrapping-rig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gift-wrapping-rig.d.ts","sourceRoot":"","sources":["../../../src/new-year/utils/gift-wrapping-rig.ts"],"names":[],"mappings":"AAAA,sFAAsF;AACtF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;CAQnB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CelebrationAnchors } from '../../models/celebration';
|
|
2
|
+
/** Measured stage and the single, read-only host anchor. */
|
|
3
|
+
export interface GiftWrappingTarget {
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
rtl: boolean;
|
|
7
|
+
box: {
|
|
8
|
+
left: number;
|
|
9
|
+
top: number;
|
|
10
|
+
width: number;
|
|
11
|
+
height: number;
|
|
12
|
+
};
|
|
13
|
+
source: {
|
|
14
|
+
element: HTMLElement;
|
|
15
|
+
rect: DOMRect;
|
|
16
|
+
} | null;
|
|
17
|
+
}
|
|
18
|
+
/** Returns a safe composer stage, or a small decorative parcel. */
|
|
19
|
+
export declare const getGiftWrappingTarget: (anchors: CelebrationAnchors, isMobile: boolean) => GiftWrappingTarget;
|
|
20
|
+
//# sourceMappingURL=gift-wrapping-targets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gift-wrapping-targets.d.ts","sourceRoot":"","sources":["../../../src/new-year/utils/gift-wrapping-targets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAEnE,4DAA4D;AAC5D,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,OAAO,CAAC;IACb,GAAG,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IAClE,MAAM,EAAE;QAAE,OAAO,EAAE,WAAW,CAAC;QAAC,IAAI,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;CACxD;AAID,mEAAmE;AACnE,eAAO,MAAM,qBAAqB,GAChC,SAAS,kBAAkB,EAC3B,UAAU,OAAO,KAChB,kBAoFF,CAAC"}
|