@cuemath/leap 3.2.21-tp-beta-0.3 → 3.2.23-mb

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 (41) hide show
  1. package/dist/features/milestone/create/comps/chapters-selection-step/chapter-selection-step-v2/chapters-list.js +53 -68
  2. package/dist/features/milestone/create/comps/chapters-selection-step/chapter-selection-step-v2/chapters-list.js.map +1 -1
  3. package/dist/features/stickers/sticker-data.js +234 -0
  4. package/dist/features/stickers/sticker-data.js.map +1 -0
  5. package/dist/features/{ui/sticker-grid/sticker-grid-styles.js → stickers/sticker-selector/sticker-selector-styles.js} +21 -31
  6. package/dist/features/stickers/sticker-selector/sticker-selector-styles.js.map +1 -0
  7. package/dist/features/stickers/sticker-selector/sticker-selector.js +27 -0
  8. package/dist/features/stickers/sticker-selector/sticker-selector.js.map +1 -0
  9. package/dist/features/stickers/sticker-selector/sticker.js +57 -0
  10. package/dist/features/stickers/sticker-selector/sticker.js.map +1 -0
  11. package/dist/features/{ui/stickers/stickers-effects.js → stickers/stickers-effects/effects.js} +6 -6
  12. package/dist/features/stickers/stickers-effects/effects.js.map +1 -0
  13. package/dist/features/stickers/stickers-effects/stickers-effects-helper.js +86 -0
  14. package/dist/features/stickers/stickers-effects/stickers-effects-helper.js.map +1 -0
  15. package/dist/features/{ui/stickers/stickers-styled.js → stickers/stickers-effects/stickers-effects-styled.js} +2 -2
  16. package/dist/features/stickers/stickers-effects/stickers-effects-styled.js.map +1 -0
  17. package/dist/features/stickers/stickers-effects/stickers-effects.js +43 -0
  18. package/dist/features/stickers/stickers-effects/stickers-effects.js.map +1 -0
  19. package/dist/features/ui/lottie-animation/lottie-animation.js +36 -31
  20. package/dist/features/ui/lottie-animation/lottie-animation.js.map +1 -1
  21. package/dist/features/ui/modals/modal-styled.js +39 -8
  22. package/dist/features/ui/modals/modal-styled.js.map +1 -1
  23. package/dist/features/ui/modals/modal.js +31 -31
  24. package/dist/features/ui/modals/modal.js.map +1 -1
  25. package/dist/index.d.ts +38 -16
  26. package/dist/index.js +349 -347
  27. package/dist/index.js.map +1 -1
  28. package/package.json +1 -1
  29. package/dist/features/ui/sticker-grid/sticker-grid-styles.js.map +0 -1
  30. package/dist/features/ui/sticker-grid/sticker-grid.js +0 -24
  31. package/dist/features/ui/sticker-grid/sticker-grid.js.map +0 -1
  32. package/dist/features/ui/sticker-grid/sticker.js +0 -57
  33. package/dist/features/ui/sticker-grid/sticker.js.map +0 -1
  34. package/dist/features/ui/stickers/constants.js +0 -6
  35. package/dist/features/ui/stickers/constants.js.map +0 -1
  36. package/dist/features/ui/stickers/stickers-effects.js.map +0 -1
  37. package/dist/features/ui/stickers/stickers-styled.js.map +0 -1
  38. package/dist/features/ui/stickers/stickers-utils.js +0 -91
  39. package/dist/features/ui/stickers/stickers-utils.js.map +0 -1
  40. package/dist/features/ui/stickers/stickers.js +0 -40
  41. package/dist/features/ui/stickers/stickers.js.map +0 -1
package/dist/index.d.ts CHANGED
@@ -2552,7 +2552,7 @@ export declare interface IModal {
2552
2552
  /** Content to display inside the modal */
2553
2553
  element: ReactElement;
2554
2554
  /** Rendering style of the modal */
2555
- renderAs?: 'modal' | 'fullscreen' | 'spotlight' | 'bottom-sheet';
2555
+ renderAs?: 'modal' | 'fullscreen' | 'spotlight' | 'bottom-sheet' | 'fullscreen-transparent';
2556
2556
  /** Whether the modal can be dismissed by clicking outside or ESC key (default: true) */
2557
2557
  isDismissable?: boolean;
2558
2558
  /** Whether the modal requires authentication to view (default: true) */
@@ -3394,19 +3394,35 @@ declare interface IStepperProps {
3394
3394
  currentStep: number;
3395
3395
  }
3396
3396
 
3397
- declare interface IStickerData {
3397
+ export declare interface IStickerData {
3398
3398
  id: string;
3399
3399
  emoji: string;
3400
3400
  lottieUrl?: string;
3401
- name?: string;
3401
+ name: string;
3402
3402
  }
3403
3403
 
3404
- declare interface IStickerGridProps {
3404
+ export declare interface IStickerProps {
3405
+ emoji: string;
3406
+ lottieUrl?: string;
3407
+ size?: number | string;
3408
+ onClick?: () => void;
3409
+ disabled?: boolean;
3410
+ }
3411
+
3412
+ export declare interface IStickerSelectorProps {
3405
3413
  stickers: IStickerData[];
3406
3414
  columns?: number;
3407
3415
  gap?: number;
3408
3416
  stickerSize?: number | string;
3409
3417
  onStickerClick?: (sticker: IStickerData) => void;
3418
+ disabled?: boolean;
3419
+ }
3420
+
3421
+ export declare interface IStickersProps {
3422
+ stickers: string[];
3423
+ effect: TStickerEffects;
3424
+ count: number;
3425
+ duration: number;
3410
3426
  }
3411
3427
 
3412
3428
  declare interface IStreakIconProps extends React.HTMLProps<HTMLDivElement> {
@@ -5022,22 +5038,15 @@ declare const STICKER_BADGE: {
5022
5038
  AWESOME: string;
5023
5039
  };
5024
5040
 
5025
- declare type StickerEffect = 'burst_from_edges' | 'pop_expand' | 'float_up' | 'fall_down';
5041
+ export declare const stickerData: IStickerData[];
5026
5042
 
5027
5043
  export declare const StickerFilledIcon: React.FC<React.SVGProps<SVGSVGElement>>;
5028
5044
 
5029
5045
  export declare const StickerIcon: React.FC<React.SVGProps<SVGSVGElement>>;
5030
5046
 
5031
- export declare const Stickers: React_2.NamedExoticComponent<StickersProps>;
5047
+ export declare const StickersEffects: React_2.NamedExoticComponent<IStickersProps>;
5032
5048
 
5033
- declare interface StickersProps {
5034
- stickers: string[];
5035
- effect: StickerEffect;
5036
- count: number;
5037
- duration: number;
5038
- }
5039
-
5040
- export declare const StickersSelector: React_2.NamedExoticComponent<IStickerGridProps>;
5049
+ export declare const StickersSelector: React_2.NamedExoticComponent<IStickerSelectorProps>;
5041
5050
 
5042
5051
  export declare const StreakIcon: React_2.FC<IStreakIconProps>;
5043
5052
 
@@ -5963,7 +5972,7 @@ declare type TRenderAs_2 = 'canvas' | 'whiteboard';
5963
5972
  declare type TRewardHomeData = {
5964
5973
  user_badges: TBadgeData[] | [];
5965
5974
  user_rewards: TRewardsData[] | [];
5966
- user_stickers: TStickerData[] | [];
5975
+ user_stickers: TStickerData_2[] | [];
5967
5976
  };
5968
5977
 
5969
5978
  declare type TRewardsData = {
@@ -6091,7 +6100,18 @@ export declare type TSkillStatus = 'pending' | 'completed';
6091
6100
 
6092
6101
  export declare type TSocialAuthProvider = 'google' | 'apple';
6093
6102
 
6094
- declare type TStickerData = {
6103
+ export declare type TStickerData = {
6104
+ id: string;
6105
+ sticker: string;
6106
+ lottie?: string;
6107
+ x: number;
6108
+ y: number;
6109
+ size: number;
6110
+ fromX?: string;
6111
+ fromY?: string;
6112
+ };
6113
+
6114
+ declare type TStickerData_2 = {
6095
6115
  actor_id: string;
6096
6116
  badge_id: string;
6097
6117
  badge_type: string;
@@ -6104,6 +6124,8 @@ declare type TStickerData = {
6104
6124
  user_type: string;
6105
6125
  };
6106
6126
 
6127
+ export declare type TStickerEffects = 'burst-from-edges' | 'pop-expand' | 'float-up' | 'fall-down';
6128
+
6107
6129
  export declare type TStreakStatus = 'pending' | 'completed';
6108
6130
 
6109
6131
  declare type TStyleAttrubutes = NonNullable<HTMLAttributes<HTMLDivElement>['style']>;