@cuemath/leap 3.5.67-hg1 → 3.5.67-link1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/features/analytics-events/whitelist-events.js +15 -13
- package/dist/features/analytics-events/whitelist-events.js.map +1 -1
- package/dist/features/circle-games/about-game-activities/about-game-activities-analytics-events.js +11 -0
- package/dist/features/circle-games/about-game-activities/about-game-activities-analytics-events.js.map +1 -0
- package/dist/features/circle-games/about-game-activities/about-game-activities-constants.js +1 -16
- package/dist/features/circle-games/about-game-activities/about-game-activities-constants.js.map +1 -1
- package/dist/features/circle-games/about-game-activities/about-game-activities.js +62 -53
- package/dist/features/circle-games/about-game-activities/about-game-activities.js.map +1 -1
- package/dist/features/circle-games/game-launcher/game-launcher.js +173 -110
- 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 +6 -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-style.js +12 -0
- package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey-style.js.map +1 -0
- package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js +162 -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-infinite-launcher-journey/constants.js +5 -0
- package/dist/features/circle-games/game-launcher/hooks/use-table-infinite-launcher-journey/constants.js.map +1 -0
- package/dist/features/circle-games/game-launcher/hooks/use-table-infinite-launcher-journey/use-table-infinite-launcher-journey.js +92 -0
- package/dist/features/circle-games/game-launcher/hooks/use-table-infinite-launcher-journey/use-table-infinite-launcher-journey.js.map +1 -0
- package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/constants.js +10 -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.js +159 -0
- package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/use-table-launcher-journey.js.map +1 -0
- package/dist/features/cue-canvas/bottombar/homework-controls.js.map +1 -1
- package/dist/features/cue-canvas/sidebar/sidebar.js +4 -4
- package/dist/features/cue-canvas/sidebar/sidebar.js.map +1 -1
- package/dist/features/cue-canvas/toolbar/toolbar.js +21 -17
- package/dist/features/cue-canvas/toolbar/toolbar.js.map +1 -1
- package/dist/features/cue-canvas/toolbar/whiteboard-toolbar.js +23 -13
- package/dist/features/cue-canvas/toolbar/whiteboard-toolbar.js.map +1 -1
- 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/journey/tracking-id/tracking-id-student.js +2 -2
- package/dist/features/journey/tracking-id/tracking-id-student.js.map +1 -1
- package/dist/features/milestone/create/api/milestone-config.js.map +1 -1
- package/dist/features/parent-dashboard/modals/trial-report/trial-report.js +1 -1
- package/dist/features/parent-dashboard/modals/trial-report/trial-report.js.map +1 -1
- package/dist/features/trial-session/api/trial-home.js +10 -16
- package/dist/features/trial-session/api/trial-home.js.map +1 -1
- package/dist/features/trial-session/api/trial-session-report.js +16 -0
- package/dist/features/trial-session/api/trial-session-report.js.map +1 -0
- package/dist/features/trial-session/api/trial-topics.js +9 -0
- package/dist/features/trial-session/api/trial-topics.js.map +1 -0
- package/dist/features/trial-session/comps/background-grid/background-grid-utils.js +62 -50
- package/dist/features/trial-session/comps/background-grid/background-grid-utils.js.map +1 -1
- package/dist/features/trial-session/comps/class-preference/class-preference-styled.js +5 -14
- package/dist/features/trial-session/comps/class-preference/class-preference-styled.js.map +1 -1
- package/dist/features/trial-session/comps/class-preference/class-preference.js +55 -53
- package/dist/features/trial-session/comps/class-preference/class-preference.js.map +1 -1
- package/dist/features/trial-session/comps/communication-slide/communication-slide-constants.js +3 -2
- package/dist/features/trial-session/comps/communication-slide/communication-slide-constants.js.map +1 -1
- package/dist/features/trial-session/comps/confirmation-modal/hooks/use-confirmation-modal.js +27 -26
- package/dist/features/trial-session/comps/confirmation-modal/hooks/use-confirmation-modal.js.map +1 -1
- package/dist/features/trial-session/comps/learning-session/learning-session-styled.js +19 -18
- package/dist/features/trial-session/comps/learning-session/learning-session-styled.js.map +1 -1
- package/dist/features/trial-session/comps/learning-session/learning-session.js +34 -43
- package/dist/features/trial-session/comps/learning-session/learning-session.js.map +1 -1
- package/dist/features/trial-session/comps/navigation-bar/index.js +56 -58
- package/dist/features/trial-session/comps/navigation-bar/index.js.map +1 -1
- package/dist/features/trial-session/comps/offering-information/offering-information-constants.js +29 -6
- package/dist/features/trial-session/comps/offering-information/offering-information-constants.js.map +1 -1
- package/dist/features/trial-session/comps/offering-information/offering-information.js +74 -64
- package/dist/features/trial-session/comps/offering-information/offering-information.js.map +1 -1
- package/dist/features/trial-session/comps/school-goals/school-goals-styled.js +10 -9
- package/dist/features/trial-session/comps/school-goals/school-goals-styled.js.map +1 -1
- package/dist/features/trial-session/comps/school-goals/school-goals-view.js +40 -39
- package/dist/features/trial-session/comps/school-goals/school-goals-view.js.map +1 -1
- package/dist/features/trial-session/comps/school-goals/school-goals.js +39 -37
- package/dist/features/trial-session/comps/school-goals/school-goals.js.map +1 -1
- package/dist/features/trial-session/comps/session-insights/session-insights-styled.js +12 -20
- package/dist/features/trial-session/comps/session-insights/session-insights-styled.js.map +1 -1
- package/dist/features/trial-session/comps/session-insights/session-insights.js +64 -63
- package/dist/features/trial-session/comps/session-insights/session-insights.js.map +1 -1
- package/dist/features/trial-session/comps/session-overview/session-overview-styled.js +13 -13
- package/dist/features/trial-session/comps/session-overview/session-overview-styled.js.map +1 -1
- package/dist/features/trial-session/comps/session-overview/session-overview-utils.js +23 -4
- package/dist/features/trial-session/comps/session-overview/session-overview-utils.js.map +1 -1
- package/dist/features/trial-session/comps/session-overview/session-overview.js +20 -20
- package/dist/features/trial-session/comps/session-overview/session-overview.js.map +1 -1
- package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary-styled.js +61 -0
- package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary-styled.js.map +1 -0
- package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary-types.js +5 -0
- package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary-types.js.map +1 -0
- package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary-view.js +135 -0
- package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary-view.js.map +1 -0
- package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary.js +53 -0
- package/dist/features/trial-session/comps/session-progress-summary/session-progress-summary.js.map +1 -0
- package/dist/features/trial-session/comps/session-report/report-404/report-404.js +15 -16
- package/dist/features/trial-session/comps/session-report/report-404/report-404.js.map +1 -1
- package/dist/features/trial-session/comps/session-report/session-report.js +35 -33
- package/dist/features/trial-session/comps/session-report/session-report.js.map +1 -1
- package/dist/features/trial-session/comps/student-enrichment/student-enrichment-styled.js +9 -16
- package/dist/features/trial-session/comps/student-enrichment/student-enrichment-styled.js.map +1 -1
- package/dist/features/trial-session/comps/student-enrichment/student-enrichment.js +39 -37
- package/dist/features/trial-session/comps/student-enrichment/student-enrichment.js.map +1 -1
- package/dist/features/trial-session/comps/student-feedback/student-feedback-styled.js +10 -9
- package/dist/features/trial-session/comps/student-feedback/student-feedback-styled.js.map +1 -1
- package/dist/features/trial-session/comps/student-info/student-info-constants.js +35 -0
- package/dist/features/trial-session/comps/student-info/student-info-constants.js.map +1 -0
- package/dist/features/trial-session/comps/student-info/student-info-helpers.js +12 -0
- package/dist/features/trial-session/comps/student-info/student-info-helpers.js.map +1 -0
- package/dist/features/trial-session/comps/student-info/student-info-styled.js +26 -11
- package/dist/features/trial-session/comps/student-info/student-info-styled.js.map +1 -1
- package/dist/features/trial-session/comps/student-info/student-info.js +124 -78
- package/dist/features/trial-session/comps/student-info/student-info.js.map +1 -1
- package/dist/features/trial-session/comps/student-personalization/student-personalization-styled.js +3 -12
- package/dist/features/trial-session/comps/student-personalization/student-personalization-styled.js.map +1 -1
- package/dist/features/trial-session/comps/student-personalization/student-personalization.js +34 -33
- package/dist/features/trial-session/comps/student-personalization/student-personalization.js.map +1 -1
- package/dist/features/trial-session/comps/student-profile/student-profile.js +45 -44
- package/dist/features/trial-session/comps/student-profile/student-profile.js.map +1 -1
- package/dist/features/trial-session/comps/teacher-intro/teacher-intro.js +9 -8
- package/dist/features/trial-session/comps/teacher-intro/teacher-intro.js.map +1 -1
- package/dist/features/trial-session/comps/test-prep/test-prep-styled.js +11 -19
- package/dist/features/trial-session/comps/test-prep/test-prep-styled.js.map +1 -1
- package/dist/features/trial-session/comps/test-prep/test-prep.js +31 -29
- package/dist/features/trial-session/comps/test-prep/test-prep.js.map +1 -1
- package/dist/features/trial-session/comps/topic-selection/topic-selection-helpers.js +10 -0
- package/dist/features/trial-session/comps/topic-selection/topic-selection-helpers.js.map +1 -0
- package/dist/features/trial-session/comps/topic-selection/topic-selection-styled.js +42 -0
- package/dist/features/trial-session/comps/topic-selection/topic-selection-styled.js.map +1 -0
- package/dist/features/trial-session/comps/topic-selection/topic-selection.js +67 -0
- package/dist/features/trial-session/comps/topic-selection/topic-selection.js.map +1 -0
- package/dist/features/trial-session/comps/whiteboard/whiteboard-styled.js +21 -0
- package/dist/features/trial-session/comps/whiteboard/whiteboard-styled.js.map +1 -0
- package/dist/features/trial-session/comps/whiteboard/whiteboard.js +99 -0
- package/dist/features/trial-session/comps/whiteboard/whiteboard.js.map +1 -0
- package/dist/features/trial-session/comps/worksheet/worksheet.js +35 -33
- package/dist/features/trial-session/comps/worksheet/worksheet.js.map +1 -1
- package/dist/features/trial-session/context/trial-session-context.js +2 -0
- package/dist/features/trial-session/context/trial-session-context.js.map +1 -1
- package/dist/features/trial-session/helper.js +73 -66
- package/dist/features/trial-session/helper.js.map +1 -1
- package/dist/features/trial-session/hooks/use-trial-session-navigation.js +190 -158
- package/dist/features/trial-session/hooks/use-trial-session-navigation.js.map +1 -1
- package/dist/features/trial-session/right-panel/right-panel-styled.js +8 -8
- package/dist/features/trial-session/right-panel/right-panel-styled.js.map +1 -1
- package/dist/features/trial-session/right-panel/slide-components-map.js +42 -36
- package/dist/features/trial-session/right-panel/slide-components-map.js.map +1 -1
- package/dist/features/trial-session/trial-session-constants.js +22 -18
- package/dist/features/trial-session/trial-session-constants.js.map +1 -1
- package/dist/features/trial-session/trial-session-types.js.map +1 -1
- package/dist/features/trial-session/trial-session-view.js +87 -79
- package/dist/features/trial-session/trial-session-view.js.map +1 -1
- package/dist/features/trial-session/trial-session.js +66 -57
- package/dist/features/trial-session/trial-session.js.map +1 -1
- package/dist/features/ui/inputs/checkbox-input/checkbox-input.js +21 -21
- package/dist/features/ui/inputs/checkbox-input/checkbox-input.js.map +1 -1
- package/dist/features/ui/inputs/checkbox-input-list/checkbox-input-list.js +12 -12
- package/dist/features/ui/inputs/checkbox-input-list/checkbox-input-list.js.map +1 -1
- package/dist/features/ui/swipeable-carousel/swipeable-carousel.js +23 -23
- package/dist/features/ui/swipeable-component/swipeable-component.js +15 -15
- package/dist/features/ui/swipeable-component/swipeable-component.js.map +1 -1
- package/dist/features/ui/theme/clrs.js +1 -0
- package/dist/features/ui/theme/clrs.js.map +1 -1
- package/dist/features/worksheet/worksheet/mocks/activity.js +6 -0
- package/dist/features/worksheet/worksheet/mocks/activity.js.map +1 -0
- package/dist/features/worksheet/worksheet/mocks/signed-requests.js +5 -0
- package/dist/features/worksheet/worksheet/mocks/signed-requests.js.map +1 -0
- package/dist/features/worksheet/worksheet/stories/use-canvas-sync-broker-story.js +57 -0
- package/dist/features/worksheet/worksheet/stories/use-canvas-sync-broker-story.js.map +1 -0
- package/dist/features/worksheet/worksheet/stories/worksheet-story-container.js +263 -0
- package/dist/features/worksheet/worksheet/stories/worksheet-story-container.js.map +1 -0
- package/dist/features/worksheet/worksheet/stories/worksheet-student.js +177 -0
- package/dist/features/worksheet/worksheet/stories/worksheet-student.js.map +1 -0
- package/dist/features/worksheet/worksheet/stories/worksheet-teacher.js +268 -0
- package/dist/features/worksheet/worksheet/stories/worksheet-teacher.js.map +1 -0
- package/dist/features/worksheet/worksheet/worksheet-helpers.js +38 -37
- package/dist/features/worksheet/worksheet/worksheet-helpers.js.map +1 -1
- package/dist/index.d.ts +15 -14
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,36 +1,38 @@
|
|
|
1
1
|
import { PLA_ANALYTICS_WHITELIST_EVENTS as T } from "../auth/pla-signup/pla-analytics-events.js";
|
|
2
2
|
import { GAME_LAUNCHER_ANALYTICS_WHITELIST_EVENTS as E } from "../circle-games/game-launcher/game-launcher-analytics-events.js";
|
|
3
3
|
import { WEBVIEW_ANALYTICS_WHITELIST_EVENTS as I } from "../circle-games/games/web-view/web-view-analytics-events.js";
|
|
4
|
-
import { LEADERBOARD_ANALYTICS_WHITELIST_EVENTS as
|
|
5
|
-
import { HOMEWORK_ANALYTICS_WHITELIST_EVENTS as
|
|
6
|
-
import { RESOURCE_ASSIGN_ANALYTICS_WHITELIST_EVENTS as
|
|
7
|
-
import { TESTS_CREATION_ANALYTICS_WHITELIST_EVENTS as
|
|
4
|
+
import { LEADERBOARD_ANALYTICS_WHITELIST_EVENTS as _ } from "../circle-games/leaderboard/leaderboard-analytics-events.js";
|
|
5
|
+
import { HOMEWORK_ANALYTICS_WHITELIST_EVENTS as S } from "../homework/homework-analytics-events.js";
|
|
6
|
+
import { RESOURCE_ASSIGN_ANALYTICS_WHITELIST_EVENTS as A } from "../milestone/milestone-resources/resources-assign/resource-assign-analytics-events.js";
|
|
7
|
+
import { TESTS_CREATION_ANALYTICS_WHITELIST_EVENTS as L } from "../milestone/milestone-tests/tests-creation/tests-creation-analytics-events.js";
|
|
8
8
|
import { PUZZLE_ANALYTICS_WHITELIST_EVENTS as N } from "../puzzles/puzzle-analytics-events.js";
|
|
9
9
|
import { SHEETS_ANALYTICS_WHITELIST_EVENTS as o } from "../sheets/sheets-analytics-events.js";
|
|
10
10
|
import { DAILY_TIMELINE_WHITELIST_EVENTS as r } from "../timeline/daily-timeline/daily-timeline-events.js";
|
|
11
11
|
import { MONTHLY_REPORT_WHITELIST_EVENTS as m } from "../timeline/monthly-timeline/monthly-report/monthly-report-events.js";
|
|
12
12
|
import { TRIAL_CIRCLE_GAME_ANALYTICS_WHITELIST_EVENTS as H } from "../trial-session/comps/trial-circle-game/trial-circle-game-analytics-events.js";
|
|
13
13
|
import { PLATFORM_WHITELIST_EVENTS_STUDENT as W } from "./platform-events-student.js";
|
|
14
|
-
import { PLATFORM_WHITELIST_EVENTS_TEACHER as
|
|
15
|
-
|
|
14
|
+
import { PLATFORM_WHITELIST_EVENTS_TEACHER as C } from "./platform-events-teacher.js";
|
|
15
|
+
import { ABOUT_GAME_ACTIVITIES_ANALYTICS_WHITELIST_EVENTS as V } from "../circle-games/about-game-activities/about-game-activities-analytics-events.js";
|
|
16
|
+
const c = {
|
|
16
17
|
//* Global/Platform specific events
|
|
17
18
|
...W,
|
|
18
|
-
...
|
|
19
|
+
...C,
|
|
19
20
|
//* Feature specific events
|
|
20
21
|
...E,
|
|
21
|
-
...S,
|
|
22
|
-
...L,
|
|
23
|
-
...o,
|
|
24
|
-
...A,
|
|
25
22
|
..._,
|
|
23
|
+
...A,
|
|
24
|
+
...o,
|
|
25
|
+
...L,
|
|
26
|
+
...S,
|
|
26
27
|
...I,
|
|
27
28
|
...N,
|
|
28
29
|
...T,
|
|
29
30
|
...r,
|
|
30
31
|
...m,
|
|
31
|
-
...H
|
|
32
|
+
...H,
|
|
33
|
+
...V
|
|
32
34
|
};
|
|
33
35
|
export {
|
|
34
|
-
|
|
36
|
+
c as WHITELIST_EVENTS
|
|
35
37
|
};
|
|
36
38
|
//# sourceMappingURL=whitelist-events.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"whitelist-events.js","sources":["../../../src/features/analytics-events/whitelist-events.ts"],"sourcesContent":["import type { PLUGIN_NAME } from '@cuemath/analytics-v2/dist/constants';\n\nimport { PLA_ANALYTICS_WHITELIST_EVENTS } from '../auth/pla-signup/pla-analytics-events';\nimport { GAME_LAUNCHER_ANALYTICS_WHITELIST_EVENTS } from '../circle-games/game-launcher/game-launcher-analytics-events';\nimport { WEBVIEW_ANALYTICS_WHITELIST_EVENTS } from '../circle-games/games/web-view/web-view-analytics-events';\nimport { LEADERBOARD_ANALYTICS_WHITELIST_EVENTS } from '../circle-games/leaderboard/leaderboard-analytics-events';\nimport { HOMEWORK_ANALYTICS_WHITELIST_EVENTS } from '../homework/homework-analytics-events';\nimport { RESOURCE_ASSIGN_ANALYTICS_WHITELIST_EVENTS } from '../milestone/milestone-resources/resources-assign/resource-assign-analytics-events';\nimport { TESTS_CREATION_ANALYTICS_WHITELIST_EVENTS } from '../milestone/milestone-tests/tests-creation/tests-creation-analytics-events';\nimport { PUZZLE_ANALYTICS_WHITELIST_EVENTS } from '../puzzles/puzzle-analytics-events';\nimport { SHEETS_ANALYTICS_WHITELIST_EVENTS } from '../sheets/sheets-analytics-events';\nimport { DAILY_TIMELINE_WHITELIST_EVENTS } from '../timeline/daily-timeline/daily-timeline-events';\nimport { MONTHLY_REPORT_WHITELIST_EVENTS } from '../timeline/monthly-timeline/monthly-report/monthly-report-events';\nimport { TRIAL_CIRCLE_GAME_ANALYTICS_WHITELIST_EVENTS } from '../trial-session/comps/trial-circle-game/trial-circle-game-analytics-events';\nimport { PLATFORM_WHITELIST_EVENTS_STUDENT } from './platform-events-student';\nimport { PLATFORM_WHITELIST_EVENTS_TEACHER } from './platform-events-teacher';\n\n/**\n ** Feature specific & Global/Platform specific events are imported here\n */\nconst WHITELIST_EVENTS: Record<string, PLUGIN_NAME[]> = {\n //* Global/Platform specific events\n ...PLATFORM_WHITELIST_EVENTS_STUDENT,\n ...PLATFORM_WHITELIST_EVENTS_TEACHER,\n\n //* Feature specific events\n ...GAME_LAUNCHER_ANALYTICS_WHITELIST_EVENTS,\n ...LEADERBOARD_ANALYTICS_WHITELIST_EVENTS,\n ...RESOURCE_ASSIGN_ANALYTICS_WHITELIST_EVENTS,\n ...SHEETS_ANALYTICS_WHITELIST_EVENTS,\n ...TESTS_CREATION_ANALYTICS_WHITELIST_EVENTS,\n ...HOMEWORK_ANALYTICS_WHITELIST_EVENTS,\n ...WEBVIEW_ANALYTICS_WHITELIST_EVENTS,\n ...PUZZLE_ANALYTICS_WHITELIST_EVENTS,\n ...PLA_ANALYTICS_WHITELIST_EVENTS,\n ...DAILY_TIMELINE_WHITELIST_EVENTS,\n ...MONTHLY_REPORT_WHITELIST_EVENTS,\n ...TRIAL_CIRCLE_GAME_ANALYTICS_WHITELIST_EVENTS,\n};\n\nexport { WHITELIST_EVENTS };\n"],"names":["WHITELIST_EVENTS","PLATFORM_WHITELIST_EVENTS_STUDENT","PLATFORM_WHITELIST_EVENTS_TEACHER","GAME_LAUNCHER_ANALYTICS_WHITELIST_EVENTS","LEADERBOARD_ANALYTICS_WHITELIST_EVENTS","RESOURCE_ASSIGN_ANALYTICS_WHITELIST_EVENTS","SHEETS_ANALYTICS_WHITELIST_EVENTS","TESTS_CREATION_ANALYTICS_WHITELIST_EVENTS","HOMEWORK_ANALYTICS_WHITELIST_EVENTS","WEBVIEW_ANALYTICS_WHITELIST_EVENTS","PUZZLE_ANALYTICS_WHITELIST_EVENTS","PLA_ANALYTICS_WHITELIST_EVENTS","DAILY_TIMELINE_WHITELIST_EVENTS","MONTHLY_REPORT_WHITELIST_EVENTS","TRIAL_CIRCLE_GAME_ANALYTICS_WHITELIST_EVENTS"],"mappings":"
|
|
1
|
+
{"version":3,"file":"whitelist-events.js","sources":["../../../src/features/analytics-events/whitelist-events.ts"],"sourcesContent":["import type { PLUGIN_NAME } from '@cuemath/analytics-v2/dist/constants';\n\nimport { PLA_ANALYTICS_WHITELIST_EVENTS } from '../auth/pla-signup/pla-analytics-events';\nimport { GAME_LAUNCHER_ANALYTICS_WHITELIST_EVENTS } from '../circle-games/game-launcher/game-launcher-analytics-events';\nimport { WEBVIEW_ANALYTICS_WHITELIST_EVENTS } from '../circle-games/games/web-view/web-view-analytics-events';\nimport { LEADERBOARD_ANALYTICS_WHITELIST_EVENTS } from '../circle-games/leaderboard/leaderboard-analytics-events';\nimport { HOMEWORK_ANALYTICS_WHITELIST_EVENTS } from '../homework/homework-analytics-events';\nimport { RESOURCE_ASSIGN_ANALYTICS_WHITELIST_EVENTS } from '../milestone/milestone-resources/resources-assign/resource-assign-analytics-events';\nimport { TESTS_CREATION_ANALYTICS_WHITELIST_EVENTS } from '../milestone/milestone-tests/tests-creation/tests-creation-analytics-events';\nimport { PUZZLE_ANALYTICS_WHITELIST_EVENTS } from '../puzzles/puzzle-analytics-events';\nimport { SHEETS_ANALYTICS_WHITELIST_EVENTS } from '../sheets/sheets-analytics-events';\nimport { DAILY_TIMELINE_WHITELIST_EVENTS } from '../timeline/daily-timeline/daily-timeline-events';\nimport { MONTHLY_REPORT_WHITELIST_EVENTS } from '../timeline/monthly-timeline/monthly-report/monthly-report-events';\nimport { TRIAL_CIRCLE_GAME_ANALYTICS_WHITELIST_EVENTS } from '../trial-session/comps/trial-circle-game/trial-circle-game-analytics-events';\nimport { PLATFORM_WHITELIST_EVENTS_STUDENT } from './platform-events-student';\nimport { PLATFORM_WHITELIST_EVENTS_TEACHER } from './platform-events-teacher';\nimport { ABOUT_GAME_ACTIVITIES_ANALYTICS_WHITELIST_EVENTS } from '../circle-games/about-game-activities/about-game-activities-analytics-events';\n\n/**\n ** Feature specific & Global/Platform specific events are imported here\n */\nconst WHITELIST_EVENTS: Record<string, PLUGIN_NAME[]> = {\n //* Global/Platform specific events\n ...PLATFORM_WHITELIST_EVENTS_STUDENT,\n ...PLATFORM_WHITELIST_EVENTS_TEACHER,\n\n //* Feature specific events\n ...GAME_LAUNCHER_ANALYTICS_WHITELIST_EVENTS,\n ...LEADERBOARD_ANALYTICS_WHITELIST_EVENTS,\n ...RESOURCE_ASSIGN_ANALYTICS_WHITELIST_EVENTS,\n ...SHEETS_ANALYTICS_WHITELIST_EVENTS,\n ...TESTS_CREATION_ANALYTICS_WHITELIST_EVENTS,\n ...HOMEWORK_ANALYTICS_WHITELIST_EVENTS,\n ...WEBVIEW_ANALYTICS_WHITELIST_EVENTS,\n ...PUZZLE_ANALYTICS_WHITELIST_EVENTS,\n ...PLA_ANALYTICS_WHITELIST_EVENTS,\n ...DAILY_TIMELINE_WHITELIST_EVENTS,\n ...MONTHLY_REPORT_WHITELIST_EVENTS,\n ...TRIAL_CIRCLE_GAME_ANALYTICS_WHITELIST_EVENTS,\n ...ABOUT_GAME_ACTIVITIES_ANALYTICS_WHITELIST_EVENTS,\n};\n\nexport { WHITELIST_EVENTS };\n"],"names":["WHITELIST_EVENTS","PLATFORM_WHITELIST_EVENTS_STUDENT","PLATFORM_WHITELIST_EVENTS_TEACHER","GAME_LAUNCHER_ANALYTICS_WHITELIST_EVENTS","LEADERBOARD_ANALYTICS_WHITELIST_EVENTS","RESOURCE_ASSIGN_ANALYTICS_WHITELIST_EVENTS","SHEETS_ANALYTICS_WHITELIST_EVENTS","TESTS_CREATION_ANALYTICS_WHITELIST_EVENTS","HOMEWORK_ANALYTICS_WHITELIST_EVENTS","WEBVIEW_ANALYTICS_WHITELIST_EVENTS","PUZZLE_ANALYTICS_WHITELIST_EVENTS","PLA_ANALYTICS_WHITELIST_EVENTS","DAILY_TIMELINE_WHITELIST_EVENTS","MONTHLY_REPORT_WHITELIST_EVENTS","TRIAL_CIRCLE_GAME_ANALYTICS_WHITELIST_EVENTS","ABOUT_GAME_ACTIVITIES_ANALYTICS_WHITELIST_EVENTS"],"mappings":";;;;;;;;;;;;;;;AAqBA,MAAMA,IAAkD;AAAA;AAAA,EAEtD,GAAGC;AAAA,EACH,GAAGC;AAAA;AAAA,EAGH,GAAGC;AAAA,EACH,GAAGC;AAAA,EACH,GAAGC;AAAA,EACH,GAAGC;AAAA,EACH,GAAGC;AAAA,EACH,GAAGC;AAAA,EACH,GAAGC;AAAA,EACH,GAAGC;AAAA,EACH,GAAGC;AAAA,EACH,GAAGC;AAAA,EACH,GAAGC;AAAA,EACH,GAAGC;AAAA,EACH,GAAGC;AACL;"}
|
package/dist/features/circle-games/about-game-activities/about-game-activities-analytics-events.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PLUGINS as _ } from "../../../node_modules/@cuemath/analytics-v2/dist/constants.js";
|
|
2
|
+
var r = /* @__PURE__ */ ((t) => (t.DAILY_PRACTICE_TOUR_INITIATED = "daily_practice_tour_initiated", t.DAILY_PRACTICE_TOUR_START = "daily_practice_tour_start", t))(r || {});
|
|
3
|
+
const a = {
|
|
4
|
+
daily_practice_tour_initiated: [_.MIXPANEL],
|
|
5
|
+
daily_practice_tour_start: [_.MIXPANEL]
|
|
6
|
+
};
|
|
7
|
+
export {
|
|
8
|
+
r as ABOUT_GAME_ACTIVITIES_ANALYTICS_EVENTS,
|
|
9
|
+
a as ABOUT_GAME_ACTIVITIES_ANALYTICS_WHITELIST_EVENTS
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=about-game-activities-analytics-events.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"about-game-activities-analytics-events.js","sources":["../../../../src/features/circle-games/about-game-activities/about-game-activities-analytics-events.ts"],"sourcesContent":["import { PLUGINS } from '@cuemath/analytics-v2/dist/constants';\n\nexport enum ABOUT_GAME_ACTIVITIES_ANALYTICS_EVENTS {\n DAILY_PRACTICE_TOUR_INITIATED = 'daily_practice_tour_initiated',\n DAILY_PRACTICE_TOUR_START = 'daily_practice_tour_start',\n}\n\nexport const ABOUT_GAME_ACTIVITIES_ANALYTICS_WHITELIST_EVENTS = {\n [ABOUT_GAME_ACTIVITIES_ANALYTICS_EVENTS.DAILY_PRACTICE_TOUR_INITIATED]: [PLUGINS.MIXPANEL],\n [ABOUT_GAME_ACTIVITIES_ANALYTICS_EVENTS.DAILY_PRACTICE_TOUR_START]: [PLUGINS.MIXPANEL],\n};\n"],"names":["ABOUT_GAME_ACTIVITIES_ANALYTICS_EVENTS","ABOUT_GAME_ACTIVITIES_ANALYTICS_WHITELIST_EVENTS","PLUGINS"],"mappings":";AAEY,IAAAA,sBAAAA,OACVA,EAAA,gCAAgC,iCAChCA,EAAA,4BAA4B,6BAFlBA,IAAAA,KAAA,CAAA,CAAA;AAKL,MAAMC,IAAmD;AAAA,EAC7D,+BAAuE,CAACC,EAAQ,QAAQ;AAAA,EACxF,2BAAmE,CAACA,EAAQ,QAAQ;AACvF;"}
|
|
@@ -37,24 +37,9 @@ const e = "https://cuemath-circle.s3.ap-southeast-1.amazonaws.com/assets/journey
|
|
|
37
37
|
isVideoCircular: !0,
|
|
38
38
|
footerText: "Apply concepts learnt in school to answer questions. This makes you faster at solving math problems in your head."
|
|
39
39
|
}
|
|
40
|
-
], a = (t) => [
|
|
41
|
-
{
|
|
42
|
-
headerText: `Master multiplication tables
|
|
43
|
-
through practice!`,
|
|
44
|
-
videoUrl: e + (t ? "step-1-mobile.mp4" : "step-1-desktop.mp4"),
|
|
45
|
-
isVideoCircular: !1,
|
|
46
|
-
footerText: "Practice tables to improve your mental math speed"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
headerText: "Tables Practice",
|
|
50
|
-
videoUrl: e + "step-4.mp4",
|
|
51
|
-
isVideoCircular: !0,
|
|
52
|
-
footerText: "Practice multiplication tables to build fluency and speed. The more you practice, the faster you get!"
|
|
53
|
-
}
|
|
54
40
|
];
|
|
55
41
|
export {
|
|
56
42
|
o as getAboutGameActivitiesSteps,
|
|
57
|
-
s as getAboutGameActivitiesStepsForKTo1
|
|
58
|
-
a as getAboutTablesSteps
|
|
43
|
+
s as getAboutGameActivitiesStepsForKTo1
|
|
59
44
|
};
|
|
60
45
|
//# sourceMappingURL=about-game-activities-constants.js.map
|
package/dist/features/circle-games/about-game-activities/about-game-activities-constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"about-game-activities-constants.js","sources":["../../../../src/features/circle-games/about-game-activities/about-game-activities-constants.ts"],"sourcesContent":["import type { Step } from './about-game-activities-types';\n\nconst baseUrl = 'https://cuemath-circle.s3.ap-southeast-1.amazonaws.com/assets/journey-videos/';\n\nexport const getAboutGameActivitiesSteps = (isTouchDevice: boolean): Step[] => [\n {\n headerText: 'Get MathFit by doing\\n5 fun math activities every day!',\n videoUrl: baseUrl + (isTouchDevice ? 'step-1-mobile.mp4' : 'step-1-desktop.mp4'),\n isVideoCircular: false,\n footerText: 'The activities are of 3 types...',\n },\n {\n headerText: '1. Strategy Game',\n videoUrl: baseUrl + 'step-2.mp4',\n isVideoCircular: true,\n footerText:\n 'Play 3 rounds against someone else-win the most to win the match! This helps you think ahead and make smart moves.',\n },\n {\n headerText: '2. Logic Puzzle',\n videoUrl: baseUrl + 'step-3.mp4',\n isVideoCircular: true,\n footerText:\n 'Explore, experiment, and solve tricky puzzles. This helps you think out of the box and makes you a better problem solver.',\n },\n {\n headerText: '3. Mental Math',\n videoUrl: baseUrl + 'step-4.mp4',\n isVideoCircular: true,\n footerText:\n 'Apply concepts learnt in school to answer questions. This makes you faster at solving math problems in your head.',\n },\n];\n\nexport const getAboutGameActivitiesStepsForKTo1 = (isTouchDevice: boolean): Step[] => [\n {\n headerText: 'Get MathFit by doing\\n5 fun math activities every day!',\n videoUrl: baseUrl + (isTouchDevice ? 'step-1-mobile.mp4' : 'step-1-desktop.mp4'),\n isVideoCircular: false,\n },\n {\n headerText: 'Mental Math',\n videoUrl: baseUrl + 'step-4.mp4',\n isVideoCircular: true,\n footerText:\n 'Apply concepts learnt in school to answer questions. This makes you faster at solving math problems in your head.',\n },\n];\n
|
|
1
|
+
{"version":3,"file":"about-game-activities-constants.js","sources":["../../../../src/features/circle-games/about-game-activities/about-game-activities-constants.ts"],"sourcesContent":["import type { Step } from './about-game-activities-types';\n\nconst baseUrl = 'https://cuemath-circle.s3.ap-southeast-1.amazonaws.com/assets/journey-videos/';\n\nexport const getAboutGameActivitiesSteps = (isTouchDevice: boolean): Step[] => [\n {\n headerText: 'Get MathFit by doing\\n5 fun math activities every day!',\n videoUrl: baseUrl + (isTouchDevice ? 'step-1-mobile.mp4' : 'step-1-desktop.mp4'),\n isVideoCircular: false,\n footerText: 'The activities are of 3 types...',\n },\n {\n headerText: '1. Strategy Game',\n videoUrl: baseUrl + 'step-2.mp4',\n isVideoCircular: true,\n footerText:\n 'Play 3 rounds against someone else-win the most to win the match! This helps you think ahead and make smart moves.',\n },\n {\n headerText: '2. Logic Puzzle',\n videoUrl: baseUrl + 'step-3.mp4',\n isVideoCircular: true,\n footerText:\n 'Explore, experiment, and solve tricky puzzles. This helps you think out of the box and makes you a better problem solver.',\n },\n {\n headerText: '3. Mental Math',\n videoUrl: baseUrl + 'step-4.mp4',\n isVideoCircular: true,\n footerText:\n 'Apply concepts learnt in school to answer questions. This makes you faster at solving math problems in your head.',\n },\n];\n\nexport const getAboutGameActivitiesStepsForKTo1 = (isTouchDevice: boolean): Step[] => [\n {\n headerText: 'Get MathFit by doing\\n5 fun math activities every day!',\n videoUrl: baseUrl + (isTouchDevice ? 'step-1-mobile.mp4' : 'step-1-desktop.mp4'),\n isVideoCircular: false,\n },\n {\n headerText: 'Mental Math',\n videoUrl: baseUrl + 'step-4.mp4',\n isVideoCircular: true,\n footerText:\n 'Apply concepts learnt in school to answer questions. This makes you faster at solving math problems in your head.',\n },\n];\n"],"names":["baseUrl","getAboutGameActivitiesSteps","isTouchDevice","getAboutGameActivitiesStepsForKTo1"],"mappings":"AAEA,MAAMA,IAAU,iFAEHC,IAA8B,CAACC,MAAmC;AAAA,EAC7E;AAAA,IACE,YAAY;AAAA;AAAA,IACZ,UAAUF,KAAWE,IAAgB,sBAAsB;AAAA,IAC3D,iBAAiB;AAAA,IACjB,YAAY;AAAA,EACd;AAAA,EACA;AAAA,IACE,YAAY;AAAA,IACZ,UAAUF,IAAU;AAAA,IACpB,iBAAiB;AAAA,IACjB,YACE;AAAA,EACJ;AAAA,EACA;AAAA,IACE,YAAY;AAAA,IACZ,UAAUA,IAAU;AAAA,IACpB,iBAAiB;AAAA,IACjB,YACE;AAAA,EACJ;AAAA,EACA;AAAA,IACE,YAAY;AAAA,IACZ,UAAUA,IAAU;AAAA,IACpB,iBAAiB;AAAA,IACjB,YACE;AAAA,EACJ;AACF,GAEaG,IAAqC,CAACD,MAAmC;AAAA,EACpF;AAAA,IACE,YAAY;AAAA;AAAA,IACZ,UAAUF,KAAWE,IAAgB,sBAAsB;AAAA,IAC3D,iBAAiB;AAAA,EACnB;AAAA,EACA;AAAA,IACE,YAAY;AAAA,IACZ,UAAUF,IAAU;AAAA,IACpB,iBAAiB;AAAA,IACjB,YACE;AAAA,EACJ;AACF;"}
|
|
@@ -1,84 +1,93 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { memo as N, useState as
|
|
3
|
-
import { useTheme as
|
|
4
|
-
import
|
|
5
|
-
import { useGetTrackedViews as
|
|
6
|
-
import { TRACKING_ID_STUDENT as
|
|
7
|
-
import { useJourney as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
1
|
+
import { jsx as t, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import { memo as N, useState as b, useMemo as $, useCallback as f, useEffect as S } from "react";
|
|
3
|
+
import { useTheme as y } from "styled-components";
|
|
4
|
+
import O from "../../../assets/line-icons/icons/back2.js";
|
|
5
|
+
import { useGetTrackedViews as B } from "../../journey/hooks/use-get-tracked-views.js";
|
|
6
|
+
import { TRACKING_ID_STUDENT as h } from "../../journey/tracking-id/tracking-id-student.js";
|
|
7
|
+
import { useJourney as U } from "../../journey/use-journey/use-journey.js";
|
|
8
|
+
import L from "../../ui/buttons/button/button.js";
|
|
9
|
+
import F from "../../ui/buttons/icon-button/icon-button.js";
|
|
10
10
|
import M from "../../ui/separator/separator.js";
|
|
11
|
-
import
|
|
11
|
+
import _ from "../../ui/text/text.js";
|
|
12
12
|
import { ArcContainer as R } from "../comps/arc-container/arc-container.js";
|
|
13
|
-
import {
|
|
14
|
-
import { Wrapper as
|
|
15
|
-
import { EDeviceType as
|
|
16
|
-
import { useCircleSounds as
|
|
13
|
+
import { getAboutGameActivitiesStepsForKTo1 as H, getAboutGameActivitiesSteps as P } from "./about-game-activities-constants.js";
|
|
14
|
+
import { Wrapper as Y, ContentContainer as z, VideoContainer as D, Video as W, Header as j, Footer as w, NavigationContainer as J } from "./about-game-activities-styled.js";
|
|
15
|
+
import { EDeviceType as K } from "../../ui/theme/constants.js";
|
|
16
|
+
import { useCircleSounds as q } from "../hooks/use-circle-sounds/use-circle-sounds.js";
|
|
17
|
+
import { useUIContext as Q } from "../../ui/context/context.js";
|
|
18
|
+
import { ABOUT_GAME_ACTIVITIES_ANALYTICS_EVENTS as E } from "./about-game-activities-analytics-events.js";
|
|
17
19
|
const v = N(
|
|
18
|
-
({ show:
|
|
19
|
-
const { device:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}, [
|
|
27
|
-
|
|
20
|
+
({ show: r = !1, isGradeKTo1: A = !1, onDismiss: a }) => {
|
|
21
|
+
const { device: k } = y(), d = k <= K.TABLET, [e, m] = b(0), { trackView: T } = U(), x = B(), { playButtonSound: I } = q(), { onEvent: c } = Q(), i = x.includes(
|
|
22
|
+
h.INFO_ABOUT_GAME_ACTIVITIES
|
|
23
|
+
), [g, u] = b(r), s = $(
|
|
24
|
+
() => A ? H(d) : P(d),
|
|
25
|
+
[d, A]
|
|
26
|
+
), C = e === 0, n = e === s.length - 1, o = s[e], p = f(() => {
|
|
27
|
+
u(!1), I(), a == null || a();
|
|
28
|
+
}, [a, I]), V = f(() => {
|
|
29
|
+
e > 0 && m(e - 1);
|
|
30
|
+
}, [e]), G = f(() => {
|
|
31
|
+
e < s.length - 1 && m(e + 1), n && (i || (T(h.INFO_ABOUT_GAME_ACTIVITIES), c(E.DAILY_PRACTICE_TOUR_START, {})), p());
|
|
28
32
|
}, [
|
|
29
|
-
|
|
30
|
-
|
|
33
|
+
e,
|
|
34
|
+
s.length,
|
|
35
|
+
n,
|
|
31
36
|
i,
|
|
32
|
-
u,
|
|
33
37
|
p,
|
|
34
|
-
|
|
35
|
-
|
|
38
|
+
T,
|
|
39
|
+
c
|
|
36
40
|
]);
|
|
37
|
-
return
|
|
38
|
-
|
|
39
|
-
}, [
|
|
41
|
+
return S(() => {
|
|
42
|
+
r ? (u(!0), m(0)) : u(!1);
|
|
43
|
+
}, [r]), S(() => {
|
|
44
|
+
r && !i && c(E.DAILY_PRACTICE_TOUR_INITIATED, {});
|
|
45
|
+
}, [r, i, c]), !o || !r ? null : g && /* @__PURE__ */ t(
|
|
40
46
|
R,
|
|
41
47
|
{
|
|
42
|
-
onClose:
|
|
48
|
+
onClose: i && r ? p : void 0,
|
|
43
49
|
zIndex: 10,
|
|
44
50
|
contentContainerHeight: "calc(100% - 128px)",
|
|
45
|
-
children: /* @__PURE__ */
|
|
46
|
-
/* @__PURE__ */
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
-
|
|
49
|
-
|
|
51
|
+
children: /* @__PURE__ */ l(Y, { children: [
|
|
52
|
+
/* @__PURE__ */ l(z, { children: [
|
|
53
|
+
/* @__PURE__ */ t(D, { $isVideoCircular: o.isVideoCircular, children: /* @__PURE__ */ l(W, { playsInline: !0, autoPlay: !0, loop: !0, muted: !0, children: [
|
|
54
|
+
/* @__PURE__ */ t("source", { src: o.videoUrl, type: "video/mp4" }),
|
|
55
|
+
"Your browser does not support the video tag."
|
|
56
|
+
] }, e) }),
|
|
57
|
+
/* @__PURE__ */ t(j, { children: /* @__PURE__ */ t(
|
|
58
|
+
_,
|
|
50
59
|
{
|
|
51
60
|
$renderAs: "ah4-bold",
|
|
52
61
|
$renderOnMobileAs: "ab1-black",
|
|
53
62
|
$color: "WHITE",
|
|
54
63
|
$align: "center",
|
|
55
|
-
children:
|
|
64
|
+
children: o.headerText
|
|
56
65
|
}
|
|
57
66
|
) }),
|
|
58
|
-
/* @__PURE__ */
|
|
59
|
-
/* @__PURE__ */
|
|
67
|
+
/* @__PURE__ */ t(M, { height: 20 }),
|
|
68
|
+
/* @__PURE__ */ t(w, { children: o.footerText && /* @__PURE__ */ t(_, { $renderAs: "ub1", $renderOnMobileAs: "ub2", $color: "WHITE_T_87", $align: "center", children: o.footerText }) })
|
|
60
69
|
] }),
|
|
61
|
-
/* @__PURE__ */
|
|
62
|
-
!
|
|
63
|
-
|
|
70
|
+
/* @__PURE__ */ l(J, { $isFirstStep: C, children: [
|
|
71
|
+
!C && /* @__PURE__ */ t(
|
|
72
|
+
F,
|
|
64
73
|
{
|
|
65
|
-
Icon:
|
|
66
|
-
onClick:
|
|
74
|
+
Icon: O,
|
|
75
|
+
onClick: V,
|
|
67
76
|
disabled: !1,
|
|
68
77
|
size: "small",
|
|
69
78
|
analyticsLabel: "previous-step",
|
|
70
79
|
renderAs: "black-dark"
|
|
71
80
|
}
|
|
72
81
|
),
|
|
73
|
-
/* @__PURE__ */
|
|
74
|
-
|
|
82
|
+
/* @__PURE__ */ t(
|
|
83
|
+
L,
|
|
75
84
|
{
|
|
76
|
-
label:
|
|
85
|
+
label: n ? "Get Started" : "Next",
|
|
77
86
|
onClick: G,
|
|
78
87
|
disabled: !1,
|
|
79
88
|
size: "small",
|
|
80
|
-
analyticsLabel:
|
|
81
|
-
renderAs:
|
|
89
|
+
analyticsLabel: n ? "get-started" : "next-step",
|
|
90
|
+
renderAs: n ? "secondary-dark" : "black-dark"
|
|
82
91
|
}
|
|
83
92
|
)
|
|
84
93
|
] })
|
|
@@ -88,8 +97,8 @@ const v = N(
|
|
|
88
97
|
}
|
|
89
98
|
);
|
|
90
99
|
v.displayName = "AboutGameActivities";
|
|
91
|
-
const
|
|
100
|
+
const Te = v;
|
|
92
101
|
export {
|
|
93
|
-
|
|
102
|
+
Te as default
|
|
94
103
|
};
|
|
95
104
|
//# sourceMappingURL=about-game-activities.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"about-game-activities.js","sources":["../../../../src/features/circle-games/about-game-activities/about-game-activities.tsx"],"sourcesContent":["import { useState, useCallback, memo, useMemo, useEffect, type FC } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport BackIcon from '../../../assets/line-icons/icons/back2';\nimport { useGetTrackedViews } from '../../journey/hooks/use-get-tracked-views';\nimport { TRACKING_ID_STUDENT } from '../../journey/tracking-id/tracking-id-student';\nimport { useJourney } from '../../journey/use-journey/use-journey';\nimport Button from '../../ui/buttons/button/button';\nimport IconButton from '../../ui/buttons/icon-button/icon-button';\nimport Separator from '../../ui/separator/separator';\nimport Text from '../../ui/text/text';\nimport { ArcContainer } from '../comps/arc-container/arc-container';\nimport {\n getAboutGameActivitiesSteps,\n getAboutGameActivitiesStepsForKTo1,\n
|
|
1
|
+
{"version":3,"file":"about-game-activities.js","sources":["../../../../src/features/circle-games/about-game-activities/about-game-activities.tsx"],"sourcesContent":["import { useState, useCallback, memo, useMemo, useEffect, type FC } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport BackIcon from '../../../assets/line-icons/icons/back2';\nimport { useGetTrackedViews } from '../../journey/hooks/use-get-tracked-views';\nimport { TRACKING_ID_STUDENT } from '../../journey/tracking-id/tracking-id-student';\nimport { useJourney } from '../../journey/use-journey/use-journey';\nimport Button from '../../ui/buttons/button/button';\nimport IconButton from '../../ui/buttons/icon-button/icon-button';\nimport Separator from '../../ui/separator/separator';\nimport Text from '../../ui/text/text';\nimport { ArcContainer } from '../comps/arc-container/arc-container';\nimport {\n getAboutGameActivitiesSteps,\n getAboutGameActivitiesStepsForKTo1,\n} from './about-game-activities-constants';\nimport * as Styled from './about-game-activities-styled';\nimport type { IAboutGameActivitiesProps } from './about-game-activities-types';\nimport { EDeviceType } from '../../ui/theme/constants';\nimport { useCircleSounds } from '../hooks/use-circle-sounds/use-circle-sounds';\nimport { useUIContext } from '../../ui/context/context';\nimport { ABOUT_GAME_ACTIVITIES_ANALYTICS_EVENTS } from './about-game-activities-analytics-events';\n\nconst AboutGameActivities: FC<IAboutGameActivitiesProps> = memo(\n ({ show = false, isGradeKTo1 = false, onDismiss }) => {\n const { device } = useTheme();\n const isTouchDevice = device <= EDeviceType.TABLET;\n const [currentStep, setCurrentStep] = useState(0);\n const { trackView } = useJourney();\n const trackedViews = useGetTrackedViews();\n const { playButtonSound } = useCircleSounds();\n const { onEvent: trackEvent } = useUIContext();\n\n const isInfoAboutGameActivitiesViewed = trackedViews.includes(\n TRACKING_ID_STUDENT.INFO_ABOUT_GAME_ACTIVITIES,\n );\n\n const [showInfo, setShowInfo] = useState(show);\n\n const steps = useMemo(\n () =>\n isGradeKTo1\n ? getAboutGameActivitiesStepsForKTo1(isTouchDevice)\n : getAboutGameActivitiesSteps(isTouchDevice),\n [isTouchDevice, isGradeKTo1],\n );\n const isFirstStep = currentStep === 0;\n const isLastStep = currentStep === steps.length - 1;\n\n const currentStepData = steps[currentStep];\n\n const handleClose = useCallback(() => {\n setShowInfo(false);\n playButtonSound();\n onDismiss?.();\n }, [onDismiss, playButtonSound]);\n\n const handlePrevious = useCallback(() => {\n if (currentStep > 0) {\n setCurrentStep(currentStep - 1);\n }\n }, [currentStep]);\n\n const handleNext = useCallback(() => {\n if (currentStep < steps.length - 1) {\n setCurrentStep(currentStep + 1);\n }\n\n if (isLastStep) {\n if (!isInfoAboutGameActivitiesViewed) {\n trackView(TRACKING_ID_STUDENT.INFO_ABOUT_GAME_ACTIVITIES);\n trackEvent(ABOUT_GAME_ACTIVITIES_ANALYTICS_EVENTS.DAILY_PRACTICE_TOUR_START, {});\n }\n handleClose();\n }\n }, [\n currentStep,\n steps.length,\n isLastStep,\n isInfoAboutGameActivitiesViewed,\n handleClose,\n trackView,\n trackEvent,\n ]);\n\n useEffect(() => {\n if (show) {\n setShowInfo(true);\n setCurrentStep(0);\n } else {\n setShowInfo(false);\n }\n }, [show]);\n\n useEffect(() => {\n if (show && !isInfoAboutGameActivitiesViewed) {\n trackEvent(ABOUT_GAME_ACTIVITIES_ANALYTICS_EVENTS.DAILY_PRACTICE_TOUR_INITIATED, {});\n }\n }, [show, isInfoAboutGameActivitiesViewed, trackEvent]);\n\n if (!currentStepData || !show) {\n return null;\n }\n\n return (\n showInfo && (\n <ArcContainer\n onClose={isInfoAboutGameActivitiesViewed && show ? handleClose : undefined}\n zIndex={10}\n contentContainerHeight={'calc(100% - 128px)'}\n >\n <Styled.Wrapper>\n <Styled.ContentContainer>\n <Styled.VideoContainer $isVideoCircular={currentStepData.isVideoCircular}>\n <Styled.Video key={currentStep} playsInline autoPlay loop muted>\n <source src={currentStepData.videoUrl} type=\"video/mp4\" />\n Your browser does not support the video tag.\n </Styled.Video>\n </Styled.VideoContainer>\n <Styled.Header>\n <Text\n $renderAs=\"ah4-bold\"\n $renderOnMobileAs=\"ab1-black\"\n $color=\"WHITE\"\n $align=\"center\"\n >\n {currentStepData.headerText}\n </Text>\n </Styled.Header>\n <Separator height={20} />\n <Styled.Footer>\n {currentStepData.footerText && (\n <Text $renderAs=\"ub1\" $renderOnMobileAs=\"ub2\" $color=\"WHITE_T_87\" $align=\"center\">\n {currentStepData.footerText}\n </Text>\n )}\n </Styled.Footer>\n </Styled.ContentContainer>\n\n <Styled.NavigationContainer $isFirstStep={isFirstStep}>\n {!isFirstStep && (\n <IconButton\n Icon={BackIcon}\n onClick={handlePrevious}\n disabled={false}\n size=\"small\"\n analyticsLabel=\"previous-step\"\n renderAs=\"black-dark\"\n />\n )}\n <Button\n label={isLastStep ? 'Get Started' : 'Next'}\n onClick={handleNext}\n disabled={false}\n size=\"small\"\n analyticsLabel={isLastStep ? 'get-started' : 'next-step'}\n renderAs={isLastStep ? 'secondary-dark' : 'black-dark'}\n />\n </Styled.NavigationContainer>\n </Styled.Wrapper>\n </ArcContainer>\n )\n );\n },\n);\n\nAboutGameActivities.displayName = 'AboutGameActivities';\n\nexport default AboutGameActivities;\n"],"names":["AboutGameActivities","memo","show","isGradeKTo1","onDismiss","device","useTheme","isTouchDevice","EDeviceType","currentStep","setCurrentStep","useState","trackView","useJourney","trackedViews","useGetTrackedViews","playButtonSound","useCircleSounds","trackEvent","useUIContext","isInfoAboutGameActivitiesViewed","TRACKING_ID_STUDENT","showInfo","setShowInfo","steps","useMemo","getAboutGameActivitiesStepsForKTo1","getAboutGameActivitiesSteps","isFirstStep","isLastStep","currentStepData","handleClose","useCallback","handlePrevious","handleNext","ABOUT_GAME_ACTIVITIES_ANALYTICS_EVENTS","useEffect","jsx","ArcContainer","jsxs","Styled.Wrapper","Styled.ContentContainer","Styled.VideoContainer","Styled.Video","Styled.Header","Text","Separator","Styled.Footer","Styled.NavigationContainer","IconButton","BackIcon","Button","AboutGameActivities$1"],"mappings":"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"}
|