@cuemath/leap 2.8.25-rj-8 → 2.8.25-rj-10
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/dist/features/circle-games/leaderboard/comps/info-bar/info-bar-styled.js +12 -0
- package/dist/features/circle-games/leaderboard/comps/info-bar/info-bar-styled.js.map +1 -0
- package/dist/features/circle-games/leaderboard/comps/info-bar/info-bar.js +29 -0
- package/dist/features/circle-games/leaderboard/comps/info-bar/info-bar.js.map +1 -0
- package/dist/features/circle-games/leaderboard/leaderboard.js +75 -70
- package/dist/features/circle-games/leaderboard/leaderboard.js.map +1 -1
- package/dist/index.d.ts +16 -1
- package/dist/index.js +187 -185
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
@@ -0,0 +1,12 @@
|
|
1
|
+
import o from "styled-components";
|
2
|
+
import e from "../../../../ui/layout/flex-view.js";
|
3
|
+
const t = o(e)`
|
4
|
+
padding: ${({ paddingX: r, paddingY: p }) => `${p}px ${r}px`};
|
5
|
+
margin: ${({ marginX: r, marginY: p }) => `${p}px ${r}px`};
|
6
|
+
border-width: 1px;
|
7
|
+
border-style: solid;
|
8
|
+
`;
|
9
|
+
export {
|
10
|
+
t as InfoBarWrapper
|
11
|
+
};
|
12
|
+
//# sourceMappingURL=info-bar-styled.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"info-bar-styled.js","sources":["../../../../../../src/features/circle-games/leaderboard/comps/info-bar/info-bar-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../../ui/layout/flex-view';\n\nexport interface IInfoBarWrapperProps {\n paddingX?: number;\n paddingY?: number;\n marginX?: number;\n marginY?: number;\n}\n\nexport const InfoBarWrapper = styled(FlexView)<IInfoBarWrapperProps>`\n padding: ${({ paddingX, paddingY }) => `${paddingY}px ${paddingX}px`};\n margin: ${({ marginX, marginY }) => `${marginY}px ${marginX}px`};\n border-width: 1px;\n border-style: solid;\n`;\n"],"names":["InfoBarWrapper","styled","FlexView","paddingX","paddingY","marginX","marginY"],"mappings":";;AAWa,MAAAA,IAAiBC,EAAOC,CAAQ;AAAA,aAChC,CAAC,EAAE,UAAAC,GAAU,UAAAC,QAAe,GAAGA,CAAQ,MAAMD,CAAQ,IAAI;AAAA,YAC1D,CAAC,EAAE,SAAAE,GAAS,SAAAC,QAAc,GAAGA,CAAO,MAAMD,CAAO,IAAI;AAAA;AAAA;AAAA;"}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
2
|
+
import { useMemo as b } from "react";
|
3
|
+
import { InfoBarWrapper as d } from "./info-bar-styled.js";
|
4
|
+
const l = (o) => ({ backgroundColor: `${o}_6`, borderColor: `${o}_4` }), f = ({
|
5
|
+
children: o,
|
6
|
+
hue: r,
|
7
|
+
marginX: n = 0,
|
8
|
+
marginY: t = 0,
|
9
|
+
paddingX: e = 0,
|
10
|
+
paddingY: m = 0
|
11
|
+
}) => {
|
12
|
+
const { backgroundColor: c, borderColor: p } = b(() => l(r), [r]);
|
13
|
+
return /* @__PURE__ */ a(
|
14
|
+
d,
|
15
|
+
{
|
16
|
+
$background: c,
|
17
|
+
$borderColor: p,
|
18
|
+
marginX: n,
|
19
|
+
marginY: t,
|
20
|
+
paddingX: e,
|
21
|
+
paddingY: m,
|
22
|
+
children: o
|
23
|
+
}
|
24
|
+
);
|
25
|
+
};
|
26
|
+
export {
|
27
|
+
f as InfoBar
|
28
|
+
};
|
29
|
+
//# sourceMappingURL=info-bar.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"info-bar.js","sources":["../../../../../../src/features/circle-games/leaderboard/comps/info-bar/info-bar.tsx"],"sourcesContent":["import type { TColorNames, THueNames } from '../../../../ui/types';\nimport type { IInfoBarProps } from './info-bar-types';\n\nimport { useMemo } from 'react';\n\nimport * as Styled from './info-bar-styled';\n\nconst computeColorsFromHue = (\n hue: THueNames,\n): { backgroundColor: TColorNames; borderColor: TColorNames } => {\n return { backgroundColor: `${hue}_6`, borderColor: `${hue}_4` };\n};\n\nexport const InfoBar: React.FC<IInfoBarProps> = ({\n children,\n hue,\n marginX = 0,\n marginY = 0,\n paddingX = 0,\n paddingY = 0,\n}) => {\n const { backgroundColor, borderColor } = useMemo(() => computeColorsFromHue(hue), [hue]);\n\n return (\n <Styled.InfoBarWrapper\n $background={backgroundColor}\n $borderColor={borderColor}\n marginX={marginX}\n marginY={marginY}\n paddingX={paddingX}\n paddingY={paddingY}\n >\n {children}\n </Styled.InfoBarWrapper>\n );\n};\n"],"names":["computeColorsFromHue","hue","InfoBar","children","marginX","marginY","paddingX","paddingY","backgroundColor","borderColor","useMemo","jsx","Styled.InfoBarWrapper"],"mappings":";;;AAOA,MAAMA,IAAuB,CAC3BC,OAEO,EAAE,iBAAiB,GAAGA,CAAG,MAAM,aAAa,GAAGA,CAAG,SAG9CC,IAAmC,CAAC;AAAA,EAC/C,UAAAC;AAAA,EACA,KAAAF;AAAA,EACA,SAAAG,IAAU;AAAA,EACV,SAAAC,IAAU;AAAA,EACV,UAAAC,IAAW;AAAA,EACX,UAAAC,IAAW;AACb,MAAM;AACE,QAAA,EAAE,iBAAAC,GAAiB,aAAAC,EAAA,IAAgBC,EAAQ,MAAMV,EAAqBC,CAAG,GAAG,CAACA,CAAG,CAAC;AAGrF,SAAA,gBAAAU;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,aAAaJ;AAAA,MACb,cAAcC;AAAA,MACd,SAAAL;AAAA,MACA,SAAAC;AAAA,MACA,UAAAC;AAAA,MACA,UAAAC;AAAA,MAEC,UAAAJ;AAAA,IAAA;AAAA,EAAA;AAGP;"}
|
@@ -1,21 +1,21 @@
|
|
1
1
|
import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
2
|
-
import { useState as T, useEffect as
|
3
|
-
import { ILLUSTRATIONS as
|
4
|
-
import { CircularLoader as
|
5
|
-
import
|
6
|
-
import { useCircleSounds as
|
7
|
-
import { Banner as
|
8
|
-
import { LeaderboardItemWithObserver as
|
9
|
-
import { NavigationButton as
|
10
|
-
import { Timer as
|
2
|
+
import { useState as T, useEffect as d } from "react";
|
3
|
+
import { ILLUSTRATIONS as v } from "../../../assets/illustrations/illustrations.js";
|
4
|
+
import { CircularLoader as w } from "../../ui/loader/circular-loader/circular-loader.js";
|
5
|
+
import H from "../../ui/text/text.js";
|
6
|
+
import { useCircleSounds as U } from "../hooks/use-circle-sounds/use-circle-sounds.js";
|
7
|
+
import { Banner as u } from "./comps/banner/banner.js";
|
8
|
+
import { LeaderboardItemWithObserver as q } from "./comps/leaderboard-item/leaderboard-item.js";
|
9
|
+
import { NavigationButton as z } from "./comps/navigation-button/navigation-button.js";
|
10
|
+
import { Timer as G } from "./comps/timer/timer.js";
|
11
11
|
import { ELeaderboardType as t } from "./enums/leaderboard-type-enum.js";
|
12
|
-
import { Leaderboard as
|
13
|
-
import { useTimer as
|
14
|
-
const
|
12
|
+
import { Leaderboard as J, LeaderboardContainer as Q, BannerWrapper as V, TournamentBannerCustContainer as X, TrophyWrapper as Z, ItemsWrapper as D, Banner as ee, ActionButtonWrapper as re } from "./leaderboard-styled.js";
|
13
|
+
import { useTimer as te } from "./hooks/useTimer.js";
|
14
|
+
const E = {
|
15
15
|
[t.ALL_TIME_STREAK]: () => import("../../../assets/lotties/circle/elite-circle-lottie.json.js"),
|
16
16
|
[t.ALL_TIME]: () => import("../../../assets/lotties/circle/elite-circle-lottie.json.js"),
|
17
17
|
[t.BI_WEEKLY]: () => import("../../../assets/lotties/circle/tournament-ripple-lottie.json.js")
|
18
|
-
},
|
18
|
+
}, s = [
|
19
19
|
{
|
20
20
|
name: "TOURNAMENT",
|
21
21
|
type: t.BI_WEEKLY
|
@@ -28,119 +28,124 @@ const u = {
|
|
28
28
|
name: "ALL TIME",
|
29
29
|
type: t.ALL_TIME
|
30
30
|
}
|
31
|
-
],
|
31
|
+
], Le = ({
|
32
32
|
leaderboardData: m,
|
33
|
-
type:
|
33
|
+
type: l = t.BI_WEEKLY,
|
34
34
|
userId: C,
|
35
|
-
onClose:
|
35
|
+
onClose: W,
|
36
36
|
isLoading: p,
|
37
|
-
listHeaderElement:
|
37
|
+
listHeaderElement: K,
|
38
|
+
onLeaderboardTypeChange: L
|
38
39
|
}) => {
|
39
|
-
var
|
40
|
-
const [
|
41
|
-
|
42
|
-
), [
|
40
|
+
var A, S, _, x, B, R, P;
|
41
|
+
const [o, I] = T(
|
42
|
+
s.findIndex((r) => l === r.type)
|
43
|
+
), [i, M] = T(((A = m == null ? void 0 : m[l]) == null ? void 0 : A.leaderboardPlayers) || []), [h, k] = T({
|
43
44
|
current: 0,
|
44
45
|
end: 0
|
45
|
-
}), [
|
46
|
-
|
47
|
-
},
|
48
|
-
|
46
|
+
}), [N, f] = te(0), [a, Y] = T(!1), F = (S = i == null ? void 0 : i[0]) == null ? void 0 : S.points, O = ((_ = i == null ? void 0 : i[0]) == null ? void 0 : _.streakDays) || 0, { playButtonSound: y } = U(), $ = () => {
|
47
|
+
y(), I((r) => r - 1 < 0 ? s.length - 1 : r - 1);
|
48
|
+
}, j = () => {
|
49
|
+
y(), I((r) => r + 1 === s.length ? 0 : r + 1);
|
49
50
|
};
|
50
|
-
return
|
51
|
-
|
52
|
-
}, [
|
53
|
-
var
|
54
|
-
const r = (
|
55
|
-
if (
|
56
|
-
const
|
57
|
-
r === t.BI_WEEKLY && (
|
58
|
-
current:
|
59
|
-
end:
|
60
|
-
}),
|
51
|
+
return d(() => {
|
52
|
+
f(0);
|
53
|
+
}, [f]), d(() => {
|
54
|
+
var b;
|
55
|
+
const r = (b = s[o]) == null ? void 0 : b.type, n = r && (m == null ? void 0 : m[r]);
|
56
|
+
if (n) {
|
57
|
+
const g = n.leaderboardPlayers || [];
|
58
|
+
r === t.BI_WEEKLY && (k({
|
59
|
+
current: n.currentTimestamp,
|
60
|
+
end: n.endTimestamp
|
61
|
+
}), n.currentTimestamp > n.endTimestamp && (g.splice(10), Y(!0))), M([...g]);
|
61
62
|
}
|
62
|
-
}, [
|
63
|
-
|
64
|
-
|
65
|
-
|
63
|
+
}, [o, m]), d(() => {
|
64
|
+
var n;
|
65
|
+
const r = (n = s[o]) == null ? void 0 : n.type;
|
66
|
+
r && L(r);
|
67
|
+
}, [o, L]), /* @__PURE__ */ e(J, { children: /* @__PURE__ */ c(Q, { children: [
|
68
|
+
/* @__PURE__ */ c(V, { children: [
|
69
|
+
((x = s[o]) == null ? void 0 : x.type) === t.BI_WEEKLY && /* @__PURE__ */ e(
|
70
|
+
u,
|
66
71
|
{
|
67
|
-
isLoading: p ||
|
72
|
+
isLoading: p || i.length === 0,
|
68
73
|
bgFromTopPosition: -120,
|
69
74
|
bgFromRightPosition: -110,
|
70
75
|
primaryText: a ? /* @__PURE__ */ e("span", { children: "New Tournament" }) : /* @__PURE__ */ e("span", { children: "Tournament" }),
|
71
76
|
secondaryText: a ? /* @__PURE__ */ e("span", { children: "Starts Soon" }) : /* @__PURE__ */ c("span", { children: [
|
72
77
|
" ",
|
73
78
|
/* @__PURE__ */ e(
|
74
|
-
|
79
|
+
G,
|
75
80
|
{
|
76
|
-
fromTimestamp:
|
77
|
-
endTimestamp:
|
81
|
+
fromTimestamp: N + h.current,
|
82
|
+
endTimestamp: h.end
|
78
83
|
}
|
79
84
|
),
|
80
85
|
" ",
|
81
86
|
"left"
|
82
87
|
] }),
|
83
|
-
lottiePromise:
|
84
|
-
custEle: /* @__PURE__ */ e(
|
88
|
+
lottiePromise: E[t.BI_WEEKLY],
|
89
|
+
custEle: /* @__PURE__ */ e(X, { children: /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e("img", { src: v.TROPHY_CIRCLE }) }) })
|
85
90
|
}
|
86
91
|
),
|
87
|
-
((
|
88
|
-
|
92
|
+
((B = s[o]) == null ? void 0 : B.type) === t.ALL_TIME_STREAK && /* @__PURE__ */ e(
|
93
|
+
u,
|
89
94
|
{
|
90
95
|
isLoading: p,
|
91
96
|
bgFromTopPosition: -140,
|
92
97
|
bgFromRightPosition: -90,
|
93
98
|
primaryText: /* @__PURE__ */ e("span", { children: "Streak Stars" }),
|
94
99
|
secondaryText: /* @__PURE__ */ e("span", { children: "Top 50" }),
|
95
|
-
lottiePromise:
|
100
|
+
lottiePromise: E[t.ALL_TIME_STREAK]
|
96
101
|
}
|
97
102
|
),
|
98
|
-
((
|
99
|
-
|
103
|
+
((R = s[o]) == null ? void 0 : R.type) === t.ALL_TIME && /* @__PURE__ */ e(
|
104
|
+
u,
|
100
105
|
{
|
101
106
|
isLoading: p,
|
102
107
|
bgFromTopPosition: -140,
|
103
108
|
bgFromRightPosition: -90,
|
104
109
|
primaryText: /* @__PURE__ */ e("span", { children: "Elite Circle" }),
|
105
110
|
secondaryText: /* @__PURE__ */ e("span", { children: "Top 50" }),
|
106
|
-
lottiePromise:
|
111
|
+
lottiePromise: E[t.ALL_TIME]
|
107
112
|
}
|
108
113
|
)
|
109
114
|
] }),
|
110
|
-
p && /* @__PURE__ */ e(
|
111
|
-
!p &&
|
112
|
-
|
113
|
-
a && ((
|
114
|
-
|
115
|
-
var
|
115
|
+
p && /* @__PURE__ */ e(w, {}),
|
116
|
+
!p && i && /* @__PURE__ */ c(D, { topInset: 0, children: [
|
117
|
+
K,
|
118
|
+
a && ((P = s[o]) == null ? void 0 : P.type) === t.BI_WEEKLY && /* @__PURE__ */ e(ee, { children: /* @__PURE__ */ e(H, { $renderAs: "ab3", $color: "WHITE", children: "Congratulating winners of the last tournament!" }) }),
|
119
|
+
i.map((r) => {
|
120
|
+
var n;
|
116
121
|
return /* @__PURE__ */ e(
|
117
|
-
|
122
|
+
q,
|
118
123
|
{
|
119
124
|
player: r,
|
120
125
|
rank: r.rank,
|
121
|
-
maxStreakDays:
|
122
|
-
maxPoints:
|
123
|
-
leaderboardType: (
|
126
|
+
maxStreakDays: O,
|
127
|
+
maxPoints: F,
|
128
|
+
leaderboardType: (n = s[o]) == null ? void 0 : n.type,
|
124
129
|
isActive: r.userId === C
|
125
130
|
},
|
126
131
|
r.rank
|
127
132
|
);
|
128
133
|
})
|
129
134
|
] }),
|
130
|
-
/* @__PURE__ */ e(
|
131
|
-
|
135
|
+
/* @__PURE__ */ e(re, { children: /* @__PURE__ */ e(
|
136
|
+
z,
|
132
137
|
{
|
133
138
|
labels: Object.values(t),
|
134
|
-
onLeftClick:
|
135
|
-
onRightClick:
|
136
|
-
currIndex:
|
137
|
-
onClose:
|
138
|
-
disableSwipe: p ||
|
139
|
+
onLeftClick: $,
|
140
|
+
onRightClick: j,
|
141
|
+
currIndex: o,
|
142
|
+
onClose: W,
|
143
|
+
disableSwipe: p || i.length === 0
|
139
144
|
}
|
140
145
|
) })
|
141
146
|
] }) });
|
142
147
|
};
|
143
148
|
export {
|
144
|
-
|
149
|
+
Le as Leaderboard
|
145
150
|
};
|
146
151
|
//# sourceMappingURL=leaderboard.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"leaderboard.js","sources":["../../../../src/features/circle-games/leaderboard/leaderboard.tsx"],"sourcesContent":["import type {\n ILeaderboardPlayerWithPoints,\n ILeaderboardPlayerWithStreak,\n} from './dal/use-get-leaderboard-dal/use-get-leaderboard-dal-types';\nimport type { ILeaderboardProps } from './leaderboard-types';\n\nimport { useEffect, useState } from 'react';\n\nimport { ILLUSTRATIONS } from '../../../assets/illustrations/illustrations';\nimport { CircularLoader } from '../../ui/loader/circular-loader/circular-loader';\nimport Text from '../../ui/text/text';\nimport { useCircleSounds } from '../hooks/use-circle-sounds/use-circle-sounds';\nimport { Banner } from './comps/banner/banner';\nimport { LeaderboardItemWithObserver } from './comps/leaderboard-item/leaderboard-item';\nimport { NavigationButton } from './comps/navigation-button/navigation-button';\nimport { Timer } from './comps/timer/timer';\nimport { ELeaderboardType } from './enums/leaderboard-type-enum';\nimport { useTimer } from './hooks';\nimport * as Styled from './leaderboard-styled';\n\n// lazy load banner lotties\nconst BANNER_LOTTIES: Record<ELeaderboardType, () => Promise<Record<string, unknown>>> = {\n [ELeaderboardType.ALL_TIME_STREAK]: () =>\n import('../../../assets/lotties/circle/elite-circle-lottie.json'),\n [ELeaderboardType.ALL_TIME]: () =>\n import('../../../assets/lotties/circle/elite-circle-lottie.json'),\n [ELeaderboardType.BI_WEEKLY]: () =>\n import('../../../assets/lotties/circle/tournament-ripple-lottie.json'),\n};\n\nconst leaderboards = [\n {\n name: 'TOURNAMENT',\n type: ELeaderboardType.BI_WEEKLY,\n },\n {\n name: 'STREAK STARS',\n type: ELeaderboardType.ALL_TIME_STREAK,\n },\n {\n name: 'ALL TIME',\n type: ELeaderboardType.ALL_TIME,\n },\n];\n\nexport const Leaderboard = ({\n leaderboardData,\n type = ELeaderboardType.BI_WEEKLY,\n userId,\n onClose,\n isLoading,\n listHeaderElement,\n}: ILeaderboardProps) => {\n const [currentLeaderBoardIndex, setCurrentLeaderboardIndex] = useState(\n leaderboards.findIndex(leaderboard => type === leaderboard.type),\n );\n\n const [currLeaderboardData, setCurrLeaderboardData] = useState<\n (ILeaderboardPlayerWithPoints | ILeaderboardPlayerWithStreak)[] | []\n >(leaderboardData?.[type]?.leaderboardPlayers || []);\n\n const [currLeaderboardTimeStamps, setCurrLeaderboardTimeStamps] = useState<{\n current: number;\n end: number;\n }>({\n current: 0,\n end: 0,\n });\n\n const [time, setTimer] = useTimer(0);\n const [isTournamentEnded, setIsTournamentEnded] = useState(false);\n const maxPoints = (currLeaderboardData?.[0] as ILeaderboardPlayerWithPoints)?.points;\n const maxStreakDays = (currLeaderboardData?.[0] as ILeaderboardPlayerWithStreak)?.streakDays || 0;\n const { playButtonSound } = useCircleSounds();\n\n const handlePrevious = () => {\n playButtonSound();\n setCurrentLeaderboardIndex(prev => {\n if (prev - 1 < 0) {\n return leaderboards.length - 1;\n }\n\n return prev - 1;\n });\n };\n\n const handleNext = () => {\n playButtonSound();\n setCurrentLeaderboardIndex(prev => {\n if (prev + 1 === leaderboards.length) {\n return 0;\n }\n\n return prev + 1;\n });\n };\n\n useEffect(() => {\n setTimer(0);\n }, [setTimer]);\n\n useEffect(() => {\n const currType = leaderboards[currentLeaderBoardIndex]?.type;\n const currLeaderboard = currType && leaderboardData?.[currType];\n\n if (currLeaderboard) {\n const leaderboardList = currLeaderboard.leaderboardPlayers || [];\n\n if (currType === ELeaderboardType.BI_WEEKLY) {\n setCurrLeaderboardTimeStamps({\n current: currLeaderboard.currentTimestamp,\n end: currLeaderboard.endTimestamp,\n });\n\n if (currLeaderboard.currentTimestamp > currLeaderboard.endTimestamp) {\n leaderboardList.splice(10);\n setIsTournamentEnded(true);\n }\n }\n\n setCurrLeaderboardData([...leaderboardList]);\n }\n }, [currentLeaderBoardIndex, leaderboardData]);\n\n return (\n <Styled.Leaderboard>\n <Styled.LeaderboardContainer>\n <Styled.BannerWrapper>\n {/* tournament banner */}\n {leaderboards[currentLeaderBoardIndex]?.type === ELeaderboardType.BI_WEEKLY && (\n <Banner\n isLoading={isLoading || currLeaderboardData.length === 0}\n bgFromTopPosition={-120}\n bgFromRightPosition={-110}\n primaryText={\n isTournamentEnded ? <span>New Tournament</span> : <span>Tournament</span>\n }\n secondaryText={\n isTournamentEnded ? (\n <span>Starts Soon</span>\n ) : (\n <span>\n {' '}\n <Timer\n fromTimestamp={(time as number) + currLeaderboardTimeStamps.current}\n endTimestamp={currLeaderboardTimeStamps.end}\n />{' '}\n {'left'}\n </span>\n )\n }\n lottiePromise={BANNER_LOTTIES[ELeaderboardType.BI_WEEKLY]}\n custEle={\n <Styled.TournamentBannerCustContainer>\n <Styled.TrophyWrapper>\n <img src={ILLUSTRATIONS.TROPHY_CIRCLE} />\n </Styled.TrophyWrapper>\n </Styled.TournamentBannerCustContainer>\n }\n />\n )}\n\n {/* top streak banner */}\n {leaderboards[currentLeaderBoardIndex]?.type === ELeaderboardType.ALL_TIME_STREAK && (\n <Banner\n isLoading={isLoading}\n bgFromTopPosition={-140}\n bgFromRightPosition={-90}\n primaryText={<span>Streak Stars</span>}\n secondaryText={<span>Top 50</span>}\n lottiePromise={BANNER_LOTTIES[ELeaderboardType.ALL_TIME_STREAK]}\n />\n )}\n\n {/* elite circle banner */}\n {leaderboards[currentLeaderBoardIndex]?.type === ELeaderboardType.ALL_TIME && (\n <Banner\n isLoading={isLoading}\n bgFromTopPosition={-140}\n bgFromRightPosition={-90}\n primaryText={<span>Elite Circle</span>}\n secondaryText={<span>Top 50</span>}\n lottiePromise={BANNER_LOTTIES[ELeaderboardType.ALL_TIME]}\n />\n )}\n </Styled.BannerWrapper>\n\n {isLoading && <CircularLoader />}\n\n {!isLoading && currLeaderboardData && (\n <Styled.ItemsWrapper topInset={0}>\n {listHeaderElement}\n {isTournamentEnded &&\n leaderboards[currentLeaderBoardIndex]?.type === ELeaderboardType.BI_WEEKLY && (\n <Styled.Banner>\n <Text $renderAs=\"ab3\" $color=\"WHITE\">\n Congratulating winners of the last tournament!\n </Text>\n </Styled.Banner>\n )}\n {currLeaderboardData.map(player => {\n return (\n <LeaderboardItemWithObserver\n key={player.rank}\n player={player}\n rank={player.rank}\n maxStreakDays={maxStreakDays}\n maxPoints={maxPoints}\n leaderboardType={leaderboards[currentLeaderBoardIndex]?.type}\n isActive={player.userId === userId}\n />\n );\n })}\n </Styled.ItemsWrapper>\n )}\n\n <Styled.ActionButtonWrapper>\n <NavigationButton\n labels={Object.values(ELeaderboardType)}\n onLeftClick={handlePrevious}\n onRightClick={handleNext}\n currIndex={currentLeaderBoardIndex}\n onClose={onClose}\n disableSwipe={isLoading || currLeaderboardData.length === 0}\n />\n </Styled.ActionButtonWrapper>\n </Styled.LeaderboardContainer>\n </Styled.Leaderboard>\n );\n};\n"],"names":["BANNER_LOTTIES","ELeaderboardType","leaderboards","Leaderboard","leaderboardData","type","userId","onClose","isLoading","listHeaderElement","currentLeaderBoardIndex","setCurrentLeaderboardIndex","useState","leaderboard","currLeaderboardData","setCurrLeaderboardData","_a","currLeaderboardTimeStamps","setCurrLeaderboardTimeStamps","time","setTimer","useTimer","isTournamentEnded","setIsTournamentEnded","maxPoints","_b","maxStreakDays","_c","playButtonSound","useCircleSounds","handlePrevious","prev","handleNext","useEffect","currType","currLeaderboard","leaderboardList","Styled.Leaderboard","jsxs","Styled.LeaderboardContainer","Styled.BannerWrapper","_d","jsx","Banner","Timer","Styled.TournamentBannerCustContainer","Styled.TrophyWrapper","ILLUSTRATIONS","_e","_f","CircularLoader","Styled.ItemsWrapper","_g","Styled.Banner","Text","player","LeaderboardItemWithObserver","Styled.ActionButtonWrapper","NavigationButton"],"mappings":";;;;;;;;;;;;;AAqBA,MAAMA,IAAmF;AAAA,EACvF,CAACC,EAAiB,eAAe,GAAG,MAClC,OAAO,4DAAyD;AAAA,EAClE,CAACA,EAAiB,QAAQ,GAAG,MAC3B,OAAO,4DAAyD;AAAA,EAClE,CAACA,EAAiB,SAAS,GAAG,MAC5B,OAAO,iEAA8D;AACzE,GAEMC,IAAe;AAAA,EACnB;AAAA,IACE,MAAM;AAAA,IACN,MAAMD,EAAiB;AAAA,EACzB;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,MAAMA,EAAiB;AAAA,EACzB;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,MAAMA,EAAiB;AAAA,EACzB;AACF,GAEaE,KAAc,CAAC;AAAA,EAC1B,iBAAAC;AAAA,EACA,MAAAC,IAAOJ,EAAiB;AAAA,EACxB,QAAAK;AAAA,EACA,SAAAC;AAAA,EACA,WAAAC;AAAA,EACA,mBAAAC;AACF,MAAyB;;AACjB,QAAA,CAACC,GAAyBC,CAA0B,IAAIC;AAAA,IAC5DV,EAAa,UAAU,CAAeW,MAAAR,MAASQ,EAAY,IAAI;AAAA,EAAA,GAG3D,CAACC,GAAqBC,CAAsB,IAAIH,IAEpDI,IAAAZ,KAAA,gBAAAA,EAAkBC,OAAlB,gBAAAW,EAAyB,uBAAsB,CAAA,CAAE,GAE7C,CAACC,GAA2BC,CAA4B,IAAIN,EAG/D;AAAA,IACD,SAAS;AAAA,IACT,KAAK;AAAA,EAAA,CACN,GAEK,CAACO,GAAMC,CAAQ,IAAIC,GAAS,C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src/features/circle-games/leaderboard/leaderboard.tsx"],"sourcesContent":["import type {\n ILeaderboardPlayerWithPoints,\n ILeaderboardPlayerWithStreak,\n} from './dal/use-get-leaderboard-dal/use-get-leaderboard-dal-types';\nimport type { ILeaderboardProps } from './leaderboard-types';\n\nimport { useEffect, useState } from 'react';\n\nimport { ILLUSTRATIONS } from '../../../assets/illustrations/illustrations';\nimport { CircularLoader } from '../../ui/loader/circular-loader/circular-loader';\nimport Text from '../../ui/text/text';\nimport { useCircleSounds } from '../hooks/use-circle-sounds/use-circle-sounds';\nimport { Banner } from './comps/banner/banner';\nimport { LeaderboardItemWithObserver } from './comps/leaderboard-item/leaderboard-item';\nimport { NavigationButton } from './comps/navigation-button/navigation-button';\nimport { Timer } from './comps/timer/timer';\nimport { ELeaderboardType } from './enums/leaderboard-type-enum';\nimport { useTimer } from './hooks';\nimport * as Styled from './leaderboard-styled';\n\n// lazy load banner lotties\nconst BANNER_LOTTIES: Record<ELeaderboardType, () => Promise<Record<string, unknown>>> = {\n [ELeaderboardType.ALL_TIME_STREAK]: () =>\n import('../../../assets/lotties/circle/elite-circle-lottie.json'),\n [ELeaderboardType.ALL_TIME]: () =>\n import('../../../assets/lotties/circle/elite-circle-lottie.json'),\n [ELeaderboardType.BI_WEEKLY]: () =>\n import('../../../assets/lotties/circle/tournament-ripple-lottie.json'),\n};\n\nconst leaderboards = [\n {\n name: 'TOURNAMENT',\n type: ELeaderboardType.BI_WEEKLY,\n },\n {\n name: 'STREAK STARS',\n type: ELeaderboardType.ALL_TIME_STREAK,\n },\n {\n name: 'ALL TIME',\n type: ELeaderboardType.ALL_TIME,\n },\n];\n\nexport const Leaderboard = ({\n leaderboardData,\n type = ELeaderboardType.BI_WEEKLY,\n userId,\n onClose,\n isLoading,\n listHeaderElement,\n onLeaderboardTypeChange,\n}: ILeaderboardProps) => {\n const [currentLeaderBoardIndex, setCurrentLeaderboardIndex] = useState(\n leaderboards.findIndex(leaderboard => type === leaderboard.type),\n );\n\n const [currLeaderboardData, setCurrLeaderboardData] = useState<\n (ILeaderboardPlayerWithPoints | ILeaderboardPlayerWithStreak)[] | []\n >(leaderboardData?.[type]?.leaderboardPlayers || []);\n\n const [currLeaderboardTimeStamps, setCurrLeaderboardTimeStamps] = useState<{\n current: number;\n end: number;\n }>({\n current: 0,\n end: 0,\n });\n\n const [time, setTimer] = useTimer(0);\n const [isTournamentEnded, setIsTournamentEnded] = useState(false);\n const maxPoints = (currLeaderboardData?.[0] as ILeaderboardPlayerWithPoints)?.points;\n const maxStreakDays = (currLeaderboardData?.[0] as ILeaderboardPlayerWithStreak)?.streakDays || 0;\n const { playButtonSound } = useCircleSounds();\n\n const handlePrevious = () => {\n playButtonSound();\n setCurrentLeaderboardIndex(prev => {\n if (prev - 1 < 0) {\n return leaderboards.length - 1;\n }\n\n return prev - 1;\n });\n };\n\n const handleNext = () => {\n playButtonSound();\n setCurrentLeaderboardIndex(prev => {\n if (prev + 1 === leaderboards.length) {\n return 0;\n }\n\n return prev + 1;\n });\n };\n\n useEffect(() => {\n setTimer(0);\n }, [setTimer]);\n\n useEffect(() => {\n const currType = leaderboards[currentLeaderBoardIndex]?.type;\n const currLeaderboard = currType && leaderboardData?.[currType];\n\n if (currLeaderboard) {\n const leaderboardList = currLeaderboard.leaderboardPlayers || [];\n\n if (currType === ELeaderboardType.BI_WEEKLY) {\n setCurrLeaderboardTimeStamps({\n current: currLeaderboard.currentTimestamp,\n end: currLeaderboard.endTimestamp,\n });\n\n if (currLeaderboard.currentTimestamp > currLeaderboard.endTimestamp) {\n leaderboardList.splice(10);\n setIsTournamentEnded(true);\n }\n }\n\n setCurrLeaderboardData([...leaderboardList]);\n }\n }, [currentLeaderBoardIndex, leaderboardData]);\n\n useEffect(() => {\n const currType = leaderboards[currentLeaderBoardIndex]?.type;\n\n if (currType) {\n onLeaderboardTypeChange(currType);\n }\n }, [currentLeaderBoardIndex, onLeaderboardTypeChange]);\n\n return (\n <Styled.Leaderboard>\n <Styled.LeaderboardContainer>\n <Styled.BannerWrapper>\n {/* tournament banner */}\n {leaderboards[currentLeaderBoardIndex]?.type === ELeaderboardType.BI_WEEKLY && (\n <Banner\n isLoading={isLoading || currLeaderboardData.length === 0}\n bgFromTopPosition={-120}\n bgFromRightPosition={-110}\n primaryText={\n isTournamentEnded ? <span>New Tournament</span> : <span>Tournament</span>\n }\n secondaryText={\n isTournamentEnded ? (\n <span>Starts Soon</span>\n ) : (\n <span>\n {' '}\n <Timer\n fromTimestamp={(time as number) + currLeaderboardTimeStamps.current}\n endTimestamp={currLeaderboardTimeStamps.end}\n />{' '}\n {'left'}\n </span>\n )\n }\n lottiePromise={BANNER_LOTTIES[ELeaderboardType.BI_WEEKLY]}\n custEle={\n <Styled.TournamentBannerCustContainer>\n <Styled.TrophyWrapper>\n <img src={ILLUSTRATIONS.TROPHY_CIRCLE} />\n </Styled.TrophyWrapper>\n </Styled.TournamentBannerCustContainer>\n }\n />\n )}\n\n {/* top streak banner */}\n {leaderboards[currentLeaderBoardIndex]?.type === ELeaderboardType.ALL_TIME_STREAK && (\n <Banner\n isLoading={isLoading}\n bgFromTopPosition={-140}\n bgFromRightPosition={-90}\n primaryText={<span>Streak Stars</span>}\n secondaryText={<span>Top 50</span>}\n lottiePromise={BANNER_LOTTIES[ELeaderboardType.ALL_TIME_STREAK]}\n />\n )}\n\n {/* elite circle banner */}\n {leaderboards[currentLeaderBoardIndex]?.type === ELeaderboardType.ALL_TIME && (\n <Banner\n isLoading={isLoading}\n bgFromTopPosition={-140}\n bgFromRightPosition={-90}\n primaryText={<span>Elite Circle</span>}\n secondaryText={<span>Top 50</span>}\n lottiePromise={BANNER_LOTTIES[ELeaderboardType.ALL_TIME]}\n />\n )}\n </Styled.BannerWrapper>\n\n {isLoading && <CircularLoader />}\n\n {!isLoading && currLeaderboardData && (\n <Styled.ItemsWrapper topInset={0}>\n {listHeaderElement}\n {isTournamentEnded &&\n leaderboards[currentLeaderBoardIndex]?.type === ELeaderboardType.BI_WEEKLY && (\n <Styled.Banner>\n <Text $renderAs=\"ab3\" $color=\"WHITE\">\n Congratulating winners of the last tournament!\n </Text>\n </Styled.Banner>\n )}\n {currLeaderboardData.map(player => {\n return (\n <LeaderboardItemWithObserver\n key={player.rank}\n player={player}\n rank={player.rank}\n maxStreakDays={maxStreakDays}\n maxPoints={maxPoints}\n leaderboardType={leaderboards[currentLeaderBoardIndex]?.type}\n isActive={player.userId === userId}\n />\n );\n })}\n </Styled.ItemsWrapper>\n )}\n\n <Styled.ActionButtonWrapper>\n <NavigationButton\n labels={Object.values(ELeaderboardType)}\n onLeftClick={handlePrevious}\n onRightClick={handleNext}\n currIndex={currentLeaderBoardIndex}\n onClose={onClose}\n disableSwipe={isLoading || currLeaderboardData.length === 0}\n />\n </Styled.ActionButtonWrapper>\n </Styled.LeaderboardContainer>\n </Styled.Leaderboard>\n );\n};\n"],"names":["BANNER_LOTTIES","ELeaderboardType","leaderboards","Leaderboard","leaderboardData","type","userId","onClose","isLoading","listHeaderElement","onLeaderboardTypeChange","currentLeaderBoardIndex","setCurrentLeaderboardIndex","useState","leaderboard","currLeaderboardData","setCurrLeaderboardData","_a","currLeaderboardTimeStamps","setCurrLeaderboardTimeStamps","time","setTimer","useTimer","isTournamentEnded","setIsTournamentEnded","maxPoints","_b","maxStreakDays","_c","playButtonSound","useCircleSounds","handlePrevious","prev","handleNext","useEffect","currType","currLeaderboard","leaderboardList","Styled.Leaderboard","jsxs","Styled.LeaderboardContainer","Styled.BannerWrapper","_d","jsx","Banner","Timer","Styled.TournamentBannerCustContainer","Styled.TrophyWrapper","ILLUSTRATIONS","_e","_f","CircularLoader","Styled.ItemsWrapper","_g","Styled.Banner","Text","player","LeaderboardItemWithObserver","Styled.ActionButtonWrapper","NavigationButton"],"mappings":";;;;;;;;;;;;;AAqBA,MAAMA,IAAmF;AAAA,EACvF,CAACC,EAAiB,eAAe,GAAG,MAClC,OAAO,4DAAyD;AAAA,EAClE,CAACA,EAAiB,QAAQ,GAAG,MAC3B,OAAO,4DAA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AAc2C,GAAe,EAAA;AAAA,IAE7B,CAAC3C,KAAaO,KACb,gBAAAwB,EAACa,GAAA,EAAoB,UAAU,GAC5B,UAAA;AAAA,MAAA3C;AAAA,MACAc,OACC8B,IAAAnD,EAAaS,CAAuB,MAApC,gBAAA0C,EAAuC,UAASpD,EAAiB,aAC9D,gBAAA0C,EAAAW,IAAA,EACC,4BAACC,GAAK,EAAA,WAAU,OAAM,QAAO,SAAQ,2DAErC,CAAA,GACF;AAAA,MAEHxC,EAAoB,IAAI,CAAUyC,MAAA;;AAE/B,eAAA,gBAAAb;AAAA,UAACc;AAAA,UAAA;AAAA,YAEC,QAAAD;AAAA,YACA,MAAMA,EAAO;AAAA,YACb,eAAA7B;AAAA,YACA,WAAAF;AAAA,YACA,kBAAiBR,IAAAf,EAAaS,CAAuB,MAApC,gBAAAM,EAAuC;AAAA,YACxD,UAAUuC,EAAO,WAAWlD;AAAA,UAAA;AAAA,UANvBkD,EAAO;AAAA,QAAA;AAAA,MAOd,CAEH;AAAA,IAAA,GACH;AAAA,IAGF,gBAAAb,EAACe,IAAA,EACC,UAAA,gBAAAf;AAAA,MAACgB;AAAA,MAAA;AAAA,QACC,QAAQ,OAAO,OAAO1D,CAAgB;AAAA,QACtC,aAAa8B;AAAA,QACb,cAAcE;AAAA,QACd,WAAWtB;AAAA,QACX,SAAAJ;AAAA,QACA,cAAcC,KAAaO,EAAoB,WAAW;AAAA,MAAA;AAAA,IAAA,GAE9D;AAAA,EAAA,EACF,CAAA,EACF,CAAA;AAEJ;"}
|
package/dist/index.d.ts
CHANGED
@@ -1207,6 +1207,18 @@ declare interface IIconButtonProps extends Omit<IButtonProps, 'label' | 'shape'
|
|
1207
1207
|
customBgColor?: TColorNames;
|
1208
1208
|
}
|
1209
1209
|
|
1210
|
+
declare interface IInfoBarProps extends IInfoBarWrapperProps {
|
1211
|
+
hue: THueNames;
|
1212
|
+
children: React.ReactNode;
|
1213
|
+
}
|
1214
|
+
|
1215
|
+
declare interface IInfoBarWrapperProps {
|
1216
|
+
paddingX?: number;
|
1217
|
+
paddingY?: number;
|
1218
|
+
marginX?: number;
|
1219
|
+
marginY?: number;
|
1220
|
+
}
|
1221
|
+
|
1210
1222
|
export declare interface IInfoMessage {
|
1211
1223
|
message: string;
|
1212
1224
|
position: 'top' | 'bottom';
|
@@ -1351,6 +1363,7 @@ declare interface ILeaderboardProps {
|
|
1351
1363
|
onClose: () => void;
|
1352
1364
|
isLoading: boolean;
|
1353
1365
|
listHeaderElement: ReactNode;
|
1366
|
+
onLeaderboardTypeChange: (type: ELeaderboardType) => void;
|
1354
1367
|
}
|
1355
1368
|
|
1356
1369
|
declare interface ILearningSheetData {
|
@@ -1979,6 +1992,8 @@ export declare enum IndicatorType {
|
|
1979
1992
|
|
1980
1993
|
export declare const Info2Icon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
|
1981
1994
|
|
1995
|
+
export declare const InfoBar: React.FC<IInfoBarProps>;
|
1996
|
+
|
1982
1997
|
export declare const InfoIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
1983
1998
|
|
1984
1999
|
export declare interface INudgeProps {
|
@@ -3257,7 +3272,7 @@ export declare const JourneyProvider: FC<{
|
|
3257
3272
|
children: ReactNode;
|
3258
3273
|
}>;
|
3259
3274
|
|
3260
|
-
export declare const Leaderboard: ({ leaderboardData, type, userId, onClose, isLoading, listHeaderElement, }: ILeaderboardProps) => JSX_2.Element;
|
3275
|
+
export declare const Leaderboard: ({ leaderboardData, type, userId, onClose, isLoading, listHeaderElement, onLeaderboardTypeChange, }: ILeaderboardProps) => JSX_2.Element;
|
3261
3276
|
|
3262
3277
|
export declare const LearnosityPreloader: FC<PropsWithChildren<ILearnosityPreloaderProps>>;
|
3263
3278
|
|
package/dist/index.js
CHANGED
@@ -141,91 +141,92 @@ import { default as na } from "./features/chapters/lpar-milestone-chapter/lpar-m
|
|
141
141
|
import { default as Ia } from "./features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-summary/sat-sheet-summary.js";
|
142
142
|
import { checkIfPPTNodeType as Ta } from "./features/chapters/lpar-chapter/utils/index.js";
|
143
143
|
import { GAME_LAUNCHER_ASSET_PADDING as Sa, GAME_LAUNCHER_SIZE as Ca } from "./features/circle-games/game-launcher/comps/segmented-game-card/constants.js";
|
144
|
-
import {
|
145
|
-
import {
|
146
|
-
import {
|
147
|
-
import {
|
148
|
-
import {
|
149
|
-
import {
|
150
|
-
import {
|
151
|
-
import {
|
152
|
-
import {
|
153
|
-
import {
|
154
|
-
import {
|
155
|
-
import {
|
156
|
-
import {
|
157
|
-
import {
|
158
|
-
import {
|
159
|
-
import {
|
160
|
-
import {
|
161
|
-
import {
|
162
|
-
import {
|
163
|
-
import {
|
164
|
-
import {
|
165
|
-
import {
|
166
|
-
import { default as Ef } from "./features/cue-canvas/
|
167
|
-
import { default as Cf } from "./features/cue-canvas/
|
168
|
-
import { default as Pf } from "./features/cue-canvas/
|
169
|
-
import { default as hf } from "./features/
|
170
|
-
import { default as kf } from "./features/communication/hooks/use-
|
171
|
-
import {
|
172
|
-
import {
|
173
|
-
import {
|
174
|
-
import {
|
175
|
-
import {
|
176
|
-
import {
|
177
|
-
import {
|
178
|
-
import {
|
179
|
-
import {
|
180
|
-
import {
|
181
|
-
import {
|
182
|
-
import {
|
183
|
-
import {
|
184
|
-
import { default as os } from "./features/milestone/create/
|
185
|
-
import { default as ts } from "./features/milestone/create/comps/confirmation-modals/
|
186
|
-
import { default as fs } from "./features/milestone/create/
|
187
|
-
import { default as ls } from "./features/milestone/
|
188
|
-
import { default as ms } from "./features/milestone/
|
189
|
-
import { default as ds } from "./features/milestone/outcome/
|
190
|
-
import { default as ns } from "./features/milestone/outcome/comps/achievement/
|
191
|
-
import { default as Is } from "./features/milestone/
|
192
|
-
import { default as Ts } from "./features/milestone/edit/
|
193
|
-
import { default as Ss } from "./features/milestone/edit/
|
194
|
-
import { default as As } from "./features/milestone/
|
195
|
-
import { default as _s } from "./features/milestone/milestone-
|
196
|
-
import { default as Ls } from "./features/milestone/
|
197
|
-
import { default as Ms } from "./features/milestone/milestone-
|
198
|
-
import {
|
199
|
-
import {
|
200
|
-
import {
|
201
|
-
import {
|
202
|
-
import {
|
203
|
-
import { default as Qs } from "./features/pointer-sync/
|
204
|
-
import {
|
205
|
-
import {
|
206
|
-
import {
|
207
|
-
import { default as qs } from "./features/sheet-tools/
|
208
|
-
import { default as $s } from "./features/
|
209
|
-
import { default as ol } from "./features/sheets/
|
210
|
-
import {
|
211
|
-
import {
|
212
|
-
import {
|
213
|
-
import { default as Al } from "./features/
|
214
|
-
import {
|
215
|
-
import {
|
216
|
-
import {
|
217
|
-
import { default as Dl } from "./features/worksheet/worksheet
|
218
|
-
import { default as yl } from "./features/worksheet/worksheet/worksheet-
|
219
|
-
import { default as gl } from "./features/worksheet/worksheet/worksheet-permissions/
|
220
|
-
import { default as Ul } from "./features/worksheet/
|
221
|
-
import { default as Wl } from "./features/worksheet/learnosity-preloader/
|
222
|
-
import { default as wl } from "./features/worksheet/
|
223
|
-
import { default as Yl } from "./features/
|
144
|
+
import { InfoBar as Pa } from "./features/circle-games/leaderboard/comps/info-bar/info-bar.js";
|
145
|
+
import { useGetLeaderboardDal as ha } from "./features/circle-games/leaderboard/dal/use-get-leaderboard-dal/use-get-leaderboard-dal.js";
|
146
|
+
import { ELeaderboardType as ka } from "./features/circle-games/leaderboard/enums/leaderboard-type-enum.js";
|
147
|
+
import { useCircleSounds as Na } from "./features/circle-games/hooks/use-circle-sounds/use-circle-sounds.js";
|
148
|
+
import { CircleSoundKey as Oa } from "./features/circle-games/hooks/use-circle-sounds/use-circle-sounds-enums.js";
|
149
|
+
import { Tutorial as Da } from "./features/circle-games/games/tutorial/tutorial.js";
|
150
|
+
import { WebView as ya } from "./features/circle-games/games/web-view/web-view.js";
|
151
|
+
import { GameId as ga, LessonId as ba, MiniGameId as Ua, ProjectId as va, PuzzleId as Wa } from "./features/circle-games/games/web-view/enums/project-ids-enum.js";
|
152
|
+
import { ProjectOutcome as wa } from "./features/circle-games/games/web-view/enums/project-outcomes-enum.js";
|
153
|
+
import { WebViewEvent as Ya } from "./features/circle-games/games/web-view/enums/web-view-events-enum.js";
|
154
|
+
import { ProjectType as Fa } from "./features/circle-games/games/web-view/enums/project-type-enum.js";
|
155
|
+
import { PlayerType as ja } from "./features/circle-games/games/web-view/enums/player-type-enum.js";
|
156
|
+
import { IStatsToAwardErrorCode as Za } from "./features/circle-games/games/web-view/web-view-types.js";
|
157
|
+
import { CIRCLE_ONBOARDING_ANALYTICS_STEPS as Xa } from "./features/circle-games/enum/circle-onboarding-steps.js";
|
158
|
+
import { CIRCLE_ACTION_IDS as ef } from "./features/circle-games/enum/circle-action-ids.js";
|
159
|
+
import { GameLauncher as rf } from "./features/circle-games/game-launcher/game-launcher.js";
|
160
|
+
import { useGetCircleHomeDetailsDal as af } from "./features/circle-games/game-launcher/dal/use-get-circle-home-details-dal/use-get-circle-home-details-dal.js";
|
161
|
+
import { usePostUpdateCircleJourneyDal as sf } from "./features/circle-games/game-launcher/dal/use-post-update-circle-journey-dal/use-post-update-circle-journey-dal.js";
|
162
|
+
import { Leaderboard as pf } from "./features/circle-games/leaderboard/leaderboard.js";
|
163
|
+
import { BackgroundImage as uf, CircularSteps as df } from "./features/circle-games/sign-up/comp/circular-steps/circular-steps.js";
|
164
|
+
import { SplashScreen as nf } from "./features/circle-games/sign-up/comp/splash-screen/splash-screen.js";
|
165
|
+
import { SignUp as If } from "./features/circle-games/sign-up/sign-up.js";
|
166
|
+
import { default as Ef } from "./features/cue-canvas/cue-canvas-provider.js";
|
167
|
+
import { default as Cf } from "./features/cue-canvas/toolbar/toolbar.js";
|
168
|
+
import { default as Pf } from "./features/cue-canvas/cue-canvas.js";
|
169
|
+
import { default as hf } from "./features/cue-canvas/hooks/use-canvas-sync-broker.js";
|
170
|
+
import { default as kf } from "./features/communication/hooks/use-inclass-message-broker/use-inclass-message-broker.js";
|
171
|
+
import { default as Nf } from "./features/communication/hooks/use-trial-session-message-broker/use-trial-session-message-broker.js";
|
172
|
+
import { EVENTS as Of } from "./features/communication/pub-sub/constants.js";
|
173
|
+
import { useInClassActionDispatcher as Df, useInClassActionListener as Gf } from "./features/communication/pub-sub/hooks.js";
|
174
|
+
import { default as Bf } from "./features/trial-session/trial-session.js";
|
175
|
+
import { EClassTimeAlertLevel as bf } from "./features/trial-session/trial-session-types.js";
|
176
|
+
import { useClassTimeAlerts as vf } from "./features/trial-session/hooks/use-class-time-alerts.js";
|
177
|
+
import { default as Vf } from "./features/extra-practice/extra-practice.js";
|
178
|
+
import { useAutoPlayPermission as Qf } from "./features/hooks/use-auto-play-permission/use-auto-play-permission.js";
|
179
|
+
import { JOURNEY_ID_STUDENT as Kf } from "./features/journey/journey-id/journey-id-student.js";
|
180
|
+
import { useJourney as Jf } from "./features/journey/use-journey/use-journey.js";
|
181
|
+
import { JourneyProvider as zf } from "./features/journey/use-journey/journey-context-provider.js";
|
182
|
+
import { IndicatorType as qf } from "./features/journey/use-journey/constants.js";
|
183
|
+
import { Coachmark as $f } from "./features/journey/comps/coachmark/coachmark.js";
|
184
|
+
import { default as os } from "./features/milestone/create/submit-modal/submit-modal.js";
|
185
|
+
import { default as ts } from "./features/milestone/create/comps/confirmation-modals/goal-creation-confirmation.js";
|
186
|
+
import { default as fs } from "./features/milestone/create/comps/confirmation-modals/chapter-clearance-confirmation.js";
|
187
|
+
import { default as ls } from "./features/milestone/create/milestone-create-container.js";
|
188
|
+
import { default as ms } from "./features/milestone/edit/goal-drafts/goal-draft-edit-container.js";
|
189
|
+
import { default as ds } from "./features/milestone/outcome/milestone-outcome-container.js";
|
190
|
+
import { default as ns } from "./features/milestone/outcome/comps/achievement/reason-submit-modal.js";
|
191
|
+
import { default as Is } from "./features/milestone/outcome/comps/achievement/share-instructions-modal.js";
|
192
|
+
import { default as Ts } from "./features/milestone/edit/comps/edit-milestone-modal/index.js";
|
193
|
+
import { default as Ss } from "./features/milestone/edit/goal-edit-container.js";
|
194
|
+
import { default as As } from "./features/milestone/edit/milestone-edit-container.js";
|
195
|
+
import { default as _s } from "./features/milestone/milestone-list-container/milestone-list-container.js";
|
196
|
+
import { default as Ls } from "./features/milestone/milestone-action-widget/milestone-action-widget.js";
|
197
|
+
import { default as Ms } from "./features/milestone/start/milestone-start.js";
|
198
|
+
import { default as Hs } from "./features/milestone/milestone-tests/tests-creation/tests-creation.js";
|
199
|
+
import { ACHIEVEMENT_ACTIONS as Rs, STAGES as Ds } from "./features/milestone/outcome/milestone-outcome-constants.js";
|
200
|
+
import { invalidateMilestonesData as ys, useGetAllMilestonesdata as Bs } from "./features/milestone/milestone-list-container/api/get-milestones.js";
|
201
|
+
import { invalidateTestHelpData as bs, useGetTestHelpData as Us } from "./features/milestone/milestone-list-container/api/get-tests-list.js";
|
202
|
+
import { invalidateMilestoneResources as Ws, useGetMilestoneResources as Vs } from "./features/milestone/milestone-list-container/api/get-milestone-resources.js";
|
203
|
+
import { default as Qs } from "./features/pointer-sync/pointer.js";
|
204
|
+
import { default as Ks } from "./features/pointer-sync/hooks/use-pointer-sync.js";
|
205
|
+
import { PostGameStats as Js } from "./features/post-game-stats/post-game-stats.js";
|
206
|
+
import { EPostGameStat as zs } from "./features/post-game-stats/enums/post-game-stats-enum.js";
|
207
|
+
import { default as qs } from "./features/sheet-tools/desmos-calculator/desmos-calculator.js";
|
208
|
+
import { default as $s } from "./features/sheet-tools/tool-header/tool-header.js";
|
209
|
+
import { default as ol } from "./features/sheets/sheets-list/sheets-list.js";
|
210
|
+
import { default as tl } from "./features/sheets/reference-sheet/reference-sheet.js";
|
211
|
+
import { isV3Worksheet as fl, isV3WorksheetAttempt as sl } from "./features/sheets/utils/is-v3-worksheet.js";
|
212
|
+
import { COMPLETED_SHEET_STATE as pl, NODE_LABELS as ml, NODE_SUB_GROUP as ul, NODE_TYPE as dl, PYTHON_NODE_TYPES as xl, REWARDS_LIST as nl, SHEET_ACTIONS as cl, SHEET_ATTEMPT_LOCATION as Il, SHEET_ATTEMPT_LOCATION_MAP as il, SHEET_ATTEMPT_STATE as Tl, SHEET_DATA_TYPE as El, SHEET_STATE as Sl } from "./features/sheets/constants/sheet.js";
|
213
|
+
import { default as Al } from "./features/student-details/student-details.js";
|
214
|
+
import { default as _l } from "./features/utils/load-script.js";
|
215
|
+
import { ACTION_BAR_HEIGHT as Ll, QUESTIONS_GAP as kl, QUESTION_WIDTH as Ml, TOP_NAVIGATION_HEIGHT as Nl } from "./features/worksheet/worksheet/constants.js";
|
216
|
+
import { isOkayTypeQuestion as Ol } from "./features/worksheet/worksheet/worksheet-helpers.js";
|
217
|
+
import { default as Dl } from "./features/worksheet/worksheet/worksheet-container.js";
|
218
|
+
import { default as yl } from "./features/worksheet/worksheet-preview/worksheet-preview.js";
|
219
|
+
import { default as gl } from "./features/worksheet/worksheet/worksheet-permissions/sheet-locked.js";
|
220
|
+
import { default as Ul } from "./features/worksheet/worksheet/worksheet-permissions/error.js";
|
221
|
+
import { default as Wl } from "./features/worksheet/learnosity-preloader/learnosity-preloader.js";
|
222
|
+
import { default as wl } from "./features/worksheet/learnosity-preloader/use-is-learnosity-loaded.js";
|
223
|
+
import { default as Yl } from "./features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js";
|
224
|
+
import { default as Fl } from "./features/maintenance/maintenance.js";
|
224
225
|
export {
|
225
|
-
|
226
|
+
Rs as ACHIEVEMENT_ACTIONS,
|
226
227
|
Pr as AccordionSection,
|
227
|
-
|
228
|
-
|
228
|
+
ns as AchievementNotShareReasonModal,
|
229
|
+
Is as AchievementShareInstructionModal,
|
229
230
|
u as AlertIcon,
|
230
231
|
ct as AppLoader,
|
231
232
|
Wr as ArcButton,
|
@@ -234,7 +235,7 @@ export {
|
|
234
235
|
bt as Avatar,
|
235
236
|
Xo as Back2Icon,
|
236
237
|
x as BackIcon,
|
237
|
-
|
238
|
+
uf as BackgroundImage,
|
238
239
|
i as Bin2Icon,
|
239
240
|
c as BinIcon,
|
240
241
|
P as Book2Icon,
|
@@ -244,14 +245,14 @@ export {
|
|
244
245
|
N as Bulb2Icon,
|
245
246
|
k as BulbIcon,
|
246
247
|
Dr as Button,
|
247
|
-
|
248
|
-
|
249
|
-
|
248
|
+
ef as CIRCLE_ACTION_IDS,
|
249
|
+
Xa as CIRCLE_ONBOARDING_ANALYTICS_STEPS,
|
250
|
+
pl as COMPLETED_SHEET_STATE,
|
250
251
|
O as CalendarIcon,
|
251
252
|
kt as Callout,
|
252
253
|
at as CascadingSelectInput,
|
253
254
|
la as Chapter,
|
254
|
-
|
255
|
+
fs as ChapterClearanceConfirmationModal,
|
255
256
|
ma as ChaptersList,
|
256
257
|
ur as ChatIcon,
|
257
258
|
y as Check2Icon,
|
@@ -261,52 +262,52 @@ export {
|
|
261
262
|
ar as ChevronDownIcon,
|
262
263
|
rr as ChevronLeftIcon,
|
263
264
|
er as ChevronRightIcon,
|
264
|
-
|
265
|
+
Oa as CircleSoundKey,
|
265
266
|
it as CircularLoader,
|
266
|
-
|
267
|
+
df as CircularSteps,
|
267
268
|
yr as Clickable,
|
268
269
|
g as ClipboardIcon,
|
269
270
|
W as Clock2Icon,
|
270
271
|
U as ClockIcon,
|
271
|
-
|
272
|
+
$f as Coachmark,
|
272
273
|
w as CodeIcon,
|
273
274
|
kr as ContextMenu,
|
274
275
|
Y as CopyIcon,
|
275
276
|
Nr as CountdownTimer,
|
276
277
|
F as CrossIcon,
|
277
|
-
|
278
|
-
|
279
|
-
|
278
|
+
Pf as CueCanvas,
|
279
|
+
Cf as CueCanvasController,
|
280
|
+
Ef as CueCanvasProvider,
|
280
281
|
j as CueRocket,
|
281
282
|
xr as CuemathLogo,
|
282
283
|
Z as DashArrowIcon,
|
283
|
-
|
284
|
+
qs as DesmosCalculator,
|
284
285
|
X as DownIcon,
|
285
286
|
ee as DraftIcon,
|
286
287
|
re as DragIcon,
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
288
|
+
bf as EClassTimeAlertLevel,
|
289
|
+
ka as ELeaderboardType,
|
290
|
+
zs as EPostGameStat,
|
291
|
+
Of as EVENTS,
|
291
292
|
se as Edit2Icon,
|
292
293
|
ae as EditIcon,
|
293
|
-
|
294
|
+
Ts as EditMilestoneModal,
|
294
295
|
pe as EditStarIcon,
|
295
296
|
ue as EraserIcon,
|
296
297
|
wr as Error,
|
297
|
-
|
298
|
-
|
298
|
+
$s as ExpandableHeader,
|
299
|
+
Vf as ExtraPractice,
|
299
300
|
ce as Eye2Icon,
|
300
301
|
xe as EyeIcon,
|
301
302
|
xt as FlexView,
|
302
303
|
Sa as GAME_LAUNCHER_ASSET_PADDING,
|
303
304
|
Ca as GAME_LAUNCHER_SIZE,
|
304
305
|
sr as GameIcon,
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
306
|
+
ga as GameId,
|
307
|
+
rf as GameLauncher,
|
308
|
+
ts as GoalCreationConfirmationModal,
|
309
|
+
ms as GoalDraftEdit,
|
310
|
+
Ss as GoalEdit,
|
310
311
|
et as GooglePlacesSearchInput,
|
311
312
|
r as GradeSelector,
|
312
313
|
ie as HandIcon,
|
@@ -315,81 +316,82 @@ export {
|
|
315
316
|
Pe as HomeIcon,
|
316
317
|
s as ILLUSTRATIONS,
|
317
318
|
p as IMAGES,
|
318
|
-
|
319
|
+
Za as IStatsToAwardErrorCode,
|
319
320
|
gr as IconButton,
|
320
321
|
he as ImageIcon,
|
321
|
-
|
322
|
+
qf as IndicatorType,
|
322
323
|
Ne as Info2Icon,
|
324
|
+
Pa as InfoBar,
|
323
325
|
ke as InfoIcon,
|
324
|
-
|
325
|
-
|
326
|
+
Kf as JOURNEY_ID_STUDENT,
|
327
|
+
zf as JourneyProvider,
|
326
328
|
da as LPARChapter,
|
327
329
|
na as LPARMilestoneChapter,
|
328
|
-
|
329
|
-
|
330
|
+
pf as Leaderboard,
|
331
|
+
Wl as LearnosityPreloader,
|
330
332
|
Oe as LeftIcon,
|
331
|
-
|
333
|
+
ba as LessonId,
|
332
334
|
ye as Lock2Icon,
|
333
335
|
De as LockIcon,
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
336
|
+
Fl as Maintenance,
|
337
|
+
Ls as MilestoneActionWidget,
|
338
|
+
ls as MilestoneCreate,
|
339
|
+
As as MilestoneEdit,
|
340
|
+
_s as MilestoneList,
|
341
|
+
ds as MilestoneOutcome,
|
342
|
+
Ms as MilestoneStart,
|
343
|
+
Ua as MiniGameId,
|
342
344
|
Ue as Minus2Icon,
|
343
345
|
ge as MinusIcon,
|
344
346
|
We as MistakeIcon,
|
345
347
|
we as Mobile,
|
346
348
|
Ye as MoreVerticalIcon,
|
347
349
|
fa as MultiTabBlocker,
|
348
|
-
|
349
|
-
|
350
|
-
|
350
|
+
ml as NODE_LABELS,
|
351
|
+
ul as NODE_SUB_GROUP,
|
352
|
+
dl as NODE_TYPE,
|
351
353
|
cr as Next2Icon,
|
352
354
|
Fe as NextIcon,
|
353
355
|
Or as Nudge,
|
354
356
|
st as NumRangeInput,
|
355
357
|
qt as PLATFORM_EVENTS_STUDENT,
|
356
358
|
$t as PLATFORM_EVENTS_TEACHER,
|
357
|
-
|
359
|
+
xl as PYTHON_NODE_TYPES,
|
358
360
|
je as PencilIcon,
|
359
361
|
pt as PercentileInput,
|
360
362
|
zt as PerfectHits,
|
361
363
|
eo as Play2Icon,
|
362
364
|
Xe as PlayIcon,
|
363
|
-
|
365
|
+
ja as PlayerType,
|
364
366
|
ao as Plus2Icon,
|
365
367
|
ro as PlusIcon,
|
366
368
|
Ze as PointerIcon,
|
367
|
-
|
369
|
+
Js as PostGameStats,
|
368
370
|
so as PracticeIcon,
|
369
|
-
|
371
|
+
yl as PreviewWorksheet,
|
370
372
|
po as ProgressIcon,
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
373
|
+
va as ProjectId,
|
374
|
+
wa as ProjectOutcome,
|
375
|
+
Fa as ProjectType,
|
376
|
+
Wa as PuzzleId,
|
375
377
|
uo as QuestionIcon,
|
376
378
|
no as QuestionLetterIcon,
|
377
|
-
|
379
|
+
nl as REWARDS_LIST,
|
378
380
|
Et as RadioCard,
|
379
381
|
jr as RadioInput,
|
380
382
|
Io as RedoIcon,
|
381
|
-
|
382
|
-
|
383
|
+
tl as ReferenceSheet,
|
384
|
+
Qs as RemotePeerPointer,
|
383
385
|
To as RightIcon,
|
384
386
|
So as RulerIcon,
|
385
387
|
Ia as SATSheetSummary,
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
388
|
+
cl as SHEET_ACTIONS,
|
389
|
+
Il as SHEET_ATTEMPT_LOCATION,
|
390
|
+
il as SHEET_ATTEMPT_LOCATION_MAP,
|
391
|
+
Tl as SHEET_ATTEMPT_STATE,
|
392
|
+
El as SHEET_DATA_TYPE,
|
393
|
+
Sl as SHEET_STATE,
|
394
|
+
Ds as STAGES,
|
393
395
|
zo as ScribbleIcon,
|
394
396
|
Ao as SearchIcon,
|
395
397
|
Xr as SearchableSelectInput,
|
@@ -397,33 +399,33 @@ export {
|
|
397
399
|
Zr as SelectInput,
|
398
400
|
ut as SelectionCards,
|
399
401
|
Kt as Separator,
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
402
|
+
Ul as SheetError,
|
403
|
+
ol as SheetList,
|
404
|
+
gl as SheetLocked,
|
405
|
+
If as SignUp,
|
404
406
|
Zo as SketchIcon,
|
405
407
|
Mo as Skip2Icon,
|
406
408
|
Lo as SkipIcon,
|
407
|
-
|
409
|
+
nf as SplashScreen,
|
408
410
|
Ho as Star2Icon,
|
409
411
|
_o as StarIcon,
|
410
412
|
a as Stepper,
|
411
413
|
Qt as StreakIcon,
|
412
414
|
Ro as StrikedEyeIcon,
|
413
|
-
|
414
|
-
|
415
|
+
Al as StudentDetails,
|
416
|
+
os as SubmitMilestoneModal,
|
415
417
|
Go as SwitchIcon,
|
416
418
|
Vt as TabComponent,
|
417
419
|
ht as Tag,
|
418
|
-
|
420
|
+
Hs as TestsCreation,
|
419
421
|
Pt as Text,
|
420
422
|
Ur as TextButton,
|
421
423
|
rt as TextInput,
|
422
424
|
Bo as TickIcon,
|
423
425
|
vt as TimeLeftTimeline,
|
424
|
-
|
426
|
+
Bf as TrialSession,
|
425
427
|
bo as TrophyIcon,
|
426
|
-
|
428
|
+
Da as Tutorial,
|
427
429
|
pr as TutoringIcon,
|
428
430
|
Nt as UIContext,
|
429
431
|
vo as UndoIcon,
|
@@ -433,45 +435,45 @@ export {
|
|
433
435
|
Ko as UserIcon,
|
434
436
|
Jt as Video,
|
435
437
|
oa as WHITELIST_EVENTS,
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
438
|
+
Ll as WORKSHEET_ACTION_BAR_HEIGHT,
|
439
|
+
kl as WORKSHEET_QUESTIONS_GAP,
|
440
|
+
Ml as WORKSHEET_QUESTION_WIDTH,
|
441
|
+
Nl as WORKSHEET_TOP_NAVIGATION_HEIGHT,
|
442
|
+
ya as WebView,
|
443
|
+
Ya as WebViewEvent,
|
444
|
+
Dl as Worksheet,
|
443
445
|
Ta as checkIfPPTNodeType,
|
444
446
|
Bt as getTheme,
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
447
|
+
Ws as invalidateMilestoneResources,
|
448
|
+
ys as invalidateMilestonesData,
|
449
|
+
bs as invalidateTestHelpData,
|
450
|
+
Ol as isOkayTypeQuestion,
|
451
|
+
fl as isV3Worksheet,
|
452
|
+
sl as isV3WorksheetAttempt,
|
453
|
+
_l as loadScript,
|
454
|
+
Qf as useAutoPlayPermission,
|
455
|
+
hf as useCanvasSyncBroker,
|
456
|
+
Na as useCircleSounds,
|
457
|
+
vf as useClassTimeAlerts,
|
456
458
|
Gt as useContextMenuClickHandler,
|
457
459
|
Cr as useForceReload,
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
460
|
+
Bs as useGetAllMilestonesdata,
|
461
|
+
af as useGetCircleHomeDetailsDal,
|
462
|
+
ha as useGetLeaderboardDal,
|
463
|
+
Vs as useGetMilestoneResources,
|
464
|
+
Us as useGetTestHelpData,
|
465
|
+
Df as useInClassActionDispatcher,
|
466
|
+
Gf as useInClassActionListener,
|
467
|
+
kf as useInClassMessageBroker,
|
468
|
+
wl as useIsLearnosityLoaded,
|
467
469
|
ta as useIsTabBlocked,
|
468
|
-
|
469
|
-
|
470
|
-
|
470
|
+
Jf as useJourney,
|
471
|
+
Ks as usePointerSync,
|
472
|
+
sf as usePostUpdateCircleJourneyDal,
|
471
473
|
Rt as useTrackingContext,
|
472
|
-
|
474
|
+
Nf as useTrialSessionMessageBroker,
|
473
475
|
Ht as useUIContext,
|
474
|
-
|
476
|
+
Yl as useWorksheetLayout,
|
475
477
|
Er as useZoomDisable
|
476
478
|
};
|
477
479
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|