@cuemath/leap 3.2.22 → 3.2.23-j1
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/assets/lottie/lottie.js +1 -1
- package/dist/assets/lottie/lottie.js.map +1 -1
- package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-constants.js +2 -1
- package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-constants.js.map +1 -1
- package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-styled.js +8 -8
- package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-styled.js.map +1 -1
- package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message.js +82 -60
- package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message.js.map +1 -1
- package/dist/features/ui/inputs/base-select-input/base-select-input.js +67 -77
- package/dist/features/ui/inputs/base-select-input/base-select-input.js.map +1 -1
- package/dist/features/ui/lottie-animation/lottie-animation.js +27 -24
- package/dist/features/ui/lottie-animation/lottie-animation.js.map +1 -1
- package/dist/index.d.ts +4 -83
- package/dist/index.js +438 -444
- package/dist/index.js.map +1 -1
- package/dist/node_modules/decode-uri-component/index.js.map +1 -0
- package/dist/node_modules/query-string/base.js +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/native.js +7 -0
- package/dist/node_modules/uuid/dist/esm-browser/native.js.map +1 -0
- package/dist/node_modules/uuid/dist/esm-browser/rng.js +3 -2
- package/dist/node_modules/uuid/dist/esm-browser/rng.js.map +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/stringify.js +6 -10
- package/dist/node_modules/uuid/dist/esm-browser/stringify.js.map +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/v4.js +12 -9
- package/dist/node_modules/uuid/dist/esm-browser/v4.js.map +1 -1
- package/dist/static/animated-avatar.95f31960.json +1 -0
- package/dist/static/animated-avatar.c3a0fa98.json +1 -0
- package/package.json +1 -2
- package/dist/features/notification/notification.js +0 -129
- package/dist/features/notification/notification.js.map +0 -1
- package/dist/features/ui/carousal/carousal-styles.js +0 -45
- package/dist/features/ui/carousal/carousal-styles.js.map +0 -1
- package/dist/features/ui/carousal/carousal.js +0 -76
- package/dist/features/ui/carousal/carousal.js.map +0 -1
- 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 -80
- package/dist/features/ui/dot-lottie-animations/dot-lottie-animation.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/node_modules/query-string/node_modules/decode-uri-component/index.js.map +0 -1
- package/dist/node_modules/uuid/dist/esm-browser/regex.js +0 -5
- package/dist/node_modules/uuid/dist/esm-browser/regex.js.map +0 -1
- package/dist/node_modules/uuid/dist/esm-browser/validate.js +0 -8
- package/dist/node_modules/uuid/dist/esm-browser/validate.js.map +0 -1
- /package/dist/node_modules/{query-string/node_modules/decode-uri-component → decode-uri-component}/index.js +0 -0
@@ -10,43 +10,46 @@ const O = A((v, L) => {
|
|
10
10
|
height: y = "100%",
|
11
11
|
settings: l,
|
12
12
|
eventListener: n,
|
13
|
-
onRender:
|
13
|
+
onRender: i,
|
14
14
|
animateOnIntersect: c
|
15
15
|
} = v, a = u(null), r = u(null), s = u(null);
|
16
16
|
return b(
|
17
17
|
L,
|
18
18
|
() => ({
|
19
|
-
playSegments: (
|
20
|
-
var
|
21
|
-
return (
|
19
|
+
playSegments: (e, o) => {
|
20
|
+
var t;
|
21
|
+
return (t = r.current) == null ? void 0 : t.playSegments(e, o);
|
22
22
|
},
|
23
|
-
addEventListener: (
|
24
|
-
var
|
25
|
-
return (
|
23
|
+
addEventListener: (e, o) => {
|
24
|
+
var t;
|
25
|
+
return (t = r.current) == null ? void 0 : t.addEventListener(e, o);
|
26
26
|
},
|
27
|
-
removeEventListener: (
|
28
|
-
var
|
29
|
-
return (
|
27
|
+
removeEventListener: (e, o) => {
|
28
|
+
var t;
|
29
|
+
return (t = r.current) == null ? void 0 : t.removeEventListener(e, o);
|
30
30
|
},
|
31
31
|
play: () => {
|
32
|
-
var
|
33
|
-
return (
|
32
|
+
var e;
|
33
|
+
return (e = r.current) == null ? void 0 : e.play();
|
34
34
|
},
|
35
35
|
stop: () => {
|
36
|
-
var
|
37
|
-
return (
|
36
|
+
var e;
|
37
|
+
return (e = r.current) == null ? void 0 : e.stop();
|
38
|
+
},
|
39
|
+
setLoop: (e) => {
|
40
|
+
r.current && (r.current.loop = e);
|
38
41
|
}
|
39
42
|
}),
|
40
43
|
[]
|
41
44
|
), I(() => {
|
42
|
-
let
|
45
|
+
let e = !1;
|
43
46
|
return (async () => {
|
44
47
|
try {
|
45
|
-
const
|
48
|
+
const t = await x(m);
|
46
49
|
requestAnimationFrame(() => {
|
47
|
-
!a.current ||
|
50
|
+
!a.current || e || (r.current = g.loadAnimation({
|
48
51
|
container: a.current,
|
49
|
-
animationData:
|
52
|
+
animationData: t,
|
50
53
|
loop: !0,
|
51
54
|
autoplay: !0,
|
52
55
|
...l
|
@@ -56,16 +59,16 @@ const O = A((v, L) => {
|
|
56
59
|
f && f.isIntersecting ? (d = r.current) == null || d.play() : (p = r.current) == null || p.pause();
|
57
60
|
},
|
58
61
|
{ threshold: 0 }
|
59
|
-
), s.current.observe(a.current)),
|
62
|
+
), s.current.observe(a.current)), i == null || i(), n && r.current.addEventListener(n.name, n.callback));
|
60
63
|
});
|
61
|
-
} catch (
|
62
|
-
throw Error(`Error loading Lottie animation: ${
|
64
|
+
} catch (t) {
|
65
|
+
throw Error(`Error loading Lottie animation: ${t}`);
|
63
66
|
}
|
64
67
|
})(), () => {
|
65
|
-
var
|
66
|
-
|
68
|
+
var t;
|
69
|
+
e = !0, r.current && (n && r.current.removeEventListener(n.name, n.callback), c && ((t = s.current) == null || t.disconnect()), r.current.destroy());
|
67
70
|
};
|
68
|
-
}, [m, n,
|
71
|
+
}, [m, n, i, c, l]), /* @__PURE__ */ E($, { ref: a, $width: h, $height: y });
|
69
72
|
}), D = w(O);
|
70
73
|
export {
|
71
74
|
D as default
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"lottie-animation.js","sources":["../../../../src/features/ui/lottie-animation/lottie-animation.tsx"],"sourcesContent":["import type { ILottieAnimationProps, ILottieAnimationRef } from './types';\nimport type { AnimationEventName, AnimationItem, AnimationSegment } from 'lottie-web';\n\nimport lottie from 'lottie-web';\nimport { forwardRef, memo, useEffect, useImperativeHandle, useRef } from 'react';\n\nimport FlexView from '../layout/flex-view';\nimport { fetchLottie } from './helper';\n\nconst LottieAnimation = forwardRef<ILottieAnimationRef, ILottieAnimationProps>((props, ref) => {\n const {\n src,\n width = '100%',\n height = '100%',\n settings,\n eventListener,\n onRender,\n animateOnIntersect,\n } = props;\n\n const container = useRef<HTMLDivElement>(null);\n const animationInstance = useRef<AnimationItem | null>(null);\n const intersectionObserver = useRef<IntersectionObserver | null>(null);\n\n useImperativeHandle(\n ref,\n () => ({\n playSegments: (segments: AnimationSegment, forceFlag?: boolean) =>\n animationInstance.current?.playSegments(segments, forceFlag),\n addEventListener: (eventName: string, callback: () => void) =>\n animationInstance.current?.addEventListener(eventName as AnimationEventName, callback),\n removeEventListener: (eventName: string, callback: () => void) =>\n animationInstance.current?.removeEventListener(eventName as AnimationEventName, callback),\n play: () => animationInstance.current?.play(),\n stop: () => animationInstance.current?.stop(),\n }),\n [],\n );\n\n useEffect(() => {\n let destroyed = false;\n\n const loadAnimation = async () => {\n try {\n const animationData = await fetchLottie(src);\n\n // Wait for layout\n // NOTE: Do not remove this as this is needed to fix canvas rendering on first layout.\n requestAnimationFrame(() => {\n if (!container.current || destroyed) return;\n\n animationInstance.current = lottie.loadAnimation({\n container: container.current,\n animationData,\n loop: true,\n autoplay: true,\n ...settings,\n });\n\n if (animateOnIntersect) {\n intersectionObserver.current = new IntersectionObserver(\n ([entry]) => {\n if (entry && entry.isIntersecting) {\n animationInstance.current?.play();\n } else {\n animationInstance.current?.pause();\n }\n },\n { threshold: 0 },\n );\n\n intersectionObserver.current.observe(container.current);\n }\n\n onRender?.();\n if (eventListener) {\n animationInstance.current.addEventListener(eventListener.name, eventListener.callback);\n }\n });\n } catch (error) {\n throw Error(`Error loading Lottie animation: ${error}`);\n }\n };\n\n loadAnimation();\n\n return () => {\n destroyed = true;\n if (animationInstance.current) {\n if (eventListener) {\n animationInstance.current.removeEventListener(eventListener.name, eventListener.callback);\n }\n\n if (animateOnIntersect) {\n intersectionObserver.current?.disconnect();\n }\n animationInstance.current.destroy();\n }\n };\n }, [src, eventListener, onRender, animateOnIntersect, settings]);\n\n return <FlexView ref={container} $width={width} $height={height} />;\n});\n\nexport default memo(LottieAnimation);\n"],"names":["LottieAnimation","forwardRef","props","ref","src","width","height","settings","eventListener","onRender","animateOnIntersect","container","useRef","animationInstance","intersectionObserver","useImperativeHandle","segments","forceFlag","_a","eventName","callback","useEffect","destroyed","animationData","fetchLottie","lottie","entry","_b","error","FlexView","LottieAnimation$1","memo"],"mappings":";;;;;AASA,MAAMA,IAAkBC,EAAuD,CAACC,GAAOC,MAAQ;AACvF,QAAA;AAAA,IACJ,KAAAC;AAAA,IACA,OAAAC,IAAQ;AAAA,IACR,QAAAC,IAAS;AAAA,IACT,UAAAC;AAAA,IACA,eAAAC;AAAA,IACA,UAAAC;AAAA,IACA,oBAAAC;AAAA,EACE,IAAAR,GAEES,IAAYC,EAAuB,IAAI,GACvCC,IAAoBD,EAA6B,IAAI,GACrDE,IAAuBF,EAAoC,IAAI;AAErE,SAAAG;AAAA,IACEZ;AAAA,IACA,OAAO;AAAA,MACL,cAAc,CAACa,GAA4BC,MACzC;;AAAA,gBAAAC,IAAAL,EAAkB,YAAlB,gBAAAK,EAA2B,aAAaF,GAAUC;AAAA;AAAA,MACpD,kBAAkB,CAACE,GAAmBC,MACpC;;AAAA,gBAAAF,IAAAL,EAAkB,YAAlB,gBAAAK,EAA2B,iBAAiBC,GAAiCC;AAAA;AAAA,MAC/E,qBAAqB,CAACD,GAAmBC,MACvC;;AAAA,gBAAAF,IAAAL,EAAkB,YAAlB,gBAAAK,EAA2B,oBAAoBC,GAAiCC;AAAA;AAAA,MAClF,MAAM,MAAM;;AAAA,gBAAAF,IAAAL,EAAkB,YAAlB,gBAAAK,EAA2B;AAAA;AAAA,MACvC,MAAM,MAAM;;AAAA,gBAAAA,IAAAL,EAAkB,YAAlB,gBAAAK,EAA2B;AAAA;AAAA,
|
1
|
+
{"version":3,"file":"lottie-animation.js","sources":["../../../../src/features/ui/lottie-animation/lottie-animation.tsx"],"sourcesContent":["import type { ILottieAnimationProps, ILottieAnimationRef } from './types';\nimport type { AnimationEventName, AnimationItem, AnimationSegment } from 'lottie-web';\n\nimport lottie from 'lottie-web';\nimport { forwardRef, memo, useEffect, useImperativeHandle, useRef } from 'react';\n\nimport FlexView from '../layout/flex-view';\nimport { fetchLottie } from './helper';\n\nconst LottieAnimation = forwardRef<ILottieAnimationRef, ILottieAnimationProps>((props, ref) => {\n const {\n src,\n width = '100%',\n height = '100%',\n settings,\n eventListener,\n onRender,\n animateOnIntersect,\n } = props;\n\n const container = useRef<HTMLDivElement>(null);\n const animationInstance = useRef<AnimationItem | null>(null);\n const intersectionObserver = useRef<IntersectionObserver | null>(null);\n\n useImperativeHandle(\n ref,\n () => ({\n playSegments: (segments: AnimationSegment, forceFlag?: boolean) =>\n animationInstance.current?.playSegments(segments, forceFlag),\n addEventListener: (eventName: string, callback: () => void) =>\n animationInstance.current?.addEventListener(eventName as AnimationEventName, callback),\n removeEventListener: (eventName: string, callback: () => void) =>\n animationInstance.current?.removeEventListener(eventName as AnimationEventName, callback),\n play: () => animationInstance.current?.play(),\n stop: () => animationInstance.current?.stop(),\n setLoop: (loop: boolean) => {\n if (animationInstance.current) {\n animationInstance.current.loop = loop;\n }\n },\n }),\n [],\n );\n\n useEffect(() => {\n let destroyed = false;\n\n const loadAnimation = async () => {\n try {\n const animationData = await fetchLottie(src);\n\n // Wait for layout\n // NOTE: Do not remove this as this is needed to fix canvas rendering on first layout.\n requestAnimationFrame(() => {\n if (!container.current || destroyed) return;\n\n animationInstance.current = lottie.loadAnimation({\n container: container.current,\n animationData,\n loop: true,\n autoplay: true,\n ...settings,\n });\n\n if (animateOnIntersect) {\n intersectionObserver.current = new IntersectionObserver(\n ([entry]) => {\n if (entry && entry.isIntersecting) {\n animationInstance.current?.play();\n } else {\n animationInstance.current?.pause();\n }\n },\n { threshold: 0 },\n );\n\n intersectionObserver.current.observe(container.current);\n }\n\n onRender?.();\n if (eventListener) {\n animationInstance.current.addEventListener(eventListener.name, eventListener.callback);\n }\n });\n } catch (error) {\n throw Error(`Error loading Lottie animation: ${error}`);\n }\n };\n\n loadAnimation();\n\n return () => {\n destroyed = true;\n if (animationInstance.current) {\n if (eventListener) {\n animationInstance.current.removeEventListener(eventListener.name, eventListener.callback);\n }\n\n if (animateOnIntersect) {\n intersectionObserver.current?.disconnect();\n }\n animationInstance.current.destroy();\n }\n };\n }, [src, eventListener, onRender, animateOnIntersect, settings]);\n\n return <FlexView ref={container} $width={width} $height={height} />;\n});\n\nexport default memo(LottieAnimation);\n"],"names":["LottieAnimation","forwardRef","props","ref","src","width","height","settings","eventListener","onRender","animateOnIntersect","container","useRef","animationInstance","intersectionObserver","useImperativeHandle","segments","forceFlag","_a","eventName","callback","loop","useEffect","destroyed","animationData","fetchLottie","lottie","entry","_b","error","FlexView","LottieAnimation$1","memo"],"mappings":";;;;;AASA,MAAMA,IAAkBC,EAAuD,CAACC,GAAOC,MAAQ;AACvF,QAAA;AAAA,IACJ,KAAAC;AAAA,IACA,OAAAC,IAAQ;AAAA,IACR,QAAAC,IAAS;AAAA,IACT,UAAAC;AAAA,IACA,eAAAC;AAAA,IACA,UAAAC;AAAA,IACA,oBAAAC;AAAA,EACE,IAAAR,GAEES,IAAYC,EAAuB,IAAI,GACvCC,IAAoBD,EAA6B,IAAI,GACrDE,IAAuBF,EAAoC,IAAI;AAErE,SAAAG;AAAA,IACEZ;AAAA,IACA,OAAO;AAAA,MACL,cAAc,CAACa,GAA4BC,MACzC;;AAAA,gBAAAC,IAAAL,EAAkB,YAAlB,gBAAAK,EAA2B,aAAaF,GAAUC;AAAA;AAAA,MACpD,kBAAkB,CAACE,GAAmBC,MACpC;;AAAA,gBAAAF,IAAAL,EAAkB,YAAlB,gBAAAK,EAA2B,iBAAiBC,GAAiCC;AAAA;AAAA,MAC/E,qBAAqB,CAACD,GAAmBC,MACvC;;AAAA,gBAAAF,IAAAL,EAAkB,YAAlB,gBAAAK,EAA2B,oBAAoBC,GAAiCC;AAAA;AAAA,MAClF,MAAM,MAAM;;AAAA,gBAAAF,IAAAL,EAAkB,YAAlB,gBAAAK,EAA2B;AAAA;AAAA,MACvC,MAAM,MAAM;;AAAA,gBAAAA,IAAAL,EAAkB,YAAlB,gBAAAK,EAA2B;AAAA;AAAA,MACvC,SAAS,CAACG,MAAkB;AAC1B,QAAIR,EAAkB,YACpBA,EAAkB,QAAQ,OAAOQ;AAAA,MAErC;AAAA,IAAA;AAAA,IAEF,CAAC;AAAA,EAAA,GAGHC,EAAU,MAAM;AACd,QAAIC,IAAY;AA4CF,YA1CQ,YAAY;AAC5B,UAAA;AACI,cAAAC,IAAgB,MAAMC,EAAYrB,CAAG;AAI3C,8BAAsB,MAAM;AACtB,UAAA,CAACO,EAAU,WAAWY,MAERV,EAAA,UAAUa,EAAO,cAAc;AAAA,YAC/C,WAAWf,EAAU;AAAA,YACrB,eAAAa;AAAA,YACA,MAAM;AAAA,YACN,UAAU;AAAA,YACV,GAAGjB;AAAA,UAAA,CACJ,GAEGG,MACFI,EAAqB,UAAU,IAAI;AAAA,YACjC,CAAC,CAACa,CAAK,MAAM;;AACP,cAAAA,KAASA,EAAM,kBACjBT,IAAAL,EAAkB,YAAlB,QAAAK,EAA2B,UAE3BU,IAAAf,EAAkB,YAAlB,QAAAe,EAA2B;AAAA,YAE/B;AAAA,YACA,EAAE,WAAW,EAAE;AAAA,UAAA,GAGId,EAAA,QAAQ,QAAQH,EAAU,OAAO,IAG7CF,KAAA,QAAAA,KACPD,KACFK,EAAkB,QAAQ,iBAAiBL,EAAc,MAAMA,EAAc,QAAQ;AAAA,QACvF,CACD;AAAA,eACMqB,GAAO;AACR,cAAA,MAAM,mCAAmCA,CAAK,EAAE;AAAA,MACxD;AAAA,IAAA,MAKK,MAAM;;AACC,MAAAN,IAAA,IACRV,EAAkB,YAChBL,KACFK,EAAkB,QAAQ,oBAAoBL,EAAc,MAAMA,EAAc,QAAQ,GAGtFE,OACFQ,IAAAJ,EAAqB,YAArB,QAAAI,EAA8B,eAEhCL,EAAkB,QAAQ;IAC5B;AAAA,EACF,GACC,CAACT,GAAKI,GAAeC,GAAUC,GAAoBH,CAAQ,CAAC,qBAEvDuB,GAAS,EAAA,KAAKnB,GAAW,QAAQN,GAAO,SAASC,EAAQ,CAAA;AACnE,CAAC,GAEcyB,IAAAC,EAAKhC,CAAe;"}
|
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 & {
|
@@ -192,36 +187,6 @@ export declare const CalendarIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
192
187
|
|
193
188
|
export declare const Callout: React.FC<ICalloutProps>;
|
194
189
|
|
195
|
-
export declare const Carousel: React_2.FC<CarouselProps>;
|
196
|
-
|
197
|
-
declare interface CarouselProps {
|
198
|
-
children: React_2.ReactNode[] | React_2.ReactNode;
|
199
|
-
initialPosition?: number;
|
200
|
-
infinite?: boolean;
|
201
|
-
slideDuration?: number;
|
202
|
-
dotColor?: string;
|
203
|
-
changeColor?: (position: number) => void;
|
204
|
-
slideAlign?: string | null;
|
205
|
-
inactiveDotColor?: string;
|
206
|
-
activeIndicatorSize?: string;
|
207
|
-
flexCenterIndicators?: boolean;
|
208
|
-
isTestimonial?: boolean;
|
209
|
-
setColor?: (position: number) => void;
|
210
|
-
setPosition?: (position: number) => void;
|
211
|
-
carouselSlotPadding?: string;
|
212
|
-
wrapperMargin?: string;
|
213
|
-
hideIndicators?: boolean;
|
214
|
-
autoScroll?: boolean;
|
215
|
-
nodeRef?: {
|
216
|
-
current?: {
|
217
|
-
next?: () => void;
|
218
|
-
prev?: () => void;
|
219
|
-
position?: number;
|
220
|
-
};
|
221
|
-
} | null;
|
222
|
-
onChange?: () => void;
|
223
|
-
}
|
224
|
-
|
225
190
|
export declare const CascadingSelectInput: React_2.FC<ICascadingSelectInputProps>;
|
226
191
|
|
227
192
|
export declare const Chapter: FC<IChapterProps>;
|
@@ -398,8 +363,6 @@ export declare const DesmosCalculator: FC<IDesmosCalculatorProps>;
|
|
398
363
|
|
399
364
|
export declare const DigitalMeter: FC<IDigitalMeterProps>;
|
400
365
|
|
401
|
-
export declare const DotLottieAnimation: NamedExoticComponent<ILottieAnimationProps & RefAttributes<ILottieAnimationRef>>;
|
402
|
-
|
403
366
|
export declare const DownIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
404
367
|
|
405
368
|
export declare const DraftIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
@@ -734,15 +697,17 @@ declare interface IAnimatedAvatarMessageProps {
|
|
734
697
|
message: string;
|
735
698
|
onShowContent: (show: boolean) => void;
|
736
699
|
confirmationFrames: [number, number];
|
700
|
+
completionFrames?: [number, number];
|
737
701
|
confirmationMessage?: string;
|
738
702
|
isConfirmationVisible?: boolean;
|
739
703
|
ref: React.Ref<IAnimatedAvatarMessageRef>;
|
740
704
|
height?: string | number;
|
705
|
+
idleFrames?: [number, number];
|
741
706
|
}
|
742
707
|
|
743
708
|
export declare type IAnimatedAvatarMessageRef = {
|
744
|
-
|
745
|
-
playConfirmationFrames: () => Promise<void>;
|
709
|
+
fadeOutMessageAndPlayCompletion: (shouldPlayAnimation?: boolean) => Promise<void>;
|
710
|
+
playConfirmationFrames: (shouldPlayAnimation?: boolean) => Promise<void>;
|
746
711
|
};
|
747
712
|
|
748
713
|
declare interface IAppLoaderProps {
|
@@ -875,7 +840,6 @@ declare interface IBaseSelectInputProps<IDType extends string | number> extends
|
|
875
840
|
controlled?: boolean;
|
876
841
|
size?: TInputSizes;
|
877
842
|
theme?: 'light' | 'dark';
|
878
|
-
inputLabelOverrides?: (section: ISectionOption<ISelectOption<IDType>>, option: ISelectOption<IDType> | undefined) => string;
|
879
843
|
}
|
880
844
|
|
881
845
|
declare interface IBaseWebGameProps {
|
@@ -2254,23 +2218,6 @@ declare interface ILogger {
|
|
2254
2218
|
(eventName: string, data?: Record<string, unknown>): void;
|
2255
2219
|
}
|
2256
2220
|
|
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
2221
|
declare interface ILPARChapterProps extends ILPARSheetCallbacks {
|
2275
2222
|
userType: TUserTypes;
|
2276
2223
|
chapterData: TLPARChapterData;
|
@@ -4563,8 +4510,6 @@ export declare const LOTTIE: {
|
|
4563
4510
|
VIDEO: string;
|
4564
4511
|
};
|
4565
4512
|
|
4566
|
-
declare type LottieSettings = Omit<Config, 'src' | 'canvas'>;
|
4567
|
-
|
4568
4513
|
export declare const LPARChapter: FC<ILPARChapterProps>;
|
4569
4514
|
|
4570
4515
|
export declare const LPARMilestoneChapter: FC<ILPARMilestoneChapter>;
|
@@ -4735,28 +4680,6 @@ export declare enum NODE_TYPES {
|
|
4735
4680
|
'PUZZLE_CARD' = "PUZZLE_CARD"
|
4736
4681
|
}
|
4737
4682
|
|
4738
|
-
declare const Notification_2: React.FC<NotificationProps>;
|
4739
|
-
export { Notification_2 as Notification }
|
4740
|
-
|
4741
|
-
declare interface NotificationProps {
|
4742
|
-
avatarUrl?: string | null;
|
4743
|
-
Component?: React.ComponentType<Record<string, unknown>> | null;
|
4744
|
-
componentProps?: Record<string, unknown>;
|
4745
|
-
duration?: number | null;
|
4746
|
-
gap?: number;
|
4747
|
-
gutter?: number;
|
4748
|
-
hideNotification?: () => void;
|
4749
|
-
horizontalDist?: number;
|
4750
|
-
notificationTheme?: NotificationTheme;
|
4751
|
-
position?: Position;
|
4752
|
-
showCloseIcon?: boolean;
|
4753
|
-
text?: string | null;
|
4754
|
-
verticalDist?: number;
|
4755
|
-
visible?: boolean;
|
4756
|
-
}
|
4757
|
-
|
4758
|
-
declare type NotificationTheme = 'white' | 'black';
|
4759
|
-
|
4760
4683
|
export declare const Nudge: React_2.NamedExoticComponent<INudgeProps>;
|
4761
4684
|
|
4762
4685
|
export declare const NumRangeInput: React.FC<NumRangeInputProps>;
|
@@ -4841,8 +4764,6 @@ export declare const PlusIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
4841
4764
|
|
4842
4765
|
export declare const PointerIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
4843
4766
|
|
4844
|
-
declare type Position = 'top-right' | 'top-left' | 'bottom-left' | 'bottom-right';
|
4845
|
-
|
4846
4767
|
export declare const PostGameStats: NamedExoticComponent<IPostGameStatsProps & RefAttributes<IPostGameStatsRef>>;
|
4847
4768
|
|
4848
4769
|
export declare const PracticeIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|