@cuemath/leap 3.3.7-j1 → 3.3.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.
Files changed (32) hide show
  1. package/dist/features/ui/inputs/base-select-input/select-section/select-section.js +12 -11
  2. package/dist/features/ui/inputs/base-select-input/select-section/select-section.js.map +1 -1
  3. package/dist/index.d.ts +14 -17
  4. package/dist/index.js +170 -172
  5. package/dist/index.js.map +1 -1
  6. package/dist/node_modules/query-string/base.js +1 -1
  7. package/dist/node_modules/query-string/node_modules/decode-uri-component/index.js.map +1 -0
  8. package/dist/node_modules/uuid/dist/esm-browser/regex.js +5 -0
  9. package/dist/node_modules/uuid/dist/esm-browser/regex.js.map +1 -0
  10. package/dist/node_modules/uuid/dist/esm-browser/rng.js +2 -3
  11. package/dist/node_modules/uuid/dist/esm-browser/rng.js.map +1 -1
  12. package/dist/node_modules/uuid/dist/esm-browser/stringify.js +10 -6
  13. package/dist/node_modules/uuid/dist/esm-browser/stringify.js.map +1 -1
  14. package/dist/node_modules/uuid/dist/esm-browser/v4.js +9 -12
  15. package/dist/node_modules/uuid/dist/esm-browser/v4.js.map +1 -1
  16. package/dist/node_modules/uuid/dist/esm-browser/validate.js +8 -0
  17. package/dist/node_modules/uuid/dist/esm-browser/validate.js.map +1 -0
  18. package/package.json +1 -1
  19. package/dist/features/parent-dashboard/modals/student-profile-summary/api/get-student-profile-summary.js +0 -9
  20. package/dist/features/parent-dashboard/modals/student-profile-summary/api/get-student-profile-summary.js.map +0 -1
  21. package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary-helpers.js +0 -30
  22. package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary-helpers.js.map +0 -1
  23. package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary-styled.js +0 -13
  24. package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary-styled.js.map +0 -1
  25. package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary.js +0 -77
  26. package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary.js.map +0 -1
  27. package/dist/features/parent-dashboard/modals/trial-report/trial-report.js +0 -21
  28. package/dist/features/parent-dashboard/modals/trial-report/trial-report.js.map +0 -1
  29. package/dist/node_modules/decode-uri-component/index.js.map +0 -1
  30. package/dist/node_modules/uuid/dist/esm-browser/native.js +0 -7
  31. package/dist/node_modules/uuid/dist/esm-browser/native.js.map +0 -1
  32. /package/dist/node_modules/{decode-uri-component → query-string/node_modules/decode-uri-component}/index.js +0 -0
@@ -1,8 +1,8 @@
1
- import { jsx as o, jsxs as h } from "react/jsx-runtime";
2
- import { memo as u, useCallback as l } from "react";
3
- import b from "../../../section-list/section-list.js";
1
+ import { jsx as o, jsxs as u } from "react/jsx-runtime";
2
+ import { memo as b, useCallback as l } from "react";
3
+ import f from "../../../section-list/section-list.js";
4
4
  import d from "../../../text/text.js";
5
- import { SelectOptionHeader as f, SelectOptionWrapper as A } from "./select-section-styled.js";
5
+ import { SelectOptionHeader as x, SelectOptionWrapper as A } from "./select-section-styled.js";
6
6
  const S = ({
7
7
  sectionOptions: a,
8
8
  theme: m,
@@ -10,12 +10,12 @@ const S = ({
10
10
  onChange: c
11
11
  }) => {
12
12
  const t = m === "dark", p = l(
13
- (e) => /* @__PURE__ */ o(f, { $gutterX: 1, children: /* @__PURE__ */ o(d, { $renderAs: "ac4", $color: t ? "WHITE_T_38" : "BLACK_T_38", children: e.title }) }),
13
+ (e) => /* @__PURE__ */ o(x, { $gutterX: 1, children: /* @__PURE__ */ o(d, { $renderAs: "ac4", $color: t ? "WHITE_T_38" : "BLACK_T_38", children: e.title }) }),
14
14
  [t]
15
15
  ), T = l(
16
16
  (e) => {
17
- const { id: r, label: $, tag: s } = e, i = r === n;
18
- return /* @__PURE__ */ h(
17
+ const { id: r, label: $, tag: i, textDecoration: h } = e, s = r === n;
18
+ return /* @__PURE__ */ u(
19
19
  A,
20
20
  {
21
21
  className: "base-select-input-option",
@@ -29,12 +29,13 @@ const S = ({
29
29
  /* @__PURE__ */ o(
30
30
  d,
31
31
  {
32
- $renderAs: t ? i ? "ub2-bold" : "ub2" : i ? "body1Medium" : "body1",
32
+ $renderAs: t ? s ? "ub2-bold" : "ub2" : s ? "body1Medium" : "body1",
33
33
  $color: t ? "WHITE_T_87" : "BLACK",
34
+ $textDecoration: h,
34
35
  children: $
35
36
  }
36
37
  ),
37
- s || null
38
+ i || null
38
39
  ]
39
40
  }
40
41
  );
@@ -42,7 +43,7 @@ const S = ({
42
43
  [n, t, c]
43
44
  );
44
45
  return /* @__PURE__ */ o(
45
- b,
46
+ f,
46
47
  {
47
48
  data: a,
48
49
  renderSectionHeader: p,
@@ -50,7 +51,7 @@ const S = ({
50
51
  keyExtractor: ({ id: e }, r) => `${e}_${r}`
51
52
  }
52
53
  );
53
- }, j = u(S);
54
+ }, j = b(S);
54
55
  export {
55
56
  j as default
56
57
  };
@@ -1 +1 @@
1
- {"version":3,"file":"select-section.js","sources":["../../../../../../src/features/ui/inputs/base-select-input/select-section/select-section.tsx"],"sourcesContent":["import type { ISectionOption } from '../../../section-list/section-list-types';\nimport type { ISelectOption } from '../base-select-input-types';\nimport type { ISelectSection } from './select-section-types';\nimport type { ReactElement } from 'react';\n\nimport { memo, useCallback } from 'react';\n\nimport SectionList from '../../../section-list/section-list';\nimport Text from '../../../text/text';\nimport * as Styled from './select-section-styled';\n\nconst SelectSectionComponent = <IDType extends string | number>({\n sectionOptions,\n theme,\n value,\n onChange,\n}: ISelectSection<IDType>): ReactElement => {\n const isDarkTheme = theme === 'dark';\n\n const renderSectionHeader = useCallback(\n (section: ISectionOption<ISelectOption<IDType>>) => {\n return (\n <Styled.SelectOptionHeader $gutterX={1}>\n <Text $renderAs=\"ac4\" $color={isDarkTheme ? 'WHITE_T_38' : 'BLACK_T_38'}>\n {section.title}\n </Text>\n </Styled.SelectOptionHeader>\n );\n },\n [isDarkTheme],\n );\n\n const renderItem = useCallback(\n (dataItem: ISelectOption<IDType>) => {\n const { id, label, tag } = dataItem;\n const selected = id === value;\n const lightThemeRenderAs = selected ? 'body1Medium' : 'body1';\n const darkThemeRenderAs = selected ? 'ub2-bold' : 'ub2';\n const Tag = tag ? (tag as ReactElement) : null;\n\n return (\n <Styled.SelectOptionWrapper\n className=\"base-select-input-option\"\n onClick={() => onChange(id, dataItem)}\n $width=\"100%\"\n $flexDirection=\"row\"\n $justifyContent=\"space-between\"\n $alignItems=\"center\"\n $flexGapX={0.5}\n >\n <Text\n $renderAs={isDarkTheme ? darkThemeRenderAs : lightThemeRenderAs}\n $color={isDarkTheme ? 'WHITE_T_87' : 'BLACK'}\n >\n {label}\n </Text>\n\n {Tag}\n </Styled.SelectOptionWrapper>\n );\n },\n [value, isDarkTheme, onChange],\n );\n\n return (\n <SectionList<ISelectOption<IDType>>\n data={sectionOptions}\n renderSectionHeader={renderSectionHeader}\n renderItem={renderItem}\n keyExtractor={({ id }, idx) => `${id}_${idx}`}\n />\n );\n};\n\nconst SelectSection = memo(SelectSectionComponent) as <IDType extends string | number>(\n props: ISelectSection<IDType>,\n) => ReactElement;\n\nexport default SelectSection;\n"],"names":["SelectSectionComponent","sectionOptions","theme","value","onChange","isDarkTheme","renderSectionHeader","useCallback","section","Styled.SelectOptionHeader","jsx","Text","renderItem","dataItem","id","label","tag","selected","jsxs","Styled.SelectOptionWrapper","SectionList","idx","SelectSection","memo"],"mappings":";;;;;AAWA,MAAMA,IAAyB,CAAiC;AAAA,EAC9D,gBAAAC;AAAA,EACA,OAAAC;AAAA,EACA,OAAAC;AAAA,EACA,UAAAC;AACF,MAA4C;AAC1C,QAAMC,IAAcH,MAAU,QAExBI,IAAsBC;AAAA,IAC1B,CAACC,wBAEIC,GAAA,EAA0B,UAAU,GACnC,UAAC,gBAAAC,EAAAC,GAAA,EAAK,WAAU,OAAM,QAAQN,IAAc,eAAe,cACxD,UAAAG,EAAQ,OACX,EACF,CAAA;AAAA,IAGJ,CAACH,CAAW;AAAA,EAAA,GAGRO,IAAaL;AAAA,IACjB,CAACM,MAAoC;AACnC,YAAM,EAAE,IAAAC,GAAI,OAAAC,GAAO,KAAAC,EAAA,IAAQH,GACrBI,IAAWH,MAAOX;AAMtB,aAAA,gBAAAe;AAAA,QAACC;AAAAA,QAAA;AAAA,UACC,WAAU;AAAA,UACV,SAAS,MAAMf,EAASU,GAAID,CAAQ;AAAA,UACpC,QAAO;AAAA,UACP,gBAAe;AAAA,UACf,iBAAgB;AAAA,UAChB,aAAY;AAAA,UACZ,WAAW;AAAA,UAEX,UAAA;AAAA,YAAA,gBAAAH;AAAA,cAACC;AAAA,cAAA;AAAA,gBACC,WAAWN,IAdSY,IAAW,aAAa,QADvBA,IAAW,gBAAgB;AAAA,gBAgBhD,QAAQZ,IAAc,eAAe;AAAA,gBAEpC,UAAAU;AAAA,cAAA;AAAA,YACH;AAAA,YAjBQC,KAA8B;AAAA,UAmBrC;AAAA,QAAA;AAAA,MAAA;AAAA,IAGP;AAAA,IACA,CAACb,GAAOE,GAAaD,CAAQ;AAAA,EAAA;AAI7B,SAAA,gBAAAM;AAAA,IAACU;AAAA,IAAA;AAAA,MACC,MAAMnB;AAAA,MACN,qBAAAK;AAAA,MACA,YAAAM;AAAA,MACA,cAAc,CAAC,EAAE,IAAAE,KAAMO,MAAQ,GAAGP,CAAE,IAAIO,CAAG;AAAA,IAAA;AAAA,EAAA;AAGjD,GAEMC,IAAgBC,EAAKvB,CAAsB;"}
1
+ {"version":3,"file":"select-section.js","sources":["../../../../../../src/features/ui/inputs/base-select-input/select-section/select-section.tsx"],"sourcesContent":["import type { ISectionOption } from '../../../section-list/section-list-types';\nimport type { ISelectOption } from '../base-select-input-types';\nimport type { ISelectSection } from './select-section-types';\nimport type { ReactElement } from 'react';\n\nimport { memo, useCallback } from 'react';\n\nimport SectionList from '../../../section-list/section-list';\nimport Text from '../../../text/text';\nimport * as Styled from './select-section-styled';\n\nconst SelectSectionComponent = <IDType extends string | number>({\n sectionOptions,\n theme,\n value,\n onChange,\n}: ISelectSection<IDType>): ReactElement => {\n const isDarkTheme = theme === 'dark';\n\n const renderSectionHeader = useCallback(\n (section: ISectionOption<ISelectOption<IDType>>) => {\n return (\n <Styled.SelectOptionHeader $gutterX={1}>\n <Text $renderAs=\"ac4\" $color={isDarkTheme ? 'WHITE_T_38' : 'BLACK_T_38'}>\n {section.title}\n </Text>\n </Styled.SelectOptionHeader>\n );\n },\n [isDarkTheme],\n );\n\n const renderItem = useCallback(\n (dataItem: ISelectOption<IDType>) => {\n const { id, label, tag, textDecoration } = dataItem;\n const selected = id === value;\n const lightThemeRenderAs = selected ? 'body1Medium' : 'body1';\n const darkThemeRenderAs = selected ? 'ub2-bold' : 'ub2';\n const Tag = tag ? (tag as ReactElement) : null;\n\n return (\n <Styled.SelectOptionWrapper\n className=\"base-select-input-option\"\n onClick={() => onChange(id, dataItem)}\n $width=\"100%\"\n $flexDirection=\"row\"\n $justifyContent=\"space-between\"\n $alignItems=\"center\"\n $flexGapX={0.5}\n >\n <Text\n $renderAs={isDarkTheme ? darkThemeRenderAs : lightThemeRenderAs}\n $color={isDarkTheme ? 'WHITE_T_87' : 'BLACK'}\n $textDecoration={textDecoration}\n >\n {label}\n </Text>\n\n {Tag}\n </Styled.SelectOptionWrapper>\n );\n },\n [value, isDarkTheme, onChange],\n );\n\n return (\n <SectionList<ISelectOption<IDType>>\n data={sectionOptions}\n renderSectionHeader={renderSectionHeader}\n renderItem={renderItem}\n keyExtractor={({ id }, idx) => `${id}_${idx}`}\n />\n );\n};\n\nconst SelectSection = memo(SelectSectionComponent) as <IDType extends string | number>(\n props: ISelectSection<IDType>,\n) => ReactElement;\n\nexport default SelectSection;\n"],"names":["SelectSectionComponent","sectionOptions","theme","value","onChange","isDarkTheme","renderSectionHeader","useCallback","section","Styled.SelectOptionHeader","jsx","Text","renderItem","dataItem","id","label","tag","textDecoration","selected","jsxs","Styled.SelectOptionWrapper","SectionList","idx","SelectSection","memo"],"mappings":";;;;;AAWA,MAAMA,IAAyB,CAAiC;A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gBC,EAAKxB,CAAsB;"}
package/dist/index.d.ts CHANGED
@@ -2424,7 +2424,7 @@ declare interface IMilestoneCardPermissions {
2424
2424
  visible_tabs: string[];
2425
2425
  }
2426
2426
 
2427
- export declare interface IMilestoneConfig {
2427
+ declare interface IMilestoneConfig {
2428
2428
  action_plan: Record<'green' | 'red' | 'yellow', {
2429
2429
  share_message_template: string;
2430
2430
  }>;
@@ -2988,7 +2988,7 @@ export declare interface IPostGameStatsRef {
2988
2988
  declare interface IPreferencesCurriculumMap {
2989
2989
  course_stream: TCourseStream;
2990
2990
  is_live: boolean;
2991
- preference_category: TLearningPreferenceCategory;
2991
+ preference_category: TPreferenceCategory;
2992
2992
  preference_code: string;
2993
2993
  preference_grades: string[];
2994
2994
  preference_name: string;
@@ -3343,6 +3343,7 @@ declare interface ISelectionCardOption<IDType> {
3343
3343
  declare interface ISelectOption<IDType> {
3344
3344
  id: IDType;
3345
3345
  label: string;
3346
+ textDecoration?: string;
3346
3347
  [key: string]: unknown;
3347
3348
  }
3348
3349
 
@@ -4546,6 +4547,15 @@ export declare const JourneyProvider: FC<IJourneyProviderProps>;
4546
4547
 
4547
4548
  export declare const Leaderboard: ({ leaderboardData, type, userId, onClose, isLoading, streakInfo, }: ILeaderboardProps) => JSX.Element;
4548
4549
 
4550
+ export declare const LEARNING_PREFERENCE_CATEGORY: {
4551
+ readonly LEVEL: "Level";
4552
+ readonly FOCUS: "Focus";
4553
+ readonly BEHAVIOR: "Behaviors";
4554
+ readonly OBJECTIVES: "Objectives";
4555
+ readonly POSITION: "Position";
4556
+ readonly COURSE: "Course";
4557
+ };
4558
+
4549
4559
  export declare const LearnosityPreloader: FC<PropsWithChildren<ILearnosityPreloaderProps>>;
4550
4560
 
4551
4561
  export declare const LeftIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
@@ -5020,15 +5030,6 @@ export declare const PostGameStats: NamedExoticComponent<IPostGameStatsProps & R
5020
5030
 
5021
5031
  export declare const PracticeIcon: React.FC<React.SVGProps<SVGSVGElement>>;
5022
5032
 
5023
- declare const PREFERENCE_CATEGORY: {
5024
- readonly LEVEL: "Level";
5025
- readonly FOCUS: "Focus";
5026
- readonly BEHAVIOR: "Behaviors";
5027
- readonly OBJECTIVES: "Objectives";
5028
- readonly POSITION: "Position";
5029
- readonly COURSE: "Course";
5030
- };
5031
-
5032
5033
  export declare const PreviewWorksheet: FC<IPreviewWorksheetProps>;
5033
5034
 
5034
5035
  export declare const ProgressIcon: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -5323,10 +5324,6 @@ export declare const StudentDetails: FC<IStudentDetailsProps>;
5323
5324
 
5324
5325
  export declare const StudentProfileHighlights: FC<IStudentProfileHighlightsProps>;
5325
5326
 
5326
- export declare const StudentProfileSummaryModal: () => JSX.Element;
5327
-
5328
- export declare const StudentTrialReportModal: () => JSX.Element;
5329
-
5330
5327
  export declare const SubmitMilestoneModal: React.FC<ISubmitModalProps>;
5331
5328
 
5332
5329
  export declare const SwitchIcon: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -5911,8 +5908,6 @@ export declare type TJourneyId = JOURNEY_ID_STUDENT | JOURNEY_ID_TEACHER;
5911
5908
 
5912
5909
  declare type TLayerKey = 'layer-1' | 'layer-2' | 'layer-3' | 'layer-4';
5913
5910
 
5914
- export declare type TLearningPreferenceCategory = (typeof PREFERENCE_CATEGORY)[keyof typeof PREFERENCE_CATEGORY];
5915
-
5916
5911
  declare type TLearnosityPreloaderContextValue = {
5917
5912
  scriptStatus: Omit<TScriptStatus, 'loaded'>;
5918
5913
  defaultAPIURL: string;
@@ -6198,6 +6193,8 @@ declare type TPreference = {
6198
6193
  selectedTime: string;
6199
6194
  };
6200
6195
 
6196
+ declare type TPreferenceCategory = (typeof LEARNING_PREFERENCE_CATEGORY)[keyof typeof LEARNING_PREFERENCE_CATEGORY];
6197
+
6201
6198
  declare type TProfileHighlight = {
6202
6199
  illustration: string;
6203
6200
  background: TColorNames;