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