@cuemath/leap 3.1.52-beta-0.2 → 3.1.52-beta-0.3
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/puzzles/comps/puzzle-card.js +37 -28
- package/dist/features/puzzles/comps/puzzle-card.js.map +1 -1
- package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard.js +32 -30
- package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,41 +1,50 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { memo as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { PuzzleWrapper as
|
|
8
|
-
const
|
|
1
|
+
import { jsxs as c, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { memo as f, useCallback as $ } from "react";
|
|
3
|
+
import g from "../../ui/image/image.js";
|
|
4
|
+
import z from "../../ui/layout/flex-view.js";
|
|
5
|
+
import u from "../../ui/lottie-animation/lottie-animation.js";
|
|
6
|
+
import { getPuzzleStickerLottie as d } from "../utils/puzzle-feedback-celebration.js";
|
|
7
|
+
import { PuzzleWrapper as x, Title as L, StickerWrapper as S } from "./puzzle-card-styled.js";
|
|
8
|
+
const j = {
|
|
9
9
|
autoplay: !1,
|
|
10
10
|
loop: !1,
|
|
11
11
|
renderer: "canvas"
|
|
12
|
-
},
|
|
13
|
-
({
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
}, W = f(
|
|
13
|
+
({
|
|
14
|
+
imageHue: o,
|
|
15
|
+
imageUrl: m,
|
|
16
|
+
title: h,
|
|
17
|
+
height: s = "100%",
|
|
18
|
+
width: a = "100%",
|
|
19
|
+
onCardClick: t,
|
|
20
|
+
userNodeId: i,
|
|
21
|
+
rewards: r
|
|
22
|
+
}) => {
|
|
23
|
+
const { sticker: n } = (r == null ? void 0 : r[0]) || {}, l = n ? d(n) : void 0, p = $(() => {
|
|
24
|
+
i && (t == null || t(i));
|
|
25
|
+
}, [t, i]);
|
|
26
|
+
return /* @__PURE__ */ c(
|
|
27
|
+
x,
|
|
19
28
|
{
|
|
20
|
-
$width:
|
|
21
|
-
$height:
|
|
29
|
+
$width: a,
|
|
30
|
+
$height: s,
|
|
22
31
|
$justifyContent: "center",
|
|
23
32
|
$alignItems: "center",
|
|
24
|
-
$imageHue:
|
|
25
|
-
$background: `${
|
|
26
|
-
onClick:
|
|
33
|
+
$imageHue: o,
|
|
34
|
+
$background: `${o}_2`,
|
|
35
|
+
onClick: p,
|
|
27
36
|
children: [
|
|
28
|
-
/* @__PURE__ */
|
|
29
|
-
/* @__PURE__ */
|
|
30
|
-
/* @__PURE__ */
|
|
37
|
+
/* @__PURE__ */ c(z, { $justifyContent: "center", $alignItems: "center", $flexGap: 12, children: [
|
|
38
|
+
/* @__PURE__ */ e(g, { src: m ?? "", width: 68, height: 68, withLoader: !1, alt: "Puzzle" }),
|
|
39
|
+
/* @__PURE__ */ e(L, { $renderAs: "ab3", $align: "center", $width: "80%", children: h })
|
|
31
40
|
] }),
|
|
32
|
-
/* @__PURE__ */
|
|
33
|
-
|
|
41
|
+
l && /* @__PURE__ */ e(S, { $widthX: 2.5, $heightX: 2.5, children: /* @__PURE__ */ e(
|
|
42
|
+
u,
|
|
34
43
|
{
|
|
35
44
|
width: 40,
|
|
36
45
|
height: 40,
|
|
37
|
-
src:
|
|
38
|
-
settings:
|
|
46
|
+
src: l,
|
|
47
|
+
settings: j
|
|
39
48
|
}
|
|
40
49
|
) })
|
|
41
50
|
]
|
|
@@ -44,6 +53,6 @@ const w = {
|
|
|
44
53
|
}
|
|
45
54
|
);
|
|
46
55
|
export {
|
|
47
|
-
|
|
56
|
+
W as default
|
|
48
57
|
};
|
|
49
58
|
//# sourceMappingURL=puzzle-card.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"puzzle-card.js","sources":["../../../../src/features/puzzles/comps/puzzle-card.tsx"],"sourcesContent":["import type { IPuzzleCardProps } from './puzzle-card-types';\nimport type { FC } from 'react';\n\nimport { memo, useCallback } from 'react';\n\nimport
|
|
1
|
+
{"version":3,"file":"puzzle-card.js","sources":["../../../../src/features/puzzles/comps/puzzle-card.tsx"],"sourcesContent":["import type { IPuzzleCardProps } from './puzzle-card-types';\nimport type { FC } from 'react';\n\nimport { memo, useCallback } from 'react';\n\nimport Image from '../../ui/image/image';\nimport FlexView from '../../ui/layout/flex-view';\nimport LottieAnimation from '../../ui/lottie-animation/lottie-animation';\nimport { getPuzzleStickerLottie } from '../utils/puzzle-feedback-celebration';\nimport * as Styled from './puzzle-card-styled';\n\nconst puzzleStickerLottieSettings = {\n autoplay: false,\n loop: false,\n renderer: 'canvas',\n};\n\nconst PuzzleCard: FC<IPuzzleCardProps> = memo(\n ({\n imageHue,\n imageUrl,\n title,\n height = '100%',\n width = '100%',\n onCardClick,\n userNodeId,\n rewards,\n }) => {\n const { sticker } = rewards?.[0] || {};\n\n const puzzleStickerLottie = sticker ? getPuzzleStickerLottie(sticker) : undefined;\n\n const handleCardClick = useCallback(() => {\n if (userNodeId) {\n onCardClick?.(userNodeId);\n }\n }, [onCardClick, userNodeId]);\n\n return (\n <Styled.PuzzleWrapper\n $width={width}\n $height={height}\n $justifyContent=\"center\"\n $alignItems=\"center\"\n $imageHue={imageHue}\n $background={`${imageHue}_2`}\n onClick={handleCardClick}\n >\n <FlexView $justifyContent=\"center\" $alignItems=\"center\" $flexGap={12}>\n <Image src={imageUrl ?? ''} width={68} height={68} withLoader={false} alt=\"Puzzle\" />\n\n <Styled.Title $renderAs=\"ab3\" $align=\"center\" $width=\"80%\">\n {title}\n </Styled.Title>\n </FlexView>\n\n {puzzleStickerLottie && (\n <Styled.StickerWrapper $widthX={2.5} $heightX={2.5}>\n <LottieAnimation\n width={40}\n height={40}\n src={puzzleStickerLottie}\n settings={puzzleStickerLottieSettings}\n />\n </Styled.StickerWrapper>\n )}\n </Styled.PuzzleWrapper>\n );\n },\n);\n\nexport default PuzzleCard;\n"],"names":["puzzleStickerLottieSettings","PuzzleCard","memo","imageHue","imageUrl","title","height","width","onCardClick","userNodeId","rewards","sticker","puzzleStickerLottie","getPuzzleStickerLottie","handleCardClick","useCallback","jsxs","Styled.PuzzleWrapper","FlexView","jsx","Image","Styled.Title","Styled.StickerWrapper","LottieAnimation"],"mappings":";;;;;;;AAWA,MAAMA,IAA8B;AAAA,EAClC,UAAU;AAAA,EACV,MAAM;AAAA,EACN,UAAU;AACZ,GAEMC,IAAmCC;AAAA,EACvC,CAAC;AAAA,IACC,UAAAC;AAAA,IACA,UAAAC;AAAA,IACA,OAAAC;AAAA,IACA,QAAAC,IAAS;AAAA,IACT,OAAAC,IAAQ;AAAA,IACR,aAAAC;AAAA,IACA,YAAAC;AAAA,IACA,SAAAC;AAAA,EAAA,MACI;AACJ,UAAM,EAAE,SAAAC,EAAQ,KAAID,KAAA,gBAAAA,EAAU,OAAM,CAAA,GAE9BE,IAAsBD,IAAUE,EAAuBF,CAAO,IAAI,QAElEG,IAAkBC,EAAY,MAAM;AACxC,MAAIN,MACFD,KAAA,QAAAA,EAAcC;AAAA,IAChB,GACC,CAACD,GAAaC,CAAU,CAAC;AAG1B,WAAA,gBAAAO;AAAA,MAACC;AAAAA,MAAA;AAAA,QACC,QAAQV;AAAA,QACR,SAASD;AAAA,QACT,iBAAgB;AAAA,QAChB,aAAY;AAAA,QACZ,WAAWH;AAAA,QACX,aAAa,GAAGA,CAAQ;AAAA,QACxB,SAASW;AAAA,QAET,UAAA;AAAA,UAAA,gBAAAE,EAACE,KAAS,iBAAgB,UAAS,aAAY,UAAS,UAAU,IAChE,UAAA;AAAA,YAAC,gBAAAC,EAAAC,GAAA,EAAM,KAAKhB,KAAY,IAAI,OAAO,IAAI,QAAQ,IAAI,YAAY,IAAO,KAAI,SAAS,CAAA;AAAA,YAEnF,gBAAAe,EAACE,GAAA,EAAa,WAAU,OAAM,QAAO,UAAS,QAAO,OAClD,UACHhB,EAAA,CAAA;AAAA,UAAA,GACF;AAAA,UAECO,uBACEU,GAAA,EAAsB,SAAS,KAAK,UAAU,KAC7C,UAAA,gBAAAH;AAAA,YAACI;AAAA,YAAA;AAAA,cACC,OAAO;AAAA,cACP,QAAQ;AAAA,cACR,KAAKX;AAAA,cACL,UAAUZ;AAAA,YAAA;AAAA,UAAA,GAEd;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAIR;AACF;"}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
|
-
import { useCallback as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { useGetPuzzles as
|
|
10
|
-
import
|
|
11
|
-
import { PuzzleDashboardWrapper as B, BannerWrapper as X, BackIconContainer as _, BackIconWrapper as j, ContentWrapper as
|
|
12
|
-
const
|
|
2
|
+
import { useCallback as P, useEffect as b } from "react";
|
|
3
|
+
import x from "../../../assets/line-icons/icons/back2.js";
|
|
4
|
+
import C from "../../ui/buttons/button/button.js";
|
|
5
|
+
import w from "../../ui/buttons/icon-button/icon-button.js";
|
|
6
|
+
import I from "../../ui/layout/flex-view.js";
|
|
7
|
+
import A from "../../ui/loader/app-loader/app-loader.js";
|
|
8
|
+
import l from "../../ui/text/text.js";
|
|
9
|
+
import { useGetPuzzles as k } from "../api/puzzle-dashboard.js";
|
|
10
|
+
import v from "../comps/puzzle-card.js";
|
|
11
|
+
import { PuzzleDashboardWrapper as B, BannerWrapper as X, BackIconContainer as _, BackIconWrapper as j, ContentWrapper as y } from "./puzzle-dashboard-styled.js";
|
|
12
|
+
const S = ({ studentId: i, onBackCLick: o, onCardClick: s }) => {
|
|
13
13
|
const {
|
|
14
|
-
get:
|
|
14
|
+
get: a,
|
|
15
15
|
data: r,
|
|
16
16
|
isProcessing: c,
|
|
17
17
|
isProcessingFailed: m
|
|
18
|
-
} =
|
|
19
|
-
|
|
18
|
+
} = k(), h = (r == null ? void 0 : r.length) || 0, n = P(() => {
|
|
19
|
+
a(i, void 0, {
|
|
20
20
|
courseStream: "MATH"
|
|
21
21
|
});
|
|
22
|
-
}, [
|
|
23
|
-
return
|
|
22
|
+
}, [a, i]);
|
|
23
|
+
return b(() => {
|
|
24
24
|
n();
|
|
25
|
-
}, [n]), c ? /* @__PURE__ */ e(
|
|
26
|
-
/* @__PURE__ */ e(
|
|
25
|
+
}, [n]), c ? /* @__PURE__ */ e(A, { height: "100vh" }) : m ? /* @__PURE__ */ t(I, { $flexGapX: 1.5, $height: "100vh", $justifyContent: "center", $alignItems: "center", children: [
|
|
26
|
+
/* @__PURE__ */ e(l, { $renderAs: "h6", children: "Oops! Something went wrong. Please try again later." }),
|
|
27
27
|
/* @__PURE__ */ e(
|
|
28
|
-
|
|
28
|
+
C,
|
|
29
29
|
{
|
|
30
30
|
widthX: 14,
|
|
31
31
|
size: "small",
|
|
@@ -37,31 +37,32 @@ const y = ({ studentId: i, onBackCLick: l, onCardClick: s }) => {
|
|
|
37
37
|
)
|
|
38
38
|
] }) : /* @__PURE__ */ t(B, { $alignItems: "center", $flexGapX: 2.5, $position: "relative", children: [
|
|
39
39
|
/* @__PURE__ */ t(X, { $widthX: 50, $heightX: 10.5, $justifyContent: "center", children: [
|
|
40
|
-
/* @__PURE__ */ t(
|
|
40
|
+
/* @__PURE__ */ t(l, { $renderAs: "ah3-bold", $alignSelf: "center", children: [
|
|
41
41
|
h,
|
|
42
42
|
" Puzzles Solved"
|
|
43
43
|
] }),
|
|
44
|
-
/* @__PURE__ */ e(_, { $height: "100%", children: /* @__PURE__ */ e(j, { children: /* @__PURE__ */ e(
|
|
45
|
-
|
|
44
|
+
o && /* @__PURE__ */ e(_, { $height: "100%", children: /* @__PURE__ */ e(j, { children: /* @__PURE__ */ e(
|
|
45
|
+
w,
|
|
46
46
|
{
|
|
47
|
-
Icon:
|
|
47
|
+
Icon: x,
|
|
48
48
|
size: "xsmall",
|
|
49
49
|
renderAs: "secondary",
|
|
50
50
|
analyticsLabel: "puzzle_back",
|
|
51
|
-
onClick:
|
|
51
|
+
onClick: o
|
|
52
52
|
}
|
|
53
53
|
) }) })
|
|
54
54
|
] }),
|
|
55
|
-
/* @__PURE__ */ e(
|
|
55
|
+
/* @__PURE__ */ e(y, { children: r == null ? void 0 : r.map((d) => {
|
|
56
56
|
const {
|
|
57
57
|
id: p,
|
|
58
58
|
image_hue: u,
|
|
59
59
|
image_url: f,
|
|
60
60
|
title: g,
|
|
61
|
-
user_node_id: z
|
|
61
|
+
user_node_id: z,
|
|
62
|
+
rewards: $
|
|
62
63
|
} = d;
|
|
63
64
|
return /* @__PURE__ */ e(
|
|
64
|
-
|
|
65
|
+
v,
|
|
65
66
|
{
|
|
66
67
|
imageHue: u,
|
|
67
68
|
imageUrl: f,
|
|
@@ -69,14 +70,15 @@ const y = ({ studentId: i, onBackCLick: l, onCardClick: s }) => {
|
|
|
69
70
|
width: 126,
|
|
70
71
|
height: 152,
|
|
71
72
|
onCardClick: s,
|
|
72
|
-
userNodeId: z
|
|
73
|
+
userNodeId: z,
|
|
74
|
+
rewards: $
|
|
73
75
|
},
|
|
74
76
|
p
|
|
75
77
|
);
|
|
76
78
|
}) })
|
|
77
79
|
] });
|
|
78
|
-
},
|
|
80
|
+
}, V = S;
|
|
79
81
|
export {
|
|
80
|
-
|
|
82
|
+
V as default
|
|
81
83
|
};
|
|
82
84
|
//# sourceMappingURL=puzzle-dashboard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"puzzle-dashboard.js","sources":["../../../../src/features/puzzles/puzzle-dashboard/puzzle-dashboard.tsx"],"sourcesContent":["import type { IPuzzleDashboardProps } from './puzzle-dashboard-types';\n\nimport { useCallback, useEffect, type FC } from 'react';\n\nimport Back2Icon from '../../../assets/line-icons/icons/back2';\nimport Button from '../../ui/buttons/button/button';\nimport IconButton from '../../ui/buttons/icon-button/icon-button';\nimport FlexView from '../../ui/layout/flex-view';\nimport AppLoader from '../../ui/loader/app-loader/app-loader';\nimport Text from '../../ui/text/text';\nimport { useGetPuzzles } from '../api/puzzle-dashboard';\nimport PuzzleCard from '../comps/puzzle-card';\nimport * as Styled from './puzzle-dashboard-styled';\n\nconst PuzzleDashboard: FC<IPuzzleDashboardProps> = ({ studentId, onBackCLick, onCardClick }) => {\n const {\n get: getPuzzles,\n data: puzzleHistoryData,\n isProcessing,\n isProcessingFailed,\n } = useGetPuzzles();\n\n const puzzleCount = puzzleHistoryData?.length || 0;\n\n const fetchPuzzles = useCallback(() => {\n getPuzzles(studentId, undefined, {\n courseStream: 'MATH',\n });\n }, [getPuzzles, studentId]);\n\n useEffect(() => {\n fetchPuzzles();\n }, [fetchPuzzles]);\n\n if (isProcessing) {\n return <AppLoader height=\"
|
|
1
|
+
{"version":3,"file":"puzzle-dashboard.js","sources":["../../../../src/features/puzzles/puzzle-dashboard/puzzle-dashboard.tsx"],"sourcesContent":["import type { IPuzzleDashboardProps } from './puzzle-dashboard-types';\n\nimport { useCallback, useEffect, type FC } from 'react';\n\nimport Back2Icon from '../../../assets/line-icons/icons/back2';\nimport Button from '../../ui/buttons/button/button';\nimport IconButton from '../../ui/buttons/icon-button/icon-button';\nimport FlexView from '../../ui/layout/flex-view';\nimport AppLoader from '../../ui/loader/app-loader/app-loader';\nimport Text from '../../ui/text/text';\nimport { useGetPuzzles } from '../api/puzzle-dashboard';\nimport PuzzleCard from '../comps/puzzle-card';\nimport * as Styled from './puzzle-dashboard-styled';\n\nconst PuzzleDashboard: FC<IPuzzleDashboardProps> = ({ studentId, onBackCLick, onCardClick }) => {\n const {\n get: getPuzzles,\n data: puzzleHistoryData,\n isProcessing,\n isProcessingFailed,\n } = useGetPuzzles();\n\n const puzzleCount = puzzleHistoryData?.length || 0;\n\n const fetchPuzzles = useCallback(() => {\n getPuzzles(studentId, undefined, {\n courseStream: 'MATH',\n });\n }, [getPuzzles, studentId]);\n\n useEffect(() => {\n fetchPuzzles();\n }, [fetchPuzzles]);\n\n if (isProcessing) {\n return <AppLoader height=\"100vh\" />;\n }\n\n if (isProcessingFailed) {\n return (\n <FlexView $flexGapX={1.5} $height=\"100vh\" $justifyContent=\"center\" $alignItems=\"center\">\n <Text $renderAs=\"h6\">Oops! Something went wrong. Please try again later.</Text>\n <Button\n widthX={14}\n size=\"small\"\n shape=\"square\"\n renderAs=\"primary\"\n label=\"Try again\"\n onClick={fetchPuzzles}\n />\n </FlexView>\n );\n }\n\n return (\n <Styled.PuzzleDashboardWrapper $alignItems=\"center\" $flexGapX={2.5} $position=\"relative\">\n <Styled.BannerWrapper $widthX={50} $heightX={10.5} $justifyContent=\"center\">\n <Text $renderAs=\"ah3-bold\" $alignSelf=\"center\">\n {puzzleCount} Puzzles Solved\n </Text>\n\n {onBackCLick && (\n <Styled.BackIconContainer $height=\"100%\">\n <Styled.BackIconWrapper>\n <IconButton\n Icon={Back2Icon}\n size=\"xsmall\"\n renderAs=\"secondary\"\n analyticsLabel=\"puzzle_back\"\n onClick={onBackCLick}\n />\n </Styled.BackIconWrapper>\n </Styled.BackIconContainer>\n )}\n </Styled.BannerWrapper>\n\n <Styled.ContentWrapper>\n {puzzleHistoryData?.map(item => {\n const {\n id,\n image_hue: imageHue,\n image_url: imageUrl,\n title,\n user_node_id: userNodeId,\n rewards,\n } = item;\n\n return (\n <PuzzleCard\n key={id}\n imageHue={imageHue}\n imageUrl={imageUrl}\n title={title}\n width={126}\n height={152}\n onCardClick={onCardClick}\n userNodeId={userNodeId}\n rewards={rewards}\n />\n );\n })}\n </Styled.ContentWrapper>\n </Styled.PuzzleDashboardWrapper>\n );\n};\n\nexport default PuzzleDashboard;\n"],"names":["PuzzleDashboard","studentId","onBackCLick","onCardClick","getPuzzles","puzzleHistoryData","isProcessing","isProcessingFailed","useGetPuzzles","puzzleCount","fetchPuzzles","useCallback","useEffect","jsx","AppLoader","jsxs","FlexView","Text","Button","Styled.PuzzleDashboardWrapper","Styled.BannerWrapper","Styled.BackIconContainer","Styled.BackIconWrapper","IconButton","Back2Icon","Styled.ContentWrapper","item","id","imageHue","imageUrl","title","userNodeId","rewards","PuzzleCard","PuzzleDashboard$1"],"mappings":";;;;;;;;;;;AAcA,MAAMA,IAA6C,CAAC,EAAE,WAAAC,GAAW,aAAAC,GAAa,aAAAC,QAAkB;AACxF,QAAA;AAAA,IACJ,KAAKC;AAAA,IACL,MAAMC;AAAA,IACN,cAAAC;AAAA,IACA,oBAAAC;AAAA,MACEC,EAAc,GAEZC,KAAcJ,KAAA,gBAAAA,EAAmB,WAAU,GAE3CK,IAAeC,EAAY,MAAM;AACrC,IAAAP,EAAWH,GAAW,QAAW;AAAA,MAC/B,cAAc;AAAA,IAAA,CACf;AAAA,EAAA,GACA,CAACG,GAAYH,CAAS,CAAC;AAM1B,SAJAW,EAAU,MAAM;AACD,IAAAF;EAAA,GACZ,CAACA,CAAY,CAAC,GAEbJ,IACK,gBAAAO,EAACC,GAAU,EAAA,QAAO,QAAQ,CAAA,IAG/BP,IAEA,gBAAAQ,EAACC,KAAS,WAAW,KAAK,SAAQ,SAAQ,iBAAgB,UAAS,aAAY,UAC7E,UAAA;AAAA,IAAC,gBAAAH,EAAAI,GAAA,EAAK,WAAU,MAAK,UAAmD,uDAAA;AAAA,IACxE,gBAAAJ;AAAA,MAACK;AAAA,MAAA;AAAA,QACC,QAAQ;AAAA,QACR,MAAK;AAAA,QACL,OAAM;AAAA,QACN,UAAS;AAAA,QACT,OAAM;AAAA,QACN,SAASR;AAAA,MAAA;AAAA,IACX;AAAA,EACF,EAAA,CAAA,IAKF,gBAAAK,EAACI,GAAA,EAA8B,aAAY,UAAS,WAAW,KAAK,WAAU,YAC5E,UAAA;AAAA,IAAC,gBAAAJ,EAAAK,GAAA,EAAqB,SAAS,IAAI,UAAU,MAAM,iBAAgB,UACjE,UAAA;AAAA,MAAA,gBAAAL,EAACE,GAAK,EAAA,WAAU,YAAW,YAAW,UACnC,UAAA;AAAA,QAAAR;AAAA,QAAY;AAAA,MAAA,GACf;AAAA,MAECP,KACE,gBAAAW,EAAAQ,GAAA,EAAyB,SAAQ,QAChC,UAAA,gBAAAR,EAACS,GAAA,EACC,UAAA,gBAAAT;AAAA,QAACU;AAAA,QAAA;AAAA,UACC,MAAMC;AAAA,UACN,MAAK;AAAA,UACL,UAAS;AAAA,UACT,gBAAe;AAAA,UACf,SAAStB;AAAA,QAAA;AAAA,SAEb,EACF,CAAA;AAAA,IAAA,GAEJ;AAAA,sBAECuB,GAAA,EACE,UAAApB,KAAA,gBAAAA,EAAmB,IAAI,CAAQqB,MAAA;AACxB,YAAA;AAAA,QACJ,IAAAC;AAAA,QACA,WAAWC;AAAA,QACX,WAAWC;AAAA,QACX,OAAAC;AAAA,QACA,cAAcC;AAAA,QACd,SAAAC;AAAA,MACE,IAAAN;AAGF,aAAA,gBAAAb;AAAA,QAACoB;AAAA,QAAA;AAAA,UAEC,UAAAL;AAAA,UACA,UAAAC;AAAA,UACA,OAAAC;AAAA,UACA,OAAO;AAAA,UACP,QAAQ;AAAA,UACR,aAAA3B;AAAA,UACA,YAAA4B;AAAA,UACA,SAAAC;AAAA,QAAA;AAAA,QARKL;AAAA,MAAA;AAAA,IAWV,IACH;AAAA,EACF,EAAA,CAAA;AAEJ,GAEAO,IAAelC;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -2849,6 +2849,7 @@ export declare interface IPuzzleCardAssignData {
|
|
|
2849
2849
|
node_type: TNodeTypes;
|
|
2850
2850
|
node_id: string;
|
|
2851
2851
|
user_node_id: string | null;
|
|
2852
|
+
rewards?: TPuzzleRewards[];
|
|
2852
2853
|
}
|
|
2853
2854
|
|
|
2854
2855
|
declare interface IPuzzleCardContainerProps {
|
|
@@ -2864,7 +2865,7 @@ declare interface IPuzzleCardContainerProps {
|
|
|
2864
2865
|
|
|
2865
2866
|
declare interface IPuzzleDashboardProps {
|
|
2866
2867
|
studentId: string;
|
|
2867
|
-
onBackCLick
|
|
2868
|
+
onBackCLick?: () => void;
|
|
2868
2869
|
onCardClick: (userNodeId: string) => void;
|
|
2869
2870
|
}
|
|
2870
2871
|
|