@cuemath/leap 2.8.36-link.1 → 2.8.36-tables-hg2
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/assets/lottie/lottie.js +7 -0
- package/dist/assets/lottie/lottie.js.map +1 -1
- package/dist/features/circle-games/game-launcher/comps/card-container/card-container-styled.js +53 -0
- package/dist/features/circle-games/game-launcher/comps/card-container/card-container-styled.js.map +1 -0
- package/dist/features/circle-games/game-launcher/comps/card-container/card-container.js +24 -0
- package/dist/features/circle-games/game-launcher/comps/card-container/card-container.js.map +1 -0
- package/dist/features/circle-games/game-launcher/comps/card-container/constants.js +7 -0
- package/dist/features/circle-games/game-launcher/comps/card-container/constants.js.map +1 -0
- package/dist/features/circle-games/game-launcher/comps/segmented-game-card/constants.js +6 -6
- package/dist/features/circle-games/game-launcher/comps/segmented-game-card/constants.js.map +1 -1
- package/dist/features/circle-games/game-launcher/comps/segmented-game-card/segmented-game-card-styled.js +29 -73
- package/dist/features/circle-games/game-launcher/comps/segmented-game-card/segmented-game-card-styled.js.map +1 -1
- package/dist/features/circle-games/game-launcher/comps/segmented-game-card/segmented-game-card.js +87 -85
- package/dist/features/circle-games/game-launcher/comps/segmented-game-card/segmented-game-card.js.map +1 -1
- package/dist/features/circle-games/game-launcher/comps/tables-card/constants.js +20 -0
- package/dist/features/circle-games/game-launcher/comps/tables-card/constants.js.map +1 -0
- package/dist/features/circle-games/game-launcher/comps/tables-card/table-mode/table-mode-styled.js +24 -0
- package/dist/features/circle-games/game-launcher/comps/tables-card/table-mode/table-mode-styled.js.map +1 -0
- package/dist/features/circle-games/game-launcher/comps/tables-card/table-mode/table-mode.js +54 -0
- package/dist/features/circle-games/game-launcher/comps/tables-card/table-mode/table-mode.js.map +1 -0
- package/dist/features/circle-games/game-launcher/comps/tables-card/table-star/table-star-styled.js +11 -0
- package/dist/features/circle-games/game-launcher/comps/tables-card/table-star/table-star-styled.js.map +1 -0
- package/dist/features/circle-games/game-launcher/comps/tables-card/table-star/table-star.js +16 -0
- package/dist/features/circle-games/game-launcher/comps/tables-card/table-star/table-star.js.map +1 -0
- package/dist/features/circle-games/game-launcher/comps/tables-card/tables-card-styled.js +161 -0
- package/dist/features/circle-games/game-launcher/comps/tables-card/tables-card-styled.js.map +1 -0
- package/dist/features/circle-games/game-launcher/comps/tables-card/tables-card.js +225 -0
- package/dist/features/circle-games/game-launcher/comps/tables-card/tables-card.js.map +1 -0
- package/dist/features/circle-games/game-launcher/dal/use-get-circle-home-details-dal/use-get-circle-home-details-dal.js +25 -15
- 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 +108 -65
- package/dist/features/circle-games/game-launcher/game-launcher.js.map +1 -1
- package/dist/features/circle-games/games/web-view/enums/project-type-enum.js +1 -1
- package/dist/features/circle-games/games/web-view/enums/project-type-enum.js.map +1 -1
- package/dist/features/circle-games/games/web-view/web-view-types.js.map +1 -1
- package/dist/features/circle-games/games/web-view/web-view.js +69 -82
- package/dist/features/circle-games/games/web-view/web-view.js.map +1 -1
- package/dist/features/post-game-stats/accuracy/accuracy-styled.js +17 -16
- package/dist/features/post-game-stats/accuracy/accuracy-styled.js.map +1 -1
- package/dist/features/post-game-stats/clock/clock-styled.js +11 -10
- package/dist/features/post-game-stats/clock/clock-styled.js.map +1 -1
- package/dist/features/post-game-stats/digital-meter/comp/animated-arc/animated-arc-styled.js +17 -0
- package/dist/features/post-game-stats/digital-meter/comp/animated-arc/animated-arc-styled.js.map +1 -0
- package/dist/features/post-game-stats/digital-meter/comp/animated-arc/animated-arc.js +47 -0
- package/dist/features/post-game-stats/digital-meter/comp/animated-arc/animated-arc.js.map +1 -0
- package/dist/features/post-game-stats/digital-meter/comp/animated-arc/constants.js +6 -0
- package/dist/features/post-game-stats/digital-meter/comp/animated-arc/constants.js.map +1 -0
- package/dist/features/post-game-stats/digital-meter/constants.js +16 -0
- package/dist/features/post-game-stats/digital-meter/constants.js.map +1 -0
- package/dist/features/post-game-stats/digital-meter/digital-meter-styled.js +86 -0
- package/dist/features/post-game-stats/digital-meter/digital-meter-styled.js.map +1 -0
- package/dist/features/post-game-stats/digital-meter/digital-meter.js +163 -0
- package/dist/features/post-game-stats/digital-meter/digital-meter.js.map +1 -0
- package/dist/features/post-game-stats/digital-meter/helper.js +33 -0
- package/dist/features/post-game-stats/digital-meter/helper.js.map +1 -0
- package/dist/features/post-game-stats/number-count-animation/number-count-animation-styled.js +29 -0
- package/dist/features/post-game-stats/number-count-animation/number-count-animation-styled.js.map +1 -0
- package/dist/features/post-game-stats/number-count-animation/number-count-animation.js +20 -0
- package/dist/features/post-game-stats/number-count-animation/number-count-animation.js.map +1 -0
- package/dist/features/post-game-stats/points/points.js +25 -24
- package/dist/features/post-game-stats/points/points.js.map +1 -1
- package/dist/features/post-game-stats/post-game-stats-styled.js +1 -1
- package/dist/features/post-game-stats/post-game-stats-styled.js.map +1 -1
- package/dist/features/post-game-stats/streak/streak-styled.js +18 -17
- package/dist/features/post-game-stats/streak/streak-styled.js.map +1 -1
- package/dist/features/trial-session/comps/trial-circle-game/constants.js.map +1 -1
- package/dist/features/trial-session/comps/trial-circle-game/trial-circle-game.js.map +1 -1
- package/dist/index.d.ts +93 -141
- package/dist/index.js +206 -211
- package/dist/static/advance-mode-segment-lottie.51ff6707.json +1 -0
- package/dist/static/infinite-button-bg.5909225e.json +1 -0
- package/dist/static/infinite-button-symbol.aa31350c.json +1 -0
- package/dist/static/random-mode-segment-lottie.79cf1c07.json +1 -0
- package/dist/static/sequence-mode-segment-lottie.11ac49e9.json +1 -0
- package/dist/static/table-mode-reveal.b44a82c3.json +1 -0
- package/dist/static/target-achieved-text.053bd142.json +2830 -0
- package/package.json +3 -2
- package/dist/assets/sounds/sounds.js +0 -7
- package/dist/assets/sounds/sounds.js.map +0 -1
- package/dist/features/circle-games/games/web-view/enums/project-ids-enum.js +0 -14
- package/dist/features/circle-games/games/web-view/enums/project-ids-enum.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 -112
- 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 -73
- 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":"trial-circle-game.js","sources":["../../../../../src/features/trial-session/comps/trial-circle-game/trial-circle-game.tsx"],"sourcesContent":["import type { GameId, LessonId, PuzzleId } from '../../../circle-games/games/web-view/enums';\nimport type {\n ILessonWebGameProps,\n IMultiplayerWebGameProps,\n IPlayer,\n IPlayerStats,\n IPuzzleWebGameProps,\n} from '../../../circle-games/games/web-view/web-view-types';\n\nimport { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport { v4 as uuidv4 } from 'uuid';\n\nimport { getTimeStrInFormatHMS } from '../../../../helpers/date-time';\nimport { ProjectType } from '../../../circle-games/games/web-view/enums';\nimport { useWebViewGames } from '../../../circle-games/games/web-view/hooks/use-webview-games';\nimport { WebView } from '../../../circle-games/games/web-view/web-view';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport { useTrialSessionContext } from '../../context/use-trial-session-context';\nimport { TrialPageId } from '../../trial-session-constants';\nimport { TrialCircleGameLaunchScreen } from './trial-circle-game-launch-screen/trial-circle-game-launch-screen';\nimport * as Styled from './trial-circle-game-styled';\n\nconst PROJECT_TYPE_MAP: Partial<Record<TrialPageId, ProjectType>> = {\n [TrialPageId.CIRCLE_GAME]: ProjectType.GAME,\n [TrialPageId.CIRCLE_PUZZLE]: ProjectType.PUZZLE,\n [TrialPageId.CIRCLE_SKILL]: ProjectType.LESSON,\n};\n\nconst TrialCircleGame = memo(() => {\n const { slideConfig, trialGameUrl, circleGames, formData, handleInfoMessage, updateSlideConfig } =\n useTrialSessionContext();\n const {\n showCircleGameScreen = true,\n isCircleGamePlayed = false,\n isCirclePuzzleSolved = false,\n isCircleSkillCompleted = false,\n accuracyStr = '',\n totalTimeTaken = 0,\n matchmakingId,\n } = formData || {};\n const webViewRef = useRef<HTMLIFrameElement>(null);\n const { playGame } = useWebViewGames({ webViewRef });\n const [isLoading, setIsLoading] = useState(true);\n\n const { header, id } = slideConfig;\n const projectType = PROJECT_TYPE_MAP[id];\n const { circleConfig, playerDetails } = circleGames;\n const { games, puzzles, lessons } = circleConfig ?? {};\n\n const isPlayed = useMemo(() => {\n const playedStats: Record<ProjectType, boolean> = {\n [ProjectType.GAME]: isCircleGamePlayed,\n [ProjectType.PUZZLE]: isCirclePuzzleSolved,\n [ProjectType.LESSON]: isCircleSkillCompleted,\n };\n\n return playedStats;\n }, [isCircleGamePlayed, isCirclePuzzleSolved, isCircleSkillCompleted]);\n\n const assetUrl = useMemo(() => {\n const url: Record<ProjectType, string> = {\n [ProjectType.GAME]: isCircleGamePlayed ? games.game_card : games.tutorial,\n [ProjectType.PUZZLE]: isCirclePuzzleSolved ? puzzles.game_card : puzzles.tutorial,\n [ProjectType.LESSON]: isCircleSkillCompleted ? lessons.game_card : lessons.tutorial,\n };\n\n return projectType ? url[projectType] : '';\n }, [\n projectType,\n games.game_card,\n games.tutorial,\n puzzles.game_card,\n puzzles.tutorial,\n lessons.game_card,\n lessons.tutorial,\n isCircleGamePlayed,\n isCirclePuzzleSolved,\n isCircleSkillCompleted,\n ]);\n\n const descriptionHeader = useMemo(() => {\n if (projectType === ProjectType.PUZZLE && isCirclePuzzleSolved) {\n return \"You've solved it!\";\n }\n\n return '';\n }, [projectType, isCirclePuzzleSolved]);\n\n const { circle_username, userId, grade, user_avatar, playerType } = playerDetails ?? {};\n\n const playerData: IPlayer = {\n id: userId,\n username: circle_username,\n grade: grade,\n avatar: user_avatar,\n playerType,\n };\n\n const projectDetails = useMemo(() => {\n const commonConfig = {\n joinByRoomId: matchmakingId,\n enableCloseButton: false,\n enablePlayerTurnIndicators: true,\n enableSync: true,\n };\n\n if (projectType === ProjectType.GAME) {\n return {\n ...commonConfig,\n projectId: games.project_id as GameId,\n variant: games.variant,\n projectType: ProjectType.GAME,\n } as IMultiplayerWebGameProps;\n }\n\n if (projectType === ProjectType.PUZZLE) {\n return {\n ...commonConfig,\n projectId: puzzles.project_id as PuzzleId,\n variant: puzzles.variant,\n question: puzzles.question,\n askHintPermission: false,\n projectType: ProjectType.PUZZLE,\n } as IPuzzleWebGameProps;\n }\n\n return {\n ...commonConfig,\n projectId: lessons.project_id as LessonId,\n variant: lessons.variant,\n miniGameIdentifier: lessons.mini_game_identifier,\n sessionId: lessons.session_id,\n targetQuestions: lessons.target_questions,\n projectType: ProjectType.LESSON,\n } as ILessonWebGameProps;\n\n // return commonConfig;\n }, [games, puzzles, lessons, projectType, matchmakingId]);\n\n const onGameLoad = useCallback(() => {\n setIsLoading(false);\n }, []);\n\n const handleBack = useCallback(() => {\n setIsLoading(true);\n if (\n projectType === ProjectType.GAME ||\n projectType === ProjectType.PUZZLE ||\n projectType === ProjectType.LESSON\n ) {\n updateSlideConfig({ showCircleGameScreen: true, matchmakingId: uuidv4() });\n }\n }, [projectType, updateSlideConfig]);\n\n const onPlay = useCallback(() => {\n updateSlideConfig({ showCircleGameScreen: false, accuracyStr: '', totalTimeTaken: 0 });\n }, [updateSlideConfig]);\n\n const handleGameFinish = useCallback(\n (playerStats: IPlayerStats) => {\n setIsLoading(true);\n if (projectType === ProjectType.LESSON) {\n updateSlideConfig({\n accuracyStr: playerStats.value,\n totalTimeTaken: playerStats.timeSpent,\n isCircleSkillCompleted: true,\n showCircleGameScreen: true,\n matchmakingId: uuidv4(),\n });\n } else if (projectType === ProjectType.GAME) {\n updateSlideConfig({\n isCircleGamePlayed: true,\n showCircleGameScreen: true,\n matchmakingId: uuidv4(),\n });\n } else if (projectType === ProjectType.PUZZLE) {\n updateSlideConfig({\n isCirclePuzzleSolved: true,\n showCircleGameScreen: true,\n matchmakingId: uuidv4(),\n });\n }\n },\n [updateSlideConfig, projectType],\n );\n\n const getCustEle = useCallback(() => {\n if (accuracyStr && totalTimeTaken) {\n return (\n <>\n <FlexView $flexDirection=\"row\">\n <Text $renderAs=\"ab2\" $color=\"WHITE\">\n Finished in\n </Text>\n <Separator width={5} />\n <Text $renderAs=\"ab2-bold\" $color=\"WHITE\">\n {getTimeStrInFormatHMS(totalTimeTaken)}\n </Text>\n </FlexView>\n <Separator height={20} />\n <FlexView $flexDirection=\"row\">\n <Text $renderAs=\"ab2\" $color=\"WHITE\">\n Accuracy:\n </Text>\n <Separator width={5} />\n <Text $renderAs=\"ab2-bold\" $color=\"WHITE\">\n {accuracyStr}\n </Text>\n </FlexView>\n </>\n );\n }\n\n return null;\n }, [accuracyStr, totalTimeTaken]);\n\n useEffect(() => {\n if (!isLoading && !showCircleGameScreen) {\n playGame();\n }\n }, [showCircleGameScreen, playGame, isLoading]);\n\n return (\n <Styled.GameContainer>\n <Separator height={16} />\n <Text $renderAs=\"ah3-bold\" $color=\"WHITE_T_87\" $align=\"center\" $marginBottom={16}>\n {header}\n </Text>\n <Styled.GameWrapper>\n {showCircleGameScreen && (\n <Styled.GameLaunchOverlay>\n <TrialCircleGameLaunchScreen\n assetUrl={assetUrl}\n assetUrlType={assetUrl.endsWith('mp4') ? 'video' : 'lottie'}\n descriptionHeader={descriptionHeader}\n playerType={playerType}\n isLoading={isLoading}\n isGamePlayed={(projectType && isPlayed[projectType]) ?? false}\n onPlay={onPlay}\n custEle={projectType === ProjectType.LESSON ? getCustEle() : undefined}\n celebrationText={projectType && isPlayed[projectType] ? 'WELL DONE!' : ''}\n />\n </Styled.GameLaunchOverlay>\n )}\n {matchmakingId && (\n <WebView\n key={matchmakingId}\n ref={webViewRef}\n height=\"100%\"\n width=\"100%\"\n baseUrl={trialGameUrl}\n playerDetails={playerData}\n projectDetails={projectDetails}\n onGameLoad={onGameLoad}\n onBack={handleBack}\n handleInfoMessage={handleInfoMessage}\n onGamePlayFinish={handleGameFinish}\n parentDomain={window.location.origin}\n />\n )}\n </Styled.GameWrapper>\n </Styled.GameContainer>\n );\n});\n\nexport default TrialCircleGame;\n"],"names":["PROJECT_TYPE_MAP","TrialPageId","ProjectType","TrialCircleGame","memo","slideConfig","trialGameUrl","circleGames","formData","handleInfoMessage","updateSlideConfig","useTrialSessionContext","showCircleGameScreen","isCircleGamePlayed","isCirclePuzzleSolved","isCircleSkillCompleted","accuracyStr","totalTimeTaken","matchmakingId","webViewRef","useRef","playGame","useWebViewGames","isLoading","setIsLoading","useState","header","id","projectType","circleConfig","playerDetails","games","puzzles","lessons","isPlayed","useMemo","assetUrl","url","descriptionHeader","circle_username","userId","grade","user_avatar","playerType","playerData","projectDetails","commonConfig","onGameLoad","useCallback","handleBack","uuidv4","onPlay","handleGameFinish","playerStats","getCustEle","jsxs","Fragment","FlexView","jsx","Text","Separator","getTimeStrInFormatHMS","useEffect","Styled.GameContainer","Styled.GameWrapper","Styled.GameLaunchOverlay","TrialCircleGameLaunchScreen","WebView"],"mappings":";;;;;;;;;;;;;;AAwBA,MAAMA,KAA8D;AAAA,EAClE,CAACC,EAAY,WAAW,GAAGC,EAAY;AAAA,EACvC,CAACD,EAAY,aAA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1B,EAAY,SAASoD,MAAe;AAAA,UAC7D,iBAAiB1B,KAAeM,EAASN,CAAW,IAAI,eAAe;AAAA,QAAA;AAAA,MAAA,GAE3E;AAAA,MAEDV,KACC,gBAAAwC;AAAA,QAACS;AAAA,QAAA;AAAA,UAEC,KAAKhD;AAAA,UACL,QAAO;AAAA,UACP,OAAM;AAAA,UACN,SAASb;AAAA,UACT,eAAesC;AAAA,UACf,gBAAAC;AAAA,UACA,YAAAE;AAAA,UACA,QAAQE;AAAA,UACR,mBAAAxC;AAAA,UACA,kBAAkB2C;AAAA,UAClB,cAAc,OAAO,SAAS;AAAA,QAAA;AAAA,QAXzBlC;AAAA,MAYP;AAAA,IAAA,GAEJ;AAAA,EACF,EAAA,CAAA;AAEJ,CAAC;"}
|
1
|
+
{"version":3,"file":"trial-circle-game.js","sources":["../../../../../src/features/trial-session/comps/trial-circle-game/trial-circle-game.tsx"],"sourcesContent":["import type {\n ILessonWebGameProps,\n IMultiplayerWebGameProps,\n IPlayer,\n IPlayerStats,\n IPuzzleWebGameProps,\n} from '../../../circle-games/games/web-view/web-view-types';\n\nimport { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport { v4 as uuidv4 } from 'uuid';\n\nimport { getTimeStrInFormatHMS } from '../../../../helpers/date-time';\nimport { ProjectType } from '../../../circle-games/games/web-view/enums';\nimport { useWebViewGames } from '../../../circle-games/games/web-view/hooks/use-webview-games';\nimport { WebView } from '../../../circle-games/games/web-view/web-view';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport { useTrialSessionContext } from '../../context/use-trial-session-context';\nimport { TrialPageId } from '../../trial-session-constants';\nimport { TrialCircleGameLaunchScreen } from './trial-circle-game-launch-screen/trial-circle-game-launch-screen';\nimport * as Styled from './trial-circle-game-styled';\n\nconst PROJECT_TYPE_MAP: Partial<Record<TrialPageId, Omit<ProjectType, ProjectType.TABLE>>> = {\n [TrialPageId.CIRCLE_GAME]: ProjectType.GAME,\n [TrialPageId.CIRCLE_PUZZLE]: ProjectType.PUZZLE,\n [TrialPageId.CIRCLE_SKILL]: ProjectType.LESSON,\n};\n\nconst TrialCircleGame = memo(() => {\n const { slideConfig, trialGameUrl, circleGames, formData, handleInfoMessage, updateSlideConfig } =\n useTrialSessionContext();\n const {\n showCircleGameScreen = true,\n isCircleGamePlayed = false,\n isCirclePuzzleSolved = false,\n isCircleSkillCompleted = false,\n accuracyStr = '',\n totalTimeTaken = 0,\n matchmakingId,\n } = formData || {};\n const webViewRef = useRef<HTMLIFrameElement>(null);\n const { playGame } = useWebViewGames({ webViewRef });\n const [isLoading, setIsLoading] = useState(true);\n\n const { header, id } = slideConfig;\n const projectType = PROJECT_TYPE_MAP[id];\n const { circleConfig, playerDetails } = circleGames;\n const { games, puzzles, lessons } = circleConfig ?? {};\n\n const isPlayed = useMemo(() => {\n const playedStats = {\n [ProjectType.GAME]: isCircleGamePlayed,\n [ProjectType.PUZZLE]: isCirclePuzzleSolved,\n [ProjectType.LESSON]: isCircleSkillCompleted,\n };\n\n return playedStats;\n }, [isCircleGamePlayed, isCirclePuzzleSolved, isCircleSkillCompleted]);\n\n const assetUrl = useMemo(() => {\n const url: Omit<Record<ProjectType, string>, ProjectType.TABLE> = {\n [ProjectType.GAME]: isCircleGamePlayed ? games.game_card : games.tutorial,\n [ProjectType.PUZZLE]: isCirclePuzzleSolved ? puzzles.game_card : puzzles.tutorial,\n [ProjectType.LESSON]: isCircleSkillCompleted ? lessons.game_card : lessons.tutorial,\n };\n\n return projectType\n ? url[projectType as keyof Omit<Record<ProjectType, string>, ProjectType.TABLE>]\n : '';\n }, [\n projectType,\n games.game_card,\n games.tutorial,\n puzzles.game_card,\n puzzles.tutorial,\n lessons.game_card,\n lessons.tutorial,\n isCircleGamePlayed,\n isCirclePuzzleSolved,\n isCircleSkillCompleted,\n ]);\n\n const descriptionHeader = useMemo(() => {\n if (projectType === ProjectType.PUZZLE && isCirclePuzzleSolved) {\n return \"You've solved it!\";\n }\n\n return '';\n }, [projectType, isCirclePuzzleSolved]);\n\n const { circle_username, userId, grade, user_avatar, playerType } = playerDetails ?? {};\n\n const playerData: IPlayer = {\n id: userId,\n username: circle_username,\n grade: grade,\n avatar: user_avatar,\n playerType,\n };\n\n const projectDetails = useMemo(() => {\n const commonConfig = {\n joinByRoomId: matchmakingId,\n enableCloseButton: false,\n enablePlayerTurnIndicators: true,\n enableSync: true,\n };\n\n if (projectType === ProjectType.GAME) {\n return {\n ...commonConfig,\n projectId: games.project_id,\n variant: games.variant,\n projectType: ProjectType.GAME,\n } as IMultiplayerWebGameProps;\n }\n\n if (projectType === ProjectType.PUZZLE) {\n return {\n ...commonConfig,\n projectId: puzzles.project_id,\n variant: puzzles.variant,\n question: puzzles.question,\n askHintPermission: false,\n projectType: ProjectType.PUZZLE,\n } as IPuzzleWebGameProps;\n }\n\n return {\n ...commonConfig,\n projectId: lessons.project_id,\n variant: lessons.variant,\n miniGameIdentifier: lessons.mini_game_identifier,\n sessionId: lessons.session_id,\n targetQuestions: lessons.target_questions,\n projectType: ProjectType.LESSON,\n } as ILessonWebGameProps;\n\n // return commonConfig;\n }, [games, puzzles, lessons, projectType, matchmakingId]);\n\n const onGameLoad = useCallback(() => {\n setIsLoading(false);\n }, []);\n\n const handleBack = useCallback(() => {\n setIsLoading(true);\n if (\n projectType === ProjectType.GAME ||\n projectType === ProjectType.PUZZLE ||\n projectType === ProjectType.LESSON\n ) {\n updateSlideConfig({ showCircleGameScreen: true, matchmakingId: uuidv4() });\n }\n }, [projectType, updateSlideConfig]);\n\n const onPlay = useCallback(() => {\n updateSlideConfig({ showCircleGameScreen: false, accuracyStr: '', totalTimeTaken: 0 });\n }, [updateSlideConfig]);\n\n const handleGameFinish = useCallback(\n (playerStats: IPlayerStats) => {\n setIsLoading(true);\n if (projectType === ProjectType.LESSON) {\n updateSlideConfig({\n accuracyStr: playerStats.value,\n totalTimeTaken: playerStats.timeSpent,\n isCircleSkillCompleted: true,\n showCircleGameScreen: true,\n matchmakingId: uuidv4(),\n });\n } else if (projectType === ProjectType.GAME) {\n updateSlideConfig({\n isCircleGamePlayed: true,\n showCircleGameScreen: true,\n matchmakingId: uuidv4(),\n });\n } else if (projectType === ProjectType.PUZZLE) {\n updateSlideConfig({\n isCirclePuzzleSolved: true,\n showCircleGameScreen: true,\n matchmakingId: uuidv4(),\n });\n }\n },\n [updateSlideConfig, projectType],\n );\n\n const getCustEle = useCallback(() => {\n if (accuracyStr && totalTimeTaken) {\n return (\n <>\n <FlexView $flexDirection=\"row\">\n <Text $renderAs=\"ab2\" $color=\"WHITE\">\n Finished in\n </Text>\n <Separator width={5} />\n <Text $renderAs=\"ab2-bold\" $color=\"WHITE\">\n {getTimeStrInFormatHMS(totalTimeTaken)}\n </Text>\n </FlexView>\n <Separator height={20} />\n <FlexView $flexDirection=\"row\">\n <Text $renderAs=\"ab2\" $color=\"WHITE\">\n Accuracy:\n </Text>\n <Separator width={5} />\n <Text $renderAs=\"ab2-bold\" $color=\"WHITE\">\n {accuracyStr}\n </Text>\n </FlexView>\n </>\n );\n }\n\n return null;\n }, [accuracyStr, totalTimeTaken]);\n\n useEffect(() => {\n if (!isLoading && !showCircleGameScreen) {\n playGame();\n }\n }, [showCircleGameScreen, playGame, isLoading]);\n\n return (\n <Styled.GameContainer>\n <Separator height={16} />\n <Text $renderAs=\"ah3-bold\" $color=\"WHITE_T_87\" $align=\"center\" $marginBottom={16}>\n {header}\n </Text>\n <Styled.GameWrapper>\n {showCircleGameScreen && (\n <Styled.GameLaunchOverlay>\n <TrialCircleGameLaunchScreen\n assetUrl={assetUrl}\n assetUrlType={assetUrl.endsWith('mp4') ? 'video' : 'lottie'}\n descriptionHeader={descriptionHeader}\n playerType={playerType}\n isLoading={isLoading}\n isGamePlayed={\n (projectType &&\n isPlayed[\n projectType as keyof Omit<Record<ProjectType, string>, ProjectType.TABLE>\n ]) ??\n false\n }\n onPlay={onPlay}\n custEle={projectType === ProjectType.LESSON ? getCustEle() : undefined}\n celebrationText={\n projectType &&\n isPlayed[projectType as keyof Omit<Record<ProjectType, string>, ProjectType.TABLE>]\n ? 'WELL DONE!'\n : ''\n }\n />\n </Styled.GameLaunchOverlay>\n )}\n {matchmakingId && (\n <WebView\n key={matchmakingId}\n ref={webViewRef}\n height=\"100%\"\n width=\"100%\"\n baseUrl={trialGameUrl}\n playerDetails={playerData}\n projectDetails={projectDetails}\n onGameLoad={onGameLoad}\n onBack={handleBack}\n handleInfoMessage={handleInfoMessage}\n onGamePlayFinish={handleGameFinish}\n parentDomain={window.location.origin}\n />\n )}\n </Styled.GameWrapper>\n </Styled.GameContainer>\n );\n});\n\nexport default TrialCircleGame;\n"],"names":["PROJECT_TYPE_MAP","TrialPageId","ProjectType","TrialCircleGame","memo","slideConfig","trialGameUrl","circleGames","formData","handleInfoMessage","updateSlideConfig","useTrialSessionContext","showCircleGameScreen","isCircleGamePlayed","isCirclePuzzleSolved","isCircleSkillCompleted","accuracyStr","totalTimeTaken","matchmakingId","webViewRef","useRef","playGame","useWebViewGames","isLoading","setIsLoading","useState","header","id","projectType","circleConfig","playerDetails","games","puzzles","lessons","isPlayed","useMemo","assetUrl","url","descriptionHeader","circle_username","userId","grade","user_avatar","playerType","playerData","projectDetails","commonConfig","onGameLoad","useCallback","handleBack","uuidv4","onPlay","handleGameFinish","playerStats","getCustEle","jsxs","Fragment","FlexView","jsx","Text","Separator","getTimeStrInFormatHMS","useEffect","Styled.GameContainer","Styled.GameWrapper","Styled.GameLaunchOverlay","TrialCircleGameLaunchScreen","WebView"],"mappings":";;;;;;;;;;;;;;AAuBA,MAAMA,KAAuF;AAAA,EAC3F,CAACC,EAAY,WAAW,GAAGC,EAAY;AAAA,EACvC,CAACD,EAAY,aAAa,GAAGC,EAAY;AAAA,EACzC,CAACD,EAAY,YAAY,GAAGC,EAAY;AAC1C,GAEMC,KAAkBC,EAAK,MAAM;AAC3B,QAAA,EAAE,aAAAC,GAAa,cAAAC,GAAc,aAAAC,GA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;AAAA,UAEC,KAAKhD;AAAA,UACL,QAAO;AAAA,UACP,OAAM;AAAA,UACN,SAASb;AAAA,UACT,eAAesC;AAAA,UACf,gBAAAC;AAAA,UACA,YAAAE;AAAA,UACA,QAAQE;AAAA,UACR,mBAAAxC;AAAA,UACA,kBAAkB2C;AAAA,UAClB,cAAc,OAAO,SAAS;AAAA,QAAA;AAAA,QAXzBlC;AAAA,MAYP;AAAA,IAAA,GAEJ;AAAA,EACF,EAAA,CAAA;AAEJ,CAAC;"}
|
package/dist/index.d.ts
CHANGED
@@ -72,8 +72,8 @@ export declare const BackgroundImage: ({ img }: {
|
|
72
72
|
|
73
73
|
export declare const BackIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
74
74
|
|
75
|
-
declare interface BaseProject
|
76
|
-
id:
|
75
|
+
declare interface BaseProject {
|
76
|
+
id: string;
|
77
77
|
name: string;
|
78
78
|
cardLottie: string;
|
79
79
|
tutorial: string;
|
@@ -253,6 +253,8 @@ export declare const DashArrowIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
253
253
|
|
254
254
|
export declare const DesmosCalculator: FC<IDesmosCalculatorProps>;
|
255
255
|
|
256
|
+
export declare const DigitalMeter: FC<IDigitalMeterProps>;
|
257
|
+
|
256
258
|
export declare const DownIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
257
259
|
|
258
260
|
export declare const DraftIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
@@ -389,7 +391,7 @@ declare interface FlexViewProps {
|
|
389
391
|
$flex?: number;
|
390
392
|
}
|
391
393
|
|
392
|
-
export declare interface Game extends BaseProject
|
394
|
+
export declare interface Game extends BaseProject {
|
393
395
|
isPlayed: boolean;
|
394
396
|
}
|
395
397
|
|
@@ -399,28 +401,8 @@ export declare const GAME_LAUNCHER_SIZE: number;
|
|
399
401
|
|
400
402
|
export declare const GameIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
|
401
403
|
|
402
|
-
export declare enum GameId {
|
403
|
-
CHESS_MOVES = "chess-moves",
|
404
|
-
NO_ATTACK = "no-attack",
|
405
|
-
TROMINOS = "trominos",
|
406
|
-
NIMS_GAME = "nims-game",
|
407
|
-
TRANSFORMATION = "transformation",
|
408
|
-
LIGHTS_ON_OR_OFF = "lights-on-or-off",
|
409
|
-
LIQUID_WARS = "liquid-wars",
|
410
|
-
HACKENBUSH = "hackenbush",
|
411
|
-
SQUARE_IT = "square-it",
|
412
|
-
CLASH_OF_COLOURS = "clash-of-colours",
|
413
|
-
REACH = "reach"
|
414
|
-
}
|
415
|
-
|
416
404
|
export declare const GameLauncher: FC<IGameLauncherProps>;
|
417
405
|
|
418
|
-
declare enum GENDER {
|
419
|
-
MALE = "MALE",
|
420
|
-
FEMALE = "FEMALE",
|
421
|
-
OTHER = "OTHER"
|
422
|
-
}
|
423
|
-
|
424
406
|
declare const getArrowTooltipConfig: IGetArrowTooltipConfig;
|
425
407
|
|
426
408
|
declare const getButtonConfig: IGetButtonConfig;
|
@@ -572,8 +554,8 @@ declare interface IBaseLeaderboardDetails {
|
|
572
554
|
currentTimestamp: number;
|
573
555
|
}
|
574
556
|
|
575
|
-
declare interface IBaseProject
|
576
|
-
id:
|
557
|
+
declare interface IBaseProject {
|
558
|
+
id: string;
|
577
559
|
name: string;
|
578
560
|
card: string;
|
579
561
|
variant: string;
|
@@ -594,13 +576,10 @@ declare interface IBaseSelectInputProps<IDType extends string | number> extends
|
|
594
576
|
theme?: 'light' | 'dark';
|
595
577
|
}
|
596
578
|
|
597
|
-
declare interface IBaseWebGameProps
|
598
|
-
projectId:
|
579
|
+
declare interface IBaseWebGameProps {
|
580
|
+
projectId: string;
|
599
581
|
variant: string;
|
600
582
|
projectType: ProjectType;
|
601
|
-
joinByRoomId?: string;
|
602
|
-
enableSync?: boolean;
|
603
|
-
enablePlayerTurnIndicators?: boolean;
|
604
583
|
enableCloseButton?: boolean;
|
605
584
|
}
|
606
585
|
|
@@ -1027,6 +1006,18 @@ declare interface IDesmosCalculatorProps {
|
|
1027
1006
|
};
|
1028
1007
|
}
|
1029
1008
|
|
1009
|
+
declare interface IDigitalMeterProps {
|
1010
|
+
show: boolean;
|
1011
|
+
value: number;
|
1012
|
+
maxValue: number;
|
1013
|
+
displayText: string;
|
1014
|
+
targetValue: number;
|
1015
|
+
progressType: 'stepper' | 'linear';
|
1016
|
+
helperTextPrimary: string;
|
1017
|
+
helperTextSecondary: string;
|
1018
|
+
onComplete: () => void;
|
1019
|
+
}
|
1020
|
+
|
1030
1021
|
declare interface IEditMilestoneModalProps extends IMilestoneEditProps {
|
1031
1022
|
studentId: string;
|
1032
1023
|
isUsingAlternateCurriculum: boolean;
|
@@ -1081,12 +1072,12 @@ declare interface IFile {
|
|
1081
1072
|
url: string;
|
1082
1073
|
}
|
1083
1074
|
|
1084
|
-
declare interface IGame extends IBaseProject
|
1075
|
+
declare interface IGame extends IBaseProject {
|
1085
1076
|
played: boolean;
|
1086
1077
|
}
|
1087
1078
|
|
1088
1079
|
declare interface IGameLauncherProps {
|
1089
|
-
onSegmentClick: (projectDetail: Game | Puzzle | Lesson, projectType: ProjectType) => void;
|
1080
|
+
onSegmentClick: (projectDetail: Game | Puzzle | Lesson | ITableDetails, projectType: ProjectType) => void;
|
1090
1081
|
isLoading?: boolean;
|
1091
1082
|
data: IProjects | null;
|
1092
1083
|
defaultIndex?: number;
|
@@ -1484,9 +1475,9 @@ declare interface ILearnosityQuestionScore {
|
|
1484
1475
|
unscored?: boolean;
|
1485
1476
|
}
|
1486
1477
|
|
1487
|
-
declare interface ILesson extends IBaseProject
|
1478
|
+
declare interface ILesson extends IBaseProject {
|
1488
1479
|
session_id: string;
|
1489
|
-
mini_game_identifier:
|
1480
|
+
mini_game_identifier: string;
|
1490
1481
|
target_questions: number;
|
1491
1482
|
status: 'pending' | 'completed';
|
1492
1483
|
}
|
@@ -1524,8 +1515,8 @@ declare interface ILessonsListProps extends ILessonItemCallbackProps {
|
|
1524
1515
|
lessonItemColorHue: THueNames;
|
1525
1516
|
}
|
1526
1517
|
|
1527
|
-
export declare interface ILessonWebGameProps extends IBaseWebGameProps
|
1528
|
-
miniGameIdentifier:
|
1518
|
+
export declare interface ILessonWebGameProps extends IBaseWebGameProps, ISyncableWebGameProps {
|
1519
|
+
miniGameIdentifier: string;
|
1529
1520
|
sessionId: string;
|
1530
1521
|
targetQuestions: number;
|
1531
1522
|
}
|
@@ -1571,7 +1562,6 @@ export declare const ILLUSTRATIONS: {
|
|
1571
1562
|
DURATION_60MIN_GRAY: string;
|
1572
1563
|
DURATION_90MIN_GRAY: string;
|
1573
1564
|
EARTH_GREEN: string;
|
1574
|
-
FEMALE_AVATAR: string;
|
1575
1565
|
GAME_PLAY: string;
|
1576
1566
|
GLOBE_WITH_BLUE_FILL: string;
|
1577
1567
|
GRADE_GRID_BACKGROUND: string;
|
@@ -1589,7 +1579,6 @@ export declare const ILLUSTRATIONS: {
|
|
1589
1579
|
LOADER_1: string;
|
1590
1580
|
LOCKED: string;
|
1591
1581
|
MAINTENANCE: string;
|
1592
|
-
MALE_AVATAR: string;
|
1593
1582
|
MASTERED_BADGE: string;
|
1594
1583
|
MASTERED_SHIELD_GRAY: string;
|
1595
1584
|
MASTERED_SHIELD_GREEN: string;
|
@@ -1950,7 +1939,8 @@ declare interface IMilestoneWidgetResourcesProps extends ISheetItemCallbackProps
|
|
1950
1939
|
canUpdatePlan?: boolean;
|
1951
1940
|
}
|
1952
1941
|
|
1953
|
-
export declare interface IMultiplayerWebGameProps extends IBaseWebGameProps
|
1942
|
+
export declare interface IMultiplayerWebGameProps extends IBaseWebGameProps, ISyncableWebGameProps {
|
1943
|
+
enablePlayerTurnIndicators?: boolean;
|
1954
1944
|
}
|
1955
1945
|
|
1956
1946
|
declare interface IMultiTabBlockerContextValue {
|
@@ -2161,6 +2151,7 @@ export declare interface IProjects {
|
|
2161
2151
|
games: IProject<Game>;
|
2162
2152
|
puzzles: IProject<Puzzle>;
|
2163
2153
|
lessons?: IProject<Lesson>;
|
2154
|
+
tables?: ITables;
|
2164
2155
|
}
|
2165
2156
|
|
2166
2157
|
declare interface IProjects_2 {
|
@@ -2176,6 +2167,10 @@ declare interface IProjects_2 {
|
|
2176
2167
|
label: string;
|
2177
2168
|
data: ILesson[];
|
2178
2169
|
};
|
2170
|
+
tables?: {
|
2171
|
+
label: string;
|
2172
|
+
data: ITables_2;
|
2173
|
+
};
|
2179
2174
|
}
|
2180
2175
|
|
2181
2176
|
declare interface IPublishData {
|
@@ -2183,7 +2178,7 @@ declare interface IPublishData {
|
|
2183
2178
|
eventPayload: IActionData;
|
2184
2179
|
}
|
2185
2180
|
|
2186
|
-
declare interface IPuzzle extends IBaseProject
|
2181
|
+
declare interface IPuzzle extends IBaseProject {
|
2187
2182
|
question: string;
|
2188
2183
|
is_hint_seen: boolean;
|
2189
2184
|
solved: boolean;
|
@@ -2217,7 +2212,7 @@ declare interface IPuzzleCard_2 {
|
|
2217
2212
|
programId: string;
|
2218
2213
|
}
|
2219
2214
|
|
2220
|
-
export declare interface IPuzzleWebGameProps extends IBaseWebGameProps
|
2215
|
+
export declare interface IPuzzleWebGameProps extends IBaseWebGameProps, ISyncableWebGameProps {
|
2221
2216
|
question: string;
|
2222
2217
|
askHintPermission?: boolean;
|
2223
2218
|
}
|
@@ -2580,6 +2575,48 @@ export declare const isV3Worksheet: (sheet: ISheetDataProps | TLPARSheetData, mo
|
|
2580
2575
|
|
2581
2576
|
export declare const isV3WorksheetAttempt: (attempt: IWorksheetAttemptModel) => boolean;
|
2582
2577
|
|
2578
|
+
declare interface ISyncableWebGameProps {
|
2579
|
+
joinByRoomId?: string;
|
2580
|
+
enableSync?: boolean;
|
2581
|
+
}
|
2582
|
+
|
2583
|
+
export declare interface ITable {
|
2584
|
+
tableList: ITableInfo[];
|
2585
|
+
infiniteModeHighScore: number;
|
2586
|
+
}
|
2587
|
+
|
2588
|
+
export declare interface ITableDetails {
|
2589
|
+
mode: TTableMode;
|
2590
|
+
tableNumber?: number;
|
2591
|
+
infiniteModeHighScore?: number;
|
2592
|
+
}
|
2593
|
+
|
2594
|
+
export declare interface ITableInfo {
|
2595
|
+
tableNumber: number;
|
2596
|
+
stars: TTableMode[];
|
2597
|
+
}
|
2598
|
+
|
2599
|
+
declare interface ITableInfo_2 {
|
2600
|
+
table_number: number;
|
2601
|
+
stars: ('advance' | 'random' | 'sequence')[];
|
2602
|
+
}
|
2603
|
+
|
2604
|
+
declare interface ITables {
|
2605
|
+
type: ProjectType;
|
2606
|
+
label: string;
|
2607
|
+
data: ITable;
|
2608
|
+
}
|
2609
|
+
|
2610
|
+
declare interface ITables_2 {
|
2611
|
+
table_wise_details: ITableInfo_2[];
|
2612
|
+
infinite_mode_high_score: number;
|
2613
|
+
}
|
2614
|
+
|
2615
|
+
export declare interface ITableWebGameProps extends IBaseWebGameProps {
|
2616
|
+
tableNumber: number;
|
2617
|
+
infiniteModeHighScore?: number;
|
2618
|
+
}
|
2619
|
+
|
2583
2620
|
declare interface ITabProps {
|
2584
2621
|
label: number | string;
|
2585
2622
|
$selected: boolean;
|
@@ -2629,28 +2666,6 @@ declare interface ITagProps {
|
|
2629
2666
|
textColor?: TColorNames;
|
2630
2667
|
}
|
2631
2668
|
|
2632
|
-
declare interface ITalkMeter {
|
2633
|
-
userType: TUserTypes;
|
2634
|
-
studentId: string;
|
2635
|
-
teacherId: string;
|
2636
|
-
classStartTime?: Date;
|
2637
|
-
avPackageEnabled?: boolean;
|
2638
|
-
teacherClassroomId: string;
|
2639
|
-
teacherTalkTime: number;
|
2640
|
-
studentTalkTime: number;
|
2641
|
-
lastBatchReceivedNo: number;
|
2642
|
-
canDisplayBatch: boolean;
|
2643
|
-
onMessageReceive: () => void;
|
2644
|
-
onDismissMeter: () => void;
|
2645
|
-
}
|
2646
|
-
|
2647
|
-
declare interface ITalkMeterProps extends ITalkMeter {
|
2648
|
-
studentName?: string;
|
2649
|
-
teacherName?: string;
|
2650
|
-
teacherGender: GENDER;
|
2651
|
-
animated?: boolean;
|
2652
|
-
}
|
2653
|
-
|
2654
2669
|
declare interface ITeacherReview {
|
2655
2670
|
reviewComment?: string;
|
2656
2671
|
images?: string[];
|
@@ -2988,8 +3003,8 @@ export declare interface IVibrationPattern {
|
|
2988
3003
|
|
2989
3004
|
export declare interface IWebViewProps extends IframeHTMLAttributes<HTMLIFrameElement> {
|
2990
3005
|
baseUrl: string;
|
3006
|
+
projectDetails: IMultiplayerWebGameProps | IPuzzleWebGameProps | ILessonWebGameProps | ITableWebGameProps;
|
2991
3007
|
parentDomain: string;
|
2992
|
-
projectDetails: IMultiplayerWebGameProps | IPuzzleWebGameProps | ILessonWebGameProps;
|
2993
3008
|
playerDetails: IPlayer;
|
2994
3009
|
onBack?: () => void;
|
2995
3010
|
onGameLoad?: () => void;
|
@@ -3285,9 +3300,9 @@ export declare const LearnosityPreloader: FC<PropsWithChildren<ILearnosityPreloa
|
|
3285
3300
|
|
3286
3301
|
export declare const LeftIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
|
3287
3302
|
|
3288
|
-
export declare interface Lesson extends BaseProject
|
3303
|
+
export declare interface Lesson extends BaseProject {
|
3289
3304
|
sessionId: string;
|
3290
|
-
miniGameIdentifier:
|
3305
|
+
miniGameIdentifier: string;
|
3291
3306
|
targetQuestions: number;
|
3292
3307
|
status: TSkillStatus;
|
3293
3308
|
}
|
@@ -3297,17 +3312,6 @@ declare const LESSON_TAG_TYPE: {
|
|
3297
3312
|
readonly DEFAULT: "DEFAULT";
|
3298
3313
|
};
|
3299
3314
|
|
3300
|
-
export declare enum LessonId {
|
3301
|
-
ANGLES = "angles",
|
3302
|
-
FRACTIONS = "fractions",
|
3303
|
-
TIME = "time",
|
3304
|
-
ADDITION_SUBTRACTION = "addition-subtraction",
|
3305
|
-
MULTIPLICATION_DIVISION = "multiplication-division",
|
3306
|
-
PERCENTAGES = "percentages",
|
3307
|
-
INTEGERS = "integers",
|
3308
|
-
RATIOS = "ratios"
|
3309
|
-
}
|
3310
|
-
|
3311
3315
|
export declare const loadScript: ILoadScript;
|
3312
3316
|
|
3313
3317
|
export declare const Lock2Icon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
|
@@ -3317,6 +3321,7 @@ export declare const LockIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
3317
3321
|
export declare const LOTTIE: {
|
3318
3322
|
ACCURACY_METER: string;
|
3319
3323
|
ACCURACY_NEEDLE: string;
|
3324
|
+
ADVANCE_MODE_SEGMENT_LOTTIE: string;
|
3320
3325
|
BEGINNER1X: string;
|
3321
3326
|
BRONZE_1: string;
|
3322
3327
|
BRONZE_2: string;
|
@@ -3340,6 +3345,8 @@ export declare const LOTTIE: {
|
|
3340
3345
|
GOLD_1: string;
|
3341
3346
|
GOLD_2: string;
|
3342
3347
|
GOLD_3: string;
|
3348
|
+
INFINITE_BUTTON_BG: string;
|
3349
|
+
INFINITE_BUTTON_SYMBOL: string;
|
3343
3350
|
LEVELUP_RINGS: string;
|
3344
3351
|
MEDIUM: string;
|
3345
3352
|
NUDGE_TAP: string;
|
@@ -3357,6 +3364,8 @@ export declare const LOTTIE: {
|
|
3357
3364
|
POINT5: string;
|
3358
3365
|
POINT60: string;
|
3359
3366
|
PROFICIENT1X: string;
|
3367
|
+
RANDOM_MODE_SEGMENT_LOTTIE: string;
|
3368
|
+
SEQUENCE_MODE_SEGMENT_LOTTIE: string;
|
3360
3369
|
SILVER_1: string;
|
3361
3370
|
SILVER_2: string;
|
3362
3371
|
SILVER_3: string;
|
@@ -3364,6 +3373,8 @@ export declare const LOTTIE: {
|
|
3364
3373
|
SPINNER_WHITE: string;
|
3365
3374
|
SPLASH_SCREEN: string;
|
3366
3375
|
STAY_CONNECTED_LOTTIE: string;
|
3376
|
+
TARGET_ACHIEVED_TEXT: string;
|
3377
|
+
TABLE_MODE_REVEAL: string;
|
3367
3378
|
TEACHER_VALIDATION: string;
|
3368
3379
|
TOTAL_STREAK: string;
|
3369
3380
|
TOTAL_TIME: string;
|
@@ -3392,23 +3403,6 @@ export declare const MilestoneOutcome: React_2.FC<IMilestoneOutcomeContainer>;
|
|
3392
3403
|
|
3393
3404
|
export declare const MilestoneStart: React_2.FC<IMilestoneStartProps>;
|
3394
3405
|
|
3395
|
-
export declare enum MiniGameId {
|
3396
|
-
SNAKE = "snake",
|
3397
|
-
BASKETBALL = "basketball",
|
3398
|
-
REARRANGE = "rearrange",
|
3399
|
-
CAR_RACE = "car-race",
|
3400
|
-
DROP_ME = "drop-me",
|
3401
|
-
WARZONE = "warzone",
|
3402
|
-
SLOT_MACHINE = "slot-machine",
|
3403
|
-
SLING_SHOT = "sling-shot",
|
3404
|
-
CLOCK = "clock",
|
3405
|
-
MINING = "mining",
|
3406
|
-
SHADING_AREA = "shading-area",
|
3407
|
-
MAGIC_HAT = "magic-hat",
|
3408
|
-
PUZZLE = "puzzle",
|
3409
|
-
BALANCE = "balance"
|
3410
|
-
}
|
3411
|
-
|
3412
3406
|
export declare const Minus2Icon: React.FC<React.SVGProps<SVGSVGElement>>;
|
3413
3407
|
|
3414
3408
|
export declare const MinusIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
@@ -3612,36 +3606,6 @@ export declare const PreviewWorksheet: FC<IPreviewWorksheetProps>;
|
|
3612
3606
|
|
3613
3607
|
export declare const ProgressIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
3614
3608
|
|
3615
|
-
export declare const ProjectId: {
|
3616
|
-
readonly ANGLES: LessonId.ANGLES;
|
3617
|
-
readonly FRACTIONS: LessonId.FRACTIONS;
|
3618
|
-
readonly TIME: LessonId.TIME;
|
3619
|
-
readonly ADDITION_SUBTRACTION: LessonId.ADDITION_SUBTRACTION;
|
3620
|
-
readonly MULTIPLICATION_DIVISION: LessonId.MULTIPLICATION_DIVISION;
|
3621
|
-
readonly PERCENTAGES: LessonId.PERCENTAGES;
|
3622
|
-
readonly INTEGERS: LessonId.INTEGERS;
|
3623
|
-
readonly RATIOS: LessonId.RATIOS;
|
3624
|
-
readonly CUT_THE_STRIP: PuzzleId.CUT_THE_STRIP;
|
3625
|
-
readonly ONE_LINE_WONDER: PuzzleId.ONE_LINE_WONDER;
|
3626
|
-
readonly FLIP_IT_UP: PuzzleId.FLIP_IT_UP;
|
3627
|
-
readonly CARS_IN_CHAOS: PuzzleId.CARS_IN_CHAOS;
|
3628
|
-
readonly REFLEKT: PuzzleId.REFLEKT;
|
3629
|
-
readonly MATCHSTICKS: PuzzleId.MATCHSTICKS;
|
3630
|
-
readonly NO_CROSS: PuzzleId.NO_CROSS;
|
3631
|
-
readonly DISSECTION: PuzzleId.DISSECTION;
|
3632
|
-
readonly CHESS_MOVES: GameId.CHESS_MOVES;
|
3633
|
-
readonly NO_ATTACK: GameId.NO_ATTACK;
|
3634
|
-
readonly TROMINOS: GameId.TROMINOS;
|
3635
|
-
readonly NIMS_GAME: GameId.NIMS_GAME;
|
3636
|
-
readonly TRANSFORMATION: GameId.TRANSFORMATION;
|
3637
|
-
readonly LIGHTS_ON_OR_OFF: GameId.LIGHTS_ON_OR_OFF;
|
3638
|
-
readonly LIQUID_WARS: GameId.LIQUID_WARS;
|
3639
|
-
readonly HACKENBUSH: GameId.HACKENBUSH;
|
3640
|
-
readonly SQUARE_IT: GameId.SQUARE_IT;
|
3641
|
-
readonly CLASH_OF_COLOURS: GameId.CLASH_OF_COLOURS;
|
3642
|
-
readonly REACH: GameId.REACH;
|
3643
|
-
};
|
3644
|
-
|
3645
3609
|
export declare enum ProjectOutcome {
|
3646
3610
|
WIN = "win",
|
3647
3611
|
LOSE = "lose",
|
@@ -3656,10 +3620,11 @@ export declare enum ProjectOutcome {
|
|
3656
3620
|
export declare enum ProjectType {
|
3657
3621
|
GAME = "game",
|
3658
3622
|
PUZZLE = "puzzle",
|
3659
|
-
LESSON = "lesson"
|
3623
|
+
LESSON = "lesson",
|
3624
|
+
TABLE = "table"
|
3660
3625
|
}
|
3661
3626
|
|
3662
|
-
export declare interface Puzzle extends BaseProject
|
3627
|
+
export declare interface Puzzle extends BaseProject {
|
3663
3628
|
question: string;
|
3664
3629
|
isHintSeen: boolean;
|
3665
3630
|
solved: boolean;
|
@@ -3680,17 +3645,6 @@ declare const PUZZLE_CARD_STATE: {
|
|
3680
3645
|
|
3681
3646
|
declare const PUZZLE_CARDS: "puzzle_cards";
|
3682
3647
|
|
3683
|
-
export declare enum PuzzleId {
|
3684
|
-
CUT_THE_STRIP = "cut-the-strip",
|
3685
|
-
ONE_LINE_WONDER = "one-line-wonder",
|
3686
|
-
FLIP_IT_UP = "flip-it-up",
|
3687
|
-
CARS_IN_CHAOS = "cars-in-chaos",
|
3688
|
-
REFLEKT = "reflekt",
|
3689
|
-
MATCHSTICKS = "matchsticks",
|
3690
|
-
NO_CROSS = "no-cross",
|
3691
|
-
DISSECTION = "dissection"
|
3692
|
-
}
|
3693
|
-
|
3694
3648
|
export declare const PYTHON_NODE_TYPES: {
|
3695
3649
|
readonly PPT_BASIC: "PPT_BASIC";
|
3696
3650
|
readonly PPT_CONTENT: "PPT_CONTENT";
|
@@ -3867,8 +3821,6 @@ declare type TAggregateForRewardsData = {
|
|
3867
3821
|
|
3868
3822
|
declare type TAlignSelf = 'auto' | 'flex-start' | 'flex-end' | 'center' | 'stretch';
|
3869
3823
|
|
3870
|
-
export declare const TalkMeter: FC<ITalkMeterProps>;
|
3871
|
-
|
3872
3824
|
export declare type TArrowTooltipConfig = {
|
3873
3825
|
backgroundColorName: TColorNames;
|
3874
3826
|
textColorName: TColorNames;
|
@@ -4559,8 +4511,6 @@ declare type TPreference = {
|
|
4559
4511
|
|
4560
4512
|
declare type TPreferenceCategory = (typeof PREFERENCE_CATEGORY)[keyof typeof PREFERENCE_CATEGORY];
|
4561
4513
|
|
4562
|
-
export declare type TProject = GameId | PuzzleId | LessonId;
|
4563
|
-
|
4564
4514
|
declare type TPublish = (data: IPublishData) => boolean | undefined;
|
4565
4515
|
|
4566
4516
|
declare type TPublishMouseMove = (points: IPointerData) => void;
|
@@ -4743,6 +4693,8 @@ declare type TSubscribe = (id: string, cb: (data: IActionData | IActionData[]) =
|
|
4743
4693
|
|
4744
4694
|
declare type TSubscribeMouseMove = (id: string, callback: (data: IPointerData) => void) => void;
|
4745
4695
|
|
4696
|
+
export declare type TTableMode = 'random' | 'sequence' | 'advance' | 'infinite';
|
4697
|
+
|
4746
4698
|
export declare type TTabSizes = 'xsmall' | 'small' | 'regular' | 'medium';
|
4747
4699
|
|
4748
4700
|
export declare type TTabVariants = 'primary';
|