@cuemath/leap 3.3.13 → 3.3.14

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 (86) 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 +109 -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 +95 -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 +184 -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 +36 -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 +83 -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 +66 -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-list-hook.js +135 -0
  40. package/dist/features/wins-dashboard/student-badges/hooks/use-student-badge-list-hook.js.map +1 -0
  41. package/dist/features/wins-dashboard/student-badges/student-badge.js +168 -0
  42. package/dist/features/wins-dashboard/student-badges/student-badge.js.map +1 -0
  43. package/dist/features/wins-dashboard/student-badges/student-badges-lists.js +137 -0
  44. package/dist/features/wins-dashboard/student-badges/student-badges-lists.js.map +1 -0
  45. package/dist/index.d.ts +168 -0
  46. package/dist/index.js +665 -652
  47. package/dist/index.js.map +1 -1
  48. package/dist/node_modules/query-string/base.js +1 -1
  49. package/dist/node_modules/query-string/node_modules/decode-uri-component/index.js.map +1 -0
  50. package/dist/node_modules/uuid/dist/esm-browser/regex.js +5 -0
  51. package/dist/node_modules/uuid/dist/esm-browser/regex.js.map +1 -0
  52. package/dist/node_modules/uuid/dist/esm-browser/rng.js +2 -3
  53. package/dist/node_modules/uuid/dist/esm-browser/rng.js.map +1 -1
  54. package/dist/node_modules/uuid/dist/esm-browser/stringify.js +10 -6
  55. package/dist/node_modules/uuid/dist/esm-browser/stringify.js.map +1 -1
  56. package/dist/node_modules/uuid/dist/esm-browser/v4.js +9 -12
  57. package/dist/node_modules/uuid/dist/esm-browser/v4.js.map +1 -1
  58. package/dist/node_modules/uuid/dist/esm-browser/validate.js +8 -0
  59. package/dist/node_modules/uuid/dist/esm-browser/validate.js.map +1 -0
  60. package/dist/static/awesome.4239f583.json +1 -0
  61. package/dist/static/black-belt.81b3ebf9.png +0 -0
  62. package/dist/static/blue-belt.508a1b4b.png +0 -0
  63. package/dist/static/brown-belt.09bb7e93.png +0 -0
  64. package/dist/static/clapping-hands.17e7ecf0.json +1 -0
  65. package/dist/static/common.9e8ceef1.svg +1 -0
  66. package/dist/static/cool.cd6921bb.json +1 -0
  67. package/dist/static/epic.37a0265a.svg +1 -0
  68. package/dist/static/green-belt.5501296f.png +0 -0
  69. package/dist/static/legendary.f15d09ca.svg +1 -0
  70. package/dist/static/like-button.281a2618.json +1 -0
  71. package/dist/static/mastered-badge.91d25e92.png +0 -0
  72. package/dist/static/mystery.81ada5fb.svg +1 -0
  73. package/dist/static/mythic.58ba0ae0.svg +1 -0
  74. package/dist/static/orange-belt.1fefcc8c.png +0 -0
  75. package/dist/static/purple-belt.e15611b4.png +0 -0
  76. package/dist/static/rare.1ffaa311.svg +1 -0
  77. package/dist/static/red-belt.11f841d9.png +0 -0
  78. package/dist/static/star-strike-emoji.c0b31028.json +1 -0
  79. package/dist/static/trophy.5ef1853a.json +1 -0
  80. package/dist/static/white-belt.ea93103e.png +0 -0
  81. package/dist/static/yellow-belt.0c47b8cc.png +0 -0
  82. package/package.json +1 -1
  83. package/dist/node_modules/decode-uri-component/index.js.map +0 -1
  84. package/dist/node_modules/uuid/dist/esm-browser/native.js +0 -7
  85. package/dist/node_modules/uuid/dist/esm-browser/native.js.map +0 -1
  86. /package/dist/node_modules/{decode-uri-component → query-string/node_modules/decode-uri-component}/index.js +0 -0
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.NamedExoticComponent<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>>;
@@ -393,12 +426,35 @@ export declare const CueCanvasProvider: FC<PropsWithChildren<{
393
426
 
394
427
  export declare const CueCanvasSideBar: NamedExoticComponent<ISidebar>;
395
428
 
429
+ export declare const CueCoinIcon: React_2.FC<CueCoinIconProps>;
430
+
431
+ declare interface CueCoinIconProps extends React_2.SVGProps<SVGSVGElement> {
432
+ variant?: 'gold' | 'silver';
433
+ }
434
+
396
435
  export declare const CuemathAppFeatures: NamedExoticComponent<{}>;
397
436
 
398
437
  export declare const CuemathLogo: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
399
438
 
400
439
  export declare const CueRocket: React.FC<React.SVGProps<SVGSVGElement>>;
401
440
 
441
+ declare interface CurriculumHomeData {
442
+ data?: {
443
+ curriculum_map?: CurriculumMap;
444
+ };
445
+ }
446
+
447
+ declare interface CurriculumMap {
448
+ belts?: {
449
+ current_belt_type?: string;
450
+ goals_required?: number;
451
+ };
452
+ goals?: {
453
+ completed_goals: number;
454
+ total_goals: number;
455
+ };
456
+ }
457
+
402
458
  export declare const CustomInputField: NamedExoticComponent<ICustomInputFieldProps>;
403
459
 
404
460
  export declare const DashArrowIcon: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -2199,6 +2255,7 @@ export declare const ILLUSTRATIONS: {
2199
2255
  CIRCLE_CUEMATH_LOGO_WHITE: string;
2200
2256
  CIRCLE_OUTERCIRCLE_BG: string;
2201
2257
  CLOCK_ORANGE: string;
2258
+ COMMON: string;
2202
2259
  COMMUNITY_BULB: string;
2203
2260
  COMMUNITY_BULB_YELLOW_2: string;
2204
2261
  CROSSHAIR_CIRCLE: string;
@@ -2213,6 +2270,7 @@ export declare const ILLUSTRATIONS: {
2213
2270
  DURATION_90MIN_GRAY: string;
2214
2271
  EARTH_GREEN: string;
2215
2272
  ELLIPSE_CLIP: string;
2273
+ EPIC: string;
2216
2274
  EQUAL_OUTLINED: string;
2217
2275
  FEMALE_AVATAR: string;
2218
2276
  GAME_PLAY: string;
@@ -2231,6 +2289,7 @@ export declare const ILLUSTRATIONS: {
2231
2289
  LEARNED_SHIELD_GREEN: string;
2232
2290
  LEARNING_PUZZLE_BOT: string;
2233
2291
  LEARNT: string;
2292
+ LEGENDARY: string;
2234
2293
  LIKE: string;
2235
2294
  LIVE_SESSION: string;
2236
2295
  LOADER: string;
@@ -2247,6 +2306,8 @@ export declare const ILLUSTRATIONS: {
2247
2306
  MILESTONE_INTRO_3: string;
2248
2307
  MISTAKE: string;
2249
2308
  MONEY: string;
2309
+ MYSTERY: string;
2310
+ MYTHIC: string;
2250
2311
  NODE_ACTIVITY_BG: string;
2251
2312
  NODE_CUSTOM_TEST_BG: string;
2252
2313
  NODE_DOWNLOAD_BG: string;
@@ -2284,6 +2345,7 @@ export declare const ILLUSTRATIONS: {
2284
2345
  PUZZLE_PATTERN_PURPLE: string;
2285
2346
  PUZZLE_PATTERN_YELLOW: string;
2286
2347
  PUZZLE_STUDENT: string;
2348
+ RARE: string;
2287
2349
  RADIAL_GRADIENT_BG: string;
2288
2350
  RADIAL_GRADIENT_BG_2: string;
2289
2351
  REFUND_POLICY: string;
@@ -2397,6 +2459,9 @@ export declare const IMAGES: {
2397
2459
  AWESOME: string;
2398
2460
  BADGE_SUCCESS: string;
2399
2461
  BG_EMPTY_RESOURCES: string;
2462
+ BLACK_BELT: string;
2463
+ BLUE_BELT: string;
2464
+ BROWN_BELT: string;
2400
2465
  CHATVA: string;
2401
2466
  CONGRATS: string;
2402
2467
  COOL: string;
@@ -2407,20 +2472,27 @@ export declare const IMAGES: {
2407
2472
  EKA: string;
2408
2473
  EMPTY_MIX_TESTS: string;
2409
2474
  GREAT: string;
2475
+ GREEN_BELT: string;
2410
2476
  HEXO: string;
2411
2477
  KUDOS: string;
2412
2478
  LEARNING_PLAN: string;
2413
2479
  LESSON_OVERVIEW_BANNER: string;
2480
+ MASTERED_BADGE: string;
2414
2481
  NO_INFO: string;
2415
2482
  OCTO: string;
2483
+ ORANGE_BELT: string;
2484
+ PURPLE_BELT: string;
2416
2485
  PUZZLE_CARD_EASY: string;
2417
2486
  PUZZLE_CARD_HARD: string;
2418
2487
  PUZZLE_CARD_MEDIUM: string;
2488
+ RED_BELT: string;
2419
2489
  SHARED: string;
2420
2490
  SHEET_REFERENCE: string;
2421
2491
  SPIRAL_PATTERN: string;
2422
2492
  TETRA: string;
2493
+ WHITE_BELT: string;
2423
2494
  WOW: string;
2495
+ YELLOW_BELT: string;
2424
2496
  ZODASA: string;
2425
2497
  };
2426
2498
 
@@ -3070,6 +3142,29 @@ declare interface IPreviewWorksheetProps {
3070
3142
  topOffset?: number;
3071
3143
  }
3072
3144
 
3145
+ declare interface IProgramOption {
3146
+ badges_enabled: boolean;
3147
+ board: string;
3148
+ board_id: string;
3149
+ code: string;
3150
+ cue_program_type: string;
3151
+ description: string;
3152
+ grade: string;
3153
+ grades: string[];
3154
+ id: string;
3155
+ is_active: boolean;
3156
+ is_current: boolean;
3157
+ is_current_stream_program: boolean;
3158
+ is_demo: boolean;
3159
+ is_live: boolean;
3160
+ name: string;
3161
+ program_type: string;
3162
+ rewards_enabled: boolean;
3163
+ stream: string;
3164
+ sub_stream: string | null;
3165
+ [key: string]: unknown;
3166
+ }
3167
+
3073
3168
  export declare interface IProject<T> {
3074
3169
  type: ProjectType;
3075
3170
  data: T[];
@@ -4272,6 +4367,11 @@ export declare interface IWebViewProps extends IframeHTMLAttributes<HTMLIFrameEl
4272
4367
  handleInfoMessage?: (infoMessage: IInfoMessage) => void;
4273
4368
  }
4274
4369
 
4370
+ declare interface IWinsCommonIcon {
4371
+ selected?: boolean;
4372
+ className?: string;
4373
+ }
4374
+
4275
4375
  declare interface IWinsPreviewProps {
4276
4376
  onWinsClick: () => void;
4277
4377
  rewardsHome: TRewardHomeData;
@@ -4638,6 +4738,7 @@ export declare const LOTTIE: {
4638
4738
  ALL_DONE: string;
4639
4739
  ANIMATED_AVATAR: string;
4640
4740
  AVATAR_SELECTED: string;
4741
+ AWESOME: string;
4641
4742
  BEGINNER1X: string;
4642
4743
  BRONZE_1: string;
4643
4744
  BRONZE_2: string;
@@ -4647,6 +4748,7 @@ export declare const LOTTIE: {
4647
4748
  CHAPTER_COMPLETED: string;
4648
4749
  CIRCULAR_LOADER: string;
4649
4750
  CLAP: string;
4751
+ CLAPPING_HANDS: string;
4650
4752
  CLOCK_30MIN: string;
4651
4753
  CLOCK_45MIN: string;
4652
4754
  CLOCK_60MIN: string;
@@ -4655,6 +4757,7 @@ export declare const LOTTIE: {
4655
4757
  COLOR_2: string;
4656
4758
  COLOR_3: string;
4657
4759
  COMPETITIVE_ARENA: string;
4760
+ COOL: string;
4658
4761
  DART: string;
4659
4762
  DIAMOND: string;
4660
4763
  DICE: string;
@@ -4689,6 +4792,7 @@ export declare const LOTTIE: {
4689
4792
  LEVEL_1_ALLSTAR: string;
4690
4793
  LIGHTNING: string;
4691
4794
  LIGHT_BULB: string;
4795
+ LIKE_BUTTON: string;
4692
4796
  MAGICWAND: string;
4693
4797
  MAIL: string;
4694
4798
  MECHANICAL_ARM: string;
@@ -4742,6 +4846,7 @@ export declare const LOTTIE: {
4742
4846
  SPINNER_WHITE: string;
4743
4847
  SPLASH_SCREEN: string;
4744
4848
  STAR: string;
4849
+ STAR_STRIKE_EMOJI: string;
4745
4850
  STUDENT_AVATAR: string;
4746
4851
  SUBJECTIVE: string;
4747
4852
  SUPER: string;
@@ -5178,6 +5283,20 @@ export declare const ResendOTP: NamedExoticComponent<IOTPResendProps>;
5178
5283
 
5179
5284
  export declare const ResetPasswordForm: MemoExoticComponent<({ onSubmit, onChange, formData, errors, isSubmitDisabled, isProcessing, isValid, }: IResetPasswordFormProps) => JSX.Element>;
5180
5285
 
5286
+ declare interface RewardElement {
5287
+ aggregate_for?: {
5288
+ name?: string;
5289
+ };
5290
+ aggregates?: number;
5291
+ }
5292
+
5293
+ declare interface RewardHomeData {
5294
+ data?: {
5295
+ user_rewards?: RewardElement[];
5296
+ user_stickers?: StickerElement[];
5297
+ };
5298
+ }
5299
+
5181
5300
  export declare const REWARDS_LIST: string[];
5182
5301
 
5183
5302
  export declare const RightIcon: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -5341,6 +5460,11 @@ declare const STICKER_BADGE: {
5341
5460
 
5342
5461
  declare type StickerEffect = 'burst_from_edges' | 'pop_expand' | 'float_up' | 'fall_down';
5343
5462
 
5463
+ declare interface StickerElement {
5464
+ badge_id?: string;
5465
+ name?: string;
5466
+ }
5467
+
5344
5468
  export declare const StickerFilledIcon: React.FC<React.SVGProps<SVGSVGElement>>;
5345
5469
 
5346
5470
  export declare const StickerIcon: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -5371,6 +5495,33 @@ export declare class StreakReductionLocalStorageUtil {
5371
5495
 
5372
5496
  export declare const StrikedEyeIcon: React.FC<React.SVGProps<SVGSVGElement>>;
5373
5497
 
5498
+ export declare const STUDENT_BADGE_STATUS: {
5499
+ ACKNOWLEDGED: string;
5500
+ ASSIGNED: string;
5501
+ UNASSIGNED: string;
5502
+ };
5503
+
5504
+ export declare const STUDENT_BADGE_TYPE: {
5505
+ COMMON: string;
5506
+ RARE: string;
5507
+ EPIC: string;
5508
+ LEGENDARY: string;
5509
+ MYTHIC: string;
5510
+ MYSTERY: string;
5511
+ };
5512
+
5513
+ export declare const StudentBadgeList: MemoExoticComponent<({ invalidateRewardsHome, openModal, topOffset, userBadges, currentScreenWidth, handleScrollTo, scrollPosition, }: StudentBadgeListProps) => JSX.Element>;
5514
+
5515
+ declare interface StudentBadgeListProps {
5516
+ invalidateRewardsHome: () => void;
5517
+ openModal: (modal: string, props?: unknown) => void;
5518
+ topOffset?: number;
5519
+ userBadges: Record<string, Badge[]>;
5520
+ currentScreenWidth: number;
5521
+ handleScrollTo: (position: number) => void;
5522
+ scrollPosition: number;
5523
+ }
5524
+
5374
5525
  export declare const StudentDetails: FC<IStudentDetailsProps>;
5375
5526
 
5376
5527
  export declare const StudentProfileHighlights: FC<IStudentProfileHighlightsProps>;
@@ -6885,6 +7036,22 @@ export declare enum WebViewEvent {
6885
7036
  */
6886
7037
  export declare const WHITELIST_EVENTS: Record<string, PLUGIN_NAME[]>;
6887
7038
 
7039
+ export declare const WinsCommonIcon: React_2.FC<IWinsCommonIcon>;
7040
+
7041
+ export declare const WinsHeader: React_2.NamedExoticComponent<WinsTabHeaderProps>;
7042
+
7043
+ declare interface WinsTabHeaderProps {
7044
+ currentSelectedProgram?: IProgramOption;
7045
+ goldCoins?: number;
7046
+ onBackClick?: () => void;
7047
+ onProgramChange?: (p: IProgramOption) => void;
7048
+ programOptions?: IProgramOption[];
7049
+ silverCoins?: number;
7050
+ showLeftBorder?: boolean;
7051
+ topOffset?: number;
7052
+ widthOffset?: number;
7053
+ }
7054
+
6888
7055
  export declare const Worksheet: NamedExoticComponent<IWorksheetContainerProps & RefAttributes<IWorksheetRef>>;
6889
7056
 
6890
7057
  export declare const WORKSHEET_ACTION_BAR_HEIGHT = 56;
@@ -6912,6 +7079,7 @@ declare const ZINDEX: {
6912
7079
  readonly GOAL_CHAPTER_SHEETS_MENU: 4;
6913
7080
  readonly JOURNEY_OVERLAY: 1000;
6914
7081
  readonly CHAPTER_COMPLETED_LOTTIE: 5;
7082
+ readonly WINS_HEADER: 11;
6915
7083
  };
6916
7084
 
6917
7085
  export { }