@cuemath/leap 3.1.7-gg1 → 3.1.8-j

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 (85) hide show
  1. package/dist/assets/illustrations/illustrations.js +1 -1
  2. package/dist/assets/illustrations/illustrations.js.map +1 -1
  3. package/dist/constants/country.js +994 -2
  4. package/dist/constants/country.js.map +1 -1
  5. package/dist/features/auth/account-selector/account-selector-styled.js +9 -0
  6. package/dist/features/auth/account-selector/account-selector-styled.js.map +1 -0
  7. package/dist/features/auth/account-selector/account-selector.js +60 -36
  8. package/dist/features/auth/account-selector/account-selector.js.map +1 -1
  9. package/dist/features/auth/comps/auth-page-layout/{auth-page-layout-styles.js → auth-page-layout-styled.js} +1 -1
  10. package/dist/features/auth/comps/auth-page-layout/{auth-page-layout-styles.js.map → auth-page-layout-styled.js.map} +1 -1
  11. package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js +20 -9
  12. package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js.map +1 -1
  13. package/dist/features/auth/comps/auth-static-panel/auth-static-panel.js +1 -1
  14. package/dist/features/auth/comps/auth-static-panel/auth-static-panel.js.map +1 -1
  15. package/dist/features/auth/forgot-password/forgot-password-styled.js +30 -4
  16. package/dist/features/auth/forgot-password/forgot-password-styled.js.map +1 -1
  17. package/dist/features/auth/forgot-password/otp-form/otp-form.js +27 -29
  18. package/dist/features/auth/forgot-password/otp-form/otp-form.js.map +1 -1
  19. package/dist/features/auth/forgot-password/reset-password-form/reset-password-form.js +22 -27
  20. package/dist/features/auth/forgot-password/reset-password-form/reset-password-form.js.map +1 -1
  21. package/dist/features/auth/forgot-password/user-identifier-form/user-identifier-form.js +25 -28
  22. package/dist/features/auth/forgot-password/user-identifier-form/user-identifier-form.js.map +1 -1
  23. package/dist/features/auth/login/identifier-otp-form/identifier-otp-form-styled.js +17 -4
  24. package/dist/features/auth/login/identifier-otp-form/identifier-otp-form-styled.js.map +1 -1
  25. package/dist/features/auth/login/identifier-otp-form/identifier-otp-form.js +88 -79
  26. package/dist/features/auth/login/identifier-otp-form/identifier-otp-form.js.map +1 -1
  27. package/dist/features/auth/login/login-styled.js +26 -0
  28. package/dist/features/auth/login/login-styled.js.map +1 -0
  29. package/dist/features/auth/login/social-account-not-found/social-account-not-found.js +27 -21
  30. package/dist/features/auth/login/social-account-not-found/social-account-not-found.js.map +1 -1
  31. package/dist/features/auth/login/social-login-methods/social-login-methods-styled.js +9 -0
  32. package/dist/features/auth/login/social-login-methods/social-login-methods-styled.js.map +1 -0
  33. package/dist/features/auth/login/social-login-methods/social-login-methods.js +43 -34
  34. package/dist/features/auth/login/social-login-methods/social-login-methods.js.map +1 -1
  35. package/dist/features/auth/login/username-password-form/username-password-form.js +68 -71
  36. package/dist/features/auth/login/username-password-form/username-password-form.js.map +1 -1
  37. package/dist/features/auth/signup/custom-input-field/country-selector/country-list-menu.js +1 -1
  38. package/dist/features/auth/signup/custom-input-field/country-selector/country-list-menu.js.map +1 -1
  39. package/dist/features/auth/signup/signup-constants.js +6 -998
  40. package/dist/features/auth/signup/signup-constants.js.map +1 -1
  41. package/dist/features/auth/user-list/user-item/user-item.js +33 -32
  42. package/dist/features/auth/user-list/user-item/user-item.js.map +1 -1
  43. package/dist/features/auth/user-list/user-list.js +60 -51
  44. package/dist/features/auth/user-list/user-list.js.map +1 -1
  45. package/dist/features/hooks/use-viewport/use-viewport.js +21 -0
  46. package/dist/features/hooks/use-viewport/use-viewport.js.map +1 -0
  47. package/dist/features/ui/buttons/button/button-styled.js +29 -29
  48. package/dist/features/ui/buttons/button/button-styled.js.map +1 -1
  49. package/dist/features/utils/media.js +16 -0
  50. package/dist/features/utils/media.js.map +1 -0
  51. package/dist/index.d.ts +22 -71
  52. package/dist/index.js +348 -350
  53. package/dist/index.js.map +1 -1
  54. package/dist/node_modules/decode-uri-component/index.js.map +1 -0
  55. package/dist/node_modules/query-string/base.js +1 -1
  56. package/dist/node_modules/uuid/dist/esm-browser/native.js +7 -0
  57. package/dist/node_modules/uuid/dist/esm-browser/native.js.map +1 -0
  58. package/dist/node_modules/uuid/dist/esm-browser/rng.js +3 -2
  59. package/dist/node_modules/uuid/dist/esm-browser/rng.js.map +1 -1
  60. package/dist/node_modules/uuid/dist/esm-browser/stringify.js +6 -10
  61. package/dist/node_modules/uuid/dist/esm-browser/stringify.js.map +1 -1
  62. package/dist/node_modules/uuid/dist/esm-browser/v4.js +12 -9
  63. package/dist/node_modules/uuid/dist/esm-browser/v4.js.map +1 -1
  64. package/dist/static/cuemath-app-qr-code.7205ee79.svg +1 -0
  65. package/package.json +1 -1
  66. package/dist/features/ui/modals/modal-context.js +0 -13
  67. package/dist/features/ui/modals/modal-context.js.map +0 -1
  68. package/dist/features/ui/modals/modal-helpers.js +0 -17
  69. package/dist/features/ui/modals/modal-helpers.js.map +0 -1
  70. package/dist/features/ui/modals/modal-provider.js +0 -48
  71. package/dist/features/ui/modals/modal-provider.js.map +0 -1
  72. package/dist/features/ui/modals/modal-styled.js +0 -154
  73. package/dist/features/ui/modals/modal-styled.js.map +0 -1
  74. package/dist/features/ui/modals/modal.js +0 -19
  75. package/dist/features/ui/modals/modal.js.map +0 -1
  76. package/dist/features/ui/modals/use-modal-actions.js +0 -10
  77. package/dist/features/ui/modals/use-modal-actions.js.map +0 -1
  78. package/dist/features/ui/modals/use-modal-params.js +0 -10
  79. package/dist/features/ui/modals/use-modal-params.js.map +0 -1
  80. package/dist/node_modules/query-string/node_modules/decode-uri-component/index.js.map +0 -1
  81. package/dist/node_modules/uuid/dist/esm-browser/regex.js +0 -5
  82. package/dist/node_modules/uuid/dist/esm-browser/regex.js.map +0 -1
  83. package/dist/node_modules/uuid/dist/esm-browser/validate.js +0 -8
  84. package/dist/node_modules/uuid/dist/esm-browser/validate.js.map +0 -1
  85. /package/dist/node_modules/{query-string/node_modules/decode-uri-component → decode-uri-component}/index.js +0 -0
package/dist/index.d.ts CHANGED
@@ -758,7 +758,7 @@ declare interface IButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>,
758
758
  shape?: 'curved' | 'square';
759
759
  disabled?: boolean;
760
760
  busy?: boolean;
761
- width?: number;
761
+ width?: number | string;
762
762
  widthX?: number;
763
763
  Icon?: React.FC<React.SVGProps<SVGSVGElement>>;
764
764
  iconPosition?: 'left' | 'right';
@@ -1168,16 +1168,6 @@ declare interface ICountdownTimer {
1168
1168
  theme: 'GREEN_1' | 'ORANGE_1';
1169
1169
  }
1170
1170
 
1171
- declare interface ICountryOption {
1172
- code: string;
1173
- id: string;
1174
- value: string;
1175
- label: string;
1176
- icon: string;
1177
- url: string;
1178
- geoIPCountryCode: string;
1179
- }
1180
-
1181
1171
  export declare interface ICreateUserPayloadDal {
1182
1172
  username: string;
1183
1173
  grade: string;
@@ -2360,45 +2350,6 @@ declare interface IMilestoneWidgetResourcesProps extends INodeCardCallbacks {
2360
2350
  canUpdatePlan?: boolean;
2361
2351
  }
2362
2352
 
2363
- /**
2364
- * Configuration for a modal component
2365
- */
2366
- export declare interface IModal {
2367
- /** Unique identifier for the modal */
2368
- name: string;
2369
- /** Content to display inside the modal */
2370
- element: JSX.Element;
2371
- /** Rendering style of the modal */
2372
- renderAs?: 'modal' | 'fullscreen' | 'spotlight';
2373
- /** Whether the modal can be dismissed by clicking outside or ESC key (default: true) */
2374
- isDismissable?: boolean;
2375
- /** Whether the modal requires authentication to view (default: true) */
2376
- isPrivate?: boolean;
2377
- /** Width of the modal in CSS units (e.g., '500px', '80vw') */
2378
- modalWidth: string;
2379
- }
2380
-
2381
- /**
2382
- * Context for managing modals throughout the application
2383
- */
2384
- declare interface IModalContext {
2385
- /** Currently active modal or null if no modal is open */
2386
- modal: IModal | null;
2387
- /** Parameters passed to the modal when opened */
2388
- modalParams?: Record<string, unknown>;
2389
- /** Opens a modal by name with optional parameters */
2390
- openModal: <T = undefined>(name: string, params?: T) => void;
2391
- /** Closes the currently open modal */
2392
- closeModal: () => void;
2393
- /** Whether the modal is in the process of closing (for animation) */
2394
- isClosing?: boolean;
2395
- }
2396
-
2397
- declare interface IModalProviderProps extends PropsWithChildren {
2398
- modals: IModal[];
2399
- isUserAuthenticated?: boolean;
2400
- }
2401
-
2402
2353
  export declare interface IMultiplayerWebGameProps extends IBaseWebGameProps, ISyncableWebGameProps {
2403
2354
  enablePlayerTurnIndicators?: boolean;
2404
2355
  }
@@ -2542,7 +2493,7 @@ declare interface IOTPResendProps {
2542
2493
  showVoiceOTP?: boolean;
2543
2494
  disabled?: boolean;
2544
2495
  renderAs?: 'submit' | 'text';
2545
- width?: number;
2496
+ width?: number | string;
2546
2497
  }
2547
2498
 
2548
2499
  declare interface IOutcomeConfig {
@@ -3094,7 +3045,8 @@ declare interface ISingleFieldFormProps {
3094
3045
 
3095
3046
  declare interface ISocialAccountNotFoundProps {
3096
3047
  onRetryLogin: () => void;
3097
- onGoToSignup: () => void;
3048
+ onGoToSignup?: () => void;
3049
+ showSignupButton?: boolean;
3098
3050
  }
3099
3051
 
3100
3052
  declare interface ISocialLoginMethodsProps {
@@ -3603,14 +3555,6 @@ declare interface IUseIsTabBlocked {
3603
3555
  (): IMultiTabBlockerContextValue;
3604
3556
  }
3605
3557
 
3606
- declare interface IUseModalActions {
3607
- (): Pick<IModalContext, 'openModal' | 'closeModal' | 'isClosing'>;
3608
- }
3609
-
3610
- declare interface IUseModalParams {
3611
- <T = undefined>(): T;
3612
- }
3613
-
3614
3558
  declare interface IusePointerSyncMethods {
3615
3559
  publishMouseMove?: (data: IPointerData) => void;
3616
3560
  susbcribeMouseMove?: (qrId: string, cb: (data: IPointerData) => void) => void;
@@ -3675,6 +3619,12 @@ declare interface IUseTrialSessionMessageBroker {
3675
3619
  };
3676
3620
  }
3677
3621
 
3622
+ declare interface IUseViewportReturn {
3623
+ isCompact: boolean;
3624
+ isMobile: boolean;
3625
+ isDesktop: boolean;
3626
+ }
3627
+
3678
3628
  declare interface IUseWorksheetLayout {
3679
3629
  (options: {
3680
3630
  userType: TUserTypes;
@@ -4143,6 +4093,11 @@ export declare const Maintenance: React_2.FC<IMaintenanceProps>;
4143
4093
 
4144
4094
  declare const MASTERY: "mastery";
4145
4095
 
4096
+ export declare const media: {
4097
+ minDesktop: string;
4098
+ minLarge: string;
4099
+ };
4100
+
4146
4101
  export declare const MilestoneActionWidget: React_2.FC<IMilestoneActionWidgetProps>;
4147
4102
 
4148
4103
  export declare const MilestoneCreate: React.FC<IMileStoneCreateContainerProps>;
@@ -4163,11 +4118,6 @@ export declare const MistakeIcon: React.FC<React.SVGProps<SVGSVGElement>>;
4163
4118
 
4164
4119
  export declare const Mobile: React.FC<React.SVGProps<SVGSVGElement>>;
4165
4120
 
4166
- /**
4167
- * Provider component that manages modal state and provides modal context to child components
4168
- */
4169
- export declare const ModalProvider: FC<IModalProviderProps>;
4170
-
4171
4121
  export declare const MoreVerticalIcon: React.FC<React.SVGProps<SVGSVGElement>>;
4172
4122
 
4173
4123
  export declare const MultiTabBlocker: FC<PropsWithChildren<IMultiTabBlockerProps>>;
@@ -4572,7 +4522,7 @@ export declare const SkipColoredIcon: React.FC<React.SVGProps<SVGSVGElement>>;
4572
4522
 
4573
4523
  export declare const SkipIcon: React.FC<React.SVGProps<SVGSVGElement>>;
4574
4524
 
4575
- export declare const SocialAccountNotFound: MemoExoticComponent<({ onRetryLogin, onGoToSignup }: ISocialAccountNotFoundProps) => JSX_2.Element>;
4525
+ export declare const SocialAccountNotFound: MemoExoticComponent<({ onRetryLogin, onGoToSignup, showSignupButton, }: ISocialAccountNotFoundProps) => JSX_2.Element>;
4576
4526
 
4577
4527
  export declare const SocialLoginMethods: NamedExoticComponent<ISocialLoginMethodsProps>;
4578
4528
 
@@ -5528,7 +5478,10 @@ declare type TSectionSummary = {
5528
5478
  modules: TSATModule[];
5529
5479
  };
5530
5480
 
5531
- export declare type TSelectedCountry = Pick<ICountryOption, 'id' | 'code'>;
5481
+ export declare type TSelectedCountry = {
5482
+ id: string;
5483
+ code: string;
5484
+ };
5532
5485
 
5533
5486
  declare type TSheetAttemptLocation = keyof typeof SHEET_ATTEMPT_LOCATION;
5534
5487
 
@@ -5882,10 +5835,6 @@ export declare const useIsTabBlocked: IUseIsTabBlocked;
5882
5835
 
5883
5836
  export declare const useJourney: () => IJourneyContext;
5884
5837
 
5885
- export declare const useModalActions: IUseModalActions;
5886
-
5887
- export declare const useModalParams: IUseModalParams;
5888
-
5889
5838
  export declare const usePointerSync: ({ userType, targetUserId, }: IusePointerSyncProps) => IusePointerSyncMethods;
5890
5839
 
5891
5840
  export declare const User2Icon: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -5908,6 +5857,8 @@ export declare const useTrialSessionMessageBroker: IUseTrialSessionMessageBroker
5908
5857
 
5909
5858
  export declare const useUIContext: () => UIContextProps;
5910
5859
 
5860
+ export declare const useViewport: () => IUseViewportReturn;
5861
+
5911
5862
  export declare const useWorksheetLayout: IUseWorksheetLayout;
5912
5863
 
5913
5864
  export declare const useZoomDisable: () => void;