@cuemath/leap 3.3.4-j1 → 3.3.4
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 +1 -3
- package/dist/assets/illustrations/illustrations.js.map +1 -1
- package/dist/assets/lottie/lottie.js +0 -1
- package/dist/assets/lottie/lottie.js.map +1 -1
- package/dist/features/auth/comps/pill-button/pill-button-styled.js +17 -17
- package/dist/features/auth/comps/pill-button/pill-button-styled.js.map +1 -1
- package/dist/features/auth/comps/pill-button/pill-button.js +33 -35
- package/dist/features/auth/comps/pill-button/pill-button.js.map +1 -1
- package/dist/features/auth/comps/user-list/user-item/user-item.js +30 -32
- 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 +19 -20
- package/dist/features/auth/comps/user-list/user-list.js.map +1 -1
- package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide-constants.js +9 -9
- package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide-constants.js.map +1 -1
- package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide-styled.js +29 -58
- package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide-styled.js.map +1 -1
- package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide.js +41 -78
- package/dist/features/auth/pla-signup/onboarding-guide/onboarding-guide.js.map +1 -1
- package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper-styled.js +35 -37
- package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper-styled.js.map +1 -1
- package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js +71 -76
- package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js.map +1 -1
- package/dist/features/auth/signup/custom-input-field/custom-input-field.js +50 -55
- package/dist/features/auth/signup/custom-input-field/custom-input-field.js.map +1 -1
- package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper.js +25 -47
- package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper.js.map +1 -1
- package/dist/features/milestone/create/comps/goal-completion-date-selector/goal-completion-date-selector.js +6 -6
- package/dist/features/milestone/milestone-tests/tests-creation/test-stages/test-preview/test-preview.js +19 -20
- package/dist/features/milestone/milestone-tests/tests-creation/test-stages/test-preview/test-preview.js.map +1 -1
- package/dist/features/sheets/constants/sheet.js +12 -7
- package/dist/features/sheets/constants/sheet.js.map +1 -1
- package/dist/features/sheets/utils/is-v3-worksheet.js +17 -0
- package/dist/features/sheets/utils/is-v3-worksheet.js.map +1 -1
- package/dist/features/student-details/class-details/class-details-utils.js +6 -6
- package/dist/features/trial-session/comps/learning-plan/index.js +62 -88
- package/dist/features/trial-session/comps/learning-plan/index.js.map +1 -1
- package/dist/features/trial-session/comps/session-report/report-information/report-card.js +16 -31
- package/dist/features/trial-session/comps/session-report/report-information/report-card.js.map +1 -1
- package/dist/features/trial-session/comps/session-report/report-information/report-information-styled.js +13 -21
- package/dist/features/trial-session/comps/session-report/report-information/report-information-styled.js.map +1 -1
- package/dist/features/trial-session/comps/session-report/report-information/report-information.js +94 -166
- package/dist/features/trial-session/comps/session-report/report-information/report-information.js.map +1 -1
- package/dist/features/trial-session/comps/student-profile/student-profile-highlights/student-profile-highlights.js +31 -46
- package/dist/features/trial-session/comps/student-profile/student-profile-highlights/student-profile-highlights.js.map +1 -1
- package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile-styled.js +42 -121
- package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile-styled.js.map +1 -1
- package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile.js +56 -174
- package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile.js.map +1 -1
- package/dist/features/trial-session/trial-session-types.js.map +1 -1
- package/dist/features/ui/modals/modal.js +28 -30
- package/dist/features/ui/modals/modal.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-action-bar/worksheet-action-bar.js +86 -90
- package/dist/features/worksheet/worksheet/worksheet-action-bar/worksheet-action-bar.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-behavior-helper.js +147 -0
- package/dist/features/worksheet/worksheet/worksheet-behavior-helper.js.map +1 -0
- package/dist/features/worksheet/worksheet/worksheet-container.js +62 -42
- package/dist/features/worksheet/worksheet/worksheet-container.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js +197 -199
- 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 +219 -293
- package/dist/features/worksheet/worksheet/worksheet-questions-controller/worksheet-questions-controller.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-styled.js +34 -34
- 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 +206 -215
- package/dist/features/worksheet/worksheet/worksheet.js.map +1 -1
- package/dist/features/worksheet/worksheet-preview/dynamic-worksheet-preview/dynamic-worksheet-preview.js +31 -32
- package/dist/features/worksheet/worksheet-preview/dynamic-worksheet-preview/dynamic-worksheet-preview.js.map +1 -1
- package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js +30 -28
- package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js.map +1 -1
- package/dist/features/worksheet/worksheet-preview/worksheet-preview-view.js +68 -73
- package/dist/features/worksheet/worksheet-preview/worksheet-preview-view.js.map +1 -1
- package/dist/features/worksheet/worksheet-preview/worksheet-preview.js +30 -79
- package/dist/features/worksheet/worksheet-preview/worksheet-preview.js.map +1 -1
- package/dist/index.d.ts +45 -123
- package/dist/index.js +383 -395
- package/dist/index.js.map +1 -1
- 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/{book-checked-green.0436b91e.svg → book-checked-green.c275dbd9.svg} +1 -1
- package/package.json +1 -1
- package/dist/constants/config.js +0 -5
- package/dist/constants/config.js.map +0 -1
- package/dist/features/parent-dashboard/cuemath-app-features/cuemath-app-features-constants.js +0 -25
- package/dist/features/parent-dashboard/cuemath-app-features/cuemath-app-features-constants.js.map +0 -1
- package/dist/features/parent-dashboard/cuemath-app-features/cuemath-app-features-styled.js +0 -15
- package/dist/features/parent-dashboard/cuemath-app-features/cuemath-app-features-styled.js.map +0 -1
- package/dist/features/parent-dashboard/cuemath-app-features/cuemath-app-features.js +0 -90
- package/dist/features/parent-dashboard/cuemath-app-features/cuemath-app-features.js.map +0 -1
- package/dist/features/parent-dashboard/math-practice/math-practice-constants.js +0 -19
- package/dist/features/parent-dashboard/math-practice/math-practice-constants.js.map +0 -1
- package/dist/features/parent-dashboard/math-practice/math-practice-styled.js +0 -32
- package/dist/features/parent-dashboard/math-practice/math-practice-styled.js.map +0 -1
- package/dist/features/parent-dashboard/math-practice/math-practice.js +0 -67
- package/dist/features/parent-dashboard/math-practice/math-practice.js.map +0 -1
- package/dist/features/parent-dashboard/parent-dashboard-faqs/parent-dashboard-faqs-constants.js +0 -42
- package/dist/features/parent-dashboard/parent-dashboard-faqs/parent-dashboard-faqs-constants.js.map +0 -1
- package/dist/features/parent-dashboard/parent-dashboard-faqs/parent-dashboard-faqs.js +0 -20
- package/dist/features/parent-dashboard/parent-dashboard-faqs/parent-dashboard-faqs.js.map +0 -1
- package/dist/features/trial-session/comps/pla/next-steps/next-steps-constants.js +0 -25
- package/dist/features/trial-session/comps/pla/next-steps/next-steps-constants.js.map +0 -1
- package/dist/features/trial-session/comps/pla/next-steps/next-steps-styled.js +0 -43
- package/dist/features/trial-session/comps/pla/next-steps/next-steps-styled.js.map +0 -1
- package/dist/features/trial-session/comps/pla/next-steps/next-steps.js +0 -49
- package/dist/features/trial-session/comps/pla/next-steps/next-steps.js.map +0 -1
- package/dist/features/trial-session/comps/pla/session-status/session-status-constants.js +0 -11
- package/dist/features/trial-session/comps/pla/session-status/session-status-constants.js.map +0 -1
- package/dist/features/trial-session/comps/pla/session-status/session-status-helpers.js +0 -19
- package/dist/features/trial-session/comps/pla/session-status/session-status-helpers.js.map +0 -1
- package/dist/features/trial-session/comps/pla/session-status/session-status-styled.js +0 -17
- package/dist/features/trial-session/comps/pla/session-status/session-status-styled.js.map +0 -1
- package/dist/features/trial-session/comps/pla/session-status/session-status.js +0 -243
- package/dist/features/trial-session/comps/pla/session-status/session-status.js.map +0 -1
- package/dist/features/trial-session/comps/pla/session-summary/session-summary-constants.js +0 -52
- package/dist/features/trial-session/comps/pla/session-summary/session-summary-constants.js.map +0 -1
- package/dist/features/trial-session/comps/pla/session-summary/session-summary.js +0 -52
- package/dist/features/trial-session/comps/pla/session-summary/session-summary.js.map +0 -1
- package/dist/features/trial-session/comps/pla/session-summary/summary-card/summary-card-styled.js +0 -17
- package/dist/features/trial-session/comps/pla/session-summary/summary-card/summary-card-styled.js.map +0 -1
- package/dist/features/trial-session/comps/pla/session-summary/summary-card/summary-card.js +0 -56
- package/dist/features/trial-session/comps/pla/session-summary/summary-card/summary-card.js.map +0 -1
- package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions-constants.js +0 -5
- package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions-constants.js.map +0 -1
- package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions-styled.js +0 -17
- package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions-styled.js.map +0 -1
- package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions-types.js +0 -5
- package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions-types.js.map +0 -1
- package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions.js +0 -96
- package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions.js.map +0 -1
- package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile-helpers.js +0 -12
- package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile-helpers.js.map +0 -1
- package/dist/features/worksheet/worksheet/hooks/use-worksheet-journey.js +0 -28
- package/dist/features/worksheet/worksheet/hooks/use-worksheet-journey.js.map +0 -1
- package/dist/node_modules/date-fns/_lib/getRoundingMethod.js +0 -10
- package/dist/node_modules/date-fns/_lib/getRoundingMethod.js.map +0 -1
- package/dist/node_modules/date-fns/differenceInMilliseconds.js +0 -9
- package/dist/node_modules/date-fns/differenceInMilliseconds.js.map +0 -1
- package/dist/node_modules/date-fns/differenceInSeconds.js +0 -11
- package/dist/node_modules/date-fns/differenceInSeconds.js.map +0 -1
- package/dist/node_modules/date-fns/fromUnixTime.js +0 -9
- package/dist/node_modules/date-fns/fromUnixTime.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/community-bulb-yellow-2.f89c30f9.svg +0 -1
- package/dist/static/learning-puzzle-bot.6fe93cf6.svg +0 -1
- package/dist/static/username-responsive.787b5515.json +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worksheet-preview-view.js","sources":["../../../../src/features/worksheet/worksheet-preview/worksheet-preview-view.tsx"],"sourcesContent":["import type { IResumeWorksheetModel } from '../../../types/models/worksheet';\nimport type { IPreviewWorksheetViewProps } from './worksheet-preview-types';\nimport type { FC } from 'react';\n\nimport { memo, useCallback, useMemo, useRef } from 'react';\n\nimport FlexView from '../../ui/layout/flex-view';\nimport Text from '../../ui/text/text';\nimport WorksheetContainer from '../worksheet/worksheet-container';\nimport { getWorksheetHeaderLayout } from '../worksheet/worksheet-helpers';\nimport useWorksheetLayout from './hooks/use-worksheet-layout';\nimport * as Styled from './worksheet-preview-styled';\n\nconst SAT_WORKSHEET_TYPES: IResumeWorksheetModel['node_type'][] = [\n 'SAT_ENGLISH_ASSESSMENT',\n 'SAT_MATH_ASSESSMENT',\n];\n\nconst PreviewWorksheetView: FC<IPreviewWorksheetViewProps> = memo(props => {\n const {\n studentId,\n userType,\n activityReference,\n worksheet,\n
|
|
1
|
+
{"version":3,"file":"worksheet-preview-view.js","sources":["../../../../src/features/worksheet/worksheet-preview/worksheet-preview-view.tsx"],"sourcesContent":["import type { IResumeWorksheetModel } from '../../../types/models/worksheet';\nimport type { IPreviewWorksheetViewProps } from './worksheet-preview-types';\nimport type { FC } from 'react';\n\nimport { memo, useCallback, useMemo, useRef } from 'react';\n\nimport FlexView from '../../ui/layout/flex-view';\nimport Text from '../../ui/text/text';\nimport WorksheetContainer from '../worksheet/worksheet-container';\nimport { getWorksheetHeaderLayout } from '../worksheet/worksheet-helpers';\nimport useWorksheetLayout from './hooks/use-worksheet-layout';\nimport * as Styled from './worksheet-preview-styled';\n\nconst SAT_WORKSHEET_TYPES: IResumeWorksheetModel['node_type'][] = [\n 'SAT_ENGLISH_ASSESSMENT',\n 'SAT_MATH_ASSESSMENT',\n];\n\nconst PreviewWorksheetView: FC<IPreviewWorksheetViewProps> = memo(props => {\n const {\n studentId,\n userType,\n activityReference,\n worksheet,\n nodeType,\n worksheetName,\n showNudgeBanner,\n markedAsCompleted,\n imageHue,\n onWorksheetLoaded,\n onWorksheetErrored,\n openQuestionFeedbackModal,\n onBackIconClick,\n isLessonV3Enabled,\n canShowActionBar,\n mode,\n actionBarRightElement,\n } = props;\n const { signed_request: signedRequest, questions_signed_request: questionsSignedRequest } =\n worksheet;\n\n const isPuzzleWorksheet = useMemo(() => nodeType === 'PUZZLE_CARD', [nodeType]);\n const isTestWorksheet = useMemo(() => activityReference === 'test', [activityReference]);\n const isSATAssessment = useMemo(() => SAT_WORKSHEET_TYPES.includes(nodeType), [nodeType]);\n const loggerRef = useRef(() => null);\n const isActionBarVisible = isTestWorksheet ? false : canShowActionBar;\n\n const layout = useWorksheetLayout({\n userType,\n nodeType,\n isSATAssessment,\n showNudgeBanner,\n topOffset: 56,\n imageHue,\n });\n\n const handleOnBackIconClick = useCallback(() => {\n onBackIconClick?.();\n }, [onBackIconClick]);\n\n const { bgColor, borderColor, textColor } = getWorksheetHeaderLayout({\n isPuzzleWorksheet: isPuzzleWorksheet && isActionBarVisible,\n isTestWorksheet,\n imageHue,\n });\n\n return (\n <Styled.WorksheetPageWrapper>\n <Styled.HeaderWrapper>\n <Styled.Header\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $justifyContent={isTestWorksheet ? 'flex-start' : 'center'}\n $background={bgColor}\n $height={56}\n $gutterX={1}\n $flexGapX={1}\n $borderColor={borderColor}\n >\n {onBackIconClick && (\n <Styled.StyledBackIcon $color={textColor ?? 'WHITE'} onClick={handleOnBackIconClick} />\n )}\n\n <Styled.HeaderTitleWrapper\n $alignItems={isTestWorksheet && !isPuzzleWorksheet ? 'flex-start' : 'center'}\n >\n <Text $renderAs=\"body1\" $color={textColor}>\n {worksheetName || activityReference}\n </Text>\n </Styled.HeaderTitleWrapper>\n </Styled.Header>\n </Styled.HeaderWrapper>\n\n <FlexView $alignItems=\"center\">\n <WorksheetContainer\n userType={userType ?? (mode === 'review' ? 'TEACHER' : 'STUDENT')}\n worksheetCompleted={mode === 'review'}\n worksheetName={worksheetName || activityReference}\n itemsSignedRequest={signedRequest}\n questionsSignedRequest={questionsSignedRequest}\n studentId={studentId}\n layout={layout}\n canShowActionBar={isActionBarVisible}\n loggerRef={loggerRef}\n showNudgeBanner={showNudgeBanner}\n markedAsCompleted={markedAsCompleted}\n onLoaded={onWorksheetLoaded}\n onErrored={onWorksheetErrored}\n userId={studentId}\n openQuestionFeedbackModal={openQuestionFeedbackModal}\n nodeType={nodeType}\n mode={mode}\n isLessonV3Enabled={isLessonV3Enabled}\n actionBarRightElement={actionBarRightElement}\n />\n </FlexView>\n </Styled.WorksheetPageWrapper>\n );\n});\n\nexport default PreviewWorksheetView;\n"],"names":["SAT_WORKSHEET_TYPES","PreviewWorksheetView","memo","props","studentId","userType","activityReference","worksheet","nodeType","worksheetName","showNudgeBanner","markedAsCompleted","imageHue","onWorksheetLoaded","onWorksheetErrored","openQuestionFeedbackModal","onBackIconClick","isLessonV3Enabled","canShowActionBar","mode","actionBarRightElement","signedRequest","questionsSignedRequest","isPuzzleWorksheet","useMemo","isTestWorksheet","isSATAssessment","loggerRef","useRef","isActionBarVisible","layout","useWorksheetLayout","handleOnBackIconClick","useCallback","bgColor","borderColor","textColor","getWorksheetHeaderLayout","jsxs","Styled.WorksheetPageWrapper","jsx","Styled.HeaderWrapper","Styled.Header","Styled.StyledBackIcon","Styled.HeaderTitleWrapper","Text","FlexView","WorksheetContainer"],"mappings":"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"}
|
|
@@ -1,88 +1,39 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { memo as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
items: E,
|
|
16
|
-
scribblingEnabled: d,
|
|
17
|
-
onWorksheetLoaded: s,
|
|
18
|
-
userType: y
|
|
19
|
-
} = h, m = g(() => {
|
|
20
|
-
switch (e) {
|
|
21
|
-
case "TRIAL_BASIC":
|
|
22
|
-
case "TRIAL_INTERMEDIATE":
|
|
23
|
-
case "TRIAL_ADVANCED":
|
|
24
|
-
return !0;
|
|
25
|
-
}
|
|
26
|
-
}, [e]), i = e === "PUZZLE_CARD", l = y === "TEACHER", f = J([
|
|
27
|
-
T.PUZZLE_UNASSIGN_JOURNEY
|
|
28
|
-
]), [I, R] = p(), [L, N] = p(!1), { isProcessing: v, get: k, data: r, error: W } = V(), A = g(() => r && {
|
|
29
|
-
...r,
|
|
30
|
-
player_config: {
|
|
31
|
-
...r.player_config,
|
|
32
|
-
retryButtonLabel: "Retry",
|
|
33
|
-
checkButtonLabel: "Check",
|
|
34
|
-
...t === "review" && {
|
|
35
|
-
navigationMode: m || i ? "CURRENT" : o ? "LINEAR" : "OPEN",
|
|
36
|
-
initialQuestion: "FIRST"
|
|
37
|
-
},
|
|
38
|
-
...o && {
|
|
39
|
-
teacherValidationEnabled: o
|
|
40
|
-
},
|
|
41
|
-
...l && i && {
|
|
42
|
-
maximumAttempts: -2,
|
|
43
|
-
solutionHidden: !0,
|
|
44
|
-
canUnAssign: d,
|
|
45
|
-
canStartJourney: f.includes(
|
|
46
|
-
T.PUZZLE_UNASSIGN_JOURNEY
|
|
47
|
-
)
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}, [
|
|
51
|
-
r,
|
|
52
|
-
t,
|
|
53
|
-
m,
|
|
54
|
-
i,
|
|
55
|
-
o,
|
|
56
|
-
l,
|
|
57
|
-
d,
|
|
58
|
-
f
|
|
59
|
-
]), a = c(() => {
|
|
60
|
-
R(void 0), k(u, {
|
|
61
|
-
action: t,
|
|
62
|
-
node_type: e,
|
|
63
|
-
items: E
|
|
1
|
+
import { jsx as t, jsxs as P, Fragment as y } from "react/jsx-runtime";
|
|
2
|
+
import { memo as x, useState as f, useMemo as R, useCallback as s, useEffect as j } from "react";
|
|
3
|
+
import A from "../../ui/error/error.js";
|
|
4
|
+
import k from "../../ui/loader/app-loader/app-loader.js";
|
|
5
|
+
import { usePreviewWorksheetGet as L } from "./api/get-preview-worksheet.js";
|
|
6
|
+
import T from "./worksheet-preview-view.js";
|
|
7
|
+
const b = x((n) => {
|
|
8
|
+
const { activityReference: i, nodeType: h, items: a, onWorksheetLoaded: e } = n, [u, c] = f(), [v, p] = f(!1), { isProcessing: w, get: m, data: r, error: W } = L(), d = R(() => r && {
|
|
9
|
+
...r
|
|
10
|
+
}, [r]), o = s(() => {
|
|
11
|
+
c(void 0), m(i, {
|
|
12
|
+
action: "review",
|
|
13
|
+
node_type: h,
|
|
14
|
+
items: a
|
|
64
15
|
});
|
|
65
|
-
}, [
|
|
66
|
-
|
|
67
|
-
}, [
|
|
68
|
-
|
|
16
|
+
}, [i, m, h, a]), g = s(() => {
|
|
17
|
+
p(!0), e == null || e(!0);
|
|
18
|
+
}, [e]), l = s((E) => {
|
|
19
|
+
c(E.message);
|
|
69
20
|
}, []);
|
|
70
|
-
return
|
|
71
|
-
|
|
72
|
-
}, [
|
|
73
|
-
!
|
|
74
|
-
|
|
75
|
-
|
|
21
|
+
return j(() => {
|
|
22
|
+
o();
|
|
23
|
+
}, [o]), u || W ? /* @__PURE__ */ t(A, { height: "100vh", onTryAgain: o }) : w ? /* @__PURE__ */ t(k, { height: "100vh" }) : /* @__PURE__ */ P(y, { children: [
|
|
24
|
+
!v && /* @__PURE__ */ t(k, { height: "100vh" }),
|
|
25
|
+
d && /* @__PURE__ */ t(
|
|
26
|
+
T,
|
|
76
27
|
{
|
|
77
|
-
...
|
|
78
|
-
worksheet:
|
|
79
|
-
onWorksheetLoaded:
|
|
80
|
-
onWorksheetErrored:
|
|
28
|
+
...n,
|
|
29
|
+
worksheet: d,
|
|
30
|
+
onWorksheetLoaded: g,
|
|
31
|
+
onWorksheetErrored: l
|
|
81
32
|
}
|
|
82
33
|
)
|
|
83
34
|
] });
|
|
84
|
-
}),
|
|
35
|
+
}), V = b;
|
|
85
36
|
export {
|
|
86
|
-
|
|
37
|
+
V as default
|
|
87
38
|
};
|
|
88
39
|
//# sourceMappingURL=worksheet-preview.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worksheet-preview.js","sources":["../../../../src/features/worksheet/worksheet-preview/worksheet-preview.tsx"],"sourcesContent":["import type { IPreviewWorksheetProps } from './worksheet-preview-types';\nimport type { FC } from 'react';\n\nimport { memo, useCallback, useEffect, useMemo, useState } from 'react';\n\nimport
|
|
1
|
+
{"version":3,"file":"worksheet-preview.js","sources":["../../../../src/features/worksheet/worksheet-preview/worksheet-preview.tsx"],"sourcesContent":["import type { IPreviewWorksheetProps } from './worksheet-preview-types';\nimport type { FC } from 'react';\n\nimport { memo, useCallback, useEffect, useMemo, useState } from 'react';\n\nimport Error from '../../ui/error/error';\nimport AppLoader from '../../ui/loader/app-loader/app-loader';\nimport { usePreviewWorksheetGet } from './api/get-preview-worksheet';\nimport PreviewWorksheetView from './worksheet-preview-view';\n\nconst PreviewWorksheet: FC<IPreviewWorksheetProps> = memo(props => {\n const { activityReference, nodeType, items, onWorksheetLoaded } = props;\n\n const [error, setError] = useState<string>();\n const [worksheetRendered, setWorksheetRendered] = useState<boolean>(false);\n const { isProcessing, get, data: worksheetData, error: fetchError } = usePreviewWorksheetGet();\n\n const worksheet = useMemo<typeof worksheetData>(() => {\n if (worksheetData) {\n return {\n ...worksheetData,\n };\n }\n\n return worksheetData;\n }, [worksheetData]);\n\n const fetchWorksheet = useCallback(() => {\n setError(undefined);\n get(activityReference, {\n action: 'review',\n node_type: nodeType,\n items,\n });\n }, [activityReference, get, nodeType, items]);\n\n const handleWorksheetLoaded = useCallback(() => {\n setWorksheetRendered(true);\n\n onWorksheetLoaded?.(true);\n }, [onWorksheetLoaded]);\n\n const handleWorksheetErrored = useCallback((err: { code?: number; message: string }) => {\n setError(err.message);\n }, []);\n\n useEffect(() => {\n fetchWorksheet();\n }, [fetchWorksheet]);\n\n if (error || fetchError) {\n return <Error height=\"100vh\" onTryAgain={fetchWorksheet} />;\n }\n\n if (isProcessing) {\n return <AppLoader height=\"100vh\" />;\n }\n\n return (\n <>\n {!worksheetRendered && <AppLoader height=\"100vh\" />}\n {worksheet && (\n <PreviewWorksheetView\n {...props}\n worksheet={worksheet}\n onWorksheetLoaded={handleWorksheetLoaded}\n onWorksheetErrored={handleWorksheetErrored}\n />\n )}\n </>\n );\n});\n\nexport default PreviewWorksheet;\n"],"names":["PreviewWorksheet","memo","props","activityReference","nodeType","items","onWorksheetLoaded","error","setError","useState","worksheetRendered","setWorksheetRendered","isProcessing","get","worksheetData","fetchError","usePreviewWorksheetGet","worksheet","useMemo","fetchWorksheet","useCallback","handleWorksheetLoaded","handleWorksheetErrored","err","useEffect","jsx","Error","AppLoader","jsxs","Fragment","PreviewWorksheetView","PreviewWorksheet$1"],"mappings":";;;;;;AAUA,MAAMA,IAA+CC,EAAK,CAASC,MAAA;AACjE,QAAM,EAAE,mBAAAC,GAAmB,UAAAC,GAAU,OAAAC,GAAO,mBAAAC,MAAsBJ,GAE5D,CAACK,GAAOC,CAAQ,IAAIC,EAAiB,GACrC,CAACC,GAAmBC,CAAoB,IAAIF,EAAkB,EAAK,GACnE,EAAE,cAAAG,GAAc,KAAAC,GAAK,MAAMC,GAAe,OAAOC,MAAeC,KAEhEC,IAAYC,EAA8B,MAC1CJ,KACK;AAAA,IACL,GAAGA;AAAA,EAAA,GAKN,CAACA,CAAa,CAAC,GAEZK,IAAiBC,EAAY,MAAM;AACvC,IAAAZ,EAAS,MAAS,GAClBK,EAAIV,GAAmB;AAAA,MACrB,QAAQ;AAAA,MACR,WAAWC;AAAA,MACX,OAAAC;AAAA,IAAA,CACD;AAAA,KACA,CAACF,GAAmBU,GAAKT,GAAUC,CAAK,CAAC,GAEtCgB,IAAwBD,EAAY,MAAM;AAC9C,IAAAT,EAAqB,EAAI,GAEzBL,KAAA,QAAAA,EAAoB;AAAA,EAAI,GACvB,CAACA,CAAiB,CAAC,GAEhBgB,IAAyBF,EAAY,CAACG,MAA4C;AACtF,IAAAf,EAASe,EAAI,OAAO;AAAA,EACtB,GAAG,CAAE,CAAA;AAML,SAJAC,EAAU,MAAM;AACC,IAAAL;EAAA,GACd,CAACA,CAAc,CAAC,GAEfZ,KAASQ,IACH,gBAAAU,EAAAC,GAAA,EAAM,QAAO,SAAQ,YAAYP,EAAgB,CAAA,IAGvDP,IACK,gBAAAa,EAACE,GAAU,EAAA,QAAO,QAAQ,CAAA,IAK9B,gBAAAC,EAAAC,GAAA,EAAA,UAAA;AAAA,IAAA,CAACnB,KAAqB,gBAAAe,EAACE,GAAU,EAAA,QAAO,QAAQ,CAAA;AAAA,IAChDV,KACC,gBAAAQ;AAAA,MAACK;AAAA,MAAA;AAAA,QACE,GAAG5B;AAAA,QACJ,WAAAe;AAAA,QACA,mBAAmBI;AAAA,QACnB,oBAAoBC;AAAA,MAAA;AAAA,IACtB;AAAA,EAEJ,EAAA,CAAA;AAEJ,CAAC,GAEDS,IAAe/B;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -384,8 +384,6 @@ export declare const CueCanvasProvider: FC<PropsWithChildren<{
|
|
|
384
384
|
|
|
385
385
|
export declare const CueCanvasSideBar: NamedExoticComponent<ISidebar>;
|
|
386
386
|
|
|
387
|
-
export declare const CuemathAppFeatures: NamedExoticComponent<{}>;
|
|
388
|
-
|
|
389
387
|
export declare const CuemathLogo: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
|
|
390
388
|
|
|
391
389
|
export declare const CueRocket: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
@@ -482,11 +480,6 @@ declare interface ErrorProps {
|
|
|
482
480
|
handleClick: () => void;
|
|
483
481
|
}
|
|
484
482
|
|
|
485
|
-
export declare enum ESessionStatus {
|
|
486
|
-
COMPLETED = "COMPLETED",
|
|
487
|
-
IN_FUTURE = "IN FUTURE"
|
|
488
|
-
}
|
|
489
|
-
|
|
490
483
|
export declare const EveningIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
491
484
|
|
|
492
485
|
export declare const EVENTS: {
|
|
@@ -912,7 +905,6 @@ declare interface IBaseWorksheetProps {
|
|
|
912
905
|
studentId: string;
|
|
913
906
|
studentName?: string;
|
|
914
907
|
worksheetName: string;
|
|
915
|
-
background?: 'none' | 'paper';
|
|
916
908
|
layout: IWorksheetLayout;
|
|
917
909
|
behavior: IWorksheetBehavior;
|
|
918
910
|
initialResponseId?: string;
|
|
@@ -926,6 +918,7 @@ declare interface IBaseWorksheetProps {
|
|
|
926
918
|
canResolveDoubt?: boolean;
|
|
927
919
|
onSkip?: (itemIndex: number, widgetIndex: number) => void;
|
|
928
920
|
canShowActionBar?: boolean;
|
|
921
|
+
actionBarRightElement?: ReactElement;
|
|
929
922
|
}
|
|
930
923
|
|
|
931
924
|
declare interface IBlockSectionsCallbacks extends INodeCardCallbacks {
|
|
@@ -1255,12 +1248,10 @@ declare interface ICircularStepWrapperProps {
|
|
|
1255
1248
|
onNext?: () => void;
|
|
1256
1249
|
label?: string;
|
|
1257
1250
|
showNext?: boolean;
|
|
1258
|
-
isNextDisabled?: boolean;
|
|
1259
1251
|
showPrevious?: boolean;
|
|
1260
1252
|
isNextLoading?: boolean;
|
|
1261
1253
|
progressAngle?: number;
|
|
1262
1254
|
footerElement?: ReactElement;
|
|
1263
|
-
animationSrcMobile?: string;
|
|
1264
1255
|
}
|
|
1265
1256
|
|
|
1266
1257
|
declare interface IClaimUserAccountProps {
|
|
@@ -1403,8 +1394,6 @@ declare interface ICueCanvasCallbackProps {
|
|
|
1403
1394
|
|
|
1404
1395
|
declare interface ICueCanvasProps {
|
|
1405
1396
|
initialStrokesData?: Record<string, IActionData[]>;
|
|
1406
|
-
isCanvasEnabled: boolean;
|
|
1407
|
-
canToggleScribbling?: boolean;
|
|
1408
1397
|
}
|
|
1409
1398
|
|
|
1410
1399
|
declare interface ICurriculumStandards {
|
|
@@ -1489,7 +1478,8 @@ declare interface IDynamicWorksheetPreview {
|
|
|
1489
1478
|
userNodeId: string;
|
|
1490
1479
|
studentName: string;
|
|
1491
1480
|
onBackIconClick: () => void;
|
|
1492
|
-
|
|
1481
|
+
actionBarRightElement?: ReactElement;
|
|
1482
|
+
onOpenQuestionFeedbackModal?: (itemRef: string) => void;
|
|
1493
1483
|
}
|
|
1494
1484
|
|
|
1495
1485
|
declare interface IEditMilestoneModalProps extends IMilestoneEditProps {
|
|
@@ -2168,7 +2158,6 @@ export declare const ILLUSTRATIONS: {
|
|
|
2168
2158
|
CIRCLE_OUTERCIRCLE_BG: string;
|
|
2169
2159
|
CLOCK_ORANGE: string;
|
|
2170
2160
|
COMMUNITY_BULB: string;
|
|
2171
|
-
COMMUNITY_BULB_YELLOW_2: string;
|
|
2172
2161
|
CROSSHAIR_CIRCLE: string;
|
|
2173
2162
|
CROWN: string;
|
|
2174
2163
|
CROWN_OVERLAY: string;
|
|
@@ -2197,7 +2186,6 @@ export declare const ILLUSTRATIONS: {
|
|
|
2197
2186
|
KNOWLEDGE_BLUE: string;
|
|
2198
2187
|
LEARNED_SHIELD_GRAY: string;
|
|
2199
2188
|
LEARNED_SHIELD_GREEN: string;
|
|
2200
|
-
LEARNING_PUZZLE_BOT: string;
|
|
2201
2189
|
LEARNT: string;
|
|
2202
2190
|
LIKE: string;
|
|
2203
2191
|
LIVE_SESSION: string;
|
|
@@ -2401,10 +2389,6 @@ declare interface IMaintenanceProps {
|
|
|
2401
2389
|
userType: TUserTypes;
|
|
2402
2390
|
}
|
|
2403
2391
|
|
|
2404
|
-
declare interface IMathPracticeProps {
|
|
2405
|
-
onSwitchUser: () => void;
|
|
2406
|
-
}
|
|
2407
|
-
|
|
2408
2392
|
export declare interface IMessageProps {
|
|
2409
2393
|
event: `${WebViewEvent}`;
|
|
2410
2394
|
payload: IVibrationPattern | IPlayerStats | IInfoMessage | ITrackEvent | null;
|
|
@@ -2665,7 +2649,6 @@ export declare interface IModal {
|
|
|
2665
2649
|
isPrivate?: boolean;
|
|
2666
2650
|
/** Width of the modal in CSS units (e.g., '500px', '80vw') */
|
|
2667
2651
|
modalWidth: string;
|
|
2668
|
-
renderOnMobileAs?: 'bottom-sheet';
|
|
2669
2652
|
}
|
|
2670
2653
|
|
|
2671
2654
|
declare interface IModalCallbacks {
|
|
@@ -2822,10 +2805,6 @@ export declare const invalidatePuzzleToAssign: (id: string, query?: void | undef
|
|
|
2822
2805
|
|
|
2823
2806
|
export declare const invalidateTestHelpData: (id: string, query?: void | undefined, allIdsInvalid?: boolean) => void;
|
|
2824
2807
|
|
|
2825
|
-
declare interface IOnboardingGuideProps {
|
|
2826
|
-
orientation?: 'vertical' | 'horizontal';
|
|
2827
|
-
}
|
|
2828
|
-
|
|
2829
2808
|
declare interface IOnChapterExitWarningProps {
|
|
2830
2809
|
description: string;
|
|
2831
2810
|
onSuccess?: () => void;
|
|
@@ -2905,7 +2884,6 @@ declare interface IPillButtonProps extends IClickableAnalyticsProps {
|
|
|
2905
2884
|
onClick: (val: string) => void;
|
|
2906
2885
|
tooltip?: string;
|
|
2907
2886
|
width?: number | string;
|
|
2908
|
-
isTransparent?: boolean;
|
|
2909
2887
|
}
|
|
2910
2888
|
|
|
2911
2889
|
declare interface IPlaceholder {
|
|
@@ -3000,7 +2978,6 @@ declare interface IPreferencesCurriculumMap {
|
|
|
3000
2978
|
export declare interface IPreviewWorksheetModel {
|
|
3001
2979
|
signed_request: string;
|
|
3002
2980
|
questions_signed_request: string;
|
|
3003
|
-
player_config: IWorksheetBehavior;
|
|
3004
2981
|
worksheet_name: string;
|
|
3005
2982
|
}
|
|
3006
2983
|
|
|
@@ -3009,8 +2986,7 @@ declare interface IPreviewWorksheetProps {
|
|
|
3009
2986
|
worksheetName?: string;
|
|
3010
2987
|
nodeType: IResumeWorksheetModel['node_type'];
|
|
3011
2988
|
isLessonV3Enabled: boolean;
|
|
3012
|
-
|
|
3013
|
-
action: string;
|
|
2989
|
+
mode: 'resume' | 'review' | 'preview';
|
|
3014
2990
|
studentId: string;
|
|
3015
2991
|
userType: TUserTypes;
|
|
3016
2992
|
showNudgeBanner?: boolean;
|
|
@@ -3020,8 +2996,9 @@ declare interface IPreviewWorksheetProps {
|
|
|
3020
2996
|
onBackIconClick?: () => void;
|
|
3021
2997
|
items?: string[];
|
|
3022
2998
|
onWorksheetLoaded?: (loaded: boolean) => void;
|
|
3023
|
-
onUnassign?: () => void;
|
|
3024
2999
|
canStartUnassignJourney?: boolean;
|
|
3000
|
+
actionBarRightElement?: ReactElement;
|
|
3001
|
+
canShowActionBar?: boolean;
|
|
3025
3002
|
}
|
|
3026
3003
|
|
|
3027
3004
|
export declare interface IProject<T> {
|
|
@@ -3235,7 +3212,10 @@ export declare interface IResumeWorksheetModel extends IWorksheetAttemptModel {
|
|
|
3235
3212
|
worksheet_name: string;
|
|
3236
3213
|
signed_request: string;
|
|
3237
3214
|
questions_signed_request: string;
|
|
3238
|
-
player_config:
|
|
3215
|
+
player_config: {
|
|
3216
|
+
minimumAccuracy: number;
|
|
3217
|
+
validation: boolean;
|
|
3218
|
+
};
|
|
3239
3219
|
user_attempt_id: string;
|
|
3240
3220
|
permissions: {
|
|
3241
3221
|
can_access: IWorksheetPermissionV2;
|
|
@@ -3247,7 +3227,6 @@ export declare interface IResumeWorksheetModel extends IWorksheetAttemptModel {
|
|
|
3247
3227
|
export declare interface IReviewWorksheetModel {
|
|
3248
3228
|
signed_request: string;
|
|
3249
3229
|
questions_signed_request: string;
|
|
3250
|
-
player_config: IWorksheetBehavior;
|
|
3251
3230
|
attempt: IWorksheetAttemptModel;
|
|
3252
3231
|
worksheet: IWorksheetModel;
|
|
3253
3232
|
chapter_name?: string;
|
|
@@ -3358,22 +3337,6 @@ declare interface ISessionInsightsQuery {
|
|
|
3358
3337
|
student_name: string;
|
|
3359
3338
|
}
|
|
3360
3339
|
|
|
3361
|
-
declare interface ISessionStatusProps {
|
|
3362
|
-
completedSessions: number;
|
|
3363
|
-
nextSessionStartTime: number;
|
|
3364
|
-
status?: 'T_NO_SHOW' | 'S_NO_SHOW' | null;
|
|
3365
|
-
studentName: string;
|
|
3366
|
-
teacherName?: string;
|
|
3367
|
-
nextSessionEndTime: number;
|
|
3368
|
-
onRescheduleClick?: () => void;
|
|
3369
|
-
}
|
|
3370
|
-
|
|
3371
|
-
declare interface ISessionSummaryProps {
|
|
3372
|
-
isDemoDone: boolean;
|
|
3373
|
-
studentName: string;
|
|
3374
|
-
onViewSummary: (key: string) => void;
|
|
3375
|
-
}
|
|
3376
|
-
|
|
3377
3340
|
declare interface IShareInstructionModalProps {
|
|
3378
3341
|
milestoneAchievementId: string;
|
|
3379
3342
|
studentName: string;
|
|
@@ -3783,9 +3746,6 @@ declare interface ITeacherProfileDetails {
|
|
|
3783
3746
|
number_of_students_taught: number;
|
|
3784
3747
|
countries: string[];
|
|
3785
3748
|
degree: TDegreeInformation;
|
|
3786
|
-
first_name: string;
|
|
3787
|
-
last_name: string;
|
|
3788
|
-
teacher_profile_url?: string;
|
|
3789
3749
|
}
|
|
3790
3750
|
|
|
3791
3751
|
declare interface ITeacherProfileProps {
|
|
@@ -3996,10 +3956,6 @@ export declare interface ITutorialProps {
|
|
|
3996
3956
|
isJourneyActive?: boolean;
|
|
3997
3957
|
}
|
|
3998
3958
|
|
|
3999
|
-
declare interface IUpcomingSessionsProps {
|
|
4000
|
-
sessions: TSession[];
|
|
4001
|
-
}
|
|
4002
|
-
|
|
4003
3959
|
declare interface IUpdateImages {
|
|
4004
3960
|
filteredImages: string[];
|
|
4005
3961
|
newImages: IFile[];
|
|
@@ -4095,14 +4051,6 @@ declare interface IUsePuzzleIntroJourney {
|
|
|
4095
4051
|
onJourneyComplete: () => void;
|
|
4096
4052
|
}
|
|
4097
4053
|
|
|
4098
|
-
declare interface IUser {
|
|
4099
|
-
id: string;
|
|
4100
|
-
username?: string;
|
|
4101
|
-
user_avatar?: IAvatarLayer[] | null;
|
|
4102
|
-
phone?: string;
|
|
4103
|
-
iconSrc?: string;
|
|
4104
|
-
}
|
|
4105
|
-
|
|
4106
4054
|
export declare interface IUserChapterData {
|
|
4107
4055
|
chapter_code: string;
|
|
4108
4056
|
chapter_id: string;
|
|
@@ -4124,16 +4072,6 @@ declare interface IUserChapterProgressProps {
|
|
|
4124
4072
|
total_core_sheets: number;
|
|
4125
4073
|
}
|
|
4126
4074
|
|
|
4127
|
-
declare interface IUserListProps {
|
|
4128
|
-
users: IUser[];
|
|
4129
|
-
onSelect: (id: string) => void;
|
|
4130
|
-
showAddButton?: boolean;
|
|
4131
|
-
onAddNew?: () => void;
|
|
4132
|
-
maxColumns?: number;
|
|
4133
|
-
cardSize?: number;
|
|
4134
|
-
avatarSize?: number;
|
|
4135
|
-
}
|
|
4136
|
-
|
|
4137
4075
|
declare interface IUsernamePasswordFormProps {
|
|
4138
4076
|
username: string;
|
|
4139
4077
|
password: string;
|
|
@@ -4305,33 +4243,20 @@ export declare interface IWorksheetBehavior {
|
|
|
4305
4243
|
teacherValidationEnabled: boolean;
|
|
4306
4244
|
/**
|
|
4307
4245
|
* If worksheet is attempting outside the class setting
|
|
4308
|
-
*
|
|
4309
|
-
*
|
|
4310
|
-
* For student we show tooltip with 'Discuss with tutor in class'.
|
|
4311
|
-
* For teacher we show review cta.
|
|
4312
|
-
* * If false,
|
|
4313
|
-
* For student we show tooltip with 'Already solved'.
|
|
4314
|
-
* For teacher we don't show review cta.
|
|
4246
|
+
* This needs teacherValidationEnabled to be true
|
|
4247
|
+
* TODO-ANTIL: Accept only validation which can be 'system' or 'teacher' or undefined
|
|
4315
4248
|
*/
|
|
4316
4249
|
canTeacherValidate: boolean;
|
|
4317
|
-
/**
|
|
4318
|
-
* * In case of puzzle worksheet for teacher
|
|
4319
|
-
* * If true,
|
|
4320
|
-
* Teacher validation button will be disabled.
|
|
4321
|
-
* * If false,
|
|
4322
|
-
* Teacher validation button will be active.
|
|
4323
|
-
*/
|
|
4324
|
-
canTeacherValidateDisabled?: boolean;
|
|
4325
4250
|
/**
|
|
4326
4251
|
* If true, questions will be validated and feedback will be shown.
|
|
4327
4252
|
*/
|
|
4328
4253
|
validation: boolean;
|
|
4329
4254
|
/**
|
|
4330
|
-
* If true,
|
|
4255
|
+
* If true, solution wont be shown to the user.
|
|
4331
4256
|
*/
|
|
4332
4257
|
solutionHidden?: boolean;
|
|
4333
4258
|
/**
|
|
4334
|
-
* If true,
|
|
4259
|
+
* If true, questions will be validated and feedback will be shown along with the correct answer.
|
|
4335
4260
|
*/
|
|
4336
4261
|
review: boolean;
|
|
4337
4262
|
/**
|
|
@@ -4369,14 +4294,8 @@ export declare interface IWorksheetBehavior {
|
|
|
4369
4294
|
* If true show demos calculator https://www.desmos.com/calculator
|
|
4370
4295
|
*/
|
|
4371
4296
|
canShowDesmosCalc: boolean;
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
*/
|
|
4375
|
-
canUnAssign?: boolean;
|
|
4376
|
-
/**
|
|
4377
|
-
* If true, journey will be started.
|
|
4378
|
-
*/
|
|
4379
|
-
canStartJourney?: boolean;
|
|
4297
|
+
canvasEnabled?: boolean;
|
|
4298
|
+
canScribble?: boolean;
|
|
4380
4299
|
}
|
|
4381
4300
|
|
|
4382
4301
|
declare interface IWorksheetCallbackProps {
|
|
@@ -4400,12 +4319,10 @@ declare interface IWorksheetCallbackProps {
|
|
|
4400
4319
|
onExitTicketStart?: () => void;
|
|
4401
4320
|
onExitTicketSubmit?: () => void;
|
|
4402
4321
|
onSubmit?: (responses: Record<string, IWorksheetResponse>) => void;
|
|
4403
|
-
onUnassign?: () => void;
|
|
4404
|
-
onReview?: () => void;
|
|
4405
4322
|
loggerRef: MutableRefObject<(eventName: string, data?: Record<string, unknown>) => void>;
|
|
4406
4323
|
}
|
|
4407
4324
|
|
|
4408
|
-
declare interface IWorksheetContainerProps extends IBaseWorksheetProps, IWorksheetCallbackProps, ICueCanvasProps, ICueCanvasCallbackProps, IPointerSyncCallbackProps {
|
|
4325
|
+
declare interface IWorksheetContainerProps extends Omit<IBaseWorksheetProps, 'behavior'>, IWorksheetCallbackProps, ICueCanvasProps, ICueCanvasCallbackProps, IPointerSyncCallbackProps {
|
|
4409
4326
|
studentId: string;
|
|
4410
4327
|
attemptId?: string;
|
|
4411
4328
|
itemsSignedRequest: string;
|
|
@@ -4420,6 +4337,11 @@ declare interface IWorksheetContainerProps extends IBaseWorksheetProps, IWorkshe
|
|
|
4420
4337
|
summaryDescription?: ReactElement | null;
|
|
4421
4338
|
canSubmitWorksheet?: boolean;
|
|
4422
4339
|
subjectiveProps?: ISubjectiveSheetProps;
|
|
4340
|
+
inClass?: boolean;
|
|
4341
|
+
isLessonV3Enabled?: boolean;
|
|
4342
|
+
isDesmosEnabled?: boolean;
|
|
4343
|
+
nodeType: TNodeTypes;
|
|
4344
|
+
mode: 'resume' | 'review' | 'preview';
|
|
4423
4345
|
}
|
|
4424
4346
|
|
|
4425
4347
|
declare interface IWorksheetLayout {
|
|
@@ -4435,6 +4357,8 @@ declare interface IWorksheetLayout {
|
|
|
4435
4357
|
showUserPointer?: boolean;
|
|
4436
4358
|
renderQuestionHeader?: boolean;
|
|
4437
4359
|
imageHue?: THueNames;
|
|
4360
|
+
background?: 'none' | 'paper';
|
|
4361
|
+
questionPadding: number;
|
|
4438
4362
|
}
|
|
4439
4363
|
|
|
4440
4364
|
export declare interface IWorksheetModel {
|
|
@@ -4714,7 +4638,6 @@ export declare const LOTTIE: {
|
|
|
4714
4638
|
TOURNAMENT_RIPPLE: string;
|
|
4715
4639
|
TROPHY: string;
|
|
4716
4640
|
USERNAME: string;
|
|
4717
|
-
USERNAME_RESPONSIVE: string;
|
|
4718
4641
|
VICTORY: string;
|
|
4719
4642
|
VIDEO: string;
|
|
4720
4643
|
};
|
|
@@ -4729,8 +4652,6 @@ export declare const Maintenance: React_2.FC<IMaintenanceProps>;
|
|
|
4729
4652
|
|
|
4730
4653
|
declare const MASTERY: "mastery";
|
|
4731
4654
|
|
|
4732
|
-
export declare const MathPractice: FC<IMathPracticeProps>;
|
|
4733
|
-
|
|
4734
4655
|
export declare const MilestoneActionWidget: React_2.FC<IMilestoneActionWidgetProps>;
|
|
4735
4656
|
|
|
4736
4657
|
export declare const MilestoneCreate: React.FC<IMileStoneCreateContainerProps>;
|
|
@@ -4766,8 +4687,6 @@ export declare const Next2Icon: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
|
4766
4687
|
|
|
4767
4688
|
export declare const NextIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
4768
4689
|
|
|
4769
|
-
export declare const NextSteps: NamedExoticComponent<{}>;
|
|
4770
|
-
|
|
4771
4690
|
declare enum NODE_CARD_COURSE_TYPES {
|
|
4772
4691
|
PROGRAM = "PROGRAM",
|
|
4773
4692
|
REMEDIAL = "REMEDIAL",
|
|
@@ -4862,6 +4781,11 @@ export declare const NODE_TYPE: {
|
|
|
4862
4781
|
readonly MASTERY: "MASTERY";
|
|
4863
4782
|
readonly TRIAL_DIAGNOSTIC: "TRIAL_DIAGNOSTIC";
|
|
4864
4783
|
readonly PDF: "PDF";
|
|
4784
|
+
readonly TRIAL_BASIC: "TRIAL_BASIC";
|
|
4785
|
+
readonly TRIAL_INTERMEDIATE: "TRIAL_INTERMEDIATE";
|
|
4786
|
+
readonly TRIAL_ADVANCED: "TRIAL_ADVANCED";
|
|
4787
|
+
readonly SAT_ENGLISH_ASSESSMENT: "SAT_ENGLISH_ASSESSMENT";
|
|
4788
|
+
readonly SAT_MATH_ASSESSMENT: "SAT_MATH_ASSESSMENT";
|
|
4865
4789
|
};
|
|
4866
4790
|
|
|
4867
4791
|
export declare enum NODE_TYPES {
|
|
@@ -4938,7 +4862,7 @@ declare interface NumRangeInputProps {
|
|
|
4938
4862
|
endPlaceholder?: string;
|
|
4939
4863
|
}
|
|
4940
4864
|
|
|
4941
|
-
export declare const OnboardingGuide:
|
|
4865
|
+
export declare const OnboardingGuide: () => JSX.Element;
|
|
4942
4866
|
|
|
4943
4867
|
export declare const OTPForm: MemoExoticComponent<({ onSubmit, onChange, value, error, isProcessing, isValid, helperText, }: ISingleFieldFormProps) => JSX.Element>;
|
|
4944
4868
|
|
|
@@ -4950,8 +4874,6 @@ export declare const OverlayLoader: MemoExoticComponent<({ isLoading }: {
|
|
|
4950
4874
|
isLoading?: boolean | undefined;
|
|
4951
4875
|
}) => JSX.Element | null>;
|
|
4952
4876
|
|
|
4953
|
-
export declare const ParentDashboardFaqs: () => JSX.Element;
|
|
4954
|
-
|
|
4955
4877
|
export declare const PencilIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
4956
4878
|
|
|
4957
4879
|
export declare const PercentileInput: React_2.ForwardRefExoticComponent<IPercentileProps & React_2.RefAttributes<HTMLInputElement>>;
|
|
@@ -5185,10 +5107,6 @@ export declare const SENTRY_IGNORED_ERRORS: Array<string | RegExp>;
|
|
|
5185
5107
|
|
|
5186
5108
|
export declare const Separator: React_2.FC<ISeparatorProps>;
|
|
5187
5109
|
|
|
5188
|
-
export declare const SessionStatus: MemoExoticComponent<({ completedSessions, nextSessionStartTime, status, teacherName, studentName, onRescheduleClick, }: ISessionStatusProps) => JSX.Element>;
|
|
5189
|
-
|
|
5190
|
-
export declare const SessionSummary: MemoExoticComponent<({ isDemoDone, studentName, onViewSummary }: ISessionSummaryProps) => JSX.Element>;
|
|
5191
|
-
|
|
5192
5110
|
export declare const SHEET_ACTIONS: {
|
|
5193
5111
|
readonly START: "START";
|
|
5194
5112
|
readonly RESUME: "RESUME";
|
|
@@ -5555,7 +5473,6 @@ declare type TDefaultSection = Record<string, unknown>;
|
|
|
5555
5473
|
declare type TDegreeInformation = {
|
|
5556
5474
|
degree_name?: string;
|
|
5557
5475
|
field_of_study?: string;
|
|
5558
|
-
degree_code?: string;
|
|
5559
5476
|
};
|
|
5560
5477
|
|
|
5561
5478
|
declare type TDrawingData = ITile | IStroke | undefined;
|
|
@@ -6318,12 +6235,6 @@ export declare type TSelectedCountry = {
|
|
|
6318
6235
|
code: string;
|
|
6319
6236
|
};
|
|
6320
6237
|
|
|
6321
|
-
declare type TSession = {
|
|
6322
|
-
session_start: number;
|
|
6323
|
-
session_end: number;
|
|
6324
|
-
session_status: ESessionStatus;
|
|
6325
|
-
};
|
|
6326
|
-
|
|
6327
6238
|
export declare type TSessionReport = {
|
|
6328
6239
|
problems_attempted: number;
|
|
6329
6240
|
new_concepts_learnt?: number;
|
|
@@ -6536,8 +6447,6 @@ export declare const Unlock2Icon: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
|
6536
6447
|
|
|
6537
6448
|
export declare const UnlockIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
6538
6449
|
|
|
6539
|
-
export declare const UpcomingSessions: React_2.NamedExoticComponent<IUpcomingSessionsProps>;
|
|
6540
|
-
|
|
6541
6450
|
export declare const UpIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
6542
6451
|
|
|
6543
6452
|
export declare const useAutoPlayPermission: () => IAutoPlayPermissionContextType;
|
|
@@ -6741,6 +6650,11 @@ export declare const useModalParams: IUseModalParams;
|
|
|
6741
6650
|
|
|
6742
6651
|
export declare const usePointerSync: ({ userType, targetUserId, }: IusePointerSyncProps) => IusePointerSyncMethods;
|
|
6743
6652
|
|
|
6653
|
+
export declare const usePuzzleAttemptJourney: () => {
|
|
6654
|
+
puzzleAttemptCtaRef: RefObject<HTMLDivElement>;
|
|
6655
|
+
startJourney: () => void;
|
|
6656
|
+
};
|
|
6657
|
+
|
|
6744
6658
|
export declare const usePuzzleDashboardJourney: () => {
|
|
6745
6659
|
puzzleProfileRef: RefObject<HTMLDivElement>;
|
|
6746
6660
|
startJourney: (avatar: IAvatarLayer[]) => void;
|
|
@@ -6756,14 +6670,22 @@ export declare const usePuzzleProgressJourney: () => {
|
|
|
6756
6670
|
startJourney: () => void;
|
|
6757
6671
|
};
|
|
6758
6672
|
|
|
6673
|
+
export declare const usePuzzleReviewJourney: () => {
|
|
6674
|
+
puzzleReviewCtaRef: RefObject<HTMLDivElement>;
|
|
6675
|
+
startJourney: () => void;
|
|
6676
|
+
};
|
|
6677
|
+
|
|
6678
|
+
export declare const usePuzzleUnassignJourney: () => {
|
|
6679
|
+
puzzleUnassignRef: RefObject<HTMLDivElement>;
|
|
6680
|
+
startJourney: () => void;
|
|
6681
|
+
};
|
|
6682
|
+
|
|
6759
6683
|
export declare const User2Icon: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
6760
6684
|
|
|
6761
6685
|
export declare const UserIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
6762
6686
|
|
|
6763
6687
|
export declare const UserIdentifierForm: MemoExoticComponent<({ onSubmit, onChange, value, error, isSubmitDisabled, isProcessing, isValid, label, }: ISingleFieldFormProps) => JSX.Element>;
|
|
6764
6688
|
|
|
6765
|
-
export declare const UserList: NamedExoticComponent<IUserListProps>;
|
|
6766
|
-
|
|
6767
6689
|
export declare const UsernamePasswordForm: NamedExoticComponent<IUsernamePasswordFormProps>;
|
|
6768
6690
|
|
|
6769
6691
|
export declare const UserTypeSelector: NamedExoticComponent<IUserTypeSelectorProps>;
|