@cuemath/leap 2.8.60-as4 → 2.8.60-gs1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/features/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/comps/node-card/node-card-styled.js +16 -15
- 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 +8 -12
- package/dist/features/chapters-v2/comps/node-card/node-card-tags.js.map +1 -1
- package/dist/features/chapters-v2/utils/index.js +4 -5
- package/dist/features/chapters-v2/utils/index.js.map +1 -1
- package/dist/features/chapters-v2/utils/node-card-utils.js +34 -62
- package/dist/features/chapters-v2/utils/node-card-utils.js.map +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.map +1 -1
- package/dist/features/milestone/milestone-list-container/milestone-list/milestone-list.js +81 -79
- 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 +61 -59
- 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 +85 -83
- 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 +90 -88
- 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 +98 -82
- package/dist/features/milestone/milestone-resources/resources-list/resources-list.js.map +1 -1
- package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-cta.js +71 -0
- package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-cta.js.map +1 -0
- package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-styled.js +31 -0
- package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-styled.js.map +1 -0
- package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-utils.js +38 -0
- package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item-utils.js.map +1 -0
- package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item.js +79 -0
- package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheet-item/test-sheet-item.js.map +1 -0
- package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list-styled.js +18 -0
- package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list-styled.js.map +1 -0
- package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list.js +51 -0
- package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list.js.map +1 -0
- package/dist/features/milestone/milestone-tests/tests-list/tests-list-styled.js +11 -0
- package/dist/features/milestone/milestone-tests/tests-list/tests-list-styled.js.map +1 -0
- package/dist/features/milestone/milestone-tests/tests-list/tests-list.js +144 -0
- package/dist/features/milestone/milestone-tests/tests-list/tests-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 +11 -33
- package/dist/index.js +29 -31
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/features/homework/card-menu-options.js +0 -25
- package/dist/features/homework/card-menu-options.js.map +0 -1
- package/dist/features/homework/homework-card.js +0 -210
- package/dist/features/homework/homework-card.js.map +0 -1
- package/dist/features/homework/styles.js +0 -114
- package/dist/features/homework/styles.js.map +0 -1
- package/dist/features/milestone/milestone-tests/test-list-v2/test-list-container.js +0 -165
- package/dist/features/milestone/milestone-tests/test-list-v2/test-list-container.js.map +0 -1
- package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view-styled.js +0 -25
- package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view-styled.js.map +0 -1
- package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view.js +0 -82
- package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view.js.map +0 -1
- package/dist/features/recent-chapters/api/get-recent-chapters.js +0 -9
- package/dist/features/recent-chapters/api/get-recent-chapters.js.map +0 -1
- package/dist/features/recent-chapters/recent-chapters-styled.js +0 -16
- package/dist/features/recent-chapters/recent-chapters-styled.js.map +0 -1
- package/dist/features/recent-chapters/recent-chapters.js +0 -43
- package/dist/features/recent-chapters/recent-chapters.js.map +0 -1
- package/dist/features/sheet-v2/resource-list/resource-list.js +0 -52
- package/dist/features/sheet-v2/resource-list/resource-list.js.map +0 -1
package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list.js
ADDED
@@ -0,0 +1,51 @@
|
|
1
|
+
import { jsxs as _, Fragment as l, jsx as o } from "react/jsx-runtime";
|
2
|
+
import { memo as I } from "react";
|
3
|
+
import S from "../../../../../assets/line-icons/icons/plus2.js";
|
4
|
+
import E from "../../../../ui/buttons/icon-button/icon-button.js";
|
5
|
+
import { TESTS_CREATION_ANALYTICS_EVENTS as f } from "../../tests-creation/tests-creation-analytics-events.js";
|
6
|
+
import h from "./test-sheet-item/test-sheet-item.js";
|
7
|
+
import { TestSheetItemWrapper as A, IconContainer as C } from "./test-sheets-list-styled.js";
|
8
|
+
const $ = I(
|
9
|
+
({
|
10
|
+
milestoneId: r,
|
11
|
+
studentId: n,
|
12
|
+
sheets: m,
|
13
|
+
userType: e,
|
14
|
+
onCreateNewTest: i,
|
15
|
+
isMilestoneActive: s,
|
16
|
+
canUpdatedPlan: d,
|
17
|
+
...T
|
18
|
+
}) => /* @__PURE__ */ _(l, { children: [
|
19
|
+
/* @__PURE__ */ o(A, { children: m.map((t, a) => {
|
20
|
+
const { worksheet_id: c, node_id: p } = t;
|
21
|
+
return /* @__PURE__ */ o(
|
22
|
+
h,
|
23
|
+
{
|
24
|
+
userType: e,
|
25
|
+
sheet: t,
|
26
|
+
milestoneId: r,
|
27
|
+
studentId: n,
|
28
|
+
...T
|
29
|
+
},
|
30
|
+
`${c}_${p}_${a}`
|
31
|
+
);
|
32
|
+
}) }),
|
33
|
+
e === "TEACHER" && d && /* @__PURE__ */ o(C, { children: /* @__PURE__ */ o(
|
34
|
+
E,
|
35
|
+
{
|
36
|
+
Icon: S,
|
37
|
+
renderAs: "secondary",
|
38
|
+
analyticsLabel: f.CUSTOM_TEST_CREATION_STARTED,
|
39
|
+
onClick: i,
|
40
|
+
disabled: !s,
|
41
|
+
analyticsProps: {
|
42
|
+
milestone_id: r
|
43
|
+
}
|
44
|
+
}
|
45
|
+
) })
|
46
|
+
] })
|
47
|
+
);
|
48
|
+
export {
|
49
|
+
$ as default
|
50
|
+
};
|
51
|
+
//# sourceMappingURL=test-sheets-list.js.map
|
package/dist/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"test-sheets-list.js","sources":["../../../../../../src/features/milestone/milestone-tests/tests-list/test-sheets-list/test-sheets-list.tsx"],"sourcesContent":["import type { ITestSheetsList } from './test-sheets-list-types';\nimport type { FC } from 'react';\n\nimport { memo } from 'react';\n\nimport Plus2Icon from '../../../../../assets/line-icons/icons/plus2';\nimport IconButton from '../../../../ui/buttons/icon-button/icon-button';\nimport { TESTS_CREATION_ANALYTICS_EVENTS } from '../../tests-creation/tests-creation-analytics-events';\nimport TestSheetItem from './test-sheet-item/test-sheet-item';\nimport * as Styled from './test-sheets-list-styled';\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 <>\n <Styled.TestSheetItemWrapper>\n {sheets.map((sheet, idx) => {\n const { worksheet_id: worksheetId, node_id: nodeId } = sheet;\n\n return (\n <TestSheetItem\n key={`${worksheetId}_${nodeId}_${idx}`}\n userType={userType}\n sheet={sheet}\n milestoneId={milestoneId}\n studentId={studentId}\n {...sheetCallbacks}\n />\n );\n })}\n </Styled.TestSheetItemWrapper>\n\n {userType === 'TEACHER' && canUpdatedPlan && (\n <Styled.IconContainer>\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.IconContainer>\n )}\n </>\n );\n },\n);\n\nexport default TestSheetsList;\n"],"names":["TestSheetsList","memo","milestoneId","studentId","sheets","userType","onCreateNewTest","isMilestoneActive","canUpdatedPlan","sheetCallbacks","jsxs","Fragment","jsx","Styled.TestSheetItemWrapper","sheet","idx","worksheetId","nodeId","TestSheetItem","Styled.IconContainer","IconButton","Plus2Icon","TESTS_CREATION_ANALYTICS_EVENTS"],"mappings":";;;;;;;AAWA,MAAMA,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,MAIC,gBAAAC,EAAAC,GAAA,EAAA,UAAA;AAAA,IAAA,gBAAAC,EAACC,GAAA,EACE,YAAO,IAAI,CAACC,GAAOC,MAAQ;AAC1B,YAAM,EAAE,cAAcC,GAAa,SAASC,MAAWH;AAGrD,aAAA,gBAAAF;AAAA,QAACM;AAAA,QAAA;AAAA,UAEC,UAAAb;AAAA,UACA,OAAAS;AAAA,UACA,aAAAZ;AAAA,UACA,WAAAC;AAAA,UACC,GAAGM;AAAA,QAAA;AAAA,QALC,GAAGO,CAAW,IAAIC,CAAM,IAAIF,CAAG;AAAA,MAAA;AAAA,IAQzC,CAAA,GACH;AAAA,IAECV,MAAa,aAAaG,KACxB,gBAAAI,EAAAO,GAAA,EACC,UAAA,gBAAAP;AAAA,MAACQ;AAAA,MAAA;AAAA,QACC,MAAMC;AAAA,QACN,UAAS;AAAA,QACT,gBAAgBC,EAAgC;AAAA,QAChD,SAAShB;AAAA,QACT,UAAU,CAACC;AAAA,QACX,gBAAgB;AAAA,UACd,cAAcL;AAAA,QAChB;AAAA,MAAA;AAAA,IAAA,GAEJ;AAAA,EAEJ,EAAA,CAAA;AAGN;"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import e from "styled-components";
|
2
|
+
import o from "../../../ui/layout/flex-view.js";
|
3
|
+
import { MILESTONE_WIDGET_MIN_HEIGHT as r } from "../../constants.js";
|
4
|
+
const m = e(o)`
|
5
|
+
position: relative;
|
6
|
+
min-height: ${r}px;
|
7
|
+
`;
|
8
|
+
export {
|
9
|
+
m as TestHelpWrapper
|
10
|
+
};
|
11
|
+
//# sourceMappingURL=tests-list-styled.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"tests-list-styled.js","sources":["../../../../../src/features/milestone/milestone-tests/tests-list/tests-list-styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../../../ui/layout/flex-view';\nimport { MILESTONE_WIDGET_MIN_HEIGHT } from '../../constants';\n\nconst TestHelpWrapper = styled(FlexView)`\n position: relative;\n min-height: ${MILESTONE_WIDGET_MIN_HEIGHT}px;\n`;\n\nexport { TestHelpWrapper };\n"],"names":["TestHelpWrapper","styled","FlexView","MILESTONE_WIDGET_MIN_HEIGHT"],"mappings":";;;AAKM,MAAAA,IAAkBC,EAAOC,CAAQ;AAAA;AAAA,gBAEvBC,CAA2B;AAAA;"}
|
@@ -0,0 +1,144 @@
|
|
1
|
+
import { jsx as e, jsxs as T, Fragment as M } from "react/jsx-runtime";
|
2
|
+
import { memo as H, useCallback as o, useEffect as R } from "react";
|
3
|
+
import { IMAGES as X } from "../../../../assets/images/images.js";
|
4
|
+
import j from "../../../ui/arrow-tooltip/arrow-tooltip.js";
|
5
|
+
import v from "../../../ui/buttons/button/button.js";
|
6
|
+
import L from "../../../ui/layout/flex-view.js";
|
7
|
+
import D from "../../../ui/loader/app-loader/app-loader.js";
|
8
|
+
import $ from "../../../ui/separator/separator.js";
|
9
|
+
import _ from "../../../ui/text/text.js";
|
10
|
+
import { useGetTestHelpData as W } from "../../milestone-list-container/api/get-tests-list.js";
|
11
|
+
import { TESTS_CREATION_ANALYTICS_EVENTS as F } from "../tests-creation/tests-creation-analytics-events.js";
|
12
|
+
import G from "./test-sheets-list/test-sheets-list.js";
|
13
|
+
import { TestHelpWrapper as a } from "./tests-list-styled.js";
|
14
|
+
const ne = H((u) => {
|
15
|
+
const {
|
16
|
+
isChaptersAvailable: g,
|
17
|
+
isDraftMilestone: b,
|
18
|
+
isMilestoneActive: s,
|
19
|
+
userType: w,
|
20
|
+
studentId: l,
|
21
|
+
userMilestoneId: t,
|
22
|
+
canUpdatePlan: C
|
23
|
+
} = u, { onCreateMilestoneTest: n, onTestPreview: c, onTestReview: d, onTestStart: p } = u, {
|
24
|
+
get: E,
|
25
|
+
data: r,
|
26
|
+
isProcessingFailed: m,
|
27
|
+
isProcessed: f,
|
28
|
+
isStale: I,
|
29
|
+
isProcessing: A
|
30
|
+
} = W(), y = !C || !g || !s || s && b, P = s && !g ? "Chapters need to be assigned" : b ? "Allowed after plan is published" : "Plan is completed", h = o(() => {
|
31
|
+
E(t, void 0, {
|
32
|
+
studentId: l
|
33
|
+
});
|
34
|
+
}, [E, l, t]);
|
35
|
+
R(() => {
|
36
|
+
!A && (!f && !m || I) && h();
|
37
|
+
}, [h, f, A, m, I]);
|
38
|
+
const S = o(() => {
|
39
|
+
if (typeof n == "function") {
|
40
|
+
n == null || n(t, ((r == null ? void 0 : r.length) || 0) + 1);
|
41
|
+
return;
|
42
|
+
}
|
43
|
+
throw new Error("No callback provided. If provided it must be a function");
|
44
|
+
}, [n, t, r]), k = o(
|
45
|
+
(i, x) => {
|
46
|
+
if (typeof c == "function") {
|
47
|
+
c(i, x);
|
48
|
+
return;
|
49
|
+
}
|
50
|
+
throw new Error("No callback provided. If provided it must be a function");
|
51
|
+
},
|
52
|
+
[c]
|
53
|
+
), N = o(
|
54
|
+
(i) => {
|
55
|
+
if (typeof p == "function") {
|
56
|
+
p(i);
|
57
|
+
return;
|
58
|
+
}
|
59
|
+
throw new Error("No callback provided. If provided it must be a function");
|
60
|
+
},
|
61
|
+
[p]
|
62
|
+
), O = o(
|
63
|
+
(i) => {
|
64
|
+
if (typeof d == "function") {
|
65
|
+
d(i, t);
|
66
|
+
return;
|
67
|
+
}
|
68
|
+
throw new Error("No callback provided. If provided it must be a function");
|
69
|
+
},
|
70
|
+
[d, t]
|
71
|
+
);
|
72
|
+
return m ? /* @__PURE__ */ e(a, { $alignItems: "center", $justifyContent: "center", $background: "WHITE", children: /* @__PURE__ */ T(L, { $flexGapX: 1.5, $alignItems: "center", $justifyContent: "center", children: [
|
73
|
+
/* @__PURE__ */ e(_, { $renderAs: "h6", children: "Oops! Something went wrong. Please try again later." }),
|
74
|
+
/* @__PURE__ */ e(
|
75
|
+
v,
|
76
|
+
{
|
77
|
+
widthX: 14,
|
78
|
+
size: "small",
|
79
|
+
shape: "square",
|
80
|
+
renderAs: "primary",
|
81
|
+
label: "Try again",
|
82
|
+
onClick: h
|
83
|
+
}
|
84
|
+
)
|
85
|
+
] }) }) : f ? r != null && r.length ? /* @__PURE__ */ e(a, { children: /* @__PURE__ */ e(
|
86
|
+
G,
|
87
|
+
{
|
88
|
+
milestoneId: t,
|
89
|
+
sheets: r,
|
90
|
+
userType: w,
|
91
|
+
studentId: l,
|
92
|
+
onCreateNewTest: S,
|
93
|
+
onTestPreview: k,
|
94
|
+
onTestReview: O,
|
95
|
+
onTestStart: N,
|
96
|
+
canUpdatedPlan: C,
|
97
|
+
isMilestoneActive: s
|
98
|
+
}
|
99
|
+
) }) : /* @__PURE__ */ T(
|
100
|
+
a,
|
101
|
+
{
|
102
|
+
$gapX: 6.75,
|
103
|
+
$alignItems: "center",
|
104
|
+
$justifyContent: "center",
|
105
|
+
$background: "WHITE",
|
106
|
+
children: [
|
107
|
+
/* @__PURE__ */ e("img", { src: X.EMPTY_MIX_TESTS, alt: "empty_mix_tests" }),
|
108
|
+
/* @__PURE__ */ e($, { heightX: 2 }),
|
109
|
+
w === "TEACHER" ? /* @__PURE__ */ T(M, { children: [
|
110
|
+
/* @__PURE__ */ e(
|
111
|
+
j,
|
112
|
+
{
|
113
|
+
renderAs: "primary",
|
114
|
+
position: "bottom",
|
115
|
+
hidden: !y,
|
116
|
+
tooltipItem: P,
|
117
|
+
children: /* @__PURE__ */ e(
|
118
|
+
v,
|
119
|
+
{
|
120
|
+
widthX: 10,
|
121
|
+
renderAs: "primary",
|
122
|
+
shape: "square",
|
123
|
+
size: "small",
|
124
|
+
label: "Create a Test",
|
125
|
+
onClick: S,
|
126
|
+
disabled: y,
|
127
|
+
analyticsLabel: F.CUSTOM_TEST_CREATION_STARTED,
|
128
|
+
analyticsProps: {
|
129
|
+
milestone_id: t
|
130
|
+
}
|
131
|
+
}
|
132
|
+
)
|
133
|
+
}
|
134
|
+
),
|
135
|
+
/* @__PURE__ */ e($, { heightX: 2 })
|
136
|
+
] }) : /* @__PURE__ */ e(_, { $renderAs: "ab2-bold", $color: "BLACK_T_87", children: "Wait for the teacher to create a test" })
|
137
|
+
]
|
138
|
+
}
|
139
|
+
) : /* @__PURE__ */ e(a, { $alignItems: "center", $justifyContent: "center", $background: "WHITE", children: /* @__PURE__ */ e(D, { height: "100%" }) });
|
140
|
+
});
|
141
|
+
export {
|
142
|
+
ne as default
|
143
|
+
};
|
144
|
+
//# sourceMappingURL=tests-list.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"tests-list.js","sources":["../../../../../src/features/milestone/milestone-tests/tests-list/tests-list.tsx"],"sourcesContent":["import type { ITestsListProps } from './tests-list-types';\n\nimport { memo, useCallback, useEffect, type FC } from 'react';\n\nimport { IMAGES } from '../../../../assets/images/images';\nimport ArrowTooltip from '../../../ui/arrow-tooltip/arrow-tooltip';\nimport Button from '../../../ui/buttons/button/button';\nimport FlexView from '../../../ui/layout/flex-view';\nimport AppLoader from '../../../ui/loader/app-loader/app-loader';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport { useGetTestHelpData } from '../../milestone-list-container/api/get-tests-list';\nimport { TESTS_CREATION_ANALYTICS_EVENTS } from '../tests-creation/tests-creation-analytics-events';\nimport TestSheetsList from './test-sheets-list/test-sheets-list';\nimport * as Styled from './tests-list-styled';\n\nconst MilestoneTestsList: FC<ITestsListProps> = memo(props => {\n const {\n isChaptersAvailable,\n isDraftMilestone,\n isMilestoneActive,\n userType,\n studentId,\n userMilestoneId,\n canUpdatePlan,\n } = props;\n const { onCreateMilestoneTest, onTestPreview, onTestReview, onTestStart } = props;\n\n const {\n get: getTestHelpData,\n data,\n isProcessingFailed,\n isProcessed,\n isStale,\n isProcessing,\n } = useGetTestHelpData();\n\n const isTestSheetCreationDisabled =\n !canUpdatePlan ||\n !isChaptersAvailable ||\n !isMilestoneActive ||\n (isMilestoneActive && isDraftMilestone);\n const testCreationCtaTooltipText =\n isMilestoneActive && !isChaptersAvailable\n ? 'Chapters need to be assigned'\n : isDraftMilestone\n ? 'Allowed after plan is published'\n : 'Plan is completed';\n\n const handleOnTryAgain = useCallback(() => {\n getTestHelpData(userMilestoneId, undefined, {\n studentId,\n });\n }, [getTestHelpData, studentId, userMilestoneId]);\n\n useEffect(() => {\n if (!isProcessing && ((!isProcessed && !isProcessingFailed) || isStale)) {\n handleOnTryAgain();\n }\n }, [handleOnTryAgain, isProcessed, isProcessing, isProcessingFailed, isStale]);\n\n const handleOnCreateMilestoneTest = useCallback(() => {\n if (typeof onCreateMilestoneTest === 'function') {\n onCreateMilestoneTest?.(userMilestoneId, (data?.length || 0) + 1);\n\n return;\n }\n\n throw new Error('No callback provided. If provided it must be a function');\n }, [onCreateMilestoneTest, userMilestoneId, data]);\n\n const handleOnPreview = useCallback<NonNullable<ITestsListProps['onTestPreview']>>(\n (milestoneId, sheetData) => {\n if (typeof onTestPreview === 'function') {\n onTestPreview(milestoneId, sheetData);\n\n return;\n }\n\n throw new Error('No callback provided. If provided it must be a function');\n },\n [onTestPreview],\n );\n\n const handleOnStart = useCallback<NonNullable<ITestsListProps['onTestStart']>>(\n sheet => {\n if (typeof onTestStart === 'function') {\n onTestStart(sheet);\n\n return;\n }\n\n throw new Error('No callback provided. If provided it must be a function');\n },\n [onTestStart],\n );\n\n const handleOnReview = useCallback<NonNullable<ITestsListProps['onTestReview']>>(\n sheet => {\n if (typeof onTestReview === 'function') {\n onTestReview(sheet, userMilestoneId);\n\n return;\n }\n\n throw new Error('No callback provided. If provided it must be a function');\n },\n [onTestReview, userMilestoneId],\n );\n\n if (isProcessingFailed) {\n return (\n <Styled.TestHelpWrapper $alignItems=\"center\" $justifyContent=\"center\" $background=\"WHITE\">\n <FlexView $flexGapX={1.5} $alignItems=\"center\" $justifyContent=\"center\">\n <Text $renderAs=\"h6\">Oops! Something went wrong. Please try again later.</Text>\n <Button\n widthX={14}\n size=\"small\"\n shape=\"square\"\n renderAs=\"primary\"\n label=\"Try again\"\n onClick={handleOnTryAgain}\n />\n </FlexView>\n </Styled.TestHelpWrapper>\n );\n }\n\n if (isProcessed) {\n if (data?.length) {\n return (\n <Styled.TestHelpWrapper>\n <TestSheetsList\n milestoneId={userMilestoneId}\n sheets={data}\n userType={userType}\n studentId={studentId}\n onCreateNewTest={handleOnCreateMilestoneTest}\n onTestPreview={handleOnPreview}\n onTestReview={handleOnReview}\n onTestStart={handleOnStart}\n canUpdatedPlan={canUpdatePlan}\n isMilestoneActive={isMilestoneActive}\n />\n </Styled.TestHelpWrapper>\n );\n }\n\n return (\n <Styled.TestHelpWrapper\n $gapX={6.75}\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $background=\"WHITE\"\n >\n <img src={IMAGES.EMPTY_MIX_TESTS} alt=\"empty_mix_tests\" />\n <Separator heightX={2} />\n {userType === 'TEACHER' ? (\n <>\n <ArrowTooltip\n renderAs=\"primary\"\n position=\"bottom\"\n hidden={!isTestSheetCreationDisabled}\n tooltipItem={testCreationCtaTooltipText}\n >\n <Button\n widthX={10}\n renderAs=\"primary\"\n shape=\"square\"\n size=\"small\"\n label=\"Create a Test\"\n onClick={handleOnCreateMilestoneTest}\n disabled={isTestSheetCreationDisabled}\n analyticsLabel={TESTS_CREATION_ANALYTICS_EVENTS.CUSTOM_TEST_CREATION_STARTED}\n analyticsProps={{\n milestone_id: userMilestoneId,\n }}\n />\n </ArrowTooltip>\n <Separator heightX={2} />\n </>\n ) : (\n <Text $renderAs=\"ab2-bold\" $color=\"BLACK_T_87\">\n Wait for the teacher to create a test\n </Text>\n )}\n </Styled.TestHelpWrapper>\n );\n }\n\n return (\n <Styled.TestHelpWrapper $alignItems=\"center\" $justifyContent=\"center\" $background=\"WHITE\">\n <AppLoader height=\"100%\" />\n </Styled.TestHelpWrapper>\n );\n});\n\nexport default MilestoneTestsList;\n"],"names":["MilestoneTestsList","memo","props","isChaptersAvailable","isDraftMilestone","isMilestoneActive","userType","studentId","userMilestoneId","canUpdatePlan","onCreateMilestoneTest","onTestPreview","onTestReview","onTestStart","getTestHelpData","data","isProcessingFailed","isProcessed","isStale","isProcessing","useGetTestHelpData","isTestSheetCreationDisabled","testCreationCtaTooltipText","handleOnTryAgain","useCallback","useEffect","handleOnCreateMilestoneTest","handleOnPreview","milestoneId","sheetData","handleOnStart","sheet","handleOnReview","Styled.TestHelpWrapper","FlexView","jsx","Text","Button","TestSheetsList","jsxs","IMAGES","Separator","Fragment","ArrowTooltip","TESTS_CREATION_ANALYTICS_EVENTS","AppLoader"],"mappings":";;;;;;;;;;;;;AAgBM,MAAAA,KAA0CC,EAAK,CAASC,MAAA;AACtD,QAAA;AAAA,IACJ,qBAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,UAAAC;AAAA,IACA,WAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,eAAAC;AAAA,EACE,IAAAP,GACE,EAAE,uBAAAQ,GAAuB,eAAAC,GAAe,cAAAC,GAAc,aAAAC,MAAgBX,GAEtE;AAAA,IACJ,KAAKY;AAAA,IACL,MAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,aAAAC;AAAA,IACA,SAAAC;AAAA,IACA,cAAAC;AAAA,MACEC,EAAmB,GAEjBC,IACJ,CAACZ,KACD,CAACN,KACD,CAACE,KACAA,KAAqBD,GAClBkB,IACJjB,KAAqB,CAACF,IAClB,iCACAC,IACE,oCACA,qBAEFmB,IAAmBC,EAAY,MAAM;AACzC,IAAAV,EAAgBN,GAAiB,QAAW;AAAA,MAC1C,WAAAD;AAAA,IAAA,CACD;AAAA,EACA,GAAA,CAACO,GAAiBP,GAAWC,CAAe,CAAC;AAEhD,EAAAiB,EAAU,MAAM;AACd,IAAI,CAACN,MAAkB,CAACF,KAAe,CAACD,KAAuBE,MAC5CK;EACnB,GACC,CAACA,GAAkBN,GAAaE,GAAcH,GAAoBE,CAAO,CAAC;AAEvE,QAAAQ,IAA8BF,EAAY,MAAM;AAChD,QAAA,OAAOd,KAA0B,YAAY;AAC/C,MAAAA,KAAA,QAAAA,EAAwBF,KAAkBO,KAAA,gBAAAA,EAAM,WAAU,KAAK;AAE/D;AAAA,IACF;AAEM,UAAA,IAAI,MAAM,yDAAyD;AAAA,EACxE,GAAA,CAACL,GAAuBF,GAAiBO,CAAI,CAAC,GAE3CY,IAAkBH;AAAA,IACtB,CAACI,GAAaC,MAAc;AACtB,UAAA,OAAOlB,KAAkB,YAAY;AACvC,QAAAA,EAAciB,GAAaC,CAAS;AAEpC;AAAA,MACF;AAEM,YAAA,IAAI,MAAM,yDAAyD;AAAA,IAC3E;AAAA,IACA,CAAClB,CAAa;AAAA,EAAA,GAGVmB,IAAgBN;AAAA,IACpB,CAASO,MAAA;AACH,UAAA,OAAOlB,KAAgB,YAAY;AACrC,QAAAA,EAAYkB,CAAK;AAEjB;AAAA,MACF;AAEM,YAAA,IAAI,MAAM,yDAAyD;AAAA,IAC3E;AAAA,IACA,CAAClB,CAAW;AAAA,EAAA,GAGRmB,IAAiBR;AAAA,IACrB,CAASO,MAAA;AACH,UAAA,OAAOnB,KAAiB,YAAY;AACtC,QAAAA,EAAamB,GAAOvB,CAAe;AAEnC;AAAA,MACF;AAEM,YAAA,IAAI,MAAM,yDAAyD;AAAA,IAC3E;AAAA,IACA,CAACI,GAAcJ,CAAe;AAAA,EAAA;AAGhC,SAAIQ,sBAECiB,GAAA,EAAuB,aAAY,UAAS,iBAAgB,UAAS,aAAY,SAChF,4BAACC,GAAS,EAAA,WAAW,KAAK,aAAY,UAAS,iBAAgB,UAC7D,UAAA;AAAA,IAAC,gBAAAC,EAAAC,GAAA,EAAK,WAAU,MAAK,UAAmD,uDAAA;AAAA,IACxE,gBAAAD;AAAA,MAACE;AAAA,MAAA;AAAA,QACC,QAAQ;AAAA,QACR,MAAK;AAAA,QACL,OAAM;AAAA,QACN,UAAS;AAAA,QACT,OAAM;AAAA,QACN,SAASd;AAAA,MAAA;AAAA,IACX;AAAA,EAAA,EACF,CAAA,EACF,CAAA,IAIAN,IACEF,KAAA,QAAAA,EAAM,SAEN,gBAAAoB,EAACF,GAAA,EACC,UAAA,gBAAAE;AAAA,IAACG;AAAA,IAAA;AAAA,MACC,aAAa9B;AAAA,MACb,QAAQO;AAAA,MACR,UAAAT;AAAA,MACA,WAAAC;AAAA,MACA,iBAAiBmB;AAAA,MACjB,eAAeC;AAAA,MACf,cAAcK;AAAA,MACd,aAAaF;AAAA,MACb,gBAAgBrB;AAAA,MAChB,mBAAAJ;AAAA,IAAA;AAAA,EAEJ,EAAA,CAAA,IAKF,gBAAAkC;AAAA,IAACN;AAAAA,IAAA;AAAA,MACC,OAAO;AAAA,MACP,aAAY;AAAA,MACZ,iBAAgB;AAAA,MAChB,aAAY;AAAA,MAEZ,UAAA;AAAA,QAAA,gBAAAE,EAAC,OAAI,EAAA,KAAKK,EAAO,iBAAiB,KAAI,mBAAkB;AAAA,QACxD,gBAAAL,EAACM,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,QACtBnC,MAAa,YAEV,gBAAAiC,EAAAG,GAAA,EAAA,UAAA;AAAA,UAAA,gBAAAP;AAAA,YAACQ;AAAA,YAAA;AAAA,cACC,UAAS;AAAA,cACT,UAAS;AAAA,cACT,QAAQ,CAACtB;AAAA,cACT,aAAaC;AAAA,cAEb,UAAA,gBAAAa;AAAA,gBAACE;AAAA,gBAAA;AAAA,kBACC,QAAQ;AAAA,kBACR,UAAS;AAAA,kBACT,OAAM;AAAA,kBACN,MAAK;AAAA,kBACL,OAAM;AAAA,kBACN,SAASX;AAAA,kBACT,UAAUL;AAAA,kBACV,gBAAgBuB,EAAgC;AAAA,kBAChD,gBAAgB;AAAA,oBACd,cAAcpC;AAAA,kBAChB;AAAA,gBAAA;AAAA,cACF;AAAA,YAAA;AAAA,UACF;AAAA,UACA,gBAAA2B,EAACM,GAAU,EAAA,SAAS,EAAG,CAAA;AAAA,QAAA,EAAA,CACzB,IAEC,gBAAAN,EAAAC,GAAA,EAAK,WAAU,YAAW,QAAO,cAAa,UAE/C,yCAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA,IAOL,gBAAAD,EAAAF,GAAA,EAAuB,aAAY,UAAS,iBAAgB,UAAS,aAAY,SAChF,UAAA,gBAAAE,EAACU,GAAU,EAAA,QAAO,QAAO,EAC3B,CAAA;AAEJ,CAAC;"}
|
@@ -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
|
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
@@ -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, ISheetItemCallbackProps {
|
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 ISheetItemCallbackProps {
|
2083
2083
|
userType: TUserTypes;
|
2084
2084
|
studentId: string;
|
2085
2085
|
userMilestoneId?: string;
|
@@ -2123,13 +2123,11 @@ 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
|
2127
|
-
onNodeReview?: (nodeData: INodeDataProps
|
2126
|
+
onNodeView?: (nodeData: INodeDataProps) => void;
|
2127
|
+
onNodeReview?: (nodeData: INodeDataProps) => 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;
|
2133
2131
|
}
|
2134
2132
|
|
2135
2133
|
export declare interface INodeDataProps {
|
@@ -2156,11 +2154,6 @@ export declare interface INodeDataProps {
|
|
2156
2154
|
title: string;
|
2157
2155
|
user_chapter_id: string | null;
|
2158
2156
|
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[];
|
2164
2157
|
}
|
2165
2158
|
|
2166
2159
|
declare interface INodePermissions {
|
@@ -2960,9 +2953,9 @@ declare interface ITestsCreationProps {
|
|
2960
2953
|
}
|
2961
2954
|
|
2962
2955
|
declare interface ITestSheetItemCallbackProps {
|
2963
|
-
onTestPreview?: (
|
2964
|
-
onTestStart?: (sheetData:
|
2965
|
-
onTestReview?: (sheetData:
|
2956
|
+
onTestPreview?: (milestoneId: string, sheetData: ISheetDataProps) => void;
|
2957
|
+
onTestStart?: (sheetData: ISheetDataProps) => void;
|
2958
|
+
onTestReview?: (sheetData: ISheetDataProps, milestoneId: string) => void;
|
2966
2959
|
}
|
2967
2960
|
|
2968
2961
|
declare interface ITestsListProps extends ITestSheetItemCallbackProps {
|
@@ -3981,15 +3974,6 @@ export declare const RadioCard: <IDType extends string | number>({ options, valu
|
|
3981
3974
|
|
3982
3975
|
export declare const RadioInput: <IDType extends string | number>({ options, value, onChange, numColumns, }: IRadioInputProps<IDType>) => JSX.Element;
|
3983
3976
|
|
3984
|
-
export declare const RecentChapters: FC<RecentChaptersProps>;
|
3985
|
-
|
3986
|
-
declare interface RecentChaptersProps {
|
3987
|
-
studentId: string;
|
3988
|
-
courseStream: TCourseStream;
|
3989
|
-
userType: TUserTypes;
|
3990
|
-
onChapterClick: IChaptersListProps['onChapterClick'];
|
3991
|
-
}
|
3992
|
-
|
3993
3977
|
export declare const RedoIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
|
3994
3978
|
|
3995
3979
|
export declare const ReferenceSheet: FC<IReferenceSheetProps>;
|
@@ -4853,12 +4837,6 @@ declare type TMilestoneStates = 'ACTIVE' | 'OUTCOME_PENDING' | 'OUTCOME_ADDED' |
|
|
4853
4837
|
|
4854
4838
|
declare type TMilestoneType = 'ACTIVE' | 'INACTIVE' | 'DRAFT';
|
4855
4839
|
|
4856
|
-
declare interface TNodeDataTestItemsDataProps {
|
4857
|
-
chapter_name: string;
|
4858
|
-
goal_name: string;
|
4859
|
-
ref: string;
|
4860
|
-
}
|
4861
|
-
|
4862
4840
|
declare type TNodeSubGroupProps = keyof typeof NODE_SUB_GROUP;
|
4863
4841
|
|
4864
4842
|
declare type TNodeTypeProps = keyof typeof NODE_TYPE | keyof typeof PYTHON_NODE_TYPES | keyof typeof SAT_NODE_TYPE;
|
@@ -5244,8 +5222,8 @@ export declare const useGetLeaderboardDal: (userId: string) => Omit<ReturnType<t
|
|
5244
5222
|
|
5245
5223
|
export declare const useGetMilestoneResources: (initialId?: string, initialQuery?: void | undefined) => {
|
5246
5224
|
get: (id: string, query: void, meta: IGetMilestoneResourcesAPIMetaData) => Promise<void>;
|
5247
|
-
resource: ResourceModel<
|
5248
|
-
data:
|
5225
|
+
resource: ResourceModel<ISheetDataProps[]> | undefined;
|
5226
|
+
data: ISheetDataProps[] | undefined;
|
5249
5227
|
permissions: Record<string, unknown> | undefined;
|
5250
5228
|
isProcessing: boolean;
|
5251
5229
|
isProcessed: boolean;
|
@@ -5260,8 +5238,8 @@ export declare const useGetTestHelpData: (initialId?: string, initialQuery?: voi
|
|
5260
5238
|
get: (id: string, query: void, meta: {
|
5261
5239
|
studentId: string;
|
5262
5240
|
}) => Promise<void>;
|
5263
|
-
resource: ResourceModel<
|
5264
|
-
data:
|
5241
|
+
resource: ResourceModel<ISheetDataProps[]> | undefined;
|
5242
|
+
data: ISheetDataProps[] | undefined;
|
5265
5243
|
permissions: Record<string, unknown> | undefined;
|
5266
5244
|
isProcessing: boolean;
|
5267
5245
|
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 D } from "./assets/line-icons/icons/bulb.js";
|
16
|
+
import { default as R } 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 De } from "./assets/line-icons/icons/home.js";
|
43
|
+
import { default as Re } 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 Ho } 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 Dr } from "./assets/line-icons/icons/cuemath-logo.js";
|
96
|
+
import { default as Rr } 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 Dt } from "./features/ui/layout/flex-view.js";
|
123
|
+
import { default as Rt } 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 Ha } 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 Hf } 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 Ds } from "./features/milestone/outcome/milestone-outcome-container.js";
|
202
|
+
import { default as Rs } 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 Hl, NODE_LABELS as Rl, 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,15 +236,14 @@ 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";
|
240
239
|
export {
|
241
240
|
Xs as ACHIEVEMENT_ACTIONS,
|
242
241
|
Wr as AccordionSection,
|
243
|
-
|
242
|
+
Rs as AchievementNotShareReasonModal,
|
244
243
|
ys as AchievementShareInstructionModal,
|
245
244
|
d as AlarmIcon,
|
246
245
|
c as AlertIcon,
|
247
|
-
|
246
|
+
Rt as AppLoader,
|
248
247
|
at as ArcButton,
|
249
248
|
wr as ArrowTooltip,
|
250
249
|
yr as AutoPlayPermissionProvider,
|
@@ -258,12 +257,12 @@ export {
|
|
258
257
|
P as BookClosedIcon,
|
259
258
|
h as BookIcon,
|
260
259
|
N as BookmarkIcon,
|
261
|
-
|
262
|
-
|
260
|
+
R as Bulb2Icon,
|
261
|
+
D as BulbIcon,
|
263
262
|
Zr as Button,
|
264
263
|
Sf as CIRCLE_ACTION_IDS,
|
265
264
|
If as CIRCLE_ONBOARDING_ANALYTICS_STEPS,
|
266
|
-
|
265
|
+
Hl as COMPLETED_SHEET_STATE,
|
267
266
|
y as CalendarIcon,
|
268
267
|
Yt as Callout,
|
269
268
|
Pt as CascadingSelectInput,
|
@@ -296,7 +295,7 @@ export {
|
|
296
295
|
bf as CueCanvasController,
|
297
296
|
gf as CueCanvasProvider,
|
298
297
|
X as CueRocket,
|
299
|
-
|
298
|
+
Dr as CuemathLogo,
|
300
299
|
ee as DartIcon,
|
301
300
|
re as DashArrowIcon,
|
302
301
|
Cl as DesmosCalculator,
|
@@ -320,7 +319,7 @@ export {
|
|
320
319
|
ss as ExtraPractice,
|
321
320
|
Ce as Eye2Icon,
|
322
321
|
Se as EyeIcon,
|
323
|
-
|
322
|
+
Dt as FlexView,
|
324
323
|
Va as GAME_LAUNCHER_ASSET_PADDING,
|
325
324
|
Qa as GAME_LAUNCHER_SIZE,
|
326
325
|
hr as GameIcon,
|
@@ -333,12 +332,12 @@ export {
|
|
333
332
|
he as HandIcon,
|
334
333
|
Le as HelpIcon,
|
335
334
|
Ne as HighlighterIcon,
|
336
|
-
|
335
|
+
De as HomeIcon,
|
337
336
|
s as ILLUSTRATIONS,
|
338
337
|
p as IMAGES,
|
339
338
|
nf as IStatsToAwardErrorCode,
|
340
339
|
et as IconButton,
|
341
|
-
|
340
|
+
Re as ImageIcon,
|
342
341
|
is as IndicatorType,
|
343
342
|
Be as Info2Icon,
|
344
343
|
ye as InfoIcon,
|
@@ -346,7 +345,7 @@ export {
|
|
346
345
|
cs as JourneyProvider,
|
347
346
|
u as LOTTIE,
|
348
347
|
Oa as LPARChapter,
|
349
|
-
|
348
|
+
Ha as LPARMilestoneChapter,
|
350
349
|
Lf as Leaderboard,
|
351
350
|
mp as LearnosityPreloader,
|
352
351
|
Ue as LeftIcon,
|
@@ -357,7 +356,7 @@ export {
|
|
357
356
|
Ls as MilestoneCreate,
|
358
357
|
Ws as MilestoneEdit,
|
359
358
|
ws as MilestoneList,
|
360
|
-
|
359
|
+
Ds as MilestoneOutcome,
|
361
360
|
Fs as MilestoneStart,
|
362
361
|
Fe as Minus2Icon,
|
363
362
|
Ye as MinusIcon,
|
@@ -365,10 +364,10 @@ export {
|
|
365
364
|
Ze as Mobile,
|
366
365
|
Xe as MoreVerticalIcon,
|
367
366
|
_a as MultiTabBlocker,
|
368
|
-
|
367
|
+
Rl as NODE_LABELS,
|
369
368
|
Gl as NODE_SUB_GROUP,
|
370
369
|
yl as NODE_TYPE,
|
371
|
-
|
370
|
+
Rr as Next2Icon,
|
372
371
|
eo as NextIcon,
|
373
372
|
jr as Nudge,
|
374
373
|
ht as NumRangeInput,
|
@@ -396,7 +395,6 @@ export {
|
|
396
395
|
Bl as REWARDS_LIST,
|
397
396
|
Bt as RadioCard,
|
398
397
|
dt as RadioInput,
|
399
|
-
Tp as RecentChapters,
|
400
398
|
ko as RedoIcon,
|
401
399
|
Ll as ReferenceSheet,
|
402
400
|
ul as RemotePeerPointer,
|
@@ -411,7 +409,7 @@ export {
|
|
411
409
|
wl as SHEET_STATE,
|
412
410
|
$s as STAGES,
|
413
411
|
nr as ScribbleIcon,
|
414
|
-
|
412
|
+
Ho as SearchIcon,
|
415
413
|
it as SearchableSelectInput,
|
416
414
|
Ut as SectionList,
|
417
415
|
ct as SelectInput,
|
@@ -426,7 +424,7 @@ export {
|
|
426
424
|
Vo as Skip2Icon,
|
427
425
|
bo as SkipColoredIcon,
|
428
426
|
vo as SkipIcon,
|
429
|
-
|
427
|
+
Hf as SplashScreen,
|
430
428
|
Qo as Star2Icon,
|
431
429
|
go as StarIcon,
|
432
430
|
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,25 +0,0 @@
|
|
1
|
-
import { jsx as r, jsxs as p } from "react/jsx-runtime";
|
2
|
-
import { memo as a } from "react";
|
3
|
-
import { CardOptions as u, CardOptionWrapper as c, OptionText as d } from "./styles.js";
|
4
|
-
const s = a(({ options: e }) => e.length === 0 ? null : /* @__PURE__ */ r(u, { $background: "BLACK_2", $borderColor: "WHITE_T_38", $gapX: 0.5, children: e.map(({ icon: t, label: o, id: n, onClick: i, visible: l }) => l ? /* @__PURE__ */ p(
|
5
|
-
c,
|
6
|
-
{
|
7
|
-
$flexDirection: "row",
|
8
|
-
$alignItems: "center",
|
9
|
-
$flexGap: 8,
|
10
|
-
$gapX: 0.5,
|
11
|
-
$gutterX: 1,
|
12
|
-
onClick: () => {
|
13
|
-
i(n);
|
14
|
-
},
|
15
|
-
children: [
|
16
|
-
/* @__PURE__ */ r(t, { width: 20, height: 20 }),
|
17
|
-
/* @__PURE__ */ r(d, { $renderAs: "ub3", $color: "WHITE", children: o })
|
18
|
-
]
|
19
|
-
},
|
20
|
-
n
|
21
|
-
) : null) }));
|
22
|
-
export {
|
23
|
-
s as default
|
24
|
-
};
|
25
|
-
//# sourceMappingURL=card-menu-options.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"card-menu-options.js","sources":["../../../src/features/homework/card-menu-options.tsx"],"sourcesContent":["import type { FC, SVGProps } from 'react';\n\nimport { memo } from 'react';\n\nimport * as Styled from './styles';\n\nexport interface ICardMenuOption {\n id: string;\n label: string;\n icon: FC<SVGProps<SVGSVGElement>>;\n onClick: (id: string) => void;\n visible: boolean;\n}\n\nexport interface ICardMenuOptionsProps {\n options: ICardMenuOption[];\n}\n\nconst CardMenuOptions: FC<ICardMenuOptionsProps> = memo(({ options }) => {\n if (options.length === 0) return null;\n\n return (\n <Styled.CardOptions $background=\"BLACK_2\" $borderColor=\"WHITE_T_38\" $gapX={0.5}>\n {options.map(({ icon: OptionIcon, label, id, onClick, visible }) => {\n if (!visible) return null;\n\n return (\n <Styled.CardOptionWrapper\n key={id}\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $flexGap={8}\n $gapX={0.5}\n $gutterX={1}\n onClick={() => {\n onClick(id);\n }}\n >\n <OptionIcon width={20} height={20} />\n <Styled.OptionText $renderAs=\"ub3\" $color=\"WHITE\">\n {label}\n </Styled.OptionText>\n </Styled.CardOptionWrapper>\n );\n })}\n </Styled.CardOptions>\n );\n});\n\nexport default CardMenuOptions;\n"],"names":["CardMenuOptions","memo","options","jsx","Styled.CardOptions","OptionIcon","label","id","onClick","visible","jsxs","Styled.CardOptionWrapper","Styled.OptionText"],"mappings":";;;AAkBA,MAAMA,IAA6CC,EAAK,CAAC,EAAE,SAAAC,QACrDA,EAAQ,WAAW,IAAU,OAG/B,gBAAAC,EAACC,GAAA,EAAmB,aAAY,WAAU,cAAa,cAAa,OAAO,KACxE,YAAQ,IAAI,CAAC,EAAE,MAAMC,GAAY,OAAAC,GAAO,IAAAC,GAAI,SAAAC,GAAS,SAAAC,QAC/CA,IAGH,gBAAAC;AAAA,EAACC;AAAAA,EAAA;AAAA,IAEC,gBAAe;AAAA,IACf,aAAY;AAAA,IACZ,UAAU;AAAA,IACV,OAAO;AAAA,IACP,UAAU;AAAA,IACV,SAAS,MAAM;AACb,MAAAH,EAAQD,CAAE;AAAA,IACZ;AAAA,IAEA,UAAA;AAAA,MAAA,gBAAAJ,EAACE,GAAW,EAAA,OAAO,IAAI,QAAQ,IAAI;AAAA,MACnC,gBAAAF,EAACS,GAAA,EAAkB,WAAU,OAAM,QAAO,SACvC,UACHN,GAAA;AAAA,IAAA;AAAA,EAAA;AAAA,EAbKC;AAAA,IAJY,IAoBtB,EACH,CAAA,CAEH;"}
|