@clickview/lite 0.0.10-rc.0 → 0.0.11-dev.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.
Files changed (61) hide show
  1. package/dist/apps/default/LiteDefaultApplication.d.ts +1 -0
  2. package/dist/apps/default/views/mock-testing/MockRequests.d.ts +12 -0
  3. package/dist/apps/default/views/mock-testing/MockView.d.ts +2 -0
  4. package/dist/apps/search/components/filter-actions/FilterActions.d.ts +2 -0
  5. package/dist/apps/search/components/filter-types/checkbox-filter/CheckboxFilter.d.ts +2 -0
  6. package/dist/apps/search/components/filter-types/dropdown-filter/DropdownFilter.d.ts +7 -0
  7. package/dist/apps/search/components/filter-types/index.d.ts +3 -1
  8. package/dist/apps/search/components/filter-types/radio-filter/year-level/YearLevelRadioFilter.d.ts +7 -0
  9. package/dist/apps/search/components/scoped-search-bar/ScopedSearchBar.d.ts +18 -0
  10. package/dist/apps/search/components/scoped-search-bar/partial-loading/PartialScopedSearchBar.d.ts +2 -0
  11. package/dist/apps/search/components/search-filters/PartialSearchFilters.d.ts +6 -1
  12. package/dist/apps/search/components/search-filters/SearchFilters.d.ts +5 -1
  13. package/dist/apps/search/flight-requests/SearchRequests.d.ts +1 -1
  14. package/dist/apps/search/interfaces/SearchFilter.d.ts +7 -5
  15. package/dist/apps/search/reducers/FilterReducer.d.ts +14 -10
  16. package/dist/apps/search/utils/FilterHelper.d.ts +38 -6
  17. package/dist/apps/user-manager/LiteUserManagerApplication.d.ts +16 -0
  18. package/dist/apps/user-manager/components/edit-student-details/EditStudentDetails.d.ts +10 -0
  19. package/dist/apps/user-manager/components/edit-teacher-details/EditTeacherDetails.d.ts +10 -0
  20. package/dist/apps/user-manager/components/index.d.ts +4 -0
  21. package/dist/apps/user-manager/components/manage-users-list/ManageUsersList.d.ts +8 -0
  22. package/dist/apps/user-manager/components/manage-users-list/partial-loading/PartialManageUsersList.d.ts +2 -0
  23. package/dist/apps/user-manager/components/manage-users-list/students/ManageStudentItem.d.ts +9 -0
  24. package/dist/apps/user-manager/components/manage-users-list/teachers/ManageTeacherItem.d.ts +9 -0
  25. package/dist/apps/user-manager/components/user-details-form/UserDetailsForm.d.ts +11 -0
  26. package/dist/apps/user-manager/components/year-level-select/YearLevelSelect.d.ts +9 -0
  27. package/dist/apps/user-manager/enums/index.d.ts +1 -0
  28. package/dist/apps/user-manager/enums/mocks/MockUserType.d.ts +4 -0
  29. package/dist/apps/user-manager/flight-requests/ClassroomRequests.d.ts +4 -0
  30. package/dist/apps/user-manager/flight-requests/SchoolUserRequests.d.ts +21 -0
  31. package/dist/apps/user-manager/flight-requests/YearLevelRequests.d.ts +4 -0
  32. package/dist/apps/user-manager/interfaces/EditUserRequest.d.ts +8 -0
  33. package/dist/apps/user-manager/interfaces/index.d.ts +6 -0
  34. package/dist/apps/user-manager/interfaces/mocks/MockClassroom.d.ts +3 -0
  35. package/dist/apps/user-manager/interfaces/mocks/MockStudent.d.ts +7 -0
  36. package/dist/apps/user-manager/interfaces/mocks/MockTeacher.d.ts +5 -0
  37. package/dist/apps/user-manager/interfaces/mocks/MockUserRole.d.ts +3 -0
  38. package/dist/apps/user-manager/interfaces/mocks/MockYearLevel.d.ts +3 -0
  39. package/dist/apps/user-manager/validation/index.d.ts +1 -0
  40. package/dist/apps/user-manager/validation/user-validation/UserValidationSchema.d.ts +14 -0
  41. package/dist/apps/user-manager/views/create-student/CreateStudentView.d.ts +6 -0
  42. package/dist/apps/user-manager/views/create-teacher/CreateTeacherView.d.ts +6 -0
  43. package/dist/apps/user-manager/views/edit-student/EditStudentView.d.ts +7 -0
  44. package/dist/apps/user-manager/views/edit-teacher/EditTeacherView.d.ts +7 -0
  45. package/dist/apps/user-manager/views/remove-user/RemoveUserView.d.ts +8 -0
  46. package/dist/apps/user-manager/views/school-student-manager/SchoolStudentManagerView.d.ts +7 -0
  47. package/dist/apps/user-manager/views/school-student-manager/empty-state/SchoolStudentManagerEmptyState.d.ts +2 -0
  48. package/dist/apps/user-manager/views/school-teacher-manager/SchoolTeacherManagerView.d.ts +11 -0
  49. package/dist/apps/user-manager/views/school-teacher-manager/empty-state/SchoolTeacherManagerEmptyState.d.ts +2 -0
  50. package/dist/bundle.js +1 -1
  51. package/dist/en.json +1 -1
  52. package/dist/index.d.ts +16 -0
  53. package/dist/lite-app.css +5 -1
  54. package/dist/shared/constants/LiteActions.d.ts +8 -0
  55. package/dist/shared/constants/LiteRadioChannels.d.ts +1 -0
  56. package/dist/shared/flight-requests/VideoRequests.d.ts +7 -0
  57. package/dist/shared/hooks/index.d.ts +1 -0
  58. package/dist/shared/hooks/useBulkCheckboxManager.d.ts +17 -0
  59. package/dist/shared/hooks/useVideoMixin.d.ts +2 -0
  60. package/package.json +7 -7
  61. package/typings/utils/imports.d.ts +6 -1
package/dist/en.json CHANGED
@@ -1 +1 @@
1
- {"search":{"filterActions":{"apply":"Apply","reset":"Reset"},"resetButton":{"reset":"Reset Filters"},"searchFilters":{"heading":"Filters","reset":"Reset Filters"},"utils":{"yearLevels":"Year Levels","types":"Types","ratings":"Ratings","interactives":"Interactives","clips":"Clips","moreFilters":"More Filters","interactivesDescription":"Only display videos with interactives","clipsDescription":"Only display videos with clips","allTypes":"All Types","topics":"Topics","playlists":"Playlist","series":"Series","videos":"Videos"},"searchResults":{"heading":"Search Results","playlists":"Playlists","series":"Series","relatedPlaylists":"Related Playlists","relatedSeries":"Related Series"}},"shared":{"clips":{"clips":"Clips","create":"Create a clip","empty":"Only want a part of the video? Create a clip by trimming it down to the sections you want."},"immersiveReader":{"titleFallback":"Immersive Reader"},"interactives":{"interactives":"Interactives","create":"Create interactive","preview":"Preview Questions","empty":"Create your own questions to put into this video!"},"playPage":{"classroomMode":"Classroom Mode","createInteractive":"Create interactive video","createClip":"Create clip","more":"More","share":"Share","addToPlaylist":"Add to Playlist","favourite":"Favourite","relatedVideos":"Related Videos"},"synopsis":{"showFullDescription":"Show full description","videoAtAGlance":"Video at a glance..."},"uploadFileSelect":{"uploadVideo":"Upload a video"},"userOptions":{"myProfile":"My Profile","myPreferences":"My Preferences","signOut":"Sign Out"},"videoDetails":{"details":"Details","rating":"Rating: %{code}","productionYear":"Production Year: %{year}","productionCompanies":"Production Companies","distributors":"Distributors","tags":"Tags:","description":"Description","showGlance":"See video at a glance"},"notFound":{"title":"Page not found"},"dragMask":{"message":"Drop files here to begin uploading"},"uploadService":{"navLock":"Are you sure you want to leave? Your upload progress will be lost."},"favoriteVideos":{"header":"Favourited Videos"},"leftNav":{"home":"Home","myPlaylists":"My Playlists","myUploads":"My Uploads","following":"Following","favouritedVideos":"Favourited Videos","myClassrooms":"My Classrooms","watchHistory":"Watch History"},"myUploads":{"header":"My Uploads","description":"Here we store all the videos that you upload on to ClickView!","share":"Share","edit":"Edit","alertMessage":"Drag a video onto this window <strong>at any time</strong> to begin uploading.","alertSecondaryMessage":"(You can select more than 1 video at a time)"},"series":{"dashboard":"Dashboard","series":"Series: %{seriesName}","share":"Share","follow":"Follow"}},"lite":{"uploadItem":{"uploading":"UPLOADING","processing":"PROCESSING","error":"ERROR PROCESSING"}}}
1
+ {"search":{"filterActions":{"apply":"Apply","reset":"Reset"},"resetButton":{"reset":"Reset Filters"},"searchFilters":{"heading":"Filters","reset":"Reset Filters"},"utils":{"yearLevel":"Year Level","objectTypes":"Type","ratings":"Ratings","interactives":"Interactives","clips":"Clips","classroom":"Classroom","moreFilters":"More Filters","interactivesDescription":"Only display videos with interactives","clipsDescription":"Only display videos with clips","allTypes":"All Types","topics":"Topics","playlists":"Playlist","series":"Series","videos":"Videos","firstNameAToZ":"First Name: A - Z","firstNameZToA":"First Name: Z - A","surnameAToZ":"Last Name: A - Z","surnameZToA":"Last Name: Z - A"},"searchResults":{"heading":"Search Results","playlists":"Playlists","series":"Series","relatedPlaylists":"Related Playlists","relatedSeries":"Related Series"}},"userManager":{"manageStudents":{"addNew":"Add new student","level":"Level: ","remove":"Remove student","edit":"Edit student","activate":"Activate","enableProfile":"Enable profile"},"manageTeachers":{"addNew":"Add new teacher","remove":"Remove teacher","edit":"Edit teacher","activate":"Activate","enableProfile":"Enable profile"},"studentDetailsForm":{"firstNamePlaceholder":"Enter student's first name","lastNamePlaceholder":"Enter student's last name","emailAddressPlaceholder":"Enter student's email"},"teacherDetailsForm":{"firstNamePlaceholder":"Enter user's first name","lastNamePlaceholder":"Enter user's last name","emailAddressPlaceholder":"Enter user's email"},"userDetailsForm":{"cancel":"Cancel","firstName":"First Name","lastName":"Last Name","yearLevel":"Year Level","emailAddress":"Email Address","userRole":"Role"},"userValidation":{"nameExceeds":"First name is too long","nameRequired":"Must provide a first name","surnameExceeds":"Surname is too long","surnameRequired":"Must provide a surname","emailExceeds":"Email address is too long","emailRequired":"Must provide an email address","emailValid":"Please provide a valid email address","yearLevelRequired":"Must provide a year level","userRoleRequired":"Must choose a role"},"createStudent":{"popupTitle":"Create new student","success":"Successfully created student","error":"Could not create this student"},"createTeacher":{"popupTitle":"Create new user","success":"Successfully created user","error":"Could not create this user"},"editStudent":{"popupTitle":"Edit student","success":"Successfully updated student","error":"Could not update this student"},"editTeacher":{"popupTitle":"Edit user","success":"Successfully updated user","error":"Could not update this user"},"removeUser":{"titleStudents":"Remove Students","titleTeachers":"Remove Teachers","confirmStudents":"Are you sure you want to remove <strong>%{smart_count}</strong> student from your school? |||| Are you sure you want to remove <strong>%{smart_count}</strong> students from your school?","confirmTeachers":"Are you sure you want to remove <strong>%{smart_count}</strong> teacher from your school? |||| Are you sure you want to remove <strong>%{smart_count}</strong> teachers from your school?","remove":"Remove","cancel":"Cancel"},"schoolStudentManagerEmptyState":{"heading":"Where is everyone?","info":"Add students into your schools ClickView database to make sharing and creating classrooms possible!","videoLink":"How do I add students?","addNew":"Add new student"},"schoolStudentManager":{"heading":"School Student Manager","entries":"Showing %{smart_count} entry |||| Showing %{smart_count} entries","searchBarPlaceholder":"Search students...","yearLevelFilter":"Year Level"},"schoolTeacherManagerEmptyState":{"heading":"Where is everyone?","info":"Add teachers into your schools ClickView database to make sharing and creating classrooms possible!","videoLink":"How do I add teachers?","addNew":"Add new teacher"},"schoolTeacherManager":{"heading":"School Teacher Manager","entries":"Showing %{smart_count} entry |||| Showing %{smart_count} entries","searchBarPlaceholder":"Search teachers..."}},"shared":{"clips":{"clips":"Clips","create":"Create a clip","empty":"Only want a part of the video? Create a clip by trimming it down to the sections you want."},"immersiveReader":{"titleFallback":"Immersive Reader"},"interactives":{"interactives":"Interactives","create":"Create interactive","preview":"Preview Questions","empty":"Create your own questions to put into this video!"},"playPage":{"classroomMode":"Classroom Mode","createInteractive":"Create interactive video","createClip":"Create clip","more":"More","share":"Share","addToPlaylist":"Add to Playlist","favourite":"Favourite","relatedVideos":"Related Videos"},"synopsis":{"showFullDescription":"Show full description","videoAtAGlance":"Video at a glance..."},"uploadFileSelect":{"uploadVideo":"Upload a video"},"userOptions":{"myProfile":"My Profile","myPreferences":"My Preferences","signOut":"Sign Out"},"videoDetails":{"details":"Details","rating":"Rating: %{code}","productionYear":"Production Year: %{year}","productionCompanies":"Production Companies","distributors":"Distributors","tags":"Tags:","description":"Description","showGlance":"See video at a glance"},"notFound":{"title":"Page not found"},"dragMask":{"message":"Drop files here to begin uploading"},"uploadService":{"navLock":"Are you sure you want to leave? Your upload progress will be lost."},"favoriteVideos":{"header":"Favourited Videos"},"leftNav":{"home":"Home","myPlaylists":"My Playlists","myUploads":"My Uploads","following":"Following","favouritedVideos":"Favourited Videos","myClassrooms":"My Classrooms","watchHistory":"Watch History"},"myUploads":{"header":"My Uploads","description":"Here we store all the videos that you upload on to ClickView!","share":"Share","edit":"Edit","alertMessage":"Drag a video onto this window <strong>at any time</strong> to begin uploading.","alertSecondaryMessage":"(You can select more than 1 video at a time)"},"series":{"dashboard":"Dashboard","series":"Series: %{seriesName}","share":"Share","follow":"Follow"}},"lite":{"uploadItem":{"uploading":"UPLOADING","processing":"PROCESSING","error":"ERROR PROCESSING"}}}
package/dist/index.d.ts CHANGED
@@ -3,6 +3,21 @@ import './apps/search/components/reset-button/reset-button.lang.json';
3
3
  import './apps/search/components/search-filters/search-filters.lang.json';
4
4
  import './apps/search/utils/search-utils.lang.json';
5
5
  import './apps/search/views/search-results/search-results.lang.json';
6
+ import './apps/user-manager/components/manage-users-list/students/manage-students.lang.json';
7
+ import './apps/user-manager/components/manage-users-list/teachers/manage-teachers.lang.json';
8
+ import './apps/user-manager/components/user-details-form/student-details-form.lang.json';
9
+ import './apps/user-manager/components/user-details-form/teacher-details-form.lang.json';
10
+ import './apps/user-manager/components/user-details-form/user-details-form.lang.json';
11
+ import './apps/user-manager/validation/user-validation/user-validation.lang.json';
12
+ import './apps/user-manager/views/create-student/create-student.lang.json';
13
+ import './apps/user-manager/views/create-teacher/create-teacher.lang.json';
14
+ import './apps/user-manager/views/edit-student/edit-student.lang.json';
15
+ import './apps/user-manager/views/edit-teacher/edit-teacher.lang.json';
16
+ import './apps/user-manager/views/remove-user/remove-user.lang.json';
17
+ import './apps/user-manager/views/school-student-manager/empty-state/school-student-manager-empty-state.lang.json';
18
+ import './apps/user-manager/views/school-student-manager/school-student-manager.lang.json';
19
+ import './apps/user-manager/views/school-teacher-manager/empty-state/school-teacher-manager-empty-state.lang.json';
20
+ import './apps/user-manager/views/school-teacher-manager/school-teacher-manager.lang.json';
6
21
  import './shared/components/clips/clips.lang.json';
7
22
  import './shared/components/immersive-reader/immersive-reader.lang.json';
8
23
  import './shared/components/interactives/interactives.lang.json';
@@ -34,6 +49,7 @@ export * from './apps/dashboard/LiteDashboardApplication';
34
49
  export * from './apps/subjects/LiteSubjectApplication';
35
50
  export * from './apps/search/LiteSearchApplication';
36
51
  export * from './apps/content-updates/LiteContentUpdatesApplication';
52
+ export * from './apps/user-manager/LiteUserManagerApplication';
37
53
  export * from './apps/search/constants/SearchAppVariables';
38
54
  export * from './apps/notifications/LiteNotificationsApplication';
39
55
  export * from './apps/notifications/constants/NotificationsAppVariables';
package/dist/lite-app.css CHANGED
@@ -28,7 +28,11 @@ body{background-color:#fff}
28
28
 
29
29
  ._2zHGT{height:1.5rem;width:3.5rem}._3Gy7Y{height:2.2rem;width:5rem}
30
30
 
31
- ._2LJ1G{font-weight:500}._2LJ1G::after{display:none}._13K5j{min-width:15rem}
31
+ ._2LJ1G{font-weight:500}._2OStB::after{display:none}._13K5j{min-width:10rem}
32
32
 
33
33
  ._1c2gx{height:2rem;width:13rem}
34
34
 
35
+ .Atgxo{background-color:#D7D7D7}
36
+
37
+ .Pt-8R{position:absolute;top:50%;right:.3125rem;-webkit-transform:translateY(-50%);transform:translateY(-50%)}
38
+
@@ -42,4 +42,12 @@ export declare const Actions: {
42
42
  CONTENT_UPDATES: string;
43
43
  CLASSIFICATION_UPDATE: string;
44
44
  };
45
+ UserManager: {
46
+ STUDENTS: string;
47
+ REMOVE_USERS: string;
48
+ NEW_STUDENT: string;
49
+ EDIT_STUDENT: string;
50
+ NEW_TEACHER: string;
51
+ EDIT_TEACHER: string;
52
+ };
45
53
  };
@@ -7,4 +7,5 @@ export declare const AppChannels: {
7
7
  NOTIFICATIONS: string;
8
8
  SEARCH: string;
9
9
  CONTENT_UPDATES: string;
10
+ USER_MANAGER: string;
10
11
  };
@@ -6,4 +6,11 @@ export declare const VideoRequests: {
6
6
  videos(ids: string[], success?: (videos: Video[]) => void): Flight.Request;
7
7
  updateVideo(data: UpdateVideoRequest, success?: () => void): Flight.Request;
8
8
  favoriteVideos(cursor: string): Flight.Request;
9
+ /**
10
+ * This is simply an example to show the prototype for useVideoMixin
11
+ * eventually there will be endpoints in domain that let us fetch members
12
+ * without fetching the objects properties, so we can fetch stuff like
13
+ * hasInteractives and isFavourited as subsequent calls
14
+ */
15
+ videoRatings(ids: string[]): Flight.Request;
9
16
  };
@@ -1 +1,2 @@
1
1
  export * from './useWindowListeners';
2
+ export * from './useVideoMixin';
@@ -0,0 +1,17 @@
1
+ import { HashObject } from '@clickview/common';
2
+ interface BulkCheckboxManagerOptions {
3
+ preselectedIds?: string[];
4
+ idField?: string;
5
+ }
6
+ /**
7
+ * @param collection - The collection you are keeping track of with checkboxes
8
+ * @param options - See interface above
9
+ */
10
+ export declare const useBulkCheckboxManager: (collection: HashObject<any>[], options?: BulkCheckboxManagerOptions) => {
11
+ onToggleBulk: () => void;
12
+ onToggleItem: (id: string) => void;
13
+ getSelected: () => string[];
14
+ isChecked: (item: string | HashObject<string>) => boolean;
15
+ bulkChecked: boolean;
16
+ };
17
+ export {};
@@ -0,0 +1,2 @@
1
+ import { VideoCollection } from '@clickview/shared';
2
+ export declare function useVideoMixin(videos: VideoCollection): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clickview/lite",
3
- "version": "0.0.10-rc.0",
3
+ "version": "0.0.11-dev.0",
4
4
  "description": "ClickView Lite",
5
5
  "main": "dist/bundle.js",
6
6
  "types": "dist/index.d.ts",
@@ -20,16 +20,16 @@
20
20
  "author": "Joshua Taylor, Shale Kuzmanovski, Matt Trengrove, Michael McDonnell",
21
21
  "license": "ISC",
22
22
  "devDependencies": {
23
- "@clickview/tooling": "0.0.14",
23
+ "@clickview/tooling": "0.0.15-dev.0",
24
24
  "@types/marked": "0.7.3",
25
25
  "@types/react-custom-scrollbars": "4.0.6"
26
26
  },
27
27
  "dependencies": {
28
- "@clickview/common": "1.0.5",
29
- "@clickview/dashboard": "1.0.8",
30
- "@clickview/playlists": "1.0.9-rc.0",
31
- "@clickview/shared": "1.0.8",
32
- "@clickview/styles": "1.0.4",
28
+ "@clickview/common": "1.0.6-dev.0",
29
+ "@clickview/dashboard": "1.0.9-dev.0",
30
+ "@clickview/playlists": "1.0.10-dev.0",
31
+ "@clickview/shared": "1.0.9-dev.0",
32
+ "@clickview/styles": "1.0.5-dev.0",
33
33
  "@microsoft/immersive-reader-sdk": "1.0.0",
34
34
  "marked": "0.8.0",
35
35
  "react-custom-scrollbars": "4.2.1",
@@ -6,4 +6,9 @@
6
6
  declare module '*.handlebars';
7
7
  declare module '*.hbs';
8
8
  declare module '*.scss';
9
- declare module '*.svg';
9
+ declare module '*.svg';
10
+
11
+ declare module "*.json" {
12
+ export const value: any;
13
+ export default value;
14
+ }