@cuemath/leap 2.8.41 → 2.8.43-link.0
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/assets/illustrations/illustrations.js +2 -0
- package/dist/assets/illustrations/illustrations.js.map +1 -1
- package/dist/assets/line-icons/icons/carat-left.js +26 -0
- package/dist/assets/line-icons/icons/carat-left.js.map +1 -0
- package/dist/assets/line-icons/icons/carat-right.js +26 -0
- package/dist/assets/line-icons/icons/carat-right.js.map +1 -0
- package/dist/assets/sounds/sounds.js +7 -0
- package/dist/assets/sounds/sounds.js.map +1 -0
- package/dist/features/circle-games/enum/circle-onboarding-steps.js +1 -1
- package/dist/features/circle-games/enum/circle-onboarding-steps.js.map +1 -1
- package/dist/features/circle-games/game-launcher/comps/card-container/card-container.js +20 -11
- package/dist/features/circle-games/game-launcher/comps/card-container/card-container.js.map +1 -1
- package/dist/features/circle-games/game-launcher/comps/carousel/carousel.js +53 -47
- package/dist/features/circle-games/game-launcher/comps/carousel/carousel.js.map +1 -1
- package/dist/features/circle-games/game-launcher/comps/tables-card/tables-card.js +159 -130
- package/dist/features/circle-games/game-launcher/comps/tables-card/tables-card.js.map +1 -1
- package/dist/features/circle-games/game-launcher/dal/use-get-circle-home-details-dal/use-get-circle-home-details-dal.js +14 -13
- package/dist/features/circle-games/game-launcher/dal/use-get-circle-home-details-dal/use-get-circle-home-details-dal.js.map +1 -1
- package/dist/features/circle-games/game-launcher/game-launcher.js +95 -68
- package/dist/features/circle-games/game-launcher/game-launcher.js.map +1 -1
- package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/constants.js +9 -0
- package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/constants.js.map +1 -0
- package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js +217 -0
- package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js.map +1 -0
- package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/constants.js +13 -0
- package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/constants.js.map +1 -0
- package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/use-table-launcher-journey-styled.js +13 -0
- package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/use-table-launcher-journey-styled.js.map +1 -0
- package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/use-table-launcher-journey.js +205 -0
- package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/use-table-launcher-journey.js.map +1 -0
- package/dist/features/journey/journey-id/journey-id-student.js +1 -1
- package/dist/features/journey/journey-id/journey-id-student.js.map +1 -1
- package/dist/features/talk-meter/helper.js +11 -0
- package/dist/features/talk-meter/helper.js.map +1 -0
- package/dist/features/talk-meter/hooks/use-talk-meter.js +123 -0
- package/dist/features/talk-meter/hooks/use-talk-meter.js.map +1 -0
- package/dist/features/talk-meter/ripple/index.js +62 -0
- package/dist/features/talk-meter/ripple/index.js.map +1 -0
- package/dist/features/talk-meter/talk-meter-styled.js +89 -0
- package/dist/features/talk-meter/talk-meter-styled.js.map +1 -0
- package/dist/features/talk-meter/talk-meter-view/talk-meter-view-styled.js +22 -0
- package/dist/features/talk-meter/talk-meter-view/talk-meter-view-styled.js.map +1 -0
- package/dist/features/talk-meter/talk-meter-view/talk-meter-view.js +101 -0
- package/dist/features/talk-meter/talk-meter-view/talk-meter-view.js.map +1 -0
- package/dist/features/talk-meter/talk-meter.js +75 -0
- package/dist/features/talk-meter/talk-meter.js.map +1 -0
- package/dist/index.d.ts +48 -2
- package/dist/index.js +135 -133
- package/dist/index.js.map +1 -1
- package/dist/static/female-avatar.b8cd1012.svg +1 -0
- package/dist/static/male-avatar.2febc9eb.svg +1 -0
- package/package.json +1 -1
- package/dist/features/circle-games/game-launcher/use-game-launcher-journey/constants.js +0 -7
- package/dist/features/circle-games/game-launcher/use-game-launcher-journey/constants.js.map +0 -1
- package/dist/features/circle-games/game-launcher/use-game-launcher-journey/use-game-launcher-journey.js +0 -213
- package/dist/features/circle-games/game-launcher/use-game-launcher-journey/use-game-launcher-journey.js.map +0 -1
@@ -0,0 +1,101 @@
|
|
1
|
+
import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
2
|
+
import { memo as b } from "react";
|
3
|
+
import { ILLUSTRATIONS as d } from "../../../assets/illustrations/illustrations.js";
|
4
|
+
import $ from "../../ui/image/image.js";
|
5
|
+
import t from "../../ui/layout/flex-view.js";
|
6
|
+
import T from "../../ui/separator/separator.js";
|
7
|
+
import o from "../../ui/text/text.js";
|
8
|
+
import { getMeterColor as g } from "../helper.js";
|
9
|
+
import { MeterWrapper as l } from "./talk-meter-view-styled.js";
|
10
|
+
const p = {
|
11
|
+
MALE: "MALE",
|
12
|
+
FEMALE: "FEMALE",
|
13
|
+
OTHER: "OTHER"
|
14
|
+
}, j = b((s) => {
|
15
|
+
const {
|
16
|
+
stdName: h = "Student",
|
17
|
+
tchName: u = "Teacher",
|
18
|
+
stdRatio: i,
|
19
|
+
tchRatio: n,
|
20
|
+
tchGender: E,
|
21
|
+
userType: m
|
22
|
+
} = s, c = g(i), A = Math.abs(n - i), f = n > 0 && i > 0 && A < 95, a = m === "TEACHER";
|
23
|
+
return f ? /* @__PURE__ */ r(
|
24
|
+
l,
|
25
|
+
{
|
26
|
+
$gap: 12,
|
27
|
+
$gutter: 12,
|
28
|
+
$background: "WHITE",
|
29
|
+
$borderColor: "GREY_2",
|
30
|
+
$borderRadius: 12,
|
31
|
+
children: [
|
32
|
+
/* @__PURE__ */ e(o, { $renderAs: "ub3-bold", $align: "center", children: "50:50 TALK METER" }),
|
33
|
+
/* @__PURE__ */ e(T, { height: 8 }),
|
34
|
+
/* @__PURE__ */ r(t, { $flexDirection: "row", $alignItems: "center", $justifyContent: "space-between", children: [
|
35
|
+
/* @__PURE__ */ r(t, { $flexDirection: "row", $justifyContent: "center", $alignItems: "center", $flexGap: 4, children: [
|
36
|
+
/* @__PURE__ */ e($, { src: d.ALIEN_4, width: 20, height: 20, withLoader: !0 }),
|
37
|
+
/* @__PURE__ */ e(o, { $renderAs: "ub3-bold", $color: "BLACK", children: a ? h : "You" })
|
38
|
+
] }),
|
39
|
+
/* @__PURE__ */ r(t, { $flexDirection: "row", $justifyContent: "center", $alignItems: "center", $flexGap: 4, children: [
|
40
|
+
/* @__PURE__ */ e(o, { $renderAs: "ub3-bold", $color: "BLACK", children: a ? "You" : u }),
|
41
|
+
/* @__PURE__ */ e(
|
42
|
+
$,
|
43
|
+
{
|
44
|
+
src: E === p.MALE ? d.MALE_AVATAR : d.FEMALE_AVATAR,
|
45
|
+
width: 20,
|
46
|
+
height: 20,
|
47
|
+
withLoader: !0
|
48
|
+
}
|
49
|
+
)
|
50
|
+
] })
|
51
|
+
] }),
|
52
|
+
/* @__PURE__ */ r(t, { $flexDirection: "row", $gap: 4, children: [
|
53
|
+
/* @__PURE__ */ e(
|
54
|
+
t,
|
55
|
+
{
|
56
|
+
$height: 8,
|
57
|
+
$width: `${i}%`,
|
58
|
+
$borderRadius: 4,
|
59
|
+
$background: c.STUDENT
|
60
|
+
}
|
61
|
+
),
|
62
|
+
/* @__PURE__ */ e(
|
63
|
+
t,
|
64
|
+
{
|
65
|
+
$height: 8,
|
66
|
+
$width: `${n}%`,
|
67
|
+
$borderRadius: 4,
|
68
|
+
$background: c.TEACHER
|
69
|
+
}
|
70
|
+
)
|
71
|
+
] }),
|
72
|
+
/* @__PURE__ */ r(t, { $flexDirection: "row", $alignItems: "center", $justifyContent: "space-between", children: [
|
73
|
+
/* @__PURE__ */ r(o, { $renderAs: "ab2-black", $color: c.STUDENT, children: [
|
74
|
+
i,
|
75
|
+
" %"
|
76
|
+
] }),
|
77
|
+
/* @__PURE__ */ r(o, { $renderAs: "ab2-black", $color: c.TEACHER, children: [
|
78
|
+
n,
|
79
|
+
" %"
|
80
|
+
] })
|
81
|
+
] })
|
82
|
+
]
|
83
|
+
}
|
84
|
+
) : /* @__PURE__ */ e(
|
85
|
+
l,
|
86
|
+
{
|
87
|
+
$gap: 12,
|
88
|
+
$gutter: 12,
|
89
|
+
$borderRadius: 12,
|
90
|
+
$background: "WHITE",
|
91
|
+
$borderColor: "GREY_2",
|
92
|
+
$alignItems: "center",
|
93
|
+
$justifyContent: "center",
|
94
|
+
children: /* @__PURE__ */ e(o, { $renderAs: "ub3-bold", $color: "BLACK", children: "Oops! There was insufficient data to calculate your Talk Ratio." })
|
95
|
+
}
|
96
|
+
);
|
97
|
+
});
|
98
|
+
export {
|
99
|
+
j as default
|
100
|
+
};
|
101
|
+
//# sourceMappingURL=talk-meter-view.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"talk-meter-view.js","sources":["../../../../src/features/talk-meter/talk-meter-view/talk-meter-view.tsx"],"sourcesContent":["import type { TUserTypes } from '../../ui/types';\nimport type { FC } from 'react';\n\nimport { memo } from 'react';\n\nimport { ILLUSTRATIONS } from '../../../assets/illustrations/illustrations';\nimport Image from '../../ui/image/image';\nimport FlexView from '../../ui/layout/flex-view';\nimport Separator from '../../ui/separator/separator';\nimport Text from '../../ui/text/text';\nimport { getMeterColor } from '../helper';\nimport * as Styled from './talk-meter-view-styled';\n\nconst GENDER = {\n MALE: 'MALE',\n FEMALE: 'FEMALE',\n OTHER: 'OTHER',\n};\n\ninterface ITalkMeterView {\n stdName?: string;\n tchName?: string;\n stdRatio: number;\n tchRatio: number;\n tchGender: keyof typeof GENDER;\n userType: TUserTypes;\n}\n\nconst TalkMeterView: FC<ITalkMeterView> = memo(props => {\n const {\n stdName = 'Student',\n tchName = 'Teacher',\n stdRatio,\n tchRatio,\n tchGender,\n userType,\n } = props;\n const colors = getMeterColor(stdRatio);\n const diff = Math.abs(tchRatio - stdRatio);\n const isValid = tchRatio > 0 && stdRatio > 0 && diff < 95;\n const isTeacher = userType === 'TEACHER';\n\n if (!isValid) {\n return (\n <Styled.MeterWrapper\n $gap={12}\n $gutter={12}\n $borderRadius={12}\n $background=\"WHITE\"\n $borderColor=\"GREY_2\"\n $alignItems=\"center\"\n $justifyContent=\"center\"\n >\n <Text $renderAs=\"ub3-bold\" $color=\"BLACK\">\n Oops! There was insufficient data to calculate your Talk Ratio.\n </Text>\n </Styled.MeterWrapper>\n );\n }\n\n return (\n <Styled.MeterWrapper\n $gap={12}\n $gutter={12}\n $background=\"WHITE\"\n $borderColor=\"GREY_2\"\n $borderRadius={12}\n >\n <Text $renderAs=\"ub3-bold\" $align=\"center\">\n 50:50 TALK METER\n </Text>\n\n <Separator height={8} />\n <FlexView $flexDirection=\"row\" $alignItems=\"center\" $justifyContent=\"space-between\">\n <FlexView $flexDirection=\"row\" $justifyContent=\"center\" $alignItems=\"center\" $flexGap={4}>\n <Image src={ILLUSTRATIONS.ALIEN_4} width={20} height={20} withLoader />\n <Text $renderAs=\"ub3-bold\" $color=\"BLACK\">\n {isTeacher ? stdName : 'You'}\n </Text>\n </FlexView>\n <FlexView $flexDirection=\"row\" $justifyContent=\"center\" $alignItems=\"center\" $flexGap={4}>\n <Text $renderAs=\"ub3-bold\" $color=\"BLACK\">\n {isTeacher ? 'You' : tchName}\n </Text>\n <Image\n src={\n tchGender === GENDER.MALE ? ILLUSTRATIONS.MALE_AVATAR : ILLUSTRATIONS.FEMALE_AVATAR\n }\n width={20}\n height={20}\n withLoader\n />\n </FlexView>\n </FlexView>\n <FlexView $flexDirection=\"row\" $gap={4}>\n <FlexView\n $height={8}\n $width={`${stdRatio}%`}\n $borderRadius={4}\n $background={colors.STUDENT}\n />\n <FlexView\n $height={8}\n $width={`${tchRatio}%`}\n $borderRadius={4}\n $background={colors.TEACHER}\n />\n </FlexView>\n <FlexView $flexDirection=\"row\" $alignItems=\"center\" $justifyContent=\"space-between\">\n <Text $renderAs=\"ab2-black\" $color={colors.STUDENT}>\n {stdRatio} %\n </Text>\n <Text $renderAs=\"ab2-black\" $color={colors.TEACHER}>\n {tchRatio} %\n </Text>\n </FlexView>\n </Styled.MeterWrapper>\n );\n});\n\nexport default TalkMeterView;\n"],"names":["GENDER","TalkMeterView","memo","props","stdName","tchName","stdRatio","tchRatio","tchGender","userType","colors","getMeterColor","diff","isValid","isTeacher","jsxs","Styled.MeterWrapper","jsx","Text","Separator","FlexView","Image","ILLUSTRATIONS"],"mappings":";;;;;;;;;AAaA,MAAMA,IAAS;AAAA,EACb,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,OAAO;AACT,GAWMC,IAAoCC,EAAK,CAASC,MAAA;AAChD,QAAA;AAAA,IACJ,SAAAC,IAAU;AAAA,IACV,SAAAC,IAAU;AAAA,IACV,UAAAC;AAAA,IACA,UAAAC;AAAA,IACA,WAAAC;AAAA,IACA,UAAAC;AAAA,EACE,IAAAN,GACEO,IAASC,EAAcL,CAAQ,GAC/BM,IAAO,KAAK,IAAIL,IAAWD,CAAQ,GACnCO,IAAUN,IAAW,KAAKD,IAAW,KAAKM,IAAO,IACjDE,IAAYL,MAAa;AAE/B,SAAKI,IAmBH,gBAAAE;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,MAAM;AAAA,MACN,SAAS;AAAA,MACT,aAAY;AAAA,MACZ,cAAa;AAAA,MACb,eAAe;AAAA,MAEf,UAAA;AAAA,QAAA,gBAAAC,EAACC,GAAK,EAAA,WAAU,YAAW,QAAO,UAAS,UAE3C,oBAAA;AAAA,QAEA,gBAAAD,EAACE,GAAU,EAAA,QAAQ,EAAG,CAAA;AAAA,0BACrBC,GAAS,EAAA,gBAAe,OAAM,aAAY,UAAS,iBAAgB,iBAClE,UAAA;AAAA,UAAC,gBAAAL,EAAAK,GAAA,EAAS,gBAAe,OAAM,iBAAgB,UAAS,aAAY,UAAS,UAAU,GACrF,UAAA;AAAA,YAAC,gBAAAH,EAAAI,GAAA,EAAM,KAAKC,EAAc,SAAS,OAAO,IAAI,QAAQ,IAAI,YAAU,GAAC,CAAA;AAAA,YACrE,gBAAAL,EAACC,KAAK,WAAU,YAAW,QAAO,SAC/B,UAAAJ,IAAYV,IAAU,MACzB,CAAA;AAAA,UAAA,GACF;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A,MACT,eAAe;AAAA,MACf,aAAY;AAAA,MACZ,cAAa;AAAA,MACb,aAAY;AAAA,MACZ,iBAAgB;AAAA,MAEhB,4BAACE,GAAK,EAAA,WAAU,YAAW,QAAO,SAAQ,UAE1C,mEAAA;AAAA,IAAA;AAAA,EAAA;AA+DR,CAAC;"}
|
@@ -0,0 +1,75 @@
|
|
1
|
+
import { jsxs as c, Fragment as y, jsx as e } from "react/jsx-runtime";
|
2
|
+
import { memo as v } from "react";
|
3
|
+
import { getMeterColor as w } from "./helper.js";
|
4
|
+
import { useTalkMeter as x } from "./hooks/use-talk-meter.js";
|
5
|
+
import n from "./ripple/index.js";
|
6
|
+
import { Wrapper as S, CloseIcon as j } from "./talk-meter-styled.js";
|
7
|
+
import B from "./talk-meter-view/talk-meter-view.js";
|
8
|
+
const G = v((m) => {
|
9
|
+
const {
|
10
|
+
animated: t = !0,
|
11
|
+
userType: a,
|
12
|
+
teacherId: l,
|
13
|
+
studentId: d,
|
14
|
+
studentName: h,
|
15
|
+
teacherName: T,
|
16
|
+
teacherGender: p,
|
17
|
+
classDuration: u,
|
18
|
+
classStartTime: f,
|
19
|
+
canDisplayBatch: k,
|
20
|
+
teacherTalkTime: A,
|
21
|
+
studentTalkTime: M,
|
22
|
+
avPackageEnabled: N,
|
23
|
+
teacherClassroomId: $,
|
24
|
+
lastBatchReceivedNo: g,
|
25
|
+
onDismissMeter: D,
|
26
|
+
onMessageReceive: I
|
27
|
+
} = m, { canAnimateOut: R, canAnimateIn: r, stdRatio: o, tchRatio: C, handleDismiss: E } = x({
|
28
|
+
userType: a,
|
29
|
+
studentId: d,
|
30
|
+
teacherId: l,
|
31
|
+
classStartTime: f,
|
32
|
+
avPackageEnabled: N,
|
33
|
+
teacherClassroomId: $,
|
34
|
+
teacherTalkTime: A,
|
35
|
+
studentTalkTime: M,
|
36
|
+
lastBatchReceivedNo: g,
|
37
|
+
canDisplayBatch: k,
|
38
|
+
classDuration: u,
|
39
|
+
onMessageReceive: I,
|
40
|
+
onDismissMeter: D
|
41
|
+
}), s = w(o), i = a === "TEACHER";
|
42
|
+
return /* @__PURE__ */ c(
|
43
|
+
S,
|
44
|
+
{
|
45
|
+
$gutter: 12,
|
46
|
+
$gap: 12,
|
47
|
+
$isTeacher: i,
|
48
|
+
$animated: t,
|
49
|
+
$canAnimateIn: r,
|
50
|
+
$canAnimateOut: R,
|
51
|
+
children: [
|
52
|
+
t && r && /* @__PURE__ */ c(y, { children: [
|
53
|
+
/* @__PURE__ */ e(n, { delay: 800, withAudio: !0, color: s.STUDENT }),
|
54
|
+
/* @__PURE__ */ e(n, { delay: 1050, withAudio: !1, color: s.STUDENT })
|
55
|
+
] }),
|
56
|
+
/* @__PURE__ */ e(
|
57
|
+
B,
|
58
|
+
{
|
59
|
+
userType: a,
|
60
|
+
tchName: T,
|
61
|
+
stdName: h,
|
62
|
+
tchRatio: C,
|
63
|
+
stdRatio: o,
|
64
|
+
tchGender: p
|
65
|
+
}
|
66
|
+
),
|
67
|
+
t && !i && /* @__PURE__ */ e(j, { onClick: E })
|
68
|
+
]
|
69
|
+
}
|
70
|
+
);
|
71
|
+
}), W = G;
|
72
|
+
export {
|
73
|
+
W as default
|
74
|
+
};
|
75
|
+
//# sourceMappingURL=talk-meter.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"talk-meter.js","sources":["../../../src/features/talk-meter/talk-meter.tsx"],"sourcesContent":["import type { ITalkMeterProps } from './talk-meter-types';\nimport type { FC } from 'react';\n\nimport { memo } from 'react';\n\nimport { getMeterColor } from './helper';\nimport { useTalkMeter } from './hooks/use-talk-meter';\nimport Ripple from './ripple';\nimport * as Styled from './talk-meter-styled';\nimport TalkMeterView from './talk-meter-view/talk-meter-view';\n\nconst TalkMeter: FC<ITalkMeterProps> = memo(props => {\n const {\n animated = true,\n userType,\n teacherId,\n studentId,\n studentName,\n teacherName,\n teacherGender,\n classDuration,\n classStartTime,\n canDisplayBatch,\n teacherTalkTime,\n studentTalkTime,\n avPackageEnabled,\n teacherClassroomId,\n lastBatchReceivedNo,\n onDismissMeter,\n onMessageReceive,\n } = props;\n\n const { canAnimateOut, canAnimateIn, stdRatio, tchRatio, handleDismiss } = useTalkMeter({\n userType,\n studentId,\n teacherId,\n classStartTime,\n avPackageEnabled,\n teacherClassroomId,\n teacherTalkTime,\n studentTalkTime,\n lastBatchReceivedNo,\n canDisplayBatch,\n classDuration,\n onMessageReceive,\n onDismissMeter,\n });\n\n const colors = getMeterColor(stdRatio);\n const isTeacher = userType === 'TEACHER';\n\n return (\n <Styled.Wrapper\n $gutter={12}\n $gap={12}\n $isTeacher={isTeacher}\n $animated={animated}\n $canAnimateIn={canAnimateIn}\n $canAnimateOut={canAnimateOut}\n >\n {animated && canAnimateIn && (\n <>\n <Ripple delay={800} withAudio color={colors.STUDENT} />\n <Ripple delay={1050} withAudio={false} color={colors.STUDENT} />\n </>\n )}\n <TalkMeterView\n userType={userType}\n tchName={teacherName}\n stdName={studentName}\n tchRatio={tchRatio}\n stdRatio={stdRatio}\n tchGender={teacherGender}\n />\n {animated && !isTeacher && <Styled.CloseIcon onClick={handleDismiss} />}\n </Styled.Wrapper>\n );\n});\n\nexport default TalkMeter;\n"],"names":["TalkMeter","memo","props","animated","userType","teacherId","studentId","studentName","teacherName","teacherGender","classDuration","classStartTime","canDisplayBatch","teacherTalkTime","studentTalkTime","avPackageEnabled","teacherClassroomId","lastBatchReceivedNo","onDismissMeter","onMessageReceive","canAnimateOut","canAnimateIn","stdRatio","tchRatio","handleDismiss","useTalkMeter","colors","getMeterColor","isTeacher","jsxs","Styled.Wrapper","Fragment","jsx","Ripple","TalkMeterView","Styled.CloseIcon","TalkMeter$1"],"mappings":";;;;;;;AAWA,MAAMA,IAAiCC,EAAK,CAASC,MAAA;AAC7C,QAAA;AAAA,IACJ,UAAAC,IAAW;AAAA,IACX,UAAAC;AAAA,IACA,WAAAC;AAAA,IACA,WAAAC;AAAA,IACA,aAAAC;AAAA,IACA,aAAAC;AAAA,IACA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KAAa,gBAAAI,EAACG,GAAA,EAAiB,SAASX,GAAe;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAG3E,CAAC,GAEDY,IAAepC;"}
|
package/dist/index.d.ts
CHANGED
@@ -173,7 +173,8 @@ export declare enum CIRCLE_ONBOARDING_ANALYTICS_STEPS {
|
|
173
173
|
TUTORIAL = "tutorial",
|
174
174
|
POINTS = "points",
|
175
175
|
STREAK = "streak",
|
176
|
-
LEADERBOARD = "leaderboard"
|
176
|
+
LEADERBOARD = "leaderboard",
|
177
|
+
TABLES = "tables"
|
177
178
|
}
|
178
179
|
|
179
180
|
export declare enum CircleSoundKey {
|
@@ -412,6 +413,12 @@ export declare const GameIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
|
|
412
413
|
|
413
414
|
export declare const GameLauncher: FC<IGameLauncherProps>;
|
414
415
|
|
416
|
+
declare enum GENDER {
|
417
|
+
MALE = "MALE",
|
418
|
+
FEMALE = "FEMALE",
|
419
|
+
OTHER = "OTHER"
|
420
|
+
}
|
421
|
+
|
415
422
|
declare const getArrowTooltipConfig: IGetArrowTooltipConfig;
|
416
423
|
|
417
424
|
declare const getButtonConfig: IGetButtonConfig;
|
@@ -888,6 +895,7 @@ declare interface ICoachMarkCompletion {
|
|
888
895
|
CIRCLE_POINTS_REWARD_JOURNEY: boolean;
|
889
896
|
CIRCLE_STREAK_UPDATE_JOURNEY: boolean;
|
890
897
|
CIRCLE_TUTORIAL_JOURNEY: boolean;
|
898
|
+
CIRCLE_TABLES_INTRO_JOURNEY: boolean;
|
891
899
|
}
|
892
900
|
|
893
901
|
export declare interface ICoachmarkProgress {
|
@@ -896,6 +904,7 @@ export declare interface ICoachmarkProgress {
|
|
896
904
|
CIRCLE_POINTS_REWARD_JOURNEY: boolean;
|
897
905
|
CIRCLE_STREAK_UPDATE_JOURNEY: boolean;
|
898
906
|
CIRCLE_TUTORIAL_JOURNEY: boolean;
|
907
|
+
CIRCLE_TABLES_INTRO_JOURNEY: boolean;
|
899
908
|
}
|
900
909
|
|
901
910
|
/**
|
@@ -1103,6 +1112,7 @@ declare interface IGameLauncherProps {
|
|
1103
1112
|
data: IProjectData | null;
|
1104
1113
|
defaultIndex?: number;
|
1105
1114
|
journeyId?: TJourneyId;
|
1115
|
+
isTutorialOnboardingDone?: boolean;
|
1106
1116
|
onJourneyComplete: (journeyId: TJourneyId) => void;
|
1107
1117
|
}
|
1108
1118
|
|
@@ -1583,6 +1593,7 @@ export declare const ILLUSTRATIONS: {
|
|
1583
1593
|
DURATION_60MIN_GRAY: string;
|
1584
1594
|
DURATION_90MIN_GRAY: string;
|
1585
1595
|
EARTH_GREEN: string;
|
1596
|
+
FEMALE_AVATAR: string;
|
1586
1597
|
GAME_PLAY: string;
|
1587
1598
|
GLOBE_WITH_BLUE_FILL: string;
|
1588
1599
|
GRADE_GRID_BACKGROUND: string;
|
@@ -1600,6 +1611,7 @@ export declare const ILLUSTRATIONS: {
|
|
1600
1611
|
LOADER_1: string;
|
1601
1612
|
LOCKED: string;
|
1602
1613
|
MAINTENANCE: string;
|
1614
|
+
MALE_AVATAR: string;
|
1603
1615
|
MASTERED_BADGE: string;
|
1604
1616
|
MASTERED_SHIELD_GRAY: string;
|
1605
1617
|
MASTERED_SHIELD_GREEN: string;
|
@@ -2729,6 +2741,29 @@ declare interface ITagProps {
|
|
2729
2741
|
textColor?: TColorNames;
|
2730
2742
|
}
|
2731
2743
|
|
2744
|
+
declare interface ITalkMeter {
|
2745
|
+
userType: TUserTypes;
|
2746
|
+
studentId: string;
|
2747
|
+
teacherId: string;
|
2748
|
+
classDuration?: number;
|
2749
|
+
classStartTime?: Date;
|
2750
|
+
avPackageEnabled?: boolean;
|
2751
|
+
teacherClassroomId: string;
|
2752
|
+
teacherTalkTime: number;
|
2753
|
+
studentTalkTime: number;
|
2754
|
+
lastBatchReceivedNo: number;
|
2755
|
+
canDisplayBatch: boolean;
|
2756
|
+
onMessageReceive: (data: TMessageData) => void;
|
2757
|
+
onDismissMeter: () => void;
|
2758
|
+
}
|
2759
|
+
|
2760
|
+
declare interface ITalkMeterProps extends ITalkMeter {
|
2761
|
+
studentName?: string;
|
2762
|
+
teacherName?: string;
|
2763
|
+
teacherGender: GENDER;
|
2764
|
+
animated?: boolean;
|
2765
|
+
}
|
2766
|
+
|
2732
2767
|
declare interface ITeacherReview {
|
2733
2768
|
reviewComment?: string;
|
2734
2769
|
images?: string[];
|
@@ -3350,7 +3385,8 @@ export declare enum JOURNEY_ID_STUDENT {
|
|
3350
3385
|
CIRCLE_LEADERBOARD_INTRO_JOURNEY = "CIRCLE_LEADERBOARD_INTRO_JOURNEY",
|
3351
3386
|
CIRCLE_POINTS_REWARD_JOURNEY = "CIRCLE_POINTS_REWARD_JOURNEY",
|
3352
3387
|
CIRCLE_STREAK_UPDATE_JOURNEY = "CIRCLE_STREAK_UPDATE_JOURNEY",
|
3353
|
-
CIRCLE_TUTORIAL_JOURNEY = "CIRCLE_TUTORIAL_JOURNEY"
|
3388
|
+
CIRCLE_TUTORIAL_JOURNEY = "CIRCLE_TUTORIAL_JOURNEY",
|
3389
|
+
CIRCLE_TABLES_INTRO_JOURNEY = "CIRCLE_TABLES_INTRO_JOURNEY"
|
3354
3390
|
}
|
3355
3391
|
|
3356
3392
|
export declare const JourneyProvider: FC<{
|
@@ -3891,6 +3927,8 @@ declare type TAggregateForRewardsData = {
|
|
3891
3927
|
|
3892
3928
|
declare type TAlignSelf = 'auto' | 'flex-start' | 'flex-end' | 'center' | 'stretch';
|
3893
3929
|
|
3930
|
+
export declare const TalkMeter: FC<ITalkMeterProps>;
|
3931
|
+
|
3894
3932
|
export declare type TArrowTooltipConfig = {
|
3895
3933
|
backgroundColorName: TColorNames;
|
3896
3934
|
textColorName: TColorNames;
|
@@ -4516,6 +4554,14 @@ declare type TMathSectionSummary = {
|
|
4516
4554
|
section_code: 'MATH';
|
4517
4555
|
} & TSectionSummary;
|
4518
4556
|
|
4557
|
+
declare type TMessageData = {
|
4558
|
+
teacher_classroom_id: string;
|
4559
|
+
student_classroom_id: string;
|
4560
|
+
teacher_speech_time?: number;
|
4561
|
+
student_speech_time?: number;
|
4562
|
+
batch_no: number;
|
4563
|
+
};
|
4564
|
+
|
4519
4565
|
declare type TMilestoneChapterBlockData = {
|
4520
4566
|
block_id: string;
|
4521
4567
|
block_type: TBlockType;
|