@cuemath/leap 2.8.61-as17 → 2.8.61-as3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/line-icons/icons/chevron-left.js.map +1 -1
- package/dist/assets/line-icons/icons/recap.js +3 -3
- package/dist/assets/line-icons/icons/recap.js.map +1 -1
- package/dist/assets/lottie/lottie.js +1 -9
- package/dist/assets/lottie/lottie.js.map +1 -1
- package/dist/features/chapters/chapters-list/chapter-item/chapter-item-styled.js +19 -20
- package/dist/features/chapters/chapters-list/chapter-item/chapter-item-styled.js.map +1 -1
- package/dist/features/chapters-v2/chapter-details/block-sections/block-section-view.js +25 -25
- package/dist/features/chapters-v2/chapter-details/block-sections/block-section-view.js.map +1 -1
- package/dist/features/chapters-v2/chapter-details/block-sections/block-sections.js +28 -32
- package/dist/features/chapters-v2/chapter-details/block-sections/block-sections.js.map +1 -1
- package/dist/features/chapters-v2/comps/node-card/student-actions/student-actions.js +78 -85
- package/dist/features/chapters-v2/comps/node-card/student-actions/student-actions.js.map +1 -1
- package/dist/features/chapters-v2/comps/node-card/teacher-actions/teacher-actions.js +90 -98
- package/dist/features/chapters-v2/comps/node-card/teacher-actions/teacher-actions.js.map +1 -1
- package/dist/features/chapters-v2/constants/node-constants.js +1 -0
- package/dist/features/chapters-v2/constants/node-constants.js.map +1 -1
- package/dist/features/chapters-v2/utils/node-card-utils.js +39 -77
- package/dist/features/chapters-v2/utils/node-card-utils.js.map +1 -1
- package/dist/features/communication/pub-sub/constants.js +2 -5
- package/dist/features/communication/pub-sub/constants.js.map +1 -1
- package/dist/features/homework/card-menu-options.js +44 -34
- package/dist/features/homework/card-menu-options.js.map +1 -1
- package/dist/features/homework/homework-card.js +227 -157
- package/dist/features/homework/homework-card.js.map +1 -1
- package/dist/features/homework/hw-card-list/api/get-homeworks.js +1 -1
- package/dist/features/homework/hw-card-list/api/get-homeworks.js.map +1 -1
- package/dist/features/homework/hw-card-list/hw-card-list.js +104 -177
- package/dist/features/homework/hw-card-list/hw-card-list.js.map +1 -1
- package/dist/features/homework/styles.js +31 -36
- package/dist/features/homework/styles.js.map +1 -1
- package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-info.js +49 -48
- package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-info.js.map +1 -1
- package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs.js +35 -36
- package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs.js.map +1 -1
- package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view.js +38 -40
- package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view.js.map +1 -1
- package/dist/features/sheet-v2/resource-list/resource-list.js +36 -25
- package/dist/features/sheet-v2/resource-list/resource-list.js.map +1 -1
- package/dist/index.d.ts +1 -36
- package/dist/index.js +379 -381
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/assets/line-icons/icons/closed-eye.js +0 -23
- package/dist/assets/line-icons/icons/closed-eye.js.map +0 -1
- package/dist/features/homework/card-title.js +0 -21
- package/dist/features/homework/card-title.js.map +0 -1
- package/dist/features/homework/homework-card-view.js +0 -133
- package/dist/features/homework/homework-card-view.js.map +0 -1
- package/dist/features/homework/hw-card-list/hw-card-list-styled.js +0 -71
- package/dist/features/homework/hw-card-list/hw-card-list-styled.js.map +0 -1
- package/dist/static/competitive-arena.b9c40801.json +0 -1
- package/dist/static/learn.71b13323.json +0 -1
- package/dist/static/practice.158dd488.json +0 -1
- package/dist/static/project.eb665827.json +0 -1
- package/dist/static/puzzle.b298c7e4.json +0 -1
- package/dist/static/recap.0dd2c1e2.json +0 -1
- package/dist/static/test.803d6036.json +0 -1
- package/dist/static/video.b41451e2.json +0 -1
@@ -1,39 +1,50 @@
|
|
1
|
-
import { jsx as
|
2
|
-
import { h as
|
3
|
-
import { memo as
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import
|
7
|
-
const
|
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
8
|
display: grid;
|
9
9
|
grid-template-columns: repeat(3, 200px);
|
10
10
|
grid-gap: 32px;
|
11
11
|
justify-content: center;
|
12
12
|
padding: 32px 0;
|
13
|
-
`,
|
13
|
+
`, _ = (r) => {
|
14
14
|
const {
|
15
|
-
|
16
|
-
|
17
|
-
worksheet_id: p,
|
18
|
-
is_timed: l,
|
19
|
-
sheet_time: c,
|
15
|
+
sheet_time: t,
|
16
|
+
node_type: o,
|
20
17
|
total_questions: e
|
21
|
-
} =
|
22
|
-
|
23
|
-
|
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,
|
24
36
|
{
|
25
|
-
header:
|
26
|
-
subHeader:
|
27
|
-
userType:
|
28
|
-
nodeData:
|
37
|
+
header: n,
|
38
|
+
subHeader: m,
|
39
|
+
userType: t,
|
40
|
+
nodeData: e,
|
29
41
|
renderAs: "milestone",
|
30
|
-
|
31
|
-
...m
|
42
|
+
...o
|
32
43
|
},
|
33
|
-
`${
|
44
|
+
`${d}_${a}_${i}`
|
34
45
|
);
|
35
|
-
}) }) }),
|
46
|
+
}) }) }), y = p($);
|
36
47
|
export {
|
37
|
-
|
48
|
+
y as default
|
38
49
|
};
|
39
50
|
//# sourceMappingURL=resource-list.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"resource-list.js","sources":["../../../../src/features/sheet-v2/resource-list/resource-list.tsx"],"sourcesContent":["import type { 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
|
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 renderAs=\"milestone\"\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,MACV,UAAS;AAAA,MACR,GAAGQ;AAAA,IAAA;AAAA,IANC,GAAGM,CAAW,IAAID,CAAM,IAAIF,CAAG;AAAA,EAAA;AAS1C,CAAC,GACH,EACF,CAAA,GAGaM,IAAAC,EAAKb,CAAa;"}
|
package/dist/index.d.ts
CHANGED
@@ -352,7 +352,6 @@ declare interface ErrorProps {
|
|
352
352
|
}
|
353
353
|
|
354
354
|
export declare const EVENTS: {
|
355
|
-
HOMEWORK_UNASSIGN: "HOMEWORK_UNASSIGN";
|
356
355
|
GOAL_CREATED: "GOAL_CREATED";
|
357
356
|
GOAL_EDITED: "GOAL_EDITED";
|
358
357
|
GOAL_DELETED: "GOAL_DELETED";
|
@@ -1319,11 +1318,6 @@ declare interface IGradeSelectorProps {
|
|
1319
1318
|
layoutAlignment?: 'center' | 'auto';
|
1320
1319
|
}
|
1321
1320
|
|
1322
|
-
export declare interface IHomeworkData extends INodeDataProps {
|
1323
|
-
homework_id: string;
|
1324
|
-
chapter_name: string;
|
1325
|
-
}
|
1326
|
-
|
1327
1321
|
declare interface IIconButtonProps extends Omit<IButtonProps, 'label' | 'shape' | 'widthX' | 'width' | 'iconPosition' | 'alignSelf' | 'analyticsLabel' | 'renderAs'>, Required<Pick<IClickableAnalyticsProps, 'analyticsLabel'>> {
|
1328
1322
|
Icon: React.FC<React.SVGProps<SVGSVGElement>>;
|
1329
1323
|
customBgColor?: TColorNames;
|
@@ -2150,7 +2144,7 @@ declare interface INodeCardCallbacks {
|
|
2150
2144
|
onNodeAttemptLocationChange?: (nodeData: INodeDataProps) => void;
|
2151
2145
|
onNodeMarkAsDone?: (nodeData: INodeDataProps) => void;
|
2152
2146
|
onNodeReset?: (nodeData: INodeDataProps, milestoneId?: string) => void;
|
2153
|
-
onNodeUnassign?: (nodeData: INodeDataProps
|
2147
|
+
onNodeUnassign?: (nodeData: INodeDataProps, milestoneId?: string) => void;
|
2154
2148
|
}
|
2155
2149
|
|
2156
2150
|
export declare interface INodeDataProps {
|
@@ -2160,7 +2154,6 @@ export declare interface INodeDataProps {
|
|
2160
2154
|
card_header: string;
|
2161
2155
|
chapter_id: string;
|
2162
2156
|
complete_status: boolean;
|
2163
|
-
course_type: TCourseType;
|
2164
2157
|
desmos_calculator_enabled: boolean;
|
2165
2158
|
due_date_ts: number | null;
|
2166
2159
|
is_lesson_v3_enabled: boolean;
|
@@ -2184,9 +2177,6 @@ export declare interface INodeDataProps {
|
|
2184
2177
|
total_questions: number | null;
|
2185
2178
|
unlocked_on_ts: number | null;
|
2186
2179
|
items?: TNodeDataTestItemsDataProps[];
|
2187
|
-
user_milestone_id?: string;
|
2188
|
-
user_attempt_id: string | null;
|
2189
|
-
subtext: string | null;
|
2190
2180
|
}
|
2191
2181
|
|
2192
2182
|
declare interface INodePermissions {
|
@@ -2996,7 +2986,6 @@ declare interface ITestsListProps {
|
|
2996
2986
|
isDraftMilestone?: boolean;
|
2997
2987
|
isChaptersAvailable?: boolean;
|
2998
2988
|
canUpdatePlan?: boolean;
|
2999
|
-
onNodeReattempt?: (sheetData: INodeDataProps, milestoneId?: string) => void;
|
3000
2989
|
onTestPreview?: (sheetData: INodeDataProps, milestoneId: string) => void;
|
3001
2990
|
onTestStart?: (sheetData: INodeDataProps) => void;
|
3002
2991
|
onTestReview?: (sheetData: INodeDataProps, milestoneId: string) => void;
|
@@ -3658,7 +3647,6 @@ export declare const LOTTIE: {
|
|
3658
3647
|
COLOR_1: string;
|
3659
3648
|
COLOR_2: string;
|
3660
3649
|
COLOR_3: string;
|
3661
|
-
COMPETITIVE_ARENA: string;
|
3662
3650
|
DIFFICULT: string;
|
3663
3651
|
EASY: string;
|
3664
3652
|
ELITE_CIRCLE: string;
|
@@ -3671,7 +3659,6 @@ export declare const LOTTIE: {
|
|
3671
3659
|
GOLD_3: string;
|
3672
3660
|
INFINITE_BUTTON_BG: string;
|
3673
3661
|
INFINITE_BUTTON_SYMBOL: string;
|
3674
|
-
LEARN: string;
|
3675
3662
|
LEVELUP_RINGS: string;
|
3676
3663
|
MEDIUM: string;
|
3677
3664
|
NUDGE_TAP: string;
|
@@ -3691,12 +3678,8 @@ export declare const LOTTIE: {
|
|
3691
3678
|
POINT50: string;
|
3692
3679
|
POINT5: string;
|
3693
3680
|
POINT60: string;
|
3694
|
-
PRACTICE: string;
|
3695
3681
|
PROFICIENT1X: string;
|
3696
|
-
PROJECT: string;
|
3697
|
-
PUZZLE: string;
|
3698
3682
|
RANDOM_MODE_SEGMENT_LOTTIE: string;
|
3699
|
-
RECAP: string;
|
3700
3683
|
SEQUENCE_MODE_SEGMENT_LOTTIE: string;
|
3701
3684
|
SILVER_1: string;
|
3702
3685
|
SILVER_2: string;
|
@@ -3709,12 +3692,10 @@ export declare const LOTTIE: {
|
|
3709
3692
|
TABLE_SEGMENT_STAR: string;
|
3710
3693
|
TARGET_ACHIEVED_TEXT: string;
|
3711
3694
|
TEACHER_VALIDATION: string;
|
3712
|
-
TEST: string;
|
3713
3695
|
TOTAL_STREAK: string;
|
3714
3696
|
TOTAL_TIME: string;
|
3715
3697
|
TOTAL_TIME_SPENT: string;
|
3716
3698
|
TOURNAMENT_RIPPLE: string;
|
3717
|
-
VIDEO: string;
|
3718
3699
|
};
|
3719
3700
|
|
3720
3701
|
export declare const LPARChapter: FC<ILPARChapterProps>;
|
@@ -3753,13 +3734,6 @@ export declare const Next2Icon: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
3753
3734
|
|
3754
3735
|
export declare const NextIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
3755
3736
|
|
3756
|
-
declare enum NODE_CARD_COURSE_TYPES {
|
3757
|
-
PROGRAM = "PROGRAM",
|
3758
|
-
REMEDIAL = "REMEDIAL",
|
3759
|
-
TEST_SERIES = "TEST_SERIES",
|
3760
|
-
EXAM = "EXAM"
|
3761
|
-
}
|
3762
|
-
|
3763
3737
|
declare enum NODE_CARD_STATES {
|
3764
3738
|
LOCKED = "LOCKED",
|
3765
3739
|
NOT_STARTED = "NOT_STARTED",
|
@@ -4022,8 +3996,6 @@ export declare const RadioCard: <IDType extends string | number>({ options, valu
|
|
4022
3996
|
|
4023
3997
|
export declare const RadioInput: <IDType extends string | number>({ options, value, onChange, numColumns, }: IRadioInputProps<IDType>) => JSX.Element;
|
4024
3998
|
|
4025
|
-
export declare const RecapIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
4026
|
-
|
4027
3999
|
export declare const RecentChapters: FC<RecentChaptersProps>;
|
4028
4000
|
|
4029
4001
|
declare interface RecentChaptersProps {
|
@@ -4373,8 +4345,6 @@ declare type TCourseProgramPermissions = {
|
|
4373
4345
|
|
4374
4346
|
declare type TCourseStream = (typeof COURSE_STREAMS)[keyof typeof COURSE_STREAMS];
|
4375
4347
|
|
4376
|
-
declare type TCourseType = keyof typeof NODE_CARD_COURSE_TYPES;
|
4377
|
-
|
4378
4348
|
declare type TCreateOnPresubmit = (options: TOnPreSubmitOptions) => void;
|
4379
4349
|
|
4380
4350
|
declare type TCueCanvasChangeDataObject = Record<string, TDrawingData[]>;
|
@@ -4522,11 +4492,6 @@ export declare type TInclassMessage = {
|
|
4522
4492
|
eventPayload: {
|
4523
4493
|
worksheetId: string;
|
4524
4494
|
};
|
4525
|
-
} | {
|
4526
|
-
eventName: typeof EVENTS.HOMEWORK_UNASSIGN;
|
4527
|
-
eventPayload: {
|
4528
|
-
studentId: string;
|
4529
|
-
};
|
4530
4495
|
} | {
|
4531
4496
|
eventName: typeof EVENTS.CHAPTER_UPDATED;
|
4532
4497
|
eventPayload: {
|