@cuemath/leap 3.2.22 → 3.2.23-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 (43) hide show
  1. package/dist/features/stickers/sticker-data.js +234 -0
  2. package/dist/features/stickers/sticker-data.js.map +1 -0
  3. package/dist/features/{ui/sticker-grid/sticker-grid-styles.js → stickers/sticker-selector/sticker-selector-styles.js} +21 -31
  4. package/dist/features/stickers/sticker-selector/sticker-selector-styles.js.map +1 -0
  5. package/dist/features/stickers/sticker-selector/sticker-selector.js +27 -0
  6. package/dist/features/stickers/sticker-selector/sticker-selector.js.map +1 -0
  7. package/dist/features/stickers/sticker-selector/sticker.js +57 -0
  8. package/dist/features/stickers/sticker-selector/sticker.js.map +1 -0
  9. package/dist/features/{ui/stickers/stickers-effects.js → stickers/stickers-effects/effects.js} +6 -6
  10. package/dist/features/stickers/stickers-effects/effects.js.map +1 -0
  11. package/dist/features/stickers/stickers-effects/stickers-cache.js +19 -0
  12. package/dist/features/stickers/stickers-effects/stickers-cache.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 +54 -0
  18. package/dist/features/stickers/stickers-effects/stickers-effects.js.map +1 -0
  19. package/dist/features/ui/dot-lottie-animations/dot-lottie-animation.js +88 -75
  20. package/dist/features/ui/dot-lottie-animations/dot-lottie-animation.js.map +1 -1
  21. package/dist/features/ui/lottie-animation/lottie-animation.js +36 -31
  22. package/dist/features/ui/lottie-animation/lottie-animation.js.map +1 -1
  23. package/dist/features/ui/modals/modal-styled.js +39 -8
  24. package/dist/features/ui/modals/modal-styled.js.map +1 -1
  25. package/dist/features/ui/modals/modal.js +31 -31
  26. package/dist/features/ui/modals/modal.js.map +1 -1
  27. package/dist/index.d.ts +75 -34
  28. package/dist/index.js +341 -339
  29. package/dist/index.js.map +1 -1
  30. package/package.json +1 -1
  31. package/dist/features/ui/sticker-grid/sticker-grid-styles.js.map +0 -1
  32. package/dist/features/ui/sticker-grid/sticker-grid.js +0 -24
  33. package/dist/features/ui/sticker-grid/sticker-grid.js.map +0 -1
  34. package/dist/features/ui/sticker-grid/sticker.js +0 -57
  35. package/dist/features/ui/sticker-grid/sticker.js.map +0 -1
  36. package/dist/features/ui/stickers/constants.js +0 -6
  37. package/dist/features/ui/stickers/constants.js.map +0 -1
  38. package/dist/features/ui/stickers/stickers-effects.js.map +0 -1
  39. package/dist/features/ui/stickers/stickers-styled.js.map +0 -1
  40. package/dist/features/ui/stickers/stickers-utils.js +0 -91
  41. package/dist/features/ui/stickers/stickers-utils.js.map +0 -1
  42. package/dist/features/ui/stickers/stickers.js +0 -40
  43. package/dist/features/ui/stickers/stickers.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"modal.js","sources":["../../../../src/features/ui/modals/modal.tsx"],"sourcesContent":["import type { IModalProps } from './modal-types';\nimport type { FC } from 'react';\n\nimport { captureException } from '@sentry/browser';\nimport { memo, Suspense, useCallback } from 'react';\nimport { ErrorBoundary } from 'react-error-boundary';\n\nimport CrossIcon from '../../../assets/line-icons/icons/cross';\nimport Error from '../../ui/error/error';\nimport Clickable from '../buttons/clickable/clickable';\nimport FlexView from '../layout/flex-view';\nimport AppLoader from '../loader/app-loader/app-loader';\nimport * as Styled from './modal-styled';\n\n/**\n * Modal component that renders modal content with close button\n * Handles animation state for entry and exit transitions\n */\nconst Modal: FC<IModalProps> = memo(({ modal, isClosing = false, onClose }) => {\n const { renderAs, element, modalWidth, isDismissable } = modal;\n\n const sentryCaptureException = useCallback((error: Error) => {\n captureException(error);\n }, []);\n\n const handleStopPropagation = useCallback((e: React.MouseEvent) => {\n e.stopPropagation();\n }, []);\n\n if (renderAs === 'bottom-sheet') {\n return (\n <Styled.ModalContainer $isClosing={isClosing} onClick={isDismissable ? onClose : () => null}>\n <Styled.BottomSheetModal $isClosing={isClosing} onClick={handleStopPropagation}>\n <ErrorBoundary\n fallback={\n <FlexView $gap={24}>\n <Error height=\"100%\" />\n </FlexView>\n }\n onError={sentryCaptureException}\n >\n <Suspense fallback={<AppLoader height=\"50vh\" />}>{element}</Suspense>\n </ErrorBoundary>\n </Styled.BottomSheetModal>\n </Styled.ModalContainer>\n );\n }\n\n if (renderAs === 'spotlight') {\n return (\n <Styled.ModalContainer $isClosing={isClosing}>\n <ErrorBoundary\n fallback={\n <Styled.ModalLoaderWrapper>\n <Error height=\"100vh\" />\n </Styled.ModalLoaderWrapper>\n }\n onError={sentryCaptureException}\n >\n <Suspense\n fallback={\n <Styled.ModalLoaderWrapper>\n <AppLoader height=\"100vh\" />\n </Styled.ModalLoaderWrapper>\n }\n >\n <Styled.SpotlightModal $isClosing={isClosing} />\n {element}\n </Suspense>\n </ErrorBoundary>\n </Styled.ModalContainer>\n );\n }\n\n return (\n <Styled.ModalContainer $isClosing={isClosing}>\n <Styled.BaseModal $isClosing={isClosing} $width={modalWidth}>\n {isDismissable !== false && (\n <Styled.CloseButtonContainer $modalWidth={modalWidth}>\n <Clickable label=\"Close\" onClick={onClose}>\n <CrossIcon width={40} height={40} />\n </Clickable>\n </Styled.CloseButtonContainer>\n )}\n <Styled.BaseModalContent $modalWidth={modalWidth}>\n <ErrorBoundary\n fallback={<Error height=\"50vh\" size=\"compact\" />}\n onError={sentryCaptureException}\n >\n <Suspense fallback={<AppLoader height=\"50vh\" />}>{element}</Suspense>\n </ErrorBoundary>\n </Styled.BaseModalContent>\n </Styled.BaseModal>\n </Styled.ModalContainer>\n );\n});\n\nexport default Modal;\n"],"names":["Modal","memo","modal","isClosing","onClose","renderAs","element","modalWidth","isDismissable","sentryCaptureException","useCallback","error","captureException","handleStopPropagation","e","Styled.ModalContainer","Styled.BottomSheetModal","jsx","ErrorBoundary","FlexView","Error","Suspense","AppLoader","Styled.ModalLoaderWrapper","jsxs","Styled.SpotlightModal","Styled.BaseModal","Styled.CloseButtonContainer","Clickable","CrossIcon","Styled.BaseModalContent"],"mappings":";;;;;;;;;;AAkBM,MAAAA,IAAyBC,EAAK,CAAC,EAAE,OAAAC,GAAO,WAAAC,IAAY,IAAO,SAAAC,QAAc;AAC7E,QAAM,EAAE,UAAAC,GAAU,SAAAC,GAAS,YAAAC,GAAY,eAAAC,MAAkBN,GAEnDO,IAAyBC,EAAY,CAACC,MAAiB;AAC3D,IAAAC,EAAiBD,CAAK;AAAA,EACxB,GAAG,CAAE,CAAA,GAECE,IAAwBH,EAAY,CAACI,MAAwB;AACjE,IAAAA,EAAE,gBAAgB;AAAA,EACpB,GAAG,CAAE,CAAA;AAEL,SAAIT,MAAa,mCAEZU,GAAA,EAAsB,YAAYZ,GAAW,SAASK,IAAgBJ,IAAU,MAAM,MACrF,4BAACY,GAAA,EAAwB,YAAYb,GAAW,SAASU,GACvD,UAAA,gBAAAI;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,4BACGC,GAAS,EAAA,MAAM,IACd,UAAC,gBAAAF,EAAAG,GAAA,EAAM,QAAO,OAAA,CAAO,EACvB,CAAA;AAAA,MAEF,SAASX;AAAA,MAET,UAAA,gBAAAQ,EAACI,KAAS,UAAU,gBAAAJ,EAACK,KAAU,QAAO,OAAO,CAAA,GAAK,UAAQhB,EAAA,CAAA;AAAA,IAAA;AAAA,EAAA,EAE9D,CAAA,EACF,CAAA,IAIAD,MAAa,cAEZ,gBAAAY,EAAAF,GAAA,EAAsB,YAAYZ,GACjC,UAAA,gBAAAc;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,4BACGK,GAAA,EACC,UAAC,gBAAAN,EAAAG,GAAA,EAAM,QAAO,QAAQ,CAAA,GACxB;AAAA,MAEF,SAASX;AAAA,MAET,UAAA,gBAAAe;AAAA,QAACH;AAAA,QAAA;AAAA,UACC,4BACGE,GAAA,EACC,UAAC,gBAAAN,EAAAK,GAAA,EAAU,QAAO,QAAQ,CAAA,GAC5B;AAAA,UAGF,UAAA;AAAA,YAAA,gBAAAL,EAACQ,GAAA,EAAsB,YAAYtB,EAAW,CAAA;AAAA,YAC7CG;AAAA,UAAA;AAAA,QAAA;AAAA,MACH;AAAA,IAAA;AAAA,EAEJ,EAAA,CAAA,IAKD,gBAAAW,EAAAF,GAAA,EAAsB,YAAYZ,GACjC,UAAC,gBAAAqB,EAAAE,GAAA,EAAiB,YAAYvB,GAAW,QAAQI,GAC9C,UAAA;AAAA,IAAkBC,MAAA,wBAChBmB,GAAA,EAA4B,aAAapB,GACxC,4BAACqB,GAAU,EAAA,OAAM,SAAQ,SAASxB,GAChC,4BAACyB,GAAU,EAAA,OAAO,IAAI,QAAQ,IAAI,GACpC,EACF,CAAA;AAAA,IAED,gBAAAZ,EAAAa,GAAA,EAAwB,aAAavB,GACpC,UAAA,gBAAAU;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,UAAW,gBAAAD,EAAAG,GAAA,EAAM,QAAO,QAAO,MAAK,WAAU;AAAA,QAC9C,SAASX;AAAA,QAET,UAAA,gBAAAQ,EAACI,KAAS,UAAU,gBAAAJ,EAACK,KAAU,QAAO,OAAO,CAAA,GAAK,UAAQhB,EAAA,CAAA;AAAA,MAAA;AAAA,IAAA,GAE9D;AAAA,EAAA,EACF,CAAA,EACF,CAAA;AAEJ,CAAC;"}
1
+ {"version":3,"file":"modal.js","sources":["../../../../src/features/ui/modals/modal.tsx"],"sourcesContent":["import type { IModalProps } from './modal-types';\nimport type { FC } from 'react';\n\nimport { captureException } from '@sentry/browser';\nimport { memo, Suspense, useCallback } from 'react';\nimport { ErrorBoundary } from 'react-error-boundary';\n\nimport CrossIcon from '../../../assets/line-icons/icons/cross';\nimport Error from '../../ui/error/error';\nimport Clickable from '../buttons/clickable/clickable';\nimport FlexView from '../layout/flex-view';\nimport AppLoader from '../loader/app-loader/app-loader';\nimport * as Styled from './modal-styled';\n\n/**\n * Modal component that renders modal content with close button\n * Handles animation state for entry and exit transitions\n */\nconst Modal: FC<IModalProps> = memo(({ modal, isClosing = false, onClose }) => {\n const { renderAs, element, modalWidth, isDismissable } = modal;\n\n const sentryCaptureException = useCallback((error: Error) => {\n captureException(error);\n }, []);\n\n const handleStopPropagation = useCallback((e: React.MouseEvent) => {\n e.stopPropagation();\n }, []);\n\n if (renderAs === 'bottom-sheet') {\n return (\n <Styled.ModalContainer $isClosing={isClosing} onClick={isDismissable ? onClose : () => null}>\n <Styled.BottomSheetModal $isClosing={isClosing} onClick={handleStopPropagation}>\n <ErrorBoundary\n fallback={\n <FlexView $gap={24}>\n <Error height=\"100%\" />\n </FlexView>\n }\n onError={sentryCaptureException}\n >\n <Suspense fallback={<AppLoader height=\"50vh\" />}>{element}</Suspense>\n </ErrorBoundary>\n </Styled.BottomSheetModal>\n </Styled.ModalContainer>\n );\n }\n\n if (renderAs === 'spotlight') {\n return (\n <Styled.ModalContainer $isClosing={isClosing}>\n <ErrorBoundary\n fallback={\n <Styled.ModalLoaderWrapper>\n <Error height=\"100vh\" />\n </Styled.ModalLoaderWrapper>\n }\n onError={sentryCaptureException}\n >\n <Suspense\n fallback={\n <Styled.ModalLoaderWrapper>\n <AppLoader height=\"100vh\" />\n </Styled.ModalLoaderWrapper>\n }\n >\n <Styled.SpotlightModal $isClosing={isClosing} />\n {element}\n </Suspense>\n </ErrorBoundary>\n </Styled.ModalContainer>\n );\n }\n\n if (renderAs === 'fullscreen-transparent') {\n return (\n <Styled.TransparentModalContainer $isClosing={isClosing}>\n {element}\n </Styled.TransparentModalContainer>\n );\n }\n\n return (\n <Styled.ModalContainer $isClosing={isClosing}>\n <Styled.BaseModal $isClosing={isClosing} $width={modalWidth}>\n {isDismissable !== false && (\n <Styled.CloseButtonContainer $modalWidth={modalWidth}>\n <Clickable label=\"Close\" onClick={onClose}>\n <CrossIcon width={40} height={40} />\n </Clickable>\n </Styled.CloseButtonContainer>\n )}\n <Styled.BaseModalContent $modalWidth={modalWidth}>\n <ErrorBoundary\n fallback={<Error height=\"50vh\" size=\"compact\" />}\n onError={sentryCaptureException}\n >\n <Suspense fallback={<AppLoader height=\"50vh\" />}>{element}</Suspense>\n </ErrorBoundary>\n </Styled.BaseModalContent>\n </Styled.BaseModal>\n </Styled.ModalContainer>\n );\n});\n\nexport default Modal;\n"],"names":["Modal","memo","modal","isClosing","onClose","renderAs","element","modalWidth","isDismissable","sentryCaptureException","useCallback","error","captureException","handleStopPropagation","e","Styled.ModalContainer","Styled.BottomSheetModal","jsx","ErrorBoundary","FlexView","Error","Suspense","AppLoader","Styled.ModalLoaderWrapper","jsxs","Styled.SpotlightModal","Styled.TransparentModalContainer","Styled.BaseModal","Styled.CloseButtonContainer","Clickable","CrossIcon","Styled.BaseModalContent"],"mappings":";;;;;;;;;;AAkBM,MAAAA,IAAyBC,EAAK,CAAC,EAAE,OAAAC,GAAO,WAAAC,IAAY,IAAO,SAAAC,QAAc;AAC7E,QAAM,EAAE,UAAAC,GAAU,SAAAC,GAAS,YAAAC,GAAY,eAAAC,MAAkBN,GAEnDO,IAAyBC,EAAY,CAACC,MAAiB;AAC3D,IAAAC,EAAiBD,CAAK;AAAA,EACxB,GAAG,CAAE,CAAA,GAECE,IAAwBH,EAAY,CAACI,MAAwB;AACjE,IAAAA,EAAE,gBAAgB;AAAA,EACpB,GAAG,CAAE,CAAA;AAEL,SAAIT,MAAa,mCAEZU,GAAA,EAAsB,YAAYZ,GAAW,SAASK,IAAgBJ,IAAU,MAAM,MACrF,4BAACY,GAAA,EAAwB,YAAYb,GAAW,SAASU,GACvD,UAAA,gBAAAI;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,4BACGC,GAAS,EAAA,MAAM,IACd,UAAC,gBAAAF,EAAAG,GAAA,EAAM,QAAO,OAAA,CAAO,EACvB,CAAA;AAAA,MAEF,SAASX;AAAA,MAET,UAAA,gBAAAQ,EAACI,KAAS,UAAU,gBAAAJ,EAACK,KAAU,QAAO,OAAO,CAAA,GAAK,UAAQhB,EAAA,CAAA;AAAA,IAAA;AAAA,EAAA,EAE9D,CAAA,EACF,CAAA,IAIAD,MAAa,cAEZ,gBAAAY,EAAAF,GAAA,EAAsB,YAAYZ,GACjC,UAAA,gBAAAc;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,4BACGK,GAAA,EACC,UAAC,gBAAAN,EAAAG,GAAA,EAAM,QAAO,QAAQ,CAAA,GACxB;AAAA,MAEF,SAASX;AAAA,MAET,UAAA,gBAAAe;AAAA,QAACH;AAAA,QAAA;AAAA,UACC,4BACGE,GAAA,EACC,UAAC,gBAAAN,EAAAK,GAAA,EAAU,QAAO,QAAQ,CAAA,GAC5B;AAAA,UAGF,UAAA;AAAA,YAAA,gBAAAL,EAACQ,GAAA,EAAsB,YAAYtB,EAAW,CAAA;AAAA,YAC7CG;AAAA,UAAA;AAAA,QAAA;AAAA,MACH;AAAA,IAAA;AAAA,EAEJ,EAAA,CAAA,IAIAD,MAAa,6CAEZqB,GAAA,EAAiC,YAAYvB,GAC3C,UACHG,EAAA,CAAA,IAKD,gBAAAW,EAAAF,GAAA,EAAsB,YAAYZ,GACjC,UAAC,gBAAAqB,EAAAG,GAAA,EAAiB,YAAYxB,GAAW,QAAQI,GAC9C,UAAA;AAAA,IAAkBC,MAAA,wBAChBoB,GAAA,EAA4B,aAAarB,GACxC,4BAACsB,GAAU,EAAA,OAAM,SAAQ,SAASzB,GAChC,4BAAC0B,GAAU,EAAA,OAAO,IAAI,QAAQ,IAAI,GACpC,EACF,CAAA;AAAA,IAED,gBAAAb,EAAAc,GAAA,EAAwB,aAAaxB,GACpC,UAAA,gBAAAU;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,UAAW,gBAAAD,EAAAG,GAAA,EAAM,QAAO,QAAO,MAAK,WAAU;AAAA,QAC9C,SAASX;AAAA,QAET,UAAA,gBAAAQ,EAACI,KAAS,UAAU,gBAAAJ,EAACK,KAAU,QAAO,OAAO,CAAA,GAAK,UAAQhB,EAAA,CAAA;AAAA,MAAA;AAAA,IAAA,GAE9D;AAAA,EAAA,EACF,CAAA,EACF,CAAA;AAEJ,CAAC;"}
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
 
@@ -1450,6 +1451,15 @@ declare interface IDigitalMeterProps {
1450
1451
  actAsTimer?: boolean;
1451
1452
  }
1452
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
+
1453
1463
  declare interface IDrawerProps {
1454
1464
  isOpen: boolean;
1455
1465
  onClose?: () => void;
@@ -2254,23 +2264,6 @@ declare interface ILogger {
2254
2264
  (eventName: string, data?: Record<string, unknown>): void;
2255
2265
  }
2256
2266
 
2257
- declare interface ILottieAnimationProps {
2258
- src: string;
2259
- width?: string | number;
2260
- height?: string | number;
2261
- settings?: Partial<LottieSettings>;
2262
- eventListeners?: {
2263
- name: EventType;
2264
- callback: EventListener_2<EventType>;
2265
- }[];
2266
- onRender?: () => void;
2267
- onError?: () => void;
2268
- }
2269
-
2270
- declare interface ILottieAnimationRef {
2271
- playSegments: (segments: AnimationSegment, forceFlag?: boolean) => void;
2272
- }
2273
-
2274
2267
  declare interface ILPARChapterProps extends ILPARSheetCallbacks {
2275
2268
  userType: TUserTypes;
2276
2269
  chapterData: TLPARChapterData;
@@ -2607,7 +2600,7 @@ export declare interface IModal {
2607
2600
  /** Content to display inside the modal */
2608
2601
  element: ReactElement;
2609
2602
  /** Rendering style of the modal */
2610
- renderAs?: 'modal' | 'fullscreen' | 'spotlight' | 'bottom-sheet';
2603
+ renderAs?: 'modal' | 'fullscreen' | 'spotlight' | 'bottom-sheet' | 'fullscreen-transparent';
2611
2604
  /** Whether the modal can be dismissed by clicking outside or ESC key (default: true) */
2612
2605
  isDismissable?: boolean;
2613
2606
  /** Whether the modal requires authentication to view (default: true) */
@@ -3449,19 +3442,35 @@ declare interface IStepperProps {
3449
3442
  currentStep: number;
3450
3443
  }
3451
3444
 
3452
- declare interface IStickerData {
3445
+ export declare interface IStickerData {
3453
3446
  id: string;
3454
3447
  emoji: string;
3455
3448
  lottieUrl?: string;
3456
- name?: string;
3449
+ name: string;
3457
3450
  }
3458
3451
 
3459
- declare interface IStickerGridProps {
3452
+ export declare interface IStickerProps {
3453
+ emoji: string;
3454
+ lottieUrl?: string;
3455
+ size?: number | string;
3456
+ onClick?: () => void;
3457
+ disabled?: boolean;
3458
+ }
3459
+
3460
+ export declare interface IStickerSelectorProps {
3460
3461
  stickers: IStickerData[];
3461
3462
  columns?: number;
3462
3463
  gap?: number;
3463
3464
  stickerSize?: number | string;
3464
3465
  onStickerClick?: (sticker: IStickerData) => void;
3466
+ disabled?: boolean;
3467
+ }
3468
+
3469
+ export declare interface IStickersProps {
3470
+ stickers: string[];
3471
+ effect: TStickerEffects;
3472
+ count: number;
3473
+ duration: number;
3465
3474
  }
3466
3475
 
3467
3476
  declare interface IStreakIconProps extends React.HTMLProps<HTMLDivElement> {
@@ -4997,6 +5006,18 @@ export declare const SENTRY_IGNORED_ERRORS: Array<string | RegExp>;
4997
5006
 
4998
5007
  export declare const Separator: React_2.FC<ISeparatorProps>;
4999
5008
 
5009
+ declare type SharedProps = {
5010
+ width?: string | number;
5011
+ height?: string | number;
5012
+ settings?: Partial<LottieSettings>;
5013
+ eventListeners?: {
5014
+ name: EventType;
5015
+ callback: EventListener_2<EventType>;
5016
+ }[];
5017
+ onRender?: () => void;
5018
+ onError?: () => void;
5019
+ };
5020
+
5000
5021
  export declare const SHEET_ACTIONS: {
5001
5022
  readonly START: "START";
5002
5023
  readonly RESUME: "RESUME";
@@ -5103,22 +5124,15 @@ declare const STICKER_BADGE: {
5103
5124
  AWESOME: string;
5104
5125
  };
5105
5126
 
5106
- declare type StickerEffect = 'burst_from_edges' | 'pop_expand' | 'float_up' | 'fall_down';
5127
+ export declare const stickerData: IStickerData[];
5107
5128
 
5108
5129
  export declare const StickerFilledIcon: React.FC<React.SVGProps<SVGSVGElement>>;
5109
5130
 
5110
5131
  export declare const StickerIcon: React.FC<React.SVGProps<SVGSVGElement>>;
5111
5132
 
5112
- export declare const Stickers: React_2.NamedExoticComponent<StickersProps>;
5113
-
5114
- declare interface StickersProps {
5115
- stickers: string[];
5116
- effect: StickerEffect;
5117
- count: number;
5118
- duration: number;
5119
- }
5133
+ export declare const StickersEffects: React_2.NamedExoticComponent<IStickersProps>;
5120
5134
 
5121
- export declare const StickersSelector: React_2.NamedExoticComponent<IStickerGridProps>;
5135
+ export declare const StickersSelector: React_2.NamedExoticComponent<IStickerSelectorProps>;
5122
5136
 
5123
5137
  export declare const StreakIcon: React_2.FC<IStreakIconProps>;
5124
5138
 
@@ -6044,7 +6058,7 @@ declare type TRenderAs_2 = 'canvas' | 'whiteboard';
6044
6058
  declare type TRewardHomeData = {
6045
6059
  user_badges: TBadgeData[] | [];
6046
6060
  user_rewards: TRewardsData[] | [];
6047
- user_stickers: TStickerData[] | [];
6061
+ user_stickers: TStickerData_2[] | [];
6048
6062
  };
6049
6063
 
6050
6064
  declare type TRewardsData = {
@@ -6172,7 +6186,18 @@ export declare type TSkillStatus = 'pending' | 'completed';
6172
6186
 
6173
6187
  export declare type TSocialAuthProvider = 'google' | 'apple';
6174
6188
 
6175
- declare type TStickerData = {
6189
+ export declare type TStickerData = {
6190
+ id: string;
6191
+ sticker: string;
6192
+ lottie?: string;
6193
+ x: number;
6194
+ y: number;
6195
+ size: number;
6196
+ fromX?: string;
6197
+ fromY?: string;
6198
+ };
6199
+
6200
+ declare type TStickerData_2 = {
6176
6201
  actor_id: string;
6177
6202
  badge_id: string;
6178
6203
  badge_type: string;
@@ -6185,6 +6210,8 @@ declare type TStickerData = {
6185
6210
  user_type: string;
6186
6211
  };
6187
6212
 
6213
+ export declare type TStickerEffects = 'burst-from-edges' | 'pop-expand' | 'float-up' | 'fall-down';
6214
+
6188
6215
  export declare type TStreakStatus = 'pending' | 'completed';
6189
6216
 
6190
6217
  declare type TStyleAttrubutes = NonNullable<HTMLAttributes<HTMLDivElement>['style']>;
@@ -6545,6 +6572,18 @@ export declare enum WebViewEvent {
6545
6572
  */
6546
6573
  export declare const WHITELIST_EVENTS: Record<string, PLUGIN_NAME[]>;
6547
6574
 
6575
+ declare type WithData = {
6576
+ data: Data;
6577
+ };
6578
+
6579
+ declare type Without<T, K extends keyof any> = {
6580
+ [P in Exclude<keyof T, K>]?: never;
6581
+ };
6582
+
6583
+ declare type WithSrc = {
6584
+ src: string;
6585
+ };
6586
+
6548
6587
  export declare const Worksheet: NamedExoticComponent<IWorksheetContainerProps & RefAttributes<IWorksheetRef>>;
6549
6588
 
6550
6589
  export declare const WORKSHEET_ACTION_BAR_HEIGHT = 56;
@@ -6557,6 +6596,8 @@ export declare const WORKSHEET_TOP_NAVIGATION_HEIGHT = 48;
6557
6596
 
6558
6597
  export declare const WORKSHEET_V3_NODE_TYPES: TNodeTypeProps[];
6559
6598
 
6599
+ declare type XOR<T, U> = (T & Without<U, keyof T>) | (U & Without<T, keyof U>);
6600
+
6560
6601
  declare const ZINDEX: {
6561
6602
  readonly CHAPTER_CROWN_ICON: 4;
6562
6603
  readonly CHAPTER_PLUS_ICON: 2;