@cuemath/leap 3.3.33-as1 → 3.3.34-as1

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 (52) hide show
  1. package/dist/assets/illustrations/illustrations.js +1 -1
  2. package/dist/assets/illustrations/illustrations.js.map +1 -1
  3. package/dist/assets/lottie/lottie.js +13 -0
  4. package/dist/assets/lottie/lottie.js.map +1 -1
  5. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-styled.js +4 -4
  6. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-styled.js.map +1 -1
  7. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message.js +5 -5
  8. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message.js.map +1 -1
  9. package/dist/features/ui/constants/z-index.js +2 -5
  10. package/dist/features/ui/constants/z-index.js.map +1 -1
  11. package/dist/features/ui/timers/countdown-timer/countdown-timer.js +62 -54
  12. package/dist/features/ui/timers/countdown-timer/countdown-timer.js.map +1 -1
  13. package/dist/features/utils/utils.js +18 -18
  14. package/dist/features/utils/utils.js.map +1 -1
  15. package/dist/index.d.ts +44 -60
  16. package/dist/index.js +545 -553
  17. package/dist/index.js.map +1 -1
  18. package/dist/static/confetti_1.06a32a41.json +1 -0
  19. package/dist/static/confetti_2.f29d21c7.json +1 -0
  20. package/dist/static/confetti_3.68582e93.json +1 -0
  21. package/dist/static/goal-mastered.a074a44c.json +5193 -0
  22. package/dist/static/sheet_completed_advanced.a429c1dc.json +2118 -0
  23. package/dist/static/sheet_completed_assessment.2cf635e3.json +1 -0
  24. package/dist/static/sheet_completed_learning.105c40ea.json +1 -0
  25. package/dist/static/sheet_completed_practice.3a88b0d2.json +1 -0
  26. package/dist/static/stones-cosa.5ca4afe4.json +1 -0
  27. package/dist/static/stones-doca.4dab1336.json +1 -0
  28. package/dist/static/stones-hexo.30bd8d1b.json +1 -0
  29. package/dist/static/stones-octo.b20cb1d8.json +1157 -0
  30. package/dist/static/stones-ttro.3da50ef4.json +1 -0
  31. package/package.json +1 -1
  32. package/dist/features/hooks/use-visibility-change.js +0 -12
  33. package/dist/features/hooks/use-visibility-change.js.map +0 -1
  34. package/dist/features/ui/timers/class-time/animate.js +0 -89
  35. package/dist/features/ui/timers/class-time/animate.js.map +0 -1
  36. package/dist/features/ui/timers/class-time/animations/open-close.js +0 -93
  37. package/dist/features/ui/timers/class-time/animations/open-close.js.map +0 -1
  38. package/dist/features/ui/timers/class-time/animations/ripple.js +0 -44
  39. package/dist/features/ui/timers/class-time/animations/ripple.js.map +0 -1
  40. package/dist/features/ui/timers/class-time/class-time-animation-wrapper.js +0 -28
  41. package/dist/features/ui/timers/class-time/class-time-animation-wrapper.js.map +0 -1
  42. package/dist/features/ui/timers/class-time/class-time.js +0 -34
  43. package/dist/features/ui/timers/class-time/class-time.js.map +0 -1
  44. package/dist/features/ui/timers/class-time/constants.js +0 -26
  45. package/dist/features/ui/timers/class-time/constants.js.map +0 -1
  46. package/dist/features/ui/timers/class-time/use-class-time-logic.js +0 -57
  47. package/dist/features/ui/timers/class-time/use-class-time-logic.js.map +0 -1
  48. package/dist/features/ui/timers/clock/clock.js +0 -25
  49. package/dist/features/ui/timers/clock/clock.js.map +0 -1
  50. package/dist/features/ui/timers/timer/timer.js +0 -29
  51. package/dist/features/ui/timers/timer/timer.js.map +0 -1
  52. package/dist/static/trophy.a8ea85ef.json +0 -6813
package/dist/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import type { AnimationEventCallback } from 'lottie-web';
2
+ import type { AnimationEventName } from 'lottie-web';
1
3
  import type { ButtonHTMLAttributes } from 'react';
2
4
  import type { Channel } from '@cuemath/cue-message-broker';
3
5
  import { ChannelStatus } from '@cuemath/cue-message-broker';
@@ -367,14 +369,10 @@ export declare const CircularStepWrapper: NamedExoticComponent<ICircularStepWrap
367
369
 
368
370
  export declare const ClaimUserAccount: NamedExoticComponent<IClaimUserAccountProps>;
369
371
 
370
- export declare const ClassTime: MemoExoticComponent<(props: IClassTimeProps) => JSX.Element | null>;
371
-
372
372
  export declare const Clickable: React_2.FC<IClickableProps>;
373
373
 
374
374
  export declare const ClipboardIcon: React.FC<React.SVGProps<SVGSVGElement>>;
375
375
 
376
- export declare const Clock: MemoExoticComponent<({ completionTime, onComplete, startedOn, textVariant, textColor, }: IClockProps) => JSX.Element | null>;
377
-
378
376
  export declare const Clock2Icon: React.FC<React.SVGProps<SVGSVGElement>>;
379
377
 
380
378
  export declare const ClockIcon: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -673,8 +671,6 @@ declare interface FlexViewProps {
673
671
  $flex?: number;
674
672
  }
675
673
 
676
- export declare const formatTimeInHHMMSS: (seconds: number, includeHours?: boolean) => string;
677
-
678
674
  export declare interface Game extends BaseProject {
679
675
  isPlayed: boolean;
680
676
  }
@@ -1410,25 +1406,6 @@ export declare interface IClassTimeAlertConfig {
1410
1406
  onComplete: () => void;
1411
1407
  }
1412
1408
 
1413
- declare interface IClassTimeProps {
1414
- /** Class duration in seconds */
1415
- classDuration: number;
1416
- /** When the class started */
1417
- classStartedTime: Date;
1418
- /** Extended time in minutes */
1419
- extendedTime?: number;
1420
- /** Whether class is ongoing */
1421
- ongoing?: boolean;
1422
- /** Callback when timer completes */
1423
- onComplete?: () => void;
1424
- /** Callback when extend class is requested */
1425
- onExtendClass?: () => void;
1426
- /** Callback triggered when extended time period starts updating reducer to show/hide end class button in demo logout dropdown */
1427
- onExtendedTimeStart?: () => void;
1428
- /** Whether to show the extend class icon (default: false) there is conditions for teacher where we are also not showing this icon */
1429
- showExtendIcon?: boolean;
1430
- }
1431
-
1432
1409
  export declare interface IClickableAnalyticsProps {
1433
1410
  label?: string;
1434
1411
  analyticsLabel?: string;
@@ -1442,14 +1419,6 @@ declare interface IClickableProps extends IClickableAnalyticsProps {
1442
1419
  children: React_2.ReactNode;
1443
1420
  }
1444
1421
 
1445
- declare interface IClockProps {
1446
- startedOn?: Date;
1447
- completionTime?: number | null;
1448
- onComplete?: () => void;
1449
- textVariant?: TTextVariants;
1450
- textColor?: TColorNames;
1451
- }
1452
-
1453
1422
  declare interface ICoachMarkCompletion {
1454
1423
  CIRCLE_ACTIVITIES_INTRO_JOURNEY: boolean;
1455
1424
  CIRCLE_LEADERBOARD_INTRO_JOURNEY: boolean;
@@ -1504,15 +1473,11 @@ declare interface IContextMenuProps {
1504
1473
  }
1505
1474
 
1506
1475
  declare interface ICountdownTimer {
1507
- renderAs: 'circular-progressive-bar' | 'default';
1508
1476
  hideDigits: boolean;
1509
1477
  onTimerComplete?: () => void;
1510
1478
  timeRemaining: number;
1511
- background: 'GREEN_1' | 'ORANGE_1' | 'GREY_1';
1512
- duration?: number;
1513
- textVariant?: TTextVariants;
1514
- textColor?: TColorNames;
1515
- iconColor?: 'YELLOW_3' | 'ORANGE_3' | 'BLACK' | 'WHITE';
1479
+ duration: number;
1480
+ theme: 'GREEN_1' | 'ORANGE_1';
1516
1481
  }
1517
1482
 
1518
1483
  export declare interface ICreateUserPayloadDal {
@@ -2434,9 +2399,9 @@ export declare const ILLUSTRATIONS: {
2434
2399
  PUZZLE_PATTERN_PURPLE: string;
2435
2400
  PUZZLE_PATTERN_YELLOW: string;
2436
2401
  PUZZLE_STUDENT: string;
2437
- RARE: string;
2438
2402
  RADIAL_GRADIENT_BG: string;
2439
2403
  RADIAL_GRADIENT_BG_2: string;
2404
+ RARE: string;
2440
2405
  REFUND_POLICY: string;
2441
2406
  REFUND_POLICY_WITH_HEADPHONE: string;
2442
2407
  REPORT_404: string;
@@ -2482,6 +2447,30 @@ declare interface ILogger {
2482
2447
  (eventName: string, data?: Record<string, unknown>): void;
2483
2448
  }
2484
2449
 
2450
+ declare interface ILottieAnimationProps {
2451
+ src: string;
2452
+ width?: string | number;
2453
+ height?: string | number;
2454
+ settings?: Record<string, string | number | boolean | number[] | undefined | unknown>;
2455
+ eventListener?: {
2456
+ name: AnimationEventName;
2457
+ callback: AnimationEventCallback;
2458
+ };
2459
+ onRender?: () => void;
2460
+ onError?: () => void;
2461
+ animateOnIntersect?: boolean;
2462
+ }
2463
+
2464
+ declare interface ILottieAnimationRef {
2465
+ playSegments: (segments: [number, number], forceFlag?: boolean) => void;
2466
+ play: () => void;
2467
+ stop: () => void;
2468
+ setLoop: (loop: boolean) => void;
2469
+ goToAndStop(value: number, isFrame?: boolean): void;
2470
+ addEventListener: (eventName: string, callback: () => void) => void;
2471
+ removeEventListener: (eventName: string, callback: () => void) => void;
2472
+ }
2473
+
2485
2474
  declare interface ILPARChapterProps extends ILPARSheetCallbacks {
2486
2475
  userType: TUserTypes;
2487
2476
  chapterData: TLPARChapterData;
@@ -4150,15 +4139,6 @@ declare interface ITimeLeftTimelineProps {
4150
4139
  showRemainingTime?: boolean;
4151
4140
  }
4152
4141
 
4153
- declare interface ITimerProps {
4154
- endTime: number;
4155
- onComplete?: () => void;
4156
- reminder?: number;
4157
- onReminder?: () => void;
4158
- textColor?: TColorNames;
4159
- textVariant?: TTextVariants;
4160
- }
4161
-
4162
4142
  declare interface ITimeStampsResponseModel {
4163
4143
  current: number;
4164
4144
  start_timestamp: number;
@@ -4894,6 +4874,9 @@ export declare const LOTTIE: {
4894
4874
  COLOR_2: string;
4895
4875
  COLOR_3: string;
4896
4876
  COMPETITIVE_ARENA: string;
4877
+ CONFETTI_1: string;
4878
+ CONFETTI_2: string;
4879
+ CONFETTI_3: string;
4897
4880
  COOL: string;
4898
4881
  DART: string;
4899
4882
  DIAMOND: string;
@@ -4912,6 +4895,7 @@ export declare const LOTTIE: {
4912
4895
  FIVE_MIN_CLOCK: string;
4913
4896
  FLYING_DISK: string;
4914
4897
  GIFT: string;
4898
+ GOAL_MASTERED: string;
4915
4899
  GOLD_1: string;
4916
4900
  GOLD_2: string;
4917
4901
  GOLD_3: string;
@@ -4974,6 +4958,10 @@ export declare const LOTTIE: {
4974
4958
  RECAP: string;
4975
4959
  ROCKET: string;
4976
4960
  SEQUENCE_MODE_SEGMENT_LOTTIE: string;
4961
+ SHEET_COMPLETED_ADVANCED: string;
4962
+ SHEET_COMPLETED_ASSESSMENT: string;
4963
+ SHEET_COMPLETED_LEARNING: string;
4964
+ SHEET_COMPLETED_PRACTICE: string;
4977
4965
  SHOVEL: string;
4978
4966
  SILVER_1: string;
4979
4967
  SILVER_2: string;
@@ -4984,6 +4972,11 @@ export declare const LOTTIE: {
4984
4972
  SPLASH_SCREEN: string;
4985
4973
  STAR: string;
4986
4974
  STAR_STRIKE_EMOJI: string;
4975
+ STONES_COSA: string;
4976
+ STONES_DOCA: string;
4977
+ STONES_HEXO: string;
4978
+ STONES_OCTO: string;
4979
+ STONES_TTRO: string;
4987
4980
  STUDENT_AVATAR: string;
4988
4981
  SUBJECTIVE: string;
4989
4982
  SUPER: string;
@@ -5006,6 +4999,8 @@ export declare const LOTTIE: {
5006
4999
  VIDEO: string;
5007
5000
  };
5008
5001
 
5002
+ export declare const LottieAnimation: NamedExoticComponent<ILottieAnimationProps & RefAttributes<ILottieAnimationRef>>;
5003
+
5009
5004
  declare type LottieSettings = Omit<Config, 'src' | 'canvas'>;
5010
5005
 
5011
5006
  export declare const LPARChapter: FC<ILPARChapterProps>;
@@ -5980,8 +5975,6 @@ export declare const TickIcon: React.FC<React.SVGProps<SVGSVGElement>>;
5980
5975
  */
5981
5976
  export declare const TimeLeftTimeline: React_2.FC<ITimeLeftTimelineProps>;
5982
5977
 
5983
- export declare const Timer: MemoExoticComponent<({ endTime, onComplete, onReminder, reminder, textColor, textVariant, }: ITimerProps) => JSX.Element>;
5984
-
5985
5978
  export declare type TInclassChannelMetadata = {
5986
5979
  syncModule?: {
5987
5980
  name: 'MILESTONE_CREATE' | 'MILESTONE_EDIT' | 'MILESTONE_REVIEW';
@@ -7175,12 +7168,6 @@ export declare const useTrialSessionMessageBroker: IUseTrialSessionMessageBroker
7175
7168
 
7176
7169
  export declare const useUIContext: () => UIContextProps;
7177
7170
 
7178
- /**
7179
- * Custom hook to detect visibility change of the document.
7180
- * Returns true if the document is visible, false otherwise.
7181
- */
7182
- export declare const useVisibilityChange: () => boolean;
7183
-
7184
7171
  export declare const useWorksheetLayout: IUseWorksheetLayout;
7185
7172
 
7186
7173
  export declare const useZoomDisable: () => void;
@@ -7281,9 +7268,6 @@ declare const ZINDEX: {
7281
7268
  readonly GOAL_CHAPTER_SHEETS_MENU: 4;
7282
7269
  readonly JOURNEY_OVERLAY: 1000;
7283
7270
  readonly CHAPTER_COMPLETED_LOTTIE: 5;
7284
- readonly EXTEND_CLASS_ANIMATION_1: 24;
7285
- readonly EXTEND_CLASS_ANIMATION_2: 25;
7286
- readonly EXTEND_CLASS_ANIMATION_3: 26;
7287
7271
  readonly WINS_HEADER: 11;
7288
7272
  };
7289
7273