@epam/ai-dial-celebrations 1.2.0-dev.170
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/CelebrationEnvironmentContext-BxzY78Zg.js +14 -0
- package/components/CelebrationDecor/CelebrationDecor.d.ts +3 -0
- package/components/CelebrationDecor/CelebrationDecor.d.ts.map +1 -0
- package/components/FlyingCharacters/FlyingCharacters.d.ts +8 -0
- package/components/FlyingCharacters/FlyingCharacters.d.ts.map +1 -0
- package/constants/public-class-names.d.ts +10 -0
- package/constants/public-class-names.d.ts.map +1 -0
- package/context/CelebrationContext.d.ts +7 -0
- package/context/CelebrationContext.d.ts.map +1 -0
- package/context/CelebrationEnvironmentContext.d.ts +19 -0
- package/context/CelebrationEnvironmentContext.d.ts.map +1 -0
- package/flying-characters-2UJGx5Nh.js +36 -0
- package/halloween/components/Halloween/HalloweenBat.d.ts +6 -0
- package/halloween/components/Halloween/HalloweenBat.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenBats.d.ts +5 -0
- package/halloween/components/Halloween/HalloweenBats.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenBowling.d.ts +5 -0
- package/halloween/components/Halloween/HalloweenBowling.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenBurstOverlay.d.ts +10 -0
- package/halloween/components/Halloween/HalloweenBurstOverlay.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenCandy.d.ts +5 -0
- package/halloween/components/Halloween/HalloweenCandy.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenCandyArt.d.ts +13 -0
- package/halloween/components/Halloween/HalloweenCandyArt.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenCat.d.ts +3 -0
- package/halloween/components/Halloween/HalloweenCat.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenCatScene.d.ts +5 -0
- package/halloween/components/Halloween/HalloweenCatScene.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenCornerSpider.d.ts +12 -0
- package/halloween/components/Halloween/HalloweenCornerSpider.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenDecor.d.ts +4 -0
- package/halloween/components/Halloween/HalloweenDecor.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenExtras.d.ts +4 -0
- package/halloween/components/Halloween/HalloweenExtras.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenFootprints.d.ts +5 -0
- package/halloween/components/Halloween/HalloweenFootprints.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenGhost.d.ts +10 -0
- package/halloween/components/Halloween/HalloweenGhost.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenGhosts.d.ts +5 -0
- package/halloween/components/Halloween/HalloweenGhosts.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenMimic.d.ts +5 -0
- package/halloween/components/Halloween/HalloweenMimic.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenMummy.d.ts +5 -0
- package/halloween/components/Halloween/HalloweenMummy.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenNightFlight.d.ts +3 -0
- package/halloween/components/Halloween/HalloweenNightFlight.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenPortal.d.ts +3 -0
- package/halloween/components/Halloween/HalloweenPortal.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenPumpkin.d.ts +3 -0
- package/halloween/components/Halloween/HalloweenPumpkin.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenPumpkinSilk.d.ts +8 -0
- package/halloween/components/Halloween/HalloweenPumpkinSilk.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenRaven.d.ts +5 -0
- package/halloween/components/Halloween/HalloweenRaven.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenRavens.d.ts +5 -0
- package/halloween/components/Halloween/HalloweenRavens.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenSecrets.d.ts +4 -0
- package/halloween/components/Halloween/HalloweenSecrets.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenSpider.d.ts +7 -0
- package/halloween/components/Halloween/HalloweenSpider.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenSpiderTheft.d.ts +5 -0
- package/halloween/components/Halloween/HalloweenSpiderTheft.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenTrain.d.ts +9 -0
- package/halloween/components/Halloween/HalloweenTrain.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenTrainArtwork.d.ts +7 -0
- package/halloween/components/Halloween/HalloweenTrainArtwork.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenWebScene.d.ts +3 -0
- package/halloween/components/Halloween/HalloweenWebScene.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenWitch.d.ts +11 -0
- package/halloween/components/Halloween/HalloweenWitch.d.ts.map +1 -0
- package/halloween/components/Halloween/HalloweenWitches.d.ts +5 -0
- package/halloween/components/Halloween/HalloweenWitches.d.ts.map +1 -0
- package/halloween/constants/halloween.d.ts +76 -0
- package/halloween/constants/halloween.d.ts.map +1 -0
- package/halloween/constants/labels.d.ts +4 -0
- package/halloween/constants/labels.d.ts.map +1 -0
- package/halloween/event.d.ts +11 -0
- package/halloween/event.d.ts.map +1 -0
- package/halloween/index.d.ts +8 -0
- package/halloween/index.d.ts.map +1 -0
- package/halloween/models/labels.d.ts +40 -0
- package/halloween/models/labels.d.ts.map +1 -0
- package/halloween/types/halloween.d.ts +65 -0
- package/halloween/types/halloween.d.ts.map +1 -0
- package/halloween/utils/halloween-bat-animation.d.ts +10 -0
- package/halloween/utils/halloween-bat-animation.d.ts.map +1 -0
- package/halloween/utils/halloween-bat-plan.d.ts +53 -0
- package/halloween/utils/halloween-bat-plan.d.ts.map +1 -0
- package/halloween/utils/halloween-bat-targets.d.ts +13 -0
- package/halloween/utils/halloween-bat-targets.d.ts.map +1 -0
- package/halloween/utils/halloween-bowling.d.ts +24 -0
- package/halloween/utils/halloween-bowling.d.ts.map +1 -0
- package/halloween/utils/halloween-candy-animation.d.ts +4 -0
- package/halloween/utils/halloween-candy-animation.d.ts.map +1 -0
- package/halloween/utils/halloween-candy-plan.d.ts +68 -0
- package/halloween/utils/halloween-candy-plan.d.ts.map +1 -0
- package/halloween/utils/halloween-candy-targets.d.ts +12 -0
- package/halloween/utils/halloween-candy-targets.d.ts.map +1 -0
- package/halloween/utils/halloween-cat-animation.d.ts +11 -0
- package/halloween/utils/halloween-cat-animation.d.ts.map +1 -0
- package/halloween/utils/halloween-cat-plan.d.ts +69 -0
- package/halloween/utils/halloween-cat-plan.d.ts.map +1 -0
- package/halloween/utils/halloween-cat-targets.d.ts +13 -0
- package/halloween/utils/halloween-cat-targets.d.ts.map +1 -0
- package/halloween/utils/halloween-footprint-animation.d.ts +12 -0
- package/halloween/utils/halloween-footprint-animation.d.ts.map +1 -0
- package/halloween/utils/halloween-footprint-plan.d.ts +52 -0
- package/halloween/utils/halloween-footprint-plan.d.ts.map +1 -0
- package/halloween/utils/halloween-footprint-targets.d.ts +22 -0
- package/halloween/utils/halloween-footprint-targets.d.ts.map +1 -0
- package/halloween/utils/halloween-ghost-animation.d.ts +12 -0
- package/halloween/utils/halloween-ghost-animation.d.ts.map +1 -0
- package/halloween/utils/halloween-ghost-plan.d.ts +41 -0
- package/halloween/utils/halloween-ghost-plan.d.ts.map +1 -0
- package/halloween/utils/halloween-ghost-targets.d.ts +12 -0
- package/halloween/utils/halloween-ghost-targets.d.ts.map +1 -0
- package/halloween/utils/halloween-mimic.d.ts +21 -0
- package/halloween/utils/halloween-mimic.d.ts.map +1 -0
- package/halloween/utils/halloween-mummy.d.ts +17 -0
- package/halloween/utils/halloween-mummy.d.ts.map +1 -0
- package/halloween/utils/halloween-portal.d.ts +22 -0
- package/halloween/utils/halloween-portal.d.ts.map +1 -0
- package/halloween/utils/halloween-raven-animation.d.ts +19 -0
- package/halloween/utils/halloween-raven-animation.d.ts.map +1 -0
- package/halloween/utils/halloween-raven-plan.d.ts +68 -0
- package/halloween/utils/halloween-raven-plan.d.ts.map +1 -0
- package/halloween/utils/halloween-raven-targets.d.ts +24 -0
- package/halloween/utils/halloween-raven-targets.d.ts.map +1 -0
- package/halloween/utils/halloween-secret-history.d.ts +8 -0
- package/halloween/utils/halloween-secret-history.d.ts.map +1 -0
- package/halloween/utils/halloween-spider-theft.d.ts +25 -0
- package/halloween/utils/halloween-spider-theft.d.ts.map +1 -0
- package/halloween/utils/halloween-spider-wrap.d.ts +78 -0
- package/halloween/utils/halloween-spider-wrap.d.ts.map +1 -0
- package/halloween/utils/halloween-train.d.ts +29 -0
- package/halloween/utils/halloween-train.d.ts.map +1 -0
- package/halloween/utils/halloween-web-animation.d.ts +10 -0
- package/halloween/utils/halloween-web-animation.d.ts.map +1 -0
- package/halloween/utils/halloween-web-plan.d.ts +46 -0
- package/halloween/utils/halloween-web-plan.d.ts.map +1 -0
- package/halloween/utils/halloween-web-targets.d.ts +10 -0
- package/halloween/utils/halloween-web-targets.d.ts.map +1 -0
- package/halloween/utils/halloween-witch-animation.d.ts +12 -0
- package/halloween/utils/halloween-witch-animation.d.ts.map +1 -0
- package/halloween/utils/halloween-witch-plan.d.ts +69 -0
- package/halloween/utils/halloween-witch-plan.d.ts.map +1 -0
- package/halloween/utils/halloween-witch-targets.d.ts +20 -0
- package/halloween/utils/halloween-witch-targets.d.ts.map +1 -0
- package/halloween/utils/halloween.d.ts +101 -0
- package/halloween/utils/halloween.d.ts.map +1 -0
- package/halloween.js +11671 -0
- package/hooks/useReducedMotion.d.ts +3 -0
- package/hooks/useReducedMotion.d.ts.map +1 -0
- package/index.css +2 -0
- package/index.d.ts +5 -0
- package/index.d.ts.map +1 -0
- package/index.js +146 -0
- package/models/celebration.d.ts +123 -0
- package/models/celebration.d.ts.map +1 -0
- package/new-year/components/NewYear/NewYearDecor.d.ts +4 -0
- package/new-year/components/NewYear/NewYearDecor.d.ts.map +1 -0
- package/new-year/components/NewYear/NewYearParticles.d.ts +10 -0
- package/new-year/components/NewYear/NewYearParticles.d.ts.map +1 -0
- package/new-year/components/NewYear/NewYearSleigh.d.ts +3 -0
- package/new-year/components/NewYear/NewYearSleigh.d.ts.map +1 -0
- package/new-year/components/NewYear/particles.d.ts +5 -0
- package/new-year/components/NewYear/particles.d.ts.map +1 -0
- package/new-year/components/NewYear/types.d.ts +10 -0
- package/new-year/components/NewYear/types.d.ts.map +1 -0
- package/new-year/constants/labels.d.ts +4 -0
- package/new-year/constants/labels.d.ts.map +1 -0
- package/new-year/event.d.ts +4 -0
- package/new-year/event.d.ts.map +1 -0
- package/new-year/index.d.ts +7 -0
- package/new-year/index.d.ts.map +1 -0
- package/new-year/models/labels.d.ts +14 -0
- package/new-year/models/labels.d.ts.map +1 -0
- package/new-year.js +382 -0
- package/package.json +43 -0
- package/utils/celebration-history.d.ts +8 -0
- package/utils/celebration-history.d.ts.map +1 -0
- package/utils/celebration-snapshots.d.ts +21 -0
- package/utils/celebration-snapshots.d.ts.map +1 -0
- package/utils/celebration.d.ts +18 -0
- package/utils/celebration.d.ts.map +1 -0
- package/utils/flying-characters.d.ts +11 -0
- package/utils/flying-characters.d.ts.map +1 -0
- package/utils/host-anchors.d.ts +12 -0
- package/utils/host-anchors.d.ts.map +1 -0
package/new-year.js
ADDED
|
@@ -0,0 +1,382 @@
|
|
|
1
|
+
import { i as e, n as t } from "./CelebrationEnvironmentContext-BxzY78Zg.js";
|
|
2
|
+
import { n, t as r } from "./flying-characters-2UJGx5Nh.js";
|
|
3
|
+
import { mergeClasses as i } from "@epam/ai-dial-chat-shared";
|
|
4
|
+
import { memo as a, useId as o, useMemo as s } from "react";
|
|
5
|
+
import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
6
|
+
import { GhostIconButton as d } from "@epam/ai-dial-ui-kit";
|
|
7
|
+
//#region src/new-year/assets/new-year-logo.svg
|
|
8
|
+
var f = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2064%2064'%20fill='none'%3e%3cdefs%3e%3clinearGradient%20id='box'%20x1='14'%20y1='24'%20x2='52'%20y2='59'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2357988d'/%3e%3cstop%20offset='1'%20stop-color='%23184654'/%3e%3c/linearGradient%3e%3clinearGradient%20id='ribbon'%20x1='25'%20y1='9'%20x2='39'%20y2='59'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23fff1ba'/%3e%3cstop%20offset='1'%20stop-color='%23d6a449'/%3e%3c/linearGradient%3e%3c/defs%3e%3cpath%20d='M32%2024C7%2028%2013%206%2020%209c6%201%2012%2015%2012%2015Zm0%200C57%2028%2051%206%2044%209c-6%201-12%2015-12%2015Z'%20fill='url(%23ribbon)'%20stroke='%23e0be73'/%3e%3crect%20x='11'%20y='28'%20width='42'%20height='30'%20rx='4'%20fill='url(%23box)'%20stroke='%23a5cfc4'%20stroke-width='.8'/%3e%3crect%20x='8'%20y='24'%20width='48'%20height='12'%20rx='3'%20fill='url(%23box)'%20stroke='%23a5cfc4'%20stroke-width='.8'/%3e%3cpath%20d='M27%2024h10v34H27z'%20fill='url(%23ribbon)'/%3e%3cpath%20d='m49%202%201.4%204.6L55%208l-4.6%201.4L49%2014l-1.4-4.6L43%208l4.6-1.4ZM9%208l1%203%203%201-3%201-1%203-1-3-3-1%203-1Z'%20fill='%23f4d589'/%3e%3cpath%20d='m19%2041%201%203%203%201-3%201-1%203-1-3-3-1%203-1Zm26%203%201%203%203%201-3%201-1%203-1-3-3-1%203-1Z'%20fill='%23aad9ce'/%3e%3c/svg%3e", p = {
|
|
9
|
+
toastTitle: "Happy New Year!",
|
|
10
|
+
snowToastMessage: "A little winter magic. Send \"{{phrase}}\" in the start-page chat for a secret surprise.",
|
|
11
|
+
confettiToastMessage: "Here's to a bright new year! Send \"{{phrase}}\" in the start-page chat for a secret surprise.",
|
|
12
|
+
sleighToastMessage: "Special delivery from the night sky. Send \"{{phrase}}\" in the start-page chat for a secret surprise.",
|
|
13
|
+
giftLabel: "New Year gift"
|
|
14
|
+
}, m = {
|
|
15
|
+
garland: "_garland_14l3u_1",
|
|
16
|
+
giftButton: "_giftButton_14l3u_11",
|
|
17
|
+
giftLid: "_giftLid_14l3u_31",
|
|
18
|
+
particleLayer: "_particleLayer_14l3u_40",
|
|
19
|
+
particle: "_particle_14l3u_40",
|
|
20
|
+
"new-year-fall": "_new-year-fall_14l3u_1",
|
|
21
|
+
snowflake: "_snowflake_14l3u_59",
|
|
22
|
+
confetti: "_confetti_14l3u_64"
|
|
23
|
+
}, h = () => {
|
|
24
|
+
let e = o();
|
|
25
|
+
return /* @__PURE__ */ u("svg", {
|
|
26
|
+
viewBox: "0 0 100 100",
|
|
27
|
+
"aria-hidden": "true",
|
|
28
|
+
focusable: "false",
|
|
29
|
+
children: [
|
|
30
|
+
/* @__PURE__ */ u("defs", { children: [/* @__PURE__ */ u("linearGradient", {
|
|
31
|
+
id: `${e}-box`,
|
|
32
|
+
x2: "0.8",
|
|
33
|
+
y2: "1",
|
|
34
|
+
children: [
|
|
35
|
+
/* @__PURE__ */ l("stop", { stopColor: "#477f81" }),
|
|
36
|
+
/* @__PURE__ */ l("stop", {
|
|
37
|
+
offset: "0.48",
|
|
38
|
+
stopColor: "#23575d"
|
|
39
|
+
}),
|
|
40
|
+
/* @__PURE__ */ l("stop", {
|
|
41
|
+
offset: "1",
|
|
42
|
+
stopColor: "#123b4b"
|
|
43
|
+
})
|
|
44
|
+
]
|
|
45
|
+
}), /* @__PURE__ */ u("linearGradient", {
|
|
46
|
+
id: `${e}-ribbon`,
|
|
47
|
+
x2: "0.4",
|
|
48
|
+
y2: "1",
|
|
49
|
+
children: [
|
|
50
|
+
/* @__PURE__ */ l("stop", { stopColor: "#ffefb5" }),
|
|
51
|
+
/* @__PURE__ */ l("stop", {
|
|
52
|
+
offset: "0.55",
|
|
53
|
+
stopColor: "#e9b85d"
|
|
54
|
+
}),
|
|
55
|
+
/* @__PURE__ */ l("stop", {
|
|
56
|
+
offset: "1",
|
|
57
|
+
stopColor: "#a96b28"
|
|
58
|
+
})
|
|
59
|
+
]
|
|
60
|
+
})] }),
|
|
61
|
+
/* @__PURE__ */ l("ellipse", {
|
|
62
|
+
cx: "51",
|
|
63
|
+
cy: "91",
|
|
64
|
+
rx: "34",
|
|
65
|
+
ry: "5",
|
|
66
|
+
fill: "#173b4826"
|
|
67
|
+
}),
|
|
68
|
+
/* @__PURE__ */ l("path", {
|
|
69
|
+
d: "M17 44H83V82Q83 88 77 88H23Q17 88 17 82Z",
|
|
70
|
+
fill: `url(#${e}-box)`,
|
|
71
|
+
stroke: "#85b4b0",
|
|
72
|
+
strokeWidth: "0.8"
|
|
73
|
+
}),
|
|
74
|
+
/* @__PURE__ */ l("path", {
|
|
75
|
+
d: "M42 44H58V88H42Z",
|
|
76
|
+
fill: `url(#${e}-ribbon)`
|
|
77
|
+
}),
|
|
78
|
+
/* @__PURE__ */ l("path", {
|
|
79
|
+
d: "M18 55H82",
|
|
80
|
+
stroke: "#071f38",
|
|
81
|
+
strokeOpacity: "0.35",
|
|
82
|
+
strokeWidth: "3"
|
|
83
|
+
}),
|
|
84
|
+
/* @__PURE__ */ u("g", {
|
|
85
|
+
className: m.giftLid,
|
|
86
|
+
children: [
|
|
87
|
+
/* @__PURE__ */ l("path", {
|
|
88
|
+
d: "M51 31Q14 36 23 13Q31 3 51 31Z",
|
|
89
|
+
fill: `url(#${e}-ribbon)`,
|
|
90
|
+
stroke: "#fbe0a1",
|
|
91
|
+
strokeWidth: "0.9"
|
|
92
|
+
}),
|
|
93
|
+
/* @__PURE__ */ l("path", {
|
|
94
|
+
d: "M49 31Q86 36 77 13Q69 3 49 31Z",
|
|
95
|
+
fill: `url(#${e}-ribbon)`,
|
|
96
|
+
stroke: "#fbe0a1",
|
|
97
|
+
strokeWidth: "0.9"
|
|
98
|
+
}),
|
|
99
|
+
/* @__PURE__ */ l("path", {
|
|
100
|
+
d: "M46 28Q27 28 29 17Q33 14 46 28M54 28Q73 28 71 17Q67 14 54 28",
|
|
101
|
+
fill: "#aa732f"
|
|
102
|
+
}),
|
|
103
|
+
/* @__PURE__ */ l("rect", {
|
|
104
|
+
x: "12",
|
|
105
|
+
y: "32",
|
|
106
|
+
width: "76",
|
|
107
|
+
height: "19",
|
|
108
|
+
rx: "4",
|
|
109
|
+
fill: `url(#${e}-box)`,
|
|
110
|
+
stroke: "#9ac7bd",
|
|
111
|
+
strokeWidth: "0.8"
|
|
112
|
+
}),
|
|
113
|
+
/* @__PURE__ */ l("path", {
|
|
114
|
+
d: "M41 32H59V51H41Z",
|
|
115
|
+
fill: `url(#${e}-ribbon)`
|
|
116
|
+
}),
|
|
117
|
+
/* @__PURE__ */ l("rect", {
|
|
118
|
+
x: "44",
|
|
119
|
+
y: "26",
|
|
120
|
+
width: "12",
|
|
121
|
+
height: "9",
|
|
122
|
+
rx: "4",
|
|
123
|
+
fill: "#edc677"
|
|
124
|
+
})
|
|
125
|
+
]
|
|
126
|
+
}),
|
|
127
|
+
/* @__PURE__ */ l("path", {
|
|
128
|
+
d: "M27 62L29 68L35 70L29 72L27 78L25 72L19 70L25 68Z",
|
|
129
|
+
fill: "#a6ddd1",
|
|
130
|
+
opacity: "0.65"
|
|
131
|
+
}),
|
|
132
|
+
/* @__PURE__ */ l("path", {
|
|
133
|
+
d: "M73 60L75 65L80 67L75 69L73 74L71 69L66 67L71 65Z",
|
|
134
|
+
fill: "#a6ddd1",
|
|
135
|
+
opacity: "0.55"
|
|
136
|
+
})
|
|
137
|
+
]
|
|
138
|
+
});
|
|
139
|
+
}, g = a(({ onActivate: n }) => {
|
|
140
|
+
let { labels: r } = t();
|
|
141
|
+
return /* @__PURE__ */ u(c, { children: [/* @__PURE__ */ u("svg", {
|
|
142
|
+
className: m.garland,
|
|
143
|
+
viewBox: "0 0 1200 60",
|
|
144
|
+
preserveAspectRatio: "none",
|
|
145
|
+
"aria-hidden": "true",
|
|
146
|
+
focusable: "false",
|
|
147
|
+
children: [/* @__PURE__ */ l("path", {
|
|
148
|
+
d: "M0 5Q150 72 300 5Q450 72 600 5Q750 72 900 5Q1050 72 1200 5",
|
|
149
|
+
fill: "none",
|
|
150
|
+
stroke: "#638879",
|
|
151
|
+
strokeWidth: "1.1"
|
|
152
|
+
}), Array.from({ length: 24 }, (e, t) => {
|
|
153
|
+
let n = 25 + t * 50, r = n % 300 / 300;
|
|
154
|
+
return /* @__PURE__ */ l("ellipse", {
|
|
155
|
+
cx: n,
|
|
156
|
+
cy: 5 + 134 * r * (1 - r) + 5,
|
|
157
|
+
rx: "3",
|
|
158
|
+
ry: "5",
|
|
159
|
+
fill: [
|
|
160
|
+
"#d8b775",
|
|
161
|
+
"#83beb2",
|
|
162
|
+
"#c89490"
|
|
163
|
+
][t % 3]
|
|
164
|
+
}, t);
|
|
165
|
+
})]
|
|
166
|
+
}), /* @__PURE__ */ l("div", {
|
|
167
|
+
className: "absolute bottom-2 end-2 desktop:bottom-4 desktop:end-4",
|
|
168
|
+
children: /* @__PURE__ */ l(d, {
|
|
169
|
+
className: i(m.giftButton, e.trigger),
|
|
170
|
+
icon: /* @__PURE__ */ l(h, {}),
|
|
171
|
+
"aria-label": r.giftLabel ?? p.giftLabel,
|
|
172
|
+
onClick: n
|
|
173
|
+
})
|
|
174
|
+
})] });
|
|
175
|
+
}), _ = /* @__PURE__ */ function(e) {
|
|
176
|
+
return e.Snow = "snow", e.Confetti = "confetti", e.Sleigh = "sleigh", e;
|
|
177
|
+
}({}), v = (e, t) => {
|
|
178
|
+
let n = e === _.Snow, r = n ? t ? 28 : 48 : t ? 36 : 64;
|
|
179
|
+
return Array.from({ length: r }, (e, t) => {
|
|
180
|
+
let i = 3 + t / r * 94, a = n ? 3 + Math.random() * 4 : 4 + Math.random() * 4;
|
|
181
|
+
return {
|
|
182
|
+
"--particle-x": `${i.toFixed(1)}vw`,
|
|
183
|
+
"--particle-rest-y": `${12 + Math.random() * 70}vh`,
|
|
184
|
+
"--particle-size": `${a.toFixed(1)}px`,
|
|
185
|
+
"--particle-drift": `${((t % 2 == 0 ? 1 : -1) * (12 + Math.random() * 30)).toFixed(1)}px`,
|
|
186
|
+
"--particle-duration": `${(n ? 7 + Math.random() * 2 : 5 + Math.random()).toFixed(2)}s`,
|
|
187
|
+
"--particle-delay": `${(Math.random() * 2).toFixed(2)}s`,
|
|
188
|
+
"--particle-turn": `${n ? 0 : 360 + Math.random() * 360}deg`,
|
|
189
|
+
"--particle-color": n ? "#c5e5ed" : [
|
|
190
|
+
"#edc777",
|
|
191
|
+
"#74cabb",
|
|
192
|
+
"#d192a1",
|
|
193
|
+
"#99b4ec"
|
|
194
|
+
][t % 4]
|
|
195
|
+
};
|
|
196
|
+
});
|
|
197
|
+
}, y = ({ scene: e }) => {
|
|
198
|
+
let n = t().isMobile, r = s(() => v(e, n), [e, n]);
|
|
199
|
+
return /* @__PURE__ */ l("div", {
|
|
200
|
+
className: m.particleLayer,
|
|
201
|
+
"aria-hidden": "true",
|
|
202
|
+
children: r.map((t, n) => /* @__PURE__ */ l("span", {
|
|
203
|
+
style: t,
|
|
204
|
+
className: i(m.particle, e === _.Snow ? m.snowflake : m.confetti)
|
|
205
|
+
}, n))
|
|
206
|
+
});
|
|
207
|
+
}, b = () => /* @__PURE__ */ l(y, { scene: _.Snow }), x = () => /* @__PURE__ */ l(y, { scene: _.Confetti });
|
|
208
|
+
a(y);
|
|
209
|
+
//#endregion
|
|
210
|
+
//#region src/new-year/components/NewYear/NewYearSleigh.tsx
|
|
211
|
+
var S = () => {
|
|
212
|
+
let e = o();
|
|
213
|
+
return /* @__PURE__ */ u("svg", {
|
|
214
|
+
viewBox: "0 0 180 95",
|
|
215
|
+
"aria-hidden": "true",
|
|
216
|
+
focusable: "false",
|
|
217
|
+
children: [
|
|
218
|
+
/* @__PURE__ */ l("defs", { children: /* @__PURE__ */ u("linearGradient", {
|
|
219
|
+
id: `${e}-sleigh`,
|
|
220
|
+
x2: "0.7",
|
|
221
|
+
y2: "1",
|
|
222
|
+
children: [
|
|
223
|
+
/* @__PURE__ */ l("stop", { stopColor: "#e28487" }),
|
|
224
|
+
/* @__PURE__ */ l("stop", {
|
|
225
|
+
offset: "0.4",
|
|
226
|
+
stopColor: "#aa3f59"
|
|
227
|
+
}),
|
|
228
|
+
/* @__PURE__ */ l("stop", {
|
|
229
|
+
offset: "1",
|
|
230
|
+
stopColor: "#632e47"
|
|
231
|
+
})
|
|
232
|
+
]
|
|
233
|
+
}) }),
|
|
234
|
+
/* @__PURE__ */ l("path", {
|
|
235
|
+
d: "M68 61Q93 63 116 43",
|
|
236
|
+
stroke: "#dbbd77",
|
|
237
|
+
strokeWidth: "1.4",
|
|
238
|
+
fill: "none"
|
|
239
|
+
}),
|
|
240
|
+
/* @__PURE__ */ l("rect", {
|
|
241
|
+
x: "19",
|
|
242
|
+
y: "37",
|
|
243
|
+
width: "22",
|
|
244
|
+
height: "25",
|
|
245
|
+
rx: "2",
|
|
246
|
+
fill: "#479b8c"
|
|
247
|
+
}),
|
|
248
|
+
/* @__PURE__ */ l("path", {
|
|
249
|
+
d: "M30 37V62M19 44H41",
|
|
250
|
+
stroke: "#f3d68a",
|
|
251
|
+
strokeWidth: "4"
|
|
252
|
+
}),
|
|
253
|
+
/* @__PURE__ */ l("path", {
|
|
254
|
+
d: "M35 36L59 29L66 53L43 60Z",
|
|
255
|
+
fill: "#dbb569"
|
|
256
|
+
}),
|
|
257
|
+
/* @__PURE__ */ l("path", {
|
|
258
|
+
d: "M47 32L55 57M39 45L62 39",
|
|
259
|
+
stroke: "#f4dfb2",
|
|
260
|
+
strokeWidth: "4"
|
|
261
|
+
}),
|
|
262
|
+
/* @__PURE__ */ l("path", {
|
|
263
|
+
d: "M14 51Q23 61 47 57L64 49Q69 43 76 44L73 59Q67 75 31 72L23 64L18 66Z",
|
|
264
|
+
fill: `url(#${e}-sleigh)`,
|
|
265
|
+
stroke: "#e5ba7b",
|
|
266
|
+
strokeWidth: "1.1"
|
|
267
|
+
}),
|
|
268
|
+
/* @__PURE__ */ l("path", {
|
|
269
|
+
d: "M30 71L34 79M61 68L65 77M17 80Q47 87 80 73Q86 69 82 65",
|
|
270
|
+
fill: "none",
|
|
271
|
+
stroke: "#f3d395",
|
|
272
|
+
strokeWidth: "2.8",
|
|
273
|
+
strokeLinecap: "round"
|
|
274
|
+
}),
|
|
275
|
+
/* @__PURE__ */ l("path", {
|
|
276
|
+
d: "M110 49L102 56L94 55M113 50L110 62L98 67M132 46L143 52L154 48M133 43L141 43L149 35",
|
|
277
|
+
fill: "none",
|
|
278
|
+
stroke: "#af805b",
|
|
279
|
+
strokeWidth: "4.1",
|
|
280
|
+
strokeLinecap: "round"
|
|
281
|
+
}),
|
|
282
|
+
/* @__PURE__ */ l("path", {
|
|
283
|
+
d: "M108 40Q118 32 131 36L144 26L146 15L154 18L157 27L150 36L138 47Q121 56 107 48Z",
|
|
284
|
+
fill: "#ae805b",
|
|
285
|
+
stroke: "#e9cda7",
|
|
286
|
+
strokeWidth: "0.7"
|
|
287
|
+
}),
|
|
288
|
+
/* @__PURE__ */ l("path", {
|
|
289
|
+
d: "M145 19L136 12L138 6M139 14L131 15M151 20L155 9L152 3M155 11L163 6",
|
|
290
|
+
fill: "none",
|
|
291
|
+
stroke: "#d4b58a",
|
|
292
|
+
strokeWidth: "1.8",
|
|
293
|
+
strokeLinecap: "round"
|
|
294
|
+
}),
|
|
295
|
+
/* @__PURE__ */ l("path", {
|
|
296
|
+
d: "M144 21L136 18L140 27",
|
|
297
|
+
fill: "#c99d74"
|
|
298
|
+
}),
|
|
299
|
+
/* @__PURE__ */ l("circle", {
|
|
300
|
+
cx: "153",
|
|
301
|
+
cy: "25",
|
|
302
|
+
r: "1.2",
|
|
303
|
+
fill: "#291d31"
|
|
304
|
+
}),
|
|
305
|
+
/* @__PURE__ */ l("circle", {
|
|
306
|
+
cx: "157",
|
|
307
|
+
cy: "28",
|
|
308
|
+
r: "2.1",
|
|
309
|
+
fill: "#d6817c"
|
|
310
|
+
}),
|
|
311
|
+
/* @__PURE__ */ l("path", {
|
|
312
|
+
d: "M110 41L103 35L104 45",
|
|
313
|
+
fill: "#c99d74"
|
|
314
|
+
}),
|
|
315
|
+
/* @__PURE__ */ l("path", {
|
|
316
|
+
d: "M131 35L138 44",
|
|
317
|
+
stroke: "#d14f5c",
|
|
318
|
+
strokeWidth: "3.5"
|
|
319
|
+
}),
|
|
320
|
+
/* @__PURE__ */ l("circle", {
|
|
321
|
+
cx: "138",
|
|
322
|
+
cy: "44",
|
|
323
|
+
r: "2",
|
|
324
|
+
fill: "#ffe1a0"
|
|
325
|
+
}),
|
|
326
|
+
/* @__PURE__ */ l("path", {
|
|
327
|
+
d: "M6 35L7 39L11 40L7 41L6 45L5 41L1 40L5 39M91 17L92 21L96 22L92 23L91 27L90 23L86 22L90 21",
|
|
328
|
+
fill: "#e7d5a4",
|
|
329
|
+
opacity: "0.75"
|
|
330
|
+
})
|
|
331
|
+
]
|
|
332
|
+
});
|
|
333
|
+
}, C = a(() => {
|
|
334
|
+
let e = t().isMobile;
|
|
335
|
+
return /* @__PURE__ */ l(n, {
|
|
336
|
+
flights: s(() => r({
|
|
337
|
+
count: e ? 2 : 3,
|
|
338
|
+
sizesPx: e ? [100, 115] : [
|
|
339
|
+
125,
|
|
340
|
+
145,
|
|
341
|
+
165
|
|
342
|
+
],
|
|
343
|
+
durationSeconds: 8.4,
|
|
344
|
+
staggerSeconds: .85
|
|
345
|
+
}), [e]),
|
|
346
|
+
Character: S
|
|
347
|
+
});
|
|
348
|
+
}), w = {
|
|
349
|
+
id: "new-year",
|
|
350
|
+
iconUrl: f,
|
|
351
|
+
Decoration: g,
|
|
352
|
+
scenes: [
|
|
353
|
+
{
|
|
354
|
+
id: _.Snow,
|
|
355
|
+
Component: b,
|
|
356
|
+
durationMs: 12e3,
|
|
357
|
+
labelId: "snowToastMessage"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
id: _.Confetti,
|
|
361
|
+
Component: x,
|
|
362
|
+
durationMs: 9e3,
|
|
363
|
+
labelId: "confettiToastMessage"
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
id: _.Sleigh,
|
|
367
|
+
Component: C,
|
|
368
|
+
durationMs: 12e3,
|
|
369
|
+
labelId: "sleighToastMessage"
|
|
370
|
+
}
|
|
371
|
+
],
|
|
372
|
+
clickSceneIds: Object.values(_),
|
|
373
|
+
labels: { ...p },
|
|
374
|
+
titleLabelId: "toastTitle",
|
|
375
|
+
secretTrigger: {
|
|
376
|
+
phrases: ["happy new year"],
|
|
377
|
+
hintPhrase: "happy new year",
|
|
378
|
+
sceneIds: [_.Confetti]
|
|
379
|
+
}
|
|
380
|
+
}, T = w;
|
|
381
|
+
//#endregion
|
|
382
|
+
export { p as NEW_YEAR_LABELS, _ as NewYearScene, T as default, w as newYearEvent };
|
package/package.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@epam/ai-dial-celebrations",
|
|
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.170",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./index.js",
|
|
8
|
+
"module": "./index.js",
|
|
9
|
+
"types": "./index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
"./package.json": "./package.json",
|
|
12
|
+
"./styles.css": "./index.css",
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./index.d.ts",
|
|
15
|
+
"import": "./index.js",
|
|
16
|
+
"default": "./index.js"
|
|
17
|
+
},
|
|
18
|
+
"./halloween": {
|
|
19
|
+
"types": "./halloween/index.d.ts",
|
|
20
|
+
"import": "./halloween.js",
|
|
21
|
+
"default": "./halloween.js"
|
|
22
|
+
},
|
|
23
|
+
"./new-year": {
|
|
24
|
+
"types": "./new-year/index.d.ts",
|
|
25
|
+
"import": "./new-year.js",
|
|
26
|
+
"default": "./new-year.js"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"react-error-boundary": "^6.1.5"
|
|
31
|
+
},
|
|
32
|
+
"peerDependencies": {
|
|
33
|
+
"@epam/ai-dial-chat-shared": "1.2.0-dev.170",
|
|
34
|
+
"@epam/ai-dial-ui-kit": "^0.15.0-dev.20",
|
|
35
|
+
"react": "^19.2.8",
|
|
36
|
+
"react-dom": "^19.2.8"
|
|
37
|
+
},
|
|
38
|
+
"repository": {
|
|
39
|
+
"type": "git",
|
|
40
|
+
"url": "git+https://github.com/epam/ai-dial-chat.git",
|
|
41
|
+
"directory": "libs/celebrations"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CelebrationAnchors } from '../models/celebration';
|
|
2
|
+
export interface CelebrationHistoryRow {
|
|
3
|
+
element: HTMLElement;
|
|
4
|
+
rect: DOMRect;
|
|
5
|
+
}
|
|
6
|
+
/** Only fully visible, idle rows are eligible; never borrow a focused control. */
|
|
7
|
+
export declare const getCelebrationHistoryRows: (anchors: CelebrationAnchors) => CelebrationHistoryRow[];
|
|
8
|
+
//# sourceMappingURL=celebration-history.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"celebration-history.d.ts","sourceRoot":"","sources":["../../src/utils/celebration-history.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAGhE,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,WAAW,CAAC;IACrB,IAAI,EAAE,OAAO,CAAC;CACf;AAED,kFAAkF;AAClF,eAAO,MAAM,yBAAyB,GACpC,SAAS,kBAAkB,KAC1B,qBAAqB,EA0DvB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/** A live application element paired with its pre-animation viewport bounds. */
|
|
2
|
+
export interface CelebrationSnapshotTarget {
|
|
3
|
+
element: HTMLElement;
|
|
4
|
+
rect: DOMRect;
|
|
5
|
+
}
|
|
6
|
+
interface SnapshotAnimationOptions {
|
|
7
|
+
durationMs: number;
|
|
8
|
+
hideAt: number | ((index: number) => number);
|
|
9
|
+
restoreAt: number;
|
|
10
|
+
frames: (rect: DOMRect, index: number) => Keyframe[];
|
|
11
|
+
decorateCopy?: (copy: HTMLElement, index: number) => void;
|
|
12
|
+
/** Cropped fragments can mask just their cutout instead of hiding the whole source. */
|
|
13
|
+
hideOriginal?: boolean;
|
|
14
|
+
onStop?: () => void;
|
|
15
|
+
/** Align snapshots with another actor after all copies have been prepared. */
|
|
16
|
+
startTime?: number;
|
|
17
|
+
}
|
|
18
|
+
/** All borrowing lives in the decorative layer; canceling WAAPI restores the real UI. */
|
|
19
|
+
export declare const animateCelebrationSnapshots: (targets: readonly CelebrationSnapshotTarget[], host: HTMLElement, options: SnapshotAnimationOptions) => (() => void);
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=celebration-snapshots.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"celebration-snapshots.d.ts","sourceRoot":"","sources":["../../src/utils/celebration-snapshots.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,WAAW,CAAC;IACrB,IAAI,EAAE,OAAO,CAAC;CACf;AACD,UAAU,wBAAwB;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC,CAAC;IAC7C,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,KAAK,QAAQ,EAAE,CAAC;IACrD,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1D,uFAAuF;IACvF,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,8EAA8E;IAC9E,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA8FD,yFAAyF;AACzF,eAAO,MAAM,2BAA2B,GACtC,SAAS,SAAS,yBAAyB,EAAE,EAC7C,MAAM,WAAW,EACjB,SAAS,wBAAwB,KAChC,CAAC,MAAM,IAAI,CAmIb,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CelebrationEvent, CelebrationEventSelection } from '../models/celebration';
|
|
2
|
+
/** Keep letters from every locale; a phrase must still match the entire input. */
|
|
3
|
+
export declare const normalizeCelebrationPhrase: (text: string) => string;
|
|
4
|
+
export declare const matchesCelebrationPhrase: (text: string, phrases: readonly string[]) => boolean;
|
|
5
|
+
/** Empty and single-scene events are valid, too. */
|
|
6
|
+
export declare const pickCelebrationScene: (ids: readonly string[], previous?: string) => string | undefined;
|
|
7
|
+
/** Replaces every `{{phrase}}` placeholder in a label. */
|
|
8
|
+
export declare const interpolateCelebrationLabel: (label: string, phrase: string) => string;
|
|
9
|
+
export interface CelebrationPools {
|
|
10
|
+
enabledSceneIds: ReadonlySet<string>;
|
|
11
|
+
clickSceneIds: readonly string[];
|
|
12
|
+
secretSceneIds: readonly string[];
|
|
13
|
+
enabledDecorBehaviors: ReadonlySet<string>;
|
|
14
|
+
isSecretEnabled: boolean;
|
|
15
|
+
}
|
|
16
|
+
/** Applies a host selection to an event; unknown ids simply drop out. */
|
|
17
|
+
export declare const resolveCelebrationPools: (event: CelebrationEvent, selection?: CelebrationEventSelection) => CelebrationPools;
|
|
18
|
+
//# sourceMappingURL=celebration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"celebration.d.ts","sourceRoot":"","sources":["../../src/utils/celebration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,yBAAyB,EAC1B,MAAM,uBAAuB,CAAC;AAE/B,kFAAkF;AAClF,eAAO,MAAM,0BAA0B,GAAI,MAAM,MAAM,KAAG,MAK/C,CAAC;AAEZ,eAAO,MAAM,wBAAwB,GACnC,MAAM,MAAM,EACZ,SAAS,SAAS,MAAM,EAAE,KACzB,OAMF,CAAC;AAEF,oDAAoD;AACpD,eAAO,MAAM,oBAAoB,GAC/B,KAAK,SAAS,MAAM,EAAE,EACtB,WAAW,MAAM,KAChB,MAAM,GAAG,SAKX,CAAC;AAEF,0DAA0D;AAC1D,eAAO,MAAM,2BAA2B,GACtC,OAAO,MAAM,EACb,QAAQ,MAAM,KACb,MAAwD,CAAC;AAE5D,MAAM,WAAW,gBAAgB;IAC/B,eAAe,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACrC,aAAa,EAAE,SAAS,MAAM,EAAE,CAAC;IACjC,cAAc,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,qBAAqB,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC3C,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED,yEAAyE;AACzE,eAAO,MAAM,uBAAuB,GAClC,OAAO,gBAAgB,EACvB,YAAW,yBAA8B,KACxC,gBAuBF,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
interface FlightOptions {
|
|
3
|
+
count: number;
|
|
4
|
+
sizesPx: readonly number[];
|
|
5
|
+
durationSeconds: number;
|
|
6
|
+
staggerSeconds: number;
|
|
7
|
+
}
|
|
8
|
+
/** Viewport paths shared by decorative characters, independent of reading direction. */
|
|
9
|
+
export declare const buildFlyingCharacterPaths: ({ count, sizesPx, durationSeconds, staggerSeconds, }: FlightOptions) => CSSProperties[];
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=flying-characters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flying-characters.d.ts","sourceRoot":"","sources":["../../src/utils/flying-characters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,UAAU,aAAa;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,wFAAwF;AACxF,eAAO,MAAM,yBAAyB,GAAI,sDAKvC,aAAa,KAAG,aAAa,EAiB5B,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CelebrationAnchors } from '../models/celebration';
|
|
2
|
+
/** Selector of conversation links in the host history, or `null` without history anchors. */
|
|
3
|
+
export declare const getHistoryLinkSelector: ({ historyContainer, historyRowLink, }: CelebrationAnchors) => string | null;
|
|
4
|
+
/** Selector of the host history container, or `null` without one. */
|
|
5
|
+
export declare const getHistoryContainerSelector: ({ historyContainer, }: CelebrationAnchors) => string | null;
|
|
6
|
+
/** Selector of headings and buttons inside the host history, or `null` without one. */
|
|
7
|
+
export declare const getHistoryControlsSelector: ({ historyContainer, }: CelebrationAnchors) => string | null;
|
|
8
|
+
/** Returns every element matching a selector, or none for a missing selector. */
|
|
9
|
+
export declare const queryAllOrNone: <T extends Element = Element>(selector: string | null, root?: ParentNode) => T[];
|
|
10
|
+
/** Returns the start-page region around an element. */
|
|
11
|
+
export declare const findWelcomeRegion: (element: Element | null | undefined, { welcomeRegion }: CelebrationAnchors) => Element | null;
|
|
12
|
+
//# sourceMappingURL=host-anchors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-anchors.d.ts","sourceRoot":"","sources":["../../src/utils/host-anchors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAIhE,6FAA6F;AAC7F,eAAO,MAAM,sBAAsB,GAAI,uCAGpC,kBAAkB,KAAG,MAAM,GAAG,IAGvB,CAAC;AAEX,qEAAqE;AACrE,eAAO,MAAM,2BAA2B,GAAI,uBAEzC,kBAAkB,KAAG,MAAM,GAAG,IACiB,CAAC;AAEnD,uFAAuF;AACvF,eAAO,MAAM,0BAA0B,GAAI,uBAExC,kBAAkB,KAAG,MAAM,GAAG,IAGvB,CAAC;AAEX,iFAAiF;AACjF,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,OAAO,GAAG,OAAO,EACxD,UAAU,MAAM,GAAG,IAAI,EACvB,OAAM,UAAqB,KAC1B,CAAC,EAAsE,CAAC;AAE3E,uDAAuD;AACvD,eAAO,MAAM,iBAAiB,GAC5B,SAAS,OAAO,GAAG,IAAI,GAAG,SAAS,EACnC,mBAAmB,kBAAkB,KACpC,OAAO,GAAG,IACsD,CAAC"}
|