@cuemath/leap 3.2.29 → 3.2.30-aa1
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/features/milestone/milestone-tests/tests-creation/test-stages/test-preview/test-preview.js +13 -14
- 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/worksheet/worksheet/worksheet-action-bar/worksheet-action-bar.js +85 -86
- package/dist/features/worksheet/worksheet/worksheet-action-bar/worksheet-action-bar.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-behavior-helper.js +145 -0
- package/dist/features/worksheet/worksheet/worksheet-behavior-helper.js.map +1 -0
- 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 +156 -153
- package/dist/features/worksheet/worksheet/worksheet-questions-controller/worksheet-questions-controller.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-types.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet.js +320 -374
- package/dist/features/worksheet/worksheet/worksheet.js.map +1 -1
- package/dist/features/worksheet/worksheet-preview/dynamic-worksheet-preview/dynamic-worksheet-preview.js +28 -29
- 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 +13 -12
- package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js.map +1 -1
- package/dist/features/worksheet/worksheet-preview/worksheet-preview-view.js +74 -72
- 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 +32 -21
- package/dist/index.js +40 -38
- 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/package.json +1 -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
|
@@ -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 action,\n nodeType,\n worksheetName,\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 { useGetEligibleJourneysViaRoute } from '../../journey/hooks/use-get-eligible-journeys-via-route';\nimport { JOURNEY_ID_TEACHER } from '../../journey/journey-id/journey-id-teacher';\nimport FlexView from '../../ui/layout/flex-view';\nimport Text from '../../ui/text/text';\nimport { getWorksheetBehaviour } from '../worksheet/worksheet-behavior-helper';\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 action,\n nodeType,\n worksheetName,\n showNudgeBanner,\n markedAsCompleted,\n imageHue,\n onWorksheetLoaded,\n onWorksheetErrored,\n openQuestionFeedbackModal,\n onBackIconClick,\n onUnassign,\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 = isPuzzleWorksheet ? false : !isTestWorksheet;\n const eligibleJourneyIds = useGetEligibleJourneysViaRoute([\n JOURNEY_ID_TEACHER.PUZZLE_UNASSIGN_JOURNEY,\n ]);\n\n const layout = useWorksheetLayout({\n userType,\n nodeType,\n isSATAssessment,\n showNudgeBanner,\n topOffset: 56,\n imageHue,\n });\n\n const behavior = useMemo(() => {\n return getWorksheetBehaviour({\n nodeType,\n canAttempt: action === 'resume',\n isLessonV3Enabled: props.isLessonV3Enabled,\n userType: userType,\n canStartJourney: eligibleJourneyIds.includes(JOURNEY_ID_TEACHER.PUZZLE_UNASSIGN_JOURNEY),\n });\n }, [action, eligibleJourneyIds, nodeType, props.isLessonV3Enabled, userType]);\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 ?? (action === 'review' ? 'TEACHER' : 'STUDENT')}\n worksheetCompleted={action === 'review'}\n worksheetName={worksheetName || activityReference}\n itemsSignedRequest={signedRequest}\n questionsSignedRequest={questionsSignedRequest}\n behavior={behavior}\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 onUnassign={onUnassign}\n />\n </FlexView>\n </Styled.WorksheetPageWrapper>\n );\n});\n\nexport default PreviewWorksheetView;\n"],"names":["SAT_WORKSHEET_TYPES","PreviewWorksheetView","memo","props","studentId","userType","activityReference","worksheet","action","nodeType","worksheetName","showNudgeBanner","markedAsCompleted","imageHue","onWorksheetLoaded","onWorksheetErrored","openQuestionFeedbackModal","onBackIconClick","onUnassign","signedRequest","questionsSignedRequest","isPuzzleWorksheet","useMemo","isTestWorksheet","isSATAssessment","loggerRef","useRef","isActionBarVisible","eligibleJourneyIds","useGetEligibleJourneysViaRoute","JOURNEY_ID_TEACHER","layout","useWorksheetLayout","behavior","getWorksheetBehaviour","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 y, Fragment as x } from "react/jsx-runtime";
|
|
2
|
+
import { memo as R, useState as k, useMemo as j, useCallback as s, useEffect as A } from "react";
|
|
3
|
+
import L from "../../ui/error/error.js";
|
|
4
|
+
import u from "../../ui/loader/app-loader/app-loader.js";
|
|
5
|
+
import { usePreviewWorksheetGet as T } from "./api/get-preview-worksheet.js";
|
|
6
|
+
import b from "./worksheet-preview-view.js";
|
|
7
|
+
const C = R((n) => {
|
|
8
|
+
const { activityReference: h, nodeType: i, action: a, items: c, onWorksheetLoaded: e } = n, [p, m] = k(), [v, W] = k(!1), { isProcessing: g, get: d, data: r, error: w } = T(), f = j(() => r && {
|
|
9
|
+
...r
|
|
10
|
+
}, [r]), o = s(() => {
|
|
11
|
+
m(void 0), d(h, {
|
|
12
|
+
action: a,
|
|
13
|
+
node_type: i,
|
|
14
|
+
items: c
|
|
64
15
|
});
|
|
65
|
-
}, [
|
|
66
|
-
|
|
67
|
-
}, [
|
|
68
|
-
|
|
16
|
+
}, [a, h, d, i, c]), l = s(() => {
|
|
17
|
+
W(!0), e == null || e(!0);
|
|
18
|
+
}, [e]), E = s((P) => {
|
|
19
|
+
m(P.message);
|
|
69
20
|
}, []);
|
|
70
|
-
return
|
|
71
|
-
|
|
72
|
-
}, [
|
|
73
|
-
!
|
|
74
|
-
|
|
75
|
-
|
|
21
|
+
return A(() => {
|
|
22
|
+
o();
|
|
23
|
+
}, [o]), p || w ? /* @__PURE__ */ t(L, { height: "100vh", onTryAgain: o }) : g ? /* @__PURE__ */ t(u, { height: "100vh" }) : /* @__PURE__ */ y(x, { children: [
|
|
24
|
+
!v && /* @__PURE__ */ t(u, { height: "100vh" }),
|
|
25
|
+
f && /* @__PURE__ */ t(
|
|
26
|
+
b,
|
|
76
27
|
{
|
|
77
|
-
...
|
|
78
|
-
worksheet:
|
|
79
|
-
onWorksheetLoaded:
|
|
80
|
-
onWorksheetErrored:
|
|
28
|
+
...n,
|
|
29
|
+
worksheet: f,
|
|
30
|
+
onWorksheetLoaded: l,
|
|
31
|
+
onWorksheetErrored: E
|
|
81
32
|
}
|
|
82
33
|
)
|
|
83
34
|
] });
|
|
84
|
-
}),
|
|
35
|
+
}), _ = C;
|
|
85
36
|
export {
|
|
86
|
-
|
|
37
|
+
_ 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, action, 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,\n node_type: nodeType,\n items,\n });\n }, [action, 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","action","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,QAAAC,GAAQ,OAAAC,GAAO,mBAAAC,EAAsB,IAAAL,GAEpE,CAACM,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,EAAIX,GAAmB;AAAA,MACrB,QAAAE;AAAA,MACA,WAAWD;AAAA,MACX,OAAAE;AAAA,IAAA,CACD;AAAA,EAAA,GACA,CAACD,GAAQF,GAAmBW,GAAKV,GAAUE,CAAK,CAAC,GAE9CgB,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,GAAG7B;AAAA,QACJ,WAAAgB;AAAA,QACA,mBAAmBI;AAAA,QACnB,oBAAoBC;AAAA,MAAA;AAAA,IACtB;AAAA,EAEJ,EAAA,CAAA;AAEJ,CAAC,GAEDS,IAAehC;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -618,6 +618,18 @@ declare function getTextTypes(multiplier?: number): Record<TTextVariants, ITextC
|
|
|
618
618
|
|
|
619
619
|
export declare const getTheme: () => DefaultTheme;
|
|
620
620
|
|
|
621
|
+
export declare const getWorksheetBehaviour: ({ nodeType, inClass, isLessonV3Enabled, isDesmosEnabled, canStartJourney, canAttempt, userType, attemptState, isStudentPresent, }: {
|
|
622
|
+
nodeType: TNodeTypes;
|
|
623
|
+
inClass?: boolean;
|
|
624
|
+
isLessonV3Enabled: boolean;
|
|
625
|
+
isDesmosEnabled?: boolean;
|
|
626
|
+
canStartJourney?: boolean;
|
|
627
|
+
canAttempt: boolean;
|
|
628
|
+
userType: TUserTypes;
|
|
629
|
+
attemptState?: IReviewWorksheetModel["attempt"]["state"];
|
|
630
|
+
isStudentPresent?: boolean;
|
|
631
|
+
}) => IWorksheetBehavior;
|
|
632
|
+
|
|
621
633
|
declare function getZIndexConfig(): TZIndexMap;
|
|
622
634
|
|
|
623
635
|
export declare const GIF: {
|
|
@@ -899,7 +911,6 @@ declare interface IBaseWorksheetProps {
|
|
|
899
911
|
studentId: string;
|
|
900
912
|
studentName?: string;
|
|
901
913
|
worksheetName: string;
|
|
902
|
-
background?: 'none' | 'paper';
|
|
903
914
|
layout: IWorksheetLayout;
|
|
904
915
|
behavior: IWorksheetBehavior;
|
|
905
916
|
initialResponseId?: string;
|
|
@@ -1387,7 +1398,6 @@ declare interface ICueCanvasCallbackProps {
|
|
|
1387
1398
|
|
|
1388
1399
|
declare interface ICueCanvasProps {
|
|
1389
1400
|
initialStrokesData?: Record<string, IActionData[]>;
|
|
1390
|
-
isCanvasEnabled: boolean;
|
|
1391
1401
|
canToggleScribbling?: boolean;
|
|
1392
1402
|
}
|
|
1393
1403
|
|
|
@@ -2961,7 +2971,6 @@ declare interface IPreviewWorksheetProps {
|
|
|
2961
2971
|
worksheetName?: string;
|
|
2962
2972
|
nodeType: IResumeWorksheetModel['node_type'];
|
|
2963
2973
|
isLessonV3Enabled: boolean;
|
|
2964
|
-
scribblingEnabled: boolean;
|
|
2965
2974
|
action: string;
|
|
2966
2975
|
studentId: string;
|
|
2967
2976
|
userType: TUserTypes;
|
|
@@ -4159,7 +4168,7 @@ export declare interface IWorksheetBehavior {
|
|
|
4159
4168
|
*/
|
|
4160
4169
|
canAttempt: boolean;
|
|
4161
4170
|
/**
|
|
4162
|
-
* If true, the user can mark the question for review.
|
|
4171
|
+
* If true, the user can mark the question for review. Depreacte this
|
|
4163
4172
|
*/
|
|
4164
4173
|
canMarkForReview: boolean;
|
|
4165
4174
|
/**
|
|
@@ -4201,33 +4210,20 @@ export declare interface IWorksheetBehavior {
|
|
|
4201
4210
|
teacherValidationEnabled: boolean;
|
|
4202
4211
|
/**
|
|
4203
4212
|
* If worksheet is attempting outside the class setting
|
|
4204
|
-
*
|
|
4205
|
-
*
|
|
4206
|
-
* For student we show tooltip with 'Discuss with tutor in class'.
|
|
4207
|
-
* For teacher we show review cta.
|
|
4208
|
-
* * If false,
|
|
4209
|
-
* For student we show tooltip with 'Already solved'.
|
|
4210
|
-
* For teacher we don't show review cta.
|
|
4213
|
+
* This needs teacherValidationEnabled to be true
|
|
4214
|
+
* TODO-ANTIL: Accept only validation which can be 'system' or 'teacher' or undefined
|
|
4211
4215
|
*/
|
|
4212
4216
|
canTeacherValidate: boolean;
|
|
4213
|
-
/**
|
|
4214
|
-
* * In case of puzzle worksheet for teacher
|
|
4215
|
-
* * If true,
|
|
4216
|
-
* Teacher validation button will be disabled.
|
|
4217
|
-
* * If false,
|
|
4218
|
-
* Teacher validation button will be active.
|
|
4219
|
-
*/
|
|
4220
|
-
canTeacherValidateDisabled?: boolean;
|
|
4221
4217
|
/**
|
|
4222
4218
|
* If true, questions will be validated and feedback will be shown.
|
|
4223
4219
|
*/
|
|
4224
4220
|
validation: boolean;
|
|
4225
4221
|
/**
|
|
4226
|
-
* If true,
|
|
4222
|
+
* If true, solution wont be shown to the user.
|
|
4227
4223
|
*/
|
|
4228
4224
|
solutionHidden?: boolean;
|
|
4229
4225
|
/**
|
|
4230
|
-
* If true,
|
|
4226
|
+
* If true, questions will be validated and feedback will be shown along with the correct answer.
|
|
4231
4227
|
*/
|
|
4232
4228
|
review: boolean;
|
|
4233
4229
|
/**
|
|
@@ -4273,6 +4269,15 @@ export declare interface IWorksheetBehavior {
|
|
|
4273
4269
|
* If true, journey will be started.
|
|
4274
4270
|
*/
|
|
4275
4271
|
canStartJourney?: boolean;
|
|
4272
|
+
/**
|
|
4273
|
+
* the state of attempt of worksheet
|
|
4274
|
+
*/
|
|
4275
|
+
state?: TLPARSheetAttemptState;
|
|
4276
|
+
canvasEnabled?: boolean;
|
|
4277
|
+
/**
|
|
4278
|
+
* If true student is present
|
|
4279
|
+
*/
|
|
4280
|
+
isStudentPresent?: boolean;
|
|
4276
4281
|
}
|
|
4277
4282
|
|
|
4278
4283
|
declare interface IWorksheetCallbackProps {
|
|
@@ -4331,6 +4336,7 @@ declare interface IWorksheetLayout {
|
|
|
4331
4336
|
showUserPointer?: boolean;
|
|
4332
4337
|
renderQuestionHeader?: boolean;
|
|
4333
4338
|
imageHue?: THueNames;
|
|
4339
|
+
background?: 'none' | 'paper';
|
|
4334
4340
|
}
|
|
4335
4341
|
|
|
4336
4342
|
export declare interface IWorksheetModel {
|
|
@@ -4750,6 +4756,11 @@ export declare const NODE_TYPE: {
|
|
|
4750
4756
|
readonly MASTERY: "MASTERY";
|
|
4751
4757
|
readonly TRIAL_DIAGNOSTIC: "TRIAL_DIAGNOSTIC";
|
|
4752
4758
|
readonly PDF: "PDF";
|
|
4759
|
+
readonly TRIAL_BASIC: "TRIAL_BASIC";
|
|
4760
|
+
readonly TRIAL_INTERMEDIATE: "TRIAL_INTERMEDIATE";
|
|
4761
|
+
readonly TRIAL_ADVANCED: "TRIAL_ADVANCED";
|
|
4762
|
+
readonly SAT_ENGLISH_ASSESSMENT: "SAT_ENGLISH_ASSESSMENT";
|
|
4763
|
+
readonly SAT_MATH_ASSESSMENT: "SAT_MATH_ASSESSMENT";
|
|
4753
4764
|
};
|
|
4754
4765
|
|
|
4755
4766
|
export declare enum NODE_TYPES {
|
package/dist/index.js
CHANGED
|
@@ -18,7 +18,7 @@ import { default as G } from "./assets/line-icons/icons/calendar.js";
|
|
|
18
18
|
import { default as v } from "./assets/line-icons/icons/check.js";
|
|
19
19
|
import { default as b } from "./assets/line-icons/icons/check2.js";
|
|
20
20
|
import { default as z } from "./assets/line-icons/icons/clipboard.js";
|
|
21
|
-
import { default as
|
|
21
|
+
import { default as W } from "./assets/line-icons/icons/clock.js";
|
|
22
22
|
import { default as V } from "./assets/line-icons/icons/clock2.js";
|
|
23
23
|
import { default as J } from "./assets/line-icons/icons/code.js";
|
|
24
24
|
import { default as K } from "./assets/line-icons/icons/copy.js";
|
|
@@ -45,7 +45,7 @@ import { default as Ge } from "./assets/line-icons/icons/info.js";
|
|
|
45
45
|
import { default as ve } from "./assets/line-icons/icons/info2.js";
|
|
46
46
|
import { default as be } from "./assets/line-icons/icons/left.js";
|
|
47
47
|
import { default as ze } from "./assets/line-icons/icons/lock.js";
|
|
48
|
-
import { default as
|
|
48
|
+
import { default as We } from "./assets/line-icons/icons/lock2.js";
|
|
49
49
|
import { default as Ve } from "./assets/line-icons/icons/lock3.js";
|
|
50
50
|
import { default as Je } from "./assets/line-icons/icons/minus.js";
|
|
51
51
|
import { default as Ke } from "./assets/line-icons/icons/minus2.js";
|
|
@@ -72,7 +72,7 @@ import { default as yo } from "./assets/line-icons/icons/search.js";
|
|
|
72
72
|
import { default as Bo } from "./assets/line-icons/icons/sheet.js";
|
|
73
73
|
import { default as Uo } from "./assets/line-icons/icons/star.js";
|
|
74
74
|
import { default as wo } from "./assets/line-icons/icons/skip-colored.js";
|
|
75
|
-
import { default as
|
|
75
|
+
import { default as Fo } from "./assets/line-icons/icons/skip.js";
|
|
76
76
|
import { default as Yo } from "./assets/line-icons/icons/skip2.js";
|
|
77
77
|
import { default as Qo } from "./assets/line-icons/icons/star2.js";
|
|
78
78
|
import { default as jo } from "./assets/line-icons/icons/star3.js";
|
|
@@ -98,7 +98,7 @@ import { default as Gr } from "./assets/line-icons/icons/chat.js";
|
|
|
98
98
|
import { default as vr } from "./assets/line-icons/icons/cuemath-logo.js";
|
|
99
99
|
import { default as br } from "./assets/line-icons/icons/next2.js";
|
|
100
100
|
import { default as zr } from "./assets/line-icons/icons/evening.js";
|
|
101
|
-
import { default as
|
|
101
|
+
import { default as Wr } from "./assets/line-icons/icons/after-noon.js";
|
|
102
102
|
import { default as Vr } from "./assets/line-icons/icons/morning.js";
|
|
103
103
|
import { default as Jr } from "./assets/line-icons/icons/screen-grab-filled.js";
|
|
104
104
|
import { default as Kr } from "./assets/line-icons/icons/sticker-filled.js";
|
|
@@ -125,7 +125,7 @@ import { default as Gt } from "./features/ui/error/error.js";
|
|
|
125
125
|
import { default as vt } from "./features/ui/inputs/checkbox-input/checkbox-input.js";
|
|
126
126
|
import { default as bt } from "./features/ui/inputs/checkbox-input-list/checkbox-input-list.js";
|
|
127
127
|
import { default as zt } from "./features/ui/inputs/radio-input/radio-input.js";
|
|
128
|
-
import { default as
|
|
128
|
+
import { default as Wt } from "./features/ui/inputs/select-input/select-input.js";
|
|
129
129
|
import { default as Vt } from "./features/ui/inputs/searchable-select-input/searchable-select-input.js";
|
|
130
130
|
import { default as Jt } from "./features/ui/inputs/google-places-search-input/google-places-search-input.js";
|
|
131
131
|
import { default as Kt } from "./features/ui/inputs/text-input/text-input.js";
|
|
@@ -152,7 +152,7 @@ import { EDeviceType as ya } from "./features/ui/theme/constants.js";
|
|
|
152
152
|
import { getTheme as Ba } from "./features/ui/theme/get-theme.js";
|
|
153
153
|
import { default as Ua } from "./features/ui/avatar/avatar.js";
|
|
154
154
|
import { default as wa } from "./features/ui/time-left-timeline/time-left-timeline.js";
|
|
155
|
-
import { default as
|
|
155
|
+
import { default as Fa } from "./features/ui/tab/tab.js";
|
|
156
156
|
import { default as Ya } from "./features/ui/streak-icon/streak-icon.js";
|
|
157
157
|
import { default as Qa } from "./features/ui/separator/separator.js";
|
|
158
158
|
import { default as ja } from "./features/ui/video/index.js";
|
|
@@ -178,7 +178,7 @@ import { default as Gf } from "./features/auth/comps/pill-button/pill-button.js"
|
|
|
178
178
|
import { default as vf } from "./features/auth/comps/linear-progress-bar/linear-progress-bar.js";
|
|
179
179
|
import { default as bf } from "./features/auth/comps/selectable-info-card/selectable-info-card.js";
|
|
180
180
|
import { default as zf } from "./features/auth/comps/animated-avatar-message/animated-avatar-message.js";
|
|
181
|
-
import { default as
|
|
181
|
+
import { default as Wf } from "./features/auth/signup/user-type-selector/user-type-selector.js";
|
|
182
182
|
import { default as Vf } from "./features/auth/signup/claim-user-account/claim-user-account.js";
|
|
183
183
|
import { default as Jf } from "./features/auth/signup/custom-input-field/grade-input/grade-input.js";
|
|
184
184
|
import { default as Kf } from "./features/auth/signup/custom-input-field/date-picker-input/date-picker-input.js";
|
|
@@ -205,7 +205,7 @@ import { default as Gs } from "./features/blockers/multi-tab-blocker/multi-tab-b
|
|
|
205
205
|
import { default as vs } from "./features/chapters/chapter/chapter.js";
|
|
206
206
|
import { default as bs } from "./features/chapters/chapters-list/chapters-list.js";
|
|
207
207
|
import { default as zs } from "./features/chapters/lpar-chapter/lpar-chapter.js";
|
|
208
|
-
import { default as
|
|
208
|
+
import { default as Ws } from "./features/chapters/lpar-milestone-chapter/lpar-milestone-chapter.js";
|
|
209
209
|
import { default as Vs } from "./features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-summary/sat-sheet-summary.js";
|
|
210
210
|
import { checkIfPPTNodeType as Js } from "./features/chapters/lpar-chapter/utils/index.js";
|
|
211
211
|
import { getActiveSATSheet as Ks } from "./features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-utils.js";
|
|
@@ -232,7 +232,7 @@ import { useGetCircleHomeDetailsDal as Gl } from "./features/circle-games/game-l
|
|
|
232
232
|
import { Leaderboard as vl } from "./features/circle-games/leaderboard/leaderboard.js";
|
|
233
233
|
import { BackgroundImage as bl, CircularSteps as Ul } from "./features/circle-games/sign-up/comp/circular-steps/circular-steps.js";
|
|
234
234
|
import { SplashScreen as wl } from "./features/circle-games/sign-up/comp/splash-screen/splash-screen.js";
|
|
235
|
-
import { SignUp as
|
|
235
|
+
import { SignUp as Fl } from "./features/circle-games/sign-up/sign-up.js";
|
|
236
236
|
import { default as Yl } from "./features/cue-canvas/cue-canvas-provider.js";
|
|
237
237
|
import { default as Ql } from "./features/cue-canvas/toolbar/toolbar.js";
|
|
238
238
|
import { default as jl } from "./features/cue-canvas/cue-canvas.js";
|
|
@@ -258,7 +258,7 @@ import { useJourney as Gu } from "./features/journey/use-journey/use-journey.js"
|
|
|
258
258
|
import { useGetEligibleJourneysViaRoute as vu } from "./features/journey/hooks/use-get-eligible-journeys-via-route.js";
|
|
259
259
|
import { JourneyProvider as bu } from "./features/journey/use-journey/journey-context-provider.js";
|
|
260
260
|
import { IndicatorType as zu } from "./features/journey/use-journey/constants.js";
|
|
261
|
-
import { Coachmark as
|
|
261
|
+
import { Coachmark as Wu } from "./features/journey/comps/coachmark/coachmark.js";
|
|
262
262
|
import { useHomePageJourney as Vu } from "./features/journey/hooks/use-home-page-journey/use-home-page-journey.js";
|
|
263
263
|
import { useChapterPageJourney as Ju } from "./features/journey/hooks/use-chapter-page-journey/use-chapter-journey.js";
|
|
264
264
|
import { usePuzzleDashboardJourney as Ku } from "./features/journey/hooks/use-puzzles-journey/use-puzzle-dashboard-journey.js";
|
|
@@ -284,7 +284,7 @@ import { default as Hp } from "./features/milestone/milestone-tests/tests-creati
|
|
|
284
284
|
import { default as Gp } from "./features/milestone/milestone-resources/resources-assign/resources-assign.js";
|
|
285
285
|
import { ACHIEVEMENT_ACTIONS as vp, STAGES as Bp } from "./features/milestone/outcome/milestone-outcome-constants.js";
|
|
286
286
|
import { invalidateMilestonesData as Up, useGetAllMilestonesdata as zp } from "./features/milestone/milestone-list-container/api/get-milestones.js";
|
|
287
|
-
import { invalidatePastMilestoneCount as
|
|
287
|
+
import { invalidatePastMilestoneCount as Wp, useGetPastMilestoneCount as Fp } from "./features/milestone/milestone-list-container/api/get-past-milestone-count.js";
|
|
288
288
|
import { invalidateTestHelpData as Yp, useGetTestHelpData as Jp } from "./features/milestone/milestone-list-container/api/get-tests-list.js";
|
|
289
289
|
import { invalidateMilestoneResources as Kp, useGetMilestoneResources as jp } from "./features/milestone/milestone-list-container/api/get-milestone-resources.js";
|
|
290
290
|
import { default as qp } from "./features/pointer-sync/pointer.js";
|
|
@@ -302,7 +302,7 @@ import { WORKSHEET_V3_NODE_TYPES as Cm } from "./features/sheets/utils/is-v3-wor
|
|
|
302
302
|
import { COMPLETED_SHEET_STATE as Pm, NODE_LABELS as _m, NODE_SUB_GROUP as hm, NODE_TYPE as km, PYTHON_NODE_TYPES as Lm, REWARDS_LIST as Mm, SHEET_ACTIONS as Nm, SHEET_ATTEMPT_LOCATION as Om, SHEET_ATTEMPT_LOCATION_MAP as Rm, SHEET_ATTEMPT_STATE as Dm, SHEET_DATA_TYPE as Hm, SHEET_STATE as gm } from "./features/sheets/constants/sheet.js";
|
|
303
303
|
import { default as ym } from "./features/student-details/student-details.js";
|
|
304
304
|
import { default as Bm } from "./features/utils/load-script.js";
|
|
305
|
-
import { ACTION_BAR_HEIGHT as Um, QUESTIONS_GAP as zm, QUESTION_WIDTH as wm, TOP_NAVIGATION_HEIGHT as
|
|
305
|
+
import { ACTION_BAR_HEIGHT as Um, QUESTIONS_GAP as zm, QUESTION_WIDTH as wm, TOP_NAVIGATION_HEIGHT as Wm } from "./features/worksheet/worksheet/constants.js";
|
|
306
306
|
import { isOkayTypeQuestion as Vm } from "./features/worksheet/worksheet/worksheet-helpers.js";
|
|
307
307
|
import { default as Jm } from "./features/worksheet/worksheet/worksheet-container.js";
|
|
308
308
|
import { default as Km } from "./features/worksheet/worksheet-preview/worksheet-preview.js";
|
|
@@ -312,12 +312,13 @@ import { default as ed } from "./features/worksheet/worksheet/worksheet-permissi
|
|
|
312
312
|
import { default as rd } from "./features/worksheet/learnosity-preloader/learnosity-preloader.js";
|
|
313
313
|
import { default as ad } from "./features/worksheet/learnosity-preloader/use-is-learnosity-loaded.js";
|
|
314
314
|
import { default as sd } from "./features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js";
|
|
315
|
-
import {
|
|
316
|
-
import { default as md } from "./features/puzzles/puzzle-
|
|
317
|
-
import { default as xd } from "./features/puzzles/puzzle-
|
|
318
|
-
import { default as cd } from "./features/puzzles/
|
|
319
|
-
import {
|
|
320
|
-
import {
|
|
315
|
+
import { getWorksheetBehaviour as ud } from "./features/worksheet/worksheet/worksheet-behavior-helper.js";
|
|
316
|
+
import { default as md } from "./features/puzzles/puzzle-container/puzzle-container.js";
|
|
317
|
+
import { default as xd } from "./features/puzzles/puzzle-feedback-celebration/puzzle-feedback-celebration.js";
|
|
318
|
+
import { default as cd } from "./features/puzzles/puzzle-dashboard/puzzle-dashboard.js";
|
|
319
|
+
import { default as Id } from "./features/puzzles/app/puzzle-app.js";
|
|
320
|
+
import { invalidatePuzzleToAssign as Sd, useGetPuzzleToAssign as Ed } from "./features/puzzles/api/puzzle-assign.js";
|
|
321
|
+
import { COUNTRY_CODE_MAP as Ad } from "./constants/country.js";
|
|
321
322
|
export {
|
|
322
323
|
vp as ACHIEVEMENT_ACTIONS,
|
|
323
324
|
hs as AUTH_TABS,
|
|
@@ -327,7 +328,7 @@ export {
|
|
|
327
328
|
us as AccountSelector,
|
|
328
329
|
Ip as AchievementNotShareReasonModal,
|
|
329
330
|
Sp as AchievementShareInstructionModal,
|
|
330
|
-
|
|
331
|
+
Wr as AfternoonIcon,
|
|
331
332
|
c as AlertIcon,
|
|
332
333
|
of as AnimatedArc,
|
|
333
334
|
zf as AnimatedAvatarMessage,
|
|
@@ -355,7 +356,7 @@ export {
|
|
|
355
356
|
Rl as CIRCLE_ACTION_IDS,
|
|
356
357
|
Nl as CIRCLE_ONBOARDING_ANALYTICS_STEPS,
|
|
357
358
|
Pm as COMPLETED_SHEET_STATE,
|
|
358
|
-
|
|
359
|
+
Ad as COUNTRY_CODE_MAP,
|
|
359
360
|
G as CalendarIcon,
|
|
360
361
|
La as Callout,
|
|
361
362
|
lf as Carousel,
|
|
@@ -380,8 +381,8 @@ export {
|
|
|
380
381
|
Lt as Clickable,
|
|
381
382
|
z as ClipboardIcon,
|
|
382
383
|
V as Clock2Icon,
|
|
383
|
-
|
|
384
|
-
|
|
384
|
+
W as ClockIcon,
|
|
385
|
+
Wu as Coachmark,
|
|
385
386
|
J as CodeIcon,
|
|
386
387
|
St as ContextMenu,
|
|
387
388
|
K as CopyIcon,
|
|
@@ -459,12 +460,12 @@ export {
|
|
|
459
460
|
bu as JourneyProvider,
|
|
460
461
|
m as LOTTIE,
|
|
461
462
|
zs as LPARChapter,
|
|
462
|
-
|
|
463
|
+
Ws as LPARMilestoneChapter,
|
|
463
464
|
vl as Leaderboard,
|
|
464
465
|
rd as LearnosityPreloader,
|
|
465
466
|
be as LeftIcon,
|
|
466
467
|
vf as LinearProgressBar,
|
|
467
|
-
|
|
468
|
+
We as Lock2Icon,
|
|
468
469
|
Ve as Lock3Icon,
|
|
469
470
|
ze as LockIcon,
|
|
470
471
|
rp as Maintenance,
|
|
@@ -515,10 +516,10 @@ export {
|
|
|
515
516
|
Sl as ProjectOutcome,
|
|
516
517
|
Pl as ProjectType,
|
|
517
518
|
_o as Puzzle2Icon,
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
519
|
+
Id as PuzzleApp,
|
|
520
|
+
md as PuzzleCard,
|
|
521
|
+
cd as PuzzleDashboard,
|
|
522
|
+
xd as PuzzleFeedbackCelebration,
|
|
522
523
|
Ao as PuzzleIcon,
|
|
523
524
|
ko as QuestionIcon,
|
|
524
525
|
Mo as QuestionLetterIcon,
|
|
@@ -549,7 +550,7 @@ export {
|
|
|
549
550
|
yo as SearchIcon,
|
|
550
551
|
Vt as SearchableSelectInput,
|
|
551
552
|
Ca as SectionList,
|
|
552
|
-
|
|
553
|
+
Wt as SelectInput,
|
|
553
554
|
bf as SelectableInfoCard,
|
|
554
555
|
aa as SelectionCards,
|
|
555
556
|
Qa as Separator,
|
|
@@ -557,14 +558,14 @@ export {
|
|
|
557
558
|
Bo as SheetIcon,
|
|
558
559
|
Im as SheetList,
|
|
559
560
|
Xm as SheetLocked,
|
|
560
|
-
|
|
561
|
+
Fl as SignUp,
|
|
561
562
|
as as SignupHeader,
|
|
562
563
|
es as SignupMethods,
|
|
563
564
|
ss as SignupOptions,
|
|
564
565
|
Cr as SketchIcon,
|
|
565
566
|
Yo as Skip2Icon,
|
|
566
567
|
wo as SkipColoredIcon,
|
|
567
|
-
|
|
568
|
+
Fo as SkipIcon,
|
|
568
569
|
xs as SocialAccountNotFound,
|
|
569
570
|
ms as SocialLoginMethods,
|
|
570
571
|
wl as SplashScreen,
|
|
@@ -583,7 +584,7 @@ export {
|
|
|
583
584
|
ym as StudentDetails,
|
|
584
585
|
ap as SubmitMilestoneModal,
|
|
585
586
|
or as SwitchIcon,
|
|
586
|
-
|
|
587
|
+
Fa as TabComponent,
|
|
587
588
|
Lf as Tabs,
|
|
588
589
|
ha as Tag,
|
|
589
590
|
Cu as TalkMeter,
|
|
@@ -606,14 +607,14 @@ export {
|
|
|
606
607
|
Tr as User2Icon,
|
|
607
608
|
ir as UserIcon,
|
|
608
609
|
Ps as UserIdentifierForm,
|
|
609
|
-
|
|
610
|
+
Wf as UserTypeSelector,
|
|
610
611
|
cs as UsernamePasswordForm,
|
|
611
612
|
ja as Video,
|
|
612
613
|
Sf as WHITELIST_EVENTS,
|
|
613
614
|
Um as WORKSHEET_ACTION_BAR_HEIGHT,
|
|
614
615
|
zm as WORKSHEET_QUESTIONS_GAP,
|
|
615
616
|
wm as WORKSHEET_QUESTION_WIDTH,
|
|
616
|
-
|
|
617
|
+
Wm as WORKSHEET_TOP_NAVIGATION_HEIGHT,
|
|
617
618
|
Cm as WORKSHEET_V3_NODE_TYPES,
|
|
618
619
|
Il as WebView,
|
|
619
620
|
Cl as WebViewEvent,
|
|
@@ -621,12 +622,13 @@ export {
|
|
|
621
622
|
Js as checkIfPPTNodeType,
|
|
622
623
|
Ks as getActiveSATSheet,
|
|
623
624
|
Ba as getTheme,
|
|
625
|
+
ud as getWorksheetBehaviour,
|
|
624
626
|
Xs as invalidateGetChapterDetails,
|
|
625
627
|
Lu as invalidateHomeworks,
|
|
626
628
|
Kp as invalidateMilestoneResources,
|
|
627
629
|
Up as invalidateMilestonesData,
|
|
628
|
-
|
|
629
|
-
|
|
630
|
+
Wp as invalidatePastMilestoneCount,
|
|
631
|
+
Sd as invalidatePuzzleToAssign,
|
|
630
632
|
Yp as invalidateTestHelpData,
|
|
631
633
|
Vm as isOkayTypeQuestion,
|
|
632
634
|
Bm as loadScript,
|
|
@@ -642,8 +644,8 @@ export {
|
|
|
642
644
|
vu as useGetEligibleJourneysViaRoute,
|
|
643
645
|
ul as useGetLeaderboardDal,
|
|
644
646
|
jp as useGetMilestoneResources,
|
|
645
|
-
|
|
646
|
-
|
|
647
|
+
Fp as useGetPastMilestoneCount,
|
|
648
|
+
Ed as useGetPuzzleToAssign,
|
|
647
649
|
Jp as useGetTestHelpData,
|
|
648
650
|
Vu as useHomePageJourney,
|
|
649
651
|
pu as useInClassActionDispatcher,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"regex.js","sources":["../../../../../node_modules/uuid/dist/esm-browser/regex.js"],"sourcesContent":["export default /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;"],"names":["REGEX"],"mappings":"AAAA,MAAAA,IAAe;","x_google_ignoreList":[0]}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
const e = new Uint8Array(16);
|
|
1
|
+
var t, e = new Uint8Array(16);
|
|
3
2
|
function o() {
|
|
4
|
-
if (!t && (t = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !t))
|
|
3
|
+
if (!t && (t = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto < "u" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), !t))
|
|
5
4
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
6
5
|
return t(e);
|
|
7
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rng.js","sources":["../../../../../node_modules/uuid/dist/esm-browser/rng.js"],"sourcesContent":["// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\
|
|
1
|
+
{"version":3,"file":"rng.js","sources":["../../../../../node_modules/uuid/dist/esm-browser/rng.js"],"sourcesContent":["// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\nvar getRandomValues;\nvar rnds8 = new Uint8Array(16);\nexport default function rng() {\n // lazy load so that environments that need to polyfill have a chance to do so\n if (!getRandomValues) {\n // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation. Also,\n // find the complete implementation of crypto (msCrypto) on IE11.\n getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);\n\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n }\n\n return getRandomValues(rnds8);\n}"],"names":["getRandomValues","rnds8","rng"],"mappings":"AAGA,IAAIA,GACAC,IAAQ,IAAI,WAAW,EAAE;AACd,SAASC,IAAM;AAE5B,MAAI,CAACF,MAGHA,IAAkB,OAAO,SAAW,OAAe,OAAO,mBAAmB,OAAO,gBAAgB,KAAK,MAAM,KAAK,OAAO,WAAa,OAAe,OAAO,SAAS,mBAAoB,cAAc,SAAS,gBAAgB,KAAK,QAAQ,GAE3O,CAACA;AACH,UAAM,IAAI,MAAM,0GAA0G;AAI9H,SAAOA,EAAgBC,CAAK;AAC9B;","x_google_ignoreList":[0]}
|