@cuemath/leap 2.8.21-rj-6 → 2.8.21-rj-8

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.
@@ -1,59 +1,62 @@
1
- import { jsxs as w, jsx as d } from "react/jsx-runtime";
2
- import { createContext as x, useState as v, useRef as J, useCallback as m, useMemo as $ } from "react";
3
- import { Coachmark as p } from "../comps/coachmark/coachmark.js";
4
- import { BlurOverlay as g } from "./journey-styled.js";
5
- const A = x(null), N = ({ children: f }) => {
6
- const [o, c] = v([]), a = J(-1), r = J(), l = m(
1
+ import { jsxs as v, jsx as J } from "react/jsx-runtime";
2
+ import { createContext as x, useState as $, useRef as f, useCallback as i, useMemo as p } from "react";
3
+ import { Coachmark as g } from "../comps/coachmark/coachmark.js";
4
+ import { BlurOverlay as A } from "./journey-styled.js";
5
+ const R = x(null), j = ({ children: C }) => {
6
+ const [o, u] = $([]), c = f(-1), r = f(), l = i(
7
7
  (e, t) => {
8
8
  if (o.length > 0)
9
9
  throw new Error(
10
10
  `setJourney: Other Journey is already active, Current Journey: ${r.current}, New Journey Request: ${e}`
11
11
  );
12
- r.current = e, a.current = -1, c([...t]);
12
+ r.current = e, c.current = -1, u([...t]);
13
13
  },
14
14
  [o.length]
15
- ), h = m((e, t) => {
15
+ ), h = i(() => {
16
+ r.current = void 0, c.current = -1, u([]);
17
+ }, []), y = i((e, t) => {
16
18
  if (!r.current || e !== r.current)
17
19
  throw new Error(
18
20
  r.current ? "addCoachmark was called before setJourney" : `A Journey is already active, Current Journey: ${r.current}, New Journey Request: ${e}`
19
21
  );
20
- c((s) => [...s, t]);
21
- }, []), y = m(
22
+ u((s) => [...s, t]);
23
+ }, []), d = i(
22
24
  (e, t = !1, s = 0) => {
23
25
  if (!r.current || e !== r.current)
24
26
  throw new Error(
25
27
  r.current ? "nextCoachmark was called before setJourney" : `A Journey is already active, Current Journey: ${r.current}, New Journey Request: ${e}`
26
28
  );
27
- s !== 0 && c((n) => n.map((u) => ({ ...u, isActive: !1 })));
28
- const k = setTimeout(() => {
29
- clearTimeout(k);
30
- const n = a.current + 1;
31
- c((u) => {
32
- if (n >= u.length || u.length === 0)
33
- return r.current = void 0, a.current = -1, [];
34
- a.current = n;
35
- const i = [...u];
36
- return i[n].isActive = !0, n > 0 && (i[n - 1].isActive = t), i;
29
+ s !== 0 && u((n) => n.map((a) => ({ ...a, isActive: !1 })));
30
+ const w = setTimeout(() => {
31
+ clearTimeout(w);
32
+ const n = c.current + 1;
33
+ u((a) => {
34
+ if (n >= a.length || a.length === 0)
35
+ return r.current = void 0, c.current = -1, [];
36
+ c.current = n;
37
+ const m = [...a];
38
+ return m[n].isActive = !0, n > 0 && (m[n - 1].isActive = t), m;
37
39
  });
38
40
  }, s);
39
41
  },
40
42
  []
41
- ), C = $(
43
+ ), k = p(
42
44
  () => ({
43
- nextCoachmark: y,
45
+ nextCoachmark: d,
44
46
  setJourney: l,
45
- addCoachmark: h,
47
+ addCoachmark: y,
48
+ clearJourney: h,
46
49
  coachmarks: o
47
50
  }),
48
- [y, l, h, o]
51
+ [d, l, y, h, o]
49
52
  );
50
- return /* @__PURE__ */ w(A.Provider, { value: C, children: [
51
- o.length > 0 && /* @__PURE__ */ d(g, { children: o.map((e, t) => /* @__PURE__ */ d(p, { coachmark: e }, `coachmark-${t}`)) }),
52
- f
53
+ return /* @__PURE__ */ v(R.Provider, { value: k, children: [
54
+ o.length > 0 && /* @__PURE__ */ J(A, { children: o.map((e, t) => /* @__PURE__ */ J(g, { coachmark: e }, `coachmark-${t}`)) }),
55
+ C
53
56
  ] });
54
57
  };
55
58
  export {
56
- A as JourneyContext,
57
- N as JourneyProvider
59
+ R as JourneyContext,
60
+ j as JourneyProvider
58
61
  };
59
62
  //# sourceMappingURL=journey-context-provider.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"journey-context-provider.js","sources":["../../../../src/features/journey/use-journey/journey-context-provider.tsx"],"sourcesContent":["import type { TJourneyId } from '../journey-id/journey-id-types';\nimport type { ICoachmarkProps, IJourneyContext } from './journey-context-types';\nimport type { FC, ReactNode } from 'react';\n\nimport { createContext, useCallback, useMemo, useRef, useState } from 'react';\n\nimport { Coachmark } from '../comps/coachmark/coachmark';\nimport * as S from './journey-styled';\n\nexport const JourneyContext = createContext<IJourneyContext | null>(null);\n\nexport const JourneyProvider: FC<{ children: ReactNode }> = ({ children }) => {\n const [coachmarkList, setCoachmarkList] = useState<ICoachmarkProps[]>([]);\n const currentIndex = useRef(-1);\n const currentJourneyIdStudent = useRef<TJourneyId | undefined>();\n\n const setJourney = useCallback(\n (id: TJourneyId, coachmarks: ICoachmarkProps[]) => {\n if (coachmarkList.length > 0) {\n throw new Error(\n `setJourney: Other Journey is already active, Current Journey: ${currentJourneyIdStudent.current}, New Journey Request: ${id}`,\n );\n }\n currentJourneyIdStudent.current = id;\n currentIndex.current = -1;\n setCoachmarkList([...coachmarks]);\n },\n [coachmarkList.length],\n );\n\n const addCoachmark = useCallback((id: TJourneyId, coachmark: ICoachmarkProps) => {\n if (!currentJourneyIdStudent.current || id !== currentJourneyIdStudent.current) {\n throw new Error(\n currentJourneyIdStudent.current\n ? `addCoachmark was called before setJourney`\n : `A Journey is already active, Current Journey: ${currentJourneyIdStudent.current}, New Journey Request: ${id}`,\n );\n }\n\n setCoachmarkList(prev => [...prev, coachmark]);\n }, []);\n\n const nextCoachmark = useCallback(\n (id: TJourneyId, keepPrevActive: boolean = false, delayInMs: number = 0) => {\n if (!currentJourneyIdStudent.current || id !== currentJourneyIdStudent.current) {\n throw new Error(\n currentJourneyIdStudent.current\n ? `nextCoachmark was called before setJourney`\n : `A Journey is already active, Current Journey: ${currentJourneyIdStudent.current}, New Journey Request: ${id}`,\n );\n }\n\n if (delayInMs !== 0) {\n // If delay is not 0, we will hide all them coachmarks and reveal only after the delay\n setCoachmarkList(prevList => {\n return prevList.map((item: ICoachmarkProps) => {\n return { ...item, isActive: false };\n });\n });\n }\n\n const timer = setTimeout(() => {\n clearTimeout(timer);\n const currIndex = currentIndex.current + 1;\n\n setCoachmarkList(prevList => {\n // Finish onboarding\n if (currIndex >= prevList.length || prevList.length === 0) {\n currentJourneyIdStudent.current = undefined;\n currentIndex.current = -1;\n\n return [];\n }\n\n currentIndex.current = currIndex;\n const updatedCoachmarkList = [...prevList];\n\n (updatedCoachmarkList[currIndex] as ICoachmarkProps).isActive = true;\n\n if (currIndex > 0) {\n (updatedCoachmarkList[currIndex - 1] as ICoachmarkProps).isActive = keepPrevActive;\n }\n\n return updatedCoachmarkList;\n });\n }, delayInMs);\n },\n [],\n );\n\n const memoizedContextValue = useMemo(\n () => ({\n nextCoachmark,\n setJourney,\n addCoachmark,\n coachmarks: coachmarkList,\n }),\n [nextCoachmark, setJourney, addCoachmark, coachmarkList],\n );\n\n return (\n <JourneyContext.Provider value={memoizedContextValue}>\n {coachmarkList.length > 0 && (\n <S.BlurOverlay>\n {coachmarkList.map((coachmark, index) => (\n <Coachmark key={`coachmark-${index}`} coachmark={coachmark} />\n ))}\n </S.BlurOverlay>\n )}\n {children}\n </JourneyContext.Provider>\n );\n};\n"],"names":["JourneyContext","createContext","JourneyProvider","children","coachmarkList","setCoachmarkList","useState","currentIndex","useRef","currentJourneyIdStudent","setJourney","useCallback","id","coachmarks","addCoachmark","coachmark","prev","nextCoachmark","keepPrevActive","delayInMs","prevList","item","timer","currIndex","updatedCoachmarkList","memoizedContextValue","useMemo","jsxs","jsx","S.BlurOverlay","index","Coachmark"],"mappings":";;;;AASa,MAAAA,IAAiBC,EAAsC,IAAI,GAE3DC,IAA+C,CAAC,EAAE,UAAAC,QAAe;AAC5E,QAAM,CAACC,GAAeC,CAAgB,IAAIC,EAA4B,CAAE,CAAA,GAClEC,IAAeC,EAAO,EAAE,GACxBC,IAA0BD,KAE1BE,IAAaC;AAAA,IACjB,CAACC,GAAgBC,MAAkC;AAC7C,UAAAT,EAAc,SAAS;AACzB,cAAM,IAAI;AAAA,UACR,iEAAiEK,EAAwB,OAAO,0BAA0BG,CAAE;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CAAC;AAAA,EAAA,GAGGM,IAAuBC;AAAA,IAC3B,OAAO;AAAA,MACL,eAAAT;AAAA,MACA,YAAAP;AAAA,MACA,cAAAI;AAAA,MACA,YAAYV;AAAA,IAAA;AAAA,IAEd,CAACa,GAAeP,GAAYI,GAAcV,CAAa;AAAA,EAAA;AAGzD,SACG,gBAAAuB,EAAA3B,EAAe,UAAf,EAAwB,OAAOyB,GAC7B,UAAA;AAAA,IAAArB,EAAc,SAAS,KACtB,gBAAAwB,EAACC,GAAA,EACE,YAAc,IAAI,CAACd,GAAWe,wBAC5BC,GAAqC,EAAA,WAAAhB,EAAA,GAAtB,aAAae,CAAK,EAA0B,CAC7D,GACH;AAAA,IAED3B;AAAA,EACH,EAAA,CAAA;AAEJ;"}
1
+ {"version":3,"file":"journey-context-provider.js","sources":["../../../../src/features/journey/use-journey/journey-context-provider.tsx"],"sourcesContent":["import type { TJourneyId } from '../journey-id/journey-id-types';\nimport type { ICoachmarkProps, IJourneyContext } from './journey-context-types';\nimport type { FC, ReactNode } from 'react';\n\nimport { createContext, useCallback, useMemo, useRef, useState } from 'react';\n\nimport { Coachmark } from '../comps/coachmark/coachmark';\nimport * as S from './journey-styled';\n\nexport const JourneyContext = createContext<IJourneyContext | null>(null);\n\nexport const JourneyProvider: FC<{ children: ReactNode }> = ({ children }) => {\n const [coachmarkList, setCoachmarkList] = useState<ICoachmarkProps[]>([]);\n const currentIndex = useRef(-1);\n const currentJourneyIdStudent = useRef<TJourneyId | undefined>();\n\n const setJourney = useCallback(\n (id: TJourneyId, coachmarks: ICoachmarkProps[]) => {\n if (coachmarkList.length > 0) {\n throw new Error(\n `setJourney: Other Journey is already active, Current Journey: ${currentJourneyIdStudent.current}, New Journey Request: ${id}`,\n );\n }\n currentJourneyIdStudent.current = id;\n currentIndex.current = -1;\n setCoachmarkList([...coachmarks]);\n },\n [coachmarkList.length],\n );\n\n const clearJourney = useCallback(() => {\n currentJourneyIdStudent.current = undefined;\n currentIndex.current = -1;\n setCoachmarkList([]);\n }, []);\n\n const addCoachmark = useCallback((id: TJourneyId, coachmark: ICoachmarkProps) => {\n if (!currentJourneyIdStudent.current || id !== currentJourneyIdStudent.current) {\n throw new Error(\n currentJourneyIdStudent.current\n ? `addCoachmark was called before setJourney`\n : `A Journey is already active, Current Journey: ${currentJourneyIdStudent.current}, New Journey Request: ${id}`,\n );\n }\n\n setCoachmarkList(prev => [...prev, coachmark]);\n }, []);\n\n const nextCoachmark = useCallback(\n (id: TJourneyId, keepPrevActive: boolean = false, delayInMs: number = 0) => {\n if (!currentJourneyIdStudent.current || id !== currentJourneyIdStudent.current) {\n throw new Error(\n currentJourneyIdStudent.current\n ? `nextCoachmark was called before setJourney`\n : `A Journey is already active, Current Journey: ${currentJourneyIdStudent.current}, New Journey Request: ${id}`,\n );\n }\n\n if (delayInMs !== 0) {\n // If delay is not 0, we will hide all them coachmarks and reveal only after the delay\n setCoachmarkList(prevList => {\n return prevList.map((item: ICoachmarkProps) => {\n return { ...item, isActive: false };\n });\n });\n }\n\n const timer = setTimeout(() => {\n clearTimeout(timer);\n const currIndex = currentIndex.current + 1;\n\n setCoachmarkList(prevList => {\n // Finish onboarding\n if (currIndex >= prevList.length || prevList.length === 0) {\n currentJourneyIdStudent.current = undefined;\n currentIndex.current = -1;\n\n return [];\n }\n\n currentIndex.current = currIndex;\n const updatedCoachmarkList = [...prevList];\n\n (updatedCoachmarkList[currIndex] as ICoachmarkProps).isActive = true;\n\n if (currIndex > 0) {\n (updatedCoachmarkList[currIndex - 1] as ICoachmarkProps).isActive = keepPrevActive;\n }\n\n return updatedCoachmarkList;\n });\n }, delayInMs);\n },\n [],\n );\n\n const memoizedContextValue = useMemo(\n () => ({\n nextCoachmark,\n setJourney,\n addCoachmark,\n clearJourney,\n coachmarks: coachmarkList,\n }),\n [nextCoachmark, setJourney, addCoachmark, clearJourney, coachmarkList],\n );\n\n return (\n <JourneyContext.Provider value={memoizedContextValue}>\n {coachmarkList.length > 0 && (\n <S.BlurOverlay>\n {coachmarkList.map((coachmark, index) => (\n <Coachmark key={`coachmark-${index}`} coachmark={coachmark} />\n ))}\n </S.BlurOverlay>\n )}\n {children}\n </JourneyContext.Provider>\n );\n};\n"],"names":["JourneyContext","createContext","JourneyProvider","children","coachmarkList","setCoachmarkList","useState","currentIndex","useRef","currentJourneyIdStudent","setJourney","useCallback","id","coachmarks","clearJourney","addCoachmark","coachmark","prev","nextCoachmark","keepPrevActive","delayInMs","prevList","item","timer","currIndex","updatedCoachmarkList","memoizedContextValue","useMemo","jsxs","jsx","S.BlurOverlay","index","Coachmark"],"mappings":";;;;AASa,MAAAA,IAAiBC,EAAsC,IAAI,GAE3DC,IAA+C,CAAC,EAAE,UAAAC,QAAe;AAC5E,QAAM,CAACC,GAAeC,CAAgB,IAAIC,EAA4B,CAAE,CAAA,GAClEC,IAAeC,EAAO,EAAE,GACxBC,IAA0BD,KAE1BE,IAAaC;AAAA,IACjB,CAACC,GAAgBC,MAAkC;AAC7C,UAAAT,EAAc,SAAS;AACzB,cAAM,IAAI;AAAA,UACR,iEAAiEK,EAAwB,OAAO,0BAA0BG,CAAE;AAAA,QAAA;AAGhI,MAAAH,EAAwB,UAAUG,GAClCL,EAAa,UAAU,IACNF,EAAA,CAAC,GAAGQ,CAAU,CAAC;AAAA,IAClC;AAAA,IACA,CAACT,EAAc,MAAM;AAAA,EAAA,GAGjBU,IAAeH,EAAY,MAAM;AACrC,IAAAF,EAAwB,UAAU,QAClCF,EAAa,UAAU,IACvBF,EAAiB,CAAE,CAAA;AAAA,EACrB,GAAG,CAAE,CAAA,GAECU,IAAeJ,EAAY,CAACC,GAAgBI,MAA+B;AAC/E,QAAI,CAACP,EAAwB,WAAWG,MAAOH,EAAwB;AACrE,YAAM,IAAI;AAAA,QACRA,EAAwB,UACpB,8CACA,iDAAiDA,EAAwB,OAAO,0BAA0BG,CAAE;AAAA,MAAA;AAIpH,IAAAP,EAAiB,CAAQY,MAAA,CAAC,GAAGA,GAAMD,CAAS,CAAC;AAA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AA,GAAtB,aAAae,CAAK,EAA0B,CAC7D,GACH;AAAA,IAED5B;AAAA,EACH,EAAA,CAAA;AAEJ;"}
package/dist/index.d.ts CHANGED
@@ -200,6 +200,10 @@ export declare const Clock2Icon: React.FC<React.SVGProps<SVGSVGElement>>;
200
200
 
201
201
  export declare const ClockIcon: React.FC<React.SVGProps<SVGSVGElement>>;
202
202
 
203
+ export declare const Coachmark: React_2.FC<{
204
+ coachmark: ICoachmarkProps;
205
+ }>;
206
+
203
207
  export declare const CodeIcon: React.FC<React.SVGProps<SVGSVGElement>>;
204
208
 
205
209
  export declare const COMPLETED_SHEET_STATE: TSheetStateProps[];
@@ -1279,6 +1283,17 @@ export declare interface IJourneyContext {
1279
1283
  * @param coachmark - The array of coachmarks to be used in this journey.
1280
1284
  */
1281
1285
  setJourney: (id: TJourneyId, coachmark: ICoachmarkProps[]) => void;
1286
+ /**
1287
+ * Clears the current journey, removing all coachmarks.
1288
+ * Should be called inside useEffect to ensure cleanup.
1289
+ * @example
1290
+ * useEffect(() => {
1291
+ * return () => {
1292
+ * clearJourney();
1293
+ * }
1294
+ * }, []);
1295
+ */
1296
+ clearJourney: () => void;
1282
1297
  /**
1283
1298
  * Adds a single coachmark to an existing journey.
1284
1299
  * @param id - The journey identifier.
package/dist/index.js CHANGED
@@ -177,60 +177,61 @@ import { JOURNEY_ID_STUDENT as Uf } from "./features/journey/journey-id/journey-
177
177
  import { useJourney as Vf } from "./features/journey/use-journey/use-journey.js";
178
178
  import { JourneyProvider as Qf } from "./features/journey/use-journey/journey-context-provider.js";
179
179
  import { IndicatorType as Yf } from "./features/journey/use-journey/constants.js";
180
- import { default as Jf } from "./features/milestone/create/submit-modal/submit-modal.js";
181
- import { default as zf } from "./features/milestone/create/comps/confirmation-modals/goal-creation-confirmation.js";
182
- import { default as qf } from "./features/milestone/create/comps/confirmation-modals/chapter-clearance-confirmation.js";
183
- import { default as $f } from "./features/milestone/create/milestone-create-container.js";
184
- import { default as os } from "./features/milestone/drafts/create/draft-create-container.js";
185
- import { default as rs } from "./features/milestone/drafts/edit/draft-edit-container.js";
186
- import { default as fs } from "./features/milestone/drafts/goal-edit/goal-draft-edit-container.js";
187
- import { default as ls } from "./features/milestone/drafts/review/draft-review-container.js";
188
- import { default as ms } from "./features/milestone/outcome/milestone-outcome-container.js";
189
- import { default as ds } from "./features/milestone/edit/comps/edit-milestone-modal/share-screen.js";
190
- import { default as ns } from "./features/milestone/outcome/comps/achievement/reason-submit-modal.js";
191
- import { default as Is } from "./features/milestone/outcome/comps/achievement/share-instructions-modal.js";
192
- import { default as Ts } from "./features/milestone/edit/comps/edit-milestone-modal/index.js";
193
- import { default as Ss } from "./features/milestone/edit/goal-edit-container.js";
194
- import { default as As } from "./features/milestone/edit/milestone-edit-container.js";
195
- import { default as Ms } from "./features/milestone/milestone-list-container/milestone-list-container.js";
196
- import { default as hs } from "./features/milestone/milestone-action-widget/milestone-action-widget.js";
197
- import { default as ks } from "./features/milestone/start/milestone-start.js";
198
- import { default as Ns } from "./features/milestone/intro-modal/index.js";
199
- import { default as Os } from "./features/milestone/help-modals/milestone-list.js";
200
- import { default as Gs } from "./features/milestone/help-modals/milestone-lesson.js";
201
- import { default as Bs } from "./features/milestone/milestone-tests/tests-creation/tests-creation.js";
202
- import { ACHIEVEMENT_ACTIONS as bs, STAGES as vs } from "./features/milestone/outcome/milestone-outcome-constants.js";
203
- import { invalidateMilestonesData as Ws, useGetAllMilestonesdata as Vs } from "./features/milestone/milestone-list-container/api/get-milestones.js";
204
- import { invalidateTestHelpData as Qs, useGetTestHelpData as Ks } from "./features/milestone/milestone-list-container/api/get-tests-list.js";
205
- import { invalidateMilestoneResources as Fs, useGetMilestoneResources as Js } from "./features/milestone/milestone-list-container/api/get-milestone-resources.js";
206
- import { default as zs } from "./features/pointer-sync/pointer.js";
207
- import { default as qs } from "./features/pointer-sync/hooks/use-pointer-sync.js";
208
- import { PostGameStats as $s } from "./features/post-game-stats/post-game-stats.js";
209
- import { EPostGameStat as ol } from "./features/post-game-stats/enums/post-game-stats-enum.js";
210
- import { default as rl } from "./features/sheet-tools/desmos-calculator/desmos-calculator.js";
211
- import { default as fl } from "./features/sheet-tools/tool-header/tool-header.js";
212
- import { default as ll } from "./features/sheets/sheets-list/sheets-list.js";
213
- import { default as ml } from "./features/sheets/reference-sheet/reference-sheet.js";
214
- import { isV3Worksheet as dl, isV3WorksheetAttempt as xl } from "./features/sheets/utils/is-v3-worksheet.js";
215
- import { COMPLETED_SHEET_STATE as cl, NODE_LABELS as Il, NODE_SUB_GROUP as il, NODE_TYPE as Tl, PYTHON_NODE_TYPES as El, REWARDS_LIST as Sl, SHEET_ACTIONS as Cl, SHEET_ATTEMPT_LOCATION as Al, SHEET_ATTEMPT_LOCATION_MAP as Pl, SHEET_ATTEMPT_STATE as Ml, SHEET_DATA_TYPE as _l, SHEET_STATE as hl } from "./features/sheets/constants/sheet.js";
216
- import { default as kl } from "./features/student-details/student-details.js";
217
- import { default as Nl } from "./features/utils/load-script.js";
218
- import { ACTION_BAR_HEIGHT as Ol, QUESTIONS_GAP as Rl, QUESTION_WIDTH as Gl, TOP_NAVIGATION_HEIGHT as yl } from "./features/worksheet/worksheet/constants.js";
219
- import { isOkayTypeQuestion as gl } from "./features/worksheet/worksheet/worksheet-helpers.js";
220
- import { default as vl } from "./features/worksheet/worksheet/worksheet-container.js";
221
- import { default as Wl } from "./features/worksheet/worksheet-preview/worksheet-preview.js";
222
- import { default as wl } from "./features/worksheet/worksheet/worksheet-permissions/sheet-locked.js";
223
- import { default as Kl } from "./features/worksheet/worksheet/worksheet-permissions/error.js";
224
- import { default as Fl } from "./features/worksheet/learnosity-preloader/learnosity-preloader.js";
225
- import { default as jl } from "./features/worksheet/learnosity-preloader/use-is-learnosity-loaded.js";
226
- import { default as Zl } from "./features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js";
227
- import { default as Xl } from "./features/maintenance/maintenance.js";
180
+ import { Coachmark as Jf } from "./features/journey/comps/coachmark/coachmark.js";
181
+ import { default as zf } from "./features/milestone/create/submit-modal/submit-modal.js";
182
+ import { default as qf } from "./features/milestone/create/comps/confirmation-modals/goal-creation-confirmation.js";
183
+ import { default as $f } from "./features/milestone/create/comps/confirmation-modals/chapter-clearance-confirmation.js";
184
+ import { default as os } from "./features/milestone/create/milestone-create-container.js";
185
+ import { default as rs } from "./features/milestone/drafts/create/draft-create-container.js";
186
+ import { default as fs } from "./features/milestone/drafts/edit/draft-edit-container.js";
187
+ import { default as ls } from "./features/milestone/drafts/goal-edit/goal-draft-edit-container.js";
188
+ import { default as ms } from "./features/milestone/drafts/review/draft-review-container.js";
189
+ import { default as ds } from "./features/milestone/outcome/milestone-outcome-container.js";
190
+ import { default as ns } from "./features/milestone/edit/comps/edit-milestone-modal/share-screen.js";
191
+ import { default as Is } from "./features/milestone/outcome/comps/achievement/reason-submit-modal.js";
192
+ import { default as Ts } from "./features/milestone/outcome/comps/achievement/share-instructions-modal.js";
193
+ import { default as Ss } from "./features/milestone/edit/comps/edit-milestone-modal/index.js";
194
+ import { default as As } from "./features/milestone/edit/goal-edit-container.js";
195
+ import { default as Ms } from "./features/milestone/edit/milestone-edit-container.js";
196
+ import { default as hs } from "./features/milestone/milestone-list-container/milestone-list-container.js";
197
+ import { default as ks } from "./features/milestone/milestone-action-widget/milestone-action-widget.js";
198
+ import { default as Ns } from "./features/milestone/start/milestone-start.js";
199
+ import { default as Os } from "./features/milestone/intro-modal/index.js";
200
+ import { default as Gs } from "./features/milestone/help-modals/milestone-list.js";
201
+ import { default as Bs } from "./features/milestone/help-modals/milestone-lesson.js";
202
+ import { default as bs } from "./features/milestone/milestone-tests/tests-creation/tests-creation.js";
203
+ import { ACHIEVEMENT_ACTIONS as Us, STAGES as Ws } from "./features/milestone/outcome/milestone-outcome-constants.js";
204
+ import { invalidateMilestonesData as ws, useGetAllMilestonesdata as Qs } from "./features/milestone/milestone-list-container/api/get-milestones.js";
205
+ import { invalidateTestHelpData as Ys, useGetTestHelpData as Fs } from "./features/milestone/milestone-list-container/api/get-tests-list.js";
206
+ import { invalidateMilestoneResources as js, useGetMilestoneResources as zs } from "./features/milestone/milestone-list-container/api/get-milestone-resources.js";
207
+ import { default as qs } from "./features/pointer-sync/pointer.js";
208
+ import { default as $s } from "./features/pointer-sync/hooks/use-pointer-sync.js";
209
+ import { PostGameStats as ol } from "./features/post-game-stats/post-game-stats.js";
210
+ import { EPostGameStat as rl } from "./features/post-game-stats/enums/post-game-stats-enum.js";
211
+ import { default as fl } from "./features/sheet-tools/desmos-calculator/desmos-calculator.js";
212
+ import { default as ll } from "./features/sheet-tools/tool-header/tool-header.js";
213
+ import { default as ml } from "./features/sheets/sheets-list/sheets-list.js";
214
+ import { default as dl } from "./features/sheets/reference-sheet/reference-sheet.js";
215
+ import { isV3Worksheet as nl, isV3WorksheetAttempt as cl } from "./features/sheets/utils/is-v3-worksheet.js";
216
+ import { COMPLETED_SHEET_STATE as il, NODE_LABELS as Tl, NODE_SUB_GROUP as El, NODE_TYPE as Sl, PYTHON_NODE_TYPES as Cl, REWARDS_LIST as Al, SHEET_ACTIONS as Pl, SHEET_ATTEMPT_LOCATION as Ml, SHEET_ATTEMPT_LOCATION_MAP as _l, SHEET_ATTEMPT_STATE as hl, SHEET_DATA_TYPE as Ll, SHEET_STATE as kl } from "./features/sheets/constants/sheet.js";
217
+ import { default as Nl } from "./features/student-details/student-details.js";
218
+ import { default as Ol } from "./features/utils/load-script.js";
219
+ import { ACTION_BAR_HEIGHT as Gl, QUESTIONS_GAP as yl, QUESTION_WIDTH as Bl, TOP_NAVIGATION_HEIGHT as gl } from "./features/worksheet/worksheet/constants.js";
220
+ import { isOkayTypeQuestion as vl } from "./features/worksheet/worksheet/worksheet-helpers.js";
221
+ import { default as Wl } from "./features/worksheet/worksheet/worksheet-container.js";
222
+ import { default as wl } from "./features/worksheet/worksheet-preview/worksheet-preview.js";
223
+ import { default as Kl } from "./features/worksheet/worksheet/worksheet-permissions/sheet-locked.js";
224
+ import { default as Fl } from "./features/worksheet/worksheet/worksheet-permissions/error.js";
225
+ import { default as jl } from "./features/worksheet/learnosity-preloader/learnosity-preloader.js";
226
+ import { default as Zl } from "./features/worksheet/learnosity-preloader/use-is-learnosity-loaded.js";
227
+ import { default as Xl } from "./features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js";
228
+ import { default as ep } from "./features/maintenance/maintenance.js";
228
229
  export {
229
- bs as ACHIEVEMENT_ACTIONS,
230
+ Us as ACHIEVEMENT_ACTIONS,
230
231
  Pt as AccordionSection,
231
- ns as AchievementNotShareReasonModal,
232
- Is as AchievementShareInstructionModal,
233
- ds as AddRemoveChapters,
232
+ Is as AchievementNotShareReasonModal,
233
+ Ts as AchievementShareInstructionModal,
234
+ ns as AddRemoveChapters,
234
235
  u as AlertIcon,
235
236
  cr as AppLoader,
236
237
  Wt as ArcButton,
@@ -249,12 +250,12 @@ export {
249
250
  H as Bulb2Icon,
250
251
  L as BulbIcon,
251
252
  Rt as Button,
252
- cl as COMPLETED_SHEET_STATE,
253
+ il as COMPLETED_SHEET_STATE,
253
254
  D as CalendarIcon,
254
255
  Lr as Callout,
255
256
  ar as CascadingSelectInput,
256
257
  la as Chapter,
257
- qf as ChapterClearanceConfirmationModal,
258
+ $f as ChapterClearanceConfirmationModal,
258
259
  ma as ChaptersList,
259
260
  ut as ChatIcon,
260
261
  y as Check2Icon,
@@ -271,6 +272,7 @@ export {
271
272
  g as ClipboardIcon,
272
273
  W as Clock2Icon,
273
274
  v as ClockIcon,
275
+ Jf as Coachmark,
274
276
  w as CodeIcon,
275
277
  Lt as ContextMenu,
276
278
  K as CopyIcon,
@@ -282,21 +284,21 @@ export {
282
284
  j as CueRocket,
283
285
  xt as CuemathLogo,
284
286
  Z as DashArrowIcon,
285
- rl as DesmosCalculator,
287
+ fl as DesmosCalculator,
286
288
  X as DownIcon,
287
289
  ee as DraftIcon,
288
290
  te as DragIcon,
289
291
  Of as EClassTimeAlertLevel,
290
292
  _a as ELeaderboardType,
291
- ol as EPostGameStat,
293
+ rl as EPostGameStat,
292
294
  _f as EVENTS,
293
295
  se as Edit2Icon,
294
296
  ae as EditIcon,
295
- Ts as EditMilestoneModal,
297
+ Ss as EditMilestoneModal,
296
298
  pe as EditStarIcon,
297
299
  ue as EraserIcon,
298
300
  wt as Error,
299
- fl as ExpandableHeader,
301
+ ll as ExpandableHeader,
300
302
  Bf as ExtraPractice,
301
303
  ce as Eye2Icon,
302
304
  xe as EyeIcon,
@@ -306,9 +308,9 @@ export {
306
308
  st as GameIcon,
307
309
  ya as GameId,
308
310
  Za as GameLauncher,
309
- zf as GoalCreationConfirmationModal,
310
- fs as GoalDraftEdit,
311
- Ss as GoalEdit,
311
+ qf as GoalCreationConfirmationModal,
312
+ ls as GoalDraftEdit,
313
+ As as GoalEdit,
312
314
  er as GooglePlacesSearchInput,
313
315
  t as GradeSelector,
314
316
  ie as HandIcon,
@@ -328,24 +330,24 @@ export {
328
330
  da as LPARChapter,
329
331
  na as LPARMilestoneChapter,
330
332
  tf as Leaderboard,
331
- Fl as LearnosityPreloader,
333
+ jl as LearnosityPreloader,
332
334
  De as LeftIcon,
333
335
  Ba as LessonId,
334
336
  ye as Lock2Icon,
335
337
  Re as LockIcon,
336
- Xl as Maintenance,
337
- hs as MilestoneActionWidget,
338
- $f as MilestoneCreate,
339
- os as MilestoneDraftCreate,
340
- rs as MilestoneDraftEdit,
341
- ls as MilestoneDraftReview,
342
- As as MilestoneEdit,
343
- Ns as MilestoneIntroModal,
344
- Gs as MilestoneLessonHelpModal,
345
- Ms as MilestoneList,
346
- Os as MilestoneListHelpModal,
347
- ms as MilestoneOutcome,
348
- ks as MilestoneStart,
338
+ ep as Maintenance,
339
+ ks as MilestoneActionWidget,
340
+ os as MilestoneCreate,
341
+ rs as MilestoneDraftCreate,
342
+ fs as MilestoneDraftEdit,
343
+ ms as MilestoneDraftReview,
344
+ Ms as MilestoneEdit,
345
+ Os as MilestoneIntroModal,
346
+ Bs as MilestoneLessonHelpModal,
347
+ hs as MilestoneList,
348
+ Gs as MilestoneListHelpModal,
349
+ ds as MilestoneOutcome,
350
+ Ns as MilestoneStart,
349
351
  ga as MiniGameId,
350
352
  ve as Minus2Icon,
351
353
  ge as MinusIcon,
@@ -353,16 +355,16 @@ export {
353
355
  we as Mobile,
354
356
  Ke as MoreVerticalIcon,
355
357
  fa as MultiTabBlocker,
356
- Il as NODE_LABELS,
357
- il as NODE_SUB_GROUP,
358
- Tl as NODE_TYPE,
358
+ Tl as NODE_LABELS,
359
+ El as NODE_SUB_GROUP,
360
+ Sl as NODE_TYPE,
359
361
  ct as Next2Icon,
360
362
  Fe as NextIcon,
361
363
  Dt as Nudge,
362
364
  sr as NumRangeInput,
363
365
  qr as PLATFORM_EVENTS_STUDENT,
364
366
  $r as PLATFORM_EVENTS_TEACHER,
365
- El as PYTHON_NODE_TYPES,
367
+ Cl as PYTHON_NODE_TYPES,
366
368
  je as PencilIcon,
367
369
  pr as PercentileInput,
368
370
  zr as PerfectHits,
@@ -372,9 +374,9 @@ export {
372
374
  ao as Plus2Icon,
373
375
  to as PlusIcon,
374
376
  Ze as PointerIcon,
375
- $s as PostGameStats,
377
+ ol as PostGameStats,
376
378
  so as PracticeIcon,
377
- Wl as PreviewWorksheet,
379
+ wl as PreviewWorksheet,
378
380
  po as ProgressIcon,
379
381
  ba as ProjectId,
380
382
  Wa as ProjectOutcome,
@@ -382,22 +384,22 @@ export {
382
384
  va as PuzzleId,
383
385
  uo as QuestionIcon,
384
386
  no as QuestionLetterIcon,
385
- Sl as REWARDS_LIST,
387
+ Al as REWARDS_LIST,
386
388
  Er as RadioCard,
387
389
  jt as RadioInput,
388
390
  Io as RedoIcon,
389
- ml as ReferenceSheet,
390
- zs as RemotePeerPointer,
391
+ dl as ReferenceSheet,
392
+ qs as RemotePeerPointer,
391
393
  To as RightIcon,
392
394
  So as RulerIcon,
393
395
  Ia as SATSheetSummary,
394
- Cl as SHEET_ACTIONS,
395
- Al as SHEET_ATTEMPT_LOCATION,
396
- Pl as SHEET_ATTEMPT_LOCATION_MAP,
397
- Ml as SHEET_ATTEMPT_STATE,
398
- _l as SHEET_DATA_TYPE,
399
- hl as SHEET_STATE,
400
- vs as STAGES,
396
+ Pl as SHEET_ACTIONS,
397
+ Ml as SHEET_ATTEMPT_LOCATION,
398
+ _l as SHEET_ATTEMPT_LOCATION_MAP,
399
+ hl as SHEET_ATTEMPT_STATE,
400
+ Ll as SHEET_DATA_TYPE,
401
+ kl as SHEET_STATE,
402
+ Ws as STAGES,
401
403
  zo as ScribbleIcon,
402
404
  Ao as SearchIcon,
403
405
  Xt as SearchableSelectInput,
@@ -405,9 +407,9 @@ export {
405
407
  Zt as SelectInput,
406
408
  ur as SelectionCards,
407
409
  Yr as Separator,
408
- Kl as SheetError,
409
- ll as SheetList,
410
- wl as SheetLocked,
410
+ Fl as SheetError,
411
+ ml as SheetList,
412
+ Kl as SheetLocked,
411
413
  mf as SignUp,
412
414
  Zo as SketchIcon,
413
415
  ko as Skip2Icon,
@@ -418,12 +420,12 @@ export {
418
420
  a as Stepper,
419
421
  Qr as StreakIcon,
420
422
  Oo as StrikedEyeIcon,
421
- kl as StudentDetails,
422
- Jf as SubmitMilestoneModal,
423
+ Nl as StudentDetails,
424
+ zf as SubmitMilestoneModal,
423
425
  Go as SwitchIcon,
424
426
  Vr as TabComponent,
425
427
  _r as Tag,
426
- Bs as TestsCreation,
428
+ bs as TestsCreation,
427
429
  Pr as Text,
428
430
  vt as TextButton,
429
431
  tr as TextInput,
@@ -441,45 +443,45 @@ export {
441
443
  Yo as UserIcon,
442
444
  Jr as Video,
443
445
  oa as WHITELIST_EVENTS,
444
- Ol as WORKSHEET_ACTION_BAR_HEIGHT,
445
- Rl as WORKSHEET_QUESTIONS_GAP,
446
- Gl as WORKSHEET_QUESTION_WIDTH,
447
- yl as WORKSHEET_TOP_NAVIGATION_HEIGHT,
446
+ Gl as WORKSHEET_ACTION_BAR_HEIGHT,
447
+ yl as WORKSHEET_QUESTIONS_GAP,
448
+ Bl as WORKSHEET_QUESTION_WIDTH,
449
+ gl as WORKSHEET_TOP_NAVIGATION_HEIGHT,
448
450
  Ra as WebView,
449
451
  wa as WebViewEvent,
450
- vl as Worksheet,
452
+ Wl as Worksheet,
451
453
  Ta as checkIfPPTNodeType,
452
454
  Br as getTheme,
453
- Fs as invalidateMilestoneResources,
454
- Ws as invalidateMilestonesData,
455
- Qs as invalidateTestHelpData,
456
- gl as isOkayTypeQuestion,
457
- dl as isV3Worksheet,
458
- xl as isV3WorksheetAttempt,
459
- Nl as loadScript,
455
+ js as invalidateMilestoneResources,
456
+ ws as invalidateMilestonesData,
457
+ Ys as invalidateTestHelpData,
458
+ vl as isOkayTypeQuestion,
459
+ nl as isV3Worksheet,
460
+ cl as isV3WorksheetAttempt,
461
+ Ol as loadScript,
460
462
  bf as useAutoPlayPermission,
461
463
  Ef as useCanvasSyncBroker,
462
464
  La as useCircleSounds,
463
465
  Gf as useClassTimeAlerts,
464
466
  Gr as useContextMenuClickHandler,
465
467
  Ct as useForceReload,
466
- Vs as useGetAllMilestonesdata,
468
+ Qs as useGetAllMilestonesdata,
467
469
  Xa as useGetCircleHomeDetailsDal,
468
470
  Pa as useGetLeaderboardDal,
469
- Js as useGetMilestoneResources,
470
- Ks as useGetTestHelpData,
471
+ zs as useGetMilestoneResources,
472
+ Fs as useGetTestHelpData,
471
473
  Lf as useInClassActionDispatcher,
472
474
  kf as useInClassActionListener,
473
475
  Cf as useInClassMessageBroker,
474
- jl as useIsLearnosityLoaded,
476
+ Zl as useIsLearnosityLoaded,
475
477
  ra as useIsTabBlocked,
476
478
  Vf as useJourney,
477
- qs as usePointerSync,
479
+ $s as usePointerSync,
478
480
  ef as usePostUpdateCircleJourneyDal,
479
481
  Or as useTrackingContext,
480
482
  Pf as useTrialSessionMessageBroker,
481
483
  Nr as useUIContext,
482
- Zl as useWorksheetLayout,
484
+ Xl as useWorksheetLayout,
483
485
  Et as useZoomDisable
484
486
  };
485
487
  //# 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,6 +1,6 @@
1
1
  {
2
2
  "name": "@cuemath/leap",
3
- "version": "2.8.21-rj-6",
3
+ "version": "2.8.21-rj-8",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"