@cuemath/leap 2.8.43-link.0 → 2.8.43-rj-1
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 +0 -2
- package/dist/assets/illustrations/illustrations.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 +16 -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/hooks/use-game-launcher-journey/constants.js +5 -6
- package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/constants.js.map +1 -1
- package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js +78 -79
- package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js.map +1 -1
- package/dist/features/journey/use-journey/journey-context-provider.js +10 -8
- package/dist/features/journey/use-journey/journey-context-provider.js.map +1 -1
- package/dist/index.d.ts +2 -43
- package/dist/index.js +133 -135
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/assets/sounds/sounds.js +0 -7
- package/dist/assets/sounds/sounds.js.map +0 -1
- package/dist/features/talk-meter/helper.js +0 -11
- package/dist/features/talk-meter/helper.js.map +0 -1
- package/dist/features/talk-meter/hooks/use-talk-meter.js +0 -123
- package/dist/features/talk-meter/hooks/use-talk-meter.js.map +0 -1
- package/dist/features/talk-meter/ripple/index.js +0 -62
- package/dist/features/talk-meter/ripple/index.js.map +0 -1
- package/dist/features/talk-meter/talk-meter-styled.js +0 -89
- package/dist/features/talk-meter/talk-meter-styled.js.map +0 -1
- package/dist/features/talk-meter/talk-meter-view/talk-meter-view-styled.js +0 -22
- package/dist/features/talk-meter/talk-meter-view/talk-meter-view-styled.js.map +0 -1
- package/dist/features/talk-meter/talk-meter-view/talk-meter-view.js +0 -101
- package/dist/features/talk-meter/talk-meter-view/talk-meter-view.js.map +0 -1
- package/dist/features/talk-meter/talk-meter.js +0 -75
- package/dist/features/talk-meter/talk-meter.js.map +0 -1
- package/dist/static/female-avatar.b8cd1012.svg +0 -1
- package/dist/static/male-avatar.2febc9eb.svg +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"journey-context-provider.js","sources":["../../../../src/features/journey/use-journey/journey-context-provider.tsx"],"sourcesContent":["import type { TJourneyId } from '../journey-id/journey-id-types';\nimport type { ICoachmarkProps, IJourneyContext } from './journey-context-types';\nimport type { FC, ReactNode } from 'react';\n\nimport { createContext, useCallback, useMemo, useRef, useState } from 'react';\n\nimport { Coachmark } from '../comps/coachmark/coachmark';\nimport * as S from './journey-styled';\n\nexport const JourneyContext = createContext<IJourneyContext | null>(null);\n\nexport const JourneyProvider: FC<{ children: ReactNode }> = ({ children }) => {\n const [coachmarkList, setCoachmarkList] = useState<ICoachmarkProps[]>([]);\n const currentIndex = useRef(-1);\n const currentJourneyIdStudent = useRef<TJourneyId | undefined>();\n\n const setJourney = useCallback(\n (id: TJourneyId, coachmarks: ICoachmarkProps[]) => {\n if (coachmarkList.length > 0) {\n throw new Error(\n `setJourney: Other Journey is already active, Current Journey: ${currentJourneyIdStudent.current}, New Journey Request: ${id}`,\n );\n }\n currentJourneyIdStudent.current = id;\n currentIndex.current = -1;\n setCoachmarkList([...coachmarks]);\n },\n [coachmarkList.length],\n );\n\n const clearJourney = useCallback(() => {\n currentJourneyIdStudent.current = undefined;\n currentIndex.current = -1;\n setCoachmarkList([]);\n }, []);\n\n const addCoachmark = useCallback((id: TJourneyId, coachmark: ICoachmarkProps) => {\n if (!currentJourneyIdStudent.current || id !== currentJourneyIdStudent.current) {\n throw new Error(\n currentJourneyIdStudent.current\n ? `addCoachmark was called before setJourney`\n : `A Journey is already active, Current Journey: ${currentJourneyIdStudent.current}, New Journey Request: ${id}`,\n );\n }\n\n setCoachmarkList(prev => [...prev, coachmark]);\n }, []);\n\n const nextCoachmark = useCallback(\n (id: TJourneyId, keepPrevActive: boolean = false, delayInMs: number = 0) => {\n if (!currentJourneyIdStudent.current
|
1
|
+
{"version":3,"file":"journey-context-provider.js","sources":["../../../../src/features/journey/use-journey/journey-context-provider.tsx"],"sourcesContent":["import type { TJourneyId } from '../journey-id/journey-id-types';\nimport type { ICoachmarkProps, IJourneyContext } from './journey-context-types';\nimport type { FC, ReactNode } from 'react';\n\nimport { createContext, useCallback, useMemo, useRef, useState } from 'react';\n\nimport { Coachmark } from '../comps/coachmark/coachmark';\nimport * as S from './journey-styled';\n\nexport const JourneyContext = createContext<IJourneyContext | null>(null);\n\nexport const JourneyProvider: FC<{ children: ReactNode }> = ({ children }) => {\n const [coachmarkList, setCoachmarkList] = useState<ICoachmarkProps[]>([]);\n const currentIndex = useRef(-1);\n const currentJourneyIdStudent = useRef<TJourneyId | undefined>();\n\n const setJourney = useCallback(\n (id: TJourneyId, coachmarks: ICoachmarkProps[]) => {\n if (coachmarkList.length > 0) {\n throw new Error(\n `setJourney: Other Journey is already active, Current Journey: ${currentJourneyIdStudent.current}, New Journey Request: ${id}`,\n );\n }\n currentJourneyIdStudent.current = id;\n currentIndex.current = -1;\n setCoachmarkList([...coachmarks]);\n },\n [coachmarkList.length],\n );\n\n const clearJourney = useCallback(() => {\n currentJourneyIdStudent.current = undefined;\n currentIndex.current = -1;\n setCoachmarkList([]);\n }, []);\n\n const addCoachmark = useCallback((id: TJourneyId, coachmark: ICoachmarkProps) => {\n if (!currentJourneyIdStudent.current || id !== currentJourneyIdStudent.current) {\n throw new Error(\n currentJourneyIdStudent.current\n ? `addCoachmark was called before setJourney`\n : `A Journey is already active, Current Journey: ${currentJourneyIdStudent.current}, New Journey Request: ${id}`,\n );\n }\n\n setCoachmarkList(prev => [...prev, coachmark]);\n }, []);\n\n const nextCoachmark = useCallback(\n (id: TJourneyId, keepPrevActive: boolean = false, delayInMs: number = 0) => {\n if (!currentJourneyIdStudent.current) {\n throw new Error('nextCoachmark was called before setJourney');\n }\n\n if (id !== currentJourneyIdStudent.current) {\n throw new Error(\n `A Journey is already active, Current Journey: ${currentJourneyIdStudent.current}, New Journey Request: ${id}`,\n );\n }\n\n if (delayInMs !== 0) {\n // If delay is not 0, we will hide all them coachmarks and reveal only after the delay\n setCoachmarkList(prevList => {\n return prevList.map((item: ICoachmarkProps) => {\n return { ...item, isActive: false };\n });\n });\n }\n\n const timer = setTimeout(() => {\n clearTimeout(timer);\n const currIndex = currentIndex.current + 1;\n\n setCoachmarkList(prevList => {\n // Finish onboarding\n if (currIndex >= prevList.length || prevList.length === 0) {\n currentJourneyIdStudent.current = undefined;\n currentIndex.current = -1;\n\n return [];\n }\n\n currentIndex.current = currIndex;\n const updatedCoachmarkList = [...prevList];\n\n (updatedCoachmarkList[currIndex] as ICoachmarkProps).isActive = true;\n\n if (currIndex > 0) {\n (updatedCoachmarkList[currIndex - 1] as ICoachmarkProps).isActive = keepPrevActive;\n }\n\n return updatedCoachmarkList;\n });\n }, delayInMs);\n },\n [],\n );\n\n const memoizedContextValue = useMemo(\n () => ({\n nextCoachmark,\n setJourney,\n addCoachmark,\n clearJourney,\n coachmarks: coachmarkList,\n }),\n [nextCoachmark, setJourney, addCoachmark, clearJourney, coachmarkList],\n );\n\n return (\n <JourneyContext.Provider value={memoizedContextValue}>\n {coachmarkList.length > 0 && (\n <S.BlurOverlay>\n {coachmarkList.map((coachmark, index) => (\n <Coachmark key={`coachmark-${index}`} coachmark={coachmark} />\n ))}\n </S.BlurOverlay>\n )}\n {children}\n </JourneyContext.Provider>\n );\n};\n"],"names":["JourneyContext","createContext","JourneyProvider","children","coachmarkList","setCoachmarkList","useState","currentIndex","useRef","currentJourneyIdStudent","setJourney","useCallback","id","coachmarks","clearJourney","addCoachmark","coachmark","prev","nextCoachmark","keepPrevActive","delayInMs","prevList","item","timer","currIndex","updatedCoachmarkList","memoizedContextValue","useMemo","jsxs","jsx","S.BlurOverlay","index","Coachmark"],"mappings":";;;;AASa,MAAAA,IAAiBC,EAAsC,IAAI,GAE3DC,IAA+C,CAAC,EAAE,UAAAC,QAAe;AAC5E,QAAM,CAACC,GAAeC,CAAgB,IAAIC,EAA4B,CAAE,CAAA,GAClEC,IAAeC,EAAO,EAAE,GACxBC,IAA0BD,KAE1BE,IAAaC;AAAA,IACjB,CAACC,GAAgBC,MAAkC;AAC7C,UAAAT,EAAc,SAAS;AACzB,cAAM,IAAI;AAAA,UACR,iEAAiEK,EAAwB,OAAO,0BAA0BG,CAAE;AAAA,QAAA;AAGhI,MAAAH,EAAwB,UAAUG,GAClCL,EAAa,UAAU,IACNF,EAAA,CAAC,GAAGQ,CAAU,CAAC;AAAA,IAClC;AAAA,IACA,CAACT,EAAc,MAAM;AAAA,EAAA,GAGjBU,IAAeH,EAAY,MAAM;AACrC,IAAAF,EAAwB,UAAU,QAClCF,EAAa,UAAU,IACvBF,EAAiB,CAAE,CAAA;AAAA,EACrB,GAAG,CAAE,CAAA,GAECU,IAAeJ,EAAY,CAACC,GAAgBI,MAA+B;AAC/E,QAAI,CAACP,EAAwB,WAAWG,MAAOH,EAAwB;AACrE,YAAM,IAAI;AAAA,QACRA,EAAwB,UACpB,8CACA,iDAAiDA,EAAwB,OAAO,0BAA0BG,CAAE;AAAA,MAAA;AAIpH,IAAAP,EAAiB,CAAQY,MAAA,CAAC,GAAGA,GAAMD,CAAS,CAAC;AAAA,EAC/C,GAAG,CAAE,CAAA,GAECE,IAAgBP;AAAA,IACpB,CAACC,GAAgBO,IAA0B,IAAOC,IAAoB,MAAM;AACtE,UAAA,CAACX,EAAwB;AACrB,cAAA,IAAI,MAAM,4CAA4C;AAG1D,UAAAG,MAAOH,EAAwB;AACjC,cAAM,IAAI;AAAA,UACR,iDAAiDA,EAAwB,OAAO,0BAA0BG,CAAE;AAAA,QAAA;AAIhH,MAAIQ,MAAc,KAEhBf,EAAiB,CAAYgB,MACpBA,EAAS,IAAI,CAACC,OACZ,EAAE,GAAGA,GAAM,UAAU,GAAM,EACnC,CACF;AAGG,YAAAC,IAAQ,WAAW,MAAM;AAC7B,qBAAaA,CAAK;AACZ,cAAAC,IAAYjB,EAAa,UAAU;AAEzC,QAAAF,EAAiB,CAAYgB,MAAA;AAE3B,cAAIG,KAAaH,EAAS,UAAUA,EAAS,WAAW;AACtD,mBAAAZ,EAAwB,UAAU,QAClCF,EAAa,UAAU,IAEhB;AAGT,UAAAA,EAAa,UAAUiB;AACjB,gBAAAC,IAAuB,CAAC,GAAGJ,CAAQ;AAExC,iBAAAI,EAAqBD,CAAS,EAAsB,WAAW,IAE5DA,IAAY,MACbC,EAAqBD,IAAY,CAAC,EAAsB,WAAWL,IAG/DM;AAAA,QAAA,CACR;AAAA,SACAL,CAAS;AAAA,IACd;AAAA,IACA,CAAC;AAAA,EAAA,GAGGM,IAAuBC;AAAA,IAC3B,OAAO;AAAA,MACL,eAAAT;AAAA,MACA,YAAAR;AAAA,MACA,cAAAK;AAAA,MACA,cAAAD;AAAA,MACA,YAAYV;AAAA,IAAA;AAAA,IAEd,CAACc,GAAeR,GAAYK,GAAcD,GAAcV,CAAa;AAAA,EAAA;AAGvE,SACG,gBAAAwB,EAAA5B,EAAe,UAAf,EAAwB,OAAO0B,GAC7B,UAAA;AAAA,IAAAtB,EAAc,SAAS,KACtB,gBAAAyB,EAACC,GAAA,EACE,YAAc,IAAI,CAACd,GAAWe,wBAC5BC,GAAqC,EAAA,WAAAhB,EAAA,GAAtB,aAAae,CAAK,EAA0B,CAC7D,GACH;AAAA,IAED5B;AAAA,EACH,EAAA,CAAA;AAEJ;"}
|
package/dist/index.d.ts
CHANGED
@@ -413,12 +413,6 @@ export declare const GameIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
|
|
413
413
|
|
414
414
|
export declare const GameLauncher: FC<IGameLauncherProps>;
|
415
415
|
|
416
|
-
declare enum GENDER {
|
417
|
-
MALE = "MALE",
|
418
|
-
FEMALE = "FEMALE",
|
419
|
-
OTHER = "OTHER"
|
420
|
-
}
|
421
|
-
|
422
416
|
declare const getArrowTooltipConfig: IGetArrowTooltipConfig;
|
423
417
|
|
424
418
|
declare const getButtonConfig: IGetButtonConfig;
|
@@ -1593,7 +1587,6 @@ export declare const ILLUSTRATIONS: {
|
|
1593
1587
|
DURATION_60MIN_GRAY: string;
|
1594
1588
|
DURATION_90MIN_GRAY: string;
|
1595
1589
|
EARTH_GREEN: string;
|
1596
|
-
FEMALE_AVATAR: string;
|
1597
1590
|
GAME_PLAY: string;
|
1598
1591
|
GLOBE_WITH_BLUE_FILL: string;
|
1599
1592
|
GRADE_GRID_BACKGROUND: string;
|
@@ -1611,7 +1604,6 @@ export declare const ILLUSTRATIONS: {
|
|
1611
1604
|
LOADER_1: string;
|
1612
1605
|
LOCKED: string;
|
1613
1606
|
MAINTENANCE: string;
|
1614
|
-
MALE_AVATAR: string;
|
1615
1607
|
MASTERED_BADGE: string;
|
1616
1608
|
MASTERED_SHIELD_GRAY: string;
|
1617
1609
|
MASTERED_SHIELD_GREEN: string;
|
@@ -2741,29 +2733,6 @@ declare interface ITagProps {
|
|
2741
2733
|
textColor?: TColorNames;
|
2742
2734
|
}
|
2743
2735
|
|
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
|
-
|
2767
2736
|
declare interface ITeacherReview {
|
2768
2737
|
reviewComment?: string;
|
2769
2738
|
images?: string[];
|
@@ -3927,8 +3896,6 @@ declare type TAggregateForRewardsData = {
|
|
3927
3896
|
|
3928
3897
|
declare type TAlignSelf = 'auto' | 'flex-start' | 'flex-end' | 'center' | 'stretch';
|
3929
3898
|
|
3930
|
-
export declare const TalkMeter: FC<ITalkMeterProps>;
|
3931
|
-
|
3932
3899
|
export declare type TArrowTooltipConfig = {
|
3933
3900
|
backgroundColorName: TColorNames;
|
3934
3901
|
textColorName: TColorNames;
|
@@ -4554,14 +4521,6 @@ declare type TMathSectionSummary = {
|
|
4554
4521
|
section_code: 'MATH';
|
4555
4522
|
} & TSectionSummary;
|
4556
4523
|
|
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
|
-
|
4565
4524
|
declare type TMilestoneChapterBlockData = {
|
4566
4525
|
block_id: string;
|
4567
4526
|
block_type: TBlockType;
|
@@ -4951,9 +4910,9 @@ declare const useGetCircleHomeAPI: (initialId?: string, initialQuery?: IGetCircl
|
|
4951
4910
|
} & Record<string, unknown>) | undefined;
|
4952
4911
|
};
|
4953
4912
|
|
4954
|
-
export declare const useGetCircleHomeDetailsDal: (userId: string,
|
4913
|
+
export declare const useGetCircleHomeDetailsDal: (userId: string, grade: string) => Omit<ReturnType<typeof useGetCircleHomeAPI>, "data" | "get"> & {
|
4955
4914
|
data: ICircleHomeDetails | null;
|
4956
|
-
getCircleHomeDetails: () => void;
|
4915
|
+
getCircleHomeDetails: (countryCode: string) => void;
|
4957
4916
|
};
|
4958
4917
|
|
4959
4918
|
declare const useGetLeaderboard: (initialId?: string, initialQuery?: IGetLeaderboardPayloadModel | undefined) => {
|
package/dist/index.js
CHANGED
@@ -10,7 +10,7 @@ import { default as E } from "./assets/line-icons/icons/bin2.js";
|
|
10
10
|
import { default as C } from "./assets/line-icons/icons/book-closed.js";
|
11
11
|
import { default as P } from "./assets/line-icons/icons/book.js";
|
12
12
|
import { default as h } from "./assets/line-icons/icons/book2.js";
|
13
|
-
import { default as
|
13
|
+
import { default as k } from "./assets/line-icons/icons/bookmark.js";
|
14
14
|
import { default as N } from "./assets/line-icons/icons/bulb.js";
|
15
15
|
import { default as O } from "./assets/line-icons/icons/bulb2.js";
|
16
16
|
import { default as D } from "./assets/line-icons/icons/calendar.js";
|
@@ -37,7 +37,7 @@ import { default as Ee } from "./assets/line-icons/icons/hand.js";
|
|
37
37
|
import { default as Ce } from "./assets/line-icons/icons/help.js";
|
38
38
|
import { default as Pe } from "./assets/line-icons/icons/highlighter.js";
|
39
39
|
import { default as he } from "./assets/line-icons/icons/home.js";
|
40
|
-
import { default as
|
40
|
+
import { default as ke } from "./assets/line-icons/icons/image.js";
|
41
41
|
import { default as Ne } from "./assets/line-icons/icons/info.js";
|
42
42
|
import { default as Oe } from "./assets/line-icons/icons/info2.js";
|
43
43
|
import { default as De } from "./assets/line-icons/icons/left.js";
|
@@ -63,7 +63,7 @@ import { default as To } from "./assets/line-icons/icons/redo.js";
|
|
63
63
|
import { default as So } from "./assets/line-icons/icons/right.js";
|
64
64
|
import { default as Ao } from "./assets/line-icons/icons/ruler.js";
|
65
65
|
import { default as _o } from "./assets/line-icons/icons/search.js";
|
66
|
-
import { default as
|
66
|
+
import { default as Lo } from "./assets/line-icons/icons/sheet.js";
|
67
67
|
import { default as Mo } from "./assets/line-icons/icons/star.js";
|
68
68
|
import { default as Ho } from "./assets/line-icons/icons/skip.js";
|
69
69
|
import { default as Ro } from "./assets/line-icons/icons/skip2.js";
|
@@ -90,7 +90,7 @@ import { default as Er } from "./assets/line-icons/icons/next2.js";
|
|
90
90
|
import { AutoPlayPermissionProvider as Cr } from "./features/hooks/use-auto-play-permission/use-auto-play-permission-context-provider.js";
|
91
91
|
import { default as Pr } from "./features/hooks/use-zoom-disable.js";
|
92
92
|
import { default as hr } from "./features/hooks/use-force-reload.js";
|
93
|
-
import { default as
|
93
|
+
import { default as kr } from "./features/ui/accordion-section/accordion-section.js";
|
94
94
|
import { default as Nr } from "./features/ui/arrow-tooltip/arrow-tooltip.js";
|
95
95
|
import { default as Or } from "./features/ui/context-menu/context-menu.js";
|
96
96
|
import { default as Dr } from "./features/ui/timers/countdown-timer/countdown-timer.js";
|
@@ -117,7 +117,7 @@ import { default as Et } from "./features/ui/loader/app-loader/app-loader.js";
|
|
117
117
|
import { CircularLoader as Ct } from "./features/ui/loader/circular-loader/circular-loader.js";
|
118
118
|
import { default as Pt } from "./features/ui/radio-cards/radio-cards.js";
|
119
119
|
import { default as ht } from "./features/ui/section-list/section-list.js";
|
120
|
-
import { default as
|
120
|
+
import { default as kt } from "./features/ui/text/text.js";
|
121
121
|
import { default as Nt } from "./features/ui/tag/tag.js";
|
122
122
|
import { default as Ot } from "./features/ui/callout/callout.js";
|
123
123
|
import { default as Dt, useUIContext as Gt } from "./features/ui/context/context.js";
|
@@ -143,7 +143,7 @@ import { default as Ta } from "./features/chapters/lpar-milestone-chapter/lpar-m
|
|
143
143
|
import { default as Sa } from "./features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-summary/sat-sheet-summary.js";
|
144
144
|
import { checkIfPPTNodeType as Aa } from "./features/chapters/lpar-chapter/utils/index.js";
|
145
145
|
import { GAME_LAUNCHER_ASSET_PADDING as _a } from "./features/circle-games/game-launcher/comps/segmented-game-card/constants.js";
|
146
|
-
import { GAME_LAUNCHER_SIZE as
|
146
|
+
import { GAME_LAUNCHER_SIZE as La } from "./features/circle-games/game-launcher/comps/card-container/constants.js";
|
147
147
|
import { useCircleSounds as Ma } from "./features/circle-games/hooks/use-circle-sounds/use-circle-sounds.js";
|
148
148
|
import { CircleSoundKey as Ha } from "./features/circle-games/hooks/use-circle-sounds/use-circle-sounds-enums.js";
|
149
149
|
import { useGetLeaderboardDal as Ra } from "./features/circle-games/leaderboard/dal/use-get-leaderboard-dal/use-get-leaderboard-dal.js";
|
@@ -169,67 +169,66 @@ import { default as Tf } from "./features/cue-canvas/cue-canvas.js";
|
|
169
169
|
import { default as Sf } from "./features/cue-canvas/hooks/use-canvas-sync-broker.js";
|
170
170
|
import { default as Af } from "./features/communication/hooks/use-inclass-message-broker/use-inclass-message-broker.js";
|
171
171
|
import { default as _f } from "./features/communication/hooks/use-trial-session-message-broker/use-trial-session-message-broker.js";
|
172
|
-
import { EVENTS as
|
172
|
+
import { EVENTS as Lf } from "./features/communication/pub-sub/constants.js";
|
173
173
|
import { useInClassActionDispatcher as Mf, useInClassActionListener as Nf } from "./features/communication/pub-sub/hooks.js";
|
174
174
|
import { default as Of } from "./features/trial-session/trial-session.js";
|
175
175
|
import { EClassTimeAlertLevel as Df } from "./features/trial-session/trial-session-types.js";
|
176
176
|
import { useClassTimeAlerts as yf } from "./features/trial-session/hooks/use-class-time-alerts.js";
|
177
|
-
import { default as gf } from "./features/
|
178
|
-
import {
|
179
|
-
import {
|
180
|
-
import {
|
181
|
-
import {
|
182
|
-
import {
|
183
|
-
import {
|
184
|
-
import {
|
185
|
-
import { default as Xf } from "./features/milestone/create/
|
186
|
-
import { default as es } from "./features/milestone/create/comps/confirmation-modals/
|
187
|
-
import { default as rs } from "./features/milestone/create/
|
188
|
-
import { default as as } from "./features/milestone/
|
189
|
-
import { default as ss } from "./features/milestone/
|
190
|
-
import { default as ps } from "./features/milestone/outcome/
|
191
|
-
import { default as us } from "./features/milestone/outcome/comps/achievement/
|
192
|
-
import { default as ds } from "./features/milestone/
|
193
|
-
import { default as cs } from "./features/milestone/edit/
|
194
|
-
import { default as is } from "./features/milestone/edit/
|
195
|
-
import { default as Es } from "./features/milestone/
|
196
|
-
import { default as Cs } from "./features/milestone/milestone-
|
197
|
-
import { default as Ps } from "./features/milestone/
|
198
|
-
import { default as hs } from "./features/milestone/
|
199
|
-
import { default as
|
200
|
-
import {
|
201
|
-
import {
|
202
|
-
import {
|
203
|
-
import {
|
204
|
-
import {
|
205
|
-
import { default as ws } from "./features/pointer-sync/pointer.js";
|
206
|
-
import {
|
207
|
-
import {
|
208
|
-
import {
|
209
|
-
import {
|
210
|
-
import { default as Xs } from "./features/sheet-tools/
|
211
|
-
import { default as el } from "./features/
|
212
|
-
import { default as rl } from "./features/sheets/
|
213
|
-
import {
|
214
|
-
import {
|
215
|
-
import {
|
216
|
-
import { default as Pl } from "./features/
|
217
|
-
import {
|
218
|
-
import {
|
219
|
-
import {
|
220
|
-
import { default as Gl } from "./features/worksheet/worksheet/worksheet-
|
221
|
-
import { default as Bl } from "./features/worksheet/worksheet
|
222
|
-
import { default as bl } from "./features/worksheet/worksheet/worksheet-permissions/
|
223
|
-
import { default as vl } from "./features/worksheet/
|
224
|
-
import { default as Vl } from "./features/worksheet/learnosity-preloader/learnosity-
|
225
|
-
import { default as Ql } from "./features/worksheet/
|
226
|
-
import { default as Kl } from "./features/
|
227
|
-
import { default as Jl } from "./features/maintenance/maintenance.js";
|
177
|
+
import { default as gf } from "./features/extra-practice/extra-practice.js";
|
178
|
+
import { useAutoPlayPermission as Uf } from "./features/hooks/use-auto-play-permission/use-auto-play-permission.js";
|
179
|
+
import { JOURNEY_ID_STUDENT as Wf } from "./features/journey/journey-id/journey-id-student.js";
|
180
|
+
import { useJourney as wf } from "./features/journey/use-journey/use-journey.js";
|
181
|
+
import { JourneyProvider as Yf } from "./features/journey/use-journey/journey-context-provider.js";
|
182
|
+
import { IndicatorType as Ff } from "./features/journey/use-journey/constants.js";
|
183
|
+
import { Coachmark as jf } from "./features/journey/comps/coachmark/coachmark.js";
|
184
|
+
import { default as qf } from "./features/milestone/create/submit-modal/submit-modal.js";
|
185
|
+
import { default as Xf } from "./features/milestone/create/comps/confirmation-modals/goal-creation-confirmation.js";
|
186
|
+
import { default as es } from "./features/milestone/create/comps/confirmation-modals/chapter-clearance-confirmation.js";
|
187
|
+
import { default as rs } from "./features/milestone/create/milestone-create-container.js";
|
188
|
+
import { default as as } from "./features/milestone/edit/goal-drafts/goal-draft-edit-container.js";
|
189
|
+
import { default as ss } from "./features/milestone/outcome/milestone-outcome-container.js";
|
190
|
+
import { default as ps } from "./features/milestone/outcome/comps/achievement/reason-submit-modal.js";
|
191
|
+
import { default as us } from "./features/milestone/outcome/comps/achievement/share-instructions-modal.js";
|
192
|
+
import { default as ds } from "./features/milestone/edit/comps/edit-milestone-modal/index.js";
|
193
|
+
import { default as cs } from "./features/milestone/edit/goal-edit-container.js";
|
194
|
+
import { default as is } from "./features/milestone/edit/milestone-edit-container.js";
|
195
|
+
import { default as Es } from "./features/milestone/milestone-list-container/milestone-list-container.js";
|
196
|
+
import { default as Cs } from "./features/milestone/milestone-action-widget/milestone-action-widget.js";
|
197
|
+
import { default as Ps } from "./features/milestone/start/milestone-start.js";
|
198
|
+
import { default as hs } from "./features/milestone/milestone-tests/tests-creation/tests-creation.js";
|
199
|
+
import { default as ks } from "./features/milestone/milestone-resources/resources-assign/resources-assign.js";
|
200
|
+
import { ACHIEVEMENT_ACTIONS as Ns, STAGES as Hs } from "./features/milestone/outcome/milestone-outcome-constants.js";
|
201
|
+
import { invalidateMilestonesData as Rs, useGetAllMilestonesdata as Ds } from "./features/milestone/milestone-list-container/api/get-milestones.js";
|
202
|
+
import { invalidateTestHelpData as ys, useGetTestHelpData as Bs } from "./features/milestone/milestone-list-container/api/get-tests-list.js";
|
203
|
+
import { invalidateMilestoneResources as bs, useGetMilestoneResources as Us } from "./features/milestone/milestone-list-container/api/get-milestone-resources.js";
|
204
|
+
import { default as Ws } from "./features/pointer-sync/pointer.js";
|
205
|
+
import { default as ws } from "./features/pointer-sync/hooks/use-pointer-sync.js";
|
206
|
+
import { DigitalMeter as Ys } from "./features/post-game-stats/digital-meter/digital-meter.js";
|
207
|
+
import { EPostGameStat as Fs } from "./features/post-game-stats/enums/post-game-stats-enum.js";
|
208
|
+
import { PostGameStats as js } from "./features/post-game-stats/post-game-stats.js";
|
209
|
+
import { default as qs } from "./features/sheet-tools/desmos-calculator/desmos-calculator.js";
|
210
|
+
import { default as Xs } from "./features/sheet-tools/tool-header/tool-header.js";
|
211
|
+
import { default as el } from "./features/sheets/sheets-list/sheets-list.js";
|
212
|
+
import { default as rl } from "./features/sheets/reference-sheet/reference-sheet.js";
|
213
|
+
import { isV3Worksheet as al, isV3WorksheetAttempt as fl } from "./features/sheets/utils/is-v3-worksheet.js";
|
214
|
+
import { COMPLETED_SHEET_STATE as ll, NODE_LABELS as pl, NODE_SUB_GROUP as ml, NODE_TYPE as ul, PYTHON_NODE_TYPES as xl, REWARDS_LIST as dl, SHEET_ACTIONS as nl, SHEET_ATTEMPT_LOCATION as cl, SHEET_ATTEMPT_LOCATION_MAP as Il, SHEET_ATTEMPT_STATE as il, SHEET_DATA_TYPE as Tl, SHEET_STATE as El } from "./features/sheets/constants/sheet.js";
|
215
|
+
import { default as Cl } from "./features/student-details/student-details.js";
|
216
|
+
import { default as Pl } from "./features/utils/load-script.js";
|
217
|
+
import { ACTION_BAR_HEIGHT as hl, QUESTIONS_GAP as Ll, QUESTION_WIDTH as kl, TOP_NAVIGATION_HEIGHT as Ml } from "./features/worksheet/worksheet/constants.js";
|
218
|
+
import { isOkayTypeQuestion as Hl } from "./features/worksheet/worksheet/worksheet-helpers.js";
|
219
|
+
import { default as Rl } from "./features/worksheet/worksheet/worksheet-container.js";
|
220
|
+
import { default as Gl } from "./features/worksheet/worksheet-preview/worksheet-preview.js";
|
221
|
+
import { default as Bl } from "./features/worksheet/worksheet/worksheet-permissions/sheet-locked.js";
|
222
|
+
import { default as bl } from "./features/worksheet/worksheet/worksheet-permissions/error.js";
|
223
|
+
import { default as vl } from "./features/worksheet/learnosity-preloader/learnosity-preloader.js";
|
224
|
+
import { default as Vl } from "./features/worksheet/learnosity-preloader/use-is-learnosity-loaded.js";
|
225
|
+
import { default as Ql } from "./features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js";
|
226
|
+
import { default as Kl } from "./features/maintenance/maintenance.js";
|
228
227
|
export {
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
228
|
+
Ns as ACHIEVEMENT_ACTIONS,
|
229
|
+
kr as AccordionSection,
|
230
|
+
ps as AchievementNotShareReasonModal,
|
231
|
+
us as AchievementShareInstructionModal,
|
233
232
|
d as AlertIcon,
|
234
233
|
Et as AppLoader,
|
235
234
|
Yr as ArcButton,
|
@@ -244,17 +243,17 @@ export {
|
|
244
243
|
h as Book2Icon,
|
245
244
|
C as BookClosedIcon,
|
246
245
|
P as BookIcon,
|
247
|
-
|
246
|
+
k as BookmarkIcon,
|
248
247
|
O as Bulb2Icon,
|
249
248
|
N as BulbIcon,
|
250
249
|
gr as Button,
|
251
250
|
Za as CIRCLE_ONBOARDING_ANALYTICS_STEPS,
|
252
|
-
|
251
|
+
ll as COMPLETED_SHEET_STATE,
|
253
252
|
D as CalendarIcon,
|
254
253
|
Ot as Callout,
|
255
254
|
pt as CascadingSelectInput,
|
256
255
|
xa as Chapter,
|
257
|
-
|
256
|
+
es as ChapterClearanceConfirmationModal,
|
258
257
|
na as ChaptersList,
|
259
258
|
cr as ChatIcon,
|
260
259
|
g as Check2Icon,
|
@@ -271,7 +270,7 @@ export {
|
|
271
270
|
U as ClipboardIcon,
|
272
271
|
w as Clock2Icon,
|
273
272
|
W as ClockIcon,
|
274
|
-
|
273
|
+
jf as Coachmark,
|
275
274
|
Y as CodeIcon,
|
276
275
|
Or as ContextMenu,
|
277
276
|
F as CopyIcon,
|
@@ -283,34 +282,34 @@ export {
|
|
283
282
|
q as CueRocket,
|
284
283
|
ir as CuemathLogo,
|
285
284
|
X as DashArrowIcon,
|
286
|
-
|
287
|
-
|
285
|
+
qs as DesmosCalculator,
|
286
|
+
Ys as DigitalMeter,
|
288
287
|
ee as DownIcon,
|
289
288
|
re as DraftIcon,
|
290
289
|
ae as DragIcon,
|
291
290
|
Df as EClassTimeAlertLevel,
|
292
291
|
Ga as ELeaderboardType,
|
293
|
-
|
294
|
-
|
295
|
-
|
292
|
+
ks as EPResourceAssign,
|
293
|
+
Fs as EPostGameStat,
|
294
|
+
Lf as EVENTS,
|
296
295
|
pe as Edit2Icon,
|
297
296
|
se as EditIcon,
|
298
|
-
|
297
|
+
ds as EditMilestoneModal,
|
299
298
|
ue as EditStarIcon,
|
300
299
|
de as EraserIcon,
|
301
300
|
Fr as Error,
|
302
|
-
|
303
|
-
|
301
|
+
Xs as ExpandableHeader,
|
302
|
+
gf as ExtraPractice,
|
304
303
|
ie as Eye2Icon,
|
305
304
|
ce as EyeIcon,
|
306
305
|
it as FlexView,
|
307
306
|
_a as GAME_LAUNCHER_ASSET_PADDING,
|
308
|
-
|
307
|
+
La as GAME_LAUNCHER_SIZE,
|
309
308
|
ur as GameIcon,
|
310
309
|
za as GameLauncher,
|
311
|
-
|
312
|
-
|
313
|
-
|
310
|
+
Xf as GoalCreationConfirmationModal,
|
311
|
+
as as GoalDraftEdit,
|
312
|
+
cs as GoalEdit,
|
314
313
|
at as GooglePlacesSearchInput,
|
315
314
|
r as GradeSelector,
|
316
315
|
Ee as HandIcon,
|
@@ -321,43 +320,43 @@ export {
|
|
321
320
|
p as IMAGES,
|
322
321
|
Ja as IStatsToAwardErrorCode,
|
323
322
|
Wr as IconButton,
|
324
|
-
|
325
|
-
|
323
|
+
ke as ImageIcon,
|
324
|
+
Ff as IndicatorType,
|
326
325
|
Oe as Info2Icon,
|
327
326
|
Ne as InfoIcon,
|
328
|
-
|
329
|
-
|
327
|
+
Wf as JOURNEY_ID_STUDENT,
|
328
|
+
Yf as JourneyProvider,
|
330
329
|
u as LOTTIE,
|
331
330
|
Ia as LPARChapter,
|
332
331
|
Ta as LPARMilestoneChapter,
|
333
332
|
tf as Leaderboard,
|
334
|
-
|
333
|
+
vl as LearnosityPreloader,
|
335
334
|
De as LeftIcon,
|
336
335
|
ge as Lock2Icon,
|
337
336
|
ye as LockIcon,
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
337
|
+
Kl as Maintenance,
|
338
|
+
Cs as MilestoneActionWidget,
|
339
|
+
rs as MilestoneCreate,
|
340
|
+
is as MilestoneEdit,
|
341
|
+
Es as MilestoneList,
|
342
|
+
ss as MilestoneOutcome,
|
343
|
+
Ps as MilestoneStart,
|
345
344
|
We as Minus2Icon,
|
346
345
|
Ue as MinusIcon,
|
347
346
|
we as MistakeIcon,
|
348
347
|
Ye as Mobile,
|
349
348
|
Fe as MoreVerticalIcon,
|
350
349
|
ma as MultiTabBlocker,
|
351
|
-
|
352
|
-
|
353
|
-
|
350
|
+
pl as NODE_LABELS,
|
351
|
+
ml as NODE_SUB_GROUP,
|
352
|
+
ul as NODE_TYPE,
|
354
353
|
Er as Next2Icon,
|
355
354
|
je as NextIcon,
|
356
355
|
yr as Nudge,
|
357
356
|
ut as NumRangeInput,
|
358
357
|
oa as PLATFORM_EVENTS_STUDENT,
|
359
358
|
ta as PLATFORM_EVENTS_TEACHER,
|
360
|
-
|
359
|
+
xl as PYTHON_NODE_TYPES,
|
361
360
|
qe as PencilIcon,
|
362
361
|
dt as PercentileInput,
|
363
362
|
$t as PerfectHits,
|
@@ -367,30 +366,30 @@ export {
|
|
367
366
|
so as Plus2Icon,
|
368
367
|
ao as PlusIcon,
|
369
368
|
Xe as PointerIcon,
|
370
|
-
|
369
|
+
js as PostGameStats,
|
371
370
|
po as PracticeIcon,
|
372
|
-
|
371
|
+
Gl as PreviewWorksheet,
|
373
372
|
uo as ProgressIcon,
|
374
373
|
va as ProjectOutcome,
|
375
374
|
Qa as ProjectType,
|
376
375
|
no as QuestionIcon,
|
377
376
|
Io as QuestionLetterIcon,
|
378
|
-
|
377
|
+
dl as REWARDS_LIST,
|
379
378
|
Pt as RadioCard,
|
380
379
|
Xr as RadioInput,
|
381
380
|
To as RedoIcon,
|
382
|
-
|
383
|
-
|
381
|
+
rl as ReferenceSheet,
|
382
|
+
Ws as RemotePeerPointer,
|
384
383
|
So as RightIcon,
|
385
384
|
Ao as RulerIcon,
|
386
385
|
Sa as SATSheetSummary,
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
386
|
+
nl as SHEET_ACTIONS,
|
387
|
+
cl as SHEET_ATTEMPT_LOCATION,
|
388
|
+
Il as SHEET_ATTEMPT_LOCATION_MAP,
|
389
|
+
il as SHEET_ATTEMPT_STATE,
|
390
|
+
Tl as SHEET_DATA_TYPE,
|
391
|
+
El as SHEET_STATE,
|
392
|
+
Hs as STAGES,
|
394
393
|
$o as ScribbleIcon,
|
395
394
|
_o as SearchIcon,
|
396
395
|
rt as SearchableSelectInput,
|
@@ -398,10 +397,10 @@ export {
|
|
398
397
|
et as SelectInput,
|
399
398
|
ct as SelectionCards,
|
400
399
|
Zt as Separator,
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
400
|
+
bl as SheetError,
|
401
|
+
Lo as SheetIcon,
|
402
|
+
el as SheetList,
|
403
|
+
Bl as SheetLocked,
|
405
404
|
uf as SignUp,
|
406
405
|
er as SketchIcon,
|
407
406
|
Ro as Skip2Icon,
|
@@ -412,14 +411,13 @@ export {
|
|
412
411
|
a as Stepper,
|
413
412
|
Jt as StreakIcon,
|
414
413
|
Bo as StrikedEyeIcon,
|
415
|
-
|
416
|
-
|
414
|
+
Cl as StudentDetails,
|
415
|
+
qf as SubmitMilestoneModal,
|
417
416
|
bo as SwitchIcon,
|
418
417
|
Kt as TabComponent,
|
419
418
|
Nt as Tag,
|
420
|
-
|
421
|
-
|
422
|
-
Lt as Text,
|
419
|
+
hs as TestsCreation,
|
420
|
+
kt as Text,
|
423
421
|
wr as TextButton,
|
424
422
|
st as TextInput,
|
425
423
|
vo as TickIcon,
|
@@ -436,45 +434,45 @@ export {
|
|
436
434
|
Zo as UserIcon,
|
437
435
|
zt as Video,
|
438
436
|
fa as WHITELIST_EVENTS,
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
437
|
+
hl as WORKSHEET_ACTION_BAR_HEIGHT,
|
438
|
+
Ll as WORKSHEET_QUESTIONS_GAP,
|
439
|
+
kl as WORKSHEET_QUESTION_WIDTH,
|
440
|
+
Ml as WORKSHEET_TOP_NAVIGATION_HEIGHT,
|
443
441
|
ba as WebView,
|
444
442
|
Va as WebViewEvent,
|
445
|
-
|
443
|
+
Rl as Worksheet,
|
446
444
|
Aa as checkIfPPTNodeType,
|
447
445
|
vt as getTheme,
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
446
|
+
bs as invalidateMilestoneResources,
|
447
|
+
Rs as invalidateMilestonesData,
|
448
|
+
ys as invalidateTestHelpData,
|
449
|
+
Hl as isOkayTypeQuestion,
|
450
|
+
al as isV3Worksheet,
|
451
|
+
fl as isV3WorksheetAttempt,
|
452
|
+
Pl as loadScript,
|
453
|
+
Uf as useAutoPlayPermission,
|
456
454
|
Sf as useCanvasSyncBroker,
|
457
455
|
Ma as useCircleSounds,
|
458
456
|
yf as useClassTimeAlerts,
|
459
457
|
bt as useContextMenuClickHandler,
|
460
458
|
hr as useForceReload,
|
461
|
-
|
459
|
+
Ds as useGetAllMilestonesdata,
|
462
460
|
$a as useGetCircleHomeDetailsDal,
|
463
461
|
Ra as useGetLeaderboardDal,
|
464
|
-
|
465
|
-
|
462
|
+
Us as useGetMilestoneResources,
|
463
|
+
Bs as useGetTestHelpData,
|
466
464
|
Mf as useInClassActionDispatcher,
|
467
465
|
Nf as useInClassActionListener,
|
468
466
|
Af as useInClassMessageBroker,
|
469
|
-
|
467
|
+
Vl as useIsLearnosityLoaded,
|
470
468
|
la as useIsTabBlocked,
|
471
|
-
|
472
|
-
|
469
|
+
wf as useJourney,
|
470
|
+
ws as usePointerSync,
|
473
471
|
of as usePostUpdateCircleJourneyDal,
|
474
472
|
Bt as useTrackingContext,
|
475
473
|
_f as useTrialSessionMessageBroker,
|
476
474
|
Gt as useUIContext,
|
477
|
-
|
475
|
+
Ql as useWorksheetLayout,
|
478
476
|
Pr as useZoomDisable
|
479
477
|
};
|
480
478
|
//# 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"sounds.js","sources":["../../../src/assets/sounds/sounds.ts"],"sourcesContent":["const BASE_URL = 'https://d138zd1ktt9iqe.cloudfront.net/';\n// To upload something that will be available at the above link, follow the procedure below.\n// Go to S3 bucket and search for wmznlejcfq, then you can create any folder to store anything required.\n// For example I have created a folder name as leap -> audio, and keep alert.mp3.\n\nconst SOUNDS = {\n ALERT: `${BASE_URL}leap/audio/alert.mp3`,\n};\n\nexport { SOUNDS };\n"],"names":["BASE_URL","SOUNDS"],"mappings":"AAAA,MAAMA,IAAW,0CAKXC,IAAS;AAAA,EACb,OAAO,GAAGD,CAAQ;AACpB;"}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
const e = (T) => {
|
2
|
-
const E = {
|
3
|
-
STUDENT: "RED",
|
4
|
-
TEACHER: "ORANGE_2"
|
5
|
-
};
|
6
|
-
return T >= 50 ? (E.STUDENT = "GREEN_4", E.TEACHER = "GREEN_2") : T >= 25 && (E.STUDENT = "YELLOW_4", E.TEACHER = "YELLOW_2"), E;
|
7
|
-
};
|
8
|
-
export {
|
9
|
-
e as getMeterColor
|
10
|
-
};
|
11
|
-
//# sourceMappingURL=helper.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"helper.js","sources":["../../../src/features/talk-meter/helper.ts"],"sourcesContent":["import type { TColorNames, TUserTypes } from '../ui/types';\n\nconst getMeterColor = (stdRatio: number) => {\n const COLOR_MAP: Record<TUserTypes, TColorNames> = {\n STUDENT: 'RED',\n TEACHER: 'ORANGE_2',\n };\n\n if (stdRatio >= 50) {\n COLOR_MAP.STUDENT = 'GREEN_4';\n COLOR_MAP.TEACHER = 'GREEN_2';\n } else if (stdRatio >= 25) {\n COLOR_MAP.STUDENT = 'YELLOW_4';\n COLOR_MAP.TEACHER = 'YELLOW_2';\n }\n\n return COLOR_MAP;\n};\n\nexport { getMeterColor };\n"],"names":["getMeterColor","stdRatio","COLOR_MAP"],"mappings":"AAEM,MAAAA,IAAgB,CAACC,MAAqB;AAC1C,QAAMC,IAA6C;AAAA,IACjD,SAAS;AAAA,IACT,SAAS;AAAA,EAAA;AAGX,SAAID,KAAY,MACdC,EAAU,UAAU,WACpBA,EAAU,UAAU,aACXD,KAAY,OACrBC,EAAU,UAAU,YACpBA,EAAU,UAAU,aAGfA;AACT;"}
|