@cuemath/leap 3.3.1 → 3.3.2-link.0
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/gif/gif.js +3 -0
- package/dist/assets/gif/gif.js.map +1 -1
- package/dist/assets/illustrations/illustrations.js +1 -0
- package/dist/assets/illustrations/illustrations.js.map +1 -1
- package/dist/features/milestone/constants.js +12 -10
- package/dist/features/milestone/constants.js.map +1 -1
- package/dist/features/trial-session/api/course-stream.js.map +1 -1
- package/dist/features/trial-session/comps/background-grid/background-grid-utils.js +66 -60
- package/dist/features/trial-session/comps/background-grid/background-grid-utils.js.map +1 -1
- package/dist/features/trial-session/comps/offering-information/offering-information-constants.js +12 -12
- package/dist/features/trial-session/comps/offering-information/offering-information-constants.js.map +1 -1
- package/dist/features/trial-session/comps/session-report/report-404/report-404.js +34 -0
- package/dist/features/trial-session/comps/session-report/report-404/report-404.js.map +1 -0
- package/dist/features/trial-session/comps/session-report/{report-card.js → report-information/report-card.js} +2 -2
- package/dist/features/trial-session/comps/session-report/report-information/report-card.js.map +1 -0
- package/dist/features/trial-session/comps/session-report/report-information/report-information-styled.js +29 -0
- package/dist/features/trial-session/comps/session-report/report-information/report-information-styled.js.map +1 -0
- package/dist/features/trial-session/comps/session-report/report-information/report-information.js +107 -0
- package/dist/features/trial-session/comps/session-report/report-information/report-information.js.map +1 -0
- package/dist/features/trial-session/comps/session-report/session-report-styled.js +6 -29
- package/dist/features/trial-session/comps/session-report/session-report-styled.js.map +1 -1
- package/dist/features/trial-session/comps/session-report/session-report.js +44 -174
- package/dist/features/trial-session/comps/session-report/session-report.js.map +1 -1
- package/dist/features/trial-session/comps/student-personalization/student-personalization-styled.js +20 -5
- package/dist/features/trial-session/comps/student-personalization/student-personalization-styled.js.map +1 -1
- package/dist/features/trial-session/comps/student-personalization/student-personalization.js +59 -126
- package/dist/features/trial-session/comps/student-personalization/student-personalization.js.map +1 -1
- package/dist/features/trial-session/comps/student-profile/constant.js +10 -0
- package/dist/features/trial-session/comps/student-profile/constant.js.map +1 -0
- package/dist/features/trial-session/comps/student-profile/student-profile-highlights/student-profile-highlights.js +38 -0
- package/dist/features/trial-session/comps/student-profile/student-profile-highlights/student-profile-highlights.js.map +1 -0
- package/dist/features/trial-session/comps/student-profile/student-profile.js +93 -46
- package/dist/features/trial-session/comps/student-profile/student-profile.js.map +1 -1
- package/dist/features/trial-session/hooks/use-trial-session-navigation.js +65 -63
- package/dist/features/trial-session/hooks/use-trial-session-navigation.js.map +1 -1
- package/dist/features/trial-session/right-panel/slide-components-map.js +32 -32
- package/dist/features/trial-session/right-panel/slide-components-map.js.map +1 -1
- package/dist/features/trial-session/trial-session-constants.js +3 -3
- package/dist/features/trial-session/trial-session-constants.js.map +1 -1
- package/dist/features/trial-session/trial-session-types.js.map +1 -1
- package/dist/features/ui/inputs/checkbox-input-list/checkbox-input-list-styled.js +9 -6
- package/dist/features/ui/inputs/checkbox-input-list/checkbox-input-list-styled.js.map +1 -1
- package/dist/features/ui/inputs/checkbox-input-list/checkbox-input-list.js +30 -29
- package/dist/features/ui/inputs/checkbox-input-list/checkbox-input-list.js.map +1 -1
- package/dist/index.d.ts +65 -0
- package/dist/index.js +226 -220
- package/dist/index.js.map +1 -1
- package/dist/static/personalization.7a6c33e8.svg +1 -0
- package/dist/static/personalized-session.b4fd7df8.gif +0 -0
- package/dist/static/regular-practice.b15f24d9.gif +0 -0
- package/dist/static/stepup.321df6ed.gif +0 -0
- package/package.json +2 -3
- package/dist/features/trial-session/comps/session-report/report-card.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox-input-list.js","sources":["../../../../../src/features/ui/inputs/checkbox-input-list/checkbox-input-list.tsx"],"sourcesContent":["import type { ICheckboxInputProps } from './checkbox-input-list-types';\n\nimport { useCallback, useMemo } from 'react';\n\nimport ArrowTooltip from '../../arrow-tooltip/arrow-tooltip';\nimport CheckboxOption from '../checkbox-input/checkbox-input';\nimport * as Styled from './checkbox-input-list-styled';\n\nconst CheckboxInputList = <IDType extends string | number>(props: ICheckboxInputProps<IDType>) => {\n const {\n size,\n value,\n options,\n disabled,\n renderAs,\n numColumns,\n indeterminate,\n visibleOnCheck,\n maximumSelection,\n onChange,\n } = props;\n\n const reachedMaxLength = useMemo(\n () => !!(maximumSelection && maximumSelection > 1 && value.length >= maximumSelection),\n [maximumSelection, value.length],\n );\n\n const handleOnChange = useCallback(\n (selectedValue: IDType, selected: boolean) => {\n if (!selected) {\n onChange(value.filter(val => val !== selectedValue));\n } else {\n if (maximumSelection === 1) {\n onChange([selectedValue]);\n } else if (!reachedMaxLength || !maximumSelection) {\n onChange([...value, selectedValue]);\n }\n }\n },\n [maximumSelection, onChange, reachedMaxLength, value],\n );\n\n return (\n <Styled.CheckboxInputListWrapper>\n {options.map(option => {\n const { id, label } = option;\n\n const checked = value.includes(id);\n const showTooltip = reachedMaxLength && !checked;\n const disableCheck = disabled?.includes(id) || showTooltip;\n\n return (\n <Styled.CheckboxOptionWrapper key={id} $numColumns={numColumns ?? 1}>\n <ArrowTooltip\n renderAs=\"primary\"\n position=\"top\"\n tooltipItem={`${maximumSelection} options already selected`}\n hidden={!showTooltip}\n zIndex={2}\n >\n <CheckboxOption<IDType>\n value={id}\n size={size}\n label={label}\n checked={checked}\n renderAs={renderAs}\n disabled={disableCheck}\n onChange={handleOnChange}\n indeterminate={indeterminate} //* Took this name from Mui.\n visibleOnCheck={visibleOnCheck}\n />\n </ArrowTooltip>\n </Styled.CheckboxOptionWrapper>\n );\n })}\n </Styled.CheckboxInputListWrapper>\n );\n};\n\nexport default CheckboxInputList;\n"],"names":["CheckboxInputList","props","size","value","options","disabled","renderAs","numColumns","indeterminate","visibleOnCheck","maximumSelection","onChange","reachedMaxLength","useMemo","handleOnChange","useCallback","selectedValue","selected","val","Styled.CheckboxInputListWrapper","option","id","label","checked","showTooltip","disableCheck","Styled.CheckboxOptionWrapper","
|
|
1
|
+
{"version":3,"file":"checkbox-input-list.js","sources":["../../../../../src/features/ui/inputs/checkbox-input-list/checkbox-input-list.tsx"],"sourcesContent":["import type { ICheckboxInputProps } from './checkbox-input-list-types';\n\nimport { useCallback, useMemo } from 'react';\n\nimport ArrowTooltip from '../../arrow-tooltip/arrow-tooltip';\nimport CheckboxOption from '../checkbox-input/checkbox-input';\nimport * as Styled from './checkbox-input-list-styled';\n\nconst CheckboxInputList = <IDType extends string | number>(props: ICheckboxInputProps<IDType>) => {\n const {\n size,\n value,\n options,\n disabled,\n renderAs,\n numColumns,\n itemSpacing,\n indeterminate,\n visibleOnCheck,\n maximumSelection,\n onChange,\n } = props;\n\n const reachedMaxLength = useMemo(\n () => !!(maximumSelection && maximumSelection > 1 && value.length >= maximumSelection),\n [maximumSelection, value.length],\n );\n\n const handleOnChange = useCallback(\n (selectedValue: IDType, selected: boolean) => {\n if (!selected) {\n onChange(value.filter(val => val !== selectedValue));\n } else {\n if (maximumSelection === 1) {\n onChange([selectedValue]);\n } else if (!reachedMaxLength || !maximumSelection) {\n onChange([...value, selectedValue]);\n }\n }\n },\n [maximumSelection, onChange, reachedMaxLength, value],\n );\n\n return (\n <Styled.CheckboxInputListWrapper $itemSpacing={itemSpacing}>\n {options.map(option => {\n const { id, label } = option;\n\n const checked = value.includes(id);\n const showTooltip = reachedMaxLength && !checked;\n const disableCheck = disabled?.includes(id) || showTooltip;\n\n return (\n <Styled.CheckboxOptionWrapper key={id} $numColumns={numColumns ?? 1}>\n <ArrowTooltip\n renderAs=\"primary\"\n position=\"top\"\n tooltipItem={`${maximumSelection} options already selected`}\n hidden={!showTooltip}\n zIndex={2}\n >\n <CheckboxOption<IDType>\n value={id}\n size={size}\n label={label}\n checked={checked}\n renderAs={renderAs}\n disabled={disableCheck}\n onChange={handleOnChange}\n indeterminate={indeterminate} //* Took this name from Mui.\n visibleOnCheck={visibleOnCheck}\n />\n </ArrowTooltip>\n </Styled.CheckboxOptionWrapper>\n );\n })}\n </Styled.CheckboxInputListWrapper>\n );\n};\n\nexport default CheckboxInputList;\n"],"names":["CheckboxInputList","props","size","value","options","disabled","renderAs","numColumns","itemSpacing","indeterminate","visibleOnCheck","maximumSelection","onChange","reachedMaxLength","useMemo","handleOnChange","useCallback","selectedValue","selected","val","jsx","Styled.CheckboxInputListWrapper","option","id","label","checked","showTooltip","disableCheck","Styled.CheckboxOptionWrapper","ArrowTooltip","CheckboxOption","CheckboxInputList$1"],"mappings":";;;;;AAQA,MAAMA,IAAoB,CAAiCC,MAAuC;AAC1F,QAAA;AAAA,IACJ,MAAAC;AAAA,IACA,OAAAC;AAAA,IACA,SAAAC;AAAA,IACA,UAAAC;AAAA,IACA,UAAAC;AAAA,IACA,YAAAC;AAAA,IACA,aAAAC;AAAA,IACA,eAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,UAAAC;AAAA,EACE,IAAAX,GAEEY,IAAmBC;AAAA,IACvB,MAAM,CAAC,EAAEH,KAAoBA,IAAmB,KAAKR,EAAM,UAAUQ;AAAA,IACrE,CAACA,GAAkBR,EAAM,MAAM;AAAA,EAAA,GAG3BY,IAAiBC;AAAA,IACrB,CAACC,GAAuBC,MAAsB;AAC5C,MAAKA,IAGCP,MAAqB,IACdC,EAAA,CAACK,CAAa,CAAC,KACf,CAACJ,KAAoB,CAACF,MAC/BC,EAAS,CAAC,GAAGT,GAAOc,CAAa,CAAC,IALpCL,EAAST,EAAM,OAAO,CAAOgB,MAAAA,MAAQF,CAAa,CAAC;AAAA,IAQvD;AAAA,IACA,CAACN,GAAkBC,GAAUC,GAAkBV,CAAK;AAAA,EAAA;AAIpD,SAAA,gBAAAiB,EAACC,GAAA,EAAgC,cAAcb,GAC5C,UAAAJ,EAAQ,IAAI,CAAUkB,MAAA;AACf,UAAA,EAAE,IAAAC,GAAI,OAAAC,EAAU,IAAAF,GAEhBG,IAAUtB,EAAM,SAASoB,CAAE,GAC3BG,IAAcb,KAAoB,CAACY,GACnCE,KAAetB,KAAA,gBAAAA,EAAU,SAASkB,OAAOG;AAE/C,6BACGE,GAAA,EAAsC,aAAarB,KAAc,GAChE,UAAA,gBAAAa;AAAA,MAACS;AAAA,MAAA;AAAA,QACC,UAAS;AAAA,QACT,UAAS;AAAA,QACT,aAAa,GAAGlB,CAAgB;AAAA,QAChC,QAAQ,CAACe;AAAA,QACT,QAAQ;AAAA,QAER,UAAA,gBAAAN;AAAA,UAACU;AAAA,UAAA;AAAA,YACC,OAAOP;AAAA,YACP,MAAArB;AAAA,YACA,OAAAsB;AAAA,YACA,SAAAC;AAAA,YACA,UAAAnB;AAAA,YACA,UAAUqB;AAAA,YACV,UAAUZ;AAAA,YACV,eAAAN;AAAA,YACA,gBAAAC;AAAA,UAAA;AAAA,QACF;AAAA,MAAA;AAAA,IAAA,KAlB+Ba,CAoBnC;AAAA,EAEH,CAAA,EACH,CAAA;AAEJ,GAEAQ,IAAe/B;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -630,12 +630,15 @@ export declare const GIF: {
|
|
|
630
630
|
LEARNING_SESSION: string;
|
|
631
631
|
LEARNING_SESSION_GRID_BG: string;
|
|
632
632
|
MAX_WAVE: string;
|
|
633
|
+
PERSONALIZED_SESSION: string;
|
|
633
634
|
PUZZLES: string;
|
|
635
|
+
REGULAR_PRACTICE: string;
|
|
634
636
|
SCHOOL_SUCCESS: string;
|
|
635
637
|
SCHOOL_SUCCESS_MINI: string;
|
|
636
638
|
SKILLS: string;
|
|
637
639
|
SPECKIE_WAVE: string;
|
|
638
640
|
STAY_CONNECTED: string;
|
|
641
|
+
STEPUP: string;
|
|
639
642
|
TERA_WAVE: string;
|
|
640
643
|
TEST_PREP: string;
|
|
641
644
|
TEST_PREP_MINI: string;
|
|
@@ -1169,6 +1172,7 @@ declare interface ICheckboxInputProps<IDType> {
|
|
|
1169
1172
|
visibleOnCheck?: boolean;
|
|
1170
1173
|
indeterminate?: boolean;
|
|
1171
1174
|
numColumns?: number;
|
|
1175
|
+
itemSpacing?: number;
|
|
1172
1176
|
renderAs?: TCheckboxVariants;
|
|
1173
1177
|
maximumSelection?: number;
|
|
1174
1178
|
size?: TCheckboxSizes;
|
|
@@ -2219,6 +2223,7 @@ export declare const ILLUSTRATIONS: {
|
|
|
2219
2223
|
ORANGE_FACE: string;
|
|
2220
2224
|
PARENT_AVATAR: string;
|
|
2221
2225
|
PEOPLE_WITH_ORANGE_FILL: string;
|
|
2226
|
+
PERSONALIZATION: string;
|
|
2222
2227
|
PLATFORM_GREEN: string;
|
|
2223
2228
|
PLATFORM_PURPLE: string;
|
|
2224
2229
|
PLAY: string;
|
|
@@ -3169,6 +3174,11 @@ declare interface IReferenceSheetProps {
|
|
|
3169
3174
|
};
|
|
3170
3175
|
}
|
|
3171
3176
|
|
|
3177
|
+
declare interface IReportInformationProps {
|
|
3178
|
+
sessionReports: TSessionReport;
|
|
3179
|
+
studentName: string;
|
|
3180
|
+
}
|
|
3181
|
+
|
|
3172
3182
|
declare interface IResetPasswordFormProps {
|
|
3173
3183
|
onSubmit: (e: FormEvent<HTMLFormElement>) => void;
|
|
3174
3184
|
onChange: (key: string, value: string) => void;
|
|
@@ -3322,6 +3332,11 @@ declare interface ISeparatorProps {
|
|
|
3322
3332
|
background?: TColorNames;
|
|
3323
3333
|
}
|
|
3324
3334
|
|
|
3335
|
+
declare interface ISessionInsightsQuery {
|
|
3336
|
+
student_level: string;
|
|
3337
|
+
student_name: string;
|
|
3338
|
+
}
|
|
3339
|
+
|
|
3325
3340
|
declare interface IShareInstructionModalProps {
|
|
3326
3341
|
milestoneAchievementId: string;
|
|
3327
3342
|
studentName: string;
|
|
@@ -3528,6 +3543,10 @@ declare interface IStudentDetailsProps extends IWinsPreviewProps {
|
|
|
3528
3543
|
classStatus?: IClassStatus;
|
|
3529
3544
|
}
|
|
3530
3545
|
|
|
3546
|
+
declare interface IStudentProfileHighlightsProps {
|
|
3547
|
+
profileHighlights: TProfileHighlight[];
|
|
3548
|
+
}
|
|
3549
|
+
|
|
3531
3550
|
declare interface IStudentSchool {
|
|
3532
3551
|
place_id: string;
|
|
3533
3552
|
country_code: string;
|
|
@@ -3888,6 +3907,7 @@ export declare interface ITrialSessionFormFields {
|
|
|
3888
3907
|
personalizedLevel?: string[];
|
|
3889
3908
|
personalizedFocus?: string[];
|
|
3890
3909
|
personalizedBehaviors?: string[];
|
|
3910
|
+
personalizedObjectives?: string[];
|
|
3891
3911
|
isCircleGamePlayed?: boolean;
|
|
3892
3912
|
isCirclePuzzleSolved?: boolean;
|
|
3893
3913
|
isCircleSkillCompleted?: boolean;
|
|
@@ -4944,6 +4964,8 @@ declare const PREFERENCE_CATEGORY: {
|
|
|
4944
4964
|
readonly LEVEL: "Level";
|
|
4945
4965
|
readonly FOCUS: "Focus";
|
|
4946
4966
|
readonly BEHAVIOR: "Behaviors";
|
|
4967
|
+
readonly OBJECTIVES: "Objectives";
|
|
4968
|
+
readonly POSITION: "Position";
|
|
4947
4969
|
};
|
|
4948
4970
|
|
|
4949
4971
|
export declare const PreviewWorksheet: FC<IPreviewWorksheetProps>;
|
|
@@ -5037,6 +5059,8 @@ export declare const ReferenceSheet: FC<IReferenceSheetProps>;
|
|
|
5037
5059
|
|
|
5038
5060
|
export declare const RemotePeerPointer: MemoExoticComponent<({ containerRef, onPublish, onSubscribe, responseId }: IPointerProps) => JSX.Element>;
|
|
5039
5061
|
|
|
5062
|
+
export declare const ReportInformation: FC<IReportInformationProps>;
|
|
5063
|
+
|
|
5040
5064
|
export declare const ResendOTP: NamedExoticComponent<IOTPResendProps>;
|
|
5041
5065
|
|
|
5042
5066
|
export declare const ResetPasswordForm: MemoExoticComponent<({ onSubmit, onChange, formData, errors, isSubmitDisabled, isProcessing, isValid, }: IResetPasswordFormProps) => JSX.Element>;
|
|
@@ -5232,6 +5256,8 @@ export declare const StrikedEyeIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
|
5232
5256
|
|
|
5233
5257
|
export declare const StudentDetails: FC<IStudentDetailsProps>;
|
|
5234
5258
|
|
|
5259
|
+
export declare const StudentProfileHighlights: FC<IStudentProfileHighlightsProps>;
|
|
5260
|
+
|
|
5235
5261
|
export declare const SubmitMilestoneModal: React.FC<ISubmitModalProps>;
|
|
5236
5262
|
|
|
5237
5263
|
export declare const SwitchIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
@@ -6102,6 +6128,13 @@ declare type TPreference = {
|
|
|
6102
6128
|
|
|
6103
6129
|
declare type TPreferenceCategory = (typeof PREFERENCE_CATEGORY)[keyof typeof PREFERENCE_CATEGORY];
|
|
6104
6130
|
|
|
6131
|
+
declare type TProfileHighlight = {
|
|
6132
|
+
illustration: string;
|
|
6133
|
+
background: TColorNames;
|
|
6134
|
+
title: string;
|
|
6135
|
+
description: string | string[];
|
|
6136
|
+
};
|
|
6137
|
+
|
|
6105
6138
|
declare type TPublish = (data: IPublishData) => boolean | undefined;
|
|
6106
6139
|
|
|
6107
6140
|
declare type TPublishMouseMove = (points: IPointerData) => void;
|
|
@@ -6211,6 +6244,17 @@ export declare type TSelectedCountry = {
|
|
|
6211
6244
|
code: string;
|
|
6212
6245
|
};
|
|
6213
6246
|
|
|
6247
|
+
export declare type TSessionReport = {
|
|
6248
|
+
problems_attempted: number;
|
|
6249
|
+
new_concepts_learnt?: number;
|
|
6250
|
+
improvement_percentage?: number;
|
|
6251
|
+
solved_independently?: number;
|
|
6252
|
+
solved_with_help?: number;
|
|
6253
|
+
next_steps?: string;
|
|
6254
|
+
topic_data?: TTopicData[];
|
|
6255
|
+
default_topic_image_url?: string;
|
|
6256
|
+
};
|
|
6257
|
+
|
|
6214
6258
|
declare type TSheetAttemptLocation = keyof typeof SHEET_ATTEMPT_LOCATION;
|
|
6215
6259
|
|
|
6216
6260
|
declare type TSheetAttemptLocation_2 = keyof typeof SHEET_ATTEMPT_LOCATION;
|
|
@@ -6327,6 +6371,13 @@ export declare type TTextVariants = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'q
|
|
|
6327
6371
|
|
|
6328
6372
|
declare type TTimeUnit = 'hours' | 'minutes' | 'days';
|
|
6329
6373
|
|
|
6374
|
+
declare type TTopicData = {
|
|
6375
|
+
topic_name: string;
|
|
6376
|
+
topic_image: string;
|
|
6377
|
+
summary: string;
|
|
6378
|
+
is_attempted: boolean;
|
|
6379
|
+
};
|
|
6380
|
+
|
|
6330
6381
|
export declare type TTrackCTA = (params: {
|
|
6331
6382
|
label?: string;
|
|
6332
6383
|
analyticsLabel?: string;
|
|
@@ -6550,6 +6601,20 @@ export declare const useGetPuzzleToAssign: (initialId?: string, initialQuery?: v
|
|
|
6550
6601
|
} & Record<string, unknown>) | undefined;
|
|
6551
6602
|
};
|
|
6552
6603
|
|
|
6604
|
+
export declare const useGetSessionReports: (initialId?: string, initialQuery?: ISessionInsightsQuery | undefined) => {
|
|
6605
|
+
get: (id: string, query: ISessionInsightsQuery, meta: void) => Promise<void>;
|
|
6606
|
+
resource: ResourceModel<TSessionReport> | undefined;
|
|
6607
|
+
data: TSessionReport | undefined;
|
|
6608
|
+
permissions: Record<string, unknown> | undefined;
|
|
6609
|
+
isProcessing: boolean;
|
|
6610
|
+
isProcessed: boolean;
|
|
6611
|
+
isProcessingFailed: boolean;
|
|
6612
|
+
isStale: boolean;
|
|
6613
|
+
error: ({
|
|
6614
|
+
message?: string | undefined;
|
|
6615
|
+
} & Record<string, unknown>) | undefined;
|
|
6616
|
+
};
|
|
6617
|
+
|
|
6553
6618
|
export declare const useGetTestHelpData: (initialId?: string, initialQuery?: void | undefined) => {
|
|
6554
6619
|
get: (id: string, query: void, meta: {
|
|
6555
6620
|
studentId: string;
|