@cuemath/leap 2.8.61-as13 → 2.8.61-as16
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/line-icons/icons/closed-eye.js +23 -0
- package/dist/assets/line-icons/icons/closed-eye.js.map +1 -0
- package/dist/features/chapters-v2/comps/node-card/student-actions/student-actions.js +39 -39
- package/dist/features/chapters-v2/comps/node-card/student-actions/student-actions.js.map +1 -1
- package/dist/features/chapters-v2/comps/node-card/teacher-actions/teacher-actions.js +83 -81
- package/dist/features/chapters-v2/comps/node-card/teacher-actions/teacher-actions.js.map +1 -1
- package/dist/features/chapters-v2/constants/node-constants.js.map +1 -1
- package/dist/features/homework/card-title.js +21 -0
- package/dist/features/homework/card-title.js.map +1 -0
- package/dist/features/homework/homework-card-view.js +133 -0
- package/dist/features/homework/homework-card-view.js.map +1 -0
- package/dist/features/homework/homework-card.js +153 -243
- package/dist/features/homework/homework-card.js.map +1 -1
- package/dist/features/homework/hw-card-list/hw-card-list-styled.js +38 -20
- package/dist/features/homework/hw-card-list/hw-card-list-styled.js.map +1 -1
- package/dist/features/homework/hw-card-list/hw-card-list.js +105 -89
- package/dist/features/homework/hw-card-list/hw-card-list.js.map +1 -1
- package/dist/features/homework/styles.js +31 -18
- package/dist/features/homework/styles.js.map +1 -1
- package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-info.js +51 -52
- package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-info.js.map +1 -1
- package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs.js +36 -35
- package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs.js.map +1 -1
- package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view.js +33 -32
- package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view.js.map +1 -1
- package/dist/features/sheet-v2/resource-list/resource-list.js +25 -37
- package/dist/features/sheet-v2/resource-list/resource-list.js.map +1 -1
- package/dist/index.d.ts +13 -0
- package/package.json +1 -1
@@ -1,19 +1,19 @@
|
|
1
|
-
import { jsxs as
|
2
|
-
import { h as
|
3
|
-
import { memo as
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import
|
8
|
-
import { MILESTONE_WIDGET_MIN_HEIGHT as
|
9
|
-
import { TESTS_CREATION_ANALYTICS_EVENTS as
|
10
|
-
import { TestSheetItemWrapper as
|
11
|
-
const
|
1
|
+
import { jsxs as C, jsx as t } from "react/jsx-runtime";
|
2
|
+
import { h as S } from "../../../../node_modules/humanize-plus/dist/humanize.js";
|
3
|
+
import { memo as x } from "react";
|
4
|
+
import A from "../../../../assets/line-icons/icons/plus2.js";
|
5
|
+
import N from "../../../homework/homework-card.js";
|
6
|
+
import w from "../../../ui/buttons/icon-button/icon-button.js";
|
7
|
+
import O from "../../../ui/layout/flex-view.js";
|
8
|
+
import { MILESTONE_WIDGET_MIN_HEIGHT as g } from "../../constants.js";
|
9
|
+
import { TESTS_CREATION_ANALYTICS_EVENTS as j } from "../tests-creation/tests-creation-analytics-events.js";
|
10
|
+
import { TestSheetItemWrapper as y, IconContainer as H, IconButtonCover as M } from "./test-list-view-styled.js";
|
11
|
+
const R = (e) => {
|
12
12
|
const o = /* @__PURE__ */ new Set();
|
13
13
|
return e == null || e.forEach((r) => {
|
14
14
|
o.add(r.chapter_name);
|
15
15
|
}), Array.from(o).join(", ");
|
16
|
-
},
|
16
|
+
}, V = x(
|
17
17
|
({
|
18
18
|
milestoneId: e,
|
19
19
|
studentId: o,
|
@@ -22,49 +22,50 @@ const j = (e) => {
|
|
22
22
|
onCreateNewTest: m,
|
23
23
|
isMilestoneActive: c,
|
24
24
|
canUpdatedPlan: d,
|
25
|
-
...
|
26
|
-
}) => /* @__PURE__ */
|
27
|
-
|
25
|
+
...l
|
26
|
+
}) => /* @__PURE__ */ C(
|
27
|
+
O,
|
28
28
|
{
|
29
|
-
$height:
|
29
|
+
$height: g,
|
30
30
|
$position: "relative",
|
31
31
|
$justifyContent: "space-between",
|
32
32
|
children: [
|
33
|
-
/* @__PURE__ */ t(
|
33
|
+
/* @__PURE__ */ t(y, { children: r.map((s, a) => {
|
34
34
|
const {
|
35
|
-
items:
|
36
|
-
node_id:
|
37
|
-
sheet_time:
|
35
|
+
items: p,
|
36
|
+
node_id: T,
|
37
|
+
sheet_time: h,
|
38
38
|
total_questions: n,
|
39
|
-
worksheet_id:
|
40
|
-
|
39
|
+
worksheet_id: u,
|
40
|
+
is_timed: _
|
41
|
+
} = s, f = Math.ceil((h || 0) / 60), I = R(p), E = _ ? `${f} Mins` : "", $ = `${n ? `${n} ${S.pluralize(n, "Question")}` : ""} ${E}`;
|
41
42
|
return /* @__PURE__ */ t(
|
42
|
-
|
43
|
+
N,
|
43
44
|
{
|
44
45
|
userType: i,
|
45
46
|
header: I,
|
46
|
-
subHeader:
|
47
|
+
subHeader: $,
|
47
48
|
nodeData: s,
|
48
49
|
renderAs: "milestone",
|
49
50
|
shouldOpenOnRight: (a + 1) % 3 === 0,
|
50
|
-
...
|
51
|
+
...l
|
51
52
|
},
|
52
|
-
`${
|
53
|
+
`${u}_${T}_${a}`
|
53
54
|
);
|
54
55
|
}) }),
|
55
56
|
i === "TEACHER" && d && /* @__PURE__ */ t(
|
56
|
-
|
57
|
+
H,
|
57
58
|
{
|
58
59
|
$flexDirection: "row",
|
59
60
|
$justifyContent: "flex-end",
|
60
61
|
$gapX: 1,
|
61
62
|
$gutterX: 1,
|
62
|
-
children: /* @__PURE__ */ t(
|
63
|
-
|
63
|
+
children: /* @__PURE__ */ t(M, { children: /* @__PURE__ */ t(
|
64
|
+
w,
|
64
65
|
{
|
65
|
-
Icon:
|
66
|
+
Icon: A,
|
66
67
|
renderAs: "secondary",
|
67
|
-
analyticsLabel:
|
68
|
+
analyticsLabel: j.CUSTOM_TEST_CREATION_STARTED,
|
68
69
|
onClick: m,
|
69
70
|
disabled: !c,
|
70
71
|
analyticsProps: {
|
@@ -79,6 +80,6 @@ const j = (e) => {
|
|
79
80
|
)
|
80
81
|
);
|
81
82
|
export {
|
82
|
-
|
83
|
+
V as default
|
83
84
|
};
|
84
85
|
//# sourceMappingURL=test-list-view.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"test-list-view.js","sources":["../../../../../src/features/milestone/milestone-tests/test-list-v2/test-list-view.tsx"],"sourcesContent":["import type { TNodeDataTestItemsDataProps } from '../../../chapters-v2/comps/node-card/node-card-types';\nimport type { ITestSheetsList } from './types';\nimport type { FC } from 'react';\n\nimport { pluralize } from 'humanize-plus';\nimport { memo } from 'react';\n\nimport Plus2Icon from '../../../../assets/line-icons/icons/plus2';\nimport HomeworkCard from '../../../homework/homework-card';\nimport IconButton from '../../../ui/buttons/icon-button/icon-button';\nimport FlexView from '../../../ui/layout/flex-view';\nimport { MILESTONE_WIDGET_MIN_HEIGHT } from '../../constants';\nimport { TESTS_CREATION_ANALYTICS_EVENTS } from '../tests-creation/tests-creation-analytics-events';\nimport * as Styled from './test-list-view-styled';\n\nconst getTopicNameFromItems = (items?: TNodeDataTestItemsDataProps[]) => {\n const topics = new Set<string>();\n\n items?.forEach(item => {\n topics.add(item.chapter_name);\n });\n\n return Array.from(topics).join(', ');\n};\n\nconst TestSheetsList: FC<ITestSheetsList> = memo(\n ({\n milestoneId,\n studentId,\n sheets,\n userType,\n onCreateNewTest,\n isMilestoneActive,\n canUpdatedPlan,\n ...sheetCallbacks\n }) => {\n return (\n <FlexView\n $height={MILESTONE_WIDGET_MIN_HEIGHT}\n $position=\"relative\"\n $justifyContent=\"space-between\"\n >\n <Styled.TestSheetItemWrapper>\n {sheets.map((sheet, idx) => {\n const {\n items,\n node_id: nodeId,\n sheet_time: sheetTime,\n total_questions: totalQuestions,\n worksheet_id: worksheetId,\n } = sheet;\n const totalSheetTime = Math.ceil((sheetTime || 0) / 60);\n const testChapterName = getTopicNameFromItems(items);\n const
|
1
|
+
{"version":3,"file":"test-list-view.js","sources":["../../../../../src/features/milestone/milestone-tests/test-list-v2/test-list-view.tsx"],"sourcesContent":["import type { TNodeDataTestItemsDataProps } from '../../../chapters-v2/comps/node-card/node-card-types';\nimport type { ITestSheetsList } from './types';\nimport type { FC } from 'react';\n\nimport { pluralize } from 'humanize-plus';\nimport { memo } from 'react';\n\nimport Plus2Icon from '../../../../assets/line-icons/icons/plus2';\nimport HomeworkCard from '../../../homework/homework-card';\nimport IconButton from '../../../ui/buttons/icon-button/icon-button';\nimport FlexView from '../../../ui/layout/flex-view';\nimport { MILESTONE_WIDGET_MIN_HEIGHT } from '../../constants';\nimport { TESTS_CREATION_ANALYTICS_EVENTS } from '../tests-creation/tests-creation-analytics-events';\nimport * as Styled from './test-list-view-styled';\n\nconst getTopicNameFromItems = (items?: TNodeDataTestItemsDataProps[]) => {\n const topics = new Set<string>();\n\n items?.forEach(item => {\n topics.add(item.chapter_name);\n });\n\n return Array.from(topics).join(', ');\n};\n\nconst TestSheetsList: FC<ITestSheetsList> = memo(\n ({\n milestoneId,\n studentId,\n sheets,\n userType,\n onCreateNewTest,\n isMilestoneActive,\n canUpdatedPlan,\n ...sheetCallbacks\n }) => {\n return (\n <FlexView\n $height={MILESTONE_WIDGET_MIN_HEIGHT}\n $position=\"relative\"\n $justifyContent=\"space-between\"\n >\n <Styled.TestSheetItemWrapper>\n {sheets.map((sheet, idx) => {\n const {\n items,\n node_id: nodeId,\n sheet_time: sheetTime,\n total_questions: totalQuestions,\n worksheet_id: worksheetId,\n is_timed: isTimed,\n } = sheet;\n const totalSheetTime = Math.ceil((sheetTime || 0) / 60);\n const testChapterName = getTopicNameFromItems(items);\n const sheetTimeText = isTimed ? `${totalSheetTime} Mins` : '';\n const totalQuestionsText = totalQuestions\n ? `${totalQuestions} ${pluralize(totalQuestions, 'Question')}`\n : '';\n const subHeader = `${totalQuestionsText} ${sheetTimeText}`;\n\n return (\n <HomeworkCard\n key={`${worksheetId}_${nodeId}_${idx}`}\n userType={userType}\n header={testChapterName}\n subHeader={subHeader}\n nodeData={sheet}\n renderAs=\"milestone\"\n shouldOpenOnRight={(idx + 1) % 3 === 0}\n {...sheetCallbacks}\n />\n );\n })}\n </Styled.TestSheetItemWrapper>\n\n {userType === 'TEACHER' && canUpdatedPlan && (\n <Styled.IconContainer\n $flexDirection=\"row\"\n $justifyContent=\"flex-end\"\n $gapX={1}\n $gutterX={1}\n >\n <Styled.IconButtonCover>\n <IconButton\n Icon={Plus2Icon}\n renderAs=\"secondary\"\n analyticsLabel={TESTS_CREATION_ANALYTICS_EVENTS.CUSTOM_TEST_CREATION_STARTED}\n onClick={onCreateNewTest}\n disabled={!isMilestoneActive}\n analyticsProps={{\n milestone_id: milestoneId,\n }}\n />\n </Styled.IconButtonCover>\n </Styled.IconContainer>\n )}\n </FlexView>\n );\n },\n);\n\nexport default TestSheetsList;\n"],"names":["getTopicNameFromItems","items","topics","item","TestSheetsList","memo","milestoneId","studentId","sheets","userType","onCreateNewTest","isMilestoneActive","canUpdatedPlan","sheetCallbacks","jsxs","FlexView","MILESTONE_WIDGET_MIN_HEIGHT","jsx","Styled.TestSheetItemWrapper","sheet","idx","nodeId","sheetTime","totalQuestions","worksheetId","isTimed","totalSheetTime","testChapterName","sheetTimeText","subHeader","pluralize","HomeworkCard","Styled.IconContainer","Styled.IconButtonCover","IconButton","Plus2Icon","TESTS_CREATION_ANALYTICS_EVENTS"],"mappings":";;;;;;;;;;AAeA,MAAMA,IAAwB,CAACC,MAA0C;AACjE,QAAAC,wBAAa;AAEnB,SAAAD,KAAA,QAAAA,EAAO,QAAQ,CAAQE,MAAA;AACd,IAAAD,EAAA,IAAIC,EAAK,YAAY;AAAA,EAAA,IAGvB,MAAM,KAAKD,CAAM,EAAE,KAAK,IAAI;AACrC,GAEME,IAAsCC;AAAA,EAC1C,CAAC;AAAA,IACC,aAAAC;AAAA,IACA,WAAAC;AAAA,IACA,QAAAC;AAAA,IACA,UAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,GAAGC;AAAA,EAAA,MAGD,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,SAASC;AAAA,MACT,WAAU;AAAA,MACV,iBAAgB;AAAA,MAEhB,UAAA;AAAA,QAAA,gBAAAC,EAACC,GAAA,EACE,YAAO,IAAI,CAACC,GAAOC,MAAQ;AACpB,gBAAA;AAAA,YACJ,OAAAnB;AAAA,YACA,SAASoB;AAAA,YACT,YAAYC;AAAA,YACZ,iBAAiBC;AAAA,YACjB,cAAcC;AAAA,YACd,UAAUC;AAAA,UACR,IAAAN,GACEO,IAAiB,KAAK,MAAMJ,KAAa,KAAK,EAAE,GAChDK,IAAkB3B,EAAsBC,CAAK,GAC7C2B,IAAgBH,IAAU,GAAGC,CAAc,UAAU,IAIrDG,IAAY,GAHSN,IACvB,GAAGA,CAAc,IAAIO,EAAU,UAAAP,GAAgB,UAAU,CAAC,KAC1D,EACmC,IAAIK,CAAa;AAGtD,iBAAA,gBAAAX;AAAA,YAACc;AAAA,YAAA;AAAA,cAEC,UAAAtB;AAAA,cACA,QAAQkB;AAAA,cACR,WAAAE;AAAA,cACA,UAAUV;AAAA,cACV,UAAS;AAAA,cACT,oBAAoBC,IAAM,KAAK,MAAM;AAAA,cACpC,GAAGP;AAAA,YAAA;AAAA,YAPC,GAAGW,CAAW,IAAIH,CAAM,IAAID,CAAG;AAAA,UAAA;AAAA,QAUzC,CAAA,GACH;AAAA,QAECX,MAAa,aAAaG,KACzB,gBAAAK;AAAA,UAACe;AAAAA,UAAA;AAAA,YACC,gBAAe;AAAA,YACf,iBAAgB;AAAA,YAChB,OAAO;AAAA,YACP,UAAU;AAAA,YAEV,UAAA,gBAAAf,EAACgB,GAAA,EACC,UAAA,gBAAAhB;AAAA,cAACiB;AAAA,cAAA;AAAA,gBACC,MAAMC;AAAA,gBACN,UAAS;AAAA,gBACT,gBAAgBC,EAAgC;AAAA,gBAChD,SAAS1B;AAAA,gBACT,UAAU,CAACC;AAAA,gBACX,gBAAgB;AAAA,kBACd,cAAcL;AAAA,gBAChB;AAAA,cAAA;AAAA,YAAA,GAEJ;AAAA,UAAA;AAAA,QACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAKV;"}
|
@@ -1,51 +1,39 @@
|
|
1
|
-
import { jsx as
|
2
|
-
import { h as
|
3
|
-
import { memo as
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import
|
7
|
-
const
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
2
|
+
import { h as f } from "../../../node_modules/humanize-plus/dist/humanize.js";
|
3
|
+
import { memo as $ } from "react";
|
4
|
+
import x from "styled-components";
|
5
|
+
import _ from "../../homework/homework-card.js";
|
6
|
+
import g from "../../ui/layout/flex-view.js";
|
7
|
+
const w = x.div`
|
8
8
|
display: grid;
|
9
9
|
grid-template-columns: repeat(3, 200px);
|
10
10
|
grid-gap: 32px;
|
11
11
|
justify-content: center;
|
12
12
|
padding: 32px 0;
|
13
|
-
`,
|
13
|
+
`, R = ({ sheets: r, userType: n, ...m }) => /* @__PURE__ */ t(g, { children: /* @__PURE__ */ t(w, { children: r.map((o, s) => {
|
14
14
|
const {
|
15
|
-
|
16
|
-
|
15
|
+
title: d,
|
16
|
+
node_id: a,
|
17
|
+
worksheet_id: p,
|
18
|
+
is_timed: l,
|
19
|
+
sheet_time: c,
|
17
20
|
total_questions: e
|
18
|
-
} =
|
19
|
-
|
20
|
-
|
21
|
-
case "MASTERY":
|
22
|
-
case "DYNAMIC":
|
23
|
-
return `${typeof e == "number" ? `${e} ${p.pluralize(e, "Question")}, ${t ? `${t / 60} min` : ""}` : ""}`;
|
24
|
-
case "PUZZLE_EASY":
|
25
|
-
case "PUZZLE_HARD":
|
26
|
-
case "PUZZLE_MEDIUM":
|
27
|
-
case "PUZZLE":
|
28
|
-
return "";
|
29
|
-
default:
|
30
|
-
return "";
|
31
|
-
}
|
32
|
-
}, _ = ({ sheets: r, userType: t, ...o }) => /* @__PURE__ */ s(f, { children: /* @__PURE__ */ s(h, { children: r.map((e, n) => {
|
33
|
-
const { title: i, node_id: a, worksheet_id: d } = e, m = E(e);
|
34
|
-
return /* @__PURE__ */ s(
|
35
|
-
l,
|
21
|
+
} = o, u = Math.ceil((c || 0) / 60), i = e ? `${e} ${f.pluralize(e, "Question")}` : "", h = l ? `${i} ${u} Mins` : i;
|
22
|
+
return /* @__PURE__ */ t(
|
23
|
+
_,
|
36
24
|
{
|
37
|
-
header:
|
38
|
-
subHeader:
|
39
|
-
userType:
|
40
|
-
nodeData:
|
25
|
+
header: d,
|
26
|
+
subHeader: h,
|
27
|
+
userType: n,
|
28
|
+
nodeData: o,
|
41
29
|
renderAs: "milestone",
|
42
|
-
shouldOpenOnRight: (
|
43
|
-
...
|
30
|
+
shouldOpenOnRight: (s + 1) % 3 === 0,
|
31
|
+
...m
|
44
32
|
},
|
45
|
-
`${
|
33
|
+
`${p}_${a}_${s}`
|
46
34
|
);
|
47
|
-
}) }) }),
|
35
|
+
}) }) }), j = $(R);
|
48
36
|
export {
|
49
|
-
|
37
|
+
j as default
|
50
38
|
};
|
51
39
|
//# sourceMappingURL=resource-list.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"resource-list.js","sources":["../../../../src/features/sheet-v2/resource-list/resource-list.tsx"],"sourcesContent":["import type {
|
1
|
+
{"version":3,"file":"resource-list.js","sources":["../../../../src/features/sheet-v2/resource-list/resource-list.tsx"],"sourcesContent":["import type { IResourcesListProps } from './types';\nimport type { FC } from 'react';\n\nimport { pluralize } from 'humanize-plus';\nimport { memo } from 'react';\nimport styled from 'styled-components';\n\nimport HomeworkCard from '../../homework/homework-card';\nimport FlexView from '../../ui/layout/flex-view';\n\nconst ResourceItemListWrapper = styled.div`\n display: grid;\n grid-template-columns: repeat(3, 200px);\n grid-gap: 32px;\n justify-content: center;\n padding: 32px 0;\n`;\n\nconst ResourcesList: FC<IResourcesListProps> = ({ sheets, userType, ...sheetCallBacks }) => (\n <FlexView>\n <ResourceItemListWrapper>\n {sheets.map((sheet, idx) => {\n const {\n title,\n node_id: nodeId,\n worksheet_id: worksheetId,\n is_timed: isTimed,\n sheet_time: sheetTime,\n total_questions: totalQuestions,\n } = sheet;\n const totalSheetTime = Math.ceil((sheetTime || 0) / 60);\n const totalQuestionsText = totalQuestions\n ? `${totalQuestions} ${pluralize(totalQuestions, 'Question')}`\n : '';\n const subHeader = isTimed\n ? `${totalQuestionsText} ${totalSheetTime} Mins`\n : totalQuestionsText;\n\n return (\n <HomeworkCard\n key={`${worksheetId}_${nodeId}_${idx}`}\n header={title}\n subHeader={subHeader}\n userType={userType}\n nodeData={sheet}\n renderAs=\"milestone\"\n shouldOpenOnRight={(idx + 1) % 3 === 0}\n {...sheetCallBacks}\n />\n );\n })}\n </ResourceItemListWrapper>\n </FlexView>\n);\n\nexport default memo(ResourcesList);\n"],"names":["ResourceItemListWrapper","styled","ResourcesList","sheets","userType","sheetCallBacks","jsx","FlexView","sheet","idx","title","nodeId","worksheetId","isTimed","sheetTime","totalQuestions","totalSheetTime","totalQuestionsText","pluralize","subHeader","HomeworkCard","ResourcesList$1","memo"],"mappings":";;;;;;AAUA,MAAMA,IAA0BC,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAQjCC,IAAyC,CAAC,EAAE,QAAAC,GAAQ,UAAAC,GAAU,GAAGC,EAAe,MACnF,gBAAAC,EAAAC,GAAA,EACC,4BAACP,GACE,EAAA,UAAAG,EAAO,IAAI,CAACK,GAAOC,MAAQ;AACpB,QAAA;AAAA,IACJ,OAAAC;AAAA,IACA,SAASC;AAAA,IACT,cAAcC;AAAA,IACd,UAAUC;AAAA,IACV,YAAYC;AAAA,IACZ,iBAAiBC;AAAA,EACf,IAAAP,GACEQ,IAAiB,KAAK,MAAMF,KAAa,KAAK,EAAE,GAChDG,IAAqBF,IACvB,GAAGA,CAAc,IAAIG,EAAU,UAAAH,GAAgB,UAAU,CAAC,KAC1D,IACEI,IAAYN,IACd,GAAGI,CAAkB,IAAID,CAAc,UACvCC;AAGF,SAAA,gBAAAX;AAAA,IAACc;AAAA,IAAA;AAAA,MAEC,QAAQV;AAAA,MACR,WAAAS;AAAA,MACA,UAAAf;AAAA,MACA,UAAUI;AAAA,MACV,UAAS;AAAA,MACT,oBAAoBC,IAAM,KAAK,MAAM;AAAA,MACpC,GAAGJ;AAAA,IAAA;AAAA,IAPC,GAAGO,CAAW,IAAID,CAAM,IAAIF,CAAG;AAAA,EAAA;AAU1C,CAAC,GACH,EACF,CAAA,GAGaY,IAAAC,EAAKpB,CAAa;"}
|
package/dist/index.d.ts
CHANGED
@@ -2160,6 +2160,7 @@ export declare interface INodeDataProps {
|
|
2160
2160
|
card_header: string;
|
2161
2161
|
chapter_id: string;
|
2162
2162
|
complete_status: boolean;
|
2163
|
+
course_type: TCourseType;
|
2163
2164
|
desmos_calculator_enabled: boolean;
|
2164
2165
|
due_date_ts: number | null;
|
2165
2166
|
is_lesson_v3_enabled: boolean;
|
@@ -2184,6 +2185,8 @@ export declare interface INodeDataProps {
|
|
2184
2185
|
unlocked_on_ts: number | null;
|
2185
2186
|
items?: TNodeDataTestItemsDataProps[];
|
2186
2187
|
user_milestone_id?: string;
|
2188
|
+
user_attempt_id: string | null;
|
2189
|
+
subtext: string | null;
|
2187
2190
|
}
|
2188
2191
|
|
2189
2192
|
declare interface INodePermissions {
|
@@ -2993,6 +2996,7 @@ declare interface ITestsListProps {
|
|
2993
2996
|
isDraftMilestone?: boolean;
|
2994
2997
|
isChaptersAvailable?: boolean;
|
2995
2998
|
canUpdatePlan?: boolean;
|
2999
|
+
onNodeReattempt?: (sheetData: INodeDataProps, milestoneId?: string) => void;
|
2996
3000
|
onTestPreview?: (sheetData: INodeDataProps, milestoneId: string) => void;
|
2997
3001
|
onTestStart?: (sheetData: INodeDataProps) => void;
|
2998
3002
|
onTestReview?: (sheetData: INodeDataProps, milestoneId: string) => void;
|
@@ -3749,6 +3753,13 @@ export declare const Next2Icon: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
3749
3753
|
|
3750
3754
|
export declare const NextIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
3751
3755
|
|
3756
|
+
declare enum NODE_CARD_COURSE_TYPES {
|
3757
|
+
PROGRAM = "PROGRAM",
|
3758
|
+
REMEDIAL = "REMEDIAL",
|
3759
|
+
TEST_SERIES = "TEST_SERIES",
|
3760
|
+
EXAM = "EXAM"
|
3761
|
+
}
|
3762
|
+
|
3752
3763
|
declare enum NODE_CARD_STATES {
|
3753
3764
|
LOCKED = "LOCKED",
|
3754
3765
|
NOT_STARTED = "NOT_STARTED",
|
@@ -4362,6 +4373,8 @@ declare type TCourseProgramPermissions = {
|
|
4362
4373
|
|
4363
4374
|
declare type TCourseStream = (typeof COURSE_STREAMS)[keyof typeof COURSE_STREAMS];
|
4364
4375
|
|
4376
|
+
declare type TCourseType = keyof typeof NODE_CARD_COURSE_TYPES;
|
4377
|
+
|
4365
4378
|
declare type TCreateOnPresubmit = (options: TOnPreSubmitOptions) => void;
|
4366
4379
|
|
4367
4380
|
declare type TCueCanvasChangeDataObject = Record<string, TDrawingData[]>;
|