@cuemath/leap 2.8.60-gs1 → 2.8.61-as1
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/constants/api.js +3 -2
- package/dist/constants/api.js.map +1 -1
- package/dist/features/chapters/chapters-list/chapter-item/chapter-item.js +1 -1
- package/dist/features/chapters/chapters-list/chapter-item/chapter-item.js.map +1 -1
- package/dist/features/chapters-v2/chapter-details/block-sections/block-section-view.js +7 -7
- package/dist/features/chapters-v2/chapter-details/block-sections/block-section-view.js.map +1 -1
- package/dist/features/chapters-v2/comps/node-card/node-card-styled.js +15 -16
- 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 +12 -8
- package/dist/features/chapters-v2/comps/node-card/node-card-tags.js.map +1 -1
- package/dist/features/chapters-v2/comps/node-card/student-actions/student-actions.js +2 -2
- package/dist/features/chapters-v2/comps/node-card/student-actions/student-actions.js.map +1 -1
- package/dist/features/chapters-v2/utils/index.js +5 -4
- package/dist/features/chapters-v2/utils/index.js.map +1 -1
- package/dist/features/chapters-v2/utils/node-card-utils.js +62 -35
- package/dist/features/chapters-v2/utils/node-card-utils.js.map +1 -1
- package/dist/features/homework/card-menu-options.js +23 -0
- package/dist/features/homework/card-menu-options.js.map +1 -0
- package/dist/features/homework/homework-card.js +209 -0
- package/dist/features/homework/homework-card.js.map +1 -0
- package/dist/features/homework/styles.js +114 -0
- package/dist/features/homework/styles.js.map +1 -0
- package/dist/features/milestone/create/api/goal-submit.js +1 -1
- package/dist/features/milestone/create/api/goal-submit.js.map +1 -1
- package/dist/features/milestone/edit/comps/edit-milestone-modal/api/patch-goal-plan.js +1 -1
- package/dist/features/milestone/edit/comps/edit-milestone-modal/api/patch-goal-plan.js.map +1 -1
- package/dist/features/milestone/milestone-list-container/api/get-milestone-resources.js +1 -1
- package/dist/features/milestone/milestone-list-container/api/get-milestone-resources.js.map +1 -1
- 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 +79 -81
- 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 +59 -61
- 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 +83 -85
- 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 +88 -90
- package/dist/features/milestone/milestone-list-container/milestone-list-container.js.map +1 -1
- package/dist/features/milestone/milestone-resources/resources-list/resources-list.js +82 -98
- package/dist/features/milestone/milestone-resources/resources-list/resources-list.js.map +1 -1
- package/dist/features/milestone/milestone-tests/test-list-v2/test-list-container.js +165 -0
- package/dist/features/milestone/milestone-tests/test-list-v2/test-list-container.js.map +1 -0
- package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view-styled.js +25 -0
- package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view-styled.js.map +1 -0
- package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view.js +82 -0
- package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view.js.map +1 -0
- package/dist/features/recent-chapters/api/get-recent-chapters.js +9 -0
- package/dist/features/recent-chapters/api/get-recent-chapters.js.map +1 -0
- package/dist/features/recent-chapters/recent-chapters-styled.js +16 -0
- package/dist/features/recent-chapters/recent-chapters-styled.js.map +1 -0
- package/dist/features/recent-chapters/recent-chapters.js +40 -0
- package/dist/features/recent-chapters/recent-chapters.js.map +1 -0
- package/dist/features/sheet-v2/resource-list/resource-list.js +49 -0
- package/dist/features/sheet-v2/resource-list/resource-list.js.map +1 -0
- package/dist/features/sheets/resources-list/resource-item/styled.js +1 -1
- package/dist/features/sheets/resources-list/resource-item/styled.js.map +1 -1
- package/dist/index.d.ts +35 -16
- package/dist/index.js +31 -29
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-cta.js +0 -71
- package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-cta.js.map +0 -1
- package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-styled.js +0 -31
- package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-styled.js.map +0 -1
- package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-utils.js +0 -38
- package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-utils.js.map +0 -1
- package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item.js +0 -79
- package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item.js.map +0 -1
- package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list-styled.js +0 -18
- package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list-styled.js.map +0 -1
- package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list.js +0 -51
- package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list.js.map +0 -1
- package/dist/features/milestone/milestone-tests/tests-list/tests-list-styled.js +0 -11
- package/dist/features/milestone/milestone-tests/tests-list/tests-list-styled.js.map +0 -1
- package/dist/features/milestone/milestone-tests/tests-list/tests-list.js +0 -144
- package/dist/features/milestone/milestone-tests/tests-list/tests-list.js.map +0 -1
@@ -0,0 +1,16 @@
|
|
1
|
+
import e from "styled-components";
|
2
|
+
const p = e.div(({ theme: t }) => {
|
3
|
+
const { WHITE_5: r, WHITE_2: a } = t.colors;
|
4
|
+
return `
|
5
|
+
display: grid;
|
6
|
+
grid-template-columns: repeat(4, 1fr);
|
7
|
+
align-content: start;
|
8
|
+
background: ${a};
|
9
|
+
background-image: linear-gradient(${r} 0.5px, transparent 0.5px), linear-gradient(90deg, ${r} 0.5px, transparent 0.5px);
|
10
|
+
background-size: 45px 45px;
|
11
|
+
`;
|
12
|
+
});
|
13
|
+
export {
|
14
|
+
p as ChaptersWrapper
|
15
|
+
};
|
16
|
+
//# sourceMappingURL=recent-chapters-styled.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"recent-chapters-styled.js","sources":["../../../src/features/recent-chapters/recent-chapters-styled.ts"],"sourcesContent":["import styled from 'styled-components';\n\nconst ChaptersWrapper = styled.div(({ theme }) => {\n const { WHITE_5, WHITE_2 } = theme.colors;\n\n return `\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n align-content: start;\n background: ${WHITE_2};\n background-image: linear-gradient(${WHITE_5} 0.5px, transparent 0.5px), linear-gradient(90deg, ${WHITE_5} 0.5px, transparent 0.5px);\n background-size: 45px 45px;\n `;\n});\n\nexport { ChaptersWrapper };\n"],"names":["ChaptersWrapper","styled","theme","WHITE_5","WHITE_2"],"mappings":";AAEA,MAAMA,IAAkBC,EAAO,IAAI,CAAC,EAAE,OAAAC,QAAY;AAChD,QAAM,EAAE,SAAAC,GAAS,SAAAC,MAAYF,EAAM;AAE5B,SAAA;AAAA;AAAA;AAAA;AAAA,kBAISE,CAAO;AAAA,wCACeD,CAAO,sDAAsDA,CAAO;AAAA;AAAA;AAG5G,CAAC;"}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import { jsxs as s, jsx as l } from "react/jsx-runtime";
|
2
|
+
import { useCallback as f, useEffect as h } from "react";
|
3
|
+
import C from "../chapters/chapters-list/chapter-item/chapter-item.js";
|
4
|
+
import d from "../ui/layout/flex-view.js";
|
5
|
+
import u from "../ui/text/text.js";
|
6
|
+
import { useGetRecentChapters as x } from "./api/get-recent-chapters.js";
|
7
|
+
import { ChaptersWrapper as g } from "./recent-chapters-styled.js";
|
8
|
+
const R = ({
|
9
|
+
studentId: r,
|
10
|
+
courseStream: t,
|
11
|
+
userType: p,
|
12
|
+
onChapterClick: a
|
13
|
+
}) => {
|
14
|
+
const { get: o, data: e, isProcessingFailed: m } = x(), i = f(() => {
|
15
|
+
o(r, void 0, { courseStream: t });
|
16
|
+
}, [t, o, r]);
|
17
|
+
return h(() => {
|
18
|
+
i();
|
19
|
+
}, [i]), m ? null : e && e.length > 0 ? /* @__PURE__ */ s(d, { $flexRowGapX: 1, children: [
|
20
|
+
/* @__PURE__ */ s(u, { $renderAs: "ac4-black", $color: "BLACK_T_60", children: [
|
21
|
+
"Recent Chapters (",
|
22
|
+
e == null ? void 0 : e.length,
|
23
|
+
")"
|
24
|
+
] }),
|
25
|
+
/* @__PURE__ */ l(g, { children: e.map((n, c) => /* @__PURE__ */ l(
|
26
|
+
C,
|
27
|
+
{
|
28
|
+
userType: p,
|
29
|
+
chapter: n,
|
30
|
+
onChapterClick: a,
|
31
|
+
itemIndex: c
|
32
|
+
},
|
33
|
+
n.id
|
34
|
+
)) })
|
35
|
+
] }) : null;
|
36
|
+
}, G = R;
|
37
|
+
export {
|
38
|
+
G as default
|
39
|
+
};
|
40
|
+
//# sourceMappingURL=recent-chapters.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"recent-chapters.js","sources":["../../../src/features/recent-chapters/recent-chapters.tsx"],"sourcesContent":["import type { IChaptersListProps } from '../chapters/chapters-list/chapters-list-types';\nimport type { TCourseStream } from '../milestone/create/milestone-create-types';\nimport type { TUserTypes } from '../ui/types';\nimport type { FC } from 'react';\n\nimport { useCallback, useEffect } from 'react';\n\nimport ChapterItem from '../chapters/chapters-list/chapter-item/chapter-item';\nimport FlexView from '../ui/layout/flex-view';\nimport Text from '../ui/text/text';\nimport { useGetRecentChapters } from './api/get-recent-chapters';\nimport * as Styled from './recent-chapters-styled';\n\ninterface RecentChaptersProps {\n studentId: string;\n courseStream: TCourseStream;\n userType: TUserTypes;\n onChapterClick: IChaptersListProps['onChapterClick'];\n}\n\nconst RecentChapters: FC<RecentChaptersProps> = ({\n studentId,\n courseStream,\n userType,\n onChapterClick,\n}) => {\n const { get: getChapters, data: chapterData, isProcessingFailed } = useGetRecentChapters();\n\n const fetchChapterDetails = useCallback(() => {\n getChapters(studentId, undefined, { courseStream });\n }, [courseStream, getChapters, studentId]);\n\n useEffect(() => {\n fetchChapterDetails();\n }, [fetchChapterDetails]);\n\n if (isProcessingFailed) {\n return null;\n }\n\n if (chapterData && chapterData.length > 0) {\n return (\n <FlexView $flexRowGapX={1}>\n <Text $renderAs=\"ac4-black\" $color=\"BLACK_T_60\">\n Recent Chapters ({chapterData?.length})\n </Text>\n <Styled.ChaptersWrapper>\n {chapterData.map((chapter, idx) => (\n <ChapterItem\n key={chapter.id}\n userType={userType as 'TEACHER' | 'STUDENT'}\n chapter={chapter}\n onChapterClick={onChapterClick}\n itemIndex={idx}\n />\n ))}\n </Styled.ChaptersWrapper>\n </FlexView>\n );\n }\n\n return null;\n};\n\nexport default RecentChapters;\n"],"names":["RecentChapters","studentId","courseStream","userType","onChapterClick","getChapters","chapterData","isProcessingFailed","useGetRecentChapters","fetchChapterDetails","useCallback","useEffect","jsxs","FlexView","Text","jsx","Styled.ChaptersWrapper","chapter","idx","ChapterItem","RecentChapters$1"],"mappings":";;;;;;;AAoBA,MAAMA,IAA0C,CAAC;AAAA,EAC/C,WAAAC;AAAA,EACA,cAAAC;AAAA,EACA,UAAAC;AAAA,EACA,gBAAAC;AACF,MAAM;AACJ,QAAM,EAAE,KAAKC,GAAa,MAAMC,GAAa,oBAAAC,EAAA,IAAuBC,KAE9DC,IAAsBC,EAAY,MAAM;AAC5C,IAAAL,EAAYJ,GAAW,QAAW,EAAE,cAAAC,EAAc,CAAA;AAAA,EACjD,GAAA,CAACA,GAAcG,GAAaJ,CAAS,CAAC;AAMzC,SAJAU,EAAU,MAAM;AACM,IAAAF;EAAA,GACnB,CAACA,CAAmB,CAAC,GAEpBF,IACK,OAGLD,KAAeA,EAAY,SAAS,IAEpC,gBAAAM,EAACC,GAAS,EAAA,cAAc,GACtB,UAAA;AAAA,IAAA,gBAAAD,EAACE,GAAK,EAAA,WAAU,aAAY,QAAO,cAAa,UAAA;AAAA,MAAA;AAAA,MAC5BR,KAAA,gBAAAA,EAAa;AAAA,MAAO;AAAA,IAAA,GACxC;AAAA,IACA,gBAAAS,EAACC,GAAA,EACE,YAAY,IAAI,CAACC,GAASC,MACzB,gBAAAH;AAAA,MAACI;AAAA,MAAA;AAAA,QAEC,UAAAhB;AAAA,QACA,SAAAc;AAAA,QACA,gBAAAb;AAAA,QACA,WAAWc;AAAA,MAAA;AAAA,MAJND,EAAQ;AAAA,IAMhB,CAAA,GACH;AAAA,EACF,EAAA,CAAA,IAIG;AACT,GAEAG,IAAepB;"}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
2
|
+
import { h as c } from "../../../node_modules/humanize-plus/dist/humanize.js";
|
3
|
+
import { memo as p } from "react";
|
4
|
+
import u from "styled-components";
|
5
|
+
import l from "../../homework/homework-card.js";
|
6
|
+
import f from "../../ui/layout/flex-view.js";
|
7
|
+
const E = u.div`
|
8
|
+
display: grid;
|
9
|
+
grid-template-columns: repeat(3, 200px);
|
10
|
+
grid-gap: 32px;
|
11
|
+
justify-content: center;
|
12
|
+
padding: 32px 0;
|
13
|
+
`, _ = (r) => {
|
14
|
+
const {
|
15
|
+
sheet_time: t,
|
16
|
+
node_type: o,
|
17
|
+
total_questions: e
|
18
|
+
} = r || {};
|
19
|
+
switch (o) {
|
20
|
+
case "ASSESSMENT":
|
21
|
+
case "MASTERY":
|
22
|
+
case "DYNAMIC":
|
23
|
+
return `${typeof e == "number" ? `${e} ${c.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(E, { children: r.map((e, i) => {
|
33
|
+
const { title: n, node_id: a, worksheet_id: d } = e, m = _(e);
|
34
|
+
return /* @__PURE__ */ s(
|
35
|
+
l,
|
36
|
+
{
|
37
|
+
header: n,
|
38
|
+
subHeader: m,
|
39
|
+
userType: t,
|
40
|
+
nodeData: e,
|
41
|
+
...o
|
42
|
+
},
|
43
|
+
`${d}_${a}_${i}`
|
44
|
+
);
|
45
|
+
}) }) }), y = p($);
|
46
|
+
export {
|
47
|
+
y as default
|
48
|
+
};
|
49
|
+
//# sourceMappingURL=resource-list.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"resource-list.js","sources":["../../../../src/features/sheet-v2/resource-list/resource-list.tsx"],"sourcesContent":["import type { INodeDataProps } from '../../chapters-v2/comps/node-card/node-card-types';\nimport 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 getSubHeader = (sheet: INodeDataProps) => {\n const {\n sheet_time: sheetTime,\n node_type: nodeType,\n total_questions: totalQuestions,\n } = sheet || {};\n\n switch (nodeType) {\n case 'ASSESSMENT':\n case 'MASTERY':\n case 'DYNAMIC':\n return `${\n typeof totalQuestions === 'number'\n ? `${totalQuestions} ${pluralize(totalQuestions, 'Question')}, ${\n sheetTime ? `${sheetTime / 60} min` : ''\n }`\n : ''\n }`;\n case 'PUZZLE_EASY':\n case 'PUZZLE_HARD':\n case 'PUZZLE_MEDIUM':\n case 'PUZZLE':\n return '';\n default:\n return '';\n }\n};\n\nconst ResourcesList: FC<IResourcesListProps> = ({ sheets, userType, ...sheetCallBacks }) => (\n <FlexView>\n <ResourceItemListWrapper>\n {sheets.map((sheet, idx) => {\n const { title, node_id: nodeId, worksheet_id: worksheetId } = sheet;\n const subHeader = getSubHeader(sheet);\n\n return (\n <HomeworkCard\n key={`${worksheetId}_${nodeId}_${idx}`}\n header={title}\n subHeader={subHeader}\n userType={userType}\n nodeData={sheet}\n {...sheetCallBacks}\n />\n );\n })}\n </ResourceItemListWrapper>\n </FlexView>\n);\n\nexport default memo(ResourcesList);\n"],"names":["ResourceItemListWrapper","styled","getSubHeader","sheet","sheetTime","nodeType","totalQuestions","pluralize","ResourcesList","sheets","userType","sheetCallBacks","jsx","FlexView","idx","title","nodeId","worksheetId","subHeader","HomeworkCard","ResourcesList$1","memo"],"mappings":";;;;;;AAWA,MAAMA,IAA0BC,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAQjCC,IAAe,CAACC,MAA0B;AACxC,QAAA;AAAA,IACJ,YAAYC;AAAA,IACZ,WAAWC;AAAA,IACX,iBAAiBC;AAAA,EAAA,IACfH,KAAS,CAAA;AAEb,UAAQE,GAAU;AAAA,IAChB,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AACH,aAAO,GACL,OAAOC,KAAmB,WACtB,GAAGA,CAAc,IAAIC,YAAUD,GAAgB,UAAU,CAAC,KACxDF,IAAY,GAAGA,IAAY,EAAE,SAAS,EACxC,KACA,EACN;AAAA,IACF,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AACI,aAAA;AAAA,IACT;AACS,aAAA;AAAA,EACX;AACF,GAEMI,IAAyC,CAAC,EAAE,QAAAC,GAAQ,UAAAC,GAAU,GAAGC,EAAe,MACnF,gBAAAC,EAAAC,GAAA,EACC,4BAACb,GACE,EAAA,UAAAS,EAAO,IAAI,CAACN,GAAOW,MAAQ;AAC1B,QAAM,EAAE,OAAAC,GAAO,SAASC,GAAQ,cAAcC,EAAgB,IAAAd,GACxDe,IAAYhB,EAAaC,CAAK;AAGlC,SAAA,gBAAAS;AAAA,IAACO;AAAA,IAAA;AAAA,MAEC,QAAQJ;AAAA,MACR,WAAAG;AAAA,MACA,UAAAR;AAAA,MACA,UAAUP;AAAA,MACT,GAAGQ;AAAA,IAAA;AAAA,IALC,GAAGM,CAAW,IAAID,CAAM,IAAIF,CAAG;AAAA,EAAA;AAQ1C,CAAC,GACH,EACF,CAAA,GAGaM,IAAAC,EAAKb,CAAa;"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"styled.js","sources":["../../../../../src/features/sheets/resources-list/resource-item/styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\nimport Text from '../../../ui/text/text';\n\ninterface IResourceItemCard {\n $isMilestoneWidget?: boolean;\n}\n\nconst ResourceItemCard = styled(FlexView)<IResourceItemCard>(({ theme, $isMilestoneWidget }) => {\n const { WHITE_5 } = theme.colors;\n\n return `\n border: 1px solid ${WHITE_5};\n ${\n $isMilestoneWidget &&\n `\n border-top-width: 0;\n border-left-width: 0;\n\n &:nth-child(even) {\n border-right-width: 0;\n }\n `\n }\n `;\n});\n\nconst ResourceItemTitle = styled(Text)(() => {\n return `\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n text-overflow: ellipsis;\n overflow: hidden;\n `;\n});\n\nconst IconButtonWrapper = styled(FlexView)(({ theme }) => {\n const { gutter } = theme.layout;\n const { BLACK_T_87 } = theme.colors;\n\n return `\n width: ${gutter * 2}px;\n height: ${gutter * 2}px;\n border: 1px solid ${BLACK_T_87};\n border-radius: 50%;\n cursor: pointer;\n `;\n});\n\nexport { ResourceItemCard, ResourceItemTitle, IconButtonWrapper };\n"],"names":["ResourceItemCard","styled","FlexView","theme","$isMilestoneWidget","WHITE_5","ResourceItemTitle","Text","IconButtonWrapper","gutter","BLACK_T_87"],"mappings":";;;AASM,MAAAA,IAAmBC,EAAOC,CAAQ,EAAqB,CAAC,EAAE,OAAAC,GAAO,oBAAAC,QAAyB;AACxF,QAAA,EAAE,SAAAC,EAAQ,IAAIF,EAAM;AAEnB,SAAA;AAAA,0BACiBE,CAAO;AAAA,QAEzBD,KACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,OAQF;AAAA;AAEN,CAAC,GAEKE,IAAoBL,EAAOM,CAAI,EAAE,MAC9B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KAOR,GAEKC,IAAoBP,EAAOC,CAAQ,EAAE,CAAC,EAAE,OAAAC,QAAY;AAClD,QAAA,EAAE,QAAAM,EAAO,IAAIN,EAAM,QACnB,EAAE,YAAAO,EAAW,IAAIP,EAAM;AAEtB,SAAA;AAAA,eACMM,IAAS,CAAC;AAAA,gBACTA,IAAS,CAAC;AAAA,0BACAC,CAAU;AAAA;AAAA;AAAA;AAIpC,CAAC;"}
|
1
|
+
{"version":3,"file":"styled.js","sources":["../../../../../src/features/sheets/resources-list/resource-item/styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\nimport Text from '../../../ui/text/text';\n\ninterface IResourceItemCard {\n $isMilestoneWidget?: boolean;\n}\n\nconst ResourceItemCard = styled(FlexView)<IResourceItemCard>(({ theme, $isMilestoneWidget }) => {\n const { WHITE_5 } = theme.colors;\n\n return `\n border: 1px solid ${WHITE_5};\n ${\n $isMilestoneWidget &&\n `\n border-top-width: 0;\n border-left-width: 0;\n \n &:nth-child(even) {\n border-right-width: 0;\n }\n `\n }\n `;\n});\n\nconst ResourceItemTitle = styled(Text)(() => {\n return `\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n text-overflow: ellipsis;\n overflow: hidden;\n `;\n});\n\nconst IconButtonWrapper = styled(FlexView)(({ theme }) => {\n const { gutter } = theme.layout;\n const { BLACK_T_87 } = theme.colors;\n\n return `\n width: ${gutter * 2}px;\n height: ${gutter * 2}px;\n border: 1px solid ${BLACK_T_87};\n border-radius: 50%;\n cursor: pointer;\n `;\n});\n\nexport { ResourceItemCard, ResourceItemTitle, IconButtonWrapper };\n"],"names":["ResourceItemCard","styled","FlexView","theme","$isMilestoneWidget","WHITE_5","ResourceItemTitle","Text","IconButtonWrapper","gutter","BLACK_T_87"],"mappings":";;;AASM,MAAAA,IAAmBC,EAAOC,CAAQ,EAAqB,CAAC,EAAE,OAAAC,GAAO,oBAAAC,QAAyB;AACxF,QAAA,EAAE,SAAAC,EAAQ,IAAIF,EAAM;AAEnB,SAAA;AAAA,0BACiBE,CAAO;AAAA,QAEzBD,KACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,OAQF;AAAA;AAEN,CAAC,GAEKE,IAAoBL,EAAOM,CAAI,EAAE,MAC9B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KAOR,GAEKC,IAAoBP,EAAOC,CAAQ,EAAE,CAAC,EAAE,OAAAC,QAAY;AAClD,QAAA,EAAE,QAAAM,EAAO,IAAIN,EAAM,QACnB,EAAE,YAAAO,EAAW,IAAIP,EAAM;AAEtB,SAAA;AAAA,eACMM,IAAS,CAAC;AAAA,gBACTA,IAAS,CAAC;AAAA,0BACAC,CAAU;AAAA;AAAA;AAAA;AAIpC,CAAC;"}
|
package/dist/index.d.ts
CHANGED
@@ -745,7 +745,7 @@ export declare interface IChapterBlockData {
|
|
745
745
|
|
746
746
|
declare interface IChapterBlockPermission {
|
747
747
|
can_skip: boolean;
|
748
|
-
|
748
|
+
can_un_skip: boolean;
|
749
749
|
}
|
750
750
|
|
751
751
|
export declare interface IChapterBlockV3 {
|
@@ -2044,7 +2044,7 @@ declare interface IMilestoneStartProps {
|
|
2044
2044
|
handleOnClick?: () => void;
|
2045
2045
|
}
|
2046
2046
|
|
2047
|
-
declare interface IMilestoneTabsProps extends Pick<IChaptersListProps, 'chapters' | 'onAddChapter' | 'onChapterClick' | 'isGoalCreation'>, Pick<IMilestoneWidgetResourcesProps, 'onAssignResources' | 'isDraftMilestone'>, ITestsListProps,
|
2047
|
+
declare interface IMilestoneTabsProps extends Pick<IChaptersListProps, 'chapters' | 'onAddChapter' | 'onChapterClick' | 'isGoalCreation'>, Pick<IMilestoneWidgetResourcesProps, 'onAssignResources' | 'isDraftMilestone'>, ITestsListProps, INodeCardCallbacks {
|
2048
2048
|
isPlanAvailable: boolean;
|
2049
2049
|
isMilestoneActive: boolean;
|
2050
2050
|
goalCategory: IMilestoneData['goal_category'];
|
@@ -2079,7 +2079,7 @@ declare interface IMilestoneWidgetProps extends Omit<IMilestoneWidgetResourcesPr
|
|
2079
2079
|
courseStream: TCourseStream;
|
2080
2080
|
}
|
2081
2081
|
|
2082
|
-
declare interface IMilestoneWidgetResourcesProps extends
|
2082
|
+
declare interface IMilestoneWidgetResourcesProps extends INodeCardCallbacks {
|
2083
2083
|
userType: TUserTypes;
|
2084
2084
|
studentId: string;
|
2085
2085
|
userMilestoneId?: string;
|
@@ -2123,11 +2123,13 @@ export declare const InfoIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
2123
2123
|
|
2124
2124
|
declare interface INodeCardCallbacks {
|
2125
2125
|
onNodeAttempt?: (nodeData: INodeDataProps) => void;
|
2126
|
-
onNodeView?: (nodeData: INodeDataProps) => void;
|
2127
|
-
onNodeReview?: (nodeData: INodeDataProps) => void;
|
2126
|
+
onNodeView?: (nodeData: INodeDataProps, milestoneId?: string) => void;
|
2127
|
+
onNodeReview?: (nodeData: INodeDataProps, milestoneId?: string) => void;
|
2128
2128
|
onNodeReattempt?: (nodeData: INodeDataProps) => void;
|
2129
2129
|
onNodeAttemptLocationChange?: (nodeData: INodeDataProps) => void;
|
2130
2130
|
onNodeMarkAsDone?: (nodeData: INodeDataProps) => void;
|
2131
|
+
onNodeReset?: (nodeData: INodeDataProps, milestoneId?: string) => void;
|
2132
|
+
onNodeUnassign?: (nodeData: INodeDataProps, milestoneId?: string) => void;
|
2131
2133
|
}
|
2132
2134
|
|
2133
2135
|
export declare interface INodeDataProps {
|
@@ -2154,6 +2156,11 @@ export declare interface INodeDataProps {
|
|
2154
2156
|
title: string;
|
2155
2157
|
user_chapter_id: string | null;
|
2156
2158
|
user_node_id: string | null;
|
2159
|
+
worksheet_id: string;
|
2160
|
+
image_url: string;
|
2161
|
+
image_hue: THueNames;
|
2162
|
+
total_questions: number | null;
|
2163
|
+
items?: TNodeDataTestItemsDataProps[];
|
2157
2164
|
}
|
2158
2165
|
|
2159
2166
|
declare interface INodePermissions {
|
@@ -2952,13 +2959,7 @@ declare interface ITestsCreationProps {
|
|
2952
2959
|
onError: (errorMessage?: string) => void;
|
2953
2960
|
}
|
2954
2961
|
|
2955
|
-
declare interface
|
2956
|
-
onTestPreview?: (milestoneId: string, sheetData: ISheetDataProps) => void;
|
2957
|
-
onTestStart?: (sheetData: ISheetDataProps) => void;
|
2958
|
-
onTestReview?: (sheetData: ISheetDataProps, milestoneId: string) => void;
|
2959
|
-
}
|
2960
|
-
|
2961
|
-
declare interface ITestsListProps extends ITestSheetItemCallbackProps {
|
2962
|
+
declare interface ITestsListProps {
|
2962
2963
|
userType: TUserTypes;
|
2963
2964
|
studentId: string;
|
2964
2965
|
userMilestoneId: string;
|
@@ -2967,6 +2968,9 @@ declare interface ITestsListProps extends ITestSheetItemCallbackProps {
|
|
2967
2968
|
isDraftMilestone?: boolean;
|
2968
2969
|
isChaptersAvailable?: boolean;
|
2969
2970
|
canUpdatePlan?: boolean;
|
2971
|
+
onTestPreview?: (sheetData: INodeDataProps, milestoneId: string) => void;
|
2972
|
+
onTestStart?: (sheetData: INodeDataProps) => void;
|
2973
|
+
onTestReview?: (sheetData: INodeDataProps, milestoneId: string) => void;
|
2970
2974
|
}
|
2971
2975
|
|
2972
2976
|
declare interface ITextButtonProps extends IClickableAnalyticsProps {
|
@@ -3974,6 +3978,15 @@ export declare const RadioCard: <IDType extends string | number>({ options, valu
|
|
3974
3978
|
|
3975
3979
|
export declare const RadioInput: <IDType extends string | number>({ options, value, onChange, numColumns, }: IRadioInputProps<IDType>) => JSX.Element;
|
3976
3980
|
|
3981
|
+
export declare const RecentChapters: FC<RecentChaptersProps>;
|
3982
|
+
|
3983
|
+
declare interface RecentChaptersProps {
|
3984
|
+
studentId: string;
|
3985
|
+
courseStream: TCourseStream;
|
3986
|
+
userType: TUserTypes;
|
3987
|
+
onChapterClick: IChaptersListProps['onChapterClick'];
|
3988
|
+
}
|
3989
|
+
|
3977
3990
|
export declare const RedoIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
|
3978
3991
|
|
3979
3992
|
export declare const ReferenceSheet: FC<IReferenceSheetProps>;
|
@@ -4837,6 +4850,12 @@ declare type TMilestoneStates = 'ACTIVE' | 'OUTCOME_PENDING' | 'OUTCOME_ADDED' |
|
|
4837
4850
|
|
4838
4851
|
declare type TMilestoneType = 'ACTIVE' | 'INACTIVE' | 'DRAFT';
|
4839
4852
|
|
4853
|
+
declare interface TNodeDataTestItemsDataProps {
|
4854
|
+
chapter_name: string;
|
4855
|
+
goal_name: string;
|
4856
|
+
ref: string;
|
4857
|
+
}
|
4858
|
+
|
4840
4859
|
declare type TNodeSubGroupProps = keyof typeof NODE_SUB_GROUP;
|
4841
4860
|
|
4842
4861
|
declare type TNodeTypeProps = keyof typeof NODE_TYPE | keyof typeof PYTHON_NODE_TYPES | keyof typeof SAT_NODE_TYPE;
|
@@ -5222,8 +5241,8 @@ export declare const useGetLeaderboardDal: (userId: string) => Omit<ReturnType<t
|
|
5222
5241
|
|
5223
5242
|
export declare const useGetMilestoneResources: (initialId?: string, initialQuery?: void | undefined) => {
|
5224
5243
|
get: (id: string, query: void, meta: IGetMilestoneResourcesAPIMetaData) => Promise<void>;
|
5225
|
-
resource: ResourceModel<
|
5226
|
-
data:
|
5244
|
+
resource: ResourceModel<INodeDataProps[]> | undefined;
|
5245
|
+
data: INodeDataProps[] | undefined;
|
5227
5246
|
permissions: Record<string, unknown> | undefined;
|
5228
5247
|
isProcessing: boolean;
|
5229
5248
|
isProcessed: boolean;
|
@@ -5238,8 +5257,8 @@ export declare const useGetTestHelpData: (initialId?: string, initialQuery?: voi
|
|
5238
5257
|
get: (id: string, query: void, meta: {
|
5239
5258
|
studentId: string;
|
5240
5259
|
}) => Promise<void>;
|
5241
|
-
resource: ResourceModel<
|
5242
|
-
data:
|
5260
|
+
resource: ResourceModel<INodeDataProps[]> | undefined;
|
5261
|
+
data: INodeDataProps[] | undefined;
|
5243
5262
|
permissions: Record<string, unknown> | undefined;
|
5244
5263
|
isProcessing: boolean;
|
5245
5264
|
isProcessed: boolean;
|
package/dist/index.js
CHANGED
@@ -12,8 +12,8 @@ import { default as P } from "./assets/line-icons/icons/book-closed.js";
|
|
12
12
|
import { default as h } from "./assets/line-icons/icons/book.js";
|
13
13
|
import { default as L } from "./assets/line-icons/icons/book2.js";
|
14
14
|
import { default as N } from "./assets/line-icons/icons/bookmark.js";
|
15
|
-
import { default as
|
16
|
-
import { default as
|
15
|
+
import { default as R } from "./assets/line-icons/icons/bulb.js";
|
16
|
+
import { default as H } from "./assets/line-icons/icons/bulb2.js";
|
17
17
|
import { default as y } from "./assets/line-icons/icons/calendar.js";
|
18
18
|
import { default as B } from "./assets/line-icons/icons/check.js";
|
19
19
|
import { default as U } from "./assets/line-icons/icons/check2.js";
|
@@ -39,8 +39,8 @@ import { default as Pe } from "./assets/line-icons/icons/exclamation.js";
|
|
39
39
|
import { default as he } from "./assets/line-icons/icons/hand.js";
|
40
40
|
import { default as Le } from "./assets/line-icons/icons/help.js";
|
41
41
|
import { default as Ne } from "./assets/line-icons/icons/highlighter.js";
|
42
|
-
import { default as
|
43
|
-
import { default as
|
42
|
+
import { default as Re } from "./assets/line-icons/icons/home.js";
|
43
|
+
import { default as He } from "./assets/line-icons/icons/image.js";
|
44
44
|
import { default as ye } from "./assets/line-icons/icons/info.js";
|
45
45
|
import { default as Be } from "./assets/line-icons/icons/info2.js";
|
46
46
|
import { default as Ue } from "./assets/line-icons/icons/left.js";
|
@@ -66,7 +66,7 @@ import { default as _o } from "./assets/line-icons/icons/question-letter.js";
|
|
66
66
|
import { default as ko } from "./assets/line-icons/icons/redo.js";
|
67
67
|
import { default as Mo } from "./assets/line-icons/icons/right.js";
|
68
68
|
import { default as Oo } from "./assets/line-icons/icons/ruler.js";
|
69
|
-
import { default as
|
69
|
+
import { default as Do } from "./assets/line-icons/icons/search.js";
|
70
70
|
import { default as Go } from "./assets/line-icons/icons/sheet.js";
|
71
71
|
import { default as go } from "./assets/line-icons/icons/star.js";
|
72
72
|
import { default as bo } from "./assets/line-icons/icons/skip-colored.js";
|
@@ -92,8 +92,8 @@ import { default as Pr } from "./assets/line-icons/icons/chevron-down.js";
|
|
92
92
|
import { default as hr } from "./assets/line-icons/icons/game.js";
|
93
93
|
import { default as Lr } from "./assets/line-icons/icons/tutoring.js";
|
94
94
|
import { default as Nr } from "./assets/line-icons/icons/chat.js";
|
95
|
-
import { default as
|
96
|
-
import { default as
|
95
|
+
import { default as Rr } from "./assets/line-icons/icons/cuemath-logo.js";
|
96
|
+
import { default as Hr } from "./assets/line-icons/icons/next2.js";
|
97
97
|
import { AutoPlayPermissionProvider as yr } from "./features/hooks/use-auto-play-permission/use-auto-play-permission-context-provider.js";
|
98
98
|
import { default as Br } from "./features/hooks/use-zoom-disable.js";
|
99
99
|
import { default as Ur } from "./features/hooks/use-force-reload.js";
|
@@ -119,8 +119,8 @@ import { default as Pt } from "./features/ui/inputs/cascading-select-input/casca
|
|
119
119
|
import { default as ht } from "./features/ui/inputs/num-range-input/num-range-input.js";
|
120
120
|
import { default as Lt } from "./features/ui/inputs/percentile-input/percentile-input.js";
|
121
121
|
import { default as Nt } from "./features/ui/selection-cards/selection-cards.js";
|
122
|
-
import { default as
|
123
|
-
import { default as
|
122
|
+
import { default as Rt } from "./features/ui/layout/flex-view.js";
|
123
|
+
import { default as Ht } from "./features/ui/loader/app-loader/app-loader.js";
|
124
124
|
import { CircularLoader as yt } from "./features/ui/loader/circular-loader/circular-loader.js";
|
125
125
|
import { default as Bt } from "./features/ui/radio-cards/radio-cards.js";
|
126
126
|
import { default as Ut } from "./features/ui/section-list/section-list.js";
|
@@ -146,7 +146,7 @@ import { default as _a } from "./features/blockers/multi-tab-blocker/multi-tab-b
|
|
146
146
|
import { default as ka } from "./features/chapters/chapter/chapter.js";
|
147
147
|
import { default as Ma } from "./features/chapters/chapters-list/chapters-list.js";
|
148
148
|
import { default as Oa } from "./features/chapters/lpar-chapter/lpar-chapter.js";
|
149
|
-
import { default as
|
149
|
+
import { default as Da } from "./features/chapters/lpar-milestone-chapter/lpar-milestone-chapter.js";
|
150
150
|
import { default as Ga } from "./features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-summary/sat-sheet-summary.js";
|
151
151
|
import { checkIfPPTNodeType as ga } from "./features/chapters/lpar-chapter/utils/index.js";
|
152
152
|
import { default as ba } from "./features/chapters-v2/chapter-details/chapter-details.js";
|
@@ -172,7 +172,7 @@ import { useGetCircleHomeDetailsDal as Pf } from "./features/circle-games/game-l
|
|
172
172
|
import { usePostUpdateCircleJourneyDal as hf } from "./features/circle-games/game-launcher/dal/use-post-update-circle-journey-dal/use-post-update-circle-journey-dal.js";
|
173
173
|
import { Leaderboard as Lf } from "./features/circle-games/leaderboard/leaderboard.js";
|
174
174
|
import { BackgroundImage as Nf, CircularSteps as Of } from "./features/circle-games/sign-up/comp/circular-steps/circular-steps.js";
|
175
|
-
import { SplashScreen as
|
175
|
+
import { SplashScreen as Df } from "./features/circle-games/sign-up/comp/splash-screen/splash-screen.js";
|
176
176
|
import { SignUp as Gf } from "./features/circle-games/sign-up/sign-up.js";
|
177
177
|
import { default as gf } from "./features/cue-canvas/cue-canvas-provider.js";
|
178
178
|
import { default as bf } from "./features/cue-canvas/toolbar/toolbar.js";
|
@@ -198,8 +198,8 @@ import { default as Ps } from "./features/milestone/create/comps/confirmation-mo
|
|
198
198
|
import { default as hs } from "./features/milestone/create/comps/confirmation-modals/chapter-clearance-confirmation.js";
|
199
199
|
import { default as Ls } from "./features/milestone/create/milestone-create-container.js";
|
200
200
|
import { default as Ns } from "./features/milestone/edit/goal-drafts/goal-draft-edit-container.js";
|
201
|
-
import { default as
|
202
|
-
import { default as
|
201
|
+
import { default as Rs } from "./features/milestone/outcome/milestone-outcome-container.js";
|
202
|
+
import { default as Hs } from "./features/milestone/outcome/comps/achievement/reason-submit-modal.js";
|
203
203
|
import { default as ys } from "./features/milestone/outcome/comps/achievement/share-instructions-modal.js";
|
204
204
|
import { default as Bs } from "./features/milestone/edit/comps/edit-milestone-modal/index.js";
|
205
205
|
import { default as Us } from "./features/milestone/edit/goal-edit-container.js";
|
@@ -223,7 +223,7 @@ import { default as Pl } from "./features/sheet-tools/tool-header/tool-header.js
|
|
223
223
|
import { default as hl } from "./features/sheets/sheets-list/sheets-list.js";
|
224
224
|
import { default as Ll } from "./features/sheets/reference-sheet/reference-sheet.js";
|
225
225
|
import { isV3Worksheet as Nl, isV3WorksheetAttempt as Ol } from "./features/sheets/utils/is-v3-worksheet.js";
|
226
|
-
import { COMPLETED_SHEET_STATE as
|
226
|
+
import { COMPLETED_SHEET_STATE as Dl, NODE_LABELS as Hl, NODE_SUB_GROUP as Gl, NODE_TYPE as yl, PYTHON_NODE_TYPES as gl, REWARDS_LIST as Bl, SHEET_ACTIONS as bl, SHEET_ATTEMPT_LOCATION as Ul, SHEET_ATTEMPT_LOCATION_MAP as vl, SHEET_ATTEMPT_STATE as Wl, SHEET_DATA_TYPE as Vl, SHEET_STATE as wl } from "./features/sheets/constants/sheet.js";
|
227
227
|
import { default as Yl } from "./features/student-details/student-details.js";
|
228
228
|
import { default as Fl } from "./features/utils/load-script.js";
|
229
229
|
import { ACTION_BAR_HEIGHT as jl, QUESTIONS_GAP as zl, QUESTION_WIDTH as Zl, TOP_NAVIGATION_HEIGHT as ql } from "./features/worksheet/worksheet/constants.js";
|
@@ -236,14 +236,15 @@ import { default as mp } from "./features/worksheet/learnosity-preloader/learnos
|
|
236
236
|
import { default as xp } from "./features/worksheet/learnosity-preloader/use-is-learnosity-loaded.js";
|
237
237
|
import { default as np } from "./features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js";
|
238
238
|
import { default as Ip } from "./features/maintenance/maintenance.js";
|
239
|
+
import { default as Tp } from "./features/recent-chapters/recent-chapters.js";
|
239
240
|
export {
|
240
241
|
Xs as ACHIEVEMENT_ACTIONS,
|
241
242
|
Wr as AccordionSection,
|
242
|
-
|
243
|
+
Hs as AchievementNotShareReasonModal,
|
243
244
|
ys as AchievementShareInstructionModal,
|
244
245
|
d as AlarmIcon,
|
245
246
|
c as AlertIcon,
|
246
|
-
|
247
|
+
Ht as AppLoader,
|
247
248
|
at as ArcButton,
|
248
249
|
wr as ArrowTooltip,
|
249
250
|
yr as AutoPlayPermissionProvider,
|
@@ -257,12 +258,12 @@ export {
|
|
257
258
|
P as BookClosedIcon,
|
258
259
|
h as BookIcon,
|
259
260
|
N as BookmarkIcon,
|
260
|
-
|
261
|
-
|
261
|
+
H as Bulb2Icon,
|
262
|
+
R as BulbIcon,
|
262
263
|
Zr as Button,
|
263
264
|
Sf as CIRCLE_ACTION_IDS,
|
264
265
|
If as CIRCLE_ONBOARDING_ANALYTICS_STEPS,
|
265
|
-
|
266
|
+
Dl as COMPLETED_SHEET_STATE,
|
266
267
|
y as CalendarIcon,
|
267
268
|
Yt as Callout,
|
268
269
|
Pt as CascadingSelectInput,
|
@@ -295,7 +296,7 @@ export {
|
|
295
296
|
bf as CueCanvasController,
|
296
297
|
gf as CueCanvasProvider,
|
297
298
|
X as CueRocket,
|
298
|
-
|
299
|
+
Rr as CuemathLogo,
|
299
300
|
ee as DartIcon,
|
300
301
|
re as DashArrowIcon,
|
301
302
|
Cl as DesmosCalculator,
|
@@ -319,7 +320,7 @@ export {
|
|
319
320
|
ss as ExtraPractice,
|
320
321
|
Ce as Eye2Icon,
|
321
322
|
Se as EyeIcon,
|
322
|
-
|
323
|
+
Rt as FlexView,
|
323
324
|
Va as GAME_LAUNCHER_ASSET_PADDING,
|
324
325
|
Qa as GAME_LAUNCHER_SIZE,
|
325
326
|
hr as GameIcon,
|
@@ -332,12 +333,12 @@ export {
|
|
332
333
|
he as HandIcon,
|
333
334
|
Le as HelpIcon,
|
334
335
|
Ne as HighlighterIcon,
|
335
|
-
|
336
|
+
Re as HomeIcon,
|
336
337
|
s as ILLUSTRATIONS,
|
337
338
|
p as IMAGES,
|
338
339
|
nf as IStatsToAwardErrorCode,
|
339
340
|
et as IconButton,
|
340
|
-
|
341
|
+
He as ImageIcon,
|
341
342
|
is as IndicatorType,
|
342
343
|
Be as Info2Icon,
|
343
344
|
ye as InfoIcon,
|
@@ -345,7 +346,7 @@ export {
|
|
345
346
|
cs as JourneyProvider,
|
346
347
|
u as LOTTIE,
|
347
348
|
Oa as LPARChapter,
|
348
|
-
|
349
|
+
Da as LPARMilestoneChapter,
|
349
350
|
Lf as Leaderboard,
|
350
351
|
mp as LearnosityPreloader,
|
351
352
|
Ue as LeftIcon,
|
@@ -356,7 +357,7 @@ export {
|
|
356
357
|
Ls as MilestoneCreate,
|
357
358
|
Ws as MilestoneEdit,
|
358
359
|
ws as MilestoneList,
|
359
|
-
|
360
|
+
Rs as MilestoneOutcome,
|
360
361
|
Fs as MilestoneStart,
|
361
362
|
Fe as Minus2Icon,
|
362
363
|
Ye as MinusIcon,
|
@@ -364,10 +365,10 @@ export {
|
|
364
365
|
Ze as Mobile,
|
365
366
|
Xe as MoreVerticalIcon,
|
366
367
|
_a as MultiTabBlocker,
|
367
|
-
|
368
|
+
Hl as NODE_LABELS,
|
368
369
|
Gl as NODE_SUB_GROUP,
|
369
370
|
yl as NODE_TYPE,
|
370
|
-
|
371
|
+
Hr as Next2Icon,
|
371
372
|
eo as NextIcon,
|
372
373
|
jr as Nudge,
|
373
374
|
ht as NumRangeInput,
|
@@ -395,6 +396,7 @@ export {
|
|
395
396
|
Bl as REWARDS_LIST,
|
396
397
|
Bt as RadioCard,
|
397
398
|
dt as RadioInput,
|
399
|
+
Tp as RecentChapters,
|
398
400
|
ko as RedoIcon,
|
399
401
|
Ll as ReferenceSheet,
|
400
402
|
ul as RemotePeerPointer,
|
@@ -409,7 +411,7 @@ export {
|
|
409
411
|
wl as SHEET_STATE,
|
410
412
|
$s as STAGES,
|
411
413
|
nr as ScribbleIcon,
|
412
|
-
|
414
|
+
Do as SearchIcon,
|
413
415
|
it as SearchableSelectInput,
|
414
416
|
Ut as SectionList,
|
415
417
|
ct as SelectInput,
|
@@ -424,7 +426,7 @@ export {
|
|
424
426
|
Vo as Skip2Icon,
|
425
427
|
bo as SkipColoredIcon,
|
426
428
|
vo as SkipIcon,
|
427
|
-
|
429
|
+
Df as SplashScreen,
|
428
430
|
Qo as Star2Icon,
|
429
431
|
go as StarIcon,
|
430
432
|
Ko as StatusIcon,
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
@@ -1,71 +0,0 @@
|
|
1
|
-
import { jsx as E } from "react/jsx-runtime";
|
2
|
-
import { memo as M, useMemo as _, useCallback as N } from "react";
|
3
|
-
import O from "../../../../../sheets/comps/sheet-button/index.js";
|
4
|
-
import { SHEET_STATE as k } from "../../../../../sheets/constants/sheet.js";
|
5
|
-
import L from "../../../../../ui/layout/flex-view.js";
|
6
|
-
import { IS_CHAPTER_COMPLETED_STATES as $ } from "../../../../create/milestone-create-constants.js";
|
7
|
-
import { TESTS_CREATION_ANALYTICS_EVENTS as g } from "../../../tests-creation/tests-creation-analytics-events.js";
|
8
|
-
import { getTestCtaInfo as H } from "./test-sheet-item-utils.js";
|
9
|
-
const { COMPLETED: U } = k, J = M((d) => {
|
10
|
-
const { milestoneId: n, studentId: m, userType: T, sheet: s, onTestStart: r, onTestReview: i, onTestPreview: a } = d, e = _(() => T === "STUDENT", [T]), { permissions: f, state: c, accuracy: l, user_node_id: u } = s, {
|
11
|
-
can_start: t,
|
12
|
-
can_resume: o,
|
13
|
-
can_review: S,
|
14
|
-
can_teacher_review: w
|
15
|
-
} = f, p = e ? S : w, h = _(
|
16
|
-
() => ({
|
17
|
-
user_node_id: u,
|
18
|
-
milestone_id: n,
|
19
|
-
student_id: m,
|
20
|
-
...e ? {
|
21
|
-
can_start: t,
|
22
|
-
can_resume: o
|
23
|
-
} : {}
|
24
|
-
}),
|
25
|
-
[n, m, o, t, e, u]
|
26
|
-
), C = N(() => {
|
27
|
-
if (e && (t || o)) {
|
28
|
-
if (typeof r == "function") {
|
29
|
-
r(s);
|
30
|
-
return;
|
31
|
-
}
|
32
|
-
throw new Error("No callback is available");
|
33
|
-
}
|
34
|
-
if (p) {
|
35
|
-
if (typeof i != "function")
|
36
|
-
throw new Error("onTestReview must be a function");
|
37
|
-
i(s, n);
|
38
|
-
return;
|
39
|
-
}
|
40
|
-
if (typeof a != "function")
|
41
|
-
throw new Error("onTestPreview must be a function");
|
42
|
-
a(n, s);
|
43
|
-
}, [
|
44
|
-
e,
|
45
|
-
p,
|
46
|
-
a,
|
47
|
-
n,
|
48
|
-
s,
|
49
|
-
t,
|
50
|
-
o,
|
51
|
-
r,
|
52
|
-
i
|
53
|
-
]), y = H(c, f, e), { state: b, renderAs: v = "primary", label: A } = y || {}, I = !(c === U || $.some((x) => x === c)) && !(t || o || S), P = e && I, R = typeof l == "number" ? `${l}%` : void 0, D = e && (t || o) ? g.CUSTOM_TEST_ATTEMPTED : "";
|
54
|
-
return /* @__PURE__ */ E(L, { $flexDirection: "row", $flexGapX: 1, $alignItems: "center", children: /* @__PURE__ */ E(
|
55
|
-
O,
|
56
|
-
{
|
57
|
-
renderAs: v,
|
58
|
-
label: A,
|
59
|
-
onClick: C,
|
60
|
-
disabled: P,
|
61
|
-
state: b,
|
62
|
-
accuracy: R,
|
63
|
-
analyticsLabel: D,
|
64
|
-
analyticsProps: h
|
65
|
-
}
|
66
|
-
) });
|
67
|
-
});
|
68
|
-
export {
|
69
|
-
J as default
|
70
|
-
};
|
71
|
-
//# sourceMappingURL=test-sheet-item-cta.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"test-sheet-item-cta.js","sources":["../../../../../../../src/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-cta.tsx"],"sourcesContent":["import type { ITestSheetItemProps } from './test-sheet-item-types';\nimport type { FC } from 'react';\n\nimport { useCallback, useMemo, memo } from 'react';\n\nimport SheetButton from '../../../../../sheets/comps/sheet-button';\nimport { SHEET_STATE } from '../../../../../sheets/constants/sheet';\nimport FlexView from '../../../../../ui/layout/flex-view';\nimport { IS_CHAPTER_COMPLETED_STATES } from '../../../../create/milestone-create-constants';\nimport { TESTS_CREATION_ANALYTICS_EVENTS } from '../../../tests-creation/tests-creation-analytics-events';\nimport { getTestCtaInfo } from './test-sheet-item-utils';\n\nconst { COMPLETED } = SHEET_STATE;\n\nconst TestSheetItemCta: FC<Omit<ITestSheetItemProps, 'sequenceNo'>> = memo(props => {\n const { milestoneId, studentId, userType, sheet, onTestStart, onTestReview, onTestPreview } =\n props;\n const isStudent = useMemo(() => userType === 'STUDENT', [userType]);\n const { permissions, state: sheetState, accuracy, user_node_id } = sheet;\n const {\n can_start: canStart,\n can_resume: canResume,\n can_review: canReview,\n can_teacher_review: canTeacherReview,\n } = permissions;\n const canReviewSheet = isStudent ? canReview : canTeacherReview;\n\n const analyticsProps = useMemo(\n () => ({\n user_node_id,\n milestone_id: milestoneId,\n student_id: studentId,\n ...(isStudent\n ? {\n can_start: canStart,\n can_resume: canResume,\n }\n : {}),\n }),\n [milestoneId, studentId, canResume, canStart, isStudent, user_node_id],\n );\n\n const handleOnClick = useCallback(() => {\n if (isStudent) {\n if (canStart || canResume) {\n if (typeof onTestStart === 'function') {\n onTestStart(sheet);\n\n return;\n }\n\n throw new Error('No callback is available');\n }\n }\n\n if (canReviewSheet) {\n if (typeof onTestReview !== 'function') {\n throw new Error('onTestReview must be a function');\n }\n\n onTestReview(sheet, milestoneId);\n\n return;\n }\n\n if (typeof onTestPreview !== 'function') {\n throw new Error('onTestPreview must be a function');\n }\n\n onTestPreview(milestoneId, sheet);\n\n return;\n }, [\n isStudent,\n canReviewSheet,\n onTestPreview,\n milestoneId,\n sheet,\n canStart,\n canResume,\n onTestStart,\n onTestReview,\n ]);\n\n const testCtaInfo = getTestCtaInfo(sheetState, permissions, isStudent);\n const { state: testCtaState, renderAs = 'primary', label } = testCtaInfo || {};\n\n const isSheetCompleted =\n sheetState === COMPLETED || IS_CHAPTER_COMPLETED_STATES.some(state => state === sheetState);\n const sheetPermissionDisability = !isSheetCompleted && !(canStart || canResume || canReview);\n const disableCta = isStudent && sheetPermissionDisability;\n const sheetAccuracy = typeof accuracy === 'number' ? `${accuracy}%` : undefined;\n\n const analyticsLabel =\n isStudent && (canStart || canResume)\n ? TESTS_CREATION_ANALYTICS_EVENTS.CUSTOM_TEST_ATTEMPTED\n : '';\n\n return (\n <FlexView $flexDirection=\"row\" $flexGapX={1} $alignItems=\"center\">\n <SheetButton\n renderAs={renderAs}\n label={label}\n onClick={handleOnClick}\n disabled={disableCta}\n state={testCtaState}\n accuracy={sheetAccuracy}\n analyticsLabel={analyticsLabel}\n analyticsProps={analyticsProps}\n />\n </FlexView>\n );\n});\n\nexport default TestSheetItemCta;\n"],"names":["COMPLETED","SHEET_STATE","TestSheetItemCta","memo","props","milestoneId","studentId","userType","sheet","onTestStart","onTestReview","onTestPreview","isStudent","useMemo","permissions","sheetState","accuracy","user_node_id","canStart","canResume","canReview","canTeacherReview","canReviewSheet","analyticsProps","handleOnClick","useCallback","testCtaInfo","getTestCtaInfo","testCtaState","renderAs","label","sheetPermissionDisability","IS_CHAPTER_COMPLETED_STATES","state","disableCta","sheetAccuracy","analyticsLabel","TESTS_CREATION_ANALYTICS_EVENTS","FlexView","jsx","SheetButton"],"mappings":";;;;;;;;AAYA,MAAM,EAAE,WAAAA,EAAc,IAAAC,GAEhBC,IAAgEC,EAAK,CAASC,MAAA;AAC5E,QAAA,EAAE,aAAAC,GAAa,WAAAC,GAAW,UAAAC,GAAU,OAAAC,GAAO,aAAAC,GAAa,cAAAC,GAAc,eAAAC,EAC1E,IAAAP,GACIQ,IAAYC,EAAQ,MAAMN,MAAa,WAAW,CAACA,CAAQ,CAAC,GAC5D,EAAE,aAAAO,GAAa,OAAOC,GAAY,UAAAC,GAAU,cAAAC,EAAiB,IAAAT,GAC7D;AAAA,IACJ,WAAWU;AAAA,IACX,YAAYC;AAAA,IACZ,YAAYC;AAAA,IACZ,oBAAoBC;AAAA,EAClB,IAAAP,GACEQ,IAAiBV,IAAYQ,IAAYC,GAEzCE,IAAiBV;AAAA,IACrB,OAAO;AAAA,MACL,cAAAI;AAAA,MACA,cAAcZ;AAAA,MACd,YAAYC;AAAA,MACZ,GAAIM,IACA;AAAA,QACE,WAAWM;AAAA,QACX,YAAYC;AAAA,MAAA,IAEd,CAAC;AAAA,IAAA;AAAA,IAEP,CAACd,GAAaC,GAAWa,GAAWD,GAAUN,GAAWK,CAAY;AAAA,EAAA,GAGjEO,IAAgBC,EAAY,MAAM;AACtC,QAAIb,MACEM,KAAYC,IAAW;AACrB,UAAA,OAAOV,KAAgB,YAAY;AACrC,QAAAA,EAAYD,CAAK;AAEjB;AAAA,MACF;AAEM,YAAA,IAAI,MAAM,0BAA0B;AAAA,IAC5C;AAGF,QAAIc,GAAgB;AACd,UAAA,OAAOZ,KAAiB;AACpB,cAAA,IAAI,MAAM,iCAAiC;AAGnD,MAAAA,EAAaF,GAAOH,CAAW;AAE/B;AAAA,IACF;AAEI,QAAA,OAAOM,KAAkB;AACrB,YAAA,IAAI,MAAM,kCAAkC;AAGpD,IAAAA,EAAcN,GAAaG,CAAK;AAAA,EAEhC,GACC;AAAA,IACDI;AAAA,IACAU;AAAA,IACAX;AAAA,IACAN;AAAA,IACAG;AAAA,IACAU;AAAA,IACAC;AAAA,IACAV;AAAA,IACAC;AAAA,EAAA,CACD,GAEKgB,IAAcC,EAAeZ,GAAYD,GAAaF,CAAS,GAC/D,EAAE,OAAOgB,GAAc,UAAAC,IAAW,WAAW,OAAAC,EAAM,IAAIJ,KAAe,IAItEK,IAA4B,EADhChB,MAAef,KAAagC,EAA4B,KAAK,CAAAC,MAASA,MAAUlB,CAAU,MACrC,EAAEG,KAAYC,KAAaC,IAC5Ec,IAAatB,KAAamB,GAC1BI,IAAgB,OAAOnB,KAAa,WAAW,GAAGA,CAAQ,MAAM,QAEhEoB,IACJxB,MAAcM,KAAYC,KACtBkB,EAAgC,wBAChC;AAEN,2BACGC,GAAS,EAAA,gBAAe,OAAM,WAAW,GAAG,aAAY,UACvD,UAAA,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,UAAAX;AAAA,MACA,OAAAC;AAAA,MACA,SAASN;AAAA,MACT,UAAUU;AAAA,MACV,OAAON;AAAA,MACP,UAAUO;AAAA,MACV,gBAAAC;AAAA,MACA,gBAAAb;AAAA,IAAA;AAAA,EAEJ,EAAA,CAAA;AAEJ,CAAC;"}
|
@@ -1,31 +0,0 @@
|
|
1
|
-
import o from "styled-components";
|
2
|
-
import i from "../../../../../ui/layout/flex-view.js";
|
3
|
-
import e from "../../../../../ui/text/text.js";
|
4
|
-
const s = o(i)(({ theme: t }) => {
|
5
|
-
const { WHITE_5: r } = t.colors;
|
6
|
-
return `
|
7
|
-
border: 1px solid ${r};
|
8
|
-
border-top-width: 0;
|
9
|
-
border-left-width: 0;
|
10
|
-
|
11
|
-
&:nth-child(even) {
|
12
|
-
border-right-width: 0;
|
13
|
-
}
|
14
|
-
`;
|
15
|
-
}), c = o(e)(({ theme: t }) => `
|
16
|
-
width: fit-content;
|
17
|
-
padding: ${t.layout.gutter * 0.25}px;
|
18
|
-
background-color: ${t.colors.BLUE_2};
|
19
|
-
`), p = o(e)(() => `
|
20
|
-
display: -webkit-box;
|
21
|
-
-webkit-box-orient: vertical;
|
22
|
-
-webkit-line-clamp: 1;
|
23
|
-
text-overflow: ellipsis;
|
24
|
-
overflow: hidden;
|
25
|
-
`);
|
26
|
-
export {
|
27
|
-
s as TestItemCard,
|
28
|
-
p as TestItemTitle,
|
29
|
-
c as TestTag
|
30
|
-
};
|
31
|
-
//# sourceMappingURL=test-sheet-item-styled.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"test-sheet-item-styled.js","sources":["../../../../../../../src/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../../../ui/layout/flex-view';\nimport Text from '../../../../../ui/text/text';\n\nconst TestItemCard = styled(FlexView)(({ theme }) => {\n const { WHITE_5 } = theme.colors;\n\n return `\n border: 1px solid ${WHITE_5};\n border-top-width: 0;\n border-left-width: 0;\n\n &:nth-child(even) {\n border-right-width: 0;\n }\n `;\n});\n\nconst TestTag = styled(Text)(({ theme }) => {\n return `\n width: fit-content;\n padding: ${theme.layout.gutter * 0.25}px;\n background-color: ${theme.colors.BLUE_2};\n `;\n});\n\nconst TestItemTitle = styled(Text)(() => {\n return `\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 1;\n text-overflow: ellipsis;\n overflow: hidden;\n `;\n});\n\nexport { TestItemCard, TestItemTitle, TestTag };\n"],"names":["TestItemCard","styled","FlexView","theme","WHITE_5","TestTag","Text","TestItemTitle"],"mappings":";;;AAKA,MAAMA,IAAeC,EAAOC,CAAQ,EAAE,CAAC,EAAE,OAAAC,QAAY;AAC7C,QAAA,EAAE,SAAAC,EAAQ,IAAID,EAAM;AAEnB,SAAA;AAAA,wBACeC,CAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQ/B,CAAC,GAEKC,IAAUJ,EAAOK,CAAI,EAAE,CAAC,EAAE,OAAAH,QACvB;AAAA;AAAA,eAEMA,EAAM,OAAO,SAAS,IAAI;AAAA,wBACjBA,EAAM,OAAO,MAAM;AAAA,GAE1C,GAEKI,IAAgBN,EAAOK,CAAI,EAAE,MAC1B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAOR;"}
|