@cuemath/leap 3.2.18-mb → 3.2.19-beta-0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/illustrations/illustrations.js +11 -5
- package/dist/assets/illustrations/illustrations.js.map +1 -1
- package/dist/assets/line-icons/icons/after-noon.js +34 -0
- package/dist/assets/line-icons/icons/after-noon.js.map +1 -0
- package/dist/assets/line-icons/icons/apple-icon-white.js +42 -0
- package/dist/assets/line-icons/icons/apple-icon-white.js.map +1 -0
- package/dist/assets/line-icons/icons/cue-board-filled.js +33 -0
- package/dist/assets/line-icons/icons/cue-board-filled.js.map +1 -0
- package/dist/assets/line-icons/icons/cue-board.js +23 -0
- package/dist/assets/line-icons/icons/cue-board.js.map +1 -0
- package/dist/assets/line-icons/icons/evening.js +35 -0
- package/dist/assets/line-icons/icons/evening.js.map +1 -0
- package/dist/assets/line-icons/icons/hint-fill.js +35 -0
- package/dist/assets/line-icons/icons/hint-fill.js.map +1 -0
- package/dist/assets/line-icons/icons/morning.js +35 -0
- package/dist/assets/line-icons/icons/morning.js.map +1 -0
- package/dist/assets/line-icons/icons/screen-grab-filled.js +35 -0
- package/dist/assets/line-icons/icons/screen-grab-filled.js.map +1 -0
- package/dist/assets/line-icons/icons/screen-grab.js +23 -0
- package/dist/assets/line-icons/icons/screen-grab.js.map +1 -0
- package/dist/assets/line-icons/icons/sticker-filled.js +64 -0
- package/dist/assets/line-icons/icons/sticker-filled.js.map +1 -0
- package/dist/assets/line-icons/icons/sticker.js +46 -0
- package/dist/assets/line-icons/icons/sticker.js.map +1 -0
- package/dist/assets/lottie/lottie.js +16 -1
- package/dist/assets/lottie/lottie.js.map +1 -1
- package/dist/features/analytics-events/platform-events-student.js +2 -1
- package/dist/features/analytics-events/platform-events-student.js.map +1 -1
- package/dist/features/analytics-events/platform-events-teacher.js +6 -4
- package/dist/features/analytics-events/platform-events-teacher.js.map +1 -1
- package/dist/features/analytics-events/whitelist-events.js +10 -8
- package/dist/features/analytics-events/whitelist-events.js.map +1 -1
- package/dist/features/auth/account-selector/account-selector.js +26 -25
- package/dist/features/auth/account-selector/account-selector.js.map +1 -1
- package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-constants.js +9 -0
- package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-constants.js.map +1 -0
- package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-styled.js +52 -0
- package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-styled.js.map +1 -0
- package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message.js +93 -0
- package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message.js.map +1 -0
- package/dist/features/auth/comps/animated-avatar-message/animated-text/animated-text-styled.js +10 -0
- package/dist/features/auth/comps/animated-avatar-message/animated-text/animated-text-styled.js.map +1 -0
- package/dist/features/auth/comps/animated-avatar-message/animated-text/animated-text.js +17 -0
- package/dist/features/auth/comps/animated-avatar-message/animated-text/animated-text.js.map +1 -0
- package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js +20 -14
- package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js.map +1 -1
- package/dist/features/auth/comps/linear-progress-bar/linear-progress-bar-styled.js +12 -0
- package/dist/features/auth/comps/linear-progress-bar/linear-progress-bar-styled.js.map +1 -0
- package/dist/features/auth/comps/linear-progress-bar/linear-progress-bar.js +34 -0
- package/dist/features/auth/comps/linear-progress-bar/linear-progress-bar.js.map +1 -0
- package/dist/features/auth/comps/otp-input/otp-input-styled.js +26 -0
- package/dist/features/auth/comps/otp-input/otp-input-styled.js.map +1 -0
- package/dist/features/auth/comps/otp-input/otp-input.js +50 -0
- package/dist/features/auth/comps/otp-input/otp-input.js.map +1 -0
- package/dist/features/auth/comps/pill-button/pill-button-styled.js +44 -0
- package/dist/features/auth/comps/pill-button/pill-button-styled.js.map +1 -0
- package/dist/features/auth/comps/pill-button/pill-button.js +74 -0
- package/dist/features/auth/comps/pill-button/pill-button.js.map +1 -0
- package/dist/features/auth/comps/resend-otp/resend-otp.js +54 -47
- package/dist/features/auth/comps/resend-otp/resend-otp.js.map +1 -1
- package/dist/features/auth/comps/selectable-info-card/selectable-info-card-styled.js +17 -0
- package/dist/features/auth/comps/selectable-info-card/selectable-info-card-styled.js.map +1 -0
- package/dist/features/auth/comps/selectable-info-card/selectable-info-card.js +67 -0
- package/dist/features/auth/comps/selectable-info-card/selectable-info-card.js.map +1 -0
- package/dist/features/auth/comps/tabs/tab-tem/tab-item.js +29 -17
- package/dist/features/auth/comps/tabs/tab-tem/tab-item.js.map +1 -1
- package/dist/features/auth/comps/tabs/tabs-styled.js +22 -10
- package/dist/features/auth/comps/tabs/tabs-styled.js.map +1 -1
- package/dist/features/auth/comps/tabs/tabs.js +5 -5
- package/dist/features/auth/comps/tabs/tabs.js.map +1 -1
- package/dist/features/auth/comps/user-list/user-item/user-item.js +30 -31
- package/dist/features/auth/comps/user-list/user-item/user-item.js.map +1 -1
- package/dist/features/auth/comps/user-list/user-list.js +35 -34
- package/dist/features/auth/comps/user-list/user-list.js.map +1 -1
- package/dist/features/auth/forgot-password/forgot-password-styled.js +14 -15
- package/dist/features/auth/forgot-password/forgot-password-styled.js.map +1 -1
- package/dist/features/auth/login/identifier-otp-form/identifier-otp-form-styled.js +6 -7
- package/dist/features/auth/login/identifier-otp-form/identifier-otp-form-styled.js.map +1 -1
- package/dist/features/auth/login/login-styled.js +8 -9
- package/dist/features/auth/login/login-styled.js.map +1 -1
- package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide-constants.js +19 -0
- package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide-constants.js.map +1 -0
- package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide-styled.js +32 -0
- package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide-styled.js.map +1 -0
- package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide.js +44 -0
- package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide.js.map +1 -0
- package/dist/features/auth/pla-signup/signup-header/signup-header.js +54 -0
- package/dist/features/auth/pla-signup/signup-header/signup-header.js.map +1 -0
- package/dist/features/auth/pla-signup/signup-options/signup-options.js +83 -0
- package/dist/features/auth/pla-signup/signup-options/signup-options.js.map +1 -0
- package/dist/features/chapters-v2/utils/node-card-utils.js +9 -9
- package/dist/features/chapters-v2/utils/node-card-utils.js.map +1 -1
- package/dist/features/circle-games/game-launcher/comps/tables-card/tables-card-styled.js +4 -4
- package/dist/features/circle-games/game-launcher/comps/tables-card/tables-card-styled.js.map +1 -1
- package/dist/features/circle-games/game-launcher/comps/tables-card/tables-card.js +85 -85
- package/dist/features/circle-games/game-launcher/comps/tables-card/tables-card.js.map +1 -1
- package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js +121 -98
- package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js.map +1 -1
- package/dist/features/circle-games/game-launcher/hooks/use-table-infinite-launcher-journey/use-table-infinite-launcher-journey.js +29 -28
- package/dist/features/circle-games/game-launcher/hooks/use-table-infinite-launcher-journey/use-table-infinite-launcher-journey.js.map +1 -1
- package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/use-table-launcher-journey.js +43 -42
- package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/use-table-launcher-journey.js.map +1 -1
- package/dist/features/circle-games/games/tutorial/tutorial.js +43 -35
- package/dist/features/circle-games/games/tutorial/tutorial.js.map +1 -1
- package/dist/features/circle-games/sign-up/comp/grade-input/grade-input-styled.js +2 -2
- package/dist/features/circle-games/sign-up/comp/grade-input/grade-input-styled.js.map +1 -1
- package/dist/features/circle-games/sign-up/comp/grade-input/grade-input.js +1 -1
- package/dist/features/circle-games/sign-up/comp/grade-input/grade-input.js.map +1 -1
- package/dist/features/circle-games/sign-up/comp/username-input/username-input.js +26 -24
- package/dist/features/circle-games/sign-up/comp/username-input/username-input.js.map +1 -1
- package/dist/features/circle-games/sign-up/constants.js +3 -1
- package/dist/features/circle-games/sign-up/constants.js.map +1 -1
- package/dist/features/communication/pub-sub/constants.js +7 -4
- package/dist/features/communication/pub-sub/constants.js.map +1 -1
- package/dist/features/cue-canvas/hooks/use-canvas-sync-broker.js +42 -42
- package/dist/features/cue-canvas/hooks/use-canvas-sync-broker.js.map +1 -1
- package/dist/features/homework/homework-card-view.js +85 -97
- package/dist/features/homework/homework-card-view.js.map +1 -1
- package/dist/features/homework/homework-card.js +44 -42
- package/dist/features/homework/homework-card.js.map +1 -1
- package/dist/features/homework/hw-card-list/hw-card-list-view.js +31 -29
- package/dist/features/homework/hw-card-list/hw-card-list-view.js.map +1 -1
- package/dist/features/homework/hw-card-list/hw-card-list.js +54 -48
- package/dist/features/homework/hw-card-list/hw-card-list.js.map +1 -1
- package/dist/features/homework/utils.js +33 -27
- package/dist/features/homework/utils.js.map +1 -1
- package/dist/features/journey/comps/coachmark/coachmark.js +29 -27
- package/dist/features/journey/comps/coachmark/coachmark.js.map +1 -1
- package/dist/features/journey/hooks/use-home-page-journey/tooltip-item.js +17 -11
- package/dist/features/journey/hooks/use-home-page-journey/tooltip-item.js.map +1 -1
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-assigned.js +72 -0
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-assigned.js.map +1 -0
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-attempt-journey.js +59 -0
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-attempt-journey.js.map +1 -0
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-dashboard-journey.js +63 -0
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-dashboard-journey.js.map +1 -0
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-intro-journey.js +67 -0
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-intro-journey.js.map +1 -0
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-progress-journey.js +70 -0
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-progress-journey.js.map +1 -0
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-review-journey.js +59 -0
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-review-journey.js.map +1 -0
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-unassign-journey.js +59 -0
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-unassign-journey.js.map +1 -0
- package/dist/features/journey/hooks/use-puzzles-journey/use-teacher-puzzle-assigned-journey.js +70 -0
- package/dist/features/journey/hooks/use-puzzles-journey/use-teacher-puzzle-assigned-journey.js.map +1 -0
- package/dist/features/journey/journey-id/journey-id-student.js +2 -2
- package/dist/features/journey/journey-id/journey-id-student.js.map +1 -1
- package/dist/features/journey/journey-id/journey-id-teacher.js +2 -2
- package/dist/features/journey/journey-id/journey-id-teacher.js.map +1 -1
- package/dist/features/journey/use-journey/journey-context-provider.js +73 -72
- package/dist/features/journey/use-journey/journey-context-provider.js.map +1 -1
- package/dist/features/journey/use-journey/journey-styled.js +6 -4
- package/dist/features/journey/use-journey/journey-styled.js.map +1 -1
- package/dist/features/puzzles/api/puzzle-dashboard.js +10 -0
- package/dist/features/puzzles/api/puzzle-dashboard.js.map +1 -0
- package/dist/features/puzzles/app/puzzle-app-styled.js +85 -0
- package/dist/features/puzzles/app/puzzle-app-styled.js.map +1 -0
- package/dist/features/puzzles/app/puzzle-app-view.js +120 -0
- package/dist/features/puzzles/app/puzzle-app-view.js.map +1 -0
- package/dist/features/puzzles/app/puzzle-app.js +62 -0
- package/dist/features/puzzles/app/puzzle-app.js.map +1 -0
- package/dist/features/puzzles/comps/puzzle-card-styled.js +24 -69
- package/dist/features/puzzles/comps/puzzle-card-styled.js.map +1 -1
- package/dist/features/puzzles/comps/puzzle-card.js +79 -30
- package/dist/features/puzzles/comps/puzzle-card.js.map +1 -1
- package/dist/features/puzzles/constants/puzzle-container.js +8 -0
- package/dist/features/puzzles/constants/puzzle-container.js.map +1 -0
- package/dist/features/puzzles/puzzle-analytics-events.js +11 -0
- package/dist/features/puzzles/puzzle-analytics-events.js.map +1 -0
- package/dist/features/puzzles/puzzle-container/puzzle-container-styled.js +55 -25
- package/dist/features/puzzles/puzzle-container/puzzle-container-styled.js.map +1 -1
- package/dist/features/puzzles/puzzle-container/puzzle-container-view.js +55 -0
- package/dist/features/puzzles/puzzle-container/puzzle-container-view.js.map +1 -0
- package/dist/features/puzzles/puzzle-container/puzzle-container.js +100 -107
- package/dist/features/puzzles/puzzle-container/puzzle-container.js.map +1 -1
- package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard-styled.js +37 -0
- package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard-styled.js.map +1 -0
- package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard.js +110 -0
- package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard.js.map +1 -0
- package/dist/features/puzzles/puzzle-feedback-celebration/puzzle-feedback-celebration.js +1 -1
- package/dist/features/puzzles/puzzle-feedback-celebration/puzzle-feedback-celebration.js.map +1 -1
- package/dist/features/puzzles/utils/puzzle-pattern.js +28 -13
- package/dist/features/puzzles/utils/puzzle-pattern.js.map +1 -1
- package/dist/features/ui/arrow-tooltip/arrow-tooltip-constants.js +6 -0
- package/dist/features/ui/arrow-tooltip/arrow-tooltip-constants.js.map +1 -0
- package/dist/features/ui/arrow-tooltip/arrow-tooltip-styled.js +12 -60
- package/dist/features/ui/arrow-tooltip/arrow-tooltip-styled.js.map +1 -1
- package/dist/features/ui/arrow-tooltip/arrow-tooltip.js +72 -77
- package/dist/features/ui/arrow-tooltip/arrow-tooltip.js.map +1 -1
- package/dist/features/ui/arrow-tooltip/comps/tooltip-body-styled.js +63 -0
- package/dist/features/ui/arrow-tooltip/comps/tooltip-body-styled.js.map +1 -0
- package/dist/features/ui/arrow-tooltip/comps/tooltip-body.js +21 -0
- package/dist/features/ui/arrow-tooltip/comps/tooltip-body.js.map +1 -0
- package/dist/features/ui/buttons/button/button.js +41 -38
- package/dist/features/ui/buttons/button/button.js.map +1 -1
- package/dist/features/ui/buttons/icon-button/icon-button.js +31 -27
- package/dist/features/ui/buttons/icon-button/icon-button.js.map +1 -1
- package/dist/features/ui/buttons/text-button/text-button.js +26 -22
- package/dist/features/ui/buttons/text-button/text-button.js.map +1 -1
- package/dist/features/ui/drawer/drawer-styled.js +34 -0
- package/dist/features/ui/drawer/drawer-styled.js.map +1 -0
- package/dist/features/ui/drawer/drawer.js +42 -0
- package/dist/features/ui/drawer/drawer.js.map +1 -0
- package/dist/features/ui/error/error.js +65 -27
- package/dist/features/ui/error/error.js.map +1 -1
- package/dist/features/ui/grade-selector/grade-selector.js +33 -27
- package/dist/features/ui/grade-selector/grade-selector.js.map +1 -1
- package/dist/features/ui/image/image.js +1 -1
- package/dist/features/ui/image/image.js.map +1 -1
- package/dist/features/ui/lottie-animation/lottie-animation.js +25 -29
- package/dist/features/ui/lottie-animation/lottie-animation.js.map +1 -1
- package/dist/features/ui/modals/modal-styled.js +34 -58
- package/dist/features/ui/modals/modal-styled.js.map +1 -1
- package/dist/features/ui/modals/modal.js +40 -14
- package/dist/features/ui/modals/modal.js.map +1 -1
- package/dist/features/ui/nudge/nudge-styled.js +14 -7
- package/dist/features/ui/nudge/nudge-styled.js.map +1 -1
- package/dist/features/ui/nudge/nudge.js +13 -12
- package/dist/features/ui/nudge/nudge.js.map +1 -1
- package/dist/features/{stickers/sticker-selector/sticker-selector-styles.js → ui/sticker-grid/sticker-grid-styles.js} +3 -4
- package/dist/features/ui/sticker-grid/sticker-grid-styles.js.map +1 -0
- package/dist/features/ui/sticker-grid/sticker-grid.js +24 -0
- package/dist/features/ui/sticker-grid/sticker-grid.js.map +1 -0
- package/dist/features/ui/sticker-grid/sticker.js +57 -0
- package/dist/features/ui/sticker-grid/sticker.js.map +1 -0
- package/dist/features/ui/stickers/constants.js +6 -0
- package/dist/features/ui/stickers/constants.js.map +1 -0
- package/dist/features/{stickers/stickers-effects/effects.js → ui/stickers/stickers-effects.js} +6 -6
- package/dist/features/ui/stickers/stickers-effects.js.map +1 -0
- package/dist/features/{stickers/stickers-effects/stickers-effects-styled.js → ui/stickers/stickers-styled.js} +2 -2
- package/dist/features/ui/stickers/stickers-styled.js.map +1 -0
- package/dist/features/ui/stickers/stickers-utils.js +91 -0
- package/dist/features/ui/stickers/stickers-utils.js.map +1 -0
- package/dist/features/ui/stickers/stickers.js +40 -0
- package/dist/features/ui/stickers/stickers.js.map +1 -0
- package/dist/features/ui/streak-icon/streak-icon-styled.js +13 -13
- package/dist/features/ui/streak-icon/streak-icon-styled.js.map +1 -1
- package/dist/features/ui/streak-icon/streak-icon.js +17 -15
- package/dist/features/ui/streak-icon/streak-icon.js.map +1 -1
- package/dist/features/ui/tab/tab.js +30 -26
- package/dist/features/ui/tab/tab.js.map +1 -1
- package/dist/features/ui/text/text.js +40 -36
- package/dist/features/ui/text/text.js.map +1 -1
- package/dist/features/ui/theme/button.js +78 -78
- package/dist/features/ui/theme/button.js.map +1 -1
- package/dist/features/ui/theme/constants.js +4 -2
- package/dist/features/ui/theme/constants.js.map +1 -1
- package/dist/features/ui/theme/get-device.js +3 -3
- package/dist/features/ui/theme/get-device.js.map +1 -1
- package/dist/features/worksheet/worksheet/constants.js +12 -13
- package/dist/features/worksheet/worksheet/constants.js.map +1 -1
- package/dist/features/worksheet/worksheet/hooks/use-worksheet-journey.js +28 -0
- package/dist/features/worksheet/worksheet/hooks/use-worksheet-journey.js.map +1 -0
- package/dist/features/worksheet/worksheet/worksheet-helpers.js +20 -19
- package/dist/features/worksheet/worksheet/worksheet-helpers.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/learnosity-question.js +29 -25
- package/dist/features/worksheet/worksheet/worksheet-question/learnosity-question.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question-styled.js +101 -47
- package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question-styled.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js +244 -255
- package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-questions-controller/worksheet-questions-controller.js +242 -207
- package/dist/features/worksheet/worksheet/worksheet-questions-controller/worksheet-questions-controller.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-styled.js +45 -36
- package/dist/features/worksheet/worksheet/worksheet-styled.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-types.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet.js +321 -325
- package/dist/features/worksheet/worksheet/worksheet.js.map +1 -1
- package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js +1 -1
- package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js.map +1 -1
- package/dist/features/worksheet/worksheet-preview/worksheet-preview.js +44 -35
- package/dist/features/worksheet/worksheet-preview/worksheet-preview.js.map +1 -1
- package/dist/index.d.ts +281 -61
- package/dist/index.js +585 -537
- package/dist/index.js.map +1 -1
- package/dist/static/animated-avatar.1ad58b1d.json +1 -0
- package/dist/static/animated-avatar.69b07505.json +1 -0
- package/dist/static/animated-avatar.9c560b46.json +1 -0
- package/dist/static/calendar-purple.1a840b41.svg +1 -0
- package/dist/static/flying-disk.c7f6ed39.json +1 -0
- package/dist/static/graduation-cap.3be3340a.json +1 -0
- package/dist/static/handshake.287e7dfb.svg +1 -0
- package/dist/static/light-bulb.c6db0b23.json +1 -0
- package/dist/static/money.332aacf1.svg +1 -0
- package/dist/static/muscle.9bcfb8a7.json +1 -0
- package/dist/static/nudge-tap.0591aef4.json +1 -0
- package/dist/static/parent-avatar.822c7b9b.svg +1 -0
- package/dist/static/pencil.23df9da0.json +1 -0
- package/dist/static/plus-sign.de6af957.json +1 -0
- package/dist/static/puzzle-blue-lottie.7017e2e8.json +1 -0
- package/dist/static/puzzle-blue-lottie.bf64ebc5.json +12760 -0
- package/dist/static/puzzle-dashboard-banner.b7956519.svg +1 -0
- package/dist/static/puzzle-green-lottie.1da90698.json +1 -0
- package/dist/static/puzzle-orange-lottie.cfcf3724.json +1 -0
- package/dist/static/puzzle-pattern-blue.abff0164.svg +1 -0
- package/dist/static/puzzle-pattern-green.b8ba1840.svg +1 -0
- package/dist/static/puzzle-pattern-orange.3f5a17ff.svg +1 -0
- package/dist/static/puzzle-pattern-purple.14b09759.svg +1 -0
- package/dist/static/puzzle-pattern-yellow.50917fab.svg +1 -0
- package/dist/static/puzzle-purple-lottie.e70de110.json +9860 -0
- package/dist/static/puzzle-yellow-lottie.275b5cf4.json +1 -0
- package/dist/static/racing-car.2cbf864e.json +1 -0
- package/dist/static/rocket.0a3ccab0.json +1 -0
- package/dist/static/shovel.abeec04c.json +1 -0
- package/dist/static/trustpilot.bd3d79e1.svg +1 -0
- package/package.json +1 -1
- package/dist/features/hooks/use-viewport/use-viewport.js +0 -22
- package/dist/features/hooks/use-viewport/use-viewport.js.map +0 -1
- package/dist/features/stickers/sticker-data.js +0 -234
- package/dist/features/stickers/sticker-data.js.map +0 -1
- package/dist/features/stickers/sticker-selector/sticker-selector-styles.js.map +0 -1
- package/dist/features/stickers/sticker-selector/sticker-selector.js +0 -25
- package/dist/features/stickers/sticker-selector/sticker-selector.js.map +0 -1
- package/dist/features/stickers/sticker-selector/sticker.js +0 -57
- package/dist/features/stickers/sticker-selector/sticker.js.map +0 -1
- package/dist/features/stickers/stickers-effects/effects.js.map +0 -1
- package/dist/features/stickers/stickers-effects/stickers-effects-styled.js.map +0 -1
- package/dist/features/stickers/stickers-effects/stickers-effects-utils.js +0 -93
- package/dist/features/stickers/stickers-effects/stickers-effects-utils.js.map +0 -1
- package/dist/features/stickers/stickers-effects/stickers-effects.js +0 -39
- package/dist/features/stickers/stickers-effects/stickers-effects.js.map +0 -1
- package/dist/static/nudge-tap.5cb30093.json +0 -1057
- package/dist/static/puzzle-pattern-blue.f4bea1ee.svg +0 -1
- package/dist/static/puzzle-pattern-green.c9f84bbc.svg +0 -1
- package/dist/static/puzzle-pattern-orange.3da09665.svg +0 -1
- package/dist/static/puzzle-pattern-purple.5fb5a319.svg +0 -1
- package/dist/static/puzzle-pattern-yellow.aadbf457.svg +0 -1
@@ -1,130 +1,132 @@
|
|
1
|
-
import { jsxs as R, Fragment as
|
2
|
-
import { captureMessage as
|
3
|
-
import { memo as
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import
|
8
|
-
import
|
9
|
-
import
|
10
|
-
import
|
11
|
-
import
|
12
|
-
import { WORKSHEET_NUDGE_BANNER_HEIGHT as
|
13
|
-
import
|
14
|
-
import
|
15
|
-
import
|
16
|
-
import
|
17
|
-
import
|
18
|
-
import
|
19
|
-
import { getWorksheetDimensions as
|
20
|
-
import
|
1
|
+
import { jsxs as R, Fragment as ft, jsx as o } from "react/jsx-runtime";
|
2
|
+
import { captureMessage as Z } from "@sentry/browser";
|
3
|
+
import { memo as pt, forwardRef as ht, useMemo as Q, useState as y, useCallback as v, useEffect as b, useLayoutEffect as gt } from "react";
|
4
|
+
import bt from "../../../assets/line-icons/icons/check2.js";
|
5
|
+
import It from "../../../assets/line-icons/icons/info2.js";
|
6
|
+
import St from "../../../helpers/get-device-details.js";
|
7
|
+
import Ct from "../../sheet-tools/desmos-calculator/desmos-calculator.js";
|
8
|
+
import fe from "../../ui/layout/flex-view.js";
|
9
|
+
import yt from "../../ui/text/text.js";
|
10
|
+
import vt from "../constants/events.js";
|
11
|
+
import Tt from "../user-pointer-pin/user-pin.js";
|
12
|
+
import { WORKSHEET_NUDGE_BANNER_HEIGHT as pe, TOP_NAVIGATION_HEIGHT as $t, DESMOS_CALC_POSITION as _t } from "./constants.js";
|
13
|
+
import Et from "./hooks/use-create-imperative-handle.js";
|
14
|
+
import kt from "./hooks/use-get-active-question-id.js";
|
15
|
+
import wt from "./hooks/use-time-on-questions.js";
|
16
|
+
import Nt from "./question-tips.js";
|
17
|
+
import At from "./worksheet-action-bar/worksheet-action-bar.js";
|
18
|
+
import Bt from "./worksheet-blocker/worksheet-blocker.js";
|
19
|
+
import { getWorksheetDimensions as Wt, getQuestionsFromItems as Ot, getInitialResponses as Rt, getLastUnlockedQuestionIndex as he, getRenderableQuestions as Dt, getInitialQuestionId as Vt, getQuestionMetadata as ge, scrollToQuestion as L, getWorksheetNudgeBannerInfo as Mt } from "./worksheet-helpers.js";
|
20
|
+
import xt from "./worksheet-navigation/worksheet-navigation.js";
|
21
21
|
import Ht from "./worksheet-question/worksheet-question.js";
|
22
|
-
import
|
23
|
-
import
|
24
|
-
import { NudgeBannerWrapper as
|
25
|
-
import
|
26
|
-
const
|
22
|
+
import Pt from "./worksheet-sidebar/navigator.js";
|
23
|
+
import qt from "./worksheet-sidebar/sidebar.js";
|
24
|
+
import { LearnosityStyleOverrides as Qt, NudgeBannerWrapper as Lt, NudgeBannerIcon as be, WorksheetContainer as Gt, NavigationContainer as zt, NavigationWrapper as Ft, BlockerWrapper as jt, DesmosCalcWrapper as Ut, ActionbarContainer as Kt, ActionbarWrapper as Xt, StudentWorksheetSideBar as Jt, QuestionsWrapper as Yt } from "./worksheet-styled.js";
|
25
|
+
import Zt from "./worksheet-summary/worksheet-summary.js";
|
26
|
+
const ei = (Ie, Se) => {
|
27
27
|
const {
|
28
|
-
userType:
|
29
|
-
studentName:
|
30
|
-
questionsSignedRequest:
|
28
|
+
userType: r,
|
29
|
+
studentName: Ce = "Student",
|
30
|
+
questionsSignedRequest: ye,
|
31
31
|
worksheetName: ee,
|
32
32
|
initialResponseId: ve,
|
33
|
-
initialItemIndex:
|
33
|
+
initialItemIndex: Te,
|
34
34
|
learnosityActivityRef: E,
|
35
35
|
learnosityItems: k,
|
36
|
-
learnosityResponses:
|
36
|
+
learnosityResponses: $e,
|
37
37
|
layout: T,
|
38
|
-
background:
|
38
|
+
background: _e,
|
39
39
|
behavior: a,
|
40
40
|
updatedResponses: G,
|
41
|
-
showNudgeBanner:
|
41
|
+
showNudgeBanner: Ee,
|
42
42
|
markedAsCompleted: te,
|
43
43
|
onResponseChange: I,
|
44
|
-
onBulkResponsesChange:
|
45
|
-
onResponsesChange:
|
44
|
+
onBulkResponsesChange: ke,
|
45
|
+
onResponsesChange: z,
|
46
46
|
onMediaStateChange: F,
|
47
47
|
onTeacherValidation: ie,
|
48
|
-
onOptionalItemAssignment:
|
49
|
-
onOptionalItemSkip:
|
48
|
+
onOptionalItemAssignment: we,
|
49
|
+
onOptionalItemSkip: Ne,
|
50
50
|
onExitTicketStart: D,
|
51
51
|
onExitTicketSubmit: V,
|
52
|
-
onSubmit:
|
52
|
+
onSubmit: Ae,
|
53
53
|
learnosity: S,
|
54
54
|
appendedQuestionIds: ne,
|
55
|
-
worksheetCompleted:
|
56
|
-
userId:
|
57
|
-
onPublishStrokes:
|
58
|
-
onReceiveStrokes:
|
59
|
-
initialStrokesData:
|
55
|
+
worksheetCompleted: Be,
|
56
|
+
userId: We,
|
57
|
+
onPublishStrokes: Oe,
|
58
|
+
onReceiveStrokes: Re,
|
59
|
+
initialStrokesData: De,
|
60
60
|
isCanvasEnabled: oe,
|
61
|
-
onHelp:
|
62
|
-
onPublishMouseMove:
|
63
|
-
onSubscribeMouseMove:
|
61
|
+
onHelp: Ve,
|
62
|
+
onPublishMouseMove: Me,
|
63
|
+
onSubscribeMouseMove: xe,
|
64
64
|
onActiveQuestionChange: j,
|
65
|
-
openQuestionFeedbackModal:
|
66
|
-
summaryDescription:
|
65
|
+
openQuestionFeedbackModal: He,
|
66
|
+
summaryDescription: Pe,
|
67
67
|
canSubmitWorksheet: qe,
|
68
68
|
loggerRef: w,
|
69
|
-
canResolveDoubt:
|
70
|
-
onResolveDoubt:
|
69
|
+
canResolveDoubt: Qe,
|
70
|
+
onResolveDoubt: Le,
|
71
71
|
onSkip: Ge,
|
72
|
-
onUnassign:
|
72
|
+
onUnassign: ze,
|
73
73
|
onReview: Fe,
|
74
74
|
canToggleScribbling: je = !0,
|
75
75
|
studentId: Ue,
|
76
76
|
subjectiveProps: Ke,
|
77
77
|
canShowActionBar: Xe = !0
|
78
|
-
} =
|
79
|
-
containerStyle:
|
80
|
-
containerWidth:
|
81
|
-
minQuestionHeight:
|
82
|
-
minSummaryHeight:
|
83
|
-
questionsScrollable:
|
84
|
-
navigationBar:
|
85
|
-
topOffset:
|
86
|
-
renderSideBar:
|
87
|
-
showUserPointer:
|
88
|
-
|
89
|
-
|
90
|
-
() => At(k, T),
|
78
|
+
} = Ie, { initialQuestion: Je, navigationMode: p, teacherValidationEnabled: U, maximumAttempts: re } = a, {
|
79
|
+
containerStyle: M,
|
80
|
+
containerWidth: Ye,
|
81
|
+
minQuestionHeight: se,
|
82
|
+
minSummaryHeight: Ze,
|
83
|
+
questionsScrollable: x,
|
84
|
+
navigationBar: et,
|
85
|
+
topOffset: H,
|
86
|
+
renderSideBar: tt,
|
87
|
+
showUserPointer: it = !0
|
88
|
+
} = T, ae = re === -2, { actionbarHeight: C, maxQuestionWidth: K, questionsContainerWidth: X } = Q(
|
89
|
+
() => Wt(k, T),
|
91
90
|
[T, k]
|
92
|
-
), [t] =
|
93
|
-
() =>
|
91
|
+
), [t] = y(
|
92
|
+
() => Ot(k, {
|
94
93
|
sectioned: U && p !== "ADAPTIVE" && p !== "CURRENT",
|
95
94
|
adaptive: p === "ADAPTIVE"
|
96
95
|
})
|
97
|
-
), [c, N] =
|
98
|
-
() =>
|
99
|
-
), [
|
100
|
-
() => p !== "OPEN" ?
|
96
|
+
), [c, N] = y(
|
97
|
+
() => $e ?? Rt(t)
|
98
|
+
), [ce, nt] = y(!1), h = Q(
|
99
|
+
() => p !== "OPEN" ? he({
|
101
100
|
questions: t,
|
102
101
|
responses: c,
|
103
102
|
behavior: a,
|
104
|
-
userType:
|
103
|
+
userType: r
|
105
104
|
}) : t.length - 1,
|
106
|
-
[a, p, t, c,
|
107
|
-
),
|
108
|
-
() =>
|
105
|
+
[a, p, t, c, r]
|
106
|
+
), ot = Q(
|
107
|
+
() => Dt({ questions: t, lastUnlockedQuestionIndex: h, userType: r }),
|
108
|
+
[t, h, r]
|
109
|
+
), l = t[h], s = c[(l == null ? void 0 : l.response_id) ?? ""], { bannerBackgroundColor: rt, label: st } = Mt(r, !!te), [A] = y(
|
110
|
+
() => Vt({
|
109
111
|
questions: t,
|
110
|
-
initialQuestion:
|
111
|
-
lastUnlockedQuestionIndex:
|
112
|
+
initialQuestion: Je,
|
113
|
+
lastUnlockedQuestionIndex: he({
|
112
114
|
questions: t,
|
113
115
|
responses: c,
|
114
116
|
behavior: a,
|
115
|
-
userType:
|
117
|
+
userType: r
|
116
118
|
}),
|
117
119
|
initialResponseId: ve,
|
118
|
-
initialItemIndex:
|
120
|
+
initialItemIndex: Te
|
119
121
|
})
|
120
|
-
), { activeQuestionId: B, setActiveQuestionId:
|
122
|
+
), { activeQuestionId: B, setActiveQuestionId: P, intersectionObserver: J } = kt(A), f = Q(
|
121
123
|
() => t.findIndex((e) => e.response_id === B),
|
122
124
|
[B, t]
|
123
|
-
), [g,
|
125
|
+
), [g, Y] = y(!1), [le, W] = y(), [de, ue] = y(!1), me = wt(a, c, B), at = v(
|
124
126
|
(e, i, n) => {
|
125
127
|
const d = i === "SIMULATION" ? "simState" : void 0;
|
126
128
|
d && (I ? N((u) => {
|
127
|
-
const m = e.response_id, $ =
|
129
|
+
const m = e.response_id, $ = ge(t, m);
|
128
130
|
if (!$) return u;
|
129
131
|
const _ = {
|
130
132
|
...$,
|
@@ -143,10 +145,10 @@ const Jt = (be, Ie) => {
|
|
143
145
|
}) : F && F(e, i, n));
|
144
146
|
},
|
145
147
|
[F, I, t]
|
146
|
-
),
|
148
|
+
), ct = v(
|
147
149
|
(e, i) => {
|
148
150
|
N((n) => {
|
149
|
-
const d =
|
151
|
+
const d = ge(t, e);
|
150
152
|
return d ? {
|
151
153
|
...n,
|
152
154
|
[e]: {
|
@@ -158,78 +160,78 @@ const Jt = (be, Ie) => {
|
|
158
160
|
});
|
159
161
|
},
|
160
162
|
[t]
|
161
|
-
), O =
|
163
|
+
), O = v(() => {
|
162
164
|
W((e) => {
|
163
165
|
var i;
|
164
166
|
if (e) {
|
165
167
|
const n = (i = t[h]) == null ? void 0 : i.response_id;
|
166
168
|
n && setTimeout(() => {
|
167
|
-
|
169
|
+
L(n);
|
168
170
|
}, 50);
|
169
171
|
}
|
170
172
|
});
|
171
|
-
}, [h, t]),
|
173
|
+
}, [h, t]), q = v(
|
172
174
|
(e) => {
|
173
|
-
|
175
|
+
Y(!1), x ? requestAnimationFrame(() => L(e)) : P(e);
|
174
176
|
},
|
175
|
-
[
|
176
|
-
),
|
177
|
-
|
178
|
-
}, []),
|
179
|
-
|
180
|
-
}, []),
|
181
|
-
|
177
|
+
[x, P]
|
178
|
+
), lt = v(() => {
|
179
|
+
ue(!1);
|
180
|
+
}, []), dt = v(() => {
|
181
|
+
ue(!0);
|
182
|
+
}, []), ut = v(() => {
|
183
|
+
Y(!0);
|
182
184
|
}, []);
|
183
185
|
return b(() => {
|
184
186
|
const e = t[f];
|
185
187
|
e && j && j(e);
|
186
|
-
}, [j, t, f]),
|
188
|
+
}, [j, t, f]), Et(Se, {
|
187
189
|
behavior: a,
|
188
190
|
questions: t,
|
189
191
|
setResponses: N,
|
190
192
|
onResponseChange: I,
|
191
|
-
onBulkResponsesChange:
|
192
|
-
getTimeSpentOnQuestion:
|
193
|
+
onBulkResponsesChange: ke,
|
194
|
+
getTimeSpentOnQuestion: me
|
193
195
|
}), b(() => () => {
|
194
|
-
|
195
|
-
}, [
|
196
|
-
|
197
|
-
}, [
|
196
|
+
J.disconnect();
|
197
|
+
}, [J]), b(() => {
|
198
|
+
z && c && z(c);
|
199
|
+
}, [z, c]), b(() => {
|
198
200
|
G && N(G);
|
199
|
-
}, [G]),
|
201
|
+
}, [G]), gt(() => {
|
200
202
|
let e;
|
201
|
-
return S && A && (
|
202
|
-
|
203
|
-
}, 400) :
|
203
|
+
return S && A && (St().browser_name === "Safari" ? e = setTimeout(() => {
|
204
|
+
L(A);
|
205
|
+
}, 400) : L(A)), () => {
|
204
206
|
clearTimeout(e);
|
205
207
|
};
|
206
|
-
}, [S, A,
|
208
|
+
}, [S, A, H]), b(() => {
|
207
209
|
if (a.teacherValidationEnabled && l) {
|
208
210
|
const { item_type: e, instructor_stimulus: i, is_optional: n } = l;
|
209
|
-
|
211
|
+
r === "TEACHER" && (e === "exit-ticket" && i !== "SystemIntro" ? s != null && s.submittedByStudent && !(s != null && s.validatedByTeacher) ? W("exit-ticket-review-available") : s != null && s.validatedByTeacher ? O() : W("exit-ticket-teacher-intervention") : n ? s != null && s.assignStatus ? O() : W("optional-items-assignment") : n || O());
|
210
212
|
}
|
211
213
|
}, [
|
212
214
|
a.teacherValidationEnabled,
|
213
215
|
O,
|
214
216
|
l,
|
215
|
-
|
216
|
-
|
217
|
+
s,
|
218
|
+
r
|
217
219
|
]), b(() => {
|
218
220
|
if (a.teacherValidationEnabled && l) {
|
219
221
|
const { item_type: e, instructor_stimulus: i } = l;
|
220
|
-
|
222
|
+
r === "STUDENT" && e === "exit-ticket" && i !== "SystemIntro" && (s != null && s.submittedByStudent ? V == null || V() : D == null || D());
|
221
223
|
}
|
222
224
|
}, [
|
223
225
|
a.teacherValidationEnabled,
|
224
226
|
l,
|
225
|
-
|
227
|
+
s == null ? void 0 : s.submittedByStudent,
|
226
228
|
D,
|
227
229
|
V,
|
228
|
-
|
230
|
+
r
|
229
231
|
]), b(() => {
|
230
232
|
p === "CURRENT" && k.forEach(({ reference: e, questions: i }) => {
|
231
233
|
var n, d, u;
|
232
|
-
i.length < 3 ?
|
234
|
+
i.length < 3 ? Z(`Diagnostics item has Less than 3 questions: ${e}`, {
|
233
235
|
tags: {
|
234
236
|
"content-type": "learnosity",
|
235
237
|
"activity-reference": E,
|
@@ -237,7 +239,7 @@ const Jt = (be, Ie) => {
|
|
237
239
|
},
|
238
240
|
fingerprint: [`diagnostics-item-questions-count-${e}`]
|
239
241
|
// Add unique fingerprint
|
240
|
-
}) : (((n = i[0]) == null ? void 0 : n.instructor_stimulus) !== "Try" || ((d = i[1]) == null ? void 0 : d.instructor_stimulus) !== "Learn" || ((u = i[2]) == null ? void 0 : u.instructor_stimulus) !== "Apply") &&
|
242
|
+
}) : (((n = i[0]) == null ? void 0 : n.instructor_stimulus) !== "Try" || ((d = i[1]) == null ? void 0 : d.instructor_stimulus) !== "Learn" || ((u = i[2]) == null ? void 0 : u.instructor_stimulus) !== "Apply") && Z(
|
241
243
|
`Diagnostics questions sequence is incorrect expected [Try, Learn, Apply]: ${e}`,
|
242
244
|
{
|
243
245
|
tags: {
|
@@ -255,7 +257,7 @@ const Jt = (be, Ie) => {
|
|
255
257
|
const { validation: i, item_reference: n, type: d, question_number: u, metadata: m } = e;
|
256
258
|
if ((U ? d !== "clozetext" : !0) && (i != null && i.valid_response)) {
|
257
259
|
const _ = i.valid_response.value ?? [];
|
258
|
-
(_ == null ? void 0 : _.length) === 0 && ((i.alt_responses ?? []).some((
|
260
|
+
(_ == null ? void 0 : _.length) === 0 && ((i.alt_responses ?? []).some((mt) => mt.value.length > 0) || (Z(`Question has no valid response: ${m.widget_reference}`, {
|
259
261
|
tags: {
|
260
262
|
"content-type": "learnosity",
|
261
263
|
"activity-reference": E,
|
@@ -265,7 +267,7 @@ const Jt = (be, Ie) => {
|
|
265
267
|
},
|
266
268
|
fingerprint: [`no-valid-response-${m.widget_reference}`]
|
267
269
|
// Add unique fingerprint
|
268
|
-
}), w.current(
|
270
|
+
}), w.current(vt.WORKSHEET_V3_QUESTION_MISSING_VALIDATION, {
|
269
271
|
item_reference: n,
|
270
272
|
widget_reference: m.widget_reference,
|
271
273
|
question_type: d,
|
@@ -273,237 +275,231 @@ const Jt = (be, Ie) => {
|
|
273
275
|
})));
|
274
276
|
}
|
275
277
|
});
|
276
|
-
}, [E, w, t, U]), S ? /* @__PURE__ */ R(
|
277
|
-
|
278
|
-
|
278
|
+
}, [E, w, t, U]), S ? /* @__PURE__ */ R(ft, { children: [
|
279
|
+
/* @__PURE__ */ o(Qt, {}),
|
280
|
+
Ee && /* @__PURE__ */ R(
|
281
|
+
Lt,
|
279
282
|
{
|
280
283
|
$flexDirection: "row",
|
281
284
|
$justifyContent: "center",
|
282
285
|
$alignItems: "center",
|
283
286
|
$width: "100%",
|
284
287
|
$heightX: 1.75,
|
285
|
-
$height:
|
288
|
+
$height: pe,
|
286
289
|
$gap: 8,
|
287
290
|
$gutter: 8,
|
288
291
|
$flexGap: 8,
|
289
|
-
$background:
|
290
|
-
$topOffset: T.topOffset -
|
292
|
+
$background: rt,
|
293
|
+
$topOffset: T.topOffset - pe,
|
291
294
|
children: [
|
292
|
-
te ? /* @__PURE__ */ o(
|
293
|
-
/* @__PURE__ */ o(
|
295
|
+
te ? /* @__PURE__ */ o(be, { children: /* @__PURE__ */ o(bt, { width: 16, height: 16 }) }) : /* @__PURE__ */ o(be, { children: /* @__PURE__ */ o(It, { width: 16, height: 16 }) }),
|
296
|
+
/* @__PURE__ */ o(yt, { $renderAs: "ub3", children: st })
|
294
297
|
]
|
295
298
|
}
|
296
299
|
),
|
297
|
-
/* @__PURE__ */ R(
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
300
|
+
/* @__PURE__ */ R(Gt, { $background: "WHITE_1", $width: Ye, children: [
|
301
|
+
et === "top" && /* @__PURE__ */ o(zt, { $topOffset: H, $height: $t, children: /* @__PURE__ */ o(Ft, { children: /* @__PURE__ */ o(
|
302
|
+
xt,
|
303
|
+
{
|
304
|
+
placement: "top",
|
305
|
+
questions: t,
|
306
|
+
responses: c,
|
307
|
+
activeQuestionIndex: f,
|
308
|
+
lastUnlockedQuestionIndex: h,
|
309
|
+
behavior: a,
|
310
|
+
onItemNumberClick: q,
|
311
|
+
userType: r,
|
312
|
+
summaryVisible: g
|
313
|
+
}
|
314
|
+
) }) }),
|
315
|
+
le && l && /* @__PURE__ */ o(jt, { $minHeight: se, $topOffset: H, children: /* @__PURE__ */ o(fe, { $width: K, $justifyContent: "center", $alignItems: "center", children: /* @__PURE__ */ o(
|
316
|
+
Bt,
|
317
|
+
{
|
318
|
+
blocker: le,
|
319
|
+
lastUnlockedQuestion: l,
|
320
|
+
studentName: Ce,
|
321
|
+
onBlockerClose: O,
|
322
|
+
onOptionalItemAssignment: we,
|
323
|
+
onOptionalItemSkip: Ne,
|
324
|
+
onTeacherValidation: ie
|
325
|
+
}
|
326
|
+
) }) }),
|
327
|
+
it && /* @__PURE__ */ o(
|
328
|
+
Tt,
|
329
|
+
{
|
330
|
+
activeQuestionIndex: f,
|
331
|
+
onClick: q,
|
332
|
+
questions: t,
|
333
|
+
bottomOffset: C,
|
334
|
+
topOffset: H,
|
335
|
+
userType: r
|
336
|
+
}
|
337
|
+
),
|
338
|
+
de && /* @__PURE__ */ o(Ut, { children: /* @__PURE__ */ o(Ct, { initialPosition: _t, onClose: lt }) }),
|
339
|
+
/* @__PURE__ */ R(
|
340
|
+
Kt,
|
341
|
+
{
|
342
|
+
$marginTop: r === "TEACHER" && g ? "0" : C,
|
343
|
+
$height: C,
|
344
|
+
$isCardView: M === "card",
|
345
|
+
$isPuzzleCard: ae,
|
346
|
+
children: [
|
347
|
+
re !== -2 && /* @__PURE__ */ o(
|
348
|
+
Nt,
|
349
|
+
{
|
350
|
+
width: X - 32,
|
351
|
+
question: t[f],
|
352
|
+
learnosity: S,
|
353
|
+
userType: r
|
354
|
+
}
|
355
|
+
),
|
356
|
+
Xe && /* @__PURE__ */ o(
|
357
|
+
Xt,
|
358
|
+
{
|
359
|
+
$height: C,
|
360
|
+
$width: M === "card" ? X - 32 : "100%",
|
361
|
+
$isCardView: M === "card",
|
362
|
+
children: /* @__PURE__ */ o(
|
363
|
+
fe,
|
359
364
|
{
|
360
|
-
$
|
361
|
-
$
|
362
|
-
$
|
365
|
+
$gutterX: 1,
|
366
|
+
$flexDirection: "row",
|
367
|
+
$justifyContent: "space-between",
|
368
|
+
$alignItems: "center",
|
369
|
+
$width: X - 32,
|
363
370
|
children: /* @__PURE__ */ o(
|
364
|
-
|
365
|
-
{
|
366
|
-
$gutterX: 1,
|
367
|
-
$flexDirection: "row",
|
368
|
-
$justifyContent: "space-between",
|
369
|
-
$alignItems: "center",
|
370
|
-
$width: X - 32,
|
371
|
-
children: /* @__PURE__ */ o(
|
372
|
-
wt,
|
373
|
-
{
|
374
|
-
userType: s,
|
375
|
-
layout: T,
|
376
|
-
behavior: a,
|
377
|
-
worksheetName: ee,
|
378
|
-
questions: t,
|
379
|
-
responses: c,
|
380
|
-
onCalculatorOpen: ct,
|
381
|
-
activeQuestionIndex: f,
|
382
|
-
lastUnlockedQuestionIndex: h,
|
383
|
-
appendedQuestionIds: ne,
|
384
|
-
learnosity: S,
|
385
|
-
isCanvasEnabled: oe,
|
386
|
-
canSubmitWorksheet: qe,
|
387
|
-
isScribblingEnabled: ae,
|
388
|
-
isSummaryVisible: g,
|
389
|
-
setResponses: N,
|
390
|
-
getTimeSpentOnQuestion: ue,
|
391
|
-
setSummaryVisible: J,
|
392
|
-
setBlocker: W,
|
393
|
-
setIsScribblingEnabled: it,
|
394
|
-
setActiveQuestionId: q,
|
395
|
-
onItemNumberClick: P,
|
396
|
-
onGoToReview: lt,
|
397
|
-
onResponseChange: I,
|
398
|
-
onHelp: De,
|
399
|
-
onTeacherValidation: ie,
|
400
|
-
onSubmit: Ne,
|
401
|
-
showCalculator: le,
|
402
|
-
loggerRef: w,
|
403
|
-
onSkip: Ge,
|
404
|
-
onUnassign: Le,
|
405
|
-
onReview: Fe,
|
406
|
-
canToggleScribbling: je
|
407
|
-
}
|
408
|
-
)
|
409
|
-
}
|
410
|
-
)
|
411
|
-
}
|
412
|
-
),
|
413
|
-
!g && M && s === "STUDENT" && /* @__PURE__ */ o(Kt, { children: /* @__PURE__ */ o(Mt, {}) })
|
414
|
-
]
|
415
|
-
}
|
416
|
-
),
|
417
|
-
/* @__PURE__ */ R(
|
418
|
-
Xt,
|
419
|
-
{
|
420
|
-
$actionbarHeight: C,
|
421
|
-
$isCardView: H === "card",
|
422
|
-
children: [
|
423
|
-
Rt({ questions: t, lastUnlockedQuestionIndex: h, userType: s }).map(
|
424
|
-
(e, i) => {
|
425
|
-
var m, $;
|
426
|
-
const { response_id: n, is_optional: d } = e, u = (m = c[n]) == null ? void 0 : m.assignStatus;
|
427
|
-
return a.teacherValidationEnabled && (u === "skipped" || d && u !== "assigned" && s === "STUDENT") ? null : /* @__PURE__ */ o(
|
428
|
-
Ht,
|
371
|
+
At,
|
429
372
|
{
|
430
|
-
|
431
|
-
userType: s,
|
432
|
-
worksheetCompleted: Ae,
|
433
|
-
question: e,
|
434
|
-
response: c[n],
|
435
|
-
nextQuestionId: p === "ADAPTIVE" || p === "CURRENT" ? l == null ? void 0 : l.response_id : i < h ? ($ = t[i + 1]) == null ? void 0 : $.response_id : void 0,
|
436
|
-
maxQuestionWidth: K,
|
437
|
-
learnosity: S,
|
438
|
-
isActive: n === B,
|
439
|
-
isHidden: !M && n !== B || g,
|
440
|
-
canRender: f > -1 && (i === f || p !== "CURRENT" && i === f + 1),
|
441
|
-
background: $e,
|
442
|
-
appended: ne.includes(n),
|
443
|
-
behavior: a,
|
373
|
+
userType: r,
|
444
374
|
layout: T,
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
onMediaStateChange: rt,
|
449
|
-
userId: Be,
|
450
|
-
isScribblingEnabled: ae,
|
451
|
-
onPublishStrokes: We,
|
452
|
-
onReceiveStrokes: Oe,
|
453
|
-
initialStrokesData: Re,
|
454
|
-
isCanvasEnabled: oe,
|
455
|
-
onPublishMouseMove: Ve,
|
456
|
-
onSubscribeMouseMove: He,
|
457
|
-
setActiveQuestionId: q,
|
458
|
-
canResolveDoubt: Pe,
|
459
|
-
onResolveDoubt: Qe,
|
460
|
-
studentId: Ue,
|
461
|
-
subjectiveProps: Ke,
|
375
|
+
behavior: a,
|
376
|
+
worksheetName: ee,
|
377
|
+
questions: t,
|
462
378
|
responses: c,
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
379
|
+
onCalculatorOpen: dt,
|
380
|
+
activeQuestionIndex: f,
|
381
|
+
lastUnlockedQuestionIndex: h,
|
382
|
+
appendedQuestionIds: ne,
|
383
|
+
learnosity: S,
|
384
|
+
isCanvasEnabled: oe,
|
385
|
+
canSubmitWorksheet: qe,
|
386
|
+
isScribblingEnabled: ce,
|
387
|
+
isSummaryVisible: g,
|
388
|
+
setResponses: N,
|
389
|
+
getTimeSpentOnQuestion: me,
|
390
|
+
setSummaryVisible: Y,
|
391
|
+
setBlocker: W,
|
392
|
+
setIsScribblingEnabled: nt,
|
393
|
+
setActiveQuestionId: P,
|
394
|
+
onItemNumberClick: q,
|
395
|
+
onGoToReview: ut,
|
396
|
+
onResponseChange: I,
|
397
|
+
onHelp: Ve,
|
398
|
+
onTeacherValidation: ie,
|
399
|
+
onSubmit: Ae,
|
400
|
+
showCalculator: de,
|
401
|
+
loggerRef: w,
|
402
|
+
onSkip: Ge,
|
403
|
+
onUnassign: ze,
|
404
|
+
onReview: Fe,
|
405
|
+
canToggleScribbling: je
|
406
|
+
}
|
407
|
+
)
|
482
408
|
}
|
483
409
|
)
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
410
|
+
}
|
411
|
+
),
|
412
|
+
!g && x && r === "STUDENT" && /* @__PURE__ */ o(Jt, { children: /* @__PURE__ */ o(Pt, {}) })
|
413
|
+
]
|
414
|
+
}
|
415
|
+
),
|
416
|
+
/* @__PURE__ */ R(
|
417
|
+
Yt,
|
418
|
+
{
|
419
|
+
$actionbarHeight: C,
|
420
|
+
$isCardView: M === "card",
|
421
|
+
$isPuzzleCard: ae,
|
422
|
+
children: [
|
423
|
+
ot.map((e, i) => {
|
424
|
+
var m, $;
|
425
|
+
const { response_id: n, is_optional: d } = e, u = (m = c[n]) == null ? void 0 : m.assignStatus;
|
426
|
+
return a.teacherValidationEnabled && (u === "skipped" || d && u !== "assigned" && r === "STUDENT") ? null : /* @__PURE__ */ o(
|
427
|
+
Ht,
|
428
|
+
{
|
429
|
+
signedRequest: ye,
|
430
|
+
userType: r,
|
431
|
+
worksheetCompleted: Be,
|
432
|
+
question: e,
|
433
|
+
response: c[n],
|
434
|
+
nextQuestionId: p === "ADAPTIVE" || p === "CURRENT" ? l == null ? void 0 : l.response_id : i < h ? ($ = t[i + 1]) == null ? void 0 : $.response_id : void 0,
|
435
|
+
maxQuestionWidth: K,
|
436
|
+
learnosity: S,
|
437
|
+
isActive: n === B,
|
438
|
+
isHidden: !x && n !== B || g,
|
439
|
+
canRender: f > -1 && (i === f || p !== "CURRENT" && i === f + 1),
|
440
|
+
background: _e,
|
441
|
+
appended: ne.includes(n),
|
442
|
+
behavior: a,
|
443
|
+
layout: T,
|
444
|
+
actionbarHeight: C,
|
445
|
+
intersectionObserver: J,
|
446
|
+
onMarkForReview: ct,
|
447
|
+
onMediaStateChange: at,
|
448
|
+
userId: We,
|
449
|
+
isScribblingEnabled: ce,
|
450
|
+
onPublishStrokes: Oe,
|
451
|
+
onReceiveStrokes: Re,
|
452
|
+
initialStrokesData: De,
|
453
|
+
isCanvasEnabled: oe,
|
454
|
+
onPublishMouseMove: Me,
|
455
|
+
onSubscribeMouseMove: xe,
|
456
|
+
setActiveQuestionId: P,
|
457
|
+
canResolveDoubt: Qe,
|
458
|
+
onResolveDoubt: Le,
|
459
|
+
studentId: Ue,
|
460
|
+
subjectiveProps: Ke,
|
461
|
+
responses: c,
|
462
|
+
loggerRef: w
|
463
|
+
},
|
464
|
+
n
|
465
|
+
);
|
466
|
+
}),
|
467
|
+
g && /* @__PURE__ */ o(
|
468
|
+
Zt,
|
469
|
+
{
|
470
|
+
worksheetName: ee,
|
471
|
+
questions: t,
|
472
|
+
responses: c,
|
473
|
+
activeQuestionIndex: f,
|
474
|
+
lastUnlockedQuestionIndex: h,
|
475
|
+
onItemNumberClick: q,
|
476
|
+
behavior: a,
|
477
|
+
minHeight: Ze,
|
478
|
+
summaryDescription: Pe,
|
479
|
+
summaryVisible: g
|
480
|
+
}
|
481
|
+
)
|
482
|
+
]
|
483
|
+
}
|
484
|
+
),
|
485
|
+
!g && tt && /* @__PURE__ */ o(
|
486
|
+
qt,
|
487
|
+
{
|
488
|
+
questionWidth: K,
|
489
|
+
questions: t,
|
490
|
+
activeQuestionIndex: f,
|
491
|
+
learnosity: S,
|
492
|
+
userType: r,
|
493
|
+
height: se,
|
494
|
+
actionbarHeight: C,
|
495
|
+
openQuestionFeedbackModal: He,
|
496
|
+
loggerRef: w
|
497
|
+
}
|
498
|
+
)
|
499
|
+
] })
|
504
500
|
] }) : null;
|
505
|
-
},
|
501
|
+
}, wi = pt(ht(ei));
|
506
502
|
export {
|
507
|
-
|
503
|
+
wi as default
|
508
504
|
};
|
509
505
|
//# sourceMappingURL=worksheet.js.map
|