@cuemath/leap 3.2.1-pd-1 → 3.2.1

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.
Files changed (72) hide show
  1. package/dist/assets/illustrations/illustrations.js +0 -1
  2. package/dist/assets/illustrations/illustrations.js.map +1 -1
  3. package/dist/assets/lottie/lottie.js +0 -6
  4. package/dist/assets/lottie/lottie.js.map +1 -1
  5. package/dist/features/circle-games/game-launcher/dal/use-get-circle-home-details-dal/helper.js +56 -59
  6. package/dist/features/circle-games/game-launcher/dal/use-get-circle-home-details-dal/helper.js.map +1 -1
  7. package/dist/features/circle-games/game-launcher/game-launcher.js +84 -82
  8. package/dist/features/circle-games/game-launcher/game-launcher.js.map +1 -1
  9. package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js +204 -157
  10. package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js.map +1 -1
  11. package/dist/features/communication/pub-sub/constants.js +4 -7
  12. package/dist/features/communication/pub-sub/constants.js.map +1 -1
  13. package/dist/features/homework/homework-card-view.js +100 -87
  14. package/dist/features/homework/homework-card-view.js.map +1 -1
  15. package/dist/features/journey/journey-id/journey-id-student.js +1 -1
  16. package/dist/features/journey/journey-id/journey-id-student.js.map +1 -1
  17. package/dist/features/puzzles/comps/puzzle-card-styled.js +69 -24
  18. package/dist/features/puzzles/comps/puzzle-card-styled.js.map +1 -1
  19. package/dist/features/puzzles/comps/puzzle-card.js +30 -53
  20. package/dist/features/puzzles/comps/puzzle-card.js.map +1 -1
  21. package/dist/features/puzzles/puzzle-container/puzzle-container-styled.js +25 -55
  22. package/dist/features/puzzles/puzzle-container/puzzle-container-styled.js.map +1 -1
  23. package/dist/features/puzzles/puzzle-container/puzzle-container.js +107 -89
  24. package/dist/features/puzzles/puzzle-container/puzzle-container.js.map +1 -1
  25. package/dist/features/puzzles/utils/puzzle-pattern.js +13 -28
  26. package/dist/features/puzzles/utils/puzzle-pattern.js.map +1 -1
  27. package/dist/features/worksheet/worksheet/worksheet-helpers.js +19 -20
  28. package/dist/features/worksheet/worksheet/worksheet-helpers.js.map +1 -1
  29. package/dist/features/worksheet/worksheet/worksheet-question/learnosity-question.js +25 -29
  30. package/dist/features/worksheet/worksheet/worksheet-question/learnosity-question.js.map +1 -1
  31. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question-styled.js +47 -97
  32. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question-styled.js.map +1 -1
  33. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js +163 -166
  34. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js.map +1 -1
  35. package/dist/features/worksheet/worksheet/worksheet-styled.js +34 -34
  36. package/dist/features/worksheet/worksheet/worksheet-styled.js.map +1 -1
  37. package/dist/features/worksheet/worksheet/worksheet.js +309 -303
  38. package/dist/features/worksheet/worksheet/worksheet.js.map +1 -1
  39. package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js +1 -1
  40. package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js.map +1 -1
  41. package/dist/features/worksheet/worksheet-preview/worksheet-preview.js +16 -17
  42. package/dist/features/worksheet/worksheet-preview/worksheet-preview.js.map +1 -1
  43. package/dist/index.d.ts +6 -38
  44. package/dist/index.js +27 -29
  45. package/dist/index.js.map +1 -1
  46. package/package.json +1 -1
  47. package/dist/features/puzzles/api/puzzle-dashboard.js +0 -10
  48. package/dist/features/puzzles/api/puzzle-dashboard.js.map +0 -1
  49. package/dist/features/puzzles/constants/puzzle-container.js +0 -8
  50. package/dist/features/puzzles/constants/puzzle-container.js.map +0 -1
  51. package/dist/features/puzzles/puzzle-container/puzzle-container-view.js +0 -45
  52. package/dist/features/puzzles/puzzle-container/puzzle-container-view.js.map +0 -1
  53. package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard-styled.js +0 -30
  54. package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard-styled.js.map +0 -1
  55. package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard.js +0 -84
  56. package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard.js.map +0 -1
  57. package/dist/static/arm-mechanical.7561628e.json +0 -4428
  58. package/dist/static/cent-emoji.3a07ef13.json +0 -5576
  59. package/dist/static/clap-emoji.aa0b824b.json +0 -12684
  60. package/dist/static/gem-stone.8c91431a.json +0 -6716
  61. package/dist/static/partyball.e19caed6.json +0 -11578
  62. package/dist/static/partypopper.9f7992e8.json +0 -6416
  63. package/dist/static/puzzle-blue-lottie.7017e2e8.json +0 -1
  64. package/dist/static/puzzle-blue-lottie.bf64ebc5.json +0 -12760
  65. package/dist/static/puzzle-dashboard-banner.b7956519.svg +0 -1
  66. package/dist/static/puzzle-green-lottie.1da90698.json +0 -1
  67. package/dist/static/puzzle-orange-lottie.cfcf3724.json +0 -1
  68. package/dist/static/puzzle-purple-lottie.e70de110.json +0 -9860
  69. package/dist/static/puzzle-yellow-lottie.275b5cf4.json +0 -1
  70. package/dist/static/slotmachine.ba8014dd.json +0 -7779
  71. package/dist/static/super-emoji.7fad19f6.json +0 -3720
  72. package/dist/static/victory-emoji.2ca41d92.json +0 -9959
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ import { default as h } from "./assets/line-icons/icons/book2.js";
13
13
  import { default as k } from "./assets/line-icons/icons/bookmark.js";
14
14
  import { default as M } from "./assets/line-icons/icons/bulb.js";
15
15
  import { default as O } from "./assets/line-icons/icons/bulb2.js";
16
- import { default as H } from "./assets/line-icons/icons/calendar.js";
16
+ import { default as D } from "./assets/line-icons/icons/calendar.js";
17
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
19
  import { default as B } from "./assets/line-icons/icons/clipboard.js";
@@ -40,7 +40,7 @@ import { default as he } from "./assets/line-icons/icons/highlighter.js";
40
40
  import { default as ke } from "./assets/line-icons/icons/home.js";
41
41
  import { default as Me } from "./assets/line-icons/icons/image.js";
42
42
  import { default as Oe } from "./assets/line-icons/icons/info.js";
43
- import { default as He } from "./assets/line-icons/icons/info2.js";
43
+ import { default as De } from "./assets/line-icons/icons/info2.js";
44
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
46
  import { default as Be } from "./assets/line-icons/icons/lock2.js";
@@ -66,7 +66,7 @@ import { default as _o } from "./assets/line-icons/icons/question-letter.js";
66
66
  import { default as Ro } from "./assets/line-icons/icons/redo.js";
67
67
  import { default as Lo } from "./assets/line-icons/icons/right.js";
68
68
  import { default as No } from "./assets/line-icons/icons/ruler.js";
69
- import { default as Do } from "./assets/line-icons/icons/search.js";
69
+ import { default as Ho } from "./assets/line-icons/icons/search.js";
70
70
  import { default as Go } from "./assets/line-icons/icons/sheet.js";
71
71
  import { default as yo } from "./assets/line-icons/icons/star.js";
72
72
  import { default as vo } from "./assets/line-icons/icons/skip-colored.js";
@@ -93,7 +93,7 @@ import { default as hr } from "./assets/line-icons/icons/game.js";
93
93
  import { default as kr } from "./assets/line-icons/icons/tutoring.js";
94
94
  import { default as Mr } from "./assets/line-icons/icons/chat.js";
95
95
  import { default as Or } from "./assets/line-icons/icons/cuemath-logo.js";
96
- import { default as Hr } from "./assets/line-icons/icons/next2.js";
96
+ import { default as Dr } from "./assets/line-icons/icons/next2.js";
97
97
  import { AutoPlayPermissionProvider as gr } from "./features/hooks/use-auto-play-permission/use-auto-play-permission-context-provider.js";
98
98
  import { default as Ur } from "./features/hooks/use-zoom-disable.js";
99
99
  import { default as Br } from "./features/hooks/use-force-reload.js";
@@ -120,7 +120,7 @@ import { default as ht } from "./features/ui/inputs/num-range-input/num-range-in
120
120
  import { default as kt } from "./features/ui/inputs/percentile-input/percentile-input.js";
121
121
  import { default as Mt } from "./features/ui/selection-cards/selection-cards.js";
122
122
  import { default as Ot } from "./features/ui/layout/flex-view.js";
123
- import { default as Ht } from "./features/ui/loader/app-loader/app-loader.js";
123
+ import { default as Dt } from "./features/ui/loader/app-loader/app-loader.js";
124
124
  import { CircularLoader as gt } from "./features/ui/loader/circular-loader/circular-loader.js";
125
125
  import { default as Ut } from "./features/ui/modals/modal-provider.js";
126
126
  import { default as Bt } from "./features/ui/modals/use-modal-actions.js";
@@ -146,7 +146,7 @@ import { default as _a } from "./features/ui/animated-arc/animated-arc.js";
146
146
  import { PLATFORM_EVENTS_STUDENT as Ra } from "./features/analytics-events/platform-events-student.js";
147
147
  import { PLATFORM_EVENTS_TEACHER as La } from "./features/analytics-events/platform-events-teacher.js";
148
148
  import { WHITELIST_EVENTS as Na } from "./features/analytics-events/whitelist-events.js";
149
- import { default as Da } from "./features/auth/comps/auth-static-panel/auth-static-panel.js";
149
+ import { default as Ha } from "./features/auth/comps/auth-static-panel/auth-static-panel.js";
150
150
  import { default as Ga } from "./features/auth/comps/auth-page-layout/auth-page-layout.js";
151
151
  import { default as ya } from "./features/auth/comps/overlay-loader/overlay-loader.js";
152
152
  import { default as va } from "./features/auth/comps/tabs/tabs.js";
@@ -173,7 +173,7 @@ import { default as hf } from "./features/av/av-preview/av-preview.js";
173
173
  import { default as kf } from "./features/blockers/multi-tab-blocker/use-is-tab-blocked.js";
174
174
  import { default as Mf } from "./features/blockers/multi-tab-blocker/multi-tab-blocker.js";
175
175
  import { default as Of } from "./features/chapters/chapter/chapter.js";
176
- import { default as Hf } from "./features/chapters/chapters-list/chapters-list.js";
176
+ import { default as Df } from "./features/chapters/chapters-list/chapters-list.js";
177
177
  import { default as gf } from "./features/chapters/lpar-chapter/lpar-chapter.js";
178
178
  import { default as Uf } from "./features/chapters/lpar-milestone-chapter/lpar-milestone-chapter.js";
179
179
  import { default as Bf } from "./features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-summary/sat-sheet-summary.js";
@@ -199,7 +199,7 @@ import { CIRCLE_ACTION_IDS as Ps } from "./features/circle-games/enum/circle-act
199
199
  import { GameLauncher as hs } from "./features/circle-games/game-launcher/game-launcher.js";
200
200
  import { useGetCircleHomeDetailsDal as ks } from "./features/circle-games/game-launcher/dal/use-get-circle-home-details-dal/use-get-circle-home-details-dal.js";
201
201
  import { Leaderboard as Ms } from "./features/circle-games/leaderboard/leaderboard.js";
202
- import { BackgroundImage as Os, CircularSteps as Ds } from "./features/circle-games/sign-up/comp/circular-steps/circular-steps.js";
202
+ import { BackgroundImage as Os, CircularSteps as Hs } from "./features/circle-games/sign-up/comp/circular-steps/circular-steps.js";
203
203
  import { SplashScreen as Gs } from "./features/circle-games/sign-up/comp/splash-screen/splash-screen.js";
204
204
  import { SignUp as ys } from "./features/circle-games/sign-up/sign-up.js";
205
205
  import { default as vs } from "./features/cue-canvas/cue-canvas-provider.js";
@@ -226,7 +226,7 @@ import { useJourney as hl } from "./features/journey/use-journey/use-journey.js"
226
226
  import { useGetEligibleJourneysViaRoute as kl } from "./features/journey/hooks/use-get-eligible-journeys-via-route.js";
227
227
  import { JourneyProvider as Ml } from "./features/journey/use-journey/journey-context-provider.js";
228
228
  import { IndicatorType as Ol } from "./features/journey/use-journey/constants.js";
229
- import { Coachmark as Hl } from "./features/journey/comps/coachmark/coachmark.js";
229
+ import { Coachmark as Dl } from "./features/journey/comps/coachmark/coachmark.js";
230
230
  import { useHomePageJourney as gl } from "./features/journey/hooks/use-home-page-journey/use-home-page-journey.js";
231
231
  import { useChapterPageJourney as Ul } from "./features/journey/hooks/use-chapter-journey.js";
232
232
  import { default as Bl } from "./features/maintenance/maintenance.js";
@@ -250,7 +250,7 @@ import { ACHIEVEMENT_ACTIONS as Sp, STAGES as Ep } from "./features/milestone/ou
250
250
  import { invalidateMilestonesData as Ap, useGetAllMilestonesdata as Pp } from "./features/milestone/milestone-list-container/api/get-milestones.js";
251
251
  import { invalidatePastMilestoneCount as hp, useGetPastMilestoneCount as Rp } from "./features/milestone/milestone-list-container/api/get-past-milestone-count.js";
252
252
  import { invalidateTestHelpData as Lp, useGetTestHelpData as Mp } from "./features/milestone/milestone-list-container/api/get-tests-list.js";
253
- import { invalidateMilestoneResources as Op, useGetMilestoneResources as Dp } from "./features/milestone/milestone-list-container/api/get-milestone-resources.js";
253
+ import { invalidateMilestoneResources as Op, useGetMilestoneResources as Hp } from "./features/milestone/milestone-list-container/api/get-milestone-resources.js";
254
254
  import { default as Gp } from "./features/pointer-sync/pointer.js";
255
255
  import { default as yp } from "./features/pointer-sync/hooks/use-pointer-sync.js";
256
256
  import { DigitalMeter as vp } from "./features/post-game-stats/digital-meter/digital-meter.js";
@@ -270,7 +270,7 @@ import { ACTION_BAR_HEIGHT as Au, QUESTIONS_GAP as Pu, QUESTION_WIDTH as _u, TOP
270
270
  import { isOkayTypeQuestion as ku } from "./features/worksheet/worksheet/worksheet-helpers.js";
271
271
  import { default as Mu } from "./features/worksheet/worksheet/worksheet-container.js";
272
272
  import { default as Ou } from "./features/worksheet/worksheet-preview/worksheet-preview.js";
273
- import { default as Hu } from "./features/worksheet/worksheet-preview/dynamic-worksheet-preview/dynamic-worksheet-preview.js";
273
+ import { default as Du } from "./features/worksheet/worksheet-preview/dynamic-worksheet-preview/dynamic-worksheet-preview.js";
274
274
  import { default as gu } from "./features/worksheet/worksheet/worksheet-permissions/sheet-locked.js";
275
275
  import { default as Uu } from "./features/worksheet/worksheet/worksheet-permissions/error.js";
276
276
  import { default as Bu } from "./features/worksheet/learnosity-preloader/learnosity-preloader.js";
@@ -279,9 +279,8 @@ import { default as Vu } from "./features/worksheet/worksheet-preview/hooks/use-
279
279
  import { default as Fu } from "./features/hooks/use-viewport/use-viewport.js";
280
280
  import { default as Ju } from "./features/puzzles/puzzle-container/puzzle-container.js";
281
281
  import { default as Ku } from "./features/puzzles/puzzle-feedback-celebration/puzzle-feedback-celebration.js";
282
- import { default as Zu } from "./features/puzzles/puzzle-dashboard/puzzle-dashboard.js";
283
- import { invalidatePuzzleToAssign as Xu, useGetPuzzleToAssign as $u } from "./features/puzzles/api/puzzle-assign.js";
284
- import { COUNTRY_CODE_MAP as om } from "./constants/country.js";
282
+ import { invalidatePuzzleToAssign as Zu, useGetPuzzleToAssign as qu } from "./features/puzzles/api/puzzle-assign.js";
283
+ import { COUNTRY_CODE_MAP as $u } from "./constants/country.js";
285
284
  export {
286
285
  Sp as ACHIEVEMENT_ACTIONS,
287
286
  Cf as AUTH_TABS,
@@ -292,12 +291,12 @@ export {
292
291
  ep as AchievementShareInstructionModal,
293
292
  x as AlertIcon,
294
293
  _a as AnimatedArc,
295
- Ht as AppLoader,
294
+ Dt as AppLoader,
296
295
  at as ArcButton,
297
296
  Vr as ArrowTooltip,
298
297
  Pf as AuthApiErrorCode,
299
298
  Ga as AuthPageLayout,
300
- Da as AuthStaticPanel,
299
+ Ha as AuthStaticPanel,
301
300
  gr as AutoPlayPermissionProvider,
302
301
  la as Avatar,
303
302
  Ir as Back2Icon,
@@ -315,14 +314,14 @@ export {
315
314
  Ps as CIRCLE_ACTION_IDS,
316
315
  Cs as CIRCLE_ONBOARDING_ANALYTICS_STEPS,
317
316
  au as COMPLETED_SHEET_STATE,
318
- om as COUNTRY_CODE_MAP,
319
- H as CalendarIcon,
317
+ $u as COUNTRY_CODE_MAP,
318
+ D as CalendarIcon,
320
319
  Zt as Callout,
321
320
  Pt as CascadingSelectInput,
322
321
  Of as Chapter,
323
322
  Fl as ChapterClearanceConfirmationModal,
324
323
  Vf as ChapterDetails,
325
- Hf as ChaptersList,
324
+ Df as ChaptersList,
326
325
  Mr as ChatIcon,
327
326
  U as Check2Icon,
328
327
  g as CheckIcon,
@@ -334,13 +333,13 @@ export {
334
333
  Xf as CircleSoundKey,
335
334
  gt as CircularLoader,
336
335
  $a as CircularStepWrapper,
337
- Ds as CircularSteps,
336
+ Hs as CircularSteps,
338
337
  Ya as ClaimUserAccount,
339
338
  Xr as Clickable,
340
339
  B as ClipboardIcon,
341
340
  V as Clock2Icon,
342
341
  w as ClockIcon,
343
- Hl as Coachmark,
342
+ Dl as Coachmark,
344
343
  F as CodeIcon,
345
344
  Fr as ContextMenu,
346
345
  J as CopyIcon,
@@ -361,7 +360,7 @@ export {
361
360
  ee as DownIcon,
362
361
  re as DraftIcon,
363
362
  ae as DragIcon,
364
- Hu as DynamicPreviewWorksheet,
363
+ Du as DynamicPreviewWorksheet,
365
364
  sl as EClassTimeAlertLevel,
366
365
  rs as ELeaderboardType,
367
366
  Ip as EPResourceAssign,
@@ -402,7 +401,7 @@ export {
402
401
  Aa as Image,
403
402
  Me as ImageIcon,
404
403
  Ol as IndicatorType,
405
- He as Info2Icon,
404
+ De as Info2Icon,
406
405
  Oe as InfoIcon,
407
406
  ba as InputStatusIcon,
408
407
  Cl as JOURNEY_ID_STUDENT,
@@ -434,7 +433,7 @@ export {
434
433
  fu as NODE_LABELS,
435
434
  su as NODE_SUB_GROUP,
436
435
  lu as NODE_TYPE,
437
- Hr as Next2Icon,
436
+ Dr as Next2Icon,
438
437
  Xe as NextIcon,
439
438
  Kr as Nudge,
440
439
  ht as NumRangeInput,
@@ -460,7 +459,6 @@ export {
460
459
  cs as ProjectType,
461
460
  Eo as Puzzle2Icon,
462
461
  Ju as PuzzleCard,
463
- Zu as PuzzleDashboard,
464
462
  Ku as PuzzleFeedbackCelebration,
465
463
  To as PuzzleIcon,
466
464
  Ao as QuestionIcon,
@@ -487,7 +485,7 @@ export {
487
485
  iu as SHEET_STATE,
488
486
  Ep as STAGES,
489
487
  nr as ScribbleIcon,
490
- Do as SearchIcon,
488
+ Ho as SearchIcon,
491
489
  It as SearchableSelectInput,
492
490
  Ft as SectionList,
493
491
  ct as SelectInput,
@@ -557,7 +555,7 @@ export {
557
555
  Op as invalidateMilestoneResources,
558
556
  Ap as invalidateMilestonesData,
559
557
  hp as invalidatePastMilestoneCount,
560
- Xu as invalidatePuzzleToAssign,
558
+ Zu as invalidatePuzzleToAssign,
561
559
  Lp as invalidateTestHelpData,
562
560
  ku as isOkayTypeQuestion,
563
561
  Eu as loadScript,
@@ -572,9 +570,9 @@ export {
572
570
  ks as useGetCircleHomeDetailsDal,
573
571
  kl as useGetEligibleJourneysViaRoute,
574
572
  es as useGetLeaderboardDal,
575
- Dp as useGetMilestoneResources,
573
+ Hp as useGetMilestoneResources,
576
574
  Rp as useGetPastMilestoneCount,
577
- $u as useGetPuzzleToAssign,
575
+ qu as useGetPuzzleToAssign,
578
576
  Mp as useGetTestHelpData,
579
577
  gl as useHomePageJourney,
580
578
  ol 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cuemath/leap",
3
- "version": "3.2.1-pd-1",
3
+ "version": "3.2.1",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -1,10 +0,0 @@
1
- import { createGetAPI as s } from "@cuemath/rest-api";
2
- import { BASE_URL_V3 as r } from "../../../constants/api.js";
3
- const { useGet: a, invalidate: z } = s({
4
- getURL: (e, o, { courseStream: t }) => `${r}/users/${e}/course-streams/${t}/puzzles-history/`
5
- });
6
- export {
7
- z as invalidateGetPuzzles,
8
- a as useGetPuzzles
9
- };
10
- //# sourceMappingURL=puzzle-dashboard.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"puzzle-dashboard.js","sources":["../../../../src/features/puzzles/api/puzzle-dashboard.ts"],"sourcesContent":["import type { TCourseStream } from '../../milestone/create/milestone-create-types';\nimport type { IPuzzleCardAssignData } from '../puzzle-container/puzzle-container-types';\n\nimport { createGetAPI } from '@cuemath/rest-api';\n\nimport { BASE_URL_V3 } from '../../../constants/api';\n\nconst { useGet: useGetPuzzles, invalidate: invalidateGetPuzzles } = createGetAPI<\n IPuzzleCardAssignData[],\n void,\n { courseStream: TCourseStream }\n>({\n getURL: (studentId, _, { courseStream }) =>\n `${BASE_URL_V3}/users/${studentId}/course-streams/${courseStream}/puzzles-history/`,\n});\n\nexport { useGetPuzzles, invalidateGetPuzzles };\n"],"names":["useGetPuzzles","invalidateGetPuzzles","createGetAPI","studentId","_","courseStream","BASE_URL_V3"],"mappings":";;AAOA,MAAM,EAAE,QAAQA,GAAe,YAAYC,EAAA,IAAyBC,EAIlE;AAAA,EACA,QAAQ,CAACC,GAAWC,GAAG,EAAE,cAAAC,EAAA,MACvB,GAAGC,CAAW,UAAUH,CAAS,mBAAmBE,CAAY;AACpE,CAAC;"}
@@ -1,8 +0,0 @@
1
- const A = {
2
- REVEAL: [0, 50],
3
- REVEAL_ASSIGNED: [58, 160]
4
- };
5
- export {
6
- A as PUZZLE_ASSIGN_ANIMATION
7
- };
8
- //# sourceMappingURL=puzzle-container.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"puzzle-container.js","sources":["../../../../src/features/puzzles/constants/puzzle-container.ts"],"sourcesContent":["import type { AnimationSegment } from 'lottie-web';\n\nexport const PUZZLE_ASSIGN_ANIMATION = {\n REVEAL: [0, 50] as AnimationSegment,\n REVEAL_ASSIGNED: [58, 160] as AnimationSegment,\n};\n"],"names":["PUZZLE_ASSIGN_ANIMATION"],"mappings":"AAEO,MAAMA,IAA0B;AAAA,EACrC,QAAQ,CAAC,GAAG,EAAE;AAAA,EACd,iBAAiB,CAAC,IAAI,GAAG;AAC3B;"}
@@ -1,45 +0,0 @@
1
- import { jsxs as n, Fragment as $, jsx as e } from "react/jsx-runtime";
2
- import { memo as a } from "react";
3
- import d from "../../ui/image/image.js";
4
- import r from "../../ui/text/text.js";
5
- import { PuzzleContent as g, AssignedTag as m, PuzzleButton as u } from "./puzzle-container-styled.js";
6
- const z = a(
7
- ({ handleOnPuzzleClick: i, imageUrl: o, title: l, handleAssign: c, assigned: t, assigning: s }) => /* @__PURE__ */ n($, { children: [
8
- /* @__PURE__ */ n(
9
- g,
10
- {
11
- $justifyContent: "center",
12
- $alignItems: "center",
13
- onClick: i,
14
- title: "Click to preview",
15
- $flexGapX: 1.5,
16
- $assigned: t,
17
- $gutterX: 1,
18
- children: [
19
- /* @__PURE__ */ e(d, { width: 136, height: 136, src: o, withLoader: !1, alt: "Puzzle" }),
20
- /* @__PURE__ */ e(r, { $renderAs: "h4", $align: "center", children: l }),
21
- t && /* @__PURE__ */ e(m, { $gap: 4, $gutter: 8, $background: "BLACK_1", children: /* @__PURE__ */ e(r, { $renderAs: "ac4", $color: "WHITE_1", children: "Assigned" }) })
22
- ]
23
- }
24
- ),
25
- /* @__PURE__ */ e(
26
- u,
27
- {
28
- $background: "BLACK_1",
29
- $widthX: 15.75,
30
- $alignItems: "center",
31
- $justifyContent: "center",
32
- $gapX: 0.75,
33
- $gutterX: 1,
34
- onClick: c,
35
- $assigned: t,
36
- $assigning: s,
37
- children: /* @__PURE__ */ e(r, { $renderAs: "ub1-bold", $color: t ? "BLACK_T_38" : "WHITE_1", children: t ? "Discuss in next class" : "Assign" })
38
- }
39
- )
40
- ] })
41
- );
42
- export {
43
- z as default
44
- };
45
- //# sourceMappingURL=puzzle-container-view.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"puzzle-container-view.js","sources":["../../../../src/features/puzzles/puzzle-container/puzzle-container-view.tsx"],"sourcesContent":["import type { IPuzzleContainerViewProps } from './puzzle-container-types';\nimport type { FC } from 'react';\n\nimport { memo } from 'react';\n\nimport Image from '../../ui/image/image';\nimport Text from '../../ui/text/text';\nimport * as Styled from './puzzle-container-styled';\n\nconst PuzzleContainerView: FC<IPuzzleContainerViewProps> = memo(\n ({ handleOnPuzzleClick, imageUrl, title, handleAssign, assigned, assigning }) => {\n return (\n <>\n <Styled.PuzzleContent\n $justifyContent=\"center\"\n $alignItems=\"center\"\n onClick={handleOnPuzzleClick}\n title=\"Click to preview\"\n $flexGapX={1.5}\n $assigned={assigned}\n $gutterX={1}\n >\n <Image width={136} height={136} src={imageUrl} withLoader={false} alt=\"Puzzle\" />\n <Text $renderAs=\"h4\" $align=\"center\">\n {title}\n </Text>\n\n {assigned && (\n <Styled.AssignedTag $gap={4} $gutter={8} $background=\"BLACK_1\">\n <Text $renderAs=\"ac4\" $color=\"WHITE_1\">\n Assigned\n </Text>\n </Styled.AssignedTag>\n )}\n </Styled.PuzzleContent>\n\n <Styled.PuzzleButton\n $background=\"BLACK_1\"\n $widthX={15.75}\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $gapX={0.75}\n $gutterX={1}\n onClick={handleAssign}\n $assigned={assigned}\n $assigning={assigning}\n >\n <Text $renderAs=\"ub1-bold\" $color={assigned ? 'BLACK_T_38' : 'WHITE_1'}>\n {assigned ? 'Discuss in next class' : 'Assign'}\n </Text>\n </Styled.PuzzleButton>\n </>\n );\n },\n);\n\nexport default PuzzleContainerView;\n"],"names":["PuzzleContainerView","memo","handleOnPuzzleClick","imageUrl","title","handleAssign","assigned","assigning","jsxs","Fragment","Styled.PuzzleContent","jsx","Image","Text","Styled.AssignedTag","Styled.PuzzleButton"],"mappings":";;;;;AASA,MAAMA,IAAqDC;AAAA,EACzD,CAAC,EAAE,qBAAAC,GAAqB,UAAAC,GAAU,OAAAC,GAAO,cAAAC,GAAc,UAAAC,GAAU,WAAAC,QAG3D,gBAAAC,EAAAC,GAAA,EAAA,UAAA;AAAA,IAAA,gBAAAD;AAAA,MAACE;AAAAA,MAAA;AAAA,QACC,iBAAgB;AAAA,QAChB,aAAY;AAAA,QACZ,SAASR;AAAA,QACT,OAAM;AAAA,QACN,WAAW;AAAA,QACX,WAAWI;AAAA,QACX,UAAU;AAAA,QAEV,UAAA;AAAA,UAAC,gBAAAK,EAAAC,GAAA,EAAM,OAAO,KAAK,QAAQ,KAAK,KAAKT,GAAU,YAAY,IAAO,KAAI,SAAS,CAAA;AAAA,4BAC9EU,GAAK,EAAA,WAAU,MAAK,QAAO,UACzB,UACHT,GAAA;AAAA,UAECE,KACE,gBAAAK,EAAAG,GAAA,EAAmB,MAAM,GAAG,SAAS,GAAG,aAAY,WACnD,4BAACD,GAAK,EAAA,WAAU,OAAM,QAAO,WAAU,qBAEvC,CAAA,GACF;AAAA,QAAA;AAAA,MAAA;AAAA,IAEJ;AAAA,IAEA,gBAAAF;AAAA,MAACI;AAAAA,MAAA;AAAA,QACC,aAAY;AAAA,QACZ,SAAS;AAAA,QACT,aAAY;AAAA,QACZ,iBAAgB;AAAA,QAChB,OAAO;AAAA,QACP,UAAU;AAAA,QACV,SAASV;AAAA,QACT,WAAWC;AAAA,QACX,YAAYC;AAAA,QAEZ,UAAA,gBAAAI,EAACE,GAAK,EAAA,WAAU,YAAW,QAAQP,IAAW,eAAe,WAC1D,UAAWA,IAAA,0BAA0B,SACxC,CAAA;AAAA,MAAA;AAAA,IACF;AAAA,EACF,EAAA,CAAA;AAGN;"}
@@ -1,30 +0,0 @@
1
- import o from "styled-components";
2
- import { ILLUSTRATIONS as r } from "../../../assets/illustrations/illustrations.js";
3
- import p from "../../ui/layout/flex-view.js";
4
- const a = o(p)``, i = o(p)`
5
- background-image: url(${r.PUZZLE_DASHBOARD_BANNER});
6
- background-size: cover;
7
- `, c = o(p)`
8
- position: absolute;
9
- top: 16px;
10
- left: 16px;
11
- `, s = o(p)`
12
- position: sticky;
13
- top: 16px;
14
- z-index: 5;
15
- `, d = o.div`
16
- display: grid;
17
- width: 100%;
18
- grid-template-columns: repeat(5, 1fr);
19
- column-gap: 24px;
20
- row-gap: 40px;
21
- padding: 0 37px;
22
- `;
23
- export {
24
- c as BackIconContainer,
25
- s as BackIconWrapper,
26
- i as BannerWrapper,
27
- d as ContentWrapper,
28
- a as PuzzleDashboardWrapper
29
- };
30
- //# sourceMappingURL=puzzle-dashboard-styled.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"puzzle-dashboard-styled.js","sources":["../../../../src/features/puzzles/puzzle-dashboard/puzzle-dashboard-styled.ts"],"sourcesContent":["import styled from 'styled-components';\n\nimport { ILLUSTRATIONS } from '../../../assets/illustrations/illustrations';\nimport FlexView from '../../ui/layout/flex-view';\n\nconst PuzzleDashboardWrapper = styled(FlexView)``;\n\nconst BannerWrapper = styled(FlexView)`\n background-image: url(${ILLUSTRATIONS.PUZZLE_DASHBOARD_BANNER});\n background-size: cover;\n`;\n\nconst BackIconContainer = styled(FlexView)`\n position: absolute;\n top: 16px;\n left: 16px;\n`;\n\nconst BackIconWrapper = styled(FlexView)`\n position: sticky;\n top: 16px;\n z-index: 5;\n`;\n\nconst ContentWrapper = styled.div`\n display: grid;\n width: 100%;\n grid-template-columns: repeat(5, 1fr);\n column-gap: 24px;\n row-gap: 40px;\n padding: 0 37px;\n`;\n\nexport {\n PuzzleDashboardWrapper,\n BannerWrapper,\n BackIconContainer,\n BackIconWrapper,\n ContentWrapper,\n};\n"],"names":["PuzzleDashboardWrapper","styled","FlexView","BannerWrapper","ILLUSTRATIONS","BackIconContainer","BackIconWrapper","ContentWrapper"],"mappings":";;;AAKM,MAAAA,IAAyBC,EAAOC,CAAQ,KAExCC,IAAgBF,EAAOC,CAAQ;AAAA,0BACXE,EAAc,uBAAuB;AAAA;AAAA,GAIzDC,IAAoBJ,EAAOC,CAAQ;AAAA;AAAA;AAAA;AAAA,GAMnCI,IAAkBL,EAAOC,CAAQ;AAAA;AAAA;AAAA;AAAA,GAMjCK,IAAiBN,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
@@ -1,84 +0,0 @@
1
- import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
- import { useCallback as P, useEffect as b } from "react";
3
- import x from "../../../assets/line-icons/icons/back2.js";
4
- import C from "../../ui/buttons/button/button.js";
5
- import w from "../../ui/buttons/icon-button/icon-button.js";
6
- import I from "../../ui/layout/flex-view.js";
7
- import A from "../../ui/loader/app-loader/app-loader.js";
8
- import l from "../../ui/text/text.js";
9
- import { useGetPuzzles as k } from "../api/puzzle-dashboard.js";
10
- import v from "../comps/puzzle-card.js";
11
- import { PuzzleDashboardWrapper as B, BannerWrapper as X, BackIconContainer as _, BackIconWrapper as j, ContentWrapper as y } from "./puzzle-dashboard-styled.js";
12
- const S = ({ studentId: i, onBackCLick: o, onCardClick: s }) => {
13
- const {
14
- get: a,
15
- data: r,
16
- isProcessing: c,
17
- isProcessingFailed: m
18
- } = k(), h = (r == null ? void 0 : r.length) || 0, n = P(() => {
19
- a(i, void 0, {
20
- courseStream: "MATH"
21
- });
22
- }, [a, i]);
23
- return b(() => {
24
- n();
25
- }, [n]), c ? /* @__PURE__ */ e(A, { height: "100vh" }) : m ? /* @__PURE__ */ t(I, { $flexGapX: 1.5, $height: "100vh", $justifyContent: "center", $alignItems: "center", children: [
26
- /* @__PURE__ */ e(l, { $renderAs: "h6", children: "Oops! Something went wrong. Please try again later." }),
27
- /* @__PURE__ */ e(
28
- C,
29
- {
30
- widthX: 14,
31
- size: "small",
32
- shape: "square",
33
- renderAs: "primary",
34
- label: "Try again",
35
- onClick: n
36
- }
37
- )
38
- ] }) : /* @__PURE__ */ t(B, { $alignItems: "center", $flexGapX: 2.5, $position: "relative", children: [
39
- /* @__PURE__ */ t(X, { $widthX: 50, $heightX: 10.5, $justifyContent: "center", children: [
40
- /* @__PURE__ */ t(l, { $renderAs: "ah3-bold", $alignSelf: "center", children: [
41
- h,
42
- " Puzzles Solved"
43
- ] }),
44
- o && /* @__PURE__ */ e(_, { $height: "100%", children: /* @__PURE__ */ e(j, { children: /* @__PURE__ */ e(
45
- w,
46
- {
47
- Icon: x,
48
- size: "xsmall",
49
- renderAs: "secondary",
50
- analyticsLabel: "puzzle_back",
51
- onClick: o
52
- }
53
- ) }) })
54
- ] }),
55
- /* @__PURE__ */ e(y, { children: r == null ? void 0 : r.map((d) => {
56
- const {
57
- id: p,
58
- image_hue: u,
59
- image_url: f,
60
- title: g,
61
- user_node_id: z,
62
- rewards: $
63
- } = d;
64
- return /* @__PURE__ */ e(
65
- v,
66
- {
67
- imageHue: u,
68
- imageUrl: f,
69
- title: g,
70
- width: 126,
71
- height: 152,
72
- onCardClick: s,
73
- userNodeId: z,
74
- rewards: $
75
- },
76
- p
77
- );
78
- }) })
79
- ] });
80
- }, V = S;
81
- export {
82
- V as default
83
- };
84
- //# sourceMappingURL=puzzle-dashboard.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"puzzle-dashboard.js","sources":["../../../../src/features/puzzles/puzzle-dashboard/puzzle-dashboard.tsx"],"sourcesContent":["import type { IPuzzleDashboardProps } from './puzzle-dashboard-types';\n\nimport { useCallback, useEffect, type FC } from 'react';\n\nimport Back2Icon from '../../../assets/line-icons/icons/back2';\nimport Button from '../../ui/buttons/button/button';\nimport IconButton from '../../ui/buttons/icon-button/icon-button';\nimport FlexView from '../../ui/layout/flex-view';\nimport AppLoader from '../../ui/loader/app-loader/app-loader';\nimport Text from '../../ui/text/text';\nimport { useGetPuzzles } from '../api/puzzle-dashboard';\nimport PuzzleCard from '../comps/puzzle-card';\nimport * as Styled from './puzzle-dashboard-styled';\n\nconst PuzzleDashboard: FC<IPuzzleDashboardProps> = ({ studentId, onBackCLick, onCardClick }) => {\n const {\n get: getPuzzles,\n data: puzzleHistoryData,\n isProcessing,\n isProcessingFailed,\n } = useGetPuzzles();\n\n const puzzleCount = puzzleHistoryData?.length || 0;\n\n const fetchPuzzles = useCallback(() => {\n getPuzzles(studentId, undefined, {\n courseStream: 'MATH',\n });\n }, [getPuzzles, studentId]);\n\n useEffect(() => {\n fetchPuzzles();\n }, [fetchPuzzles]);\n\n if (isProcessing) {\n return <AppLoader height=\"100vh\" />;\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={fetchPuzzles}\n />\n </FlexView>\n );\n }\n\n return (\n <Styled.PuzzleDashboardWrapper $alignItems=\"center\" $flexGapX={2.5} $position=\"relative\">\n <Styled.BannerWrapper $widthX={50} $heightX={10.5} $justifyContent=\"center\">\n <Text $renderAs=\"ah3-bold\" $alignSelf=\"center\">\n {puzzleCount} Puzzles Solved\n </Text>\n\n {onBackCLick && (\n <Styled.BackIconContainer $height=\"100%\">\n <Styled.BackIconWrapper>\n <IconButton\n Icon={Back2Icon}\n size=\"xsmall\"\n renderAs=\"secondary\"\n analyticsLabel=\"puzzle_back\"\n onClick={onBackCLick}\n />\n </Styled.BackIconWrapper>\n </Styled.BackIconContainer>\n )}\n </Styled.BannerWrapper>\n\n <Styled.ContentWrapper>\n {puzzleHistoryData?.map(item => {\n const {\n id,\n image_hue: imageHue,\n image_url: imageUrl,\n title,\n user_node_id: userNodeId,\n rewards,\n } = item;\n\n return (\n <PuzzleCard\n key={id}\n imageHue={imageHue}\n imageUrl={imageUrl}\n title={title}\n width={126}\n height={152}\n onCardClick={onCardClick}\n userNodeId={userNodeId}\n rewards={rewards}\n />\n );\n })}\n </Styled.ContentWrapper>\n </Styled.PuzzleDashboardWrapper>\n );\n};\n\nexport default PuzzleDashboard;\n"],"names":["PuzzleDashboard","studentId","onBackCLick","onCardClick","getPuzzles","puzzleHistoryData","isProcessing","isProcessingFailed","useGetPuzzles","puzzleCount","fetchPuzzles","useCallback","useEffect","jsx","AppLoader","jsxs","FlexView","Text","Button","Styled.PuzzleDashboardWrapper","Styled.BannerWrapper","Styled.BackIconContainer","Styled.BackIconWrapper","IconButton","Back2Icon","Styled.ContentWrapper","item","id","imageHue","imageUrl","title","userNodeId","rewards","PuzzleCard","PuzzleDashboard$1"],"mappings":";;;;;;;;;;;AAcA,MAAMA,IAA6C,CAAC,EAAE,WAAAC,GAAW,aAAAC,GAAa,aAAAC,QAAkB;AACxF,QAAA;AAAA,IACJ,KAAKC;AAAA,IACL,MAAMC;AAAA,IACN,cAAAC;AAAA,IACA,oBAAAC;AAAA,MACEC,EAAc,GAEZC,KAAcJ,KAAA,gBAAAA,EAAmB,WAAU,GAE3CK,IAAeC,EAAY,MAAM;AACrC,IAAAP,EAAWH,GAAW,QAAW;AAAA,MAC/B,cAAc;AAAA,IAAA,CACf;AAAA,EAAA,GACA,CAACG,GAAYH,CAAS,CAAC;AAM1B,SAJAW,EAAU,MAAM;AACD,IAAAF;EAAA,GACZ,CAACA,CAAY,CAAC,GAEbJ,IACK,gBAAAO,EAACC,GAAU,EAAA,QAAO,QAAQ,CAAA,IAG/BP,IAEA,gBAAAQ,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,IAKF,gBAAAK,EAACI,GAAA,EAA8B,aAAY,UAAS,WAAW,KAAK,WAAU,YAC5E,UAAA;AAAA,IAAC,gBAAAJ,EAAAK,GAAA,EAAqB,SAAS,IAAI,UAAU,MAAM,iBAAgB,UACjE,UAAA;AAAA,MAAA,gBAAAL,EAACE,GAAK,EAAA,WAAU,YAAW,YAAW,UACnC,UAAA;AAAA,QAAAR;AAAA,QAAY;AAAA,MAAA,GACf;AAAA,MAECP,KACE,gBAAAW,EAAAQ,GAAA,EAAyB,SAAQ,QAChC,UAAA,gBAAAR,EAACS,GAAA,EACC,UAAA,gBAAAT;AAAA,QAACU;AAAA,QAAA;AAAA,UACC,MAAMC;AAAA,UACN,MAAK;AAAA,UACL,UAAS;AAAA,UACT,gBAAe;AAAA,UACf,SAAStB;AAAA,QAAA;AAAA,SAEb,EACF,CAAA;AAAA,IAAA,GAEJ;AAAA,sBAECuB,GAAA,EACE,UAAApB,KAAA,gBAAAA,EAAmB,IAAI,CAAQqB,MAAA;AACxB,YAAA;AAAA,QACJ,IAAAC;AAAA,QACA,WAAWC;AAAA,QACX,WAAWC;AAAA,QACX,OAAAC;AAAA,QACA,cAAcC;AAAA,QACd,SAAAC;AAAA,MACE,IAAAN;AAGF,aAAA,gBAAAb;AAAA,QAACoB;AAAA,QAAA;AAAA,UAEC,UAAAL;AAAA,UACA,UAAAC;AAAA,UACA,OAAAC;AAAA,UACA,OAAO;AAAA,UACP,QAAQ;AAAA,UACR,aAAA3B;AAAA,UACA,YAAA4B;AAAA,UACA,SAAAC;AAAA,QAAA;AAAA,QARKL;AAAA,MAAA;AAAA,IAWV,IACH;AAAA,EACF,EAAA,CAAA;AAEJ,GAEAO,IAAelC;"}