@cuemath/leap 3.2.22 → 3.2.23-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 (72) hide show
  1. package/dist/assets/illustrations/illustrations.js +6 -0
  2. package/dist/assets/illustrations/illustrations.js.map +1 -1
  3. package/dist/assets/images/images.js +10 -0
  4. package/dist/assets/images/images.js.map +1 -1
  5. package/dist/assets/line-icons/icons/cue-coin.js +182 -0
  6. package/dist/assets/line-icons/icons/cue-coin.js.map +1 -0
  7. package/dist/assets/line-icons/icons/wins-common-icon.js +26 -0
  8. package/dist/assets/line-icons/icons/wins-common-icon.js.map +1 -0
  9. package/dist/assets/line-icons/icons/wins-epic-icon.js +25 -0
  10. package/dist/assets/line-icons/icons/wins-epic-icon.js.map +1 -0
  11. package/dist/assets/line-icons/icons/wins-legendary-icon.js +25 -0
  12. package/dist/assets/line-icons/icons/wins-legendary-icon.js.map +1 -0
  13. package/dist/assets/line-icons/icons/wins-mystery-icon.js +105 -0
  14. package/dist/assets/line-icons/icons/wins-mystery-icon.js.map +1 -0
  15. package/dist/assets/line-icons/icons/wins-mythic-icon.js +28 -0
  16. package/dist/assets/line-icons/icons/wins-mythic-icon.js.map +1 -0
  17. package/dist/assets/line-icons/icons/wins-rare-icon.js +28 -0
  18. package/dist/assets/line-icons/icons/wins-rare-icon.js.map +1 -0
  19. package/dist/assets/lottie/lottie.js +6 -1
  20. package/dist/assets/lottie/lottie.js.map +1 -1
  21. package/dist/features/ui/constants/z-index.js +5 -3
  22. package/dist/features/ui/constants/z-index.js.map +1 -1
  23. package/dist/features/wins-dashboard/belts-elements-stickers/belts-elements-stickers.js +108 -0
  24. package/dist/features/wins-dashboard/belts-elements-stickers/belts-elements-stickers.js.map +1 -0
  25. package/dist/features/wins-dashboard/belts-elements-stickers/belts.js +94 -0
  26. package/dist/features/wins-dashboard/belts-elements-stickers/belts.js.map +1 -0
  27. package/dist/features/wins-dashboard/belts-elements-stickers/elements.js +182 -0
  28. package/dist/features/wins-dashboard/belts-elements-stickers/elements.js.map +1 -0
  29. package/dist/features/wins-dashboard/belts-elements-stickers/progress-bar-horizontal.js +35 -0
  30. package/dist/features/wins-dashboard/belts-elements-stickers/progress-bar-horizontal.js.map +1 -0
  31. package/dist/features/wins-dashboard/belts-elements-stickers/reward-elements.js +82 -0
  32. package/dist/features/wins-dashboard/belts-elements-stickers/reward-elements.js.map +1 -0
  33. package/dist/features/wins-dashboard/constants.js +161 -0
  34. package/dist/features/wins-dashboard/constants.js.map +1 -0
  35. package/dist/features/wins-dashboard/header/wins-header.js +95 -0
  36. package/dist/features/wins-dashboard/header/wins-header.js.map +1 -0
  37. package/dist/features/wins-dashboard/student-badges/animated-tabbar.js +65 -0
  38. package/dist/features/wins-dashboard/student-badges/animated-tabbar.js.map +1 -0
  39. package/dist/features/wins-dashboard/student-badges/hooks/use-student-badge-hook.js +107 -0
  40. package/dist/features/wins-dashboard/student-badges/hooks/use-student-badge-hook.js.map +1 -0
  41. package/dist/features/wins-dashboard/student-badges/hooks/use-student-badge-list-hook.js +135 -0
  42. package/dist/features/wins-dashboard/student-badges/hooks/use-student-badge-list-hook.js.map +1 -0
  43. package/dist/features/wins-dashboard/student-badges/student-badge.js +161 -0
  44. package/dist/features/wins-dashboard/student-badges/student-badge.js.map +1 -0
  45. package/dist/features/wins-dashboard/student-badges/student-badges-lists.js +136 -0
  46. package/dist/features/wins-dashboard/student-badges/student-badges-lists.js.map +1 -0
  47. package/dist/index.d.ts +162 -0
  48. package/dist/index.js +619 -609
  49. package/dist/index.js.map +1 -1
  50. package/dist/static/awesome.4239f583.json +1 -0
  51. package/dist/static/black-belt.81b3ebf9.png +0 -0
  52. package/dist/static/blue-belt.508a1b4b.png +0 -0
  53. package/dist/static/brown-belt.09bb7e93.png +0 -0
  54. package/dist/static/clapping-hands.17e7ecf0.json +1 -0
  55. package/dist/static/common.9e8ceef1.svg +1 -0
  56. package/dist/static/cool.cd6921bb.json +1 -0
  57. package/dist/static/epic.37a0265a.svg +1 -0
  58. package/dist/static/green-belt.5501296f.png +0 -0
  59. package/dist/static/legendary.f15d09ca.svg +1 -0
  60. package/dist/static/like-button.281a2618.json +1 -0
  61. package/dist/static/mastered-badge.91d25e92.png +0 -0
  62. package/dist/static/mystery.81ada5fb.svg +1 -0
  63. package/dist/static/mythic.58ba0ae0.svg +1 -0
  64. package/dist/static/orange-belt.1fefcc8c.png +0 -0
  65. package/dist/static/purple-belt.e15611b4.png +0 -0
  66. package/dist/static/rare.1ffaa311.svg +1 -0
  67. package/dist/static/red-belt.11f841d9.png +0 -0
  68. package/dist/static/star-strike-emoji.c0b31028.json +1 -0
  69. package/dist/static/trophy.5ef1853a.json +1 -0
  70. package/dist/static/white-belt.ea93103e.png +0 -0
  71. package/dist/static/yellow-belt.0c47b8cc.png +0 -0
  72. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -119,6 +119,29 @@ export declare const BackgroundImage: ({ img }: {
119
119
 
120
120
  export declare const BackIcon: React.FC<React.SVGProps<SVGSVGElement>>;
121
121
 
122
+ declare interface Badge {
123
+ category: keyof typeof STUDENT_BADGE_TYPE;
124
+ acknowledged_on: number | null;
125
+ animation_url: string;
126
+ assigned_on: number | null;
127
+ audio_url: string | null;
128
+ badge_id: string;
129
+ code: string;
130
+ current_count: number;
131
+ description: string;
132
+ id: string;
133
+ image_url: string;
134
+ is_global: boolean;
135
+ is_live: boolean;
136
+ is_recent: boolean;
137
+ name: string;
138
+ position: number;
139
+ program_id: null;
140
+ state: string;
141
+ total_count: number;
142
+ user_id: string;
143
+ }
144
+
122
145
  export declare const BaseInput: React_2.FC<IBaseInputProps>;
123
146
 
124
147
  declare interface BaseProject {
@@ -129,6 +152,16 @@ declare interface BaseProject {
129
152
  variant: string;
130
153
  }
131
154
 
155
+ export declare const BeltsElementsStickers: React_2.FC<BeltsElementsStickersProps>;
156
+
157
+ declare interface BeltsElementsStickersProps {
158
+ curriculumHomeData?: CurriculumHomeData;
159
+ rewardHomeData?: RewardHomeData;
160
+ programStream?: string;
161
+ currentScreenWidth: number;
162
+ renderOnTeacher?: boolean;
163
+ }
164
+
132
165
  export declare const Bin2Icon: React.FC<React.SVGProps<SVGSVGElement>>;
133
166
 
134
167
  export declare const BinIcon: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -384,10 +417,33 @@ export declare const CueCanvasProvider: FC<PropsWithChildren<{
384
417
 
385
418
  export declare const CueCanvasSideBar: NamedExoticComponent<ISidebar>;
386
419
 
420
+ export declare const CueCoinIcon: React_2.FC<CueCoinIconProps>;
421
+
422
+ declare interface CueCoinIconProps extends React_2.SVGProps<SVGSVGElement> {
423
+ variant?: 'gold' | 'silver';
424
+ }
425
+
387
426
  export declare const CuemathLogo: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
388
427
 
389
428
  export declare const CueRocket: React.FC<React.SVGProps<SVGSVGElement>>;
390
429
 
430
+ declare interface CurriculumHomeData {
431
+ data?: {
432
+ curriculum_map?: CurriculumMap;
433
+ };
434
+ }
435
+
436
+ declare interface CurriculumMap {
437
+ belts?: {
438
+ current_belt_type?: string;
439
+ goals_required?: number;
440
+ };
441
+ goals?: {
442
+ completed_goals: number;
443
+ total_goals: number;
444
+ };
445
+ }
446
+
391
447
  export declare const CustomInputField: NamedExoticComponent<ICustomInputFieldProps>;
392
448
 
393
449
  export declare const DashArrowIcon: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -2137,6 +2193,7 @@ export declare const ILLUSTRATIONS: {
2137
2193
  CIRCLE_CUEMATH_LOGO_WHITE: string;
2138
2194
  CIRCLE_OUTERCIRCLE_BG: string;
2139
2195
  CLOCK_ORANGE: string;
2196
+ COMMON: string;
2140
2197
  COMMUNITY_BULB: string;
2141
2198
  CROSSHAIR_CIRCLE: string;
2142
2199
  CROWN: string;
@@ -2150,6 +2207,7 @@ export declare const ILLUSTRATIONS: {
2150
2207
  DURATION_90MIN_GRAY: string;
2151
2208
  EARTH_GREEN: string;
2152
2209
  ELLIPSE_CLIP: string;
2210
+ EPIC: string;
2153
2211
  FEMALE_AVATAR: string;
2154
2212
  GAME_PLAY: string;
2155
2213
  GLOBE_WITH_BLUE_FILL: string;
@@ -2163,6 +2221,7 @@ export declare const ILLUSTRATIONS: {
2163
2221
  LEARNED_SHIELD_GRAY: string;
2164
2222
  LEARNED_SHIELD_GREEN: string;
2165
2223
  LEARNT: string;
2224
+ LEGENDARY: string;
2166
2225
  LIKE: string;
2167
2226
  LIVE_SESSION: string;
2168
2227
  LOADER: string;
@@ -2179,6 +2238,8 @@ export declare const ILLUSTRATIONS: {
2179
2238
  MILESTONE_INTRO_3: string;
2180
2239
  MISTAKE: string;
2181
2240
  MONEY: string;
2241
+ MYSTERY: string;
2242
+ MYTHIC: string;
2182
2243
  NODE_ACTIVITY_BG: string;
2183
2244
  NODE_CUSTOM_TEST_BG: string;
2184
2245
  NODE_DOWNLOAD_BG: string;
@@ -2212,6 +2273,7 @@ export declare const ILLUSTRATIONS: {
2212
2273
  PUZZLE_PATTERN_PURPLE: string;
2213
2274
  PUZZLE_PATTERN_YELLOW: string;
2214
2275
  PUZZLE_STUDENT: string;
2276
+ RARE: string;
2215
2277
  REFUND_POLICY: string;
2216
2278
  REFUND_POLICY_WITH_HEADPHONE: string;
2217
2279
  REPORT_404: string;
@@ -2320,6 +2382,9 @@ export declare const IMAGES: {
2320
2382
  AWESOME: string;
2321
2383
  BADGE_SUCCESS: string;
2322
2384
  BG_EMPTY_RESOURCES: string;
2385
+ BLACK_BELT: string;
2386
+ BLUE_BELT: string;
2387
+ BROWN_BELT: string;
2323
2388
  CHATVA: string;
2324
2389
  CONGRATS: string;
2325
2390
  COOL: string;
@@ -2330,20 +2395,27 @@ export declare const IMAGES: {
2330
2395
  EKA: string;
2331
2396
  EMPTY_MIX_TESTS: string;
2332
2397
  GREAT: string;
2398
+ GREEN_BELT: string;
2333
2399
  HEXO: string;
2334
2400
  KUDOS: string;
2335
2401
  LEARNING_PLAN: string;
2336
2402
  LESSON_OVERVIEW_BANNER: string;
2403
+ MASTERED_BADGE: string;
2337
2404
  NO_INFO: string;
2338
2405
  OCTO: string;
2406
+ ORANGE_BELT: string;
2407
+ PURPLE_BELT: string;
2339
2408
  PUZZLE_CARD_EASY: string;
2340
2409
  PUZZLE_CARD_HARD: string;
2341
2410
  PUZZLE_CARD_MEDIUM: string;
2411
+ RED_BELT: string;
2342
2412
  SHARED: string;
2343
2413
  SHEET_REFERENCE: string;
2344
2414
  SPIRAL_PATTERN: string;
2345
2415
  TETRA: string;
2416
+ WHITE_BELT: string;
2346
2417
  WOW: string;
2418
+ YELLOW_BELT: string;
2347
2419
  ZODASA: string;
2348
2420
  };
2349
2421
 
@@ -2966,6 +3038,29 @@ declare interface IPreviewWorksheetProps {
2966
3038
  onUnassign?: () => void;
2967
3039
  }
2968
3040
 
3041
+ declare interface IProgramOption {
3042
+ badges_enabled: boolean;
3043
+ board: string;
3044
+ board_id: string;
3045
+ code: string;
3046
+ cue_program_type: string;
3047
+ description: string;
3048
+ grade: string;
3049
+ grades: string[];
3050
+ id: string;
3051
+ is_active: boolean;
3052
+ is_current: boolean;
3053
+ is_current_stream_program: boolean;
3054
+ is_demo: boolean;
3055
+ is_live: boolean;
3056
+ name: string;
3057
+ program_type: string;
3058
+ rewards_enabled: boolean;
3059
+ stream: string;
3060
+ sub_stream: string | null;
3061
+ [key: string]: unknown;
3062
+ }
3063
+
2969
3064
  export declare interface IProject<T> {
2970
3065
  type: ProjectType;
2971
3066
  data: T[];
@@ -4097,6 +4192,11 @@ export declare interface IWebViewProps extends IframeHTMLAttributes<HTMLIFrameEl
4097
4192
  handleInfoMessage?: (infoMessage: IInfoMessage) => void;
4098
4193
  }
4099
4194
 
4195
+ declare interface IWinsCommonIcon {
4196
+ selected?: boolean;
4197
+ className?: string;
4198
+ }
4199
+
4100
4200
  declare interface IWinsPreviewProps {
4101
4201
  onWinsClick: () => void;
4102
4202
  rewardsHome: TRewardHomeData;
@@ -4447,6 +4547,7 @@ export declare const LOTTIE: {
4447
4547
  ALL_DONE: string;
4448
4548
  ANIMATED_AVATAR: string;
4449
4549
  AVATAR_SELECTED: string;
4550
+ AWESOME: string;
4450
4551
  BEGINNER1X: string;
4451
4552
  BRONZE_1: string;
4452
4553
  BRONZE_2: string;
@@ -4455,6 +4556,7 @@ export declare const LOTTIE: {
4455
4556
  CHAPTER_COMPLETED: string;
4456
4557
  CIRCULAR_LOADER: string;
4457
4558
  CLAP: string;
4559
+ CLAPPING_HANDS: string;
4458
4560
  CLOCK_30MIN: string;
4459
4561
  CLOCK_45MIN: string;
4460
4562
  CLOCK_60MIN: string;
@@ -4463,6 +4565,7 @@ export declare const LOTTIE: {
4463
4565
  COLOR_2: string;
4464
4566
  COLOR_3: string;
4465
4567
  COMPETITIVE_ARENA: string;
4568
+ COOL: string;
4466
4569
  DART: string;
4467
4570
  DIAMOND: string;
4468
4571
  DICE: string;
@@ -4496,6 +4599,7 @@ export declare const LOTTIE: {
4496
4599
  LEVEL_1_ALLSTAR: string;
4497
4600
  LIGHTNING: string;
4498
4601
  LIGHT_BULB: string;
4602
+ LIKE_BUTTON: string;
4499
4603
  MAGICWAND: string;
4500
4604
  MAIL: string;
4501
4605
  MECHANICAL_ARM: string;
@@ -4544,6 +4648,7 @@ export declare const LOTTIE: {
4544
4648
  SPINNER_WHITE: string;
4545
4649
  SPLASH_SCREEN: string;
4546
4650
  STAR: string;
4651
+ STAR_STRIKE_EMOJI: string;
4547
4652
  STUDENT_AVATAR: string;
4548
4653
  SUBJECTIVE: string;
4549
4654
  SUPER: string;
@@ -4946,6 +5051,20 @@ export declare const ResendOTP: NamedExoticComponent<IOTPResendProps>;
4946
5051
 
4947
5052
  export declare const ResetPasswordForm: MemoExoticComponent<({ onSubmit, onChange, formData, errors, isSubmitDisabled, isProcessing, isValid, }: IResetPasswordFormProps) => JSX.Element>;
4948
5053
 
5054
+ declare interface RewardElement {
5055
+ aggregate_for?: {
5056
+ name?: string;
5057
+ };
5058
+ aggregates?: number;
5059
+ }
5060
+
5061
+ declare interface RewardHomeData {
5062
+ data?: {
5063
+ user_rewards?: RewardElement[];
5064
+ user_stickers?: StickerElement[];
5065
+ };
5066
+ }
5067
+
4949
5068
  export declare const REWARDS_LIST: string[];
4950
5069
 
4951
5070
  export declare const RightIcon: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -5105,6 +5224,11 @@ declare const STICKER_BADGE: {
5105
5224
 
5106
5225
  declare type StickerEffect = 'burst_from_edges' | 'pop_expand' | 'float_up' | 'fall_down';
5107
5226
 
5227
+ declare interface StickerElement {
5228
+ badge_id?: string;
5229
+ name?: string;
5230
+ }
5231
+
5108
5232
  export declare const StickerFilledIcon: React.FC<React.SVGProps<SVGSVGElement>>;
5109
5233
 
5110
5234
  export declare const StickerIcon: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -5135,6 +5259,27 @@ export declare class StreakReductionLocalStorageUtil {
5135
5259
 
5136
5260
  export declare const StrikedEyeIcon: React.FC<React.SVGProps<SVGSVGElement>>;
5137
5261
 
5262
+ declare const STUDENT_BADGE_TYPE: {
5263
+ COMMON: string;
5264
+ RARE: string;
5265
+ EPIC: string;
5266
+ LEGENDARY: string;
5267
+ MYTHIC: string;
5268
+ MYSTERY: string;
5269
+ };
5270
+
5271
+ export declare const StudentBadgeList: ({ invalidateRewardsHome, openModal, topOffset, userBadges, currentScreenWidth, handleScrollTo, scrollPosition, }: StudentBadgeListProps) => JSX.Element;
5272
+
5273
+ declare interface StudentBadgeListProps {
5274
+ invalidateRewardsHome: () => void;
5275
+ openModal: (modal: string, props?: unknown) => void;
5276
+ topOffset?: number;
5277
+ userBadges: Record<string, Badge[]>;
5278
+ currentScreenWidth: number;
5279
+ handleScrollTo: (position: number) => void;
5280
+ scrollPosition: number;
5281
+ }
5282
+
5138
5283
  export declare const StudentDetails: FC<IStudentDetailsProps>;
5139
5284
 
5140
5285
  export declare const SubmitMilestoneModal: React.FC<ISubmitModalProps>;
@@ -6545,6 +6690,22 @@ export declare enum WebViewEvent {
6545
6690
  */
6546
6691
  export declare const WHITELIST_EVENTS: Record<string, PLUGIN_NAME[]>;
6547
6692
 
6693
+ export declare const WinsCommonIcon: React_2.FC<IWinsCommonIcon>;
6694
+
6695
+ export declare const WinsHeader: React_2.FC<WinsTabHeaderProps>;
6696
+
6697
+ declare interface WinsTabHeaderProps {
6698
+ currentSelectedProgram?: IProgramOption;
6699
+ goldCoins?: number;
6700
+ onBackClick?: () => void;
6701
+ onProgramChange?: (p: IProgramOption) => void;
6702
+ programOptions?: IProgramOption[];
6703
+ silverCoins?: number;
6704
+ showLeftBorder?: boolean;
6705
+ topOffset?: number;
6706
+ widthOffset?: number;
6707
+ }
6708
+
6548
6709
  export declare const Worksheet: NamedExoticComponent<IWorksheetContainerProps & RefAttributes<IWorksheetRef>>;
6549
6710
 
6550
6711
  export declare const WORKSHEET_ACTION_BAR_HEIGHT = 56;
@@ -6572,6 +6733,7 @@ declare const ZINDEX: {
6572
6733
  readonly GOAL_CHAPTER_SHEETS_MENU: 4;
6573
6734
  readonly JOURNEY_OVERLAY: 1000;
6574
6735
  readonly CHAPTER_COMPLETED_LOTTIE: 5;
6736
+ readonly HEADER: 11;
6575
6737
  };
6576
6738
 
6577
6739
  export { }