@cuemath/leap 3.2.21-tp-beta-0.4 → 3.2.22-as333
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/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-item.js +43 -43
- package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-item.js.map +1 -1
- package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-utils.js +1 -1
- package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-utils.js.map +1 -1
- package/dist/features/ui/dot-lottie-animations/dot-lottie-animation-styled.js +9 -0
- package/dist/features/ui/dot-lottie-animations/dot-lottie-animation-styled.js.map +1 -0
- package/dist/features/ui/dot-lottie-animations/dot-lottie-animation.js +80 -0
- package/dist/features/ui/dot-lottie-animations/dot-lottie-animation.js.map +1 -0
- package/dist/features/ui/inputs/base-select-input/base-select-input.js +77 -67
- package/dist/features/ui/inputs/base-select-input/base-select-input.js.map +1 -1
- package/dist/index.d.ts +27 -3
- package/dist/index.js +150 -150
- package/dist/node_modules/@lottiefiles/dotlottie-web/dist/index.js +1881 -0
- package/dist/node_modules/@lottiefiles/dotlottie-web/dist/index.js.map +1 -0
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
@@ -2,10 +2,13 @@ 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';
|
5
6
|
import { Context } from 'react';
|
6
7
|
import type { DefaultTheme } from 'styled-components';
|
7
8
|
import { DetailedHTMLProps } from 'react';
|
8
9
|
import type { Dispatch } from 'react';
|
10
|
+
import type { EventListener as EventListener_2 } from '@lottiefiles/dotlottie-web';
|
11
|
+
import type { EventType } from '@lottiefiles/dotlottie-web';
|
9
12
|
import { FC } from 'react';
|
10
13
|
import type { FormEvent } from 'react';
|
11
14
|
import { ForwardRefExoticComponent } from 'react';
|
@@ -74,6 +77,8 @@ export declare const AnimatedArc: React_2.FC<IAnimatedArcProps>;
|
|
74
77
|
|
75
78
|
export declare const AnimatedAvatarMessage: NamedExoticComponent<IAnimatedAvatarMessageProps>;
|
76
79
|
|
80
|
+
declare type AnimationSegment = [number, number];
|
81
|
+
|
77
82
|
export declare const AppLoader: FC<IAppLoaderProps>;
|
78
83
|
|
79
84
|
export declare const ArcButton: NamedExoticComponent<IArcButtonProps & {
|
@@ -363,6 +368,8 @@ export declare const DesmosCalculator: FC<IDesmosCalculatorProps>;
|
|
363
368
|
|
364
369
|
export declare const DigitalMeter: FC<IDigitalMeterProps>;
|
365
370
|
|
371
|
+
export declare const DotLottieAnimation: NamedExoticComponent<ILottieAnimationProps & RefAttributes<ILottieAnimationRef>>;
|
372
|
+
|
366
373
|
export declare const DownIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
367
374
|
|
368
375
|
export declare const DraftIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
@@ -547,8 +554,6 @@ declare enum GENDER {
|
|
547
554
|
OTHER = "OTHER"
|
548
555
|
}
|
549
556
|
|
550
|
-
export declare const getActiveSATSheet: (sheets: TLPARSheetData[]) => TLPARSheetData | undefined;
|
551
|
-
|
552
557
|
declare const getArrowTooltipConfig: IGetArrowTooltipConfig;
|
553
558
|
|
554
559
|
declare const getButtonConfig: IGetButtonConfig;
|
@@ -840,6 +845,7 @@ declare interface IBaseSelectInputProps<IDType extends string | number> extends
|
|
840
845
|
controlled?: boolean;
|
841
846
|
size?: TInputSizes;
|
842
847
|
theme?: 'light' | 'dark';
|
848
|
+
inputLabelOverrides?: (section: ISectionOption<ISelectOption<IDType>>, option: ISelectOption<IDType> | undefined) => string;
|
843
849
|
}
|
844
850
|
|
845
851
|
declare interface IBaseWebGameProps {
|
@@ -2218,6 +2224,23 @@ declare interface ILogger {
|
|
2218
2224
|
(eventName: string, data?: Record<string, unknown>): void;
|
2219
2225
|
}
|
2220
2226
|
|
2227
|
+
declare interface ILottieAnimationProps {
|
2228
|
+
src: string;
|
2229
|
+
width?: string | number;
|
2230
|
+
height?: string | number;
|
2231
|
+
settings?: Partial<LottieSettings>;
|
2232
|
+
eventListeners?: {
|
2233
|
+
name: EventType;
|
2234
|
+
callback: EventListener_2<EventType>;
|
2235
|
+
}[];
|
2236
|
+
onRender?: () => void;
|
2237
|
+
onError?: () => void;
|
2238
|
+
}
|
2239
|
+
|
2240
|
+
declare interface ILottieAnimationRef {
|
2241
|
+
playSegments: (segments: AnimationSegment, forceFlag?: boolean) => void;
|
2242
|
+
}
|
2243
|
+
|
2221
2244
|
declare interface ILPARChapterProps extends ILPARSheetCallbacks {
|
2222
2245
|
userType: TUserTypes;
|
2223
2246
|
chapterData: TLPARChapterData;
|
@@ -4074,7 +4097,6 @@ export declare interface IWorksheetAttemptModel {
|
|
4074
4097
|
canvas_data?: Array<IChannelMessage>;
|
4075
4098
|
image_hue?: THueNames | null;
|
4076
4099
|
feedback_comments?: string | null;
|
4077
|
-
user_block_id?: string | null;
|
4078
4100
|
}
|
4079
4101
|
|
4080
4102
|
export declare interface IWorksheetBehavior {
|
@@ -4511,6 +4533,8 @@ export declare const LOTTIE: {
|
|
4511
4533
|
VIDEO: string;
|
4512
4534
|
};
|
4513
4535
|
|
4536
|
+
declare type LottieSettings = Omit<Config, 'src' | 'canvas'>;
|
4537
|
+
|
4514
4538
|
export declare const LPARChapter: FC<ILPARChapterProps>;
|
4515
4539
|
|
4516
4540
|
export declare const LPARMilestoneChapter: FC<ILPARMilestoneChapter>;
|