@cuemath/leap 3.1.14-beta-0.2 → 3.1.14
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/auth/login/identifier-otp-form/identifier-otp-form.js +22 -21
- package/dist/features/auth/login/identifier-otp-form/identifier-otp-form.js.map +1 -1
- package/dist/index.d.ts +1 -8
- package/dist/index.js +54 -56
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/features/worksheet/worksheet-preview/api/get-dynamic-sheet.js +0 -9
- package/dist/features/worksheet/worksheet-preview/api/get-dynamic-sheet.js.map +0 -1
- package/dist/features/worksheet/worksheet-preview/dynamic-worksheet-preview/dynamic-worksheet-preview.js +0 -56
- package/dist/features/worksheet/worksheet-preview/dynamic-worksheet-preview/dynamic-worksheet-preview.js.map +0 -1
@@ -1,13 +1,13 @@
|
|
1
|
-
import { jsx as e, jsxs as d, Fragment as
|
2
|
-
import { memo as
|
3
|
-
import
|
1
|
+
import { jsx as e, jsxs as d, Fragment as F } from "react/jsx-runtime";
|
2
|
+
import { memo as x, useCallback as m } from "react";
|
3
|
+
import I from "../../../ui/buttons/button/button.js";
|
4
4
|
import u from "../../../ui/inputs/text-input/text-input.js";
|
5
5
|
import c from "../../../ui/layout/flex-view.js";
|
6
6
|
import s from "../../../ui/separator/separator.js";
|
7
7
|
import p from "../../comps/input-status-icon/input-status-icon.js";
|
8
|
-
import
|
9
|
-
import { Container as
|
10
|
-
const
|
8
|
+
import E from "../../comps/resend-otp/resend-otp.js";
|
9
|
+
import { Container as j, FormWrapper as v } from "./identifier-otp-form-styled.js";
|
10
|
+
const A = ({
|
11
11
|
identifier: f,
|
12
12
|
otp: l,
|
13
13
|
errors: r,
|
@@ -15,30 +15,31 @@ const v = ({
|
|
15
15
|
isLoading: n,
|
16
16
|
isSubmitDisabled: h,
|
17
17
|
showOtpInput: i,
|
18
|
+
isAuthRedirecting: g,
|
18
19
|
onChange: a,
|
19
|
-
onSubmit:
|
20
|
-
onSendOtp:
|
20
|
+
onSubmit: b,
|
21
|
+
onSendOtp: $
|
21
22
|
}) => {
|
22
|
-
const
|
23
|
+
const k = t ? "success-dark" : "primary-dark", y = m(
|
23
24
|
(o) => {
|
24
25
|
a("identifier", o.target.value);
|
25
26
|
},
|
26
27
|
[a]
|
27
|
-
),
|
28
|
+
), C = m(
|
28
29
|
(o) => {
|
29
30
|
a("otp", o.target.value);
|
30
31
|
},
|
31
32
|
[a]
|
32
33
|
);
|
33
34
|
return /* @__PURE__ */ e(
|
34
|
-
|
35
|
+
j,
|
35
36
|
{
|
36
37
|
$gutterX: 1.5,
|
37
38
|
$gapX: 1.5,
|
38
39
|
$background: "BLACK_2",
|
39
40
|
$alignItems: "center",
|
40
41
|
$justifyContent: "center",
|
41
|
-
children: /* @__PURE__ */ d(
|
42
|
+
children: /* @__PURE__ */ d(v, { onSubmit: b, children: [
|
42
43
|
/* @__PURE__ */ d(c, { $alignItems: "center", $justifyContent: "center", children: [
|
43
44
|
/* @__PURE__ */ e(
|
44
45
|
u,
|
@@ -47,7 +48,7 @@ const v = ({
|
|
47
48
|
autoFocus: !0,
|
48
49
|
label: "Email or Phone",
|
49
50
|
value: f,
|
50
|
-
onChange:
|
51
|
+
onChange: y,
|
51
52
|
required: !0,
|
52
53
|
width: "100%",
|
53
54
|
shape: "borderLess",
|
@@ -56,16 +57,16 @@ const v = ({
|
|
56
57
|
siblingElement: /* @__PURE__ */ e(p, { isError: !!r.identifier })
|
57
58
|
}
|
58
59
|
),
|
59
|
-
i && /* @__PURE__ */ d(
|
60
|
+
i && /* @__PURE__ */ d(F, { children: [
|
60
61
|
/* @__PURE__ */ e(s, { height: 36 }),
|
61
62
|
/* @__PURE__ */ e(
|
62
63
|
u,
|
63
64
|
{
|
64
65
|
type: "password",
|
65
|
-
renderAs: r.otp ? "error-dark" :
|
66
|
+
renderAs: r.otp ? "error-dark" : k,
|
66
67
|
label: "Verification code",
|
67
68
|
value: l,
|
68
|
-
onChange:
|
69
|
+
onChange: C,
|
69
70
|
width: "100%",
|
70
71
|
required: !0,
|
71
72
|
autoFocus: !0,
|
@@ -83,27 +84,27 @@ const v = ({
|
|
83
84
|
}
|
84
85
|
),
|
85
86
|
/* @__PURE__ */ e(s, { heightX: 1.25 }),
|
86
|
-
/* @__PURE__ */ e(c, { $alignItems: "flex-end", $width: "100%", children: /* @__PURE__ */ e(
|
87
|
+
/* @__PURE__ */ e(c, { $alignItems: "flex-end", $width: "100%", children: /* @__PURE__ */ e(E, { onResendOTP: $, disabled: t }) }),
|
87
88
|
/* @__PURE__ */ e(s, { heightX: 2 })
|
88
89
|
] })
|
89
90
|
] }),
|
90
91
|
/* @__PURE__ */ e(
|
91
|
-
|
92
|
+
I,
|
92
93
|
{
|
93
94
|
size: "small",
|
94
95
|
renderAs: "secondary-dark",
|
95
96
|
type: "submit",
|
96
97
|
label: i ? "Log In" : "Get Verification Code",
|
97
98
|
width: "100%",
|
98
|
-
busy:
|
99
|
+
busy: i ? g : n,
|
99
100
|
disabled: h
|
100
101
|
}
|
101
102
|
)
|
102
103
|
] })
|
103
104
|
}
|
104
105
|
);
|
105
|
-
},
|
106
|
+
}, T = x(A);
|
106
107
|
export {
|
107
|
-
|
108
|
+
T as default
|
108
109
|
};
|
109
110
|
//# sourceMappingURL=identifier-otp-form.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"identifier-otp-form.js","sources":["../../../../../src/features/auth/login/identifier-otp-form/identifier-otp-form.tsx"],"sourcesContent":["import type { IIdentifierOtpFormProps } from './identifier-otp-form-types';\n\nimport React, { type ChangeEvent, memo, useCallback } from 'react';\n\nimport Button from '../../../ui/buttons/button/button';\nimport TextInput from '../../../ui/inputs/text-input/text-input';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport InputStatusIcon from '../../comps/input-status-icon/input-status-icon';\nimport ResendOTP from '../../comps/resend-otp/resend-otp';\nimport * as Styled from './identifier-otp-form-styled';\n\nconst IdentifierOtpForm: React.FC<IIdentifierOtpFormProps> = ({\n identifier,\n otp,\n errors,\n isOtpVerified,\n isLoading,\n isSubmitDisabled,\n showOtpInput,\n onChange,\n onSubmit,\n onSendOtp,\n}) => {\n const otpStatusVariant = isOtpVerified ? 'success-dark' : 'primary-dark';\n\n const handleIdentifierChange = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => {\n onChange('identifier', e.target.value);\n },\n [onChange],\n );\n\n const handleOtpChange = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => {\n onChange('otp', e.target.value);\n },\n [onChange],\n );\n\n return (\n <Styled.Container\n $gutterX={1.5}\n $gapX={1.5}\n $background=\"BLACK_2\"\n $alignItems=\"center\"\n $justifyContent=\"center\"\n >\n <Styled.FormWrapper onSubmit={onSubmit}>\n <FlexView $alignItems=\"center\" $justifyContent=\"center\">\n <TextInput\n renderAs={errors.identifier ? 'error-dark' : 'primary-dark'}\n autoFocus\n label=\"Email or Phone\"\n value={identifier}\n onChange={handleIdentifierChange}\n required\n width=\"100%\"\n shape=\"borderLess\"\n errorMessage={errors.identifier}\n disabled={showOtpInput}\n siblingElement={<InputStatusIcon isError={!!errors.identifier} />}\n />\n {showOtpInput && (\n <>\n <Separator height={36} />\n <TextInput\n type=\"password\"\n renderAs={errors.otp ? 'error-dark' : otpStatusVariant}\n label=\"Verification code\"\n value={otp}\n onChange={handleOtpChange}\n width=\"100%\"\n required\n autoFocus\n shape=\"borderLess\"\n errorMessage={errors.otp}\n disabled={isOtpVerified || (otp.length === 4 && isLoading)}\n siblingElement={\n <InputStatusIcon\n isLoading={isLoading}\n isValid={isOtpVerified}\n isError={!!errors.otp}\n />\n }\n />\n <Separator heightX={1.25} />\n <FlexView $alignItems=\"flex-end\" $width=\"100%\">\n <ResendOTP onResendOTP={onSendOtp} disabled={isOtpVerified} />\n </FlexView>\n <Separator heightX={2} />\n </>\n )}\n </FlexView>\n <Button\n size=\"small\"\n renderAs=\"secondary-dark\"\n type=\"submit\"\n label={showOtpInput ? 'Log In' : 'Get Verification Code'}\n width=\"100%\"\n busy={
|
1
|
+
{"version":3,"file":"identifier-otp-form.js","sources":["../../../../../src/features/auth/login/identifier-otp-form/identifier-otp-form.tsx"],"sourcesContent":["import type { IIdentifierOtpFormProps } from './identifier-otp-form-types';\n\nimport React, { type ChangeEvent, memo, useCallback } from 'react';\n\nimport Button from '../../../ui/buttons/button/button';\nimport TextInput from '../../../ui/inputs/text-input/text-input';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport InputStatusIcon from '../../comps/input-status-icon/input-status-icon';\nimport ResendOTP from '../../comps/resend-otp/resend-otp';\nimport * as Styled from './identifier-otp-form-styled';\n\nconst IdentifierOtpForm: React.FC<IIdentifierOtpFormProps> = ({\n identifier,\n otp,\n errors,\n isOtpVerified,\n isLoading,\n isSubmitDisabled,\n showOtpInput,\n isAuthRedirecting,\n onChange,\n onSubmit,\n onSendOtp,\n}) => {\n const otpStatusVariant = isOtpVerified ? 'success-dark' : 'primary-dark';\n\n const handleIdentifierChange = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => {\n onChange('identifier', e.target.value);\n },\n [onChange],\n );\n\n const handleOtpChange = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => {\n onChange('otp', e.target.value);\n },\n [onChange],\n );\n\n return (\n <Styled.Container\n $gutterX={1.5}\n $gapX={1.5}\n $background=\"BLACK_2\"\n $alignItems=\"center\"\n $justifyContent=\"center\"\n >\n <Styled.FormWrapper onSubmit={onSubmit}>\n <FlexView $alignItems=\"center\" $justifyContent=\"center\">\n <TextInput\n renderAs={errors.identifier ? 'error-dark' : 'primary-dark'}\n autoFocus\n label=\"Email or Phone\"\n value={identifier}\n onChange={handleIdentifierChange}\n required\n width=\"100%\"\n shape=\"borderLess\"\n errorMessage={errors.identifier}\n disabled={showOtpInput}\n siblingElement={<InputStatusIcon isError={!!errors.identifier} />}\n />\n {showOtpInput && (\n <>\n <Separator height={36} />\n <TextInput\n type=\"password\"\n renderAs={errors.otp ? 'error-dark' : otpStatusVariant}\n label=\"Verification code\"\n value={otp}\n onChange={handleOtpChange}\n width=\"100%\"\n required\n autoFocus\n shape=\"borderLess\"\n errorMessage={errors.otp}\n disabled={isOtpVerified || (otp.length === 4 && isLoading)}\n siblingElement={\n <InputStatusIcon\n isLoading={isLoading}\n isValid={isOtpVerified}\n isError={!!errors.otp}\n />\n }\n />\n <Separator heightX={1.25} />\n <FlexView $alignItems=\"flex-end\" $width=\"100%\">\n <ResendOTP onResendOTP={onSendOtp} disabled={isOtpVerified} />\n </FlexView>\n <Separator heightX={2} />\n </>\n )}\n </FlexView>\n <Button\n size=\"small\"\n renderAs=\"secondary-dark\"\n type=\"submit\"\n label={showOtpInput ? 'Log In' : 'Get Verification Code'}\n width=\"100%\"\n busy={showOtpInput ? isAuthRedirecting : isLoading}\n disabled={isSubmitDisabled}\n />\n </Styled.FormWrapper>\n </Styled.Container>\n );\n};\n\nexport default memo(IdentifierOtpForm);\n"],"names":["IdentifierOtpForm","identifier","otp","errors","isOtpVerified","isLoading","isSubmitDisabled","showOtpInput","isAuthRedirecting","onChange","onSubmit","onSendOtp","otpStatusVariant","handleIdentifierChange","useCallback","e","handleOtpChange","jsx","Styled.Container","jsxs","Styled.FormWrapper","FlexView","TextInput","InputStatusIcon","Fragment","Separator","ResendOTP","Button","identifierOtpForm","memo"],"mappings":"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"}
|
package/dist/index.d.ts
CHANGED
@@ -334,8 +334,6 @@ export declare const DraftIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
334
334
|
|
335
335
|
export declare const DragIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
336
336
|
|
337
|
-
export declare const DynamicPreviewWorksheet: NamedExoticComponent<IDynamicWorksheetPreview>;
|
338
|
-
|
339
337
|
export declare enum EClassTimeAlertLevel {
|
340
338
|
FIVE_MIN = "5min",
|
341
339
|
FIFTEEN_MIN = "15min"
|
@@ -1298,12 +1296,6 @@ declare interface IDigitalMeterProps {
|
|
1298
1296
|
actAsTimer?: boolean;
|
1299
1297
|
}
|
1300
1298
|
|
1301
|
-
declare interface IDynamicWorksheetPreview {
|
1302
|
-
studentId: string;
|
1303
|
-
userNodeId: string;
|
1304
|
-
onBackIconClick: () => void;
|
1305
|
-
}
|
1306
|
-
|
1307
1299
|
declare interface IEditMilestoneModalProps extends IMilestoneEditProps {
|
1308
1300
|
studentId: string;
|
1309
1301
|
isUsingAlternateCurriculum: boolean;
|
@@ -1539,6 +1531,7 @@ declare interface IIdentifierOtpFormProps {
|
|
1539
1531
|
isOtpVerified: boolean;
|
1540
1532
|
isLoading: boolean;
|
1541
1533
|
isSubmitDisabled: boolean;
|
1534
|
+
isAuthRedirecting: boolean;
|
1542
1535
|
showOtpInput: boolean;
|
1543
1536
|
onChange: (key: 'identifier' | 'otp', value: string) => void;
|
1544
1537
|
onSubmit: (e: FormEvent<HTMLFormElement>) => void;
|
package/dist/index.js
CHANGED
@@ -14,9 +14,9 @@ import { default as L } from "./assets/line-icons/icons/bookmark.js";
|
|
14
14
|
import { default as k } from "./assets/line-icons/icons/bulb.js";
|
15
15
|
import { default as O } from "./assets/line-icons/icons/bulb2.js";
|
16
16
|
import { default as D } from "./assets/line-icons/icons/calendar.js";
|
17
|
-
import { default as
|
17
|
+
import { default as g } from "./assets/line-icons/icons/check.js";
|
18
18
|
import { default as U } from "./assets/line-icons/icons/check2.js";
|
19
|
-
import { default as
|
19
|
+
import { default as v } from "./assets/line-icons/icons/clipboard.js";
|
20
20
|
import { default as w } from "./assets/line-icons/icons/clock.js";
|
21
21
|
import { default as V } from "./assets/line-icons/icons/clock2.js";
|
22
22
|
import { default as Y } from "./assets/line-icons/icons/code.js";
|
@@ -41,9 +41,9 @@ import { default as Le } from "./assets/line-icons/icons/home.js";
|
|
41
41
|
import { default as ke } from "./assets/line-icons/icons/image.js";
|
42
42
|
import { default as Oe } from "./assets/line-icons/icons/info.js";
|
43
43
|
import { default as De } from "./assets/line-icons/icons/info2.js";
|
44
|
-
import { default as
|
44
|
+
import { default as ge } from "./assets/line-icons/icons/left.js";
|
45
45
|
import { default as Ue } from "./assets/line-icons/icons/lock.js";
|
46
|
-
import { default as
|
46
|
+
import { default as ve } from "./assets/line-icons/icons/lock2.js";
|
47
47
|
import { default as we } from "./assets/line-icons/icons/lock3.js";
|
48
48
|
import { default as Ve } from "./assets/line-icons/icons/minus.js";
|
49
49
|
import { default as Ye } from "./assets/line-icons/icons/minus2.js";
|
@@ -68,8 +68,8 @@ import { default as Mo } from "./assets/line-icons/icons/search.js";
|
|
68
68
|
import { default as No } from "./assets/line-icons/icons/sheet.js";
|
69
69
|
import { default as Ho } from "./assets/line-icons/icons/star.js";
|
70
70
|
import { default as Go } from "./assets/line-icons/icons/skip-colored.js";
|
71
|
-
import { default as
|
72
|
-
import { default as
|
71
|
+
import { default as yo } from "./assets/line-icons/icons/skip.js";
|
72
|
+
import { default as Bo } from "./assets/line-icons/icons/skip2.js";
|
73
73
|
import { default as bo } from "./assets/line-icons/icons/star2.js";
|
74
74
|
import { default as Wo } from "./assets/line-icons/icons/status.js";
|
75
75
|
import { default as Fo } from "./assets/line-icons/icons/striked-eye.js";
|
@@ -94,9 +94,9 @@ import { default as Lr } from "./assets/line-icons/icons/cuemath-logo.js";
|
|
94
94
|
import { default as kr } from "./assets/line-icons/icons/next2.js";
|
95
95
|
import { AutoPlayPermissionProvider as Or } from "./features/hooks/use-auto-play-permission/use-auto-play-permission-context-provider.js";
|
96
96
|
import { default as Dr } from "./features/hooks/use-zoom-disable.js";
|
97
|
-
import { default as
|
97
|
+
import { default as gr } from "./features/hooks/use-force-reload.js";
|
98
98
|
import { default as Ur } from "./features/ui/accordion-section/accordion-section.js";
|
99
|
-
import { default as
|
99
|
+
import { default as vr } from "./features/ui/arrow-tooltip/arrow-tooltip.js";
|
100
100
|
import { default as wr } from "./features/ui/context-menu/context-menu.js";
|
101
101
|
import { default as Vr } from "./features/ui/timers/countdown-timer/countdown-timer.js";
|
102
102
|
import { default as Yr } from "./features/ui/nudge/nudge.js";
|
@@ -121,9 +121,9 @@ import { default as Lt } from "./features/ui/layout/flex-view.js";
|
|
121
121
|
import { default as kt } from "./features/ui/loader/app-loader/app-loader.js";
|
122
122
|
import { CircularLoader as Ot } from "./features/ui/loader/circular-loader/circular-loader.js";
|
123
123
|
import { default as Dt } from "./features/ui/modals/modal-provider.js";
|
124
|
-
import { default as
|
124
|
+
import { default as gt } from "./features/ui/modals/use-modal-actions.js";
|
125
125
|
import { default as Ut } from "./features/ui/modals/use-modal-params.js";
|
126
|
-
import { default as
|
126
|
+
import { default as vt } from "./features/ui/radio-cards/radio-cards.js";
|
127
127
|
import { default as wt } from "./features/ui/section-list/section-list.js";
|
128
128
|
import { default as Vt } from "./features/ui/text/text.js";
|
129
129
|
import { default as Yt } from "./features/ui/tag/tag.js";
|
@@ -148,8 +148,8 @@ import { default as Ma } from "./features/auth/comps/tabs/tabs.js";
|
|
148
148
|
import { default as Na } from "./features/auth/comps/input-status-icon/input-status-icon.js";
|
149
149
|
import { default as Ha } from "./features/auth/comps/resend-otp/resend-otp.js";
|
150
150
|
import { default as Ga } from "./features/auth/signup/user-type-selector/user-type-selector.js";
|
151
|
-
import { default as
|
152
|
-
import { default as
|
151
|
+
import { default as ya } from "./features/auth/signup/claim-user-account/claim-user-account.js";
|
152
|
+
import { default as Ba } from "./features/auth/signup/custom-input-field/grade-input/grade-input.js";
|
153
153
|
import { default as ba } from "./features/auth/signup/custom-input-field/date-picker-input/date-picker-input.js";
|
154
154
|
import { default as Wa } from "./features/auth/signup/custom-input-field/custom-input-field.js";
|
155
155
|
import { default as Fa } from "./features/auth/signup/circular-step-wrapper/circular-step-wrapper.js";
|
@@ -174,9 +174,9 @@ import { default as Lf } from "./features/chapters/chapters-list/chapters-list.j
|
|
174
174
|
import { default as kf } from "./features/chapters/lpar-chapter/lpar-chapter.js";
|
175
175
|
import { default as Of } from "./features/chapters/lpar-milestone-chapter/lpar-milestone-chapter.js";
|
176
176
|
import { default as Df } from "./features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-summary/sat-sheet-summary.js";
|
177
|
-
import { checkIfPPTNodeType as
|
177
|
+
import { checkIfPPTNodeType as gf } from "./features/chapters/lpar-chapter/utils/index.js";
|
178
178
|
import { default as Uf } from "./features/chapters-v2/chapter-details/chapter-details.js";
|
179
|
-
import { invalidateGetChapterDetails as
|
179
|
+
import { invalidateGetChapterDetails as vf } from "./features/chapters-v2/api/chapter.js";
|
180
180
|
import { GAME_LAUNCHER_ASSET_PADDING as wf } from "./features/circle-games/game-launcher/comps/segmented-game-card/constants.js";
|
181
181
|
import { GAME_LAUNCHER_SIZE as Vf } from "./features/circle-games/game-launcher/comps/card-container/constants.js";
|
182
182
|
import { useCircleSounds as Yf } from "./features/circle-games/hooks/use-circle-sounds/use-circle-sounds.js";
|
@@ -201,8 +201,8 @@ import { SplashScreen as Ms } from "./features/circle-games/sign-up/comp/splash-
|
|
201
201
|
import { SignUp as Ns } from "./features/circle-games/sign-up/sign-up.js";
|
202
202
|
import { default as Hs } from "./features/cue-canvas/cue-canvas-provider.js";
|
203
203
|
import { default as Gs } from "./features/cue-canvas/toolbar/toolbar.js";
|
204
|
-
import { default as
|
205
|
-
import { default as
|
204
|
+
import { default as ys } from "./features/cue-canvas/cue-canvas.js";
|
205
|
+
import { default as Bs } from "./features/cue-canvas/hooks/use-canvas-sync-broker.js";
|
206
206
|
import { default as bs } from "./features/cue-canvas/sidebar/sidebar.js";
|
207
207
|
import { default as Ws } from "./features/cue-canvas/bottombar/homework-controls.js";
|
208
208
|
import { default as Fs } from "./features/communication/hooks/use-inclass-message-broker/use-inclass-message-broker.js";
|
@@ -227,9 +227,9 @@ import { Coachmark as Ll } from "./features/journey/comps/coachmark/coachmark.js
|
|
227
227
|
import { useHomePageJourney as kl } from "./features/journey/hooks/use-home-page-journey/use-home-page-journey.js";
|
228
228
|
import { useChapterPageJourney as Ol } from "./features/journey/hooks/use-chapter-journey.js";
|
229
229
|
import { default as Dl } from "./features/maintenance/maintenance.js";
|
230
|
-
import { default as
|
230
|
+
import { default as gl } from "./features/milestone/create/submit-modal/submit-modal.js";
|
231
231
|
import { default as Ul } from "./features/milestone/create/comps/confirmation-modals/goal-creation-confirmation.js";
|
232
|
-
import { default as
|
232
|
+
import { default as vl } from "./features/milestone/create/comps/confirmation-modals/chapter-clearance-confirmation.js";
|
233
233
|
import { default as wl } from "./features/milestone/create/milestone-create-container.js";
|
234
234
|
import { default as Vl } from "./features/milestone/edit/goal-drafts/goal-draft-edit-container.js";
|
235
235
|
import { default as Yl } from "./features/milestone/outcome/milestone-outcome-container.js";
|
@@ -252,8 +252,8 @@ import { default as Mp } from "./features/pointer-sync/pointer.js";
|
|
252
252
|
import { default as Np } from "./features/pointer-sync/hooks/use-pointer-sync.js";
|
253
253
|
import { DigitalMeter as Hp } from "./features/post-game-stats/digital-meter/digital-meter.js";
|
254
254
|
import { EPostGameStat as Gp } from "./features/post-game-stats/enums/post-game-stats-enum.js";
|
255
|
-
import { PostGameStats as
|
256
|
-
import { default as
|
255
|
+
import { PostGameStats as yp } from "./features/post-game-stats/post-game-stats.js";
|
256
|
+
import { default as Bp } from "./features/recent-chapters/recent-chapters.js";
|
257
257
|
import { SENTRY_DENIED_URLS as bp, SENTRY_IGNORED_ERRORS as wp } from "./features/sentry/constants/ignored.js";
|
258
258
|
import { default as Vp } from "./features/sheet-tools/desmos-calculator/desmos-calculator.js";
|
259
259
|
import { default as Yp } from "./features/sheet-tools/tool-header/tool-header.js";
|
@@ -268,14 +268,13 @@ import { ACTION_BAR_HEIGHT as Tm, QUESTIONS_GAP as Sm, QUESTION_WIDTH as Em, TOP
|
|
268
268
|
import { isOkayTypeQuestion as Pm } from "./features/worksheet/worksheet/worksheet-helpers.js";
|
269
269
|
import { default as hm } from "./features/worksheet/worksheet/worksheet-container.js";
|
270
270
|
import { default as Lm } from "./features/worksheet/worksheet-preview/worksheet-preview.js";
|
271
|
-
import { default as km } from "./features/worksheet/worksheet
|
272
|
-
import { default as Om } from "./features/worksheet/worksheet/worksheet-permissions/
|
273
|
-
import { default as Dm } from "./features/worksheet/
|
274
|
-
import { default as
|
275
|
-
import { default as Um } from "./features/worksheet/
|
276
|
-
import { default as
|
277
|
-
import {
|
278
|
-
import { COUNTRY_CODE_MAP as Vm } from "./constants/country.js";
|
271
|
+
import { default as km } from "./features/worksheet/worksheet/worksheet-permissions/sheet-locked.js";
|
272
|
+
import { default as Om } from "./features/worksheet/worksheet/worksheet-permissions/error.js";
|
273
|
+
import { default as Dm } from "./features/worksheet/learnosity-preloader/learnosity-preloader.js";
|
274
|
+
import { default as gm } from "./features/worksheet/learnosity-preloader/use-is-learnosity-loaded.js";
|
275
|
+
import { default as Um } from "./features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js";
|
276
|
+
import { default as vm } from "./features/hooks/use-viewport/use-viewport.js";
|
277
|
+
import { COUNTRY_CODE_MAP as wm } from "./constants/country.js";
|
279
278
|
export {
|
280
279
|
xp as ACHIEVEMENT_ACTIONS,
|
281
280
|
mf as AUTH_TABS,
|
@@ -287,7 +286,7 @@ export {
|
|
287
286
|
Ea as AnimatedArc,
|
288
287
|
kt as AppLoader,
|
289
288
|
et as ArcButton,
|
290
|
-
|
289
|
+
vr as ArrowTooltip,
|
291
290
|
df as AuthApiErrorCode,
|
292
291
|
_a as AuthPageLayout,
|
293
292
|
Aa as AuthStaticPanel,
|
@@ -308,17 +307,17 @@ export {
|
|
308
307
|
Is as CIRCLE_ACTION_IDS,
|
309
308
|
cs as CIRCLE_ONBOARDING_ANALYTICS_STEPS,
|
310
309
|
Xp as COMPLETED_SHEET_STATE,
|
311
|
-
|
310
|
+
wm as COUNTRY_CODE_MAP,
|
312
311
|
D as CalendarIcon,
|
313
312
|
Qt as Callout,
|
314
313
|
St as CascadingSelectInput,
|
315
314
|
hf as Chapter,
|
316
|
-
|
315
|
+
vl as ChapterClearanceConfirmationModal,
|
317
316
|
Uf as ChapterDetails,
|
318
317
|
Lf as ChaptersList,
|
319
318
|
hr as ChatIcon,
|
320
319
|
U as Check2Icon,
|
321
|
-
|
320
|
+
g as CheckIcon,
|
322
321
|
at as CheckboxInput,
|
323
322
|
st as CheckboxInputList,
|
324
323
|
Sr as ChevronDownIcon,
|
@@ -328,9 +327,9 @@ export {
|
|
328
327
|
Ot as CircularLoader,
|
329
328
|
Fa as CircularStepWrapper,
|
330
329
|
Rs as CircularSteps,
|
331
|
-
|
330
|
+
ya as ClaimUserAccount,
|
332
331
|
jr as Clickable,
|
333
|
-
|
332
|
+
v as ClipboardIcon,
|
334
333
|
V as Clock2Icon,
|
335
334
|
w as ClockIcon,
|
336
335
|
Ll as Coachmark,
|
@@ -339,7 +338,7 @@ export {
|
|
339
338
|
Q as CopyIcon,
|
340
339
|
Vr as CountdownTimer,
|
341
340
|
j as CrossIcon,
|
342
|
-
|
341
|
+
ys as CueCanvas,
|
343
342
|
Gs as CueCanvasController,
|
344
343
|
Ws as CueCanvasHomeworkController,
|
345
344
|
Hs as CueCanvasProvider,
|
@@ -354,7 +353,6 @@ export {
|
|
354
353
|
ee as DownIcon,
|
355
354
|
re as DraftIcon,
|
356
355
|
ae as DragIcon,
|
357
|
-
km as DynamicPreviewWorksheet,
|
358
356
|
el as EClassTimeAlertLevel,
|
359
357
|
qf as ELeaderboardType,
|
360
358
|
up as EPResourceAssign,
|
@@ -380,7 +378,7 @@ export {
|
|
380
378
|
Vl as GoalDraftEdit,
|
381
379
|
Xl as GoalEdit,
|
382
380
|
ct as GooglePlacesSearchInput,
|
383
|
-
|
381
|
+
Ba as GradeInput,
|
384
382
|
r as GradeSelector,
|
385
383
|
Ce as HandIcon,
|
386
384
|
Pe as HelpIcon,
|
@@ -405,9 +403,9 @@ export {
|
|
405
403
|
kf as LPARChapter,
|
406
404
|
Of as LPARMilestoneChapter,
|
407
405
|
Ps as Leaderboard,
|
408
|
-
|
409
|
-
|
410
|
-
|
406
|
+
Dm as LearnosityPreloader,
|
407
|
+
ge as LeftIcon,
|
408
|
+
ve as Lock2Icon,
|
411
409
|
we as Lock3Icon,
|
412
410
|
Ue as LockIcon,
|
413
411
|
Dl as Maintenance,
|
@@ -445,7 +443,7 @@ export {
|
|
445
443
|
uo as Plus2Icon,
|
446
444
|
po as PlusIcon,
|
447
445
|
ro as PointerIcon,
|
448
|
-
|
446
|
+
yp as PostGameStats,
|
449
447
|
no as PracticeIcon,
|
450
448
|
Lm as PreviewWorksheet,
|
451
449
|
io as ProgressIcon,
|
@@ -454,9 +452,9 @@ export {
|
|
454
452
|
To as QuestionIcon,
|
455
453
|
Eo as QuestionLetterIcon,
|
456
454
|
tm as REWARDS_LIST,
|
457
|
-
|
455
|
+
vt as RadioCard,
|
458
456
|
pt as RadioInput,
|
459
|
-
|
457
|
+
Bp as RecentChapters,
|
460
458
|
Ao as RedoIcon,
|
461
459
|
jp as ReferenceSheet,
|
462
460
|
Mp as RemotePeerPointer,
|
@@ -481,16 +479,16 @@ export {
|
|
481
479
|
ut as SelectInput,
|
482
480
|
ht as SelectionCards,
|
483
481
|
da as Separator,
|
484
|
-
|
482
|
+
Om as SheetError,
|
485
483
|
No as SheetIcon,
|
486
484
|
Qp as SheetList,
|
487
|
-
|
485
|
+
km as SheetLocked,
|
488
486
|
Ns as SignUp,
|
489
487
|
Ja as SignupMethods,
|
490
488
|
ur as SketchIcon,
|
491
|
-
|
489
|
+
Bo as Skip2Icon,
|
492
490
|
Go as SkipColoredIcon,
|
493
|
-
|
491
|
+
yo as SkipIcon,
|
494
492
|
za as SocialAccountNotFound,
|
495
493
|
Za as SocialLoginMethods,
|
496
494
|
Ms as SplashScreen,
|
@@ -502,7 +500,7 @@ export {
|
|
502
500
|
Xf as StreakReductionLocalStorageUtil,
|
503
501
|
Fo as StrikedEyeIcon,
|
504
502
|
dm as StudentDetails,
|
505
|
-
|
503
|
+
gl as SubmitMilestoneModal,
|
506
504
|
Jo as SwitchIcon,
|
507
505
|
la as TabComponent,
|
508
506
|
Ma as Tabs,
|
@@ -538,9 +536,9 @@ export {
|
|
538
536
|
rs as WebView,
|
539
537
|
ss as WebViewEvent,
|
540
538
|
hm as Worksheet,
|
541
|
-
|
539
|
+
gf as checkIfPPTNodeType,
|
542
540
|
oa as getTheme,
|
543
|
-
|
541
|
+
vf as invalidateGetChapterDetails,
|
544
542
|
ul as invalidateHomeworks,
|
545
543
|
hp as invalidateMilestoneResources,
|
546
544
|
ip as invalidateMilestonesData,
|
@@ -550,12 +548,12 @@ export {
|
|
550
548
|
nm as loadScript,
|
551
549
|
im as media,
|
552
550
|
xl as useAutoPlayPermission,
|
553
|
-
|
551
|
+
Bs as useCanvasSyncBroker,
|
554
552
|
Ol as useChapterPageJourney,
|
555
553
|
Yf as useCircleSounds,
|
556
554
|
rl as useClassTimeAlerts,
|
557
555
|
$t as useContextMenuClickHandler,
|
558
|
-
|
556
|
+
gr as useForceReload,
|
559
557
|
Ip as useGetAllMilestonesdata,
|
560
558
|
Cs as useGetCircleHomeDetailsDal,
|
561
559
|
Cl as useGetEligibleJourneysViaRoute,
|
@@ -567,17 +565,17 @@ export {
|
|
567
565
|
Zs as useInClassActionDispatcher,
|
568
566
|
qs as useInClassActionListener,
|
569
567
|
Fs as useInClassMessageBroker,
|
570
|
-
|
568
|
+
gm as useIsLearnosityLoaded,
|
571
569
|
Cf as useIsTabBlocked,
|
572
570
|
Sl as useJourney,
|
573
|
-
|
571
|
+
gt as useModalActions,
|
574
572
|
Ut as useModalParams,
|
575
573
|
Np as usePointerSync,
|
576
574
|
zt as useTrackingContext,
|
577
575
|
Js as useTrialSessionMessageBroker,
|
578
576
|
Zt as useUIContext,
|
579
|
-
|
580
|
-
|
577
|
+
vm as useViewport,
|
578
|
+
Um as useWorksheetLayout,
|
581
579
|
Dr as useZoomDisable
|
582
580
|
};
|
583
581
|
//# sourceMappingURL=index.js.map
|
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
@@ -1,9 +0,0 @@
|
|
1
|
-
import { createGetAPI as t } from "@cuemath/rest-api";
|
2
|
-
import { BASE_URL_V2 as o } from "../../../../constants/api.js";
|
3
|
-
const { useGet: s } = t({
|
4
|
-
getURL: (e) => `${o}/student-nodes/${e}/`
|
5
|
-
});
|
6
|
-
export {
|
7
|
-
s as useGetDynamicSheetData
|
8
|
-
};
|
9
|
-
//# sourceMappingURL=get-dynamic-sheet.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"get-dynamic-sheet.js","sources":["../../../../../src/features/worksheet/worksheet-preview/api/get-dynamic-sheet.ts"],"sourcesContent":["import type { INodeDataProps } from '../../../chapters-v2/comps/node-card/node-card-types';\n\nimport { createGetAPI } from '@cuemath/rest-api';\n\nimport { BASE_URL_V2 } from '../../../../constants/api';\n\nconst { useGet: useGetDynamicSheetData } = createGetAPI<INodeDataProps, void>({\n getURL: userNodeId => `${BASE_URL_V2}/student-nodes/${userNodeId}/`,\n});\n\nexport { useGetDynamicSheetData };\n"],"names":["useGetDynamicSheetData","createGetAPI","userNodeId","BASE_URL_V2"],"mappings":";;AAMA,MAAM,EAAE,QAAQA,EAAuB,IAAIC,EAAmC;AAAA,EAC5E,QAAQ,CAAAC,MAAc,GAAGC,CAAW,kBAAkBD,CAAU;AAClE,CAAC;"}
|
@@ -1,56 +0,0 @@
|
|
1
|
-
import { jsx as e, jsxs as y } from "react/jsx-runtime";
|
2
|
-
import { memo as o, useCallback as g, useEffect as w } from "react";
|
3
|
-
import D from "../../../ui/buttons/button/button.js";
|
4
|
-
import k from "../../../ui/layout/flex-view.js";
|
5
|
-
import b from "../../../ui/loader/app-loader/app-loader.js";
|
6
|
-
import v from "../../../ui/text/text.js";
|
7
|
-
import { useGetDynamicSheetData as x } from "../api/get-dynamic-sheet.js";
|
8
|
-
import A from "../worksheet-preview.js";
|
9
|
-
const C = o((a) => {
|
10
|
-
const { studentId: t, userNodeId: i, onBackIconClick: m } = a, {
|
11
|
-
get: s,
|
12
|
-
data: c,
|
13
|
-
isProcessing: l,
|
14
|
-
isProcessingFailed: d
|
15
|
-
} = x(), {
|
16
|
-
items: f = [],
|
17
|
-
title: h,
|
18
|
-
node_type: p = "DYNAMIC"
|
19
|
-
} = c || {}, n = f.map(({ ref: u }) => u), r = g(() => {
|
20
|
-
t && i && s(i);
|
21
|
-
}, [s, t, i]);
|
22
|
-
return w(() => {
|
23
|
-
r();
|
24
|
-
}, [r]), l ? /* @__PURE__ */ e(b, { height: "100%" }) : d ? /* @__PURE__ */ y(k, { $flexGapX: 1.5, $height: "100vh", $justifyContent: "center", $alignItems: "center", children: [
|
25
|
-
/* @__PURE__ */ e(v, { $renderAs: "h6", children: "Oops! Something went wrong. Please try again later." }),
|
26
|
-
/* @__PURE__ */ e(
|
27
|
-
D,
|
28
|
-
{
|
29
|
-
widthX: 14,
|
30
|
-
size: "small",
|
31
|
-
shape: "square",
|
32
|
-
renderAs: "primary",
|
33
|
-
label: "Try again",
|
34
|
-
onClick: r
|
35
|
-
}
|
36
|
-
)
|
37
|
-
] }) : n ? /* @__PURE__ */ e(
|
38
|
-
A,
|
39
|
-
{
|
40
|
-
activityReference: "test",
|
41
|
-
action: "review",
|
42
|
-
nodeType: p,
|
43
|
-
userType: "TEACHER",
|
44
|
-
studentId: t ?? "student-id",
|
45
|
-
isLessonV3Enabled: !1,
|
46
|
-
worksheetName: h,
|
47
|
-
scribblingEnabled: !1,
|
48
|
-
items: n,
|
49
|
-
onBackIconClick: m
|
50
|
-
}
|
51
|
-
) : null;
|
52
|
-
}), N = o(C);
|
53
|
-
export {
|
54
|
-
N as default
|
55
|
-
};
|
56
|
-
//# sourceMappingURL=dynamic-worksheet-preview.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"dynamic-worksheet-preview.js","sources":["../../../../../src/features/worksheet/worksheet-preview/dynamic-worksheet-preview/dynamic-worksheet-preview.tsx"],"sourcesContent":["import type { TNodeTypes } from '../../../../types/models/worksheet';\nimport type { IDynamicWorksheetPreview } from './dynamic-worksheet-types';\nimport type { FC } from 'react';\n\nimport { memo, useCallback, useEffect } from 'react';\n\nimport Button from '../../../ui/buttons/button/button';\nimport FlexView from '../../../ui/layout/flex-view';\nimport AppLoader from '../../../ui/loader/app-loader/app-loader';\nimport Text from '../../../ui/text/text';\nimport { useGetDynamicSheetData } from '../api/get-dynamic-sheet';\nimport PreviewWorksheet from '../worksheet-preview';\n\nconst DynamicWorksheetPreview: FC<IDynamicWorksheetPreview> = memo(props => {\n const { studentId, userNodeId, onBackIconClick } = props;\n\n const {\n get: getDynamicSheetData,\n data: dynamicSheetData,\n isProcessing,\n isProcessingFailed,\n } = useGetDynamicSheetData();\n\n const {\n items: itemsToBeAssigned = [],\n title,\n node_type: nodeType = 'DYNAMIC',\n } = dynamicSheetData || {};\n const itemRefs = itemsToBeAssigned.map(({ ref }) => ref);\n\n const fetchDynamicSheetData = useCallback(() => {\n if (studentId && userNodeId) {\n getDynamicSheetData(userNodeId);\n }\n }, [getDynamicSheetData, studentId, userNodeId]);\n\n useEffect(() => {\n fetchDynamicSheetData();\n }, [fetchDynamicSheetData]);\n\n if (isProcessing) {\n return <AppLoader height=\"100%\" />;\n }\n\n if (isProcessingFailed) {\n return (\n <FlexView $flexGapX={1.5} $height=\"100vh\" $justifyContent=\"center\" $alignItems=\"center\">\n <Text $renderAs=\"h6\">Oops! Something went wrong. Please try again later.</Text>\n <Button\n widthX={14}\n size=\"small\"\n shape=\"square\"\n renderAs=\"primary\"\n label=\"Try again\"\n onClick={fetchDynamicSheetData}\n />\n </FlexView>\n );\n }\n\n if (!itemRefs) {\n return null;\n }\n\n return (\n <PreviewWorksheet\n activityReference=\"test\"\n action=\"review\"\n nodeType={nodeType as TNodeTypes}\n userType=\"TEACHER\"\n studentId={studentId ?? 'student-id'}\n isLessonV3Enabled={false}\n worksheetName={title}\n scribblingEnabled={false}\n items={itemRefs}\n onBackIconClick={onBackIconClick}\n />\n );\n});\n\nexport default memo(DynamicWorksheetPreview);\n"],"names":["DynamicWorksheetPreview","memo","props","studentId","userNodeId","onBackIconClick","getDynamicSheetData","dynamicSheetData","isProcessing","isProcessingFailed","useGetDynamicSheetData","itemsToBeAssigned","title","nodeType","itemRefs","ref","fetchDynamicSheetData","useCallback","useEffect","jsx","AppLoader","jsxs","FlexView","Text","Button","PreviewWorksheet","dynamicWorksheetPreview"],"mappings":";;;;;;;;AAaA,MAAMA,IAAwDC,EAAK,CAASC,MAAA;AAC1E,QAAM,EAAE,WAAAC,GAAW,YAAAC,GAAY,iBAAAC,EAAA,IAAoBH,GAE7C;AAAA,IACJ,KAAKI;AAAA,IACL,MAAMC;AAAA,IACN,cAAAC;AAAA,IACA,oBAAAC;AAAA,MACEC,EAAuB,GAErB;AAAA,IACJ,OAAOC,IAAoB,CAAC;AAAA,IAC5B,OAAAC;AAAA,IACA,WAAWC,IAAW;AAAA,EAAA,IACpBN,KAAoB,CAAA,GAClBO,IAAWH,EAAkB,IAAI,CAAC,EAAE,KAAAI,EAAA,MAAUA,CAAG,GAEjDC,IAAwBC,EAAY,MAAM;AAC9C,IAAId,KAAaC,KACfE,EAAoBF,CAAU;AAAA,EAE/B,GAAA,CAACE,GAAqBH,GAAWC,CAAU,CAAC;AAM/C,SAJAc,EAAU,MAAM;AACQ,IAAAF;EAAA,GACrB,CAACA,CAAqB,CAAC,GAEtBR,IACK,gBAAAW,EAACC,GAAU,EAAA,QAAO,OAAO,CAAA,IAG9BX,IAEA,gBAAAY,EAACC,KAAS,WAAW,KAAK,SAAQ,SAAQ,iBAAgB,UAAS,aAAY,UAC7E,UAAA;AAAA,IAAC,gBAAAH,EAAAI,GAAA,EAAK,WAAU,MAAK,UAAmD,uDAAA;AAAA,IACxE,gBAAAJ;AAAA,MAACK;AAAA,MAAA;AAAA,QACC,QAAQ;AAAA,QACR,MAAK;AAAA,QACL,OAAM;AAAA,QACN,UAAS;AAAA,QACT,OAAM;AAAA,QACN,SAASR;AAAA,MAAA;AAAA,IACX;AAAA,EACF,EAAA,CAAA,IAICF,IAKH,gBAAAK;AAAA,IAACM;AAAA,IAAA;AAAA,MACC,mBAAkB;AAAA,MAClB,QAAO;AAAA,MACP,UAAAZ;AAAA,MACA,UAAS;AAAA,MACT,WAAWV,KAAa;AAAA,MACxB,mBAAmB;AAAA,MACnB,eAAeS;AAAA,MACf,mBAAmB;AAAA,MACnB,OAAOE;AAAA,MACP,iBAAAT;AAAA,IAAA;AAAA,EAAA,IAdK;AAiBX,CAAC,GAEcqB,IAAAzB,EAAKD,CAAuB;"}
|