@cuemath/leap 3.5.28 → 3.5.29
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.
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { jsx as n, Fragment as
|
|
2
|
-
import { useMemo as
|
|
3
|
-
import { ILLUSTRATIONS as
|
|
4
|
-
import
|
|
1
|
+
import { jsx as n, Fragment as P, jsxs as r } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as I } from "react";
|
|
3
|
+
import { ILLUSTRATIONS as D } from "../../../../../assets/illustrations/illustrations.js";
|
|
4
|
+
import u from "../../../../ui/layout/flex-view.js";
|
|
5
5
|
import s from "../../../../ui/separator/separator.js";
|
|
6
|
-
import
|
|
7
|
-
import { CardContainer as L, CardBoard as
|
|
8
|
-
const
|
|
9
|
-
const { plans: a } = o, { oneVsOnePlan:
|
|
6
|
+
import t from "../../../../ui/text/text.js";
|
|
7
|
+
import { CardContainer as L, CardBoard as w, ClipImage as M, BoardHole as T, CardBoardContent as O, DiscountTag as S } from "./india-pricing-styled.js";
|
|
8
|
+
const f = (o) => "duration" in o && "class_ratio" in o, E = (o, a) => a === 1 ? `YELLOW_${o + 1}` : `GREEN_${o + 1}`, j = (o) => {
|
|
9
|
+
const { plans: a } = o, { oneVsOnePlan: m, oneVsTowPlan: g } = I(
|
|
10
10
|
() => ({
|
|
11
11
|
oneVsOnePlan: a.filter(
|
|
12
|
-
(e) =>
|
|
13
|
-
).sort((e,
|
|
12
|
+
(e) => f(e) && e.class_ratio === 1
|
|
13
|
+
).sort((e, i) => e.duration - i.duration),
|
|
14
14
|
oneVsTowPlan: a.filter(
|
|
15
|
-
(e) =>
|
|
16
|
-
).sort((e,
|
|
15
|
+
(e) => f(e) && e.class_ratio === 2
|
|
16
|
+
).sort((e, i) => e.duration - i.duration)
|
|
17
17
|
}),
|
|
18
18
|
[a]
|
|
19
19
|
);
|
|
20
|
-
return /* @__PURE__ */ n(
|
|
20
|
+
return /* @__PURE__ */ n(P, { children: [m, g].map((e, i) => /* @__PURE__ */ r(L, { children: [
|
|
21
21
|
/* @__PURE__ */ n(s, { height: 12 }),
|
|
22
|
-
/* @__PURE__ */ r(
|
|
23
|
-
/* @__PURE__ */ n(
|
|
22
|
+
/* @__PURE__ */ r(w, { children: [
|
|
23
|
+
/* @__PURE__ */ n(M, { src: D.ELLIPSE_CLIP }),
|
|
24
24
|
/* @__PURE__ */ n(
|
|
25
|
-
|
|
25
|
+
T,
|
|
26
26
|
{
|
|
27
27
|
$height: 10,
|
|
28
28
|
$width: 10,
|
|
@@ -32,65 +32,68 @@ const $ = (o) => "duration" in o && "class_ratio" in o, O = (o, a) => a === 1 ?
|
|
|
32
32
|
}
|
|
33
33
|
)
|
|
34
34
|
] }),
|
|
35
|
-
/* @__PURE__ */ r(
|
|
35
|
+
/* @__PURE__ */ r(O, { children: [
|
|
36
36
|
/* @__PURE__ */ n(s, { height: 10 }),
|
|
37
|
-
/* @__PURE__ */ r(
|
|
37
|
+
/* @__PURE__ */ r(t, { $renderAs: "ac1", $align: "center", children: [
|
|
38
38
|
"1:",
|
|
39
|
-
|
|
39
|
+
i + 1
|
|
40
40
|
] }),
|
|
41
41
|
/* @__PURE__ */ n(s, { height: 5 }),
|
|
42
|
-
e.map((
|
|
42
|
+
e.map((p, b) => {
|
|
43
43
|
const {
|
|
44
|
-
amount:
|
|
45
|
-
duration:
|
|
44
|
+
amount: c,
|
|
45
|
+
duration: h,
|
|
46
46
|
class_ratio: _,
|
|
47
|
-
no_of_classes:
|
|
48
|
-
currency_symbol:
|
|
49
|
-
amount_after_coupon:
|
|
47
|
+
no_of_classes: A,
|
|
48
|
+
currency_symbol: l,
|
|
49
|
+
amount_after_coupon: d,
|
|
50
50
|
fee_per_class_after_discount: C
|
|
51
|
-
} =
|
|
51
|
+
} = p, $ = d !== c, x = Math.round((c - d) / c * 100);
|
|
52
52
|
return /* @__PURE__ */ r(
|
|
53
|
-
|
|
53
|
+
u,
|
|
54
54
|
{
|
|
55
55
|
$gap: 14,
|
|
56
56
|
$gutter: 40,
|
|
57
|
-
$background:
|
|
57
|
+
$background: E(b, _),
|
|
58
58
|
children: [
|
|
59
|
-
/* @__PURE__ */ r(
|
|
60
|
-
/* @__PURE__ */ r(
|
|
61
|
-
|
|
59
|
+
/* @__PURE__ */ r(u, { $flexDirection: "row", $flexGap: 12, $alignItems: "center", children: [
|
|
60
|
+
/* @__PURE__ */ r(t, { $renderAs: "ac3-black", children: [
|
|
61
|
+
h,
|
|
62
62
|
" MONTHS"
|
|
63
63
|
] }),
|
|
64
|
-
/* @__PURE__ */ r(
|
|
65
|
-
|
|
64
|
+
$ ? /* @__PURE__ */ r(S, { $renderAs: "ub3-bold", children: [
|
|
65
|
+
x,
|
|
66
66
|
"% off"
|
|
67
|
-
] })
|
|
67
|
+
] }) : null
|
|
68
68
|
] }),
|
|
69
69
|
/* @__PURE__ */ n(s, { height: 4 }),
|
|
70
|
-
/* @__PURE__ */
|
|
71
|
-
|
|
72
|
-
/* @__PURE__ */
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
70
|
+
/* @__PURE__ */ n(u, { $flexDirection: "row", $flexGap: 12, $alignItems: "center", children: $ ? /* @__PURE__ */ r(t, { $renderAs: "ab2", $textDecoration: "line-through", children: [
|
|
71
|
+
l + Math.round(c),
|
|
72
|
+
/* @__PURE__ */ r(t, { $renderAs: "ab1-bold", $inline: !0, children: [
|
|
73
|
+
" ",
|
|
74
|
+
l + Math.round(d)
|
|
75
|
+
] })
|
|
76
|
+
] }) : /* @__PURE__ */ n(t, { $renderAs: "ab1-bold", $inline: !0, children: l + Math.round(d) }) }),
|
|
77
|
+
/* @__PURE__ */ r(u, { $flexDirection: "row", $flexGap: 2, $alignItems: "center", children: [
|
|
78
|
+
/* @__PURE__ */ r(t, { $renderAs: "ub2", children: [
|
|
79
|
+
A,
|
|
77
80
|
" classes @"
|
|
78
81
|
] }),
|
|
79
|
-
/* @__PURE__ */ r(
|
|
80
|
-
|
|
82
|
+
/* @__PURE__ */ r(t, { $renderAs: "ub2-bold", children: [
|
|
83
|
+
l + Math.round(C),
|
|
81
84
|
"/class"
|
|
82
85
|
] })
|
|
83
86
|
] }),
|
|
84
87
|
/* @__PURE__ */ n(s, { height: 4 })
|
|
85
88
|
]
|
|
86
89
|
},
|
|
87
|
-
`ind-pricing-${
|
|
90
|
+
`ind-pricing-${h}`
|
|
88
91
|
);
|
|
89
92
|
})
|
|
90
93
|
] })
|
|
91
|
-
] }, `plan-${
|
|
94
|
+
] }, `plan-${i}`)) });
|
|
92
95
|
};
|
|
93
96
|
export {
|
|
94
|
-
|
|
97
|
+
j as default
|
|
95
98
|
};
|
|
96
99
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../src/features/trial-session/comps/pricing/india-pricing/index.tsx"],"sourcesContent":["import { useMemo, type FC } from 'react';\n\nimport { ILLUSTRATIONS } from '../../../../../assets/illustrations/illustrations';\nimport FlexView from '../../../../ui/layout/flex-view';\nimport Separator from '../../../../ui/separator/separator';\nimport Text from '../../../../ui/text/text';\nimport type { TColorNames } from '../../../../ui/types';\nimport type {\n IPricingIndiaProps,\n TPricingDetails,\n TLowIntentPricingDetails,\n} from '../pricing-typed';\nimport * as Styled from './india-pricing-styled';\n\nconst isPricingDetails = (\n plan: TPricingDetails | TLowIntentPricingDetails,\n): plan is TPricingDetails => {\n return 'duration' in plan && 'class_ratio' in plan;\n};\n\nconst getColorIndex = (index: number, ratio?: 1 | 2): TColorNames => {\n if (ratio === 1) return `YELLOW_${(index + 1) as 1 | 2 | 3 | 4 | 5 | 6}`;\n\n return `GREEN_${(index + 1) as 1 | 2 | 3 | 4 | 5 | 6}`;\n};\n\nconst PricingIndia: FC<IPricingIndiaProps> = props => {\n const { plans } = props;\n const { oneVsOnePlan, oneVsTowPlan } = useMemo(\n () => ({\n oneVsOnePlan: plans\n .filter(\n (element): element is TPricingDetails =>\n isPricingDetails(element) && element.class_ratio === 1,\n )\n .sort((a, b) => a.duration - b.duration),\n oneVsTowPlan: plans\n .filter(\n (element): element is TPricingDetails =>\n isPricingDetails(element) && element.class_ratio === 2,\n )\n .sort((a, b) => a.duration - b.duration),\n }),\n [plans],\n );\n\n return (\n <>\n {[oneVsOnePlan, oneVsTowPlan].map((plan, planIndex) => (\n <Styled.CardContainer key={`plan-${planIndex}`}>\n <Separator height={12} />\n <Styled.CardBoard>\n <Styled.ClipImage src={ILLUSTRATIONS.ELLIPSE_CLIP} />\n <Styled.BoardHole\n $height={10}\n $width={10}\n $borderRadius={5}\n $background=\"BLACK_1\"\n $position=\"absolute\"\n />\n </Styled.CardBoard>\n <Styled.CardBoardContent>\n <Separator height={10} />\n <Text $renderAs=\"ac1\" $align=\"center\">\n 1:{planIndex + 1}\n </Text>\n <Separator height={5} />\n {plan.map((planConfig, index) => {\n const {\n amount,\n duration,\n class_ratio: classRatio,\n no_of_classes: noOfClasses,\n currency_symbol: currencySymbol,\n amount_after_coupon: amountAfterCoupon,\n fee_per_class_after_discount: feePerClassAfterDiscount,\n } = planConfig;\n\n return (\n <FlexView\n key={`ind-pricing-${duration}`}\n $gap={14}\n $gutter={40}\n $background={getColorIndex(index, classRatio)}\n >\n <FlexView $flexDirection=\"row\" $flexGap={12} $alignItems=\"center\">\n <Text $renderAs=\"ac3-black\">{duration} MONTHS</Text>\n <Styled.DiscountTag $renderAs=\"ub3-bold\">\n
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../src/features/trial-session/comps/pricing/india-pricing/index.tsx"],"sourcesContent":["import { useMemo, type FC } from 'react';\n\nimport { ILLUSTRATIONS } from '../../../../../assets/illustrations/illustrations';\nimport FlexView from '../../../../ui/layout/flex-view';\nimport Separator from '../../../../ui/separator/separator';\nimport Text from '../../../../ui/text/text';\nimport type { TColorNames } from '../../../../ui/types';\nimport type {\n IPricingIndiaProps,\n TPricingDetails,\n TLowIntentPricingDetails,\n} from '../pricing-typed';\nimport * as Styled from './india-pricing-styled';\n\nconst isPricingDetails = (\n plan: TPricingDetails | TLowIntentPricingDetails,\n): plan is TPricingDetails => {\n return 'duration' in plan && 'class_ratio' in plan;\n};\n\nconst getColorIndex = (index: number, ratio?: 1 | 2): TColorNames => {\n if (ratio === 1) return `YELLOW_${(index + 1) as 1 | 2 | 3 | 4 | 5 | 6}`;\n\n return `GREEN_${(index + 1) as 1 | 2 | 3 | 4 | 5 | 6}`;\n};\n\nconst PricingIndia: FC<IPricingIndiaProps> = props => {\n const { plans } = props;\n const { oneVsOnePlan, oneVsTowPlan } = useMemo(\n () => ({\n oneVsOnePlan: plans\n .filter(\n (element): element is TPricingDetails =>\n isPricingDetails(element) && element.class_ratio === 1,\n )\n .sort((a, b) => a.duration - b.duration),\n oneVsTowPlan: plans\n .filter(\n (element): element is TPricingDetails =>\n isPricingDetails(element) && element.class_ratio === 2,\n )\n .sort((a, b) => a.duration - b.duration),\n }),\n [plans],\n );\n\n return (\n <>\n {[oneVsOnePlan, oneVsTowPlan].map((plan, planIndex) => (\n <Styled.CardContainer key={`plan-${planIndex}`}>\n <Separator height={12} />\n <Styled.CardBoard>\n <Styled.ClipImage src={ILLUSTRATIONS.ELLIPSE_CLIP} />\n <Styled.BoardHole\n $height={10}\n $width={10}\n $borderRadius={5}\n $background=\"BLACK_1\"\n $position=\"absolute\"\n />\n </Styled.CardBoard>\n <Styled.CardBoardContent>\n <Separator height={10} />\n <Text $renderAs=\"ac1\" $align=\"center\">\n 1:{planIndex + 1}\n </Text>\n <Separator height={5} />\n {plan.map((planConfig, index) => {\n const {\n amount,\n duration,\n class_ratio: classRatio,\n no_of_classes: noOfClasses,\n currency_symbol: currencySymbol,\n amount_after_coupon: amountAfterCoupon,\n fee_per_class_after_discount: feePerClassAfterDiscount,\n } = planConfig;\n\n const isDiscounted = amountAfterCoupon !== amount;\n const discountPercentage = Math.round(((amount - amountAfterCoupon) / amount) * 100);\n\n return (\n <FlexView\n key={`ind-pricing-${duration}`}\n $gap={14}\n $gutter={40}\n $background={getColorIndex(index, classRatio)}\n >\n <FlexView $flexDirection=\"row\" $flexGap={12} $alignItems=\"center\">\n <Text $renderAs=\"ac3-black\">{duration} MONTHS</Text>\n {isDiscounted ? (\n <Styled.DiscountTag $renderAs=\"ub3-bold\">\n {discountPercentage}% off\n </Styled.DiscountTag>\n ) : null}\n </FlexView>\n <Separator height={4} />\n <FlexView $flexDirection=\"row\" $flexGap={12} $alignItems=\"center\">\n {isDiscounted ? (\n <Text $renderAs=\"ab2\" $textDecoration=\"line-through\">\n {currencySymbol + Math.round(amount)}\n <Text $renderAs=\"ab1-bold\" $inline>\n \n {currencySymbol + Math.round(amountAfterCoupon)}\n </Text>\n </Text>\n ) : (\n <Text $renderAs=\"ab1-bold\" $inline>\n {currencySymbol + Math.round(amountAfterCoupon)}\n </Text>\n )}\n </FlexView>\n <FlexView $flexDirection=\"row\" $flexGap={2} $alignItems=\"center\">\n <Text $renderAs=\"ub2\">{noOfClasses} classes @</Text>\n <Text $renderAs=\"ub2-bold\">\n {currencySymbol + Math.round(feePerClassAfterDiscount)}/class\n </Text>\n </FlexView>\n <Separator height={4} />\n </FlexView>\n );\n })}\n </Styled.CardBoardContent>\n </Styled.CardContainer>\n ))}\n </>\n );\n};\n\nexport default PricingIndia;\n"],"names":["isPricingDetails","plan","getColorIndex","index","ratio","PricingIndia","props","plans","oneVsOnePlan","oneVsTowPlan","useMemo","element","a","b","jsx","Fragment","planIndex","jsxs","Styled.CardContainer","Separator","Styled.CardBoard","Styled.ClipImage","ILLUSTRATIONS","Styled.BoardHole","Styled.CardBoardContent","Text","planConfig","amount","duration","classRatio","noOfClasses","currencySymbol","amountAfterCoupon","feePerClassAfterDiscount","isDiscounted","discountPercentage","FlexView","Styled.DiscountTag"],"mappings":";;;;;;;AAcA,MAAMA,IAAmB,CACvBC,MAEO,cAAcA,KAAQ,iBAAiBA,GAG1CC,IAAgB,CAACC,GAAeC,MAChCA,MAAU,IAAU,U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A,cAAA,EACF,CAAA,IAEA,gBAAAlB,EAACW,GAAK,EAAA,WAAU,YAAW,SAAO,IAC/B,UAAAM,IAAiB,KAAK,MAAMC,CAAiB,EAChD,CAAA,GAEJ;AAAA,gCACCI,GAAS,EAAA,gBAAe,OAAM,UAAU,GAAG,aAAY,UACtD,UAAA;AAAA,gBAAC,gBAAAnB,EAAAQ,GAAA,EAAK,WAAU,OAAO,UAAA;AAAA,kBAAAK;AAAA,kBAAY;AAAA,gBAAA,GAAU;AAAA,gBAC7C,gBAAAb,EAACQ,GAAK,EAAA,WAAU,YACb,UAAA;AAAA,kBAAiBM,IAAA,KAAK,MAAME,CAAwB;AAAA,kBAAE;AAAA,gBAAA,GACzD;AAAA,cAAA,GACF;AAAA,cACA,gBAAAnB,EAACK,GAAU,EAAA,QAAQ,EAAG,CAAA;AAAA,YAAA;AAAA,UAAA;AAAA,UAnCjB,eAAeS,CAAQ;AAAA,QAAA;AAAA,MAoC9B,CAEH;AAAA,IAAA,GACH;AAAA,EAAA,EAAA,GAzEyB,QAAQZ,CAAS,EA0E5C,CACD,EACH,CAAA;AAEJ;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { ButtonHTMLAttributes } from 'react';
|
|
2
|
-
import { Channel } from '@cuemath/cue-message-broker';
|
|
1
|
+
import type { ButtonHTMLAttributes } from 'react';
|
|
2
|
+
import type { Channel } from '@cuemath/cue-message-broker';
|
|
3
3
|
import { ChannelStatus } from '@cuemath/cue-message-broker';
|
|
4
4
|
import { ComponentProps } from 'react';
|
|
5
5
|
import { ComponentType } from 'react';
|
|
6
|
-
import { Config } from '@lottiefiles/dotlottie-web';
|
|
6
|
+
import type { Config } from '@lottiefiles/dotlottie-web';
|
|
7
7
|
import { Context } from 'react';
|
|
8
|
-
import { Data } from '@lottiefiles/dotlottie-web';
|
|
9
|
-
import { DefaultTheme } from 'styled-components';
|
|
8
|
+
import type { Data } from '@lottiefiles/dotlottie-web';
|
|
9
|
+
import type { DefaultTheme } from 'styled-components';
|
|
10
10
|
import { DetailedHTMLProps } from 'react';
|
|
11
|
-
import { Dispatch } from 'react';
|
|
12
|
-
import { EventListener as EventListener_2 } from '@lottiefiles/dotlottie-web';
|
|
13
|
-
import { EventType } from '@lottiefiles/dotlottie-web';
|
|
11
|
+
import type { Dispatch } from 'react';
|
|
12
|
+
import type { EventListener as EventListener_2 } from '@lottiefiles/dotlottie-web';
|
|
13
|
+
import type { EventType } from '@lottiefiles/dotlottie-web';
|
|
14
14
|
import { FC } from 'react';
|
|
15
|
-
import { FormEvent } from 'react';
|
|
15
|
+
import type { FormEvent } from 'react';
|
|
16
16
|
import { ForwardRefExoticComponent } from 'react';
|
|
17
17
|
import { HTMLAttributes } from 'react';
|
|
18
|
-
import { HTMLProps } from 'react';
|
|
18
|
+
import type { HTMLProps } from 'react';
|
|
19
19
|
import { IChannelMessage } from '@cuemath/cue-message-broker';
|
|
20
|
-
import { IframeHTMLAttributes } from 'react';
|
|
21
|
-
import { ImgHTMLAttributes } from 'react';
|
|
22
|
-
import { InputHTMLAttributes } from 'react';
|
|
20
|
+
import type { IframeHTMLAttributes } from 'react';
|
|
21
|
+
import type { ImgHTMLAttributes } from 'react';
|
|
22
|
+
import type { InputHTMLAttributes } from 'react';
|
|
23
23
|
import { IProvidedProps } from 'google-maps-react';
|
|
24
24
|
import { IStyledComponent } from 'styled-components';
|
|
25
25
|
import { JSX } from 'react/jsx-runtime';
|
|
26
26
|
import { MemoExoticComponent } from 'react';
|
|
27
|
-
import { MutableRefObject } from 'react';
|
|
27
|
+
import type { MutableRefObject } from 'react';
|
|
28
28
|
import { NamedExoticComponent } from 'react';
|
|
29
29
|
import { Omit as Omit_2 } from 'google-maps-react';
|
|
30
|
-
import { PLUGIN_NAME } from '@cuemath/analytics-v2/dist/constants';
|
|
30
|
+
import type { PLUGIN_NAME } from '@cuemath/analytics-v2/dist/constants';
|
|
31
31
|
import { PropsWithChildren } from 'react';
|
|
32
32
|
import { ReactElement } from 'react';
|
|
33
33
|
import { ReactNode } from 'react';
|
|
34
34
|
import { RefAttributes } from 'react';
|
|
35
35
|
import { RefObject } from 'react';
|
|
36
36
|
import { ResourceModel } from '@cuemath/rest-api';
|
|
37
|
-
import { SetStateAction } from 'react';
|
|
37
|
+
import type { SetStateAction } from 'react';
|
|
38
38
|
import { Substitute } from 'styled-components/dist/types';
|
|
39
39
|
import { SVGProps } from 'react';
|
|
40
40
|
import { VideoHTMLAttributes } from 'react';
|
|
@@ -87,7 +87,7 @@ declare type AnimationSegment = [number, number];
|
|
|
87
87
|
export declare const AppLoader: FC<IAppLoaderProps>;
|
|
88
88
|
|
|
89
89
|
export declare const ArcButton: NamedExoticComponent<IArcButtonProps & {
|
|
90
|
-
children?: ReactNode | undefined;
|
|
90
|
+
children?: ReactNode | undefined;
|
|
91
91
|
} & RefAttributes<HTMLDivElement>>;
|
|
92
92
|
|
|
93
93
|
export declare const ArrowTooltip: NamedExoticComponent<IArrowTooltipProps>;
|
|
@@ -450,7 +450,7 @@ declare interface CueCoinIconProps extends SVGProps<SVGSVGElement> {
|
|
|
450
450
|
variant?: 'gold' | 'silver';
|
|
451
451
|
}
|
|
452
452
|
|
|
453
|
-
export declare const CuemathAppFeatures: NamedExoticComponent<
|
|
453
|
+
export declare const CuemathAppFeatures: NamedExoticComponent<{}>;
|
|
454
454
|
|
|
455
455
|
export declare const CuemathLogo: FC<SVGProps<SVGSVGElement>>;
|
|
456
456
|
|
|
@@ -707,7 +707,7 @@ declare enum GENDER {
|
|
|
707
707
|
OTHER = "OTHER"
|
|
708
708
|
}
|
|
709
709
|
|
|
710
|
-
export declare const getActiveSATSheet: (sheets: TLPARSheetData[]) => TLPARSheetData
|
|
710
|
+
export declare const getActiveSATSheet: (sheets: TLPARSheetData[]) => TLPARSheetData;
|
|
711
711
|
|
|
712
712
|
declare const getArrowTooltipConfig: IGetArrowTooltipConfig;
|
|
713
713
|
|
|
@@ -5354,7 +5354,7 @@ export declare const OTPInput: NamedExoticComponent<IOTPInputProps>;
|
|
|
5354
5354
|
export declare type OutcomeStage = keyof typeof STAGES;
|
|
5355
5355
|
|
|
5356
5356
|
export declare const OverlayLoader: MemoExoticComponent<({ isLoading }: {
|
|
5357
|
-
isLoading?: boolean | undefined;
|
|
5357
|
+
isLoading?: boolean | undefined;
|
|
5358
5358
|
}) => JSX.Element | null>;
|
|
5359
5359
|
|
|
5360
5360
|
export declare const ParentDashboard: NamedExoticComponent<IParentDashboardProps>;
|
|
@@ -5690,7 +5690,7 @@ export declare const SheetIcon: FC<SVGProps<SVGSVGElement>>;
|
|
|
5690
5690
|
export declare const SheetList: FC<ISheetsListProps>;
|
|
5691
5691
|
|
|
5692
5692
|
export declare const SheetLocked: MemoExoticComponent<({ onHomeClick }: {
|
|
5693
|
-
onHomeClick: () => void;
|
|
5693
|
+
onHomeClick: () => void;
|
|
5694
5694
|
}) => JSX.Element>;
|
|
5695
5695
|
|
|
5696
5696
|
export declare const SignUp: ({ circleOnLeapPremiumDays, circleUsername, countryCode, grade: defaultGrade, state, circleOnLeapPremiumEnabled, studentId, isSignUpProcessing, onCreateUser, onUpdateUser, onSignupStepsComplete, isPLAStudent, }: ISignUpProps) => JSX.Element;
|
|
@@ -7223,8 +7223,8 @@ export declare const useGetMilestoneResources: (initialId?: string, initialQuery
|
|
|
7223
7223
|
|
|
7224
7224
|
export declare const useGetPastMilestoneCount: (initialId?: string, initialQuery?: void | undefined) => {
|
|
7225
7225
|
get: (id: string, query: void, meta: TQuery_2) => Promise<void>;
|
|
7226
|
-
resource: ResourceModel<
|
|
7227
|
-
|
|
7226
|
+
resource: ResourceModel<{
|
|
7227
|
+
user_milestones_count: number;
|
|
7228
7228
|
}> | undefined;
|
|
7229
7229
|
data: {
|
|
7230
7230
|
user_milestones_count: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cuemath/leap",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.29",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -89,6 +89,5 @@
|
|
|
89
89
|
"vite-plugin-dts": "4.5.4",
|
|
90
90
|
"vite-plugin-svgr": "3.2.0",
|
|
91
91
|
"vite-tsconfig-paths": "^4.2.2"
|
|
92
|
-
}
|
|
93
|
-
"packageManager": "yarn@4.9.2"
|
|
92
|
+
}
|
|
94
93
|
}
|