@cuemath/leap 3.2.22-m → 3.2.24-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.
- package/dist/features/stickers/sticker-data.js +234 -0
- package/dist/features/stickers/sticker-data.js.map +1 -0
- package/dist/features/{ui/sticker-grid/sticker-grid-styles.js → stickers/sticker-selector/sticker-selector-styles.js} +21 -31
- package/dist/features/stickers/sticker-selector/sticker-selector-styles.js.map +1 -0
- package/dist/features/stickers/sticker-selector/sticker-selector.js +27 -0
- package/dist/features/stickers/sticker-selector/sticker-selector.js.map +1 -0
- package/dist/features/stickers/sticker-selector/sticker.js +57 -0
- package/dist/features/stickers/sticker-selector/sticker.js.map +1 -0
- package/dist/features/{ui/stickers/stickers-effects.js → stickers/stickers-effects/effects.js} +6 -6
- package/dist/features/stickers/stickers-effects/effects.js.map +1 -0
- package/dist/features/stickers/stickers-effects/stickers-cache.js +13 -0
- package/dist/features/stickers/stickers-effects/stickers-cache.js.map +1 -0
- package/dist/features/stickers/stickers-effects/stickers-effects-helper.js +86 -0
- package/dist/features/stickers/stickers-effects/stickers-effects-helper.js.map +1 -0
- package/dist/features/{ui/stickers/stickers-styled.js → stickers/stickers-effects/stickers-effects-styled.js} +2 -2
- package/dist/features/stickers/stickers-effects/stickers-effects-styled.js.map +1 -0
- package/dist/features/stickers/stickers-effects/stickers-effects.js +54 -0
- package/dist/features/stickers/stickers-effects/stickers-effects.js.map +1 -0
- package/dist/features/ui/lottie-animation/helper.js +6 -6
- package/dist/features/ui/lottie-animation/helper.js.map +1 -1
- package/dist/features/ui/lottie-animation/lottie-animation.js +36 -31
- package/dist/features/ui/lottie-animation/lottie-animation.js.map +1 -1
- package/dist/features/ui/modals/modal-styled.js +39 -8
- package/dist/features/ui/modals/modal-styled.js.map +1 -1
- package/dist/features/ui/modals/modal.js +31 -31
- package/dist/features/ui/modals/modal.js.map +1 -1
- package/dist/index.d.ts +38 -41
- package/dist/index.js +316 -316
- package/package.json +1 -2
- package/dist/features/ui/dot-lottie-animations/dot-lottie-animation-styled.js +0 -9
- package/dist/features/ui/dot-lottie-animations/dot-lottie-animation-styled.js.map +0 -1
- package/dist/features/ui/dot-lottie-animations/dot-lottie-animation.js +0 -65
- package/dist/features/ui/dot-lottie-animations/dot-lottie-animation.js.map +0 -1
- package/dist/features/ui/sticker-grid/sticker-grid-styles.js.map +0 -1
- package/dist/features/ui/sticker-grid/sticker-grid.js +0 -24
- package/dist/features/ui/sticker-grid/sticker-grid.js.map +0 -1
- package/dist/features/ui/sticker-grid/sticker.js +0 -57
- package/dist/features/ui/sticker-grid/sticker.js.map +0 -1
- package/dist/features/ui/stickers/constants.js +0 -6
- package/dist/features/ui/stickers/constants.js.map +0 -1
- package/dist/features/ui/stickers/stickers-effects.js.map +0 -1
- package/dist/features/ui/stickers/stickers-styled.js.map +0 -1
- package/dist/features/ui/stickers/stickers-utils.js +0 -91
- package/dist/features/ui/stickers/stickers-utils.js.map +0 -1
- package/dist/features/ui/stickers/stickers.js +0 -40
- package/dist/features/ui/stickers/stickers.js.map +0 -1
- package/dist/node_modules/@lottiefiles/dotlottie-web/dist/index.js +0 -1881
- package/dist/node_modules/@lottiefiles/dotlottie-web/dist/index.js.map +0 -1
package/dist/index.d.ts
CHANGED
@@ -2,13 +2,10 @@ import type { ButtonHTMLAttributes } from 'react';
|
|
2
2
|
import type { Channel } from '@cuemath/cue-message-broker';
|
3
3
|
import { ChannelStatus } from '@cuemath/cue-message-broker';
|
4
4
|
import { ComponentType } from 'react';
|
5
|
-
import type { Config } from '@lottiefiles/dotlottie-web';
|
6
5
|
import { Context } from 'react';
|
7
6
|
import type { DefaultTheme } from 'styled-components';
|
8
7
|
import { DetailedHTMLProps } from 'react';
|
9
8
|
import type { Dispatch } from 'react';
|
10
|
-
import type { EventListener as EventListener_2 } from '@lottiefiles/dotlottie-web';
|
11
|
-
import type { EventType } from '@lottiefiles/dotlottie-web';
|
12
9
|
import { FC } from 'react';
|
13
10
|
import type { FormEvent } from 'react';
|
14
11
|
import { ForwardRefExoticComponent } from 'react';
|
@@ -77,8 +74,6 @@ export declare const AnimatedArc: React_2.FC<IAnimatedArcProps>;
|
|
77
74
|
|
78
75
|
export declare const AnimatedAvatarMessage: NamedExoticComponent<IAnimatedAvatarMessageProps>;
|
79
76
|
|
80
|
-
declare type AnimationSegment = [number, number];
|
81
|
-
|
82
77
|
export declare const AppLoader: FC<IAppLoaderProps>;
|
83
78
|
|
84
79
|
export declare const ArcButton: NamedExoticComponent<IArcButtonProps & {
|
@@ -368,8 +363,6 @@ export declare const DesmosCalculator: FC<IDesmosCalculatorProps>;
|
|
368
363
|
|
369
364
|
export declare const DigitalMeter: FC<IDigitalMeterProps>;
|
370
365
|
|
371
|
-
export declare const DotLottieAnimation: NamedExoticComponent<ILottieAnimationProps & RefAttributes<ILottieAnimationRef>>;
|
372
|
-
|
373
366
|
export declare const DownIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
374
367
|
|
375
368
|
export declare const DraftIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
@@ -2223,22 +2216,6 @@ declare interface ILogger {
|
|
2223
2216
|
(eventName: string, data?: Record<string, unknown>): void;
|
2224
2217
|
}
|
2225
2218
|
|
2226
|
-
declare interface ILottieAnimationProps {
|
2227
|
-
src: string;
|
2228
|
-
width?: string | number;
|
2229
|
-
height?: string | number;
|
2230
|
-
settings?: Partial<LottieSettings>;
|
2231
|
-
eventListeners?: {
|
2232
|
-
name: EventType;
|
2233
|
-
callback: EventListener_2<EventType>;
|
2234
|
-
}[];
|
2235
|
-
onRender?: () => void;
|
2236
|
-
}
|
2237
|
-
|
2238
|
-
declare interface ILottieAnimationRef {
|
2239
|
-
playSegments: (segments: AnimationSegment, forceFlag?: boolean) => void;
|
2240
|
-
}
|
2241
|
-
|
2242
2219
|
declare interface ILPARChapterProps extends ILPARSheetCallbacks {
|
2243
2220
|
userType: TUserTypes;
|
2244
2221
|
chapterData: TLPARChapterData;
|
@@ -2575,7 +2552,7 @@ export declare interface IModal {
|
|
2575
2552
|
/** Content to display inside the modal */
|
2576
2553
|
element: ReactElement;
|
2577
2554
|
/** Rendering style of the modal */
|
2578
|
-
renderAs?: 'modal' | 'fullscreen' | 'spotlight' | 'bottom-sheet';
|
2555
|
+
renderAs?: 'modal' | 'fullscreen' | 'spotlight' | 'bottom-sheet' | 'fullscreen-transparent';
|
2579
2556
|
/** Whether the modal can be dismissed by clicking outside or ESC key (default: true) */
|
2580
2557
|
isDismissable?: boolean;
|
2581
2558
|
/** Whether the modal requires authentication to view (default: true) */
|
@@ -3417,19 +3394,35 @@ declare interface IStepperProps {
|
|
3417
3394
|
currentStep: number;
|
3418
3395
|
}
|
3419
3396
|
|
3420
|
-
declare interface IStickerData {
|
3397
|
+
export declare interface IStickerData {
|
3421
3398
|
id: string;
|
3422
3399
|
emoji: string;
|
3423
3400
|
lottieUrl?: string;
|
3424
|
-
name
|
3401
|
+
name: string;
|
3425
3402
|
}
|
3426
3403
|
|
3427
|
-
declare interface
|
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 {
|
3428
3413
|
stickers: IStickerData[];
|
3429
3414
|
columns?: number;
|
3430
3415
|
gap?: number;
|
3431
3416
|
stickerSize?: number | string;
|
3432
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;
|
3433
3426
|
}
|
3434
3427
|
|
3435
3428
|
declare interface IStreakIconProps extends React.HTMLProps<HTMLDivElement> {
|
@@ -4531,8 +4524,6 @@ export declare const LOTTIE: {
|
|
4531
4524
|
VIDEO: string;
|
4532
4525
|
};
|
4533
4526
|
|
4534
|
-
declare type LottieSettings = Omit<Config, 'src' | 'canvas'>;
|
4535
|
-
|
4536
4527
|
export declare const LPARChapter: FC<ILPARChapterProps>;
|
4537
4528
|
|
4538
4529
|
export declare const LPARMilestoneChapter: FC<ILPARMilestoneChapter>;
|
@@ -5047,22 +5038,15 @@ declare const STICKER_BADGE: {
|
|
5047
5038
|
AWESOME: string;
|
5048
5039
|
};
|
5049
5040
|
|
5050
|
-
declare
|
5041
|
+
export declare const stickerData: IStickerData[];
|
5051
5042
|
|
5052
5043
|
export declare const StickerFilledIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
5053
5044
|
|
5054
5045
|
export declare const StickerIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
5055
5046
|
|
5056
|
-
export declare const
|
5057
|
-
|
5058
|
-
declare interface StickersProps {
|
5059
|
-
stickers: string[];
|
5060
|
-
effect: StickerEffect;
|
5061
|
-
count: number;
|
5062
|
-
duration: number;
|
5063
|
-
}
|
5047
|
+
export declare const StickersEffects: React_2.NamedExoticComponent<IStickersProps>;
|
5064
5048
|
|
5065
|
-
export declare const StickersSelector: React_2.NamedExoticComponent<
|
5049
|
+
export declare const StickersSelector: React_2.NamedExoticComponent<IStickerSelectorProps>;
|
5066
5050
|
|
5067
5051
|
export declare const StreakIcon: React_2.FC<IStreakIconProps>;
|
5068
5052
|
|
@@ -5988,7 +5972,7 @@ declare type TRenderAs_2 = 'canvas' | 'whiteboard';
|
|
5988
5972
|
declare type TRewardHomeData = {
|
5989
5973
|
user_badges: TBadgeData[] | [];
|
5990
5974
|
user_rewards: TRewardsData[] | [];
|
5991
|
-
user_stickers:
|
5975
|
+
user_stickers: TStickerData_2[] | [];
|
5992
5976
|
};
|
5993
5977
|
|
5994
5978
|
declare type TRewardsData = {
|
@@ -6116,7 +6100,18 @@ export declare type TSkillStatus = 'pending' | 'completed';
|
|
6116
6100
|
|
6117
6101
|
export declare type TSocialAuthProvider = 'google' | 'apple';
|
6118
6102
|
|
6119
|
-
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 = {
|
6120
6115
|
actor_id: string;
|
6121
6116
|
badge_id: string;
|
6122
6117
|
badge_type: string;
|
@@ -6129,6 +6124,8 @@ declare type TStickerData = {
|
|
6129
6124
|
user_type: string;
|
6130
6125
|
};
|
6131
6126
|
|
6127
|
+
export declare type TStickerEffects = 'burst-from-edges' | 'pop-expand' | 'float-up' | 'fall-down';
|
6128
|
+
|
6132
6129
|
export declare type TStreakStatus = 'pending' | 'completed';
|
6133
6130
|
|
6134
6131
|
declare type TStyleAttrubutes = NonNullable<HTMLAttributes<HTMLDivElement>['style']>;
|