@cuemath/leap 2.8.61-as17 → 2.8.61-as2
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 +99 -176
- 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 +2 -40
- 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";
|
@@ -497,13 +496,10 @@ export declare const HomeworkCardList: React_2.FC<HWCardListProps>;
|
|
497
496
|
|
498
497
|
declare const hues: readonly ["YELLOW", "ORANGE", "PURPLE", "GREEN", "BLUE"];
|
499
498
|
|
500
|
-
declare interface HWCardListProps
|
499
|
+
declare interface HWCardListProps {
|
501
500
|
userType: TUserTypes;
|
502
501
|
studentId: string;
|
503
502
|
stream: string;
|
504
|
-
onTestPreview?: (sheetData: INodeDataProps, milestoneId?: string) => void;
|
505
|
-
onTestStart?: (sheetData: INodeDataProps) => void;
|
506
|
-
onTestReview?: (sheetData: INodeDataProps, milestoneId?: string) => void;
|
507
503
|
}
|
508
504
|
|
509
505
|
declare interface IAccordionSectionProps {
|
@@ -1319,11 +1315,6 @@ declare interface IGradeSelectorProps {
|
|
1319
1315
|
layoutAlignment?: 'center' | 'auto';
|
1320
1316
|
}
|
1321
1317
|
|
1322
|
-
export declare interface IHomeworkData extends INodeDataProps {
|
1323
|
-
homework_id: string;
|
1324
|
-
chapter_name: string;
|
1325
|
-
}
|
1326
|
-
|
1327
1318
|
declare interface IIconButtonProps extends Omit<IButtonProps, 'label' | 'shape' | 'widthX' | 'width' | 'iconPosition' | 'alignSelf' | 'analyticsLabel' | 'renderAs'>, Required<Pick<IClickableAnalyticsProps, 'analyticsLabel'>> {
|
1328
1319
|
Icon: React.FC<React.SVGProps<SVGSVGElement>>;
|
1329
1320
|
customBgColor?: TColorNames;
|
@@ -2150,7 +2141,7 @@ declare interface INodeCardCallbacks {
|
|
2150
2141
|
onNodeAttemptLocationChange?: (nodeData: INodeDataProps) => void;
|
2151
2142
|
onNodeMarkAsDone?: (nodeData: INodeDataProps) => void;
|
2152
2143
|
onNodeReset?: (nodeData: INodeDataProps, milestoneId?: string) => void;
|
2153
|
-
onNodeUnassign?: (nodeData: INodeDataProps
|
2144
|
+
onNodeUnassign?: (nodeData: INodeDataProps, milestoneId?: string) => void;
|
2154
2145
|
}
|
2155
2146
|
|
2156
2147
|
export declare interface INodeDataProps {
|
@@ -2160,7 +2151,6 @@ export declare interface INodeDataProps {
|
|
2160
2151
|
card_header: string;
|
2161
2152
|
chapter_id: string;
|
2162
2153
|
complete_status: boolean;
|
2163
|
-
course_type: TCourseType;
|
2164
2154
|
desmos_calculator_enabled: boolean;
|
2165
2155
|
due_date_ts: number | null;
|
2166
2156
|
is_lesson_v3_enabled: boolean;
|
@@ -2184,9 +2174,6 @@ export declare interface INodeDataProps {
|
|
2184
2174
|
total_questions: number | null;
|
2185
2175
|
unlocked_on_ts: number | null;
|
2186
2176
|
items?: TNodeDataTestItemsDataProps[];
|
2187
|
-
user_milestone_id?: string;
|
2188
|
-
user_attempt_id: string | null;
|
2189
|
-
subtext: string | null;
|
2190
2177
|
}
|
2191
2178
|
|
2192
2179
|
declare interface INodePermissions {
|
@@ -2996,7 +2983,6 @@ declare interface ITestsListProps {
|
|
2996
2983
|
isDraftMilestone?: boolean;
|
2997
2984
|
isChaptersAvailable?: boolean;
|
2998
2985
|
canUpdatePlan?: boolean;
|
2999
|
-
onNodeReattempt?: (sheetData: INodeDataProps, milestoneId?: string) => void;
|
3000
2986
|
onTestPreview?: (sheetData: INodeDataProps, milestoneId: string) => void;
|
3001
2987
|
onTestStart?: (sheetData: INodeDataProps) => void;
|
3002
2988
|
onTestReview?: (sheetData: INodeDataProps, milestoneId: string) => void;
|
@@ -3658,7 +3644,6 @@ export declare const LOTTIE: {
|
|
3658
3644
|
COLOR_1: string;
|
3659
3645
|
COLOR_2: string;
|
3660
3646
|
COLOR_3: string;
|
3661
|
-
COMPETITIVE_ARENA: string;
|
3662
3647
|
DIFFICULT: string;
|
3663
3648
|
EASY: string;
|
3664
3649
|
ELITE_CIRCLE: string;
|
@@ -3671,7 +3656,6 @@ export declare const LOTTIE: {
|
|
3671
3656
|
GOLD_3: string;
|
3672
3657
|
INFINITE_BUTTON_BG: string;
|
3673
3658
|
INFINITE_BUTTON_SYMBOL: string;
|
3674
|
-
LEARN: string;
|
3675
3659
|
LEVELUP_RINGS: string;
|
3676
3660
|
MEDIUM: string;
|
3677
3661
|
NUDGE_TAP: string;
|
@@ -3691,12 +3675,8 @@ export declare const LOTTIE: {
|
|
3691
3675
|
POINT50: string;
|
3692
3676
|
POINT5: string;
|
3693
3677
|
POINT60: string;
|
3694
|
-
PRACTICE: string;
|
3695
3678
|
PROFICIENT1X: string;
|
3696
|
-
PROJECT: string;
|
3697
|
-
PUZZLE: string;
|
3698
3679
|
RANDOM_MODE_SEGMENT_LOTTIE: string;
|
3699
|
-
RECAP: string;
|
3700
3680
|
SEQUENCE_MODE_SEGMENT_LOTTIE: string;
|
3701
3681
|
SILVER_1: string;
|
3702
3682
|
SILVER_2: string;
|
@@ -3709,12 +3689,10 @@ export declare const LOTTIE: {
|
|
3709
3689
|
TABLE_SEGMENT_STAR: string;
|
3710
3690
|
TARGET_ACHIEVED_TEXT: string;
|
3711
3691
|
TEACHER_VALIDATION: string;
|
3712
|
-
TEST: string;
|
3713
3692
|
TOTAL_STREAK: string;
|
3714
3693
|
TOTAL_TIME: string;
|
3715
3694
|
TOTAL_TIME_SPENT: string;
|
3716
3695
|
TOURNAMENT_RIPPLE: string;
|
3717
|
-
VIDEO: string;
|
3718
3696
|
};
|
3719
3697
|
|
3720
3698
|
export declare const LPARChapter: FC<ILPARChapterProps>;
|
@@ -3753,13 +3731,6 @@ export declare const Next2Icon: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
3753
3731
|
|
3754
3732
|
export declare const NextIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
3755
3733
|
|
3756
|
-
declare enum NODE_CARD_COURSE_TYPES {
|
3757
|
-
PROGRAM = "PROGRAM",
|
3758
|
-
REMEDIAL = "REMEDIAL",
|
3759
|
-
TEST_SERIES = "TEST_SERIES",
|
3760
|
-
EXAM = "EXAM"
|
3761
|
-
}
|
3762
|
-
|
3763
3734
|
declare enum NODE_CARD_STATES {
|
3764
3735
|
LOCKED = "LOCKED",
|
3765
3736
|
NOT_STARTED = "NOT_STARTED",
|
@@ -4022,8 +3993,6 @@ export declare const RadioCard: <IDType extends string | number>({ options, valu
|
|
4022
3993
|
|
4023
3994
|
export declare const RadioInput: <IDType extends string | number>({ options, value, onChange, numColumns, }: IRadioInputProps<IDType>) => JSX.Element;
|
4024
3995
|
|
4025
|
-
export declare const RecapIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
4026
|
-
|
4027
3996
|
export declare const RecentChapters: FC<RecentChaptersProps>;
|
4028
3997
|
|
4029
3998
|
declare interface RecentChaptersProps {
|
@@ -4373,8 +4342,6 @@ declare type TCourseProgramPermissions = {
|
|
4373
4342
|
|
4374
4343
|
declare type TCourseStream = (typeof COURSE_STREAMS)[keyof typeof COURSE_STREAMS];
|
4375
4344
|
|
4376
|
-
declare type TCourseType = keyof typeof NODE_CARD_COURSE_TYPES;
|
4377
|
-
|
4378
4345
|
declare type TCreateOnPresubmit = (options: TOnPreSubmitOptions) => void;
|
4379
4346
|
|
4380
4347
|
declare type TCueCanvasChangeDataObject = Record<string, TDrawingData[]>;
|
@@ -4522,11 +4489,6 @@ export declare type TInclassMessage = {
|
|
4522
4489
|
eventPayload: {
|
4523
4490
|
worksheetId: string;
|
4524
4491
|
};
|
4525
|
-
} | {
|
4526
|
-
eventName: typeof EVENTS.HOMEWORK_UNASSIGN;
|
4527
|
-
eventPayload: {
|
4528
|
-
studentId: string;
|
4529
|
-
};
|
4530
4492
|
} | {
|
4531
4493
|
eventName: typeof EVENTS.CHAPTER_UPDATED;
|
4532
4494
|
eventPayload: {
|