@clickview/lite 0.0.12-rc.0 → 0.0.12-rc.2
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/apps/classrooms/components/manage-classroom-student-list-item/ManageClassroomStudentListItem.d.ts +10 -0
- package/dist/apps/content-updates/utils/ContentUpdateAppLinks.d.ts +0 -0
- package/dist/apps/default/index.d.ts +2 -0
- package/dist/apps/default/views/dialog/LiteDialogView.d.ts +9 -0
- package/dist/apps/default/views/home/HomeView.d.ts +5 -0
- package/dist/apps/embed/EmbedApplication.d.ts +15 -0
- package/dist/apps/index.d.ts +1 -0
- package/dist/apps/user-manager/components/edit-uploaded-student-popup/EditUploadedStudentPopup.d.ts +8 -0
- package/dist/apps/user-manager/components/edit-user-details/EditUserDetails.d.ts +22 -0
- package/dist/apps/user-manager/components/manage-students-list/ManageStudentItem.d.ts +9 -0
- package/dist/apps/user-manager/components/manage-students-list/ManageStudentsList.d.ts +7 -0
- package/dist/apps/user-manager/components/manage-students-list/partial-loading/PartialManageStudentsList.d.ts +2 -0
- package/dist/apps/user-manager/components/small-pagination/SmallPagination.d.ts +13 -0
- package/dist/apps/user-manager/flight-requests/ClassroomRequests.d.ts +4 -0
- package/dist/apps/user-manager/flight-requests/SchoolUserRequests2.d.ts +11 -0
- package/dist/apps/user-manager/flight-requests/StudentRequests.d.ts +4 -0
- package/dist/apps/user-manager/flight-requests/YearLevelRequests2.d.ts +4 -0
- package/dist/apps/user-manager/flight-requests/index.d.ts +2 -0
- package/dist/apps/user-manager/index.d.ts +5 -0
- package/dist/apps/user-manager/interfaces/collections/UserRoleCollection.d.ts +3 -0
- package/dist/apps/user-manager/interfaces/collections/index.d.ts +1 -0
- package/dist/apps/user-manager/interfaces/mocks/MockUserType.d.ts +4 -0
- package/dist/apps/user-manager/interfaces/models/UserRole.d.ts +3 -0
- package/dist/apps/user-manager/interfaces/models/index.d.ts +1 -0
- package/dist/apps/user-manager/views/bulk-student-upload/BulkStudentUploadView.d.ts +7 -0
- package/dist/apps/user-manager/views/bulk-teacher-upload/BulkTeacherUploadView.d.ts +7 -0
- package/dist/apps/user-manager/views/index.d.ts +1 -0
- package/dist/apps/user-manager/views/school-student-manager/partial-loading/PartialSchoolStudentManager.d.ts +2 -0
- package/dist/apps/user-manager/views/student-upload-review/StudentUploadReducer.d.ts +34 -0
- package/dist/bundle.js.map +1 -1
- package/dist/lite-app.css.map +1 -1
- package/dist/shared/components/div-button/DivButton.d.ts +10 -0
- package/dist/shared/components/icon-button/IconButton.d.ts +9 -0
- package/dist/shared/components/sort-select/SortSelect.d.ts +2 -0
- package/dist/shared/components/upload-file-select/UploadFileSelect.d.ts +6 -0
- package/dist/shared/components/uploading-item/UploadingItem.d.ts +9 -0
- package/dist/shared/errors/not-found/NotFoundError.d.ts +5 -0
- package/dist/shared/flight-requests/ConfigRequests.d.ts +4 -0
- package/dist/shared/flight-requests/SchoolUserRequests2.d.ts +10 -0
- package/dist/shared/flight-requests/UserRequests.d.ts +5 -0
- package/dist/shared/flight-requests/YearLevelRequests.d.ts +4 -0
- package/dist/shared/hooks/useWatchCollectionAsMapReducer.d.ts +13 -0
- package/dist/shared/index.d.ts +7 -0
- package/dist/shared/interfaces/mocks/MockUserType.d.ts +0 -0
- package/dist/shared/layouts/embed-layout/EmbedLayoutCompnent.d.ts +8 -0
- package/dist/shared/layouts/embed-layut/EmbedLayoutCompnent.d.ts +8 -0
- package/dist/shared/layouts/embed-layut/EmbedLayoutView.d.ts +17 -0
- package/dist/shared/services/CombineUploadsService.d.ts +44 -0
- package/dist/shared/services/FlightVideoUploadDataService.d.ts +33 -0
- package/dist/shared/services/VideoUploadService.d.ts +12 -0
- package/dist/shared/views/backbone-wrapper/BackboneWrapperView.d.ts +8 -0
- package/dist/shared/views/edit-upload/EditUploadView.d.ts +7 -0
- package/dist/shared/views/edit-video/EditVideoDetails.d.ts +19 -0
- package/dist/shared/views/my-uploads/CombineUploadsService.d.ts +17 -0
- package/dist/shared/views/my-uploads/DismissableAlert.d.ts +2 -0
- package/dist/shared/views/my-uploads/MyUploadsView.d.ts +6 -0
- package/dist/shared/views/my-uploads/UploadingItem.d.ts +7 -0
- package/dist/shared/views/my-uploads/useGetUploadingItems.d.ts +3 -0
- package/dist/shared/views/play/components/BackButton.d.ts +2 -0
- package/dist/shared/views/play/components/Badges.d.ts +7 -0
- package/dist/shared/views/play/components/Buttons.d.ts +2 -0
- package/dist/shared/views/play/components/PlayPage.d.ts +7 -0
- package/dist/shared/views/play/components/VideoTitle.d.ts +7 -0
- package/dist/shared/views/play/components/index.d.ts +3 -0
- package/package.json +6 -6
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { MockStudent, MockClassroom } from 'apps/user-manager/interfaces';
|
|
3
|
+
interface ManageClassroomStudentListItemProps {
|
|
4
|
+
classroom: MockClassroom;
|
|
5
|
+
student: MockStudent;
|
|
6
|
+
onToggleCheckbox: () => void;
|
|
7
|
+
checked: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function ManageClassroomStudentListItem(props: ManageClassroomStudentListItemProps): JSX.Element;
|
|
10
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { DialogOptions, PopupViewProps } from '@clickview/shared';
|
|
3
|
+
interface DialogViewProps extends DialogOptions {
|
|
4
|
+
onDone?: () => void;
|
|
5
|
+
onFail?: () => void;
|
|
6
|
+
}
|
|
7
|
+
declare type PropTypes = React.PropsWithChildren<DialogViewProps & PopupViewProps>;
|
|
8
|
+
export declare function DialogView(props: PropTypes): React.ReactElement;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Core, HashObject } from '@clickview/common';
|
|
2
|
+
import { EmbedLayoutView } from 'shared/layouts';
|
|
3
|
+
declare class EmbedAppRouter extends Core.AppRouter {
|
|
4
|
+
protected get channelName(): string;
|
|
5
|
+
protected get appRoutes(): HashObject;
|
|
6
|
+
}
|
|
7
|
+
export declare class EmbedApplication extends Core.Application {
|
|
8
|
+
layout: EmbedLayoutView;
|
|
9
|
+
get name(): string;
|
|
10
|
+
protected get layoutOptions(): Core.LayoutOptions<Core.LayoutViewOptions>;
|
|
11
|
+
get channelName(): string;
|
|
12
|
+
static get router(): typeof EmbedAppRouter;
|
|
13
|
+
embedVideo(shortCode: string): void;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './default';
|
package/dist/apps/user-manager/components/edit-uploaded-student-popup/EditUploadedStudentPopup.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PopupViewProps } from '@clickview/shared';
|
|
3
|
+
import { MockStudent } from 'apps/user-manager/interfaces';
|
|
4
|
+
interface EditUploadedStudentPopupProps {
|
|
5
|
+
student: MockStudent;
|
|
6
|
+
}
|
|
7
|
+
export declare function EditUploadedStudentPopup(props: EditUploadedStudentPopupProps & PopupViewProps): JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { User, YearLevelCollection } from '@clickview/shared';
|
|
3
|
+
export declare const UserValidationSchema: import("yup").ObjectSchema<import("yup").Shape<object, {
|
|
4
|
+
name: string;
|
|
5
|
+
surname: string;
|
|
6
|
+
email: string;
|
|
7
|
+
yearLevel: number;
|
|
8
|
+
}>>;
|
|
9
|
+
export interface EditUserRequest {
|
|
10
|
+
name: string;
|
|
11
|
+
surname: string;
|
|
12
|
+
email: string;
|
|
13
|
+
yearLevel: string;
|
|
14
|
+
}
|
|
15
|
+
interface EditUserDetailsProps {
|
|
16
|
+
user?: User;
|
|
17
|
+
saveUser: (data: EditUserRequest) => void;
|
|
18
|
+
onClickCancel: () => void;
|
|
19
|
+
yearLevels: YearLevelCollection;
|
|
20
|
+
}
|
|
21
|
+
export declare function EditUserDetails(props: EditUserDetailsProps): React.ReactElement;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { MockStudent } from 'apps/user-manager/views/school-student-manager/SchoolStudentManagerView';
|
|
3
|
+
interface ManageStudentItemProps {
|
|
4
|
+
student: MockStudent;
|
|
5
|
+
isChecked: boolean;
|
|
6
|
+
onToggleCheckbox: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function ManageStudentItem(props: ManageStudentItemProps): JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { MockStudent } from 'apps/user-manager/views/school-student-manager/SchoolStudentManagerView';
|
|
3
|
+
interface ManageStudentsListProps {
|
|
4
|
+
students: MockStudent[];
|
|
5
|
+
}
|
|
6
|
+
export declare function ManageStudentsList(props: ManageStudentsListProps): JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Core, Cursors } from '@clickview/common';
|
|
3
|
+
interface SmallPaginationProps {
|
|
4
|
+
type: 'cursor' | 'local';
|
|
5
|
+
appLink?: Core.AppLink;
|
|
6
|
+
onClickNext?: () => void;
|
|
7
|
+
onClickBack?: () => void;
|
|
8
|
+
currentPage?: number;
|
|
9
|
+
totalPages?: number;
|
|
10
|
+
cursors?: Cursors;
|
|
11
|
+
}
|
|
12
|
+
export declare function SmallPagination(props: SmallPaginationProps): JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Flight } from '@clickview/common';
|
|
2
|
+
import { EditUserRequest } from 'apps/user-manager/interfaces';
|
|
3
|
+
export declare const SchoolUserRequests2: {
|
|
4
|
+
getStudent(id: string): Flight.SimulatedRequest;
|
|
5
|
+
getTeacher(id: string): Flight.SimulatedRequest;
|
|
6
|
+
createStudent(user: EditUserRequest, success?: () => void, error?: () => void): Flight.SimulatedRequest;
|
|
7
|
+
createTeacher(user: EditUserRequest, success?: () => void, error?: () => void): Flight.SimulatedRequest;
|
|
8
|
+
updateStudent(user: EditUserRequest, success?: () => void, error?: () => void): Flight.SimulatedRequest;
|
|
9
|
+
updateTeacher(user: EditUserRequest, success?: () => void, error?: () => void): Flight.SimulatedRequest;
|
|
10
|
+
getUserRoles(): Flight.SimulatedRequest;
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './UserRoleCollection';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './UserRole';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './create-student/CreateStudentView';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ReducerActions } from '@clickview/common';
|
|
3
|
+
import { MockStudent } from 'apps/user-manager/interfaces';
|
|
4
|
+
declare type ActionTypes = 'init' | 'save' | 'delete';
|
|
5
|
+
interface InvalidStudentHash {
|
|
6
|
+
[lookupId: string]: {
|
|
7
|
+
student: MockStudent;
|
|
8
|
+
errors: {
|
|
9
|
+
name?: string;
|
|
10
|
+
surname?: string;
|
|
11
|
+
email?: string;
|
|
12
|
+
yearLevel?: {
|
|
13
|
+
name: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export interface StudentUploadReducerState {
|
|
19
|
+
students: MockStudent[];
|
|
20
|
+
invalidStudents: InvalidStudentHash;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Context
|
|
24
|
+
*/
|
|
25
|
+
interface StudentUploadContextType {
|
|
26
|
+
state: StudentUploadReducerState;
|
|
27
|
+
dispatch: React.Dispatch<ReducerActions<ActionTypes, any>>;
|
|
28
|
+
}
|
|
29
|
+
export declare const StudentUploadContext: import("react").Context<StudentUploadContextType>;
|
|
30
|
+
/**
|
|
31
|
+
* Reducer
|
|
32
|
+
*/
|
|
33
|
+
export declare function StudentUploadReducer(state: StudentUploadReducerState, action: ReducerActions<ActionTypes, any>): any;
|
|
34
|
+
export {};
|