@cuemath/leap 3.5.30-gg4 → 3.5.30-j1
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 +12 -0
- package/dist/assets/illustrations/illustrations.js.map +1 -1
- package/dist/assets/images/images.js +8 -0
- package/dist/assets/images/images.js.map +1 -1
- package/dist/assets/line-icons/icons/carat-right.js +26 -0
- package/dist/assets/line-icons/icons/carat-right.js.map +1 -0
- package/dist/features/chapters/chapters-list/chapter-item/chapter-circular-progress/chapter-circular-progress.js +3 -3
- package/dist/features/chapters/chapters-list/chapter-item/chapter-circular-progress/chapter-circular-progress.js.map +1 -1
- package/dist/features/circle-games/game-launcher/comps/carousel/carousel-styled.js +16 -32
- package/dist/features/circle-games/game-launcher/comps/carousel/carousel-styled.js.map +1 -1
- package/dist/features/circle-games/game-launcher/comps/carousel/carousel.js +88 -87
- package/dist/features/circle-games/game-launcher/comps/carousel/carousel.js.map +1 -1
- package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js +35 -35
- package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js.map +1 -1
- package/dist/features/stickers/hooks/use-handle-sticker-send/use-handle-sticker-send.js +0 -1
- package/dist/features/stickers/hooks/use-handle-sticker-send/use-handle-sticker-send.js.map +1 -1
- package/dist/features/timeline/daily-timeline-styled.js +13 -9
- package/dist/features/timeline/daily-timeline-styled.js.map +1 -1
- package/dist/features/timeline/daily-timeline-view.js +9 -10
- package/dist/features/timeline/daily-timeline-view.js.map +1 -1
- package/dist/features/timeline/monthly-report/api/use-monthly-report-get.js +13 -0
- package/dist/features/timeline/monthly-report/api/use-monthly-report-get.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/achievements/achievements.js +68 -0
- package/dist/features/timeline/monthly-report/comps/achievements/achievements.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/achievements/achievements.styled.js +15 -0
- package/dist/features/timeline/monthly-report/comps/achievements/achievements.styled.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/activities/activities-card/activities-card.js +128 -0
- package/dist/features/timeline/monthly-report/comps/activities/activities-card/activities-card.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/activities/activities-card/activities-card.styled.js +53 -0
- package/dist/features/timeline/monthly-report/comps/activities/activities-card/activities-card.styled.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/activities/activities-card-puzzles/activities-card-puzzles.js +121 -0
- package/dist/features/timeline/monthly-report/comps/activities/activities-card-puzzles/activities-card-puzzles.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/activities/activities-card-puzzles/activities-card-puzzles.styled.js +58 -0
- package/dist/features/timeline/monthly-report/comps/activities/activities-card-puzzles/activities-card-puzzles.styled.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/activities/activities.js +27 -0
- package/dist/features/timeline/monthly-report/comps/activities/activities.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/activities/constants.js +95 -0
- package/dist/features/timeline/monthly-report/comps/activities/constants.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/activities/utils.js +15 -0
- package/dist/features/timeline/monthly-report/comps/activities/utils.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/attendance/attendance-constants.js +29 -0
- package/dist/features/timeline/monthly-report/comps/attendance/attendance-constants.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/attendance/attendance-utils.js +92 -0
- package/dist/features/timeline/monthly-report/comps/attendance/attendance-utils.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/attendance/attendance.js +44 -0
- package/dist/features/timeline/monthly-report/comps/attendance/attendance.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/attendance/attendance.styled.js +39 -0
- package/dist/features/timeline/monthly-report/comps/attendance/attendance.styled.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/attendance/attendence-view.js +52 -0
- package/dist/features/timeline/monthly-report/comps/attendance/attendence-view.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/feedback/feedback-styled.js +9 -0
- package/dist/features/timeline/monthly-report/comps/feedback/feedback-styled.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/feedback/feedback.js +94 -0
- package/dist/features/timeline/monthly-report/comps/feedback/feedback.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/goals/goals-card/goal-chapter-card.js +48 -0
- package/dist/features/timeline/monthly-report/comps/goals/goals-card/goal-chapter-card.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/goals/goals-card/goals-card-styled.js +28 -0
- package/dist/features/timeline/monthly-report/comps/goals/goals-card/goals-card-styled.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/goals/goals-card/goals-card.js +113 -0
- package/dist/features/timeline/monthly-report/comps/goals/goals-card/goals-card.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/goals/goals-constants.js +30 -0
- package/dist/features/timeline/monthly-report/comps/goals/goals-constants.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/goals/goals.js +22 -0
- package/dist/features/timeline/monthly-report/comps/goals/goals.js.map +1 -0
- package/dist/features/timeline/monthly-report/monthly-report-styled.js +14 -0
- package/dist/features/timeline/monthly-report/monthly-report-styled.js.map +1 -0
- package/dist/features/timeline/monthly-report/monthly-report-types.js +5 -0
- package/dist/features/timeline/monthly-report/monthly-report-types.js.map +1 -0
- package/dist/features/timeline/monthly-report/monthly-report.js +69 -0
- package/dist/features/timeline/monthly-report/monthly-report.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/api/use-monthly-timeline-get.js +10 -0
- package/dist/features/timeline/monthly-timeline/api/use-monthly-timeline-get.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/comps/monthly-card/monthly-card.js +87 -0
- package/dist/features/timeline/monthly-timeline/comps/monthly-card/monthly-card.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/comps/monthly-card/monthly-card.styled.js +9 -0
- package/dist/features/timeline/monthly-timeline/comps/monthly-card/monthly-card.styled.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/constants.js +41 -0
- package/dist/features/timeline/monthly-timeline/constants.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/monthly-timeline-styled.js +13 -0
- package/dist/features/timeline/monthly-timeline/monthly-timeline-styled.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/monthly-timeline-types.js +6 -0
- package/dist/features/timeline/monthly-timeline/monthly-timeline-types.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/monthly-timeline-view.js +28 -0
- package/dist/features/timeline/monthly-timeline/monthly-timeline-view.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/monthly-timeline.js +62 -0
- package/dist/features/timeline/monthly-timeline/monthly-timeline.js.map +1 -0
- package/dist/features/timeline/ptm-report/api/use-ptm-report-get.js +9 -0
- package/dist/features/timeline/ptm-report/api/use-ptm-report-get.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/key-need/key-need-styled.js +9 -0
- package/dist/features/timeline/ptm-report/comps/key-need/key-need-styled.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/key-need/key-need.js +35 -0
- package/dist/features/timeline/ptm-report/comps/key-need/key-need.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/parent-support/parent-support.js +53 -0
- package/dist/features/timeline/ptm-report/comps/parent-support/parent-support.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/real-world-projects/real-world-projects-styled.js +19 -0
- package/dist/features/timeline/ptm-report/comps/real-world-projects/real-world-projects-styled.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/real-world-projects/real-world-projects.js +50 -0
- package/dist/features/timeline/ptm-report/comps/real-world-projects/real-world-projects.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/report-card/report-card-styled.js +9 -0
- package/dist/features/timeline/ptm-report/comps/report-card/report-card-styled.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/report-card/report-card.js +22 -0
- package/dist/features/timeline/ptm-report/comps/report-card/report-card.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/school-support/school-support-styled.js +9 -0
- package/dist/features/timeline/ptm-report/comps/school-support/school-support-styled.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/school-support/school-support.js +84 -0
- package/dist/features/timeline/ptm-report/comps/school-support/school-support.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/strategies/strategies-constant.js +11 -0
- package/dist/features/timeline/ptm-report/comps/strategies/strategies-constant.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/strategies/strategies.js +36 -0
- package/dist/features/timeline/ptm-report/comps/strategies/strategies.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/strategy-card/strategy-card-styled.js +55 -0
- package/dist/features/timeline/ptm-report/comps/strategy-card/strategy-card-styled.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/strategy-card/strategy-card.js +35 -0
- package/dist/features/timeline/ptm-report/comps/strategy-card/strategy-card.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/student-info/student-info-styled.js +21 -0
- package/dist/features/timeline/ptm-report/comps/student-info/student-info-styled.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/student-info/student-info.js +21 -0
- package/dist/features/timeline/ptm-report/comps/student-info/student-info.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/support-card/support-card-styled.js +9 -0
- package/dist/features/timeline/ptm-report/comps/support-card/support-card-styled.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/support-card/support-card.js +30 -0
- package/dist/features/timeline/ptm-report/comps/support-card/support-card.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/teacher-observations/teacher-observations-constant.js +9 -0
- package/dist/features/timeline/ptm-report/comps/teacher-observations/teacher-observations-constant.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/teacher-observations/teacher-observations.js +56 -0
- package/dist/features/timeline/ptm-report/comps/teacher-observations/teacher-observations.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/upcoming-chapters/upcoming-chapters.js +15 -0
- package/dist/features/timeline/ptm-report/comps/upcoming-chapters/upcoming-chapters.js.map +1 -0
- package/dist/features/timeline/ptm-report/ptm-report-constants.js +16 -0
- package/dist/features/timeline/ptm-report/ptm-report-constants.js.map +1 -0
- package/dist/features/timeline/ptm-report/ptm-report-helpers.js +8 -0
- package/dist/features/timeline/ptm-report/ptm-report-helpers.js.map +1 -0
- package/dist/features/timeline/ptm-report/ptm-report-styled.js +11 -0
- package/dist/features/timeline/ptm-report/ptm-report-styled.js.map +1 -0
- package/dist/features/timeline/ptm-report/ptm-report-types.js +5 -0
- package/dist/features/timeline/ptm-report/ptm-report-types.js.map +1 -0
- package/dist/features/timeline/ptm-report/ptm-report.js +113 -0
- package/dist/features/timeline/ptm-report/ptm-report.js.map +1 -0
- package/dist/features/timeline/timeline-tabs/timeline-tabs-types.js +5 -0
- package/dist/features/timeline/timeline-tabs/timeline-tabs-types.js.map +1 -0
- package/dist/features/timeline/timeline-tabs/timeline-tabs.js +42 -0
- package/dist/features/timeline/timeline-tabs/timeline-tabs.js.map +1 -0
- package/dist/features/timeline/timeline-tabs/timeline-tabs.styled.js +37 -0
- package/dist/features/timeline/timeline-tabs/timeline-tabs.styled.js.map +1 -0
- package/dist/features/ui/arrow-tooltip/comps/tooltip-body-styled.js.map +1 -1
- package/dist/features/ui/arrow-tooltip/comps/tooltip-body.js +11 -11
- package/dist/features/ui/arrow-tooltip/comps/tooltip-body.js.map +1 -1
- package/dist/features/ui/swipable-carousel/swipable-carousel-styled.js +57 -0
- package/dist/features/ui/swipable-carousel/swipable-carousel-styled.js.map +1 -0
- package/dist/features/ui/swipable-carousel/swipable-carousel.js +132 -0
- package/dist/features/ui/swipable-carousel/swipable-carousel.js.map +1 -0
- package/dist/features/ui/swipeable-component/swipeable-component-styled.js.map +1 -0
- package/dist/features/ui/swipeable-component/swipeable-component.js +27 -0
- package/dist/features/ui/swipeable-component/swipeable-component.js.map +1 -0
- package/dist/features/worksheet/user-pointer-pin/hooks/use-user-location.js +20 -21
- package/dist/features/worksheet/user-pointer-pin/hooks/use-user-location.js.map +1 -1
- package/dist/features/worksheet/user-pointer-pin/user-pin.js +35 -37
- package/dist/features/worksheet/user-pointer-pin/user-pin.js.map +1 -1
- package/dist/features/worksheet/worksheet/hooks/use-create-imperative-handle.js +132 -132
- package/dist/features/worksheet/worksheet/hooks/use-create-imperative-handle.js.map +1 -1
- package/dist/features/worksheet/worksheet/hooks/use-get-active-question-id.js +62 -0
- package/dist/features/worksheet/worksheet/hooks/use-get-active-question-id.js.map +1 -0
- package/dist/features/worksheet/worksheet/hooks/use-time-on-questions.js +19 -24
- package/dist/features/worksheet/worksheet/hooks/use-time-on-questions.js.map +1 -1
- package/dist/features/worksheet/worksheet/question-tips.js +47 -48
- package/dist/features/worksheet/worksheet/question-tips.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-action-bar/worksheet-action-bar.js +132 -88
- package/dist/features/worksheet/worksheet/worksheet-action-bar/worksheet-action-bar.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-blocker/worksheet-blocker.js +55 -44
- package/dist/features/worksheet/worksheet/worksheet-blocker/worksheet-blocker.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-container.js +87 -0
- package/dist/features/worksheet/worksheet/worksheet-container.js.map +1 -0
- package/dist/features/worksheet/worksheet/worksheet-helpers.js +112 -109
- package/dist/features/worksheet/worksheet/worksheet-helpers.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-navigation/worksheet-item-navigation/worksheet-item-navigation.js +27 -25
- package/dist/features/worksheet/worksheet/worksheet-navigation/worksheet-item-navigation/worksheet-item-navigation.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-navigation/worksheet-item-number/worksheet-item-number.js +47 -47
- package/dist/features/worksheet/worksheet/worksheet-navigation/worksheet-item-number/worksheet-item-number.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-navigation/worksheet-navigation.js +64 -66
- package/dist/features/worksheet/worksheet/worksheet-navigation/worksheet-navigation.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-navigation/worksheet-section-navigation/worksheet-section-navigation.js +40 -38
- package/dist/features/worksheet/worksheet/worksheet-navigation/worksheet-section-navigation/worksheet-section-navigation.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-permissions/error.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/header/header.js +71 -73
- package/dist/features/worksheet/worksheet/worksheet-question/header/header.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/learnosity-question.js +59 -61
- package/dist/features/worksheet/worksheet/worksheet-question/learnosity-question.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/subjective-review.js +18 -21
- package/dist/features/worksheet/worksheet/worksheet-question/subjective-review.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js +272 -269
- package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-questions-controller/scribble-switch.js +31 -32
- package/dist/features/worksheet/worksheet/worksheet-questions-controller/scribble-switch.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-questions-controller/use-handler-callbacks.js +149 -147
- package/dist/features/worksheet/worksheet/worksheet-questions-controller/use-handler-callbacks.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-questions-controller/worksheet-questions-controller.js +223 -212
- package/dist/features/worksheet/worksheet/worksheet-questions-controller/worksheet-questions-controller.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-questions-summary/worksheet-questions-summary.js +20 -22
- package/dist/features/worksheet/worksheet/worksheet-questions-summary/worksheet-questions-summary.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-sidebar/question-guide.js +55 -57
- package/dist/features/worksheet/worksheet/worksheet-sidebar/question-guide.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-sidebar/sidebar.js +42 -47
- package/dist/features/worksheet/worksheet/worksheet-sidebar/sidebar.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-styled.js +34 -24
- package/dist/features/worksheet/worksheet/worksheet-styled.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-summary/worksheet-summary.js +12 -16
- package/dist/features/worksheet/worksheet/worksheet-summary/worksheet-summary.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-summary-controller/worksheet-summary-controller.js +7 -8
- package/dist/features/worksheet/worksheet/worksheet-summary-controller/worksheet-summary-controller.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-types.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet.js +441 -203
- package/dist/features/worksheet/worksheet/worksheet.js.map +1 -1
- package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js.map +1 -1
- package/dist/features/worksheet/worksheet-preview/worksheet-preview-view.js +1 -1
- package/dist/features/worksheet/worksheet-preview/worksheet-preview-view.js.map +1 -1
- package/dist/index.d.ts +276 -31
- package/dist/index.js +465 -451
- package/dist/index.js.map +1 -1
- package/dist/static/2021.0683b580.png +0 -0
- package/dist/static/2022.d34ad7a5.png +0 -0
- package/dist/static/2023.fce87149.png +0 -0
- package/dist/static/2024.a275ee85.png +0 -0
- package/dist/static/2025.677cc187.png +0 -0
- package/dist/static/2026.63763214.png +0 -0
- package/dist/static/2027.b82dc039.png +0 -0
- package/dist/static/2028.580b8cc0.png +0 -0
- package/dist/static/coding-report-icon.91a1e900.svg +1 -0
- package/dist/static/elp-icon.d45b457d.svg +1 -0
- package/dist/static/empty-reports.fe92faad.svg +1 -0
- package/dist/static/english-icon.50c2e005.svg +1 -0
- package/dist/static/full-report.00112c74.svg +1 -0
- package/dist/static/math-fit-grey.c32f37b3.svg +1 -0
- package/dist/static/no-report.4158fad3.svg +1 -0
- package/dist/static/ptm-report-icon.5089218f.svg +1 -0
- package/dist/static/sat-report-icon.4331be86.svg +1 -0
- package/dist/static/science-report-icon.a0014c40.svg +1 -0
- package/dist/static/thumps-down.a1192a62.svg +1 -0
- package/dist/static/thumps-up.caa35a98.svg +1 -0
- package/package.json +3 -4
- package/dist/features/circle-games/game-launcher/comps/swipable-component/swipeable-component-styled.js.map +0 -1
- package/dist/features/circle-games/game-launcher/comps/swipable-component/swipeable-component.js +0 -26
- package/dist/features/circle-games/game-launcher/comps/swipable-component/swipeable-component.js.map +0 -1
- package/dist/features/worksheet/worksheet/hooks/use-active-question-observer.js +0 -59
- package/dist/features/worksheet/worksheet/hooks/use-active-question-observer.js.map +0 -1
- package/dist/features/worksheet/worksheet/hooks/use-worksheet-store.js +0 -13
- package/dist/features/worksheet/worksheet/hooks/use-worksheet-store.js.map +0 -1
- package/dist/features/worksheet/worksheet/worksheet-blocker/worksheet-blocker-view.js +0 -68
- package/dist/features/worksheet/worksheet/worksheet-blocker/worksheet-blocker-view.js.map +0 -1
- package/dist/features/worksheet/worksheet/worksheet-calculator/worksheet-calculator.js +0 -17
- package/dist/features/worksheet/worksheet/worksheet-calculator/worksheet-calculator.js.map +0 -1
- package/dist/features/worksheet/worksheet/worksheet-nudge-banner/worksheet-nudge-banner-styled.js +0 -20
- package/dist/features/worksheet/worksheet/worksheet-nudge-banner/worksheet-nudge-banner-styled.js.map +0 -1
- package/dist/features/worksheet/worksheet/worksheet-nudge-banner/worksheet-nudge-banner.js +0 -49
- package/dist/features/worksheet/worksheet/worksheet-nudge-banner/worksheet-nudge-banner.js.map +0 -1
- package/dist/features/worksheet/worksheet/worksheet-provider.js +0 -21
- package/dist/features/worksheet/worksheet/worksheet-provider.js.map +0 -1
- package/dist/features/worksheet/worksheet/worksheet-questions/worksheet-questions-styled.js +0 -16
- package/dist/features/worksheet/worksheet/worksheet-questions/worksheet-questions-styled.js.map +0 -1
- package/dist/features/worksheet/worksheet/worksheet-questions/worksheet-questions.js +0 -73
- package/dist/features/worksheet/worksheet/worksheet-questions/worksheet-questions.js.map +0 -1
- package/dist/features/worksheet/worksheet/worksheet-store.js +0 -301
- package/dist/features/worksheet/worksheet/worksheet-store.js.map +0 -1
- package/dist/features/worksheet/worksheet/worksheet-view.js +0 -141
- package/dist/features/worksheet/worksheet/worksheet-view.js.map +0 -1
- package/dist/node_modules/zustand/esm/middleware.js +0 -22
- package/dist/node_modules/zustand/esm/middleware.js.map +0 -1
- package/dist/node_modules/zustand/esm/react/shallow.js +0 -13
- package/dist/node_modules/zustand/esm/react/shallow.js.map +0 -1
- package/dist/node_modules/zustand/esm/vanilla/shallow.js +0 -31
- package/dist/node_modules/zustand/esm/vanilla/shallow.js.map +0 -1
- /package/dist/features/{circle-games/game-launcher/comps/swipable-component → ui/swipeable-component}/swipeable-component-styled.js +0 -0
|
@@ -1,100 +1,99 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { memo as T, useRef as
|
|
1
|
+
import { jsx as n, jsxs as g } from "react/jsx-runtime";
|
|
2
|
+
import { memo as T, useRef as u, useState as C, useMemo as E, useCallback as k, useLayoutEffect as I, useEffect as w } from "react";
|
|
3
3
|
import l from "styled-components";
|
|
4
|
-
import
|
|
4
|
+
import y from "../../../assets/line-icons/icons/up.js";
|
|
5
5
|
import _ from "../../ui/buttons/clickable/clickable.js";
|
|
6
|
-
import
|
|
7
|
-
import { ACTION_BAR_HEIGHT as
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
const
|
|
11
|
-
const { layout: c, colors: t, zIndex: d } = e;
|
|
6
|
+
import d from "../../ui/layout/flex-view.js";
|
|
7
|
+
import { ACTION_BAR_HEIGHT as f } from "./constants.js";
|
|
8
|
+
import { CustomElement as R } from "./worksheet-question/worksheet-question-styled.js";
|
|
9
|
+
const A = l(d)(({ $isExpanded: e, theme: t }) => {
|
|
10
|
+
const { layout: o, colors: i, zIndex: a } = t;
|
|
12
11
|
return `
|
|
13
12
|
position: absolute;
|
|
14
13
|
bottom: 0px;
|
|
15
|
-
z-index: ${
|
|
16
|
-
max-height: calc(${
|
|
14
|
+
z-index: ${a.QUESTION_TIPS};
|
|
15
|
+
max-height: calc(${o.gutter * 2}px + ${f}px);
|
|
17
16
|
|
|
18
17
|
border-radius: 6px 6px 0px 0px;
|
|
19
|
-
background: ${
|
|
18
|
+
background: ${i.REAL_BLACK_60};
|
|
20
19
|
backdrop-filter: blur(8px);
|
|
21
20
|
align-self: center;
|
|
22
21
|
|
|
23
|
-
${
|
|
24
|
-
max-height: calc(${
|
|
22
|
+
${e && `
|
|
23
|
+
max-height: calc(${o.gutter * 15.625}px + ${f}px);
|
|
25
24
|
overflow-y: auto;
|
|
26
25
|
|
|
27
26
|
@supports selector(::-webkit-scrollbar) {
|
|
28
27
|
&::-webkit-scrollbar {
|
|
29
28
|
border-top-right-radius: 6px;
|
|
30
29
|
width: 8px;
|
|
31
|
-
background-color: ${
|
|
30
|
+
background-color: ${i.WHITE};
|
|
32
31
|
}
|
|
33
32
|
|
|
34
33
|
&::-webkit-scrollbar-thumb {
|
|
35
34
|
border-top-right-radius: 6px;
|
|
36
35
|
border-bottom-right-radius: 6px;
|
|
37
|
-
background: ${
|
|
36
|
+
background: ${i.REAL_BLACK_60};
|
|
38
37
|
}
|
|
39
38
|
}
|
|
40
39
|
`}
|
|
41
40
|
`;
|
|
42
|
-
}),
|
|
41
|
+
}), H = l(d)`
|
|
43
42
|
padding: 8px 12px;
|
|
44
43
|
|
|
45
44
|
& * {
|
|
46
45
|
background-color: transparent !important;
|
|
47
46
|
}
|
|
48
|
-
`,
|
|
49
|
-
({ theme:
|
|
50
|
-
color: ${
|
|
51
|
-
padding: 0px 0px ${
|
|
52
|
-
${
|
|
47
|
+
`, L = l(R)(
|
|
48
|
+
({ theme: e, $isExpanded: t }) => `
|
|
49
|
+
color: ${e.colors.WHITE};
|
|
50
|
+
padding: 0px 0px ${f}px;
|
|
51
|
+
${t ? "" : "& > * { display: inline; }"}
|
|
53
52
|
font-family: 'UntitledSans-Regular';
|
|
54
53
|
|
|
55
54
|
&::before {
|
|
56
55
|
content: 'CUE DON’T TELL:';
|
|
57
56
|
font-family: 'Athletics-Bold';
|
|
58
57
|
margin-right: 8px;
|
|
59
|
-
${
|
|
58
|
+
${t ? " display: block; margin-bottom: 8px;" : ""}
|
|
60
59
|
}
|
|
61
60
|
`
|
|
62
|
-
),
|
|
61
|
+
), S = l(d)`
|
|
63
62
|
position: sticky;
|
|
64
63
|
top: 8px;
|
|
65
|
-
`, v = l(
|
|
66
|
-
transform: rotate(${
|
|
64
|
+
`, v = l(y)(({ $isExpanded: e, theme: t }) => `
|
|
65
|
+
transform: rotate(${e ? 180 : 0}deg);
|
|
67
66
|
transition: transform 0.3s ease;
|
|
68
|
-
color: ${
|
|
67
|
+
color: ${t.colors.WHITE};
|
|
69
68
|
cursor: pointer;
|
|
70
|
-
`),
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
r &&
|
|
78
|
-
const p =
|
|
79
|
-
|
|
69
|
+
`), N = T(function({
|
|
70
|
+
width: t,
|
|
71
|
+
question: o,
|
|
72
|
+
userType: i,
|
|
73
|
+
learnosity: a
|
|
74
|
+
}) {
|
|
75
|
+
const h = u(null), s = u(null), m = u(""), [c, x] = C(!1), { teacher_tips: r } = (o == null ? void 0 : o.metadata) || {};
|
|
76
|
+
r && a.renderMath("mathjax");
|
|
77
|
+
const p = E(() => r == null ? void 0 : r.toString(), [r]), b = k(() => {
|
|
78
|
+
m.current && s.current && x(($) => !$);
|
|
80
79
|
}, []);
|
|
81
|
-
return
|
|
82
|
-
|
|
83
|
-
}, [
|
|
84
|
-
p ||
|
|
85
|
-
}, [p]),
|
|
86
|
-
/* @__PURE__ */
|
|
87
|
-
|
|
80
|
+
return I(() => {
|
|
81
|
+
s.current && r && (m.current = s.current.textContent);
|
|
82
|
+
}, [a, r]), w(() => {
|
|
83
|
+
p || x(!1);
|
|
84
|
+
}, [p]), i !== "TEACHER" || !p ? null : /* @__PURE__ */ n(A, { ref: h, $width: t, $isExpanded: c, children: /* @__PURE__ */ n(_, { label: "Teacher Tip", onClick: c ? void 0 : b, children: /* @__PURE__ */ g(H, { $flexDirection: "row", $flexGap: 10, $justifyContent: "space-between", children: [
|
|
85
|
+
/* @__PURE__ */ n(d, { $flexDirection: "row", $flexGap: 5, children: /* @__PURE__ */ n(
|
|
86
|
+
L,
|
|
88
87
|
{
|
|
89
|
-
ref:
|
|
88
|
+
ref: s,
|
|
90
89
|
dangerouslySetInnerHTML: { __html: p },
|
|
91
|
-
$isExpanded:
|
|
90
|
+
$isExpanded: c
|
|
92
91
|
}
|
|
93
92
|
) }),
|
|
94
|
-
/* @__PURE__ */
|
|
93
|
+
/* @__PURE__ */ n(S, { $width: 20, $height: 20, children: /* @__PURE__ */ n(v, { $isExpanded: c, onClick: c ? b : void 0 }) })
|
|
95
94
|
] }) }) });
|
|
96
95
|
});
|
|
97
96
|
export {
|
|
98
|
-
|
|
97
|
+
N as default
|
|
99
98
|
};
|
|
100
99
|
//# sourceMappingURL=question-tips.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"question-tips.js","sources":["../../../../src/features/worksheet/worksheet/question-tips.tsx"],"sourcesContent":["import {\n memo,\n useCallback,\n useEffect,\n useLayoutEffect,\n useMemo,\n useRef,\n useState,\n type FC,\n} from 'react';\nimport styled from 'styled-components';\n\nimport UpIcon from '../../../assets/line-icons/icons/up';\nimport Clickable from '../../ui/buttons/clickable/clickable';\nimport FlexView from '../../ui/layout/flex-view';\nimport {
|
|
1
|
+
{"version":3,"file":"question-tips.js","sources":["../../../../src/features/worksheet/worksheet/question-tips.tsx"],"sourcesContent":["import {\n memo,\n useCallback,\n useEffect,\n useLayoutEffect,\n useMemo,\n useRef,\n useState,\n type FC,\n} from 'react';\nimport styled from 'styled-components';\n\nimport UpIcon from '../../../assets/line-icons/icons/up';\nimport Clickable from '../../ui/buttons/clickable/clickable';\nimport FlexView from '../../ui/layout/flex-view';\nimport type { TUserTypes } from '../../ui/types';\nimport { ACTION_BAR_HEIGHT } from './constants';\nimport { CustomElement } from './worksheet-question/worksheet-question-styled';\nimport type { ILearnosity, IWorksheetQuestion } from './worksheet-types';\n\ntype TStyledComponentProps = {\n $isExpanded: boolean;\n};\n\nconst Wrapper = styled(FlexView)<TStyledComponentProps>(({ $isExpanded, theme }) => {\n const { layout, colors, zIndex } = theme;\n\n return `\n position: absolute;\n bottom: 0px;\n z-index: ${zIndex.QUESTION_TIPS};\n max-height: calc(${layout.gutter * 2}px + ${ACTION_BAR_HEIGHT}px);\n \n border-radius: 6px 6px 0px 0px;\n background: ${colors.REAL_BLACK_60};\n backdrop-filter: blur(8px);\n align-self: center;\n \n ${\n $isExpanded &&\n `\n max-height: calc(${layout.gutter * 15.625}px + ${ACTION_BAR_HEIGHT}px);\n overflow-y: auto;\n\n @supports selector(::-webkit-scrollbar) {\n &::-webkit-scrollbar {\n border-top-right-radius: 6px;\n width: 8px;\n background-color: ${colors.WHITE};\n }\n \n &::-webkit-scrollbar-thumb {\n border-top-right-radius: 6px;\n border-bottom-right-radius: 6px;\n background: ${colors.REAL_BLACK_60};\n }\n }\n `\n }\n `;\n});\n\nconst Header = styled(FlexView)`\n padding: 8px 12px;\n\n & * {\n background-color: transparent !important;\n }\n`;\n\nconst TipText = styled(CustomElement)<TStyledComponentProps>(\n ({ theme, $isExpanded }) => `\n color: ${theme.colors.WHITE};\n padding: 0px 0px ${ACTION_BAR_HEIGHT}px;\n ${$isExpanded ? '' : `& > * { display: inline; }`}\n font-family: 'UntitledSans-Regular';\n\n &::before {\n content: 'CUE DON’T TELL:';\n font-family: 'Athletics-Bold';\n margin-right: 8px;\n ${$isExpanded ? ` display: block; margin-bottom: 8px;` : ''}\n }\n `,\n);\n\nconst ChevIconWrapper = styled(FlexView)`\n position: sticky;\n top: 8px;\n`;\n\nconst ChevIcon = styled(UpIcon)<TStyledComponentProps>(({ $isExpanded, theme }) => {\n return `\n transform: rotate(${$isExpanded ? 180 : 0}deg);\n transition: transform 0.3s ease;\n color: ${theme.colors.WHITE};\n cursor: pointer;\n `;\n});\n\ninterface IQuestionTips {\n width: number | string;\n userType: TUserTypes;\n learnosity: ILearnosity;\n question?: IWorksheetQuestion;\n}\n\nconst QuestionTips: FC<IQuestionTips> = memo(function QuestionTips({\n width,\n question,\n userType,\n learnosity,\n}) {\n const containerRef = useRef<HTMLDivElement>(null);\n const tipRef = useRef<HTMLDivElement>(null);\n const tipContentRef = useRef<string | null>('');\n\n const [menuVisible, setMenuVisible] = useState(false);\n\n const { teacher_tips: tips } = question?.metadata || {};\n\n if (tips) {\n learnosity.renderMath('mathjax');\n }\n\n const tipsMemoized = useMemo(() => {\n return tips?.toString();\n }, [tips]);\n\n const handleClick = useCallback(() => {\n if (tipContentRef.current && tipRef.current) {\n setMenuVisible(prev => !prev);\n }\n }, []);\n\n useLayoutEffect(() => {\n if (tipRef.current && tips) {\n tipContentRef.current = tipRef.current.textContent;\n }\n }, [learnosity, tips]);\n\n useEffect(() => {\n if (!tipsMemoized) {\n setMenuVisible(false);\n }\n }, [tipsMemoized]);\n\n if (userType !== 'TEACHER' || !tipsMemoized) return null;\n\n return (\n <Wrapper ref={containerRef} $width={width} $isExpanded={menuVisible}>\n <Clickable label=\"Teacher Tip\" onClick={!menuVisible ? handleClick : undefined}>\n <Header $flexDirection=\"row\" $flexGap={10} $justifyContent=\"space-between\">\n <FlexView $flexDirection=\"row\" $flexGap={5}>\n <TipText\n ref={tipRef}\n dangerouslySetInnerHTML={{ __html: tipsMemoized }}\n $isExpanded={menuVisible}\n />\n </FlexView>\n\n <ChevIconWrapper $width={20} $height={20}>\n <ChevIcon $isExpanded={menuVisible} onClick={menuVisible ? handleClick : undefined} />\n </ChevIconWrapper>\n </Header>\n </Clickable>\n </Wrapper>\n );\n});\n\nexport default QuestionTips;\n"],"names":["Wrapper","styled","FlexView","$isExpanded","theme","layout","colors","zIndex","ACTION_BAR_HEIGHT","Header","TipText","CustomElement","ChevIconWrapper","ChevIcon","UpIcon","QuestionTips","memo","width","question","userType","learnosity","containerRef","useRef","tipRef","tipContentRef","menuVisible","setMenuVisible","useState","tips","tipsMemoized","useMemo","handleClick","useCallback","prev","useLayoutEffect","useEffect","jsx","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,aAAaY,GAAa,SAASA,IAAcM,IAAc,OAAW,CAAA,GACtF;AAAA,EAAA,GACF,GACF,EACF,CAAA;AAEJ,CAAC;"}
|
|
@@ -1,117 +1,161 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { memo as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { IconContainer as
|
|
14
|
-
import
|
|
15
|
-
const
|
|
1
|
+
import { jsx as e, jsxs as b, Fragment as T } from "react/jsx-runtime";
|
|
2
|
+
import { memo as K, useState as L, useCallback as r } from "react";
|
|
3
|
+
import M from "../../../../assets/line-icons/icons/calculator.js";
|
|
4
|
+
import Y from "../../../../assets/line-icons/icons/down.js";
|
|
5
|
+
import Z from "../../../../assets/line-icons/icons/up.js";
|
|
6
|
+
import ee from "../../../cue-canvas/toolbar/toolbar.js";
|
|
7
|
+
import oe from "../../../ui/buttons/button/button.js";
|
|
8
|
+
import ne from "../../../ui/layout/flex-view.js";
|
|
9
|
+
import { scrollToQuestion as te } from "../worksheet-helpers.js";
|
|
10
|
+
import se from "../worksheet-questions-controller/scribble-switch.js";
|
|
11
|
+
import ie from "../worksheet-questions-controller/worksheet-questions-controller.js";
|
|
12
|
+
import re from "../worksheet-questions-summary/worksheet-questions-summary.js";
|
|
13
|
+
import { IconContainer as ae, SummaryWrapper as le } from "../worksheet-styled.js";
|
|
14
|
+
import ce from "../worksheet-summary-controller/worksheet-summary-controller.js";
|
|
15
|
+
const Qe = K(function(A) {
|
|
16
16
|
const {
|
|
17
|
-
|
|
18
|
-
layout:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}, [
|
|
55
|
-
|
|
56
|
-
}, [
|
|
57
|
-
|
|
58
|
-
|
|
17
|
+
userType: c,
|
|
18
|
+
layout: f,
|
|
19
|
+
behavior: t,
|
|
20
|
+
worksheetName: W,
|
|
21
|
+
questions: o,
|
|
22
|
+
responses: s,
|
|
23
|
+
activeQuestionIndex: i,
|
|
24
|
+
lastUnlockedQuestionIndex: h,
|
|
25
|
+
appendedQuestionIds: $,
|
|
26
|
+
learnosity: R,
|
|
27
|
+
isScribblingEnabled: S,
|
|
28
|
+
isSummaryVisible: k,
|
|
29
|
+
setIsScribblingEnabled: q,
|
|
30
|
+
setActiveQuestionId: m,
|
|
31
|
+
setResponses: E,
|
|
32
|
+
getTimeSpentOnQuestion: O,
|
|
33
|
+
setBlocker: V,
|
|
34
|
+
setSummaryVisible: u,
|
|
35
|
+
showCalculator: j,
|
|
36
|
+
onItemNumberClick: C,
|
|
37
|
+
onTeacherValidation: F,
|
|
38
|
+
onGoToReview: I,
|
|
39
|
+
onResponseChange: G,
|
|
40
|
+
onHelp: N,
|
|
41
|
+
onSubmit: a,
|
|
42
|
+
onCalculatorOpen: D,
|
|
43
|
+
canSubmitWorksheet: g,
|
|
44
|
+
loggerRef: y,
|
|
45
|
+
onSkip: U,
|
|
46
|
+
actionBarRightElement: _
|
|
47
|
+
} = A, { navigationBar: z, questionsScrollable: v } = f, d = o[i], { response_id: l } = d ?? {}, [w, p] = L(!1), H = l ? $.includes(l) : !1, P = r(
|
|
48
|
+
(n) => {
|
|
49
|
+
p(!1), C(n);
|
|
50
|
+
},
|
|
51
|
+
[C]
|
|
52
|
+
), X = r(() => {
|
|
53
|
+
p(!1), I();
|
|
54
|
+
}, [I]), Q = r(() => {
|
|
55
|
+
p((n) => !n);
|
|
56
|
+
}, []), J = r(() => {
|
|
57
|
+
var x;
|
|
58
|
+
u(!1);
|
|
59
|
+
const n = (x = o[o.length - 1]) == null ? void 0 : x.response_id;
|
|
60
|
+
n && (v ? requestAnimationFrame(() => te(n)) : m(n));
|
|
61
|
+
}, [o, v, m, u]), B = r(() => {
|
|
62
|
+
a == null || a(s);
|
|
63
|
+
}, [a, s]);
|
|
64
|
+
return k ? /* @__PURE__ */ e(
|
|
65
|
+
ce,
|
|
59
66
|
{
|
|
60
|
-
onBack:
|
|
61
|
-
|
|
62
|
-
|
|
67
|
+
onBack: J,
|
|
68
|
+
behavior: t,
|
|
69
|
+
onSubmit: B,
|
|
70
|
+
canSubmitWorksheet: !!g
|
|
63
71
|
}
|
|
64
|
-
) : /* @__PURE__ */
|
|
65
|
-
/* @__PURE__ */
|
|
66
|
-
/* @__PURE__ */
|
|
67
|
-
|
|
68
|
-
z,
|
|
72
|
+
) : /* @__PURE__ */ b(T, { children: [
|
|
73
|
+
/* @__PURE__ */ b(ne, { $flexDirection: "row", $flexGap: 12, children: [
|
|
74
|
+
/* @__PURE__ */ e(
|
|
75
|
+
se,
|
|
69
76
|
{
|
|
70
|
-
|
|
77
|
+
isScribblingEnabled: S,
|
|
78
|
+
setIsScribblingEnabled: q,
|
|
79
|
+
isCanvasEnabled: !!t.canvasEnabled,
|
|
80
|
+
loggerRef: y,
|
|
81
|
+
canToggleScribbling: t.canScribble
|
|
82
|
+
}
|
|
83
|
+
),
|
|
84
|
+
t.canShowDesmosCalc && /* @__PURE__ */ e(
|
|
85
|
+
ae,
|
|
86
|
+
{
|
|
87
|
+
$active: j,
|
|
71
88
|
$alignItems: "center",
|
|
72
89
|
$justifyContent: "space-between",
|
|
73
|
-
onClick:
|
|
74
|
-
children: /* @__PURE__ */
|
|
90
|
+
onClick: D,
|
|
91
|
+
children: /* @__PURE__ */ e(M, {})
|
|
75
92
|
}
|
|
76
93
|
)
|
|
77
94
|
] }),
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
95
|
+
S && /* @__PURE__ */ e(ee, { userType: c, renderAs: "canvas" }),
|
|
96
|
+
z === "bottom" && /* @__PURE__ */ b(T, { children: [
|
|
97
|
+
w && /* @__PURE__ */ e(le, { $alignItems: "center", children: /* @__PURE__ */ e(
|
|
98
|
+
re,
|
|
82
99
|
{
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
100
|
+
activeQuestionIndex: i,
|
|
101
|
+
lastUnlockedQuestionIndex: h,
|
|
102
|
+
onItemNumberClick: P,
|
|
103
|
+
questions: o,
|
|
104
|
+
responses: s,
|
|
105
|
+
worksheetName: W,
|
|
106
|
+
behavior: t,
|
|
107
|
+
userType: c,
|
|
108
|
+
onClose: Q,
|
|
109
|
+
onGoToReview: X,
|
|
110
|
+
summaryVisible: k
|
|
86
111
|
}
|
|
87
112
|
) }),
|
|
88
|
-
/* @__PURE__ */
|
|
89
|
-
|
|
113
|
+
/* @__PURE__ */ e(
|
|
114
|
+
oe,
|
|
90
115
|
{
|
|
91
116
|
renderAs: "secondary",
|
|
92
117
|
widthX: 13.25,
|
|
93
|
-
label: `Question ${
|
|
118
|
+
label: `Question ${i + 1} of ${o.length}`,
|
|
94
119
|
size: "small",
|
|
95
|
-
Icon:
|
|
120
|
+
Icon: w ? Y : Z,
|
|
96
121
|
iconPosition: "right",
|
|
97
122
|
justifyContent: "space-between",
|
|
98
|
-
onClick:
|
|
123
|
+
onClick: Q
|
|
99
124
|
}
|
|
100
125
|
)
|
|
101
126
|
] }),
|
|
102
|
-
|
|
103
|
-
|
|
127
|
+
d && l && /* @__PURE__ */ e(
|
|
128
|
+
ie,
|
|
104
129
|
{
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
130
|
+
learnosity: R,
|
|
131
|
+
question: d,
|
|
132
|
+
questions: o,
|
|
133
|
+
responses: s,
|
|
134
|
+
canSubmitWorksheet: g,
|
|
135
|
+
questionIndex: i,
|
|
136
|
+
isQuestionAppended: H,
|
|
137
|
+
isQuestionUnlocked: i <= h,
|
|
138
|
+
response: s[l],
|
|
139
|
+
behavior: t,
|
|
140
|
+
userType: c,
|
|
141
|
+
layout: f,
|
|
142
|
+
onResponseChange: G,
|
|
143
|
+
onTeacherValidation: F,
|
|
144
|
+
onHelp: N,
|
|
145
|
+
onSubmit: B,
|
|
146
|
+
setActiveQuestionId: m,
|
|
147
|
+
setBlocker: V,
|
|
148
|
+
setSummaryVisible: u,
|
|
149
|
+
setResponses: E,
|
|
150
|
+
getTimeSpentOnQuestion: O,
|
|
151
|
+
loggerRef: y,
|
|
152
|
+
onSkip: U,
|
|
153
|
+
actionBarRightElement: _
|
|
110
154
|
}
|
|
111
155
|
)
|
|
112
156
|
] });
|
|
113
157
|
});
|
|
114
158
|
export {
|
|
115
|
-
|
|
159
|
+
Qe as default
|
|
116
160
|
};
|
|
117
161
|
//# sourceMappingURL=worksheet-action-bar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worksheet-action-bar.js","sources":["../../../../../src/features/worksheet/worksheet/worksheet-action-bar/worksheet-action-bar.tsx"],"sourcesContent":["import { memo, useCallback, type FC } from 'react';\n\nimport CalculatorIcon from '../../../../assets/line-icons/icons/calculator';\nimport DownIcon from '../../../../assets/line-icons/icons/down';\nimport UpIcon from '../../../../assets/line-icons/icons/up';\nimport Toolbar from '../../../cue-canvas/toolbar/toolbar';\nimport Button from '../../../ui/buttons/button/button';\nimport FlexView from '../../../ui/layout/flex-view';\nimport { useWorksheetStore } from '../hooks/use-worksheet-store';\nimport ScribbleSwitch from '../worksheet-questions-controller/scribble-switch';\nimport WorksheetQuestionsController from '../worksheet-questions-controller/worksheet-questions-controller';\nimport WorksheetQuestionsSummary from '../worksheet-questions-summary/worksheet-questions-summary';\nimport * as Styled from '../worksheet-styled';\nimport WorksheetSummaryController from '../worksheet-summary-controller/worksheet-summary-controller';\nimport type { IWorksheetActionBarProps } from './worksheet-action-bar-types';\n\nconst WorksheetActionBar: FC<IWorksheetActionBarProps> = memo(function WorksheetActionBar(props) {\n const {\n behavior,\n layout,\n activeQuestionIndex,\n questions,\n userType,\n summaryVisible,\n toggleSummary,\n changeQuestion,\n calculatorVisible,\n showCalculator,\n worksheetName,\n onSubmit,\n canSubmitWorksheet,\n responses,\n appendedQuestionIds,\n scribblingEnabled,\n } = useWorksheetStore(state => ({\n behavior: state.behavior,\n layout: state.layout,\n activeQuestionIndex: state.activeQuestionIndex,\n questions: state.questions,\n userType: state.userType,\n summaryVisible: state.summaryVisible,\n toggleSummary: state.toggleSummary,\n changeQuestion: state.changeQuestion,\n calculatorVisible: state.calculatorVisible,\n showCalculator: state.showCalculator,\n worksheetName: state.worksheetName,\n onSubmit: state.onSubmit,\n canSubmitWorksheet: state.canSubmitWorksheet,\n responses: state.responses,\n appendedQuestionIds: state.appendedQuestionIds,\n scribblingEnabled: state.scribblingEnabled,\n }));\n const { getTimeSpentOnQuestion } = props;\n const { navigationBar } = layout;\n const activeQuestion = questions[activeQuestionIndex];\n const { response_id: activeQuestionId } = activeQuestion ?? {};\n const isAppended = activeQuestionId ? appendedQuestionIds.includes(activeQuestionId) : false;\n\n const handleBackFromSummary = useCallback(() => {\n const questionId = questions[questions.length - 1]?.response_id;\n\n if (questionId) {\n changeQuestion(questionId);\n }\n }, [changeQuestion, questions]);\n\n const handleSheetSubmitButtonClick = useCallback(() => {\n onSubmit?.(responses);\n }, [onSubmit, responses]);\n\n if (summaryVisible) {\n return (\n <WorksheetSummaryController\n onBack={handleBackFromSummary}\n onSubmit={handleSheetSubmitButtonClick}\n canSubmitWorksheet={!!canSubmitWorksheet}\n />\n );\n }\n\n return (\n <>\n <FlexView $flexDirection=\"row\" $flexGap={12}>\n <ScribbleSwitch />\n {behavior.canShowDesmosCalc && (\n <Styled.IconContainer\n $active={calculatorVisible}\n $alignItems=\"center\"\n $justifyContent=\"space-between\"\n onClick={showCalculator}\n >\n <CalculatorIcon />\n </Styled.IconContainer>\n )}\n </FlexView>\n {scribblingEnabled && <Toolbar userType={userType} renderAs=\"canvas\" />}\n {navigationBar === 'bottom' && (\n <>\n {summaryVisible && (\n <Styled.SummaryWrapper $alignItems=\"center\">\n <WorksheetQuestionsSummary\n worksheetName={worksheetName}\n onClose={toggleSummary}\n showGoToReview\n />\n </Styled.SummaryWrapper>\n )}\n <Button\n renderAs=\"secondary\"\n widthX={13.25}\n label={`Question ${activeQuestionIndex + 1} of ${questions.length}`}\n size=\"small\"\n Icon={summaryVisible ? DownIcon : UpIcon}\n iconPosition=\"right\"\n justifyContent=\"space-between\"\n onClick={toggleSummary}\n />\n </>\n )}\n {activeQuestion && activeQuestionId && (\n <WorksheetQuestionsController\n question={activeQuestion}\n isQuestionAppended={isAppended}\n response={responses[activeQuestionId]}\n onSubmit={handleSheetSubmitButtonClick}\n getTimeSpentOnQuestion={getTimeSpentOnQuestion}\n />\n )}\n </>\n );\n});\n\nexport default WorksheetActionBar;\n"],"names":["WorksheetActionBar","memo","props","behavior","layout","activeQuestionIndex","questions","userType","summaryVisible","toggleSummary","changeQuestion","calculatorVisible","showCalculator","worksheetName","onSubmit","canSubmitWorksheet","responses","appendedQuestionIds","scribblingEnabled","useWorksheetStore","state","getTimeSpentOnQuestion","navigationBar","activeQuestion","activeQuestionId","isAppended","handleBackFromSummary","useCallback","questionId","_a","handleSheetSubmitButtonClick","jsx","WorksheetSummaryController","jsxs","Fragment","FlexView","ScribbleSwitch","Styled.IconContainer","CalculatorIcon","Toolbar","Styled.SummaryWrapper","WorksheetQuestionsSummary","Button","DownIcon","UpIcon","WorksheetQuestionsController"],"mappings":";;;;;;;;;;;;;;AAgBA,MAAMA,KAAmDC,EAAK,SAA4BC,GAAO;AACzF,QAAA;AAAA,IACJ,UAAAC;AAAA,IACA,QAAAC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UAAUT,EAAUQ,CAAgB;AAAA,QACpC,UAAUM;AAAA,QACV,wBAAAT;AAAA,MAAA;AAAA,IACF;AAAA,EAEJ,EAAA,CAAA;AAEJ,CAAC;"}
|
|
1
|
+
{"version":3,"file":"worksheet-action-bar.js","sources":["../../../../../src/features/worksheet/worksheet/worksheet-action-bar/worksheet-action-bar.tsx"],"sourcesContent":["import { memo, useCallback, useState, type FC } from 'react';\n\nimport CalculatorIcon from '../../../../assets/line-icons/icons/calculator';\nimport DownIcon from '../../../../assets/line-icons/icons/down';\nimport UpIcon from '../../../../assets/line-icons/icons/up';\nimport Toolbar from '../../../cue-canvas/toolbar/toolbar';\nimport Button from '../../../ui/buttons/button/button';\nimport FlexView from '../../../ui/layout/flex-view';\nimport { scrollToQuestion } from '../worksheet-helpers';\nimport ScribbleSwitch from '../worksheet-questions-controller/scribble-switch';\nimport WorksheetQuestionsController from '../worksheet-questions-controller/worksheet-questions-controller';\nimport WorksheetQuestionsSummary from '../worksheet-questions-summary/worksheet-questions-summary';\nimport * as Styled from '../worksheet-styled';\nimport WorksheetSummaryController from '../worksheet-summary-controller/worksheet-summary-controller';\nimport type { IWorksheetActionBarProps } from './worksheet-action-bar-types';\n\nconst WorksheetActionBar: FC<IWorksheetActionBarProps> = memo(function WorksheetActionBar(props) {\n const {\n userType,\n layout,\n behavior,\n worksheetName,\n questions,\n responses,\n activeQuestionIndex,\n lastUnlockedQuestionIndex,\n appendedQuestionIds,\n learnosity,\n isScribblingEnabled,\n isSummaryVisible,\n setIsScribblingEnabled,\n setActiveQuestionId,\n setResponses,\n getTimeSpentOnQuestion,\n setBlocker,\n setSummaryVisible,\n showCalculator,\n onItemNumberClick,\n onTeacherValidation,\n onGoToReview,\n onResponseChange,\n onHelp,\n onSubmit,\n onCalculatorOpen,\n canSubmitWorksheet,\n loggerRef,\n onSkip,\n actionBarRightElement,\n } = props;\n const { navigationBar, questionsScrollable } = layout;\n const activeQuestion = questions[activeQuestionIndex];\n const { response_id: activeQuestionId } = activeQuestion ?? {};\n const [isSummaryOpened, setIsSummaryOpened] = useState(false);\n const isAppended = activeQuestionId ? appendedQuestionIds.includes(activeQuestionId) : false;\n\n const handleItemNumberClick = useCallback(\n (questionId: string) => {\n setIsSummaryOpened(false);\n onItemNumberClick(questionId);\n },\n [onItemNumberClick],\n );\n\n const handleOnGoToReview = useCallback(() => {\n setIsSummaryOpened(false);\n onGoToReview();\n }, [onGoToReview]);\n\n const handleSummaryButtonClick = useCallback(() => {\n setIsSummaryOpened(prev => !prev);\n }, []);\n\n const handleBackFromSummary = useCallback(() => {\n setSummaryVisible(false);\n\n const questionId = questions[questions.length - 1]?.response_id;\n\n if (questionId) {\n if (questionsScrollable) {\n requestAnimationFrame(() => scrollToQuestion(questionId));\n } else {\n setActiveQuestionId(questionId);\n }\n }\n }, [questions, questionsScrollable, setActiveQuestionId, setSummaryVisible]);\n\n const handleSheetSubmitButtonClick = useCallback(() => {\n onSubmit?.(responses);\n }, [onSubmit, responses]);\n\n if (isSummaryVisible) {\n return (\n <WorksheetSummaryController\n onBack={handleBackFromSummary}\n behavior={behavior}\n onSubmit={handleSheetSubmitButtonClick}\n canSubmitWorksheet={!!canSubmitWorksheet}\n />\n );\n }\n\n return (\n <>\n <FlexView $flexDirection=\"row\" $flexGap={12}>\n <ScribbleSwitch\n isScribblingEnabled={isScribblingEnabled}\n setIsScribblingEnabled={setIsScribblingEnabled}\n isCanvasEnabled={!!behavior.canvasEnabled}\n loggerRef={loggerRef}\n canToggleScribbling={behavior.canScribble}\n />\n {behavior.canShowDesmosCalc && (\n <Styled.IconContainer\n $active={showCalculator}\n $alignItems=\"center\"\n $justifyContent=\"space-between\"\n onClick={onCalculatorOpen}\n >\n <CalculatorIcon />\n </Styled.IconContainer>\n )}\n </FlexView>\n {isScribblingEnabled && <Toolbar userType={userType} renderAs=\"canvas\" />}\n {navigationBar === 'bottom' && (\n <>\n {isSummaryOpened && (\n <Styled.SummaryWrapper $alignItems=\"center\">\n <WorksheetQuestionsSummary\n activeQuestionIndex={activeQuestionIndex}\n lastUnlockedQuestionIndex={lastUnlockedQuestionIndex}\n onItemNumberClick={handleItemNumberClick}\n questions={questions}\n responses={responses}\n worksheetName={worksheetName}\n behavior={behavior}\n userType={userType}\n onClose={handleSummaryButtonClick}\n onGoToReview={handleOnGoToReview}\n summaryVisible={isSummaryVisible}\n />\n </Styled.SummaryWrapper>\n )}\n <Button\n renderAs=\"secondary\"\n widthX={13.25}\n label={`Question ${activeQuestionIndex + 1} of ${questions.length}`}\n size=\"small\"\n Icon={isSummaryOpened ? DownIcon : UpIcon}\n iconPosition=\"right\"\n justifyContent=\"space-between\"\n onClick={handleSummaryButtonClick}\n />\n </>\n )}\n {activeQuestion && activeQuestionId && (\n <WorksheetQuestionsController\n learnosity={learnosity}\n question={activeQuestion}\n questions={questions}\n responses={responses}\n canSubmitWorksheet={canSubmitWorksheet}\n questionIndex={activeQuestionIndex}\n isQuestionAppended={isAppended}\n isQuestionUnlocked={activeQuestionIndex <= lastUnlockedQuestionIndex}\n response={responses[activeQuestionId]}\n behavior={behavior}\n userType={userType}\n layout={layout}\n onResponseChange={onResponseChange}\n onTeacherValidation={onTeacherValidation}\n onHelp={onHelp}\n onSubmit={handleSheetSubmitButtonClick}\n setActiveQuestionId={setActiveQuestionId}\n setBlocker={setBlocker}\n setSummaryVisible={setSummaryVisible}\n setResponses={setResponses}\n getTimeSpentOnQuestion={getTimeSpentOnQuestion}\n loggerRef={loggerRef}\n onSkip={onSkip}\n actionBarRightElement={actionBarRightElement}\n />\n )}\n </>\n );\n});\n\nexport default WorksheetActionBar;\n"],"names":["WorksheetActionBar","memo","props","userType","layout","behavior","worksheetName","questions","responses","activeQuestionIndex","lastUnlockedQuestionIndex","appendedQuestionIds","learnosity","isScribblingEnabled","isSummaryVisible","setIsScribblingEnabled","setActiveQuestionId","setResponses","getTimeSpentOnQuestion","setBlocker","setSummaryVisible","showCalculator","onItemNumberClick","onTeacherValidation","onGoToReview","onResponseChange","onHelp","onSubmit","onCalculatorOpen","canSubmitWorksheet","loggerRef","onSkip","actionBarRightElement","navigationBar","questionsScrollable","activeQuestion","activeQuestionId","isSummaryOpened","setIsSummaryOpened","useState","isAppended","handleItemNumberClick","useCallback","questionId","handleOnGoToReview","handleSummaryButtonClick","prev","handleBackFromSummary","_a","scrollToQuestion","handleSheetSubmitButtonClick","jsx","WorksheetSummaryController","jsxs","Fragment","FlexView","ScribbleSwitch","Styled.IconContainer","CalculatorIcon","Toolbar","Styled.SummaryWrapper","WorksheetQuestionsSummary","Button","DownIcon","UpIcon","WorksheetQuestionsController"],"mappings":";;;;;;;;;;;;;;AAgBA,MAAMA,KAAmDC,EAAK,SAA4BC,GAAO;AACzF,QAAA;AAAA,IACJ,UAAAC;AAAA,IACA,QAAAC;AAAA,IACA,UAAAC;AAAA,IACA,eAAAC;AAAA,IACA,WAAAC;AAAA,IACA,WAAAC;AAAA,IACA,qBAAAC;AAAA,IACA,2BAAAC;AAAA,IACA,qBAAAC;AAAA,IACA,YAAAC;AAAA,IACA,qBAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,wBAAAC;AAAA,IACA,qBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,wBAAAC;AAAA,IACA,YAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,qBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,QAAAC;AAAA,IACA,UAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,WAAAC;AAAA,IACA,QAAAC;AAAA,IACA,uBAAAC;AAAA,EACE,IAAA9B,GACE,EAAE,eAAA+B,GAAe,qBAAAC,EAAwB,IAAA9B,GACzC+B,IAAiB5B,EAAUE,CAAmB,GAC9C,EAAE,aAAa2B,MAAqBD,KAAkB,CAAA,GACtD,CAACE,GAAiBC,CAAkB,IAAIC,EAAS,EAAK,GACtDC,IAAaJ,IAAmBzB,EAAoB,SAAS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gB;AAAA,QACpC,UAAA/B;AAAA,QACA,UAAAF;AAAA,QACA,QAAAC;AAAA,QACA,kBAAAqB;AAAA,QACA,qBAAAF;AAAA,QACA,QAAAG;AAAA,QACA,UAAUwB;AAAA,QACV,qBAAAlC;AAAA,QACA,YAAAG;AAAA,QACA,mBAAAC;AAAA,QACA,cAAAH;AAAA,QACA,wBAAAC;AAAA,QACA,WAAAY;AAAA,QACA,QAAAC;AAAA,QACA,uBAAAC;AAAA,MAAA;AAAA,IACF;AAAA,EAEJ,EAAA,CAAA;AAEJ,CAAC;"}
|
|
@@ -1,49 +1,60 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { memo as
|
|
3
|
-
import f from "
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { memo as u, useCallback as x } from "react";
|
|
3
|
+
import f from "./blockers/exit-ticket-intervention.js";
|
|
4
|
+
import d from "./blockers/exit-ticket-review.js";
|
|
5
|
+
import w from "./blockers/exit-ticket-review-available.js";
|
|
6
|
+
import E from "./blockers/exit-ticket-student-submission.js";
|
|
7
|
+
import T from "./blockers/optional-items-assignment.js";
|
|
8
|
+
import v from "./blockers/optional-items-skip.js";
|
|
9
|
+
const B = u(function(m) {
|
|
8
10
|
const {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
11
|
+
studentName: t,
|
|
12
|
+
lastUnlockedQuestion: c,
|
|
13
|
+
blocker: a,
|
|
14
|
+
onBlockerClose: i,
|
|
15
|
+
onOptionalItemAssignment: l,
|
|
16
|
+
onOptionalItemSkip: n,
|
|
17
|
+
onTeacherValidation: o
|
|
18
|
+
} = m, { item_type: r, response_id: s } = c, k = x(
|
|
19
|
+
(p) => {
|
|
20
|
+
o == null || o(s, p);
|
|
21
|
+
},
|
|
22
|
+
[o, s]
|
|
23
|
+
);
|
|
24
|
+
switch (a) {
|
|
25
|
+
case "exit-ticket-teacher-intervention":
|
|
26
|
+
return /* @__PURE__ */ e(f, { studentName: t, onViewExitTicket: i });
|
|
27
|
+
case "exit-ticket-student-submission":
|
|
28
|
+
return /* @__PURE__ */ e(E, { onViewExitTicket: i });
|
|
29
|
+
case "exit-ticket-review-available":
|
|
30
|
+
return /* @__PURE__ */ e(w, { studentName: t, onViewExitTicket: i });
|
|
31
|
+
case "exit-ticket-review":
|
|
32
|
+
return /* @__PURE__ */ e(d, { studentName: t, onViewExitValidate: k });
|
|
33
|
+
case "optional-items-assignment":
|
|
34
|
+
return /* @__PURE__ */ e(
|
|
35
|
+
T,
|
|
36
|
+
{
|
|
37
|
+
studentName: t,
|
|
38
|
+
itemType: r,
|
|
39
|
+
onAssign: l,
|
|
40
|
+
onSkip: n
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
case "optional-items-skip":
|
|
44
|
+
return /* @__PURE__ */ e(
|
|
45
|
+
v,
|
|
46
|
+
{
|
|
47
|
+
studentName: t,
|
|
48
|
+
itemType: r,
|
|
49
|
+
onSkip: n,
|
|
50
|
+
onCancel: i
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
default:
|
|
54
|
+
return null;
|
|
55
|
+
}
|
|
45
56
|
});
|
|
46
57
|
export {
|
|
47
|
-
|
|
58
|
+
B as default
|
|
48
59
|
};
|
|
49
60
|
//# sourceMappingURL=worksheet-blocker.js.map
|