@cuemath/leap 3.2.18-mb → 3.2.18
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 +5 -0
- 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 +11 -1
- package/dist/assets/lottie/lottie.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 +7 -7
- 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/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/journey/comps/coachmark/coachmark.js +29 -27
- package/dist/features/journey/comps/coachmark/coachmark.js.map +1 -1
- 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/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/app/puzzle-app-styled.js +81 -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/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/worksheet-question/learnosity-question.js +24 -24
- package/dist/features/worksheet/worksheet/worksheet-question/learnosity-question.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js +246 -260
- package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-styled.js +37 -28
- package/dist/features/worksheet/worksheet/worksheet-styled.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet.js +166 -164
- package/dist/features/worksheet/worksheet/worksheet.js.map +1 -1
- package/dist/index.d.ts +194 -57
- package/dist/index.js +579 -541
- 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/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
@@ -1,36 +1,36 @@
|
|
1
|
-
import { jsxs as R, Fragment as
|
2
|
-
import { captureMessage as
|
3
|
-
import { memo as
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import
|
1
|
+
import { jsxs as R, Fragment as mt, jsx as o } from "react/jsx-runtime";
|
2
|
+
import { captureMessage as Z } from "@sentry/browser";
|
3
|
+
import { memo as ft, forwardRef as pt, useMemo as Q, useState as y, useCallback as v, useEffect as b, useLayoutEffect as ht } from "react";
|
4
|
+
import gt from "../../../assets/line-icons/icons/check2.js";
|
5
|
+
import bt from "../../../assets/line-icons/icons/info2.js";
|
6
|
+
import It from "../../../helpers/get-device-details.js";
|
7
|
+
import St from "../../sheet-tools/desmos-calculator/desmos-calculator.js";
|
8
8
|
import me from "../../ui/layout/flex-view.js";
|
9
|
-
import
|
10
|
-
import
|
9
|
+
import Ct from "../../ui/text/text.js";
|
10
|
+
import yt from "../constants/events.js";
|
11
11
|
import vt from "../user-pointer-pin/user-pin.js";
|
12
|
-
import { WORKSHEET_NUDGE_BANNER_HEIGHT as fe, TOP_NAVIGATION_HEIGHT as
|
13
|
-
import
|
14
|
-
import
|
15
|
-
import
|
16
|
-
import
|
17
|
-
import
|
18
|
-
import
|
19
|
-
import { getWorksheetDimensions as
|
20
|
-
import
|
21
|
-
import
|
22
|
-
import
|
23
|
-
import
|
24
|
-
import { NudgeBannerWrapper as
|
25
|
-
import
|
26
|
-
const
|
12
|
+
import { WORKSHEET_NUDGE_BANNER_HEIGHT as fe, TOP_NAVIGATION_HEIGHT as Tt, DESMOS_CALC_POSITION as $t } from "./constants.js";
|
13
|
+
import _t from "./hooks/use-create-imperative-handle.js";
|
14
|
+
import Et from "./hooks/use-get-active-question-id.js";
|
15
|
+
import kt from "./hooks/use-time-on-questions.js";
|
16
|
+
import wt from "./question-tips.js";
|
17
|
+
import Nt from "./worksheet-action-bar/worksheet-action-bar.js";
|
18
|
+
import At from "./worksheet-blocker/worksheet-blocker.js";
|
19
|
+
import { getWorksheetDimensions as Bt, getQuestionsFromItems as Wt, getInitialResponses as Ot, getLastUnlockedQuestionIndex as pe, getRenderableQuestions as Rt, getInitialQuestionId as Dt, getQuestionMetadata as he, scrollToQuestion as L, getWorksheetNudgeBannerInfo as Vt } from "./worksheet-helpers.js";
|
20
|
+
import Ht from "./worksheet-navigation/worksheet-navigation.js";
|
21
|
+
import Mt from "./worksheet-question/worksheet-question.js";
|
22
|
+
import xt from "./worksheet-sidebar/navigator.js";
|
23
|
+
import qt from "./worksheet-sidebar/sidebar.js";
|
24
|
+
import { LearnosityStyleOverrides as Pt, NudgeBannerWrapper as Qt, NudgeBannerIcon as ge, WorksheetContainer as Lt, NavigationContainer as Gt, NavigationWrapper as Ft, BlockerWrapper as jt, DesmosCalcWrapper as Ut, ActionbarContainer as Kt, ActionbarWrapper as Xt, StudentWorksheetSideBar as zt, QuestionsWrapper as Jt } from "./worksheet-styled.js";
|
25
|
+
import Yt from "./worksheet-summary/worksheet-summary.js";
|
26
|
+
const Zt = (be, Ie) => {
|
27
27
|
const {
|
28
|
-
userType:
|
28
|
+
userType: r,
|
29
29
|
studentName: Se = "Student",
|
30
30
|
questionsSignedRequest: Ce,
|
31
31
|
worksheetName: ee,
|
32
|
-
initialResponseId:
|
33
|
-
initialItemIndex:
|
32
|
+
initialResponseId: ye,
|
33
|
+
initialItemIndex: ve,
|
34
34
|
learnosityActivityRef: E,
|
35
35
|
learnosityItems: k,
|
36
36
|
learnosityResponses: Te,
|
@@ -42,8 +42,8 @@ const Jt = (be, Ie) => {
|
|
42
42
|
markedAsCompleted: te,
|
43
43
|
onResponseChange: I,
|
44
44
|
onBulkResponsesChange: Ee,
|
45
|
-
onResponsesChange:
|
46
|
-
onMediaStateChange:
|
45
|
+
onResponsesChange: F,
|
46
|
+
onMediaStateChange: j,
|
47
47
|
onTeacherValidation: ie,
|
48
48
|
onOptionalItemAssignment: ke,
|
49
49
|
onOptionalItemSkip: we,
|
@@ -61,21 +61,21 @@ const Jt = (be, Ie) => {
|
|
61
61
|
onHelp: De,
|
62
62
|
onPublishMouseMove: Ve,
|
63
63
|
onSubscribeMouseMove: He,
|
64
|
-
onActiveQuestionChange:
|
64
|
+
onActiveQuestionChange: U,
|
65
65
|
openQuestionFeedbackModal: Me,
|
66
66
|
summaryDescription: xe,
|
67
67
|
canSubmitWorksheet: qe,
|
68
68
|
loggerRef: w,
|
69
69
|
canResolveDoubt: Pe,
|
70
70
|
onResolveDoubt: Qe,
|
71
|
-
onSkip:
|
72
|
-
onUnassign:
|
71
|
+
onSkip: Le,
|
72
|
+
onUnassign: Ge,
|
73
73
|
onReview: Fe,
|
74
74
|
canToggleScribbling: je = !0,
|
75
75
|
studentId: Ue,
|
76
76
|
subjectiveProps: Ke,
|
77
77
|
canShowActionBar: Xe = !0
|
78
|
-
} = be, { initialQuestion: ze, navigationMode: p, teacherValidationEnabled:
|
78
|
+
} = be, { initialQuestion: ze, navigationMode: p, teacherValidationEnabled: K } = a, {
|
79
79
|
containerStyle: H,
|
80
80
|
containerWidth: Je,
|
81
81
|
minQuestionHeight: re,
|
@@ -86,41 +86,44 @@ const Jt = (be, Ie) => {
|
|
86
86
|
renderSideBar: et,
|
87
87
|
showUserPointer: tt = !0,
|
88
88
|
imageHue: se
|
89
|
-
} = T, { actionbarHeight: C, maxQuestionWidth:
|
90
|
-
() =>
|
89
|
+
} = T, { actionbarHeight: C, maxQuestionWidth: X, questionsContainerWidth: z } = Q(
|
90
|
+
() => Bt(k, T),
|
91
91
|
[T, k]
|
92
|
-
), [t] =
|
93
|
-
() =>
|
94
|
-
sectioned:
|
92
|
+
), [t] = y(
|
93
|
+
() => Wt(k, {
|
94
|
+
sectioned: K && p !== "ADAPTIVE" && p !== "CURRENT",
|
95
95
|
adaptive: p === "ADAPTIVE"
|
96
96
|
})
|
97
|
-
), [c, N] =
|
98
|
-
() => Te ??
|
99
|
-
), [ae, it] =
|
97
|
+
), [c, N] = y(
|
98
|
+
() => Te ?? Ot(t)
|
99
|
+
), [ae, it] = y(!1), h = Q(
|
100
100
|
() => p !== "OPEN" ? pe({
|
101
101
|
questions: t,
|
102
102
|
responses: c,
|
103
103
|
behavior: a,
|
104
|
-
userType:
|
104
|
+
userType: r
|
105
105
|
}) : t.length - 1,
|
106
|
-
[a, p, t, c,
|
107
|
-
),
|
108
|
-
() =>
|
106
|
+
[a, p, t, c, r]
|
107
|
+
), nt = Q(
|
108
|
+
() => Rt({ questions: t, lastUnlockedQuestionIndex: h, userType: r }),
|
109
|
+
[t, h, r]
|
110
|
+
), l = t[h], s = c[(l == null ? void 0 : l.response_id) ?? ""], { bannerBackgroundColor: ot, label: rt } = Vt(r, !!te), [A] = y(
|
111
|
+
() => Dt({
|
109
112
|
questions: t,
|
110
113
|
initialQuestion: ze,
|
111
114
|
lastUnlockedQuestionIndex: pe({
|
112
115
|
questions: t,
|
113
116
|
responses: c,
|
114
117
|
behavior: a,
|
115
|
-
userType:
|
118
|
+
userType: r
|
116
119
|
}),
|
117
|
-
initialResponseId:
|
118
|
-
initialItemIndex:
|
120
|
+
initialResponseId: ye,
|
121
|
+
initialItemIndex: ve
|
119
122
|
})
|
120
|
-
), { activeQuestionId: B, setActiveQuestionId: q, intersectionObserver:
|
123
|
+
), { activeQuestionId: B, setActiveQuestionId: q, intersectionObserver: J } = Et(A), f = Q(
|
121
124
|
() => t.findIndex((e) => e.response_id === B),
|
122
125
|
[B, t]
|
123
|
-
), [g,
|
126
|
+
), [g, Y] = y(!1), [ce, W] = y(), [le, de] = y(!1), ue = kt(a, c, B), st = v(
|
124
127
|
(e, i, n) => {
|
125
128
|
const d = i === "SIMULATION" ? "simState" : void 0;
|
126
129
|
d && (I ? N((u) => {
|
@@ -140,10 +143,10 @@ const Jt = (be, Ie) => {
|
|
140
143
|
...u,
|
141
144
|
[m]: _
|
142
145
|
};
|
143
|
-
}) :
|
146
|
+
}) : j && j(e, i, n));
|
144
147
|
},
|
145
|
-
[
|
146
|
-
),
|
148
|
+
[j, I, t]
|
149
|
+
), at = v(
|
147
150
|
(e, i) => {
|
148
151
|
N((n) => {
|
149
152
|
const d = he(t, e);
|
@@ -158,32 +161,32 @@ const Jt = (be, Ie) => {
|
|
158
161
|
});
|
159
162
|
},
|
160
163
|
[t]
|
161
|
-
), O =
|
164
|
+
), O = v(() => {
|
162
165
|
W((e) => {
|
163
166
|
var i;
|
164
167
|
if (e) {
|
165
168
|
const n = (i = t[h]) == null ? void 0 : i.response_id;
|
166
169
|
n && setTimeout(() => {
|
167
|
-
|
170
|
+
L(n);
|
168
171
|
}, 50);
|
169
172
|
}
|
170
173
|
});
|
171
|
-
}, [h, t]), P =
|
174
|
+
}, [h, t]), P = v(
|
172
175
|
(e) => {
|
173
|
-
|
176
|
+
Y(!1), M ? requestAnimationFrame(() => L(e)) : q(e);
|
174
177
|
},
|
175
178
|
[M, q]
|
176
|
-
),
|
179
|
+
), ct = v(() => {
|
177
180
|
de(!1);
|
178
|
-
}, []),
|
181
|
+
}, []), lt = v(() => {
|
179
182
|
de(!0);
|
180
|
-
}, []),
|
181
|
-
|
183
|
+
}, []), dt = v(() => {
|
184
|
+
Y(!0);
|
182
185
|
}, []);
|
183
186
|
return b(() => {
|
184
187
|
const e = t[f];
|
185
|
-
e &&
|
186
|
-
}, [
|
188
|
+
e && U && U(e);
|
189
|
+
}, [U, t, f]), _t(Ie, {
|
187
190
|
behavior: a,
|
188
191
|
questions: t,
|
189
192
|
setResponses: N,
|
@@ -191,45 +194,45 @@ const Jt = (be, Ie) => {
|
|
191
194
|
onBulkResponsesChange: Ee,
|
192
195
|
getTimeSpentOnQuestion: ue
|
193
196
|
}), b(() => () => {
|
194
|
-
|
195
|
-
}, [
|
196
|
-
|
197
|
-
}, [
|
197
|
+
J.disconnect();
|
198
|
+
}, [J]), b(() => {
|
199
|
+
F && c && F(c);
|
200
|
+
}, [F, c]), b(() => {
|
198
201
|
G && N(G);
|
199
|
-
}, [G]),
|
202
|
+
}, [G]), ht(() => {
|
200
203
|
let e;
|
201
|
-
return S && A && (
|
202
|
-
|
203
|
-
}, 400) :
|
204
|
+
return S && A && (It().browser_name === "Safari" ? e = setTimeout(() => {
|
205
|
+
L(A);
|
206
|
+
}, 400) : L(A)), () => {
|
204
207
|
clearTimeout(e);
|
205
208
|
};
|
206
209
|
}, [S, A, x]), b(() => {
|
207
210
|
if (a.teacherValidationEnabled && l) {
|
208
211
|
const { item_type: e, instructor_stimulus: i, is_optional: n } = l;
|
209
|
-
|
212
|
+
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
213
|
}
|
211
214
|
}, [
|
212
215
|
a.teacherValidationEnabled,
|
213
216
|
O,
|
214
217
|
l,
|
215
|
-
|
216
|
-
|
218
|
+
s,
|
219
|
+
r
|
217
220
|
]), b(() => {
|
218
221
|
if (a.teacherValidationEnabled && l) {
|
219
222
|
const { item_type: e, instructor_stimulus: i } = l;
|
220
|
-
|
223
|
+
r === "STUDENT" && e === "exit-ticket" && i !== "SystemIntro" && (s != null && s.submittedByStudent ? V == null || V() : D == null || D());
|
221
224
|
}
|
222
225
|
}, [
|
223
226
|
a.teacherValidationEnabled,
|
224
227
|
l,
|
225
|
-
|
228
|
+
s == null ? void 0 : s.submittedByStudent,
|
226
229
|
D,
|
227
230
|
V,
|
228
|
-
|
231
|
+
r
|
229
232
|
]), b(() => {
|
230
233
|
p === "CURRENT" && k.forEach(({ reference: e, questions: i }) => {
|
231
234
|
var n, d, u;
|
232
|
-
i.length < 3 ?
|
235
|
+
i.length < 3 ? Z(`Diagnostics item has Less than 3 questions: ${e}`, {
|
233
236
|
tags: {
|
234
237
|
"content-type": "learnosity",
|
235
238
|
"activity-reference": E,
|
@@ -237,7 +240,7 @@ const Jt = (be, Ie) => {
|
|
237
240
|
},
|
238
241
|
fingerprint: [`diagnostics-item-questions-count-${e}`]
|
239
242
|
// 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") &&
|
243
|
+
}) : (((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
244
|
`Diagnostics questions sequence is incorrect expected [Try, Learn, Apply]: ${e}`,
|
242
245
|
{
|
243
246
|
tags: {
|
@@ -253,9 +256,9 @@ const Jt = (be, Ie) => {
|
|
253
256
|
}, [E, k, p]), b(() => {
|
254
257
|
t.forEach((e) => {
|
255
258
|
const { validation: i, item_reference: n, type: d, question_number: u, metadata: m } = e;
|
256
|
-
if ((
|
259
|
+
if ((K ? d !== "clozetext" : !0) && (i != null && i.valid_response)) {
|
257
260
|
const _ = i.valid_response.value ?? [];
|
258
|
-
(_ == null ? void 0 : _.length) === 0 && ((i.alt_responses ?? []).some((
|
261
|
+
(_ == null ? void 0 : _.length) === 0 && ((i.alt_responses ?? []).some((ut) => ut.value.length > 0) || (Z(`Question has no valid response: ${m.widget_reference}`, {
|
259
262
|
tags: {
|
260
263
|
"content-type": "learnosity",
|
261
264
|
"activity-reference": E,
|
@@ -265,7 +268,7 @@ const Jt = (be, Ie) => {
|
|
265
268
|
},
|
266
269
|
fingerprint: [`no-valid-response-${m.widget_reference}`]
|
267
270
|
// Add unique fingerprint
|
268
|
-
}), w.current(
|
271
|
+
}), w.current(yt.WORKSHEET_V3_QUESTION_MISSING_VALIDATION, {
|
269
272
|
item_reference: n,
|
270
273
|
widget_reference: m.widget_reference,
|
271
274
|
question_type: d,
|
@@ -273,9 +276,10 @@ const Jt = (be, Ie) => {
|
|
273
276
|
})));
|
274
277
|
}
|
275
278
|
});
|
276
|
-
}, [E, w, t,
|
279
|
+
}, [E, w, t, K]), S ? /* @__PURE__ */ R(mt, { children: [
|
280
|
+
/* @__PURE__ */ o(Pt, {}),
|
277
281
|
_e && /* @__PURE__ */ R(
|
278
|
-
|
282
|
+
Qt,
|
279
283
|
{
|
280
284
|
$flexDirection: "row",
|
281
285
|
$justifyContent: "center",
|
@@ -286,22 +290,22 @@ const Jt = (be, Ie) => {
|
|
286
290
|
$gap: 8,
|
287
291
|
$gutter: 8,
|
288
292
|
$flexGap: 8,
|
289
|
-
$background:
|
293
|
+
$background: ot,
|
290
294
|
$topOffset: T.topOffset - fe,
|
291
295
|
children: [
|
292
|
-
te ? /* @__PURE__ */ o(ge, { children: /* @__PURE__ */ o(
|
293
|
-
/* @__PURE__ */ o(
|
296
|
+
te ? /* @__PURE__ */ o(ge, { children: /* @__PURE__ */ o(gt, { width: 16, height: 16 }) }) : /* @__PURE__ */ o(ge, { children: /* @__PURE__ */ o(bt, { width: 16, height: 16 }) }),
|
297
|
+
/* @__PURE__ */ o(Ct, { $renderAs: "ub3", children: rt })
|
294
298
|
]
|
295
299
|
}
|
296
300
|
),
|
297
301
|
/* @__PURE__ */ R(
|
298
|
-
|
302
|
+
Lt,
|
299
303
|
{
|
300
304
|
$background: se ? `${se}_1` : "WHITE",
|
301
305
|
$width: Je,
|
302
306
|
children: [
|
303
|
-
Ze === "top" && /* @__PURE__ */ o(
|
304
|
-
|
307
|
+
Ze === "top" && /* @__PURE__ */ o(Gt, { $topOffset: x, $height: Tt, children: /* @__PURE__ */ o(Ft, { children: /* @__PURE__ */ o(
|
308
|
+
Ht,
|
305
309
|
{
|
306
310
|
placement: "top",
|
307
311
|
questions: t,
|
@@ -310,12 +314,12 @@ const Jt = (be, Ie) => {
|
|
310
314
|
lastUnlockedQuestionIndex: h,
|
311
315
|
behavior: a,
|
312
316
|
onItemNumberClick: P,
|
313
|
-
userType:
|
317
|
+
userType: r,
|
314
318
|
summaryVisible: g
|
315
319
|
}
|
316
320
|
) }) }),
|
317
|
-
ce && l && /* @__PURE__ */ o(
|
318
|
-
|
321
|
+
ce && l && /* @__PURE__ */ o(jt, { $minHeight: re, $topOffset: x, children: /* @__PURE__ */ o(me, { $width: X, $justifyContent: "center", $alignItems: "center", children: /* @__PURE__ */ o(
|
322
|
+
At,
|
319
323
|
{
|
320
324
|
blocker: ce,
|
321
325
|
lastUnlockedQuestion: l,
|
@@ -334,31 +338,31 @@ const Jt = (be, Ie) => {
|
|
334
338
|
questions: t,
|
335
339
|
bottomOffset: C,
|
336
340
|
topOffset: x,
|
337
|
-
userType:
|
341
|
+
userType: r
|
338
342
|
}
|
339
343
|
),
|
340
|
-
le && /* @__PURE__ */ o(
|
344
|
+
le && /* @__PURE__ */ o(Ut, { children: /* @__PURE__ */ o(St, { initialPosition: $t, onClose: ct }) }),
|
341
345
|
/* @__PURE__ */ R(
|
342
|
-
|
346
|
+
Kt,
|
343
347
|
{
|
344
|
-
$marginTop:
|
348
|
+
$marginTop: r === "TEACHER" && g ? "0" : C,
|
345
349
|
$height: C,
|
346
350
|
$isCardView: H === "card",
|
347
351
|
children: [
|
348
352
|
/* @__PURE__ */ o(
|
349
|
-
|
353
|
+
wt,
|
350
354
|
{
|
351
|
-
width:
|
355
|
+
width: z - 32,
|
352
356
|
question: t[f],
|
353
357
|
learnosity: S,
|
354
|
-
userType:
|
358
|
+
userType: r
|
355
359
|
}
|
356
360
|
),
|
357
361
|
Xe && /* @__PURE__ */ o(
|
358
|
-
|
362
|
+
Xt,
|
359
363
|
{
|
360
364
|
$height: C,
|
361
|
-
$width: H === "card" ?
|
365
|
+
$width: H === "card" ? z - 32 : "100%",
|
362
366
|
$isCardView: H === "card",
|
363
367
|
children: /* @__PURE__ */ o(
|
364
368
|
me,
|
@@ -367,17 +371,17 @@ const Jt = (be, Ie) => {
|
|
367
371
|
$flexDirection: "row",
|
368
372
|
$justifyContent: "space-between",
|
369
373
|
$alignItems: "center",
|
370
|
-
$width:
|
374
|
+
$width: z - 32,
|
371
375
|
children: /* @__PURE__ */ o(
|
372
|
-
|
376
|
+
Nt,
|
373
377
|
{
|
374
|
-
userType:
|
378
|
+
userType: r,
|
375
379
|
layout: T,
|
376
380
|
behavior: a,
|
377
381
|
worksheetName: ee,
|
378
382
|
questions: t,
|
379
383
|
responses: c,
|
380
|
-
onCalculatorOpen:
|
384
|
+
onCalculatorOpen: lt,
|
381
385
|
activeQuestionIndex: f,
|
382
386
|
lastUnlockedQuestionIndex: h,
|
383
387
|
appendedQuestionIds: ne,
|
@@ -388,20 +392,20 @@ const Jt = (be, Ie) => {
|
|
388
392
|
isSummaryVisible: g,
|
389
393
|
setResponses: N,
|
390
394
|
getTimeSpentOnQuestion: ue,
|
391
|
-
setSummaryVisible:
|
395
|
+
setSummaryVisible: Y,
|
392
396
|
setBlocker: W,
|
393
397
|
setIsScribblingEnabled: it,
|
394
398
|
setActiveQuestionId: q,
|
395
399
|
onItemNumberClick: P,
|
396
|
-
onGoToReview:
|
400
|
+
onGoToReview: dt,
|
397
401
|
onResponseChange: I,
|
398
402
|
onHelp: De,
|
399
403
|
onTeacherValidation: ie,
|
400
404
|
onSubmit: Ne,
|
401
405
|
showCalculator: le,
|
402
406
|
loggerRef: w,
|
403
|
-
onSkip:
|
404
|
-
onUnassign:
|
407
|
+
onSkip: Le,
|
408
|
+
onUnassign: Ge,
|
405
409
|
onReview: Fe,
|
406
410
|
canToggleScribbling: je
|
407
411
|
}
|
@@ -410,64 +414,62 @@ const Jt = (be, Ie) => {
|
|
410
414
|
)
|
411
415
|
}
|
412
416
|
),
|
413
|
-
!g && M &&
|
417
|
+
!g && M && r === "STUDENT" && /* @__PURE__ */ o(zt, { children: /* @__PURE__ */ o(xt, {}) })
|
414
418
|
]
|
415
419
|
}
|
416
420
|
),
|
417
421
|
/* @__PURE__ */ R(
|
418
|
-
|
422
|
+
Jt,
|
419
423
|
{
|
420
424
|
$actionbarHeight: C,
|
421
425
|
$isCardView: H === "card",
|
422
426
|
children: [
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
}
|
468
|
-
),
|
427
|
+
nt.map((e, i) => {
|
428
|
+
var m, $;
|
429
|
+
const { response_id: n, is_optional: d } = e, u = (m = c[n]) == null ? void 0 : m.assignStatus;
|
430
|
+
return a.teacherValidationEnabled && (u === "skipped" || d && u !== "assigned" && r === "STUDENT") ? null : /* @__PURE__ */ o(
|
431
|
+
Mt,
|
432
|
+
{
|
433
|
+
signedRequest: Ce,
|
434
|
+
userType: r,
|
435
|
+
worksheetCompleted: Ae,
|
436
|
+
question: e,
|
437
|
+
response: c[n],
|
438
|
+
nextQuestionId: p === "ADAPTIVE" || p === "CURRENT" ? l == null ? void 0 : l.response_id : i < h ? ($ = t[i + 1]) == null ? void 0 : $.response_id : void 0,
|
439
|
+
maxQuestionWidth: X,
|
440
|
+
learnosity: S,
|
441
|
+
isActive: n === B,
|
442
|
+
isHidden: !M && n !== B || g,
|
443
|
+
canRender: f > -1 && (i === f || p !== "CURRENT" && i === f + 1),
|
444
|
+
background: $e,
|
445
|
+
appended: ne.includes(n),
|
446
|
+
behavior: a,
|
447
|
+
layout: T,
|
448
|
+
actionbarHeight: C,
|
449
|
+
intersectionObserver: J,
|
450
|
+
onMarkForReview: at,
|
451
|
+
onMediaStateChange: st,
|
452
|
+
userId: Be,
|
453
|
+
isScribblingEnabled: ae,
|
454
|
+
onPublishStrokes: We,
|
455
|
+
onReceiveStrokes: Oe,
|
456
|
+
initialStrokesData: Re,
|
457
|
+
isCanvasEnabled: oe,
|
458
|
+
onPublishMouseMove: Ve,
|
459
|
+
onSubscribeMouseMove: He,
|
460
|
+
setActiveQuestionId: q,
|
461
|
+
canResolveDoubt: Pe,
|
462
|
+
onResolveDoubt: Qe,
|
463
|
+
studentId: Ue,
|
464
|
+
subjectiveProps: Ke,
|
465
|
+
responses: c,
|
466
|
+
loggerRef: w
|
467
|
+
},
|
468
|
+
n
|
469
|
+
);
|
470
|
+
}),
|
469
471
|
g && /* @__PURE__ */ o(
|
470
|
-
|
472
|
+
Yt,
|
471
473
|
{
|
472
474
|
worksheetName: ee,
|
473
475
|
questions: t,
|
@@ -485,13 +487,13 @@ const Jt = (be, Ie) => {
|
|
485
487
|
}
|
486
488
|
),
|
487
489
|
!g && et && /* @__PURE__ */ o(
|
488
|
-
|
490
|
+
qt,
|
489
491
|
{
|
490
|
-
questionWidth:
|
492
|
+
questionWidth: X,
|
491
493
|
questions: t,
|
492
494
|
activeQuestionIndex: f,
|
493
495
|
learnosity: S,
|
494
|
-
userType:
|
496
|
+
userType: r,
|
495
497
|
height: re,
|
496
498
|
actionbarHeight: C,
|
497
499
|
openQuestionFeedbackModal: Me,
|
@@ -502,8 +504,8 @@ const Jt = (be, Ie) => {
|
|
502
504
|
}
|
503
505
|
)
|
504
506
|
] }) : null;
|
505
|
-
},
|
507
|
+
}, ki = ft(pt(Zt));
|
506
508
|
export {
|
507
|
-
|
509
|
+
ki as default
|
508
510
|
};
|
509
511
|
//# sourceMappingURL=worksheet.js.map
|