@cuemath/leap 2.8.61-as1 → 2.8.61-as11

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 (66) hide show
  1. package/dist/assets/line-icons/icons/chevron-left.js.map +1 -1
  2. package/dist/assets/line-icons/icons/chevron-right.js.map +1 -1
  3. package/dist/features/chapters/chapters-list/chapter-item/chapter-item-styled.js +23 -22
  4. package/dist/features/chapters/chapters-list/chapter-item/chapter-item-styled.js.map +1 -1
  5. package/dist/features/chapters/chapters-list/chapter-item/chapter-item.js +88 -74
  6. package/dist/features/chapters/chapters-list/chapter-item/chapter-item.js.map +1 -1
  7. package/dist/features/chapters/chapters-list/chapters-list.js +17 -18
  8. package/dist/features/chapters/chapters-list/chapters-list.js.map +1 -1
  9. package/dist/features/chapters-v2/chapter-details/block-sections/block-section-view.js +39 -39
  10. package/dist/features/chapters-v2/chapter-details/block-sections/block-section-view.js.map +1 -1
  11. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections.js +32 -28
  12. package/dist/features/chapters-v2/chapter-details/block-sections/block-sections.js.map +1 -1
  13. package/dist/features/chapters-v2/chapter-details/chapter-banner/chapter-banner.js +22 -22
  14. package/dist/features/chapters-v2/chapter-details/chapter-banner/chapter-banner.js.map +1 -1
  15. package/dist/features/chapters-v2/comps/node-card/node-card-tags.js +6 -6
  16. package/dist/features/chapters-v2/comps/node-card/node-card-tags.js.map +1 -1
  17. package/dist/features/chapters-v2/comps/node-card/teacher-actions/teacher-actions.js +70 -71
  18. package/dist/features/chapters-v2/comps/node-card/teacher-actions/teacher-actions.js.map +1 -1
  19. package/dist/features/chapters-v2/constants/node-constants.js +0 -1
  20. package/dist/features/chapters-v2/constants/node-constants.js.map +1 -1
  21. package/dist/features/chapters-v2/utils/index.js +4 -4
  22. package/dist/features/chapters-v2/utils/index.js.map +1 -1
  23. package/dist/features/chapters-v2/utils/node-card-utils.js +59 -42
  24. package/dist/features/chapters-v2/utils/node-card-utils.js.map +1 -1
  25. package/dist/features/communication/pub-sub/constants.js +5 -2
  26. package/dist/features/communication/pub-sub/constants.js.map +1 -1
  27. package/dist/features/homework/card-menu-options.js +35 -20
  28. package/dist/features/homework/card-menu-options.js.map +1 -1
  29. package/dist/features/homework/homework-card.js +241 -161
  30. package/dist/features/homework/homework-card.js.map +1 -1
  31. package/dist/features/homework/hw-card-list/api/get-homeworks.js +10 -0
  32. package/dist/features/homework/hw-card-list/api/get-homeworks.js.map +1 -0
  33. package/dist/features/homework/hw-card-list/hw-card-list-styled.js +53 -0
  34. package/dist/features/homework/hw-card-list/hw-card-list-styled.js.map +1 -0
  35. package/dist/features/homework/hw-card-list/hw-card-list.js +164 -0
  36. package/dist/features/homework/hw-card-list/hw-card-list.js.map +1 -0
  37. package/dist/features/homework/node-progress.js +29 -0
  38. package/dist/features/homework/node-progress.js.map +1 -0
  39. package/dist/features/homework/styles.js +41 -38
  40. package/dist/features/homework/styles.js.map +1 -1
  41. package/dist/features/milestone/create/comps/chapter-item/chapter-item.js +42 -49
  42. package/dist/features/milestone/create/comps/chapter-item/chapter-item.js.map +1 -1
  43. package/dist/features/milestone/create/comps/sheets-list/sheets-list-styled.js +14 -20
  44. package/dist/features/milestone/create/comps/sheets-list/sheets-list-styled.js.map +1 -1
  45. package/dist/features/milestone/create/comps/sheets-list/sheets-list.js +26 -50
  46. package/dist/features/milestone/create/comps/sheets-list/sheets-list.js.map +1 -1
  47. package/dist/features/milestone/create/utils/index.js +33 -38
  48. package/dist/features/milestone/create/utils/index.js.map +1 -1
  49. package/dist/features/milestone/edit/goal-edit-helpers.js +50 -53
  50. package/dist/features/milestone/edit/goal-edit-helpers.js.map +1 -1
  51. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-info.js +10 -10
  52. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-info.js.map +1 -1
  53. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view.js +17 -15
  54. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view.js.map +1 -1
  55. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-utils.js +10 -0
  56. package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-utils.js.map +1 -0
  57. package/dist/features/recent-chapters/recent-chapters.js +17 -23
  58. package/dist/features/recent-chapters/recent-chapters.js.map +1 -1
  59. package/dist/features/sheet-v2/resource-list/resource-list.js +12 -10
  60. package/dist/features/sheet-v2/resource-list/resource-list.js.map +1 -1
  61. package/dist/index.d.ts +54 -24
  62. package/dist/index.js +41 -37
  63. package/dist/index.js.map +1 -1
  64. package/dist/node_modules/date-fns/differenceInDays.js +17 -0
  65. package/dist/node_modules/date-fns/differenceInDays.js.map +1 -0
  66. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -12,8 +12,8 @@ import { default as P } from "./assets/line-icons/icons/book-closed.js";
12
12
  import { default as h } from "./assets/line-icons/icons/book.js";
13
13
  import { default as L } from "./assets/line-icons/icons/book2.js";
14
14
  import { default as N } from "./assets/line-icons/icons/bookmark.js";
15
- import { default as R } from "./assets/line-icons/icons/bulb.js";
16
- import { default as H } from "./assets/line-icons/icons/bulb2.js";
15
+ import { default as O } from "./assets/line-icons/icons/bulb.js";
16
+ import { default as D } from "./assets/line-icons/icons/bulb2.js";
17
17
  import { default as y } from "./assets/line-icons/icons/calendar.js";
18
18
  import { default as B } from "./assets/line-icons/icons/check.js";
19
19
  import { default as U } from "./assets/line-icons/icons/check2.js";
@@ -39,8 +39,8 @@ import { default as Pe } from "./assets/line-icons/icons/exclamation.js";
39
39
  import { default as he } from "./assets/line-icons/icons/hand.js";
40
40
  import { default as Le } from "./assets/line-icons/icons/help.js";
41
41
  import { default as Ne } from "./assets/line-icons/icons/highlighter.js";
42
- import { default as Re } from "./assets/line-icons/icons/home.js";
43
- import { default as He } from "./assets/line-icons/icons/image.js";
42
+ import { default as Oe } from "./assets/line-icons/icons/home.js";
43
+ import { default as De } from "./assets/line-icons/icons/image.js";
44
44
  import { default as ye } from "./assets/line-icons/icons/info.js";
45
45
  import { default as Be } from "./assets/line-icons/icons/info2.js";
46
46
  import { default as Ue } from "./assets/line-icons/icons/left.js";
@@ -65,8 +65,8 @@ import { default as Ao } from "./assets/line-icons/icons/question.js";
65
65
  import { default as _o } from "./assets/line-icons/icons/question-letter.js";
66
66
  import { default as ko } from "./assets/line-icons/icons/redo.js";
67
67
  import { default as Mo } from "./assets/line-icons/icons/right.js";
68
- import { default as Oo } from "./assets/line-icons/icons/ruler.js";
69
- import { default as Do } from "./assets/line-icons/icons/search.js";
68
+ import { default as Ho } from "./assets/line-icons/icons/ruler.js";
69
+ import { default as Ro } 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 go } from "./assets/line-icons/icons/star.js";
72
72
  import { default as bo } from "./assets/line-icons/icons/skip-colored.js";
@@ -92,8 +92,8 @@ import { default as Pr } from "./assets/line-icons/icons/chevron-down.js";
92
92
  import { default as hr } from "./assets/line-icons/icons/game.js";
93
93
  import { default as Lr } from "./assets/line-icons/icons/tutoring.js";
94
94
  import { default as Nr } from "./assets/line-icons/icons/chat.js";
95
- import { default as Rr } from "./assets/line-icons/icons/cuemath-logo.js";
96
- import { default as Hr } from "./assets/line-icons/icons/next2.js";
95
+ import { default as Or } from "./assets/line-icons/icons/cuemath-logo.js";
96
+ import { default as Dr } from "./assets/line-icons/icons/next2.js";
97
97
  import { AutoPlayPermissionProvider as yr } from "./features/hooks/use-auto-play-permission/use-auto-play-permission-context-provider.js";
98
98
  import { default as Br } from "./features/hooks/use-zoom-disable.js";
99
99
  import { default as Ur } from "./features/hooks/use-force-reload.js";
@@ -119,8 +119,8 @@ import { default as Pt } from "./features/ui/inputs/cascading-select-input/casca
119
119
  import { default as ht } from "./features/ui/inputs/num-range-input/num-range-input.js";
120
120
  import { default as Lt } from "./features/ui/inputs/percentile-input/percentile-input.js";
121
121
  import { default as Nt } from "./features/ui/selection-cards/selection-cards.js";
122
- import { default as Rt } from "./features/ui/layout/flex-view.js";
123
- import { default as Ht } from "./features/ui/loader/app-loader/app-loader.js";
122
+ import { default as Ot } from "./features/ui/layout/flex-view.js";
123
+ import { default as Dt } from "./features/ui/loader/app-loader/app-loader.js";
124
124
  import { CircularLoader as yt } from "./features/ui/loader/circular-loader/circular-loader.js";
125
125
  import { default as Bt } from "./features/ui/radio-cards/radio-cards.js";
126
126
  import { default as Ut } from "./features/ui/section-list/section-list.js";
@@ -145,8 +145,8 @@ import { default as Aa } from "./features/blockers/multi-tab-blocker/use-is-tab-
145
145
  import { default as _a } from "./features/blockers/multi-tab-blocker/multi-tab-blocker.js";
146
146
  import { default as ka } from "./features/chapters/chapter/chapter.js";
147
147
  import { default as Ma } from "./features/chapters/chapters-list/chapters-list.js";
148
- import { default as Oa } from "./features/chapters/lpar-chapter/lpar-chapter.js";
149
- import { default as Da } from "./features/chapters/lpar-milestone-chapter/lpar-milestone-chapter.js";
148
+ import { default as Ha } from "./features/chapters/lpar-chapter/lpar-chapter.js";
149
+ import { default as Ra } from "./features/chapters/lpar-milestone-chapter/lpar-milestone-chapter.js";
150
150
  import { default as Ga } from "./features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-summary/sat-sheet-summary.js";
151
151
  import { checkIfPPTNodeType as ga } from "./features/chapters/lpar-chapter/utils/index.js";
152
152
  import { default as ba } from "./features/chapters-v2/chapter-details/chapter-details.js";
@@ -171,8 +171,8 @@ import { GameLauncher as Cf } from "./features/circle-games/game-launcher/game-l
171
171
  import { useGetCircleHomeDetailsDal as Pf } from "./features/circle-games/game-launcher/dal/use-get-circle-home-details-dal/use-get-circle-home-details-dal.js";
172
172
  import { usePostUpdateCircleJourneyDal as hf } from "./features/circle-games/game-launcher/dal/use-post-update-circle-journey-dal/use-post-update-circle-journey-dal.js";
173
173
  import { Leaderboard as Lf } from "./features/circle-games/leaderboard/leaderboard.js";
174
- import { BackgroundImage as Nf, CircularSteps as Of } from "./features/circle-games/sign-up/comp/circular-steps/circular-steps.js";
175
- import { SplashScreen as Df } from "./features/circle-games/sign-up/comp/splash-screen/splash-screen.js";
174
+ import { BackgroundImage as Nf, CircularSteps as Hf } from "./features/circle-games/sign-up/comp/circular-steps/circular-steps.js";
175
+ import { SplashScreen as Rf } from "./features/circle-games/sign-up/comp/splash-screen/splash-screen.js";
176
176
  import { SignUp as Gf } from "./features/circle-games/sign-up/sign-up.js";
177
177
  import { default as gf } from "./features/cue-canvas/cue-canvas-provider.js";
178
178
  import { default as bf } from "./features/cue-canvas/toolbar/toolbar.js";
@@ -198,8 +198,8 @@ import { default as Ps } from "./features/milestone/create/comps/confirmation-mo
198
198
  import { default as hs } from "./features/milestone/create/comps/confirmation-modals/chapter-clearance-confirmation.js";
199
199
  import { default as Ls } from "./features/milestone/create/milestone-create-container.js";
200
200
  import { default as Ns } from "./features/milestone/edit/goal-drafts/goal-draft-edit-container.js";
201
- import { default as Rs } from "./features/milestone/outcome/milestone-outcome-container.js";
202
- import { default as Hs } from "./features/milestone/outcome/comps/achievement/reason-submit-modal.js";
201
+ import { default as Os } from "./features/milestone/outcome/milestone-outcome-container.js";
202
+ import { default as Ds } from "./features/milestone/outcome/comps/achievement/reason-submit-modal.js";
203
203
  import { default as ys } from "./features/milestone/outcome/comps/achievement/share-instructions-modal.js";
204
204
  import { default as Bs } from "./features/milestone/edit/comps/edit-milestone-modal/index.js";
205
205
  import { default as Us } from "./features/milestone/edit/goal-edit-container.js";
@@ -222,8 +222,8 @@ import { default as Cl } from "./features/sheet-tools/desmos-calculator/desmos-c
222
222
  import { default as Pl } from "./features/sheet-tools/tool-header/tool-header.js";
223
223
  import { default as hl } from "./features/sheets/sheets-list/sheets-list.js";
224
224
  import { default as Ll } from "./features/sheets/reference-sheet/reference-sheet.js";
225
- import { isV3Worksheet as Nl, isV3WorksheetAttempt as Ol } from "./features/sheets/utils/is-v3-worksheet.js";
226
- import { COMPLETED_SHEET_STATE as Dl, NODE_LABELS as Hl, NODE_SUB_GROUP as Gl, NODE_TYPE as yl, PYTHON_NODE_TYPES as gl, REWARDS_LIST as Bl, SHEET_ACTIONS as bl, SHEET_ATTEMPT_LOCATION as Ul, SHEET_ATTEMPT_LOCATION_MAP as vl, SHEET_ATTEMPT_STATE as Wl, SHEET_DATA_TYPE as Vl, SHEET_STATE as wl } from "./features/sheets/constants/sheet.js";
225
+ import { isV3Worksheet as Nl, isV3WorksheetAttempt as Hl } from "./features/sheets/utils/is-v3-worksheet.js";
226
+ import { COMPLETED_SHEET_STATE as Rl, NODE_LABELS as Dl, NODE_SUB_GROUP as Gl, NODE_TYPE as yl, PYTHON_NODE_TYPES as gl, REWARDS_LIST as Bl, SHEET_ACTIONS as bl, SHEET_ATTEMPT_LOCATION as Ul, SHEET_ATTEMPT_LOCATION_MAP as vl, SHEET_ATTEMPT_STATE as Wl, SHEET_DATA_TYPE as Vl, SHEET_STATE as wl } from "./features/sheets/constants/sheet.js";
227
227
  import { default as Yl } from "./features/student-details/student-details.js";
228
228
  import { default as Fl } from "./features/utils/load-script.js";
229
229
  import { ACTION_BAR_HEIGHT as jl, QUESTIONS_GAP as zl, QUESTION_WIDTH as Zl, TOP_NAVIGATION_HEIGHT as ql } from "./features/worksheet/worksheet/constants.js";
@@ -237,14 +237,16 @@ import { default as xp } from "./features/worksheet/learnosity-preloader/use-is-
237
237
  import { default as np } from "./features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js";
238
238
  import { default as Ip } from "./features/maintenance/maintenance.js";
239
239
  import { default as Tp } from "./features/recent-chapters/recent-chapters.js";
240
+ import { default as Ep } from "./features/homework/hw-card-list/hw-card-list.js";
241
+ import { invalidateHomeworks as Ap } from "./features/homework/hw-card-list/api/get-homeworks.js";
240
242
  export {
241
243
  Xs as ACHIEVEMENT_ACTIONS,
242
244
  Wr as AccordionSection,
243
- Hs as AchievementNotShareReasonModal,
245
+ Ds as AchievementNotShareReasonModal,
244
246
  ys as AchievementShareInstructionModal,
245
247
  d as AlarmIcon,
246
248
  c as AlertIcon,
247
- Ht as AppLoader,
249
+ Dt as AppLoader,
248
250
  at as ArcButton,
249
251
  wr as ArrowTooltip,
250
252
  yr as AutoPlayPermissionProvider,
@@ -258,12 +260,12 @@ export {
258
260
  P as BookClosedIcon,
259
261
  h as BookIcon,
260
262
  N as BookmarkIcon,
261
- H as Bulb2Icon,
262
- R as BulbIcon,
263
+ D as Bulb2Icon,
264
+ O as BulbIcon,
263
265
  Zr as Button,
264
266
  Sf as CIRCLE_ACTION_IDS,
265
267
  If as CIRCLE_ONBOARDING_ANALYTICS_STEPS,
266
- Dl as COMPLETED_SHEET_STATE,
268
+ Rl as COMPLETED_SHEET_STATE,
267
269
  y as CalendarIcon,
268
270
  Yt as Callout,
269
271
  Pt as CascadingSelectInput,
@@ -281,7 +283,7 @@ export {
281
283
  Sr as ChevronRightIcon,
282
284
  Ja as CircleSoundKey,
283
285
  yt as CircularLoader,
284
- Of as CircularSteps,
286
+ Hf as CircularSteps,
285
287
  Xr as Clickable,
286
288
  W as ClipboardIcon,
287
289
  Y as Clock2Icon,
@@ -296,7 +298,7 @@ export {
296
298
  bf as CueCanvasController,
297
299
  gf as CueCanvasProvider,
298
300
  X as CueRocket,
299
- Rr as CuemathLogo,
301
+ Or as CuemathLogo,
300
302
  ee as DartIcon,
301
303
  re as DashArrowIcon,
302
304
  Cl as DesmosCalculator,
@@ -320,7 +322,7 @@ export {
320
322
  ss as ExtraPractice,
321
323
  Ce as Eye2Icon,
322
324
  Se as EyeIcon,
323
- Rt as FlexView,
325
+ Ot as FlexView,
324
326
  Va as GAME_LAUNCHER_ASSET_PADDING,
325
327
  Qa as GAME_LAUNCHER_SIZE,
326
328
  hr as GameIcon,
@@ -333,20 +335,21 @@ export {
333
335
  he as HandIcon,
334
336
  Le as HelpIcon,
335
337
  Ne as HighlighterIcon,
336
- Re as HomeIcon,
338
+ Oe as HomeIcon,
339
+ Ep as HomeworkCardList,
337
340
  s as ILLUSTRATIONS,
338
341
  p as IMAGES,
339
342
  nf as IStatsToAwardErrorCode,
340
343
  et as IconButton,
341
- He as ImageIcon,
344
+ De as ImageIcon,
342
345
  is as IndicatorType,
343
346
  Be as Info2Icon,
344
347
  ye as InfoIcon,
345
348
  us as JOURNEY_ID_STUDENT,
346
349
  cs as JourneyProvider,
347
350
  u as LOTTIE,
348
- Oa as LPARChapter,
349
- Da as LPARMilestoneChapter,
351
+ Ha as LPARChapter,
352
+ Ra as LPARMilestoneChapter,
350
353
  Lf as Leaderboard,
351
354
  mp as LearnosityPreloader,
352
355
  Ue as LeftIcon,
@@ -357,7 +360,7 @@ export {
357
360
  Ls as MilestoneCreate,
358
361
  Ws as MilestoneEdit,
359
362
  ws as MilestoneList,
360
- Rs as MilestoneOutcome,
363
+ Os as MilestoneOutcome,
361
364
  Fs as MilestoneStart,
362
365
  Fe as Minus2Icon,
363
366
  Ye as MinusIcon,
@@ -365,10 +368,10 @@ export {
365
368
  Ze as Mobile,
366
369
  Xe as MoreVerticalIcon,
367
370
  _a as MultiTabBlocker,
368
- Hl as NODE_LABELS,
371
+ Dl as NODE_LABELS,
369
372
  Gl as NODE_SUB_GROUP,
370
373
  yl as NODE_TYPE,
371
- Hr as Next2Icon,
374
+ Dr as Next2Icon,
372
375
  eo as NextIcon,
373
376
  jr as Nudge,
374
377
  ht as NumRangeInput,
@@ -401,7 +404,7 @@ export {
401
404
  Ll as ReferenceSheet,
402
405
  ul as RemotePeerPointer,
403
406
  Mo as RightIcon,
404
- Oo as RulerIcon,
407
+ Ho as RulerIcon,
405
408
  Ga as SATSheetSummary,
406
409
  bl as SHEET_ACTIONS,
407
410
  Ul as SHEET_ATTEMPT_LOCATION,
@@ -411,7 +414,7 @@ export {
411
414
  wl as SHEET_STATE,
412
415
  $s as STAGES,
413
416
  nr as ScribbleIcon,
414
- Do as SearchIcon,
417
+ Ro as SearchIcon,
415
418
  it as SearchableSelectInput,
416
419
  Ut as SectionList,
417
420
  ct as SelectInput,
@@ -426,7 +429,7 @@ export {
426
429
  Vo as Skip2Icon,
427
430
  bo as SkipColoredIcon,
428
431
  vo as SkipIcon,
429
- Df as SplashScreen,
432
+ Rf as SplashScreen,
430
433
  Qo as Star2Icon,
431
434
  go as StarIcon,
432
435
  Ko as StatusIcon,
@@ -469,12 +472,13 @@ export {
469
472
  ga as checkIfPPTNodeType,
470
473
  $t as getTheme,
471
474
  va as invalidateGetChapterDetails,
475
+ Ap as invalidateHomeworks,
472
476
  ll as invalidateMilestoneResources,
473
477
  ol as invalidateMilestonesData,
474
478
  al as invalidateTestHelpData,
475
479
  $l as isOkayTypeQuestion,
476
480
  Nl as isV3Worksheet,
477
- Ol as isV3WorksheetAttempt,
481
+ Hl as isV3WorksheetAttempt,
478
482
  Fl as loadScript,
479
483
  ps as useAutoPlayPermission,
480
484
  Vf as useCanvasSyncBroker,
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,17 @@
1
+ import { differenceInCalendarDays as g } from "./differenceInCalendarDays.js";
2
+ import { toDate as l } from "./toDate.js";
3
+ function D(e, n) {
4
+ const s = l(e), t = l(n), o = u(s, t), r = Math.abs(g(s, t));
5
+ s.setDate(s.getDate() - o * r);
6
+ const i = +(u(s, t) === -o), c = o * (r - i);
7
+ return c === 0 ? 0 : c;
8
+ }
9
+ function u(e, n) {
10
+ const s = e.getFullYear() - n.getFullYear() || e.getMonth() - n.getMonth() || e.getDate() - n.getDate() || e.getHours() - n.getHours() || e.getMinutes() - n.getMinutes() || e.getSeconds() - n.getSeconds() || e.getMilliseconds() - n.getMilliseconds();
11
+ return s < 0 ? -1 : s > 0 ? 1 : s;
12
+ }
13
+ export {
14
+ D as default,
15
+ D as differenceInDays
16
+ };
17
+ //# sourceMappingURL=differenceInDays.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"differenceInDays.js","sources":["../../../node_modules/date-fns/differenceInDays.mjs"],"sourcesContent":["import { differenceInCalendarDays } from \"./differenceInCalendarDays.mjs\";\nimport { toDate } from \"./toDate.mjs\";\n\n/**\n * @name differenceInDays\n * @category Day Helpers\n * @summary Get the number of full days between the given dates.\n *\n * @description\n * Get the number of full day periods between two dates. Fractional days are\n * truncated towards zero.\n *\n * One \"full day\" is the distance between a local time in one day to the same\n * local time on the next or previous day. A full day can sometimes be less than\n * or more than 24 hours if a daylight savings change happens between two dates.\n *\n * To ignore DST and only measure exact 24-hour periods, use this instead:\n * `Math.trunc(differenceInHours(dateLeft, dateRight)/24)|0`.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param dateLeft - The later date\n * @param dateRight - The earlier date\n *\n * @returns The number of full days according to the local timezone\n *\n * @example\n * // How many full days are between\n * // 2 July 2011 23:00:00 and 2 July 2012 00:00:00?\n * const result = differenceInDays(\n * new Date(2012, 6, 2, 0, 0),\n * new Date(2011, 6, 2, 23, 0)\n * )\n * //=> 365\n *\n * @example\n * // How many full days are between\n * // 2 July 2011 23:59:00 and 3 July 2011 00:01:00?\n * const result = differenceInDays(\n * new Date(2011, 6, 3, 0, 1),\n * new Date(2011, 6, 2, 23, 59)\n * )\n * //=> 0\n *\n * @example\n * // How many full days are between\n * // 1 March 2020 0:00 and 1 June 2020 0:00 ?\n * // Note: because local time is used, the\n * // result will always be 92 days, even in\n * // time zones where DST starts and the\n * // period has only 92*24-1 hours.\n * const result = differenceInDays(\n * new Date(2020, 5, 1),\n * new Date(2020, 2, 1)\n * )\n * //=> 92\n */\nexport function differenceInDays(dateLeft, dateRight) {\n const _dateLeft = toDate(dateLeft);\n const _dateRight = toDate(dateRight);\n\n const sign = compareLocalAsc(_dateLeft, _dateRight);\n const difference = Math.abs(differenceInCalendarDays(_dateLeft, _dateRight));\n\n _dateLeft.setDate(_dateLeft.getDate() - sign * difference);\n\n // Math.abs(diff in full days - diff in calendar days) === 1 if last calendar day is not full\n // If so, result must be decreased by 1 in absolute value\n const isLastDayNotFull = Number(\n compareLocalAsc(_dateLeft, _dateRight) === -sign,\n );\n const result = sign * (difference - isLastDayNotFull);\n // Prevent negative zero\n return result === 0 ? 0 : result;\n}\n\n// Like `compareAsc` but uses local time not UTC, which is needed\n// for accurate equality comparisons of UTC timestamps that end up\n// having the same representation in local time, e.g. one hour before\n// DST ends vs. the instant that DST ends.\nfunction compareLocalAsc(dateLeft, dateRight) {\n const diff =\n dateLeft.getFullYear() - dateRight.getFullYear() ||\n dateLeft.getMonth() - dateRight.getMonth() ||\n dateLeft.getDate() - dateRight.getDate() ||\n dateLeft.getHours() - dateRight.getHours() ||\n dateLeft.getMinutes() - dateRight.getMinutes() ||\n dateLeft.getSeconds() - dateRight.getSeconds() ||\n dateLeft.getMilliseconds() - dateRight.getMilliseconds();\n\n if (diff < 0) {\n return -1;\n } else if (diff > 0) {\n return 1;\n // Return 0 if diff is 0; return NaN if diff is NaN\n } else {\n return diff;\n }\n}\n\n// Fallback for modularized imports:\nexport default differenceInDays;\n"],"names":["differenceInDays","dateLeft","dateRight","_dateLeft","toDate","_dateRight","sign","compareLocalAsc","difference","differenceInCalendarDays","isLastDayNotFull","result","diff"],"mappings":";;AAyDO,SAASA,EAAiBC,GAAUC,GAAW;AACpD,QAAMC,IAAYC,EAAOH,CAAQ,GAC3BI,IAAaD,EAAOF,CAAS,GAE7BI,IAAOC,EAAgBJ,GAAWE,CAAU,GAC5CG,IAAa,KAAK,IAAIC,EAAyBN,GAAWE,CAAU,CAAC;AAE3E,EAAAF,EAAU,QAAQA,EAAU,QAAO,IAAKG,IAAOE,CAAU;AAIzD,QAAME,IAAmB,EACvBH,EAAgBJ,GAAWE,CAAU,MAAM,CAACC,IAExCK,IAASL,KAAQE,IAAaE;AAEpC,SAAOC,MAAW,IAAI,IAAIA;AAC5B;AAMA,SAASJ,EAAgBN,GAAUC,GAAW;AAC5C,QAAMU,IACJX,EAAS,YAAW,IAAKC,EAAU,YAAa,KAChDD,EAAS,SAAQ,IAAKC,EAAU,SAAU,KAC1CD,EAAS,QAAO,IAAKC,EAAU,QAAS,KACxCD,EAAS,SAAQ,IAAKC,EAAU,SAAU,KAC1CD,EAAS,WAAU,IAAKC,EAAU,WAAY,KAC9CD,EAAS,WAAU,IAAKC,EAAU,WAAY,KAC9CD,EAAS,gBAAe,IAAKC,EAAU,gBAAe;AAExD,SAAIU,IAAO,IACF,KACEA,IAAO,IACT,IAGAA;AAEX;","x_google_ignoreList":[0]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cuemath/leap",
3
- "version": "2.8.61-as1",
3
+ "version": "2.8.61-as11",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"