mario-education 2.0.243-staging → 2.0.244-staging
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/containers/CheckInSetup/api/index.d.ts +1 -0
- package/dist/containers/CheckInSetup/components/Step2RoutineCheckIn.d.ts +6 -6
- package/dist/containers/CheckInSetup/components/Step4Journeys.d.ts +1 -1
- package/dist/containers/CheckInSetup/components/step-2/CoreQuestionsSection.d.ts +2 -2
- package/dist/containers/CheckInSetup/components/step-2/CustomQuestionsSection.d.ts +3 -3
- package/dist/containers/CheckInSetup/components/step-2/RoutineTabBar.d.ts +6 -4
- package/dist/containers/CheckInSetup/hooks/useCheckInSetup.d.ts +8 -8
- package/dist/containers/CheckInSetup/utils/constants.d.ts +2 -0
- package/dist/containers/CheckInSetup/utils/types.d.ts +16 -8
- package/dist/containers/CheckInSetup/utils/utils.d.ts +7 -13
- package/dist/index-9ZCjOMqY.js +8100 -0
- package/dist/index-BsTIZBRs.js +8156 -0
- package/dist/index-CU2sbxup.js +8176 -0
- package/dist/index-C_XMpl5S.cjs +4 -0
- package/dist/index-D3b0fDRE.cjs +4 -0
- package/dist/index-DFKq0J79.cjs +4 -0
- package/dist/index-DMvBpxpG.cjs +4 -0
- package/dist/index-Vz-kLEpW.cjs +4 -0
- package/dist/index-fDqe2pSA.js +8113 -0
- package/dist/index-r5K37eWn.js +8114 -0
- package/dist/index.js +1 -1
- package/dist/index.modern.js +1 -1
- package/package.json +114 -112
|
@@ -13,3 +13,4 @@ export declare const updateCheckInConfig: (source: SystemSource, id: number, dat
|
|
|
13
13
|
export declare const updateCheckInRoutineConfig: (source: SystemSource, id: number, data: import("../utils/apiTypes").CheckInRoutineConfigUpdateDto) => Promise<AxiosResponse<any, import("../utils/apiTypes").CheckInRoutineConfigUpdateDto, {}, any>>;
|
|
14
14
|
export declare const updateCheckInCustomQuestion: (source: SystemSource, questionId: string, data: import("../utils/apiTypes").CustomOpenFieldQuestionInputDto) => Promise<AxiosResponse<any, import("../utils/apiTypes").CustomOpenFieldQuestionInputDto, {}, any>>;
|
|
15
15
|
export declare const deleteCheckInCustomQuestion: (source: SystemSource, questionId: string) => Promise<AxiosResponse<any, any, {}, any>>;
|
|
16
|
+
export declare const duplicateHighSchoolRoutine: () => Promise<AxiosResponse<any, any, {}, any>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { SetupConfig, Question, DeliveryLogic, ScheduleType, RoutineKey } from '../utils/types';
|
|
2
|
+
import { SetupConfig, Question, DeliveryLogic, ScheduleType, RoutineKey, CheckInTabKey } from '../utils/types';
|
|
3
3
|
import { SystemSource } from '../api';
|
|
4
4
|
import type { CheckInQuestionsResponse } from '../utils/apiTypes';
|
|
5
5
|
interface Props {
|
|
@@ -10,11 +10,11 @@ interface Props {
|
|
|
10
10
|
onRemoveCustomQuestion: (routineKey: RoutineKey, questionId: string) => void;
|
|
11
11
|
onEditCustomQuestion: (routineKey: RoutineKey, questionId: string, text: string, selectedGrades?: number[], startDate?: string, endDate?: string) => void;
|
|
12
12
|
checkInQuestionsMap: Partial<Record<SystemSource, CheckInQuestionsResponse>>;
|
|
13
|
-
activeTab:
|
|
14
|
-
onTabChange: (tab:
|
|
15
|
-
onToggleQuestionPin: (source: SystemSource, questionId: string) => void;
|
|
16
|
-
onToggleQuestionEnable: (source: SystemSource, questionId: string) => void;
|
|
17
|
-
onReorderClusters: (source: SystemSource, titlesOrder: string[]) => void;
|
|
13
|
+
activeTab: CheckInTabKey;
|
|
14
|
+
onTabChange: (tab: CheckInTabKey) => void;
|
|
15
|
+
onToggleQuestionPin: (source: SystemSource, questionId: string, tab?: CheckInTabKey) => void;
|
|
16
|
+
onToggleQuestionEnable: (source: SystemSource, questionId: string, tab?: CheckInTabKey) => void;
|
|
17
|
+
onReorderClusters: (source: SystemSource, titlesOrder: string[], tab?: CheckInTabKey) => void;
|
|
18
18
|
isAdminEs?: boolean;
|
|
19
19
|
isAdminMs?: boolean;
|
|
20
20
|
}
|
|
@@ -4,7 +4,7 @@ interface Props {
|
|
|
4
4
|
config: SetupConfig;
|
|
5
5
|
journeys: AdminJourneyDto[];
|
|
6
6
|
onToggleJourney: (journey: AdminJourneyDto) => void;
|
|
7
|
-
onToggleGrade: (journey: AdminJourneyDto, gradeRange: 'elementary' | 'secondary') => void;
|
|
7
|
+
onToggleGrade: (journey: AdminJourneyDto, gradeRange: 'elementary' | 'middle_school' | 'high_school' | 'secondary') => void;
|
|
8
8
|
hasSingleJourneyEnabled: boolean;
|
|
9
9
|
isAdminEs?: boolean;
|
|
10
10
|
isAdminMs?: boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { CoreQuestionCard as CoreQuestionCardType } from '../../utils/types';
|
|
2
|
+
import { CoreQuestionCard as CoreQuestionCardType, CheckInTabKey } from '../../utils/types';
|
|
3
3
|
interface Props {
|
|
4
4
|
coreQuestions: CoreQuestionCardType[];
|
|
5
5
|
otherQuestions: CoreQuestionCardType[];
|
|
6
|
-
gradeRange:
|
|
6
|
+
gradeRange: CheckInTabKey;
|
|
7
7
|
onUnpin?: (questionId: string) => void;
|
|
8
8
|
}
|
|
9
9
|
declare const CoreQuestionsSection: FC<Props>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { Question } from '../../utils/types';
|
|
2
|
+
import { Question, CheckInTabKey } from '../../utils/types';
|
|
3
3
|
interface Props {
|
|
4
|
-
gradeRange:
|
|
5
|
-
onAddCustomQuestion: (gradeRange:
|
|
4
|
+
gradeRange: CheckInTabKey;
|
|
5
|
+
onAddCustomQuestion: (gradeRange: CheckInTabKey, text: string, type: Question['type'], selectedGrades?: number[], startDate?: string, endDate?: string) => void;
|
|
6
6
|
}
|
|
7
7
|
declare const CustomQuestionsSection: FC<Props>;
|
|
8
8
|
export default CustomQuestionsSection;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { SystemType } from '../../utils/types';
|
|
2
|
+
import { SystemType, CheckInTabKey } from '../../utils/types';
|
|
3
3
|
interface Props {
|
|
4
4
|
system: SystemType;
|
|
5
5
|
showElementary: boolean;
|
|
6
|
-
showSecondary
|
|
7
|
-
|
|
6
|
+
showSecondary?: boolean;
|
|
7
|
+
showMiddleSchool?: boolean;
|
|
8
|
+
showHighSchool?: boolean;
|
|
9
|
+
activeTab: CheckInTabKey;
|
|
8
10
|
totalTabs: number;
|
|
9
|
-
onTabChange: (tab:
|
|
11
|
+
onTabChange: (tab: CheckInTabKey) => void;
|
|
10
12
|
}
|
|
11
13
|
declare const RoutineTabBar: FC<Props>;
|
|
12
14
|
export default RoutineTabBar;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SetupConfig, SystemType, DeliveryLogic, ScheduleType, Question, RoutineKey, AdminJourneyDto } from '../utils/types';
|
|
1
|
+
import { SetupConfig, SystemType, DeliveryLogic, ScheduleType, Question, RoutineKey, AdminJourneyDto, CheckInTabKey } from '../utils/types';
|
|
2
2
|
import { SystemSource } from '../api';
|
|
3
3
|
import type { CheckInQuestionsResponse } from '../utils/apiTypes';
|
|
4
4
|
export declare const mapTitleToModuleKey: (title: string) => keyof SetupConfig["modules"] | null;
|
|
@@ -23,7 +23,7 @@ export declare const useCheckInSetup: () => {
|
|
|
23
23
|
journeys: AdminJourneyDto[];
|
|
24
24
|
hasSingleJourneyEnabled: boolean;
|
|
25
25
|
handleToggleJourney: (journey: AdminJourneyDto) => void;
|
|
26
|
-
handleToggleGrade: (journey: AdminJourneyDto, gradeRange: "elementary" | "secondary") => void;
|
|
26
|
+
handleToggleGrade: (journey: AdminJourneyDto, gradeRange: "elementary" | "middle_school" | "high_school" | "secondary") => void;
|
|
27
27
|
nextStep: () => Promise<void>;
|
|
28
28
|
prevStep: () => Promise<void>;
|
|
29
29
|
completeSetup: () => Promise<void>;
|
|
@@ -39,15 +39,15 @@ export declare const useCheckInSetup: () => {
|
|
|
39
39
|
isElementaryEnabled: boolean;
|
|
40
40
|
isSecondaryEnabled: boolean;
|
|
41
41
|
};
|
|
42
|
-
activeTab:
|
|
43
|
-
onTabChange: (nextTab:
|
|
44
|
-
onToggleQuestionPin: (source: SystemSource, questionId: string) => void;
|
|
45
|
-
onToggleQuestionEnable: (source: SystemSource, questionId: string) => void;
|
|
46
|
-
onReorderClusters: (source: SystemSource, titlesOrder: string[]) => void;
|
|
42
|
+
activeTab: CheckInTabKey;
|
|
43
|
+
onTabChange: (nextTab: CheckInTabKey) => Promise<void>;
|
|
44
|
+
onToggleQuestionPin: (source: SystemSource, questionId: string, tab?: CheckInTabKey) => void;
|
|
45
|
+
onToggleQuestionEnable: (source: SystemSource, questionId: string, tab?: CheckInTabKey) => void;
|
|
46
|
+
onReorderClusters: (source: SystemSource, titlesOrder: string[], tab?: CheckInTabKey) => void;
|
|
47
47
|
onUpdateModuleConfig: (source: SystemSource, moduleId: string, status: boolean, periods: Array<{
|
|
48
48
|
startDate: string;
|
|
49
49
|
endDate: string;
|
|
50
|
-
}
|
|
50
|
+
}>, targetGradeLevel?: number) => Promise<void>;
|
|
51
51
|
hasEsSchool: boolean;
|
|
52
52
|
isAdminEs: boolean;
|
|
53
53
|
isAdminMs: boolean;
|
|
@@ -51,6 +51,8 @@ export declare const clusterStyles: Record<string, {
|
|
|
51
51
|
}>;
|
|
52
52
|
export declare const ALL_GRADE_NUMS: number[];
|
|
53
53
|
export declare const ELEMENTARY_GRADE_NUMS: number[];
|
|
54
|
+
export declare const MIDDLE_SCHOOL_GRADE_NUMS: number[];
|
|
55
|
+
export declare const HIGH_SCHOOL_GRADE_NUMS: number[];
|
|
54
56
|
export declare const SECONDARY_GRADE_NUMS: number[];
|
|
55
57
|
export declare const CURRICULUM_MAPPING_DATA: CurriculumMappingRow[];
|
|
56
58
|
export declare const MODULE_META: Record<string, ModuleMeta>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export type SystemType = 'US' | 'UK';
|
|
2
2
|
export type DeliveryLogic = 'rotated' | 'full';
|
|
3
3
|
export type ScheduleType = 'weekly' | 'biweekly' | 'monthly';
|
|
4
|
-
export type
|
|
5
|
-
export
|
|
4
|
+
export type CheckInTabKey = 'elementary' | 'middle_school' | 'high_school' | 'secondary';
|
|
5
|
+
export type RoutineKey = 'us-elementary' | 'us-secondary' | 'us-middle_school' | 'us-high_school' | 'uk-elementary' | 'uk-secondary' | 'uk-middle_school' | 'uk-high_school';
|
|
6
|
+
export declare function getRoutineKey(system: SystemType, grade: CheckInTabKey): RoutineKey;
|
|
6
7
|
export interface Question {
|
|
7
8
|
id: string;
|
|
8
9
|
text: string;
|
|
@@ -36,8 +37,12 @@ export interface SetupConfig {
|
|
|
36
37
|
routine: {
|
|
37
38
|
'us-elementary': GradeConfig;
|
|
38
39
|
'us-secondary': GradeConfig;
|
|
40
|
+
'us-middle_school': GradeConfig;
|
|
41
|
+
'us-high_school': GradeConfig;
|
|
39
42
|
'uk-elementary': GradeConfig;
|
|
40
43
|
'uk-secondary': GradeConfig;
|
|
44
|
+
'uk-middle_school': GradeConfig;
|
|
45
|
+
'uk-high_school': GradeConfig;
|
|
41
46
|
};
|
|
42
47
|
modules: {
|
|
43
48
|
ai_literacy: boolean;
|
|
@@ -145,11 +150,11 @@ export interface Step3ModulesProps {
|
|
|
145
150
|
config: SetupConfig;
|
|
146
151
|
onToggleModule: (moduleName: keyof SetupConfig['modules']) => void;
|
|
147
152
|
checkInQuestionsMap?: Partial<Record<SystemSource, CheckInQuestionsResponse>>;
|
|
148
|
-
activeTab?:
|
|
153
|
+
activeTab?: CheckInTabKey;
|
|
149
154
|
onUpdateModuleConfig: (source: SystemSource, moduleId: string, status: boolean, periods: Array<{
|
|
150
155
|
startDate: string;
|
|
151
156
|
endDate: string;
|
|
152
|
-
}
|
|
157
|
+
}>, targetGradeLevel?: number) => Promise<void>;
|
|
153
158
|
isAdminEs?: boolean;
|
|
154
159
|
isAdminMs?: boolean;
|
|
155
160
|
}
|
|
@@ -160,11 +165,14 @@ export interface ModuleCardProps {
|
|
|
160
165
|
isActive: boolean;
|
|
161
166
|
isEsChecked: boolean;
|
|
162
167
|
isMsChecked: boolean;
|
|
168
|
+
isHsChecked?: boolean;
|
|
163
169
|
isExpanded: boolean;
|
|
164
170
|
showElementary: boolean;
|
|
171
|
+
showMiddleSchool?: boolean;
|
|
172
|
+
showHighSchool?: boolean;
|
|
165
173
|
showSecondary: boolean;
|
|
166
174
|
onToggleMainSwitch: () => void;
|
|
167
|
-
onToggleGradeActivation: (gradeRange: 'elementary' | 'secondary', currentStatus: boolean) => void;
|
|
175
|
+
onToggleGradeActivation: (gradeRange: 'elementary' | 'middle_school' | 'high_school' | 'secondary', currentStatus: boolean) => void;
|
|
168
176
|
onToggleExpand: () => void;
|
|
169
177
|
periods: Array<{
|
|
170
178
|
startDate: string;
|
|
@@ -174,13 +182,13 @@ export interface ModuleCardProps {
|
|
|
174
182
|
onDeletePeriod: (index: number) => void;
|
|
175
183
|
onPeriodDateChange: (index: number, field: 'startDate' | 'endDate', value: any) => void;
|
|
176
184
|
hasOverlapError: boolean;
|
|
177
|
-
activeTab?:
|
|
185
|
+
activeTab?: CheckInTabKey;
|
|
178
186
|
}
|
|
179
187
|
export interface ModuleQuestionsPanelProps {
|
|
180
188
|
questions: ModuleQuestionItem[];
|
|
181
189
|
iconColor: string;
|
|
182
190
|
isAILiteracy?: boolean;
|
|
183
|
-
activeTab?:
|
|
191
|
+
activeTab?: CheckInTabKey;
|
|
184
192
|
}
|
|
185
193
|
export interface ModulePeriodsSectionProps {
|
|
186
194
|
periods: Array<{
|
|
@@ -218,5 +226,5 @@ export interface StudentPreviewProps {
|
|
|
218
226
|
journeys?: AdminJourneyDto[];
|
|
219
227
|
onClose: () => void;
|
|
220
228
|
checkInQuestionsMap?: Partial<Record<SystemSource, CheckInQuestionsResponse>>;
|
|
221
|
-
activeTab?:
|
|
229
|
+
activeTab?: CheckInTabKey;
|
|
222
230
|
}
|
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
import moment from 'moment';
|
|
2
2
|
export declare const parseMoment: (dateStr?: string) => moment.Moment | null;
|
|
3
|
-
import { SystemType } from './types';
|
|
4
|
-
export declare const getTabMeta: (system: SystemType) => {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
};
|
|
9
|
-
secondary: {
|
|
10
|
-
label: string;
|
|
11
|
-
emoji: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
3
|
+
import { SystemType, CheckInTabKey } from './types';
|
|
4
|
+
export declare const getTabMeta: (system: SystemType) => Record<CheckInTabKey, {
|
|
5
|
+
label: string;
|
|
6
|
+
emoji: string;
|
|
7
|
+
}>;
|
|
14
8
|
export declare const formatDateRangeDisplay: (startStr: string, endStr: string) => string;
|
|
15
9
|
export declare const formatLastUpdatedText: (date?: Date | string | number) => string;
|
|
16
10
|
export declare const isPeriodsOverlapping: (p1: {
|
|
@@ -28,5 +22,5 @@ import { SetupConfig, PreviewQuestionItem, PreviewClusterGroup } from './types';
|
|
|
28
22
|
import { SystemSource } from '../api';
|
|
29
23
|
import type { CheckInQuestionsResponse } from './apiTypes';
|
|
30
24
|
export declare const getScaleLabelsForQuestion: (title: string) => string[];
|
|
31
|
-
export declare const getEnabledRoutineQuestions: (config: SetupConfig, checkInQuestionsMap?: Partial<Record<SystemSource, CheckInQuestionsResponse>>, activeTab?:
|
|
32
|
-
export declare const getEnabledRoutineClusters: (config: SetupConfig, checkInQuestionsMap?: Partial<Record<SystemSource, CheckInQuestionsResponse>>, activeTab?:
|
|
25
|
+
export declare const getEnabledRoutineQuestions: (config: SetupConfig, checkInQuestionsMap?: Partial<Record<SystemSource, CheckInQuestionsResponse>>, activeTab?: CheckInTabKey) => PreviewQuestionItem[];
|
|
26
|
+
export declare const getEnabledRoutineClusters: (config: SetupConfig, checkInQuestionsMap?: Partial<Record<SystemSource, CheckInQuestionsResponse>>, activeTab?: CheckInTabKey) => PreviewClusterGroup[];
|