mario-education 2.4.241-release → 2.4.243-release

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,4 +1,4 @@
1
- export declare const HEADER_DESKTOP_HEIGHT = 64;
1
+ export declare const HEADER_DESKTOP_HEIGHT = 57;
2
2
  export declare const HEADER_MOBILE_HEIGHT = 55;
3
3
  export declare const NOTIFICATION_HEIGHT = 36;
4
4
  export declare const NOTIFICATION_CHANNEL = "NOTIFICATION_CHANNEL";
@@ -0,0 +1,6 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ errorImportRest?: string | null;
4
+ }
5
+ declare const ImportOneRoster: FC<Props>;
6
+ export default ImportOneRoster;
@@ -0,0 +1,8 @@
1
+ import { FC } from "react";
2
+ import { ROSTER_CONFIG } from "../utils/types";
3
+ interface Props {
4
+ rosterConfig: ROSTER_CONFIG;
5
+ updateData: Function;
6
+ }
7
+ declare const RosterConfigForm: FC<Props>;
8
+ export default RosterConfigForm;
@@ -0,0 +1,28 @@
1
+ import React from "react";
2
+ interface UploadInfo {
3
+ error?: string;
4
+ success?: boolean;
5
+ isUploading?: boolean;
6
+ importedFiles?: string;
7
+ rejectedFiles?: string;
8
+ comment?: string;
9
+ }
10
+ declare const useImportOneRoster: ({ errorImportRest }: {
11
+ errorImportRest: any;
12
+ }) => {
13
+ inputRef: React.RefObject<HTMLInputElement>;
14
+ fileProgress: number;
15
+ uploadInfo: UploadInfo | undefined;
16
+ uploadIcon: JSX.Element | undefined;
17
+ uploadMessage: JSX.Element | undefined;
18
+ importIcon: JSX.Element | undefined;
19
+ importMessage: JSX.Element | undefined;
20
+ restApiInfo: object | undefined;
21
+ restApiProgress: JSX.Element[] | undefined;
22
+ setFileProgress: React.Dispatch<React.SetStateAction<number>>;
23
+ handleFileChange: () => Promise<void>;
24
+ importRosterZipFile: (file: File) => Promise<void>;
25
+ handleChooseZipFile: () => void;
26
+ handleImportFromRestfulApi: () => Promise<void>;
27
+ };
28
+ export default useImportOneRoster;
@@ -0,0 +1,7 @@
1
+ import { ROSTER_CONFIG } from "../utils/types";
2
+ declare const useRosterConfigForm: () => {
3
+ rosterConfig: ROSTER_CONFIG;
4
+ errorImportRest: string | null;
5
+ updateData: (values: any) => Promise<void>;
6
+ };
7
+ export default useRosterConfigForm;
@@ -0,0 +1,2 @@
1
+ export declare const CSV_FILE_NAMES: string[];
2
+ export declare const INVALID_CLIENT_ROSTER_CONFIG = "Response status code does not indicate success: 403 ().";
@@ -0,0 +1,5 @@
1
+ export declare type ROSTER_CONFIG = {
2
+ clientId: string;
3
+ clientSecret: string;
4
+ endPointUrl: string;
5
+ };
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const OneRoster: () => JSX.Element;
3
+ export default OneRoster;
@@ -1,3 +1,3 @@
1
1
  import { MODEL_CONFIRM_SURVEY } from "../../configs/types";
2
- declare const ModelSendSurvey: ({ open, handleClose, handlePublishSurvey, handleDeleteEmail, listEduTeacher, handleToggleSuggestedTeacher, handleChangeInputSender, textValueSender, handleEnterAddSender, senderList, handleChangeEmailContent, emailContent, listChooseStudents, studentShareId, setStudentShareId, importEmailCsv, downloadTemplate }: MODEL_CONFIRM_SURVEY) => JSX.Element;
2
+ declare const ModelSendSurvey: ({ open, handleClose, handlePublishSurvey, handleDeleteEmail, listEduTeacher, handleChangeInputSender, textValueSender, handleEnterAddSender, senderList, handleChangeEmailContent, emailContent, listChooseStudents, studentShareId, setStudentShareId, importEmailCsv, downloadTemplate }: MODEL_CONFIRM_SURVEY) => JSX.Element;
3
3
  export default ModelSendSurvey;