@cuemath/leap 3.2.27 → 3.2.28-m

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 (87) hide show
  1. package/dist/assets/lottie/lottie.js +1 -1
  2. package/dist/assets/lottie/lottie.js.map +1 -1
  3. package/dist/features/analytics-events/whitelist-events.js +15 -17
  4. package/dist/features/analytics-events/whitelist-events.js.map +1 -1
  5. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-constants.js +1 -2
  6. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-constants.js.map +1 -1
  7. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-styled.js +8 -8
  8. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-styled.js.map +1 -1
  9. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message.js +60 -82
  10. package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message.js.map +1 -1
  11. package/dist/features/auth/comps/pill-button/pill-button.js +38 -41
  12. package/dist/features/auth/comps/pill-button/pill-button.js.map +1 -1
  13. package/dist/features/auth/comps/resend-otp/resend-otp.js +14 -18
  14. package/dist/features/auth/comps/resend-otp/resend-otp.js.map +1 -1
  15. package/dist/features/auth/comps/selectable-info-card/selectable-info-card.js +26 -32
  16. package/dist/features/auth/comps/selectable-info-card/selectable-info-card.js.map +1 -1
  17. package/dist/features/auth/pla-signup/signup-options/signup-options.js +35 -42
  18. package/dist/features/auth/pla-signup/signup-options/signup-options.js.map +1 -1
  19. package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-item.js +43 -43
  20. package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-item.js.map +1 -1
  21. package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-utils.js +1 -1
  22. package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-utils.js.map +1 -1
  23. package/dist/features/milestone/create/comps/chapters-selection-step/chapter-selection-step-v2/chapters-list.js +53 -68
  24. package/dist/features/milestone/create/comps/chapters-selection-step/chapter-selection-step-v2/chapters-list.js.map +1 -1
  25. package/dist/features/stickers/sticker-data.js +234 -0
  26. package/dist/features/stickers/sticker-data.js.map +1 -0
  27. package/dist/features/{ui/sticker-grid/sticker-grid-styles.js → stickers/sticker-selector/sticker-selector-styles.js} +23 -31
  28. package/dist/features/stickers/sticker-selector/sticker-selector-styles.js.map +1 -0
  29. package/dist/features/stickers/sticker-selector/sticker-selector.js +39 -0
  30. package/dist/features/stickers/sticker-selector/sticker-selector.js.map +1 -0
  31. package/dist/features/stickers/sticker-selector/sticker.js +56 -0
  32. package/dist/features/stickers/sticker-selector/sticker.js.map +1 -0
  33. package/dist/features/{ui/stickers/stickers-effects.js → stickers/stickers-effects/effects.js} +6 -6
  34. package/dist/features/stickers/stickers-effects/effects.js.map +1 -0
  35. package/dist/features/stickers/stickers-effects/stickers-cache.js +19 -0
  36. package/dist/features/stickers/stickers-effects/stickers-cache.js.map +1 -0
  37. package/dist/features/stickers/stickers-effects/stickers-effects-helper.js +105 -0
  38. package/dist/features/stickers/stickers-effects/stickers-effects-helper.js.map +1 -0
  39. package/dist/features/{ui/stickers/stickers-styled.js → stickers/stickers-effects/stickers-effects-styled.js} +2 -2
  40. package/dist/features/stickers/stickers-effects/stickers-effects-styled.js.map +1 -0
  41. package/dist/features/stickers/stickers-effects/stickers-effects.js +54 -0
  42. package/dist/features/stickers/stickers-effects/stickers-effects.js.map +1 -0
  43. package/dist/features/ui/arrow-tooltip/arrow-tooltip-styled.js +7 -4
  44. package/dist/features/ui/arrow-tooltip/arrow-tooltip-styled.js.map +1 -1
  45. package/dist/features/ui/arrow-tooltip/arrow-tooltip.js +40 -40
  46. package/dist/features/ui/arrow-tooltip/arrow-tooltip.js.map +1 -1
  47. package/dist/features/ui/dot-lottie-animations/dot-lottie-animation.js +88 -75
  48. package/dist/features/ui/dot-lottie-animations/dot-lottie-animation.js.map +1 -1
  49. package/dist/features/ui/lottie-animation/lottie-animation.js +45 -43
  50. package/dist/features/ui/lottie-animation/lottie-animation.js.map +1 -1
  51. package/dist/features/ui/modals/modal-styled.js +39 -8
  52. package/dist/features/ui/modals/modal-styled.js.map +1 -1
  53. package/dist/features/ui/modals/modal.js +31 -31
  54. package/dist/features/ui/modals/modal.js.map +1 -1
  55. package/dist/features/ui/theme/layout.js +3 -3
  56. package/dist/features/ui/theme/layout.js.map +1 -1
  57. package/dist/index.d.ts +80 -62
  58. package/dist/index.js +374 -376
  59. package/dist/index.js.map +1 -1
  60. package/dist/static/animated-avatar.1ad58b1d.json +1 -0
  61. package/dist/static/animated-avatar.69b07505.json +1 -0
  62. package/dist/static/animated-avatar.9c560b46.json +1 -0
  63. package/dist/static/cuemath-app-qr-code.4beefe48.svg +1 -0
  64. package/dist/static/cuemath-app-qr-code.ba6cc09b.svg +1 -0
  65. package/dist/static/cuemath-app-qr-code.d0912fc7.png +0 -0
  66. package/dist/static/otp.2d08f874.json +1 -0
  67. package/dist/static/phone-number.84f55562.json +1 -0
  68. package/dist/static/target-achieved-text.053bd142.json +2830 -0
  69. package/dist/static/user-type-selector-grid-bg.3c9c8ad6.svg +1 -0
  70. package/dist/static/user-type-selector-grid-bg.3ce8142d.svg +1 -0
  71. package/package.json +1 -1
  72. package/dist/features/auth/pla-signup/pla-analytics-events.js +0 -23
  73. package/dist/features/auth/pla-signup/pla-analytics-events.js.map +0 -1
  74. package/dist/features/ui/sticker-grid/sticker-grid-styles.js.map +0 -1
  75. package/dist/features/ui/sticker-grid/sticker-grid.js +0 -24
  76. package/dist/features/ui/sticker-grid/sticker-grid.js.map +0 -1
  77. package/dist/features/ui/sticker-grid/sticker.js +0 -57
  78. package/dist/features/ui/sticker-grid/sticker.js.map +0 -1
  79. package/dist/features/ui/stickers/constants.js +0 -6
  80. package/dist/features/ui/stickers/constants.js.map +0 -1
  81. package/dist/features/ui/stickers/stickers-effects.js.map +0 -1
  82. package/dist/features/ui/stickers/stickers-styled.js.map +0 -1
  83. package/dist/features/ui/stickers/stickers-utils.js +0 -91
  84. package/dist/features/ui/stickers/stickers-utils.js.map +0 -1
  85. package/dist/features/ui/stickers/stickers.js +0 -40
  86. package/dist/features/ui/stickers/stickers.js.map +0 -1
  87. package/dist/static/animated-avatar.c3a0fa98.json +0 -1
package/dist/index.d.ts CHANGED
@@ -4,6 +4,7 @@ import { ChannelStatus } from '@cuemath/cue-message-broker';
4
4
  import { ComponentType } from 'react';
5
5
  import type { Config } from '@lottiefiles/dotlottie-web';
6
6
  import { Context } from 'react';
7
+ import type { Data } from '@lottiefiles/dotlottie-web';
7
8
  import type { DefaultTheme } from 'styled-components';
8
9
  import { DetailedHTMLProps } from 'react';
9
10
  import type { Dispatch } from 'react';
@@ -398,7 +399,7 @@ export declare const DesmosCalculator: FC<IDesmosCalculatorProps>;
398
399
 
399
400
  export declare const DigitalMeter: FC<IDigitalMeterProps>;
400
401
 
401
- export declare const DotLottieAnimation: NamedExoticComponent<ILottieAnimationProps & RefAttributes<ILottieAnimationRef>>;
402
+ export declare const DotLottieAnimation: NamedExoticComponent<IDotLottieAnimationProps & RefAttributes<IDotLottieAnimationRef>>;
402
403
 
403
404
  export declare const DownIcon: React.FC<React.SVGProps<SVGSVGElement>>;
404
405
 
@@ -584,8 +585,6 @@ declare enum GENDER {
584
585
  OTHER = "OTHER"
585
586
  }
586
587
 
587
- export declare const getActiveSATSheet: (sheets: TLPARSheetData[]) => TLPARSheetData | undefined;
588
-
589
588
  declare const getArrowTooltipConfig: IGetArrowTooltipConfig;
590
589
 
591
590
  declare const getButtonConfig: IGetButtonConfig;
@@ -736,17 +735,15 @@ declare interface IAnimatedAvatarMessageProps {
736
735
  message: string;
737
736
  onShowContent: (show: boolean) => void;
738
737
  confirmationFrames: [number, number];
739
- completionFrames?: [number, number];
740
738
  confirmationMessage?: string;
741
739
  isConfirmationVisible?: boolean;
742
740
  ref: React.Ref<IAnimatedAvatarMessageRef>;
743
741
  height?: string | number;
744
- idleFrames?: [number, number];
745
742
  }
746
743
 
747
744
  export declare type IAnimatedAvatarMessageRef = {
748
- fadeOutMessageAndPlayCompletion: (shouldPlayAnimation?: boolean) => Promise<void>;
749
- playConfirmationFrames: (shouldPlayAnimation?: boolean) => Promise<void>;
745
+ fadeOutMessage: () => Promise<void>;
746
+ playConfirmationFrames: () => Promise<void>;
750
747
  };
751
748
 
752
749
  declare interface IAppLoaderProps {
@@ -1454,6 +1451,15 @@ declare interface IDigitalMeterProps {
1454
1451
  actAsTimer?: boolean;
1455
1452
  }
1456
1453
 
1454
+ declare type IDotLottieAnimationProps = XOR<WithSrc, WithData> & SharedProps;
1455
+
1456
+ declare interface IDotLottieAnimationRef {
1457
+ play: () => void;
1458
+ pause: () => void;
1459
+ playSegments: (segments: AnimationSegment) => void;
1460
+ setFrame: (frame: number) => void;
1461
+ }
1462
+
1457
1463
  declare interface IDrawerProps {
1458
1464
  isOpen: boolean;
1459
1465
  onClose?: () => void;
@@ -2258,23 +2264,6 @@ declare interface ILogger {
2258
2264
  (eventName: string, data?: Record<string, unknown>): void;
2259
2265
  }
2260
2266
 
2261
- declare interface ILottieAnimationProps {
2262
- src: string;
2263
- width?: string | number;
2264
- height?: string | number;
2265
- settings?: Partial<LottieSettings>;
2266
- eventListeners?: {
2267
- name: EventType;
2268
- callback: EventListener_2<EventType>;
2269
- }[];
2270
- onRender?: () => void;
2271
- onError?: () => void;
2272
- }
2273
-
2274
- declare interface ILottieAnimationRef {
2275
- playSegments: (segments: AnimationSegment, forceFlag?: boolean) => void;
2276
- }
2277
-
2278
2267
  declare interface ILPARChapterProps extends ILPARSheetCallbacks {
2279
2268
  userType: TUserTypes;
2280
2269
  chapterData: TLPARChapterData;
@@ -2611,7 +2600,7 @@ export declare interface IModal {
2611
2600
  /** Content to display inside the modal */
2612
2601
  element: ReactElement;
2613
2602
  /** Rendering style of the modal */
2614
- renderAs?: 'modal' | 'fullscreen' | 'spotlight' | 'bottom-sheet';
2603
+ renderAs?: 'modal' | 'fullscreen' | 'spotlight' | 'bottom-sheet' | 'fullscreen-transparent';
2615
2604
  /** Whether the modal can be dismissed by clicking outside or ESC key (default: true) */
2616
2605
  isDismissable?: boolean;
2617
2606
  /** Whether the modal requires authentication to view (default: true) */
@@ -2796,7 +2785,7 @@ declare interface IOTPInputProps {
2796
2785
  isBusy?: boolean;
2797
2786
  }
2798
2787
 
2799
- declare interface IOTPResendProps extends IClickableAnalyticsProps {
2788
+ declare interface IOTPResendProps {
2800
2789
  onResendOTP: () => void;
2801
2790
  onResendVoiceOTP?: () => void;
2802
2791
  timerSeconds?: number;
@@ -2843,7 +2832,7 @@ declare interface IPerfectHitsProps {
2843
2832
  value: number;
2844
2833
  }
2845
2834
 
2846
- declare interface IPillButtonProps extends IClickableAnalyticsProps {
2835
+ declare interface IPillButtonProps {
2847
2836
  id: string;
2848
2837
  label: string;
2849
2838
  selected?: boolean;
@@ -3242,7 +3231,7 @@ declare interface ISectionOption<Section = TDefaultSection> {
3242
3231
  data: Section[];
3243
3232
  }
3244
3233
 
3245
- declare interface ISelectableInfoCardProps extends IClickableAnalyticsProps {
3234
+ declare interface ISelectableInfoCardProps {
3246
3235
  id: string;
3247
3236
  title: string;
3248
3237
  description: string;
@@ -3453,14 +3442,22 @@ declare interface IStepperProps {
3453
3442
  currentStep: number;
3454
3443
  }
3455
3444
 
3456
- declare interface IStickerData {
3445
+ export declare interface IStickerData {
3457
3446
  id: string;
3458
3447
  emoji: string;
3459
3448
  lottieUrl?: string;
3460
- name?: string;
3449
+ name: string;
3450
+ }
3451
+
3452
+ export declare interface IStickerProps {
3453
+ emoji: string;
3454
+ lottieUrl?: string;
3455
+ size?: number | string;
3456
+ onClick?: () => void;
3457
+ disabled?: boolean;
3461
3458
  }
3462
3459
 
3463
- declare interface IStickerGridProps {
3460
+ export declare interface IStickerSelectorProps {
3464
3461
  stickers: IStickerData[];
3465
3462
  columns?: number;
3466
3463
  gap?: number;
@@ -3468,6 +3465,13 @@ declare interface IStickerGridProps {
3468
3465
  onStickerClick?: (sticker: IStickerData) => void;
3469
3466
  }
3470
3467
 
3468
+ export declare interface IStickersProps {
3469
+ stickers: string[];
3470
+ effect: TStickerEffects;
3471
+ count: number;
3472
+ duration: number;
3473
+ }
3474
+
3471
3475
  declare interface IStreakIconProps extends React.HTMLProps<HTMLDivElement> {
3472
3476
  value: number;
3473
3477
  blink?: boolean;
@@ -4131,7 +4135,6 @@ export declare interface IWorksheetAttemptModel {
4131
4135
  canvas_data?: Array<IChannelMessage>;
4132
4136
  image_hue?: THueNames | null;
4133
4137
  feedback_comments?: string | null;
4134
- user_block_id?: string | null;
4135
4138
  }
4136
4139
 
4137
4140
  export declare interface IWorksheetBehavior {
@@ -4803,23 +4806,6 @@ export declare const PerfectHits: NamedExoticComponent<IPerfectHitsProps>;
4803
4806
 
4804
4807
  export declare const PillButton: NamedExoticComponent<IPillButtonProps>;
4805
4808
 
4806
- export declare enum PLA_ANALYTICS_EVENTS {
4807
- START_SIGNUP_CTA_CLICKED = "start_signup_cta_clicked",
4808
- ECNA_STEP_VIEWED = "ecna_step_viewed",
4809
- ECNA_RESPONSE_RECORDED_DEBUG = "ecna_response_recorded_debug",
4810
- PARENT_SIGNUP_CTA_CLICKED = "parent_signup_cta_clicked",
4811
- PARENT_SIGNUP_SUCCESSFUL = "parent_signup_successful",
4812
- PARENT_SIGNUP_FAILED = "parent_signup_failed",
4813
- STUDENT_SIGNUP_SUCCESSFUL = "signup_successful",
4814
- STUDENT_SIGNUP_FAILED = "signup_failed",
4815
- SIGNUP_OTP_ENTERED = "signup_otp_entered",
4816
- SIGNUP_OTP_VERIFIED = "signup_otp_verified",
4817
- SIGNUP_OTP_FAILED = "signup_otp_failed",
4818
- SLOTS_SHOWN = "slots_shown",
4819
- SLOT_DATE_SELECTED = "slot_date_selected",
4820
- SLOT_TIME_SELECTED = "slot_time_selected"
4821
- }
4822
-
4823
4809
  /**
4824
4810
  ** Global/Platform specific events that needs to be tracked goes here
4825
4811
  ** Naming convention needs to be snake_case
@@ -5007,7 +4993,7 @@ declare enum SECTION_CODE {
5007
4993
 
5008
4994
  export declare const SectionList: <Section extends string | number | TDefaultSection>(props: ISectionList<Section>) => ReactElement;
5009
4995
 
5010
- export declare const SelectableInfoCard: MemoExoticComponent<({ id, title, description, icon, selected, onClick, analyticsLabel, analyticsProps, }: ISelectableInfoCardProps) => JSX.Element>;
4996
+ export declare const SelectableInfoCard: MemoExoticComponent<({ id, title, description, icon, selected, onClick, }: ISelectableInfoCardProps) => JSX.Element>;
5011
4997
 
5012
4998
  export declare const SelectInput: <IDType extends string | number>(props: ISelectInputProps<IDType>) => ReactElement;
5013
4999
 
@@ -5019,6 +5005,18 @@ export declare const SENTRY_IGNORED_ERRORS: Array<string | RegExp>;
5019
5005
 
5020
5006
  export declare const Separator: React_2.FC<ISeparatorProps>;
5021
5007
 
5008
+ declare type SharedProps = {
5009
+ width?: string | number;
5010
+ height?: string | number;
5011
+ settings?: Partial<LottieSettings>;
5012
+ eventListeners?: {
5013
+ name: EventType;
5014
+ callback: EventListener_2<EventType>;
5015
+ }[];
5016
+ onRender?: () => void;
5017
+ onError?: () => void;
5018
+ };
5019
+
5022
5020
  export declare const SHEET_ACTIONS: {
5023
5021
  readonly START: "START";
5024
5022
  readonly RESUME: "RESUME";
@@ -5125,22 +5123,15 @@ declare const STICKER_BADGE: {
5125
5123
  AWESOME: string;
5126
5124
  };
5127
5125
 
5128
- declare type StickerEffect = 'burst_from_edges' | 'pop_expand' | 'float_up' | 'fall_down';
5126
+ export declare const stickerData: IStickerData[];
5129
5127
 
5130
5128
  export declare const StickerFilledIcon: React.FC<React.SVGProps<SVGSVGElement>>;
5131
5129
 
5132
5130
  export declare const StickerIcon: React.FC<React.SVGProps<SVGSVGElement>>;
5133
5131
 
5134
- export declare const Stickers: React_2.NamedExoticComponent<StickersProps>;
5135
-
5136
- declare interface StickersProps {
5137
- stickers: string[];
5138
- effect: StickerEffect;
5139
- count: number;
5140
- duration: number;
5141
- }
5132
+ export declare const StickersEffects: React_2.NamedExoticComponent<IStickersProps>;
5142
5133
 
5143
- export declare const StickersSelector: React_2.NamedExoticComponent<IStickerGridProps>;
5134
+ export declare const StickersSelector: React_2.NamedExoticComponent<IStickerSelectorProps>;
5144
5135
 
5145
5136
  export declare const StreakIcon: React_2.FC<IStreakIconProps>;
5146
5137
 
@@ -6066,7 +6057,7 @@ declare type TRenderAs_2 = 'canvas' | 'whiteboard';
6066
6057
  declare type TRewardHomeData = {
6067
6058
  user_badges: TBadgeData[] | [];
6068
6059
  user_rewards: TRewardsData[] | [];
6069
- user_stickers: TStickerData[] | [];
6060
+ user_stickers: TStickerData_2[] | [];
6070
6061
  };
6071
6062
 
6072
6063
  declare type TRewardsData = {
@@ -6194,7 +6185,18 @@ export declare type TSkillStatus = 'pending' | 'completed';
6194
6185
 
6195
6186
  export declare type TSocialAuthProvider = 'google' | 'apple';
6196
6187
 
6197
- declare type TStickerData = {
6188
+ export declare type TStickerData = {
6189
+ id: string;
6190
+ sticker: string;
6191
+ lottie?: string;
6192
+ x: number;
6193
+ y: number;
6194
+ size: number;
6195
+ fromX?: string;
6196
+ fromY?: string;
6197
+ };
6198
+
6199
+ declare type TStickerData_2 = {
6198
6200
  actor_id: string;
6199
6201
  badge_id: string;
6200
6202
  badge_type: string;
@@ -6207,6 +6209,8 @@ declare type TStickerData = {
6207
6209
  user_type: string;
6208
6210
  };
6209
6211
 
6212
+ export declare type TStickerEffects = 'burst-from-edges' | 'pop-expand' | 'float-up' | 'fall-down';
6213
+
6210
6214
  export declare type TStreakStatus = 'pending' | 'completed';
6211
6215
 
6212
6216
  declare type TStyleAttrubutes = NonNullable<HTMLAttributes<HTMLDivElement>['style']>;
@@ -6567,6 +6571,18 @@ export declare enum WebViewEvent {
6567
6571
  */
6568
6572
  export declare const WHITELIST_EVENTS: Record<string, PLUGIN_NAME[]>;
6569
6573
 
6574
+ declare type WithData = {
6575
+ data: Data;
6576
+ };
6577
+
6578
+ declare type Without<T, K extends keyof any> = {
6579
+ [P in Exclude<keyof T, K>]?: never;
6580
+ };
6581
+
6582
+ declare type WithSrc = {
6583
+ src: string;
6584
+ };
6585
+
6570
6586
  export declare const Worksheet: NamedExoticComponent<IWorksheetContainerProps & RefAttributes<IWorksheetRef>>;
6571
6587
 
6572
6588
  export declare const WORKSHEET_ACTION_BAR_HEIGHT = 56;
@@ -6579,6 +6595,8 @@ export declare const WORKSHEET_TOP_NAVIGATION_HEIGHT = 48;
6579
6595
 
6580
6596
  export declare const WORKSHEET_V3_NODE_TYPES: TNodeTypeProps[];
6581
6597
 
6598
+ declare type XOR<T, U> = (T & Without<U, keyof T>) | (U & Without<T, keyof U>);
6599
+
6582
6600
  declare const ZINDEX: {
6583
6601
  readonly CHAPTER_CROWN_ICON: 4;
6584
6602
  readonly CHAPTER_PLUS_ICON: 2;