@cuemath/leap 3.5.50 → 3.5.51-as10
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/illustrations/illustrations.js +4 -0
- package/dist/assets/illustrations/illustrations.js.map +1 -1
- package/dist/features/chapters-v2/comps/node-card/node-card-styled.js +27 -31
- package/dist/features/chapters-v2/comps/node-card/node-card-styled.js.map +1 -1
- package/dist/features/chapters-v2/comps/node-card/node-card-tags.js +21 -13
- package/dist/features/chapters-v2/comps/node-card/node-card-tags.js.map +1 -1
- package/dist/features/chapters-v2/constants/node-constants.js +1 -1
- package/dist/features/chapters-v2/constants/node-constants.js.map +1 -1
- package/dist/features/chapters-v2/utils/node-card-utils.js +86 -79
- package/dist/features/chapters-v2/utils/node-card-utils.js.map +1 -1
- package/dist/features/homework/homework-card-view.js +125 -98
- package/dist/features/homework/homework-card-view.js.map +1 -1
- package/dist/features/homework/homework-card.js +196 -161
- package/dist/features/homework/homework-card.js.map +1 -1
- package/dist/features/homework/hw-card-list/api/get-homeworks.js +1 -1
- package/dist/features/homework/hw-card-list/api/get-homeworks.js.map +1 -1
- package/dist/features/homework/hw-card-list/hw-card-list-types.js +5 -0
- package/dist/features/homework/hw-card-list/hw-card-list-types.js.map +1 -0
- package/dist/features/homework/hw-card-list/hw-card-list-view.js +96 -86
- package/dist/features/homework/hw-card-list/hw-card-list-view.js.map +1 -1
- package/dist/features/homework/hw-card-list/hw-card-list.js +45 -43
- package/dist/features/homework/hw-card-list/hw-card-list.js.map +1 -1
- package/dist/features/homework/styles.js +0 -1
- package/dist/features/homework/styles.js.map +1 -1
- package/dist/features/homework/utils.js +18 -15
- package/dist/features/homework/utils.js.map +1 -1
- package/dist/features/journey/hooks/use-home-page-journey/home-page-homeworks-mock.js +325 -201
- package/dist/features/journey/hooks/use-home-page-journey/home-page-homeworks-mock.js.map +1 -1
- package/dist/features/journey/hooks/use-home-page-journey/use-home-page-journey.js +59 -56
- package/dist/features/journey/hooks/use-home-page-journey/use-home-page-journey.js.map +1 -1
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-assigned.js +17 -15
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-assigned.js.map +1 -1
- package/dist/features/math-fit/api/get-mathfit-assessment.js +10 -0
- package/dist/features/math-fit/api/get-mathfit-assessment.js.map +1 -0
- package/dist/features/math-fit/math-fit/math-fit.js +37 -0
- package/dist/features/math-fit/math-fit/math-fit.js.map +1 -0
- package/dist/features/math-fit/math-fit-card/math-fit-card-styled.js +22 -0
- package/dist/features/math-fit/math-fit-card/math-fit-card-styled.js.map +1 -0
- package/dist/features/math-fit/math-fit-card/math-fit-card.js +80 -0
- package/dist/features/math-fit/math-fit-card/math-fit-card.js.map +1 -0
- package/dist/features/math-fit/math-fit-overview/comps/section-card/section-card-styled.js +24 -0
- package/dist/features/math-fit/math-fit-overview/comps/section-card/section-card-styled.js.map +1 -0
- package/dist/features/math-fit/math-fit-overview/comps/section-card/section-card-types.js +5 -0
- package/dist/features/math-fit/math-fit-overview/comps/section-card/section-card-types.js.map +1 -0
- package/dist/features/math-fit/math-fit-overview/comps/section-card/section-card.js +99 -0
- package/dist/features/math-fit/math-fit-overview/comps/section-card/section-card.js.map +1 -0
- package/dist/features/math-fit/math-fit-overview/comps/stat-item/stat-item-styled.js +9 -0
- package/dist/features/math-fit/math-fit-overview/comps/stat-item/stat-item-styled.js.map +1 -0
- package/dist/features/math-fit/math-fit-overview/comps/stat-item/stat-item.js +26 -0
- package/dist/features/math-fit/math-fit-overview/comps/stat-item/stat-item.js.map +1 -0
- package/dist/features/math-fit/math-fit-overview/math-fit-overview-helpers.js +63 -0
- package/dist/features/math-fit/math-fit-overview/math-fit-overview-helpers.js.map +1 -0
- package/dist/features/math-fit/math-fit-overview/math-fit-overview-styled.js +9 -0
- package/dist/features/math-fit/math-fit-overview/math-fit-overview-styled.js.map +1 -0
- package/dist/features/math-fit/math-fit-overview/math-fit-overview-types.js +7 -0
- package/dist/features/math-fit/math-fit-overview/math-fit-overview-types.js.map +1 -0
- package/dist/features/math-fit/math-fit-overview/math-fit-overview.js +71 -0
- package/dist/features/math-fit/math-fit-overview/math-fit-overview.js.map +1 -0
- package/dist/features/math-fit/math-fit-report/comps/report-header/report-header-styled.js +38 -0
- package/dist/features/math-fit/math-fit-report/comps/report-header/report-header-styled.js.map +1 -0
- package/dist/features/math-fit/math-fit-report/comps/report-header/report-header.js +58 -0
- package/dist/features/math-fit/math-fit-report/comps/report-header/report-header.js.map +1 -0
- package/dist/features/math-fit/math-fit-report/comps/score-badge/score-badge-styled.js +28 -0
- package/dist/features/math-fit/math-fit-report/comps/score-badge/score-badge-styled.js.map +1 -0
- package/dist/features/math-fit/math-fit-report/comps/score-badge/score-badge.js +30 -0
- package/dist/features/math-fit/math-fit-report/comps/score-badge/score-badge.js.map +1 -0
- package/dist/features/math-fit/math-fit-report/comps/score-section/score-section-styled.js +9 -0
- package/dist/features/math-fit/math-fit-report/comps/score-section/score-section-styled.js.map +1 -0
- package/dist/features/math-fit/math-fit-report/comps/score-section/score-section.js +82 -0
- package/dist/features/math-fit/math-fit-report/comps/score-section/score-section.js.map +1 -0
- package/dist/features/math-fit/math-fit-report/math-fit-report-helpers.js +42 -0
- package/dist/features/math-fit/math-fit-report/math-fit-report-helpers.js.map +1 -0
- package/dist/features/math-fit/math-fit-report/math-fit-report.js +68 -0
- package/dist/features/math-fit/math-fit-report/math-fit-report.js.map +1 -0
- package/dist/features/milestone/milestone-list-container/api/get-tests-list.js +1 -1
- package/dist/features/milestone/milestone-list-container/api/get-tests-list.js.map +1 -1
- package/dist/features/milestone/milestone-list-container/milestone-list/milestone-list.js +38 -36
- package/dist/features/milestone/milestone-list-container/milestone-list/milestone-list.js.map +1 -1
- package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs.js +57 -55
- package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs.js.map +1 -1
- package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget.js +59 -57
- package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget.js.map +1 -1
- package/dist/features/milestone/milestone-list-container/milestone-list-container.js +54 -52
- package/dist/features/milestone/milestone-list-container/milestone-list-container.js.map +1 -1
- package/dist/features/milestone/milestone-tests/test-list-v2/test-list-container.js +39 -37
- package/dist/features/milestone/milestone-tests/test-list-v2/test-list-container.js.map +1 -1
- package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view.js +48 -56
- 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 +27 -23
- package/dist/features/sheet-v2/resource-list/resource-list.js.map +1 -1
- package/dist/index.d.ts +132 -7
- package/dist/index.js +131 -121
- package/dist/index.js.map +1 -1
- package/dist/static/clock-green.020570d3.svg +1 -0
- package/dist/static/math-fit-bg.4bfa3244.svg +1 -0
- package/dist/static/math-fit-card-bg.20c826bb.svg +1 -0
- package/dist/static/question-mark-blue.b6a7f37d.svg +1 -0
- package/package.json +1 -1
|
@@ -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 {
|
|
1
|
+
{"version":3,"file":"test-list-view.js","sources":["../../../../../src/features/milestone/milestone-tests/test-list-v2/test-list-view.tsx"],"sourcesContent":["import { type FC, 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';\nimport type { ITestSheetsList } from './types';\n\nconst TestSheetsList: FC<ITestSheetsList> = memo(function TestSheetsList({\n milestoneId,\n studentId,\n tests,\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 {tests.map((test, idx) => {\n const { entity_id, entity_type, state, score, subtext, sheets } = test;\n const sheet = sheets?.[0];\n\n if (!sheet) return null;\n\n const { node_id: nodeId, worksheet_id: worksheetId, title } = sheet;\n\n return (\n <HomeworkCard\n key={`${worksheetId}_${nodeId}_${idx}`}\n userType={userType}\n header={title}\n subHeader={subtext}\n nodeData={sheet}\n renderAs=\"milestone\"\n studentId={studentId}\n shouldOpenOnRight={(idx + 1) % 3 === 0}\n entityId={entity_id}\n entityType={entity_type}\n state={state}\n score={score}\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\nexport default TestSheetsList;\n"],"names":["TestSheetsList","memo","milestoneId","studentId","tests","userType","onCreateNewTest","isMilestoneActive","canUpdatedPlan","sheetCallbacks","jsxs","FlexView","MILESTONE_WIDGET_MIN_HEIGHT","jsx","Styled.TestSheetItemWrapper","test","idx","entity_id","entity_type","state","score","subtext","sheets","sheet","nodeId","worksheetId","title","HomeworkCard","Styled.IconContainer","Styled.IconButtonCover","IconButton","Plus2Icon","TESTS_CREATION_ANALYTICS_EVENTS"],"mappings":";;;;;;;;;AAWM,MAAAA,IAAsCC,EAAK,SAAwB;AAAA,EACvE,aAAAC;AAAA,EACA,WAAAC;AAAA,EACA,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,GAAGC;AACL,GAAG;AAEC,SAAA,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,SAASC;AAAA,MACT,WAAU;AAAA,MACV,iBAAgB;AAAA,MAEhB,UAAA;AAAA,QAAA,gBAAAC,EAACC,GAAA,EACE,YAAM,IAAI,CAACC,GAAMC,MAAQ;AACxB,gBAAM,EAAE,WAAAC,GAAW,aAAAC,GAAa,OAAAC,GAAO,OAAAC,GAAO,SAAAC,GAAS,QAAAC,EAAW,IAAAP,GAC5DQ,IAAQD,KAAA,gBAAAA,EAAS;AAEnB,cAAA,CAACC,EAAc,QAAA;AAEnB,gBAAM,EAAE,SAASC,GAAQ,cAAcC,GAAa,OAAAC,EAAU,IAAAH;AAG5D,iBAAA,gBAAAV;AAAA,YAACc;AAAA,YAAA;AAAA,cAEC,UAAAtB;AAAA,cACA,QAAQqB;AAAA,cACR,WAAWL;AAAA,cACX,UAAUE;AAAA,cACV,UAAS;AAAA,cACT,WAAApB;AAAA,cACA,oBAAoBa,IAAM,KAAK,MAAM;AAAA,cACrC,UAAUC;AAAA,cACV,YAAYC;AAAA,cACZ,OAAAC;AAAA,cACA,OAAAC;AAAA,cACC,GAAGX;AAAA,YAAA;AAAA,YAZC,GAAGgB,CAAW,IAAID,CAAM,IAAIR,CAAG;AAAA,UAAA;AAAA,QAezC,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;AAIR,CAAC;"}
|
|
@@ -1,45 +1,49 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { h as
|
|
3
|
-
import { memo as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { h as x } from "../../../node_modules/humanize-plus/dist/humanize.js";
|
|
3
|
+
import { memo as _ } from "react";
|
|
4
|
+
import g from "styled-components";
|
|
5
|
+
import y from "../../homework/homework-card.js";
|
|
6
6
|
import w from "../../ui/layout/flex-view.js";
|
|
7
|
-
const
|
|
7
|
+
const I = g.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 = ({
|
|
14
14
|
sheets: r,
|
|
15
15
|
studentId: n,
|
|
16
16
|
userType: m,
|
|
17
|
-
...
|
|
18
|
-
}) => /* @__PURE__ */
|
|
17
|
+
...a
|
|
18
|
+
}) => /* @__PURE__ */ o(w, { children: /* @__PURE__ */ o(I, { children: r.map((e, s) => {
|
|
19
19
|
const {
|
|
20
|
-
title:
|
|
20
|
+
title: d,
|
|
21
21
|
node_id: p,
|
|
22
|
-
worksheet_id:
|
|
23
|
-
is_timed:
|
|
22
|
+
worksheet_id: c,
|
|
23
|
+
is_timed: l,
|
|
24
24
|
sheet_time: u,
|
|
25
|
-
total_questions:
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
total_questions: t,
|
|
26
|
+
state: h
|
|
27
|
+
} = e, f = Math.ceil((u || 0) / 60), i = t ? `${t} ${x.pluralize(t, "Question")}` : "", $ = l ? `${i} • ${f} Mins` : i;
|
|
28
|
+
return /* @__PURE__ */ o(
|
|
29
|
+
y,
|
|
29
30
|
{
|
|
30
|
-
header:
|
|
31
|
-
subHeader:
|
|
31
|
+
header: d,
|
|
32
|
+
subHeader: $,
|
|
32
33
|
userType: m,
|
|
33
34
|
studentId: n,
|
|
34
|
-
nodeData:
|
|
35
|
+
nodeData: e,
|
|
35
36
|
renderAs: "milestone",
|
|
36
37
|
shouldOpenOnRight: (s + 1) % 3 === 0,
|
|
37
|
-
|
|
38
|
+
entityId: "",
|
|
39
|
+
state: h,
|
|
40
|
+
score: e.accuracy,
|
|
41
|
+
...a
|
|
38
42
|
},
|
|
39
|
-
`${
|
|
43
|
+
`${c}_${p}_${s}`
|
|
40
44
|
);
|
|
41
|
-
}) }) }),
|
|
45
|
+
}) }) }), H = _(R);
|
|
42
46
|
export {
|
|
43
|
-
|
|
47
|
+
H as default
|
|
44
48
|
};
|
|
45
49
|
//# 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 { pluralize } from 'humanize-plus';\nimport { memo, type FC } from 'react';\nimport styled from 'styled-components';\n\nimport HomeworkCard from '../../homework/homework-card';\nimport FlexView from '../../ui/layout/flex-view';\nimport type { IResourcesListProps } from './types';\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> = ({\n sheets,\n studentId,\n userType,\n ...sheetCallBacks\n}) => (\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 studentId={studentId}\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","studentId","userType","sheetCallBacks","jsx","FlexView","sheet","idx","title","nodeId","worksheetId","isTimed","sheetTime","totalQuestions","totalSheetTime","totalQuestionsText","pluralize","subHeader","HomeworkCard","ResourcesList$1","memo"],"mappings":";;;;;;AAQA,MAAMA,IAA0BC,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAQjCC,IAAyC,CAAC;AAAA,EAC9C,QAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACL,MACE,gBAAAC,EAACC,KACC,UAAC,gBAAAD,EAAAP,GAAA,EACE,YAAO,IAAI,CAACS,GAAOC,MAAQ;AACpB,QAAA;AAAA,IACJ,OAAAC;AAAA,IACA,SAASC;AAAA,IACT,cAAcC;AAAA,IACd,UAAUC;AAAA,IACV,YAAYC;AAAA,IACZ,iBAAiBC;AAAA,
|
|
1
|
+
{"version":3,"file":"resource-list.js","sources":["../../../../src/features/sheet-v2/resource-list/resource-list.tsx"],"sourcesContent":["import { pluralize } from 'humanize-plus';\nimport { memo, type FC } from 'react';\nimport styled from 'styled-components';\n\nimport HomeworkCard from '../../homework/homework-card';\nimport FlexView from '../../ui/layout/flex-view';\nimport type { IResourcesListProps } from './types';\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> = ({\n sheets,\n studentId,\n userType,\n ...sheetCallBacks\n}) => (\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 state,\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 studentId={studentId}\n nodeData={sheet}\n renderAs=\"milestone\"\n shouldOpenOnRight={(idx + 1) % 3 === 0}\n entityId=\"\"\n state={state}\n score={sheet.accuracy}\n {...sheetCallBacks}\n />\n );\n })}\n </ResourceItemListWrapper>\n </FlexView>\n);\n\nexport default memo(ResourcesList);\n"],"names":["ResourceItemListWrapper","styled","ResourcesList","sheets","studentId","userType","sheetCallBacks","jsx","FlexView","sheet","idx","title","nodeId","worksheetId","isTimed","sheetTime","totalQuestions","state","totalSheetTime","totalQuestionsText","pluralize","subHeader","HomeworkCard","ResourcesList$1","memo"],"mappings":";;;;;;AAQA,MAAMA,IAA0BC,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAQjCC,IAAyC,CAAC;AAAA,EAC9C,QAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACL,MACE,gBAAAC,EAACC,KACC,UAAC,gBAAAD,EAAAP,GAAA,EACE,YAAO,IAAI,CAACS,GAAOC,MAAQ;AACpB,QAAA;AAAA,IACJ,OAAAC;AAAA,IACA,SAASC;AAAA,IACT,cAAcC;AAAA,IACd,UAAUC;AAAA,IACV,YAAYC;AAAA,IACZ,iBAAiBC;AAAA,IACjB,OAAAC;AAAA,EACE,IAAAR,GACES,IAAiB,KAAK,MAAMH,KAAa,KAAK,EAAE,GAChDI,IAAqBH,IACvB,GAAGA,CAAc,IAAII,EAAU,UAAAJ,GAAgB,UAAU,CAAC,KAC1D,IACEK,IAAYP,IACd,GAAGK,CAAkB,MAAMD,CAAc,UACzCC;AAGF,SAAA,gBAAAZ;AAAA,IAACe;AAAA,IAAA;AAAA,MAEC,QAAQX;AAAA,MACR,WAAAU;AAAA,MACA,UAAAhB;AAAA,MACA,WAAAD;AAAA,MACA,UAAUK;AAAA,MACV,UAAS;AAAA,MACT,oBAAoBC,IAAM,KAAK,MAAM;AAAA,MACrC,UAAS;AAAA,MACT,OAAAO;AAAA,MACA,OAAOR,EAAM;AAAA,MACZ,GAAGH;AAAA,IAAA;AAAA,IAXC,GAAGO,CAAW,IAAID,CAAM,IAAIF,CAAG;AAAA,EAAA;AAc1C,CAAC,GACH,EACF,CAAA,GAGaa,IAAAC,EAAKtB,CAAa;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -576,6 +576,13 @@ export declare enum ELeaderboardType {
|
|
|
576
576
|
INFINITE_TABLE = "infiniteTable"
|
|
577
577
|
}
|
|
578
578
|
|
|
579
|
+
declare enum EMATHFIT_TEST_STATE {
|
|
580
|
+
IN_PROGRESS = "IN_PROGRESS",
|
|
581
|
+
COMPLETED = "COMPLETED",
|
|
582
|
+
NOT_STARTED = "NOT_STARTED",
|
|
583
|
+
EXPIRED = "EXPIRED"
|
|
584
|
+
}
|
|
585
|
+
|
|
579
586
|
declare const ENROLLMENT_TYPES: {
|
|
580
587
|
readonly ONLINE: "ONLINE";
|
|
581
588
|
readonly PLUS: "PLUS";
|
|
@@ -621,6 +628,12 @@ export declare enum EPostGameStat {
|
|
|
621
628
|
|
|
622
629
|
export declare const EPResourceAssign: FC<IEPResourceAssign>;
|
|
623
630
|
|
|
631
|
+
declare enum EQuestionState {
|
|
632
|
+
CORRECT = "CORRECT",
|
|
633
|
+
INCORRECT = "INCORRECT",
|
|
634
|
+
SKIPPED = "SKIPPED"
|
|
635
|
+
}
|
|
636
|
+
|
|
624
637
|
export declare const EraserIcon: FC<SVGProps<SVGSVGElement>>;
|
|
625
638
|
|
|
626
639
|
declare const Error_2: FC<IErrorProps>;
|
|
@@ -865,6 +878,11 @@ export declare const HomeworkCardList: NamedExoticComponent<IHWCardListProps>;
|
|
|
865
878
|
|
|
866
879
|
declare const hues: readonly ["YELLOW", "ORANGE", "PURPLE", "GREEN", "BLUE"];
|
|
867
880
|
|
|
881
|
+
declare enum HW_CARD_LIST_ENTITY_TYPE {
|
|
882
|
+
MATHFIT_TEST = "MATHFIT_TEST",
|
|
883
|
+
USER_NODE = "USER_NODE"
|
|
884
|
+
}
|
|
885
|
+
|
|
868
886
|
export declare interface IAboutGameActivitiesProps {
|
|
869
887
|
show?: boolean;
|
|
870
888
|
isGradeKTo1?: boolean;
|
|
@@ -2422,6 +2440,7 @@ export declare const ILLUSTRATIONS: {
|
|
|
2422
2440
|
CIRCLE_ICON: string;
|
|
2423
2441
|
CIRCLE_OUTERCIRCLE_BG: string;
|
|
2424
2442
|
CLOCK_BADGE: string;
|
|
2443
|
+
CLOCK_GREEN: string;
|
|
2425
2444
|
CLOCK_ORANGE: string;
|
|
2426
2445
|
CLOCK_PURPLE: string;
|
|
2427
2446
|
CODING_REPORT_ICON: string;
|
|
@@ -2487,6 +2506,8 @@ export declare const ILLUSTRATIONS: {
|
|
|
2487
2506
|
MASTERED_BADGE: string;
|
|
2488
2507
|
MASTERED_SHIELD_GRAY: string;
|
|
2489
2508
|
MASTERED_SHIELD_GREEN: string;
|
|
2509
|
+
MATH_FIT_BG: string;
|
|
2510
|
+
MATH_FIT_CARD_BG: string;
|
|
2490
2511
|
MATH_FIT_GREY: string;
|
|
2491
2512
|
MAY: string;
|
|
2492
2513
|
MENTAL_MATH: string;
|
|
@@ -2558,6 +2579,7 @@ export declare const ILLUSTRATIONS: {
|
|
|
2558
2579
|
PUZZLE_PATTERN_YELLOW: string;
|
|
2559
2580
|
PUZZLE_PURPLE: string;
|
|
2560
2581
|
PUZZLE_STUDENT: string;
|
|
2582
|
+
QUESTION_MARK_BLUE: string;
|
|
2561
2583
|
QUESTION_MARK_YELLOW: string;
|
|
2562
2584
|
RADIAL_GRADIENT_BG: string;
|
|
2563
2585
|
RADIAL_GRADIENT_BG_2: string;
|
|
@@ -2713,6 +2735,73 @@ declare interface IMaintenanceProps {
|
|
|
2713
2735
|
userType: TUserTypes;
|
|
2714
2736
|
}
|
|
2715
2737
|
|
|
2738
|
+
declare interface IMathFitAssessmentResponse {
|
|
2739
|
+
id: string;
|
|
2740
|
+
user_id: string;
|
|
2741
|
+
state: EMATHFIT_TEST_STATE;
|
|
2742
|
+
score: number;
|
|
2743
|
+
previous_score: number;
|
|
2744
|
+
created_on: string;
|
|
2745
|
+
created_on_ts: number;
|
|
2746
|
+
updated_on: string;
|
|
2747
|
+
updated_on_ts: number;
|
|
2748
|
+
sections: IMathFitSection[];
|
|
2749
|
+
}
|
|
2750
|
+
|
|
2751
|
+
export declare interface IMathFitCardProps {
|
|
2752
|
+
dueDateTs: number | null;
|
|
2753
|
+
isMathFitDisabled?: boolean;
|
|
2754
|
+
tooltipText?: string;
|
|
2755
|
+
isMilestone?: boolean;
|
|
2756
|
+
nodeType: TNodeTypes_2;
|
|
2757
|
+
state: TSheetStates;
|
|
2758
|
+
subHeader: string;
|
|
2759
|
+
unlockedOnTs?: number | null;
|
|
2760
|
+
userType: TUserTypes;
|
|
2761
|
+
score: number | null;
|
|
2762
|
+
studentContainerRef?: React.RefObject<HTMLDivElement>;
|
|
2763
|
+
}
|
|
2764
|
+
|
|
2765
|
+
declare interface IMathFitOverviewProps {
|
|
2766
|
+
data: IMathFitAssessmentResponse;
|
|
2767
|
+
onResumeClick: (sheetData: INodeDataProps, sectionId: string) => void;
|
|
2768
|
+
onDoLater: () => void;
|
|
2769
|
+
}
|
|
2770
|
+
|
|
2771
|
+
declare interface IMathFitProps {
|
|
2772
|
+
mathfitTestId: string;
|
|
2773
|
+
userId: string;
|
|
2774
|
+
onResumeClick: (sheetData: INodeDataProps, sectionId: string) => void;
|
|
2775
|
+
onReviewClick: (sheetData: INodeDataProps, sectionId: string) => void;
|
|
2776
|
+
onDoLater: () => void;
|
|
2777
|
+
studentName: string;
|
|
2778
|
+
userType: TUserTypes;
|
|
2779
|
+
}
|
|
2780
|
+
|
|
2781
|
+
declare interface IMathFitReportProps {
|
|
2782
|
+
data: IMathFitAssessmentResponse;
|
|
2783
|
+
onReviewClick: (sheetData: INodeDataProps, sectionId: string) => void;
|
|
2784
|
+
studentName: string;
|
|
2785
|
+
userType: TUserTypes;
|
|
2786
|
+
onBack: () => void;
|
|
2787
|
+
}
|
|
2788
|
+
|
|
2789
|
+
declare interface IMathFitSection {
|
|
2790
|
+
id: string;
|
|
2791
|
+
section_number: number;
|
|
2792
|
+
score: number;
|
|
2793
|
+
previous_score: number;
|
|
2794
|
+
user_node_id: string;
|
|
2795
|
+
created_on: string;
|
|
2796
|
+
created_on_ts: number;
|
|
2797
|
+
updated_on: string;
|
|
2798
|
+
updated_on_ts: number;
|
|
2799
|
+
sheet: INodeDataProps;
|
|
2800
|
+
summary: {
|
|
2801
|
+
[goalId: string]: IMiniGoalDetail;
|
|
2802
|
+
};
|
|
2803
|
+
}
|
|
2804
|
+
|
|
2716
2805
|
declare interface IMathPracticeProps {
|
|
2717
2806
|
onSwitchUser?: () => void;
|
|
2718
2807
|
}
|
|
@@ -2961,6 +3050,12 @@ declare interface IMilestoneWidgetResourcesProps extends INodeCardCallbacks {
|
|
|
2961
3050
|
isTrialSession?: boolean;
|
|
2962
3051
|
}
|
|
2963
3052
|
|
|
3053
|
+
declare interface IMiniGoalDetail {
|
|
3054
|
+
order: number;
|
|
3055
|
+
description: string;
|
|
3056
|
+
items: IQuestionDetail[];
|
|
3057
|
+
}
|
|
3058
|
+
|
|
2964
3059
|
/**
|
|
2965
3060
|
* Configuration for a modal component
|
|
2966
3061
|
*/
|
|
@@ -3108,9 +3203,10 @@ declare interface INodeCardCallbacks {
|
|
|
3108
3203
|
onNodeAssignAsHomework?: (nodeData: INodeDataProps, milestoneId?: string) => void;
|
|
3109
3204
|
onNodeMarkAsDone?: (nodeData: INodeDataProps) => void;
|
|
3110
3205
|
onNodeReset?: (nodeData: INodeDataProps, milestoneId?: string) => void;
|
|
3111
|
-
onNodeUnassign?: (nodeData: INodeDataProps, milestoneId?: string) => void;
|
|
3206
|
+
onNodeUnassign?: (nodeData: INodeDataProps, milestoneId?: string, homeworkId?: string) => void;
|
|
3112
3207
|
onNodeUnlock?: (nodeData: INodeDataProps, milestoneId?: string) => void;
|
|
3113
3208
|
onNodeSkipUnSkip?: (nodeData: INodeDataProps, milestoneId?: string) => void;
|
|
3209
|
+
onMathFitClick?: (entityId: string) => void;
|
|
3114
3210
|
}
|
|
3115
3211
|
|
|
3116
3212
|
export declare interface INodeDataProps {
|
|
@@ -3124,7 +3220,6 @@ export declare interface INodeDataProps {
|
|
|
3124
3220
|
course_type: TCourseType;
|
|
3125
3221
|
desmos_calculator_enabled: boolean;
|
|
3126
3222
|
due_date_ts: number | null;
|
|
3127
|
-
homework_id?: string;
|
|
3128
3223
|
id: string;
|
|
3129
3224
|
image_hue: THueNames;
|
|
3130
3225
|
image_url: string | null;
|
|
@@ -3187,6 +3282,8 @@ export declare const invalidateGetChapterDetails: (id: string, query?: void | un
|
|
|
3187
3282
|
|
|
3188
3283
|
export declare const invalidateHomeworks: (id: string, query?: void | undefined, allIdsInvalid?: boolean) => void;
|
|
3189
3284
|
|
|
3285
|
+
export declare const invalidateMathFitAssessment: (id: string, query?: void | undefined, allIdsInvalid?: boolean) => void;
|
|
3286
|
+
|
|
3190
3287
|
export declare const invalidateMilestoneResources: (id: string, query?: void | undefined, allIdsInvalid?: boolean) => void;
|
|
3191
3288
|
|
|
3192
3289
|
export declare const invalidateMilestonesData: (query?: TQuery | undefined) => void;
|
|
@@ -3596,6 +3693,12 @@ export declare interface IPuzzleWebGameProps extends IBaseWebGameProps, ISyncabl
|
|
|
3596
3693
|
askHintPermission?: boolean;
|
|
3597
3694
|
}
|
|
3598
3695
|
|
|
3696
|
+
declare interface IQuestionDetail {
|
|
3697
|
+
item_reference: string;
|
|
3698
|
+
state: EQuestionState;
|
|
3699
|
+
order: number;
|
|
3700
|
+
}
|
|
3701
|
+
|
|
3599
3702
|
declare interface IQuestionOverView {
|
|
3600
3703
|
questionByQuestionList: TQuestionByQuestionOverviewList;
|
|
3601
3704
|
onReview: (userNodeId: string, questionNo: number) => void;
|
|
@@ -4436,6 +4539,17 @@ declare type ITestHelpItemTopicsDataProps = {
|
|
|
4436
4539
|
goals: string[];
|
|
4437
4540
|
};
|
|
4438
4541
|
|
|
4542
|
+
declare interface ITestListItem {
|
|
4543
|
+
entity_type: HW_CARD_LIST_ENTITY_TYPE;
|
|
4544
|
+
entity_id: string;
|
|
4545
|
+
score: number | null;
|
|
4546
|
+
id: string;
|
|
4547
|
+
state: TSheetStates;
|
|
4548
|
+
user_milestone_id: string;
|
|
4549
|
+
subtext: string;
|
|
4550
|
+
sheets: INodeDataProps[];
|
|
4551
|
+
}
|
|
4552
|
+
|
|
4439
4553
|
declare interface ITestsCreationProps {
|
|
4440
4554
|
courseStream: TCourseStream;
|
|
4441
4555
|
milestoneId: string;
|
|
@@ -4460,6 +4574,7 @@ declare interface ITestsListProps {
|
|
|
4460
4574
|
onTestPreview?: (sheetData: INodeDataProps, milestoneId: string) => void;
|
|
4461
4575
|
onTestStart?: (sheetData: INodeDataProps, milestoneId?: string, homeworkId?: string) => void;
|
|
4462
4576
|
onTestReview?: (sheetData: INodeDataProps, milestoneId: string) => void;
|
|
4577
|
+
onMathFitClick?: (entityId: string) => void;
|
|
4463
4578
|
}
|
|
4464
4579
|
|
|
4465
4580
|
declare interface ITextButtonProps extends IClickableAnalyticsProps {
|
|
@@ -5468,6 +5583,14 @@ export declare const Maintenance: FC<IMaintenanceProps>;
|
|
|
5468
5583
|
|
|
5469
5584
|
declare const MASTERY: "mastery";
|
|
5470
5585
|
|
|
5586
|
+
export declare const MathFit: FC<IMathFitProps>;
|
|
5587
|
+
|
|
5588
|
+
export declare const MathFitCard: FC<IMathFitCardProps>;
|
|
5589
|
+
|
|
5590
|
+
export declare const MathFitOverview: FC<IMathFitOverviewProps>;
|
|
5591
|
+
|
|
5592
|
+
export declare const MathFitReport: FC<IMathFitReportProps>;
|
|
5593
|
+
|
|
5471
5594
|
export declare const MathPractice: FC<IMathPracticeProps>;
|
|
5472
5595
|
|
|
5473
5596
|
export declare const MilestoneActionWidget: FC<IMilestoneActionWidgetProps>;
|
|
@@ -5517,7 +5640,8 @@ declare enum NODE_CARD_COURSE_TYPES {
|
|
|
5517
5640
|
PROGRAM = "PROGRAM",
|
|
5518
5641
|
REMEDIAL = "REMEDIAL",
|
|
5519
5642
|
TEST_SERIES = "TEST_SERIES",
|
|
5520
|
-
EXAM = "EXAM"
|
|
5643
|
+
EXAM = "EXAM",
|
|
5644
|
+
MATHFIT = "MATHFIT"
|
|
5521
5645
|
}
|
|
5522
5646
|
|
|
5523
5647
|
declare enum NODE_CARD_STATES {
|
|
@@ -5525,7 +5649,8 @@ declare enum NODE_CARD_STATES {
|
|
|
5525
5649
|
NOT_STARTED = "NOT_STARTED",
|
|
5526
5650
|
WAIT_FOR_REVIEW = "WAIT_FOR_REVIEW",
|
|
5527
5651
|
IN_PROGRESS = "IN_PROGRESS",
|
|
5528
|
-
COMPLETED = "COMPLETED"
|
|
5652
|
+
COMPLETED = "COMPLETED",
|
|
5653
|
+
EXPIRED = "EXPIRED"
|
|
5529
5654
|
}
|
|
5530
5655
|
|
|
5531
5656
|
export declare const NODE_LABELS: {
|
|
@@ -7315,7 +7440,7 @@ declare type TSheetRewardsProps = {
|
|
|
7315
7440
|
|
|
7316
7441
|
export declare type TSheetsSection = 'core_lessons' | 'supplementary_sheets' | 'test_help' | 'extra_practice';
|
|
7317
7442
|
|
|
7318
|
-
declare type TSheetStateProps = 'LOCKED' | 'NOT_STARTED' | 'IN_PROGRESS' | 'FAMILIAR' | 'PROFICIENT' | 'MASTERED' | 'COMPLETED' | 'RE_ATTEMPT' | 'WAIT_FOR_REVIEW';
|
|
7443
|
+
declare type TSheetStateProps = 'LOCKED' | 'NOT_STARTED' | 'IN_PROGRESS' | 'FAMILIAR' | 'PROFICIENT' | 'MASTERED' | 'COMPLETED' | 'RE_ATTEMPT' | 'WAIT_FOR_REVIEW' | 'EXPIRED';
|
|
7319
7444
|
|
|
7320
7445
|
declare type TSheetStates = keyof typeof NODE_CARD_STATES;
|
|
7321
7446
|
|
|
@@ -7679,8 +7804,8 @@ export declare const useGetTestHelpData: (initialId?: string, initialQuery?: voi
|
|
|
7679
7804
|
get: (id: string, query: void, meta: {
|
|
7680
7805
|
studentId: string;
|
|
7681
7806
|
}) => Promise<void>;
|
|
7682
|
-
resource: ResourceModel<
|
|
7683
|
-
data:
|
|
7807
|
+
resource: ResourceModel<ITestListItem[]> | undefined;
|
|
7808
|
+
data: ITestListItem[] | undefined;
|
|
7684
7809
|
permissions: Record<string, unknown> | undefined;
|
|
7685
7810
|
isProcessing: boolean;
|
|
7686
7811
|
isProcessed: boolean;
|