@cuemath/leap 3.1.2-beta-0.6 → 3.1.2-beta-0.7

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.
@@ -1,7 +1,7 @@
1
1
  import { jsxs as r, Fragment as K, jsx as o } from "react/jsx-runtime";
2
- import Q, { memo as Y, useCallback as h } from "react";
2
+ import Q, { memo as Y, useCallback as p } from "react";
3
3
  import Z from "../../../hooks/use-lazy-ref.js";
4
- import u from "../../../ui/buttons/text-button/text-button.js";
4
+ import h from "../../../ui/buttons/text-button/text-button.js";
5
5
  import d from "../../../ui/layout/flex-view.js";
6
6
  import ee from "../../../ui/separator/separator.js";
7
7
  import te from "../../../ui/text/text.js";
@@ -9,42 +9,42 @@ import oe from "./milestone-widget/milestone-widget.js";
9
9
  import ne from "./no-active-milestone/no-active-milestone.js";
10
10
  import ie from "../../../../node_modules/uuid/dist/esm-browser/v4.js";
11
11
  const ue = Y(
12
- ({ milestones: e, studentId: A, milestoneType: a, ...g }) => {
12
+ ({ milestones: e, studentId: u, milestoneType: s, ...A }) => {
13
13
  const {
14
14
  canCreatePlan: m,
15
- isClassOngoing: C,
16
- isFiltersAdded: M,
17
- isStudentPresent: T,
18
- onAddChapter: N,
15
+ isClassOngoing: g,
16
+ isFiltersAdded: C,
17
+ isStudentPresent: M,
18
+ onAddChapter: T,
19
19
  onAddOutcome: n,
20
- onChapterClick: v,
20
+ onChapterClick: N,
21
21
  onCreatePlan: i,
22
- onDelete: R,
23
- onDraftPublish: w,
24
- onEdit: x,
25
- onCreateMilestoneTest: b,
26
- onNodeAttempt: D,
27
- onNodeView: $,
28
- onNodeReview: P,
29
- onNodeReattempt: F,
30
- onNodeReset: I,
31
- onNodeUnassign: k,
32
- onAssignResources: E,
33
- onTestPreview: S,
34
- onTestReview: V,
35
- onTestStart: _,
36
- activeMilestoneId: j,
37
- activeTabId: z,
38
- onWidgetTabSelection: B,
22
+ onDelete: v,
23
+ onDraftPublish: R,
24
+ onEdit: w,
25
+ onCreateMilestoneTest: x,
26
+ onNodeAttempt: b,
27
+ onNodeView: D,
28
+ onNodeReview: $,
29
+ onNodeReattempt: P,
30
+ onNodeReset: F,
31
+ onNodeUnassign: I,
32
+ onAssignResources: k,
33
+ onTestPreview: E,
34
+ onTestReview: S,
35
+ onTestStart: V,
36
+ activeMilestoneId: _,
37
+ activeTabId: j,
38
+ onWidgetTabSelection: z,
39
39
  studentName: c,
40
- teacherName: G,
41
- parentName: y,
42
- userType: l,
43
- courseStream: H,
44
- onNodeAssignAsHomework: L
45
- } = g, s = a === "ACTIVE", f = a === "DRAFT", p = Z(ie), O = h(() => {
46
- i == null || i(p);
47
- }, [i, p]), W = h(() => {
40
+ teacherName: B,
41
+ parentName: G,
42
+ userType: a,
43
+ courseStream: y,
44
+ onNodeAssignAsHomework: H
45
+ } = A, l = s === "ACTIVE", L = s === "DRAFT", f = Z(ie), O = p(() => {
46
+ i == null || i(f);
47
+ }, [i, f]), W = p(() => {
48
48
  n == null || n();
49
49
  }, [n]);
50
50
  if (!e) return null;
@@ -54,26 +54,26 @@ const ue = Y(
54
54
  (t) => t.milestone_state === "DRAFT"
55
55
  );
56
56
  return /* @__PURE__ */ r(K, { children: [
57
- s && !X && /* @__PURE__ */ o(d, { $marginBottom: 40, children: /* @__PURE__ */ o(
57
+ l && !X && /* @__PURE__ */ o(d, { $marginBottom: 40, children: /* @__PURE__ */ o(
58
58
  ne,
59
59
  {
60
60
  canCreatePlan: m,
61
61
  isDraftMilestonePresent: U,
62
- isFiltersAdded: M,
62
+ isFiltersAdded: C,
63
63
  onCreatePlan: i,
64
64
  studentName: c,
65
- userType: l
65
+ userType: a
66
66
  }
67
67
  ) }),
68
- s && /* @__PURE__ */ r(d, { $flexDirection: "row", $justifyContent: "space-between", $marginBottom: 16, children: [
68
+ l && /* @__PURE__ */ r(d, { $flexDirection: "row", $justifyContent: "space-between", $marginBottom: 16, children: [
69
69
  /* @__PURE__ */ r(te, { $renderAs: "ac4", children: [
70
70
  "Goals (",
71
71
  e.length,
72
72
  ")"
73
73
  ] }),
74
- l === "TEACHER" && /* @__PURE__ */ r(d, { $flexDirection: "row", $flexGapX: 1, children: [
74
+ a === "TEACHER" && /* @__PURE__ */ r(d, { $flexDirection: "row", $flexGapX: 1, children: [
75
75
  /* @__PURE__ */ o(
76
- u,
76
+ h,
77
77
  {
78
78
  label: "Create Goal",
79
79
  size: "small",
@@ -81,47 +81,47 @@ const ue = Y(
81
81
  disabled: !m
82
82
  }
83
83
  ),
84
- /* @__PURE__ */ o(u, { label: "Add Milestone", size: "small", onClick: W })
84
+ /* @__PURE__ */ o(h, { label: "Add Milestone", size: "small", onClick: W })
85
85
  ] })
86
86
  ] }),
87
- (f || s) && e.map((t, q) => {
87
+ e.map((t, q) => {
88
88
  const { id: J } = t;
89
89
  return /* @__PURE__ */ r(Q.Fragment, { children: [
90
90
  /* @__PURE__ */ o(
91
91
  oe,
92
92
  {
93
93
  milestone: t,
94
- studentId: A,
94
+ studentId: u,
95
95
  studentName: c,
96
- parentName: y,
97
- teacherName: G,
98
- userType: l,
96
+ parentName: G,
97
+ teacherName: B,
98
+ userType: a,
99
99
  onAddOutcome: n,
100
- onChapterClick: v,
101
- isMilestoneActive: s || f,
102
- milestoneType: a,
103
- onEdit: x,
104
- onCreateMilestoneTest: b,
105
- onAddChapter: N,
106
- onDelete: R,
107
- onDraftPublish: w,
108
- isClassOngoing: C,
109
- isStudentPresent: T,
110
- onAssignResources: E,
111
- onNodeAttempt: D,
112
- onNodeView: $,
113
- onNodeReview: P,
114
- onNodeReattempt: F,
115
- onNodeReset: I,
116
- onNodeUnassign: k,
117
- onNodeAssignAsHomework: L,
118
- onTestPreview: S,
119
- onTestReview: V,
120
- onTestStart: _,
121
- courseStream: H,
122
- activeMilestoneId: j,
123
- activeTabId: z,
124
- onWidgetTabSelection: B
100
+ onChapterClick: N,
101
+ isMilestoneActive: l || L,
102
+ milestoneType: s,
103
+ onEdit: w,
104
+ onCreateMilestoneTest: x,
105
+ onAddChapter: T,
106
+ onDelete: v,
107
+ onDraftPublish: R,
108
+ isClassOngoing: g,
109
+ isStudentPresent: M,
110
+ onAssignResources: k,
111
+ onNodeAttempt: b,
112
+ onNodeView: D,
113
+ onNodeReview: $,
114
+ onNodeReattempt: P,
115
+ onNodeReset: F,
116
+ onNodeUnassign: I,
117
+ onNodeAssignAsHomework: H,
118
+ onTestPreview: E,
119
+ onTestReview: S,
120
+ onTestStart: V,
121
+ courseStream: y,
122
+ activeMilestoneId: _,
123
+ activeTabId: j,
124
+ onWidgetTabSelection: z
125
125
  }
126
126
  ),
127
127
  q !== e.length - 1 && /* @__PURE__ */ o(ee, { heightX: 2 })
@@ -1 +1 @@
1
- {"version":3,"file":"milestone-list.js","sources":["../../../../../src/features/milestone/milestone-list-container/milestone-list/milestone-list.tsx"],"sourcesContent":["import type { IMilestoneListProps } from './milestone-list-types';\n\nimport React, { memo, useCallback } from 'react';\nimport { v4 as uuidv4 } from 'uuid';\n\nimport useLazyRef from '../../../hooks/use-lazy-ref';\nimport TextButton from '../../../ui/buttons/text-button/text-button';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport MilestoneWidget from './milestone-widget/milestone-widget';\nimport NoActiveMilestone from './no-active-milestone/no-active-milestone';\n\nconst MilestoneList: React.FC<IMilestoneListProps> = memo(\n ({ milestones, studentId, milestoneType, ...restMilestoneListProps }) => {\n const {\n canCreatePlan,\n isClassOngoing,\n isFiltersAdded,\n isStudentPresent,\n onAddChapter,\n onAddOutcome,\n onChapterClick,\n onCreatePlan,\n onDelete,\n onDraftPublish,\n onEdit,\n onCreateMilestoneTest,\n onNodeAttempt,\n onNodeView,\n onNodeReview,\n onNodeReattempt,\n onNodeReset,\n onNodeUnassign,\n onAssignResources,\n onTestPreview,\n onTestReview,\n onTestStart,\n activeMilestoneId,\n activeTabId,\n onWidgetTabSelection,\n studentName,\n teacherName,\n parentName,\n userType,\n courseStream,\n onNodeAssignAsHomework,\n } = restMilestoneListProps;\n\n const isMilestoneActive = milestoneType === 'ACTIVE';\n const isDraftMilestone = milestoneType === 'DRAFT';\n const temporaryMilestoneId = useLazyRef(uuidv4);\n\n const handleCreatePlan = useCallback(() => {\n onCreatePlan?.(temporaryMilestoneId);\n }, [onCreatePlan, temporaryMilestoneId]);\n\n const handleOnAddOutcome = useCallback(() => {\n onAddOutcome?.();\n }, [onAddOutcome]);\n\n if (!milestones) return null;\n\n const activeMilestonePresent = milestones.some(\n milestone => milestone.milestone_state === 'ACTIVE',\n );\n const draftMilestonePresent = milestones.some(\n milestone => milestone.milestone_state === 'DRAFT',\n );\n\n return (\n <>\n {isMilestoneActive && !activeMilestonePresent && (\n <FlexView $marginBottom={40}>\n <NoActiveMilestone\n canCreatePlan={canCreatePlan}\n isDraftMilestonePresent={draftMilestonePresent}\n isFiltersAdded={isFiltersAdded}\n onCreatePlan={onCreatePlan}\n studentName={studentName}\n userType={userType}\n />\n </FlexView>\n )}\n\n {isMilestoneActive && (\n <FlexView $flexDirection=\"row\" $justifyContent=\"space-between\" $marginBottom={16}>\n <Text $renderAs=\"ac4\">Goals ({milestones.length})</Text>\n\n {userType === 'TEACHER' && (\n <FlexView $flexDirection=\"row\" $flexGapX={1}>\n <TextButton\n label=\"Create Goal\"\n size=\"small\"\n onClick={handleCreatePlan}\n disabled={!canCreatePlan}\n />\n <TextButton label=\"Add Milestone\" size=\"small\" onClick={handleOnAddOutcome} />\n </FlexView>\n )}\n </FlexView>\n )}\n\n {(isDraftMilestone || isMilestoneActive) &&\n milestones.map((milestone, idx) => {\n const { id: milestoneId } = milestone;\n\n return (\n <React.Fragment key={`milestone=${milestoneId}`}>\n <MilestoneWidget\n milestone={milestone}\n studentId={studentId}\n studentName={studentName}\n parentName={parentName}\n teacherName={teacherName}\n userType={userType}\n onAddOutcome={onAddOutcome}\n onChapterClick={onChapterClick}\n isMilestoneActive={isMilestoneActive || isDraftMilestone}\n milestoneType={milestoneType}\n onEdit={onEdit}\n onCreateMilestoneTest={onCreateMilestoneTest}\n onAddChapter={onAddChapter}\n onDelete={onDelete}\n onDraftPublish={onDraftPublish}\n isClassOngoing={isClassOngoing}\n isStudentPresent={isStudentPresent}\n onAssignResources={onAssignResources}\n onNodeAttempt={onNodeAttempt}\n onNodeView={onNodeView}\n onNodeReview={onNodeReview}\n onNodeReattempt={onNodeReattempt}\n onNodeReset={onNodeReset}\n onNodeUnassign={onNodeUnassign}\n onNodeAssignAsHomework={onNodeAssignAsHomework}\n onTestPreview={onTestPreview}\n onTestReview={onTestReview}\n onTestStart={onTestStart}\n courseStream={courseStream}\n activeMilestoneId={activeMilestoneId}\n activeTabId={activeTabId}\n onWidgetTabSelection={onWidgetTabSelection}\n />\n {idx !== milestones.length - 1 && <Separator heightX={2} />}\n </React.Fragment>\n );\n })}\n </>\n );\n },\n);\n\nexport default MilestoneList;\n"],"names":["MilestoneList","memo","milestones","studentId","milestoneType","restMilestoneListProps","canCreatePlan","isClassOngoing","isFiltersAdded","isStudentPresent","onAddChapter","onAddOutcome","onChapterClick","onCreatePlan","onDelete","onDraftPublish","onEdit","onCreateMilestoneTest","onNodeAttempt","onNodeView","onNodeReview","onNodeReattempt","onNodeReset","onNodeUnassign","onAssignResources","onTestPreview","onTestReview","onTestStart","activeMilestoneId","activeTabId","onWidgetTabSelection","studentName","teacherName","parentName","userType","courseStream","onNodeAssignAsHomework","isMilestoneActive","isDraftMilestone","temporaryMilestoneId","useLazyRef","uuidv4","handleCreatePlan","useCallback","handleOnAddOutcome","activeMilestonePresent","milestone","draftMilestonePresent","jsxs","Fragment","jsx","FlexView","NoActiveMilestone","Text","TextButton","idx","milestoneId","React","MilestoneWidget","Separator"],"mappings":";;;;;;;;;;AAaA,MAAMA,KAA+CC;AAAA,EACnD,CAAC,EAAE,YAAAC,GAAY,WAAAC,GAAW,eAAAC,GAAe,GAAGC,QAA6B;AACjE,UAAA;AAAA,MACJ,eAAAC;AAAA,MACA,gBAAAC;A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AA,cACA,cAAAC;AAAA,cACA,iBAAAC;AAAA,cACA,aAAAC;AAAA,cACA,gBAAAC;AAAA,cACA,wBAAAa;AAAA,cACA,eAAAX;AAAA,cACA,cAAAC;AAAA,cACA,aAAAC;AAAA,cACA,cAAAQ;AAAA,cACA,mBAAAP;AAAA,cACA,aAAAC;AAAA,cACA,sBAAAC;AAAA,YAAA;AAAA,UACF;AAAA,UACCyB,MAAQrD,EAAW,SAAS,KAAM,gBAAAgD,EAAAS,IAAA,EAAU,SAAS,GAAG;AAAA,QAnCtC,EAAA,GAAA,aAAaH,CAAW,EAoC7C;AAAA,MAAA,CAEH;AAAA,IACL,EAAA,CAAA;AAAA,EAEJ;AACF;"}
1
+ {"version":3,"file":"milestone-list.js","sources":["../../../../../src/features/milestone/milestone-list-container/milestone-list/milestone-list.tsx"],"sourcesContent":["import type { IMilestoneListProps } from './milestone-list-types';\n\nimport React, { memo, useCallback } from 'react';\nimport { v4 as uuidv4 } from 'uuid';\n\nimport useLazyRef from '../../../hooks/use-lazy-ref';\nimport TextButton from '../../../ui/buttons/text-button/text-button';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport MilestoneWidget from './milestone-widget/milestone-widget';\nimport NoActiveMilestone from './no-active-milestone/no-active-milestone';\n\nconst MilestoneList: React.FC<IMilestoneListProps> = memo(\n ({ milestones, studentId, milestoneType, ...restMilestoneListProps }) => {\n const {\n canCreatePlan,\n isClassOngoing,\n isFiltersAdded,\n isStudentPresent,\n onAddChapter,\n onAddOutcome,\n onChapterClick,\n onCreatePlan,\n onDelete,\n onDraftPublish,\n onEdit,\n onCreateMilestoneTest,\n onNodeAttempt,\n onNodeView,\n onNodeReview,\n onNodeReattempt,\n onNodeReset,\n onNodeUnassign,\n onAssignResources,\n onTestPreview,\n onTestReview,\n onTestStart,\n activeMilestoneId,\n activeTabId,\n onWidgetTabSelection,\n studentName,\n teacherName,\n parentName,\n userType,\n courseStream,\n onNodeAssignAsHomework,\n } = restMilestoneListProps;\n\n const isMilestoneActive = milestoneType === 'ACTIVE';\n const isDraftMilestone = milestoneType === 'DRAFT';\n const temporaryMilestoneId = useLazyRef(uuidv4);\n\n const handleCreatePlan = useCallback(() => {\n onCreatePlan?.(temporaryMilestoneId);\n }, [onCreatePlan, temporaryMilestoneId]);\n\n const handleOnAddOutcome = useCallback(() => {\n onAddOutcome?.();\n }, [onAddOutcome]);\n\n if (!milestones) return null;\n\n const activeMilestonePresent = milestones.some(\n milestone => milestone.milestone_state === 'ACTIVE',\n );\n const draftMilestonePresent = milestones.some(\n milestone => milestone.milestone_state === 'DRAFT',\n );\n\n return (\n <>\n {isMilestoneActive && !activeMilestonePresent && (\n <FlexView $marginBottom={40}>\n <NoActiveMilestone\n canCreatePlan={canCreatePlan}\n isDraftMilestonePresent={draftMilestonePresent}\n isFiltersAdded={isFiltersAdded}\n onCreatePlan={onCreatePlan}\n studentName={studentName}\n userType={userType}\n />\n </FlexView>\n )}\n\n {isMilestoneActive && (\n <FlexView $flexDirection=\"row\" $justifyContent=\"space-between\" $marginBottom={16}>\n <Text $renderAs=\"ac4\">Goals ({milestones.length})</Text>\n\n {userType === 'TEACHER' && (\n <FlexView $flexDirection=\"row\" $flexGapX={1}>\n <TextButton\n label=\"Create Goal\"\n size=\"small\"\n onClick={handleCreatePlan}\n disabled={!canCreatePlan}\n />\n <TextButton label=\"Add Milestone\" size=\"small\" onClick={handleOnAddOutcome} />\n </FlexView>\n )}\n </FlexView>\n )}\n\n {milestones.map((milestone, idx) => {\n const { id: milestoneId } = milestone;\n\n return (\n <React.Fragment key={`milestone=${milestoneId}`}>\n <MilestoneWidget\n milestone={milestone}\n studentId={studentId}\n studentName={studentName}\n parentName={parentName}\n teacherName={teacherName}\n userType={userType}\n onAddOutcome={onAddOutcome}\n onChapterClick={onChapterClick}\n isMilestoneActive={isMilestoneActive || isDraftMilestone}\n milestoneType={milestoneType}\n onEdit={onEdit}\n onCreateMilestoneTest={onCreateMilestoneTest}\n onAddChapter={onAddChapter}\n onDelete={onDelete}\n onDraftPublish={onDraftPublish}\n isClassOngoing={isClassOngoing}\n isStudentPresent={isStudentPresent}\n onAssignResources={onAssignResources}\n onNodeAttempt={onNodeAttempt}\n onNodeView={onNodeView}\n onNodeReview={onNodeReview}\n onNodeReattempt={onNodeReattempt}\n onNodeReset={onNodeReset}\n onNodeUnassign={onNodeUnassign}\n onNodeAssignAsHomework={onNodeAssignAsHomework}\n onTestPreview={onTestPreview}\n onTestReview={onTestReview}\n onTestStart={onTestStart}\n courseStream={courseStream}\n activeMilestoneId={activeMilestoneId}\n activeTabId={activeTabId}\n onWidgetTabSelection={onWidgetTabSelection}\n />\n {idx !== milestones.length - 1 && <Separator heightX={2} />}\n </React.Fragment>\n );\n })}\n </>\n );\n },\n);\n\nexport default MilestoneList;\n"],"names":["MilestoneList","memo","milestones","studentId","milestoneType","restMilestoneListProps","canCreatePlan","isClassOngoing","isFiltersAdded","isStudentPresent","onAddChapter","onAddOutcome","onChapterClick","onCreatePlan","onDelete","onDraftPublish","onEdit","onCreateMilestoneTest","onNodeAttempt","onNodeView","onNodeReview","onNodeReattempt","onNodeReset","onNodeUnassign","onAssignResources","onTestPreview","onTestReview","onTestStart","activeMilestoneId","activeTabId","onWidgetTabSelection","studentName","teacherName","parentName","userType","courseStream","onNodeAssignAsHomework","isMilestoneActive","isDraftMilestone","temporaryMilestoneId","useLazyRef","uuidv4","handleCreatePlan","useCallback","handleOnAddOutcome","activeMilestonePresent","milestone","draftMilestonePresent","jsxs","Fragment","jsx","FlexView","NoActiveMilestone","Text","TextButton","idx","milestoneId","React","MilestoneWidget","Separator"],"mappings":";;;;;;;;;;AAaA,MAAMA,KAA+CC;AAAA,EACnD,CAAC,EAAE,YAAAC,GAAY,WAAAC,GAAW,eAAAC,GAAe,GAAGC,QAA6B;AACjE,UAAA;AAAA,MACJ,eAAAC;AAAA,MACA,gBAAAC;AAAA,MACA,gBAAAC;AAAA,MACA,k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aAAAC;AAAA,cACA,gBAAAC;AAAA,cACA,wBAAAa;AAAA,cACA,eAAAX;AAAA,cACA,cAAAC;AAAA,cACA,aAAAC;AAAA,cACA,cAAAQ;AAAA,cACA,mBAAAP;AAAA,cACA,aAAAC;AAAA,cACA,sBAAAC;AAAA,YAAA;AAAA,UACF;AAAA,UACCyB,MAAQrD,EAAW,SAAS,KAAM,gBAAAgD,EAAAS,IAAA,EAAU,SAAS,GAAG;AAAA,QAnCtC,EAAA,GAAA,aAAaH,CAAW,EAoC7C;AAAA,MAAA,CAEH;AAAA,IACH,EAAA,CAAA;AAAA,EAEJ;AACF;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cuemath/leap",
3
- "version": "3.1.2-beta-0.6",
3
+ "version": "3.1.2-beta-0.7",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"