@clickview/player 0.0.5 → 0.0.6-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 (49) hide show
  1. package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +21 -2
  2. package/dist/libs/common/src/backbone/core/AppLink.d.ts +0 -4
  3. package/dist/libs/common/src/backbone/interfaces/Xhr.d.ts +2 -2
  4. package/dist/libs/shared/src/apps/notifications/enums/NotificationType.d.ts +2 -1
  5. package/dist/libs/shared/src/enums/MasterType.d.ts +1 -0
  6. package/dist/libs/shared/src/images/svg/ImportedSvgs.d.ts +4 -1
  7. package/dist/libs/shared/src/images/svg/objects/index.d.ts +2 -1
  8. package/dist/libs/shared/src/images/svg/status/index.d.ts +2 -1
  9. package/dist/libs/shared/src/interfaces/app-variables/BaseNotificationsAppVariables.d.ts +2 -0
  10. package/dist/libs/shared/src/interfaces/models/User.d.ts +13 -1
  11. package/dist/libs/shared/src/interfaces/models/interactive-results/StudentResult.d.ts +2 -1
  12. package/dist/libs/shared/src/utils/ImageHelper.d.ts +2 -1
  13. package/dist/player-app.css +23 -21
  14. package/dist/player-app.js +13 -13
  15. package/dist/projects/player/src/components/chapter-bar-items/chapter-bar-item.d.ts +1 -0
  16. package/dist/projects/player/src/components/chapter-bar-items/chapter-bar-items.d.ts +1 -0
  17. package/dist/projects/player/src/components/cog-button/cog-button.d.ts +0 -1
  18. package/dist/projects/player/src/components/cog-button/collapsible-heading-menu-item.d.ts +15 -0
  19. package/dist/projects/player/src/components/collapserator/collapserator.d.ts +1 -1
  20. package/dist/projects/player/src/components/keyboard-shortcuts-button/keyboard-shortcuts-button.d.ts +1 -0
  21. package/dist/projects/player/src/components/menu/menu.d.ts +7 -0
  22. package/dist/projects/player/src/components/play-pause-feedback/play-pause-feedback.d.ts +1 -0
  23. package/dist/projects/player/src/components/play-toggle/play-toggle.d.ts +1 -0
  24. package/dist/projects/player/src/components/player/player.d.ts +4 -0
  25. package/dist/projects/player/src/components/subs-caps-button/off-text-track-menu-item.d.ts +1 -0
  26. package/dist/projects/player/src/components/subs-caps-button/subs-caps-button.d.ts +1 -0
  27. package/dist/projects/player/src/components/subs-caps-button/subtitle-search-menu-item.d.ts +2 -1
  28. package/dist/projects/player/src/components/subtitle-search-button/subtitle-search-button.d.ts +2 -0
  29. package/dist/projects/player/src/components/subtitle-search-button/subtitle-search-input.d.ts +1 -0
  30. package/dist/projects/player/src/players/base-player.d.ts +13 -2
  31. package/dist/projects/player/src/players/interactive-player.d.ts +4 -0
  32. package/dist/projects/player/src/players/player.d.ts +0 -5
  33. package/dist/projects/player/src/plugins/fullscreen-on-rotate-plugin/fullscreen-on-rotate-plugin.d.ts +29 -0
  34. package/dist/projects/player/src/plugins/interactive-plugin/hooks/useStateManager.d.ts +2 -0
  35. package/dist/projects/player/src/plugins/interactive-plugin/interactive-plugin.d.ts +2 -0
  36. package/dist/projects/player/src/plugins/next-video-plugin/next-video-plugin.d.ts +1 -1
  37. package/dist/projects/player/src/plugins/open-externally-plugin/open-externally-plugin.d.ts +30 -0
  38. package/dist/projects/player/src/plugins/persist-subtitle-settings-plugin/persist-subtitle-settings-plugin.d.ts +0 -1
  39. package/dist/projects/player/src/plugins/persist-volume-plugin/persist-volume-plugin.d.ts +25 -0
  40. package/dist/projects/player/src/plugins/picture-in-picture-plugin/picture-in-picture-plugin.d.ts +0 -1
  41. package/dist/projects/player/src/plugins/progress-reporter-plugin/progress-reporter-plugin.d.ts +1 -0
  42. package/dist/projects/player/src/plugins/progressive-files-plugin/progressive-files-plugin.d.ts +3 -0
  43. package/dist/projects/player/src/plugins/touch-controls-plugin/touch-controls-plugin.d.ts +40 -0
  44. package/dist/projects/player/src/services/analytics-service.d.ts +5 -1
  45. package/package.json +70 -70
  46. package/dist/projects/player/src/plugins/example-plugin/components/example-button/example-button.d.ts +0 -1
  47. package/dist/projects/player/src/plugins/example-plugin/example-plugin.d.ts +0 -2
  48. package/dist/projects/player/src/utils/scrollbar-helper.d.ts +0 -6
  49. /package/dist/projects/player/src/{plugins/example-plugin/components/example-react-button/example-react-button.d.ts → components/seek-bar/seek-bar.d.ts} +0 -0
@@ -35,6 +35,7 @@ export declare enum UserAction {
35
35
  Filter = "cv_product_search_filter",
36
36
  SearchLanding = "cv_product_search_landing",
37
37
  Share = "cv_product_share",
38
+ Unshare = "cv_product_unshare",
38
39
  WorkspaceAdd = "cv_product_tv_add",
39
40
  /**
40
41
  * The following events are unlisted in CollectionApi
@@ -67,6 +68,8 @@ export declare enum UserAction {
67
68
  ChangePassword = "cv_product_change_password",
68
69
  Export = "cv_product_export",
69
70
  SendEmail = "cv_product_send_email",
71
+ Publish = "cv_product_publish",
72
+ Answer = "cv_product_submit",
70
73
  SetAccess = "cv_product_set_access",
71
74
  AddToLocalCache = "cv_product_add_to_lc",
72
75
  /**
@@ -90,6 +93,7 @@ export declare enum EntityType {
90
93
  Chapter = "chapter",
91
94
  Restriction = "restriction",
92
95
  Interactive = "interactive",
96
+ Interaction = "interaction",
93
97
  PDF = "pdf",
94
98
  CustomerSetting = "customer_setting",
95
99
  UserSetting = "user_setting",
@@ -166,9 +170,14 @@ export declare enum LocationContext {
166
170
  PreviewInteractive = "preview_interactive",
167
171
  PreviewInteractiveQuestions = "preview_interactive_questions",
168
172
  EditInteractive = "edit_interactive",
173
+ EditInteractiveDetails = "edit_interactive_details",
169
174
  PlaySharedInteractive = "play_shared_interactive",
170
175
  InteractiveListItem = "interactive_list_item",
171
176
  DeleteInteractive = "delete_interactive",
177
+ NewInteractive = "new_interactive",
178
+ CopyInteractive = "copy_interactive",
179
+ UnpublishInteractive = "unpublish_interactive",
180
+ ShareInteractive = "share_interactive",
172
181
  PlayPage = "play_page",
173
182
  Player = "player",
174
183
  FloatingPlayer = "floating_player",
@@ -207,6 +216,10 @@ export declare enum OperationDescriptor {
207
216
  Bulk = "bulk",
208
217
  All = "all"
209
218
  }
219
+ export declare enum PublishDescriptor {
220
+ Publish = "publish",
221
+ Unpublish = "unpublish"
222
+ }
210
223
  export declare enum EmailDescriptor {
211
224
  ActivateUser = "activate_user"
212
225
  }
@@ -314,16 +327,22 @@ export declare enum AssocDescriptor {
314
327
  User = "user",
315
328
  Playlist = "playlist",
316
329
  Link = "link",
317
- Avatar = "avatar"
330
+ Avatar = "avatar",
331
+ Clip = "clip",
332
+ Interactive = "interactive"
318
333
  }
319
334
  export declare enum ToggleDescriptor {
320
335
  On = "on",
321
336
  Off = "off"
322
337
  }
338
+ export declare enum InteractiveSessionDescriptor {
339
+ ContinueSession = "continue_session",
340
+ NewSession = "new_session"
341
+ }
323
342
  /**
324
343
  * Action descriptors give further context to UserActions
325
344
  */
326
- export declare type ActionDescriptor = OperationDescriptor | SortDescriptor | FilterDescriptor | DirectSearchDescriptor | PageDescriptor | PlaybackDescriptor | PlayerDescriptor | CustomerSettingDescriptor | SuggestionDescriptor | InteractionTypeDescriptor | AssocDescriptor | ClickDescriptor | ToggleDescriptor | VideoActionDescriptor | EmailDescriptor;
345
+ export declare type ActionDescriptor = OperationDescriptor | SortDescriptor | FilterDescriptor | DirectSearchDescriptor | PageDescriptor | PlaybackDescriptor | PlayerDescriptor | CustomerSettingDescriptor | SuggestionDescriptor | InteractionTypeDescriptor | AssocDescriptor | ClickDescriptor | ToggleDescriptor | VideoActionDescriptor | EmailDescriptor | InteractiveSessionDescriptor | PublishDescriptor;
327
346
  /**
328
347
  * Placeholder values to be used in circumstances where we need
329
348
  * to simply signify that a change has occurred. Particularly if it is
@@ -11,9 +11,6 @@ export interface AppLinkHash {
11
11
  export interface AppLinkOptions {
12
12
  replace?: boolean;
13
13
  }
14
- export interface UpdateParamsOptions extends AppLinkOptions {
15
- merge?: boolean;
16
- }
17
14
  export declare const AppLinkUtility: {
18
15
  routingStarted(): void;
19
16
  routingEnded(): void;
@@ -36,6 +33,5 @@ export declare const AppLinkHelper: {
36
33
  * @param appLink
37
34
  */
38
35
  trigger(appLink: AppLink, options?: AppLinkOptions): void;
39
- updateParams(params: ObjectHash, options?: UpdateParamsOptions): void;
40
36
  getCurrentAppLink(): AppLink;
41
37
  };
@@ -1,5 +1,5 @@
1
- export interface Xhr extends Pick<XMLHttpRequest, 'getResponseHeader' | 'status'> {
2
- responseJSON?: any;
1
+ export interface Xhr<TResponseJSON = any> extends Pick<XMLHttpRequest, 'getResponseHeader' | 'status'> {
2
+ responseJSON?: TResponseJSON;
3
3
  }
4
4
  /**
5
5
  * We're making getResponseHeader optional for a slightly nicer API
@@ -12,5 +12,6 @@ export declare enum NotificationType {
12
12
  StaffRequest = "new-staff-request",
13
13
  StaffRequestFulfilled = "staff-request-fulfilment",
14
14
  ChapterMergeSuccess = "media-concatenate-success",
15
- SuggestEdit = "suggest-an-edit"
15
+ SuggestEdit = "suggest-an-edit",
16
+ NewDirectShare = "new-direct-share"
16
17
  }
@@ -56,6 +56,7 @@ export declare enum MasterType {
56
56
  Cover = 56,
57
57
  Poster = 57,
58
58
  SubjectAudience = 58,
59
+ TallPoster = 60,
59
60
  Classroom = 67,
60
61
  ClassroomGroup = 68
61
62
  }
@@ -23,6 +23,7 @@ export declare enum localSvgs {
23
23
  More = "more",
24
24
  Bell = "bell",
25
25
  Plus = "plus",
26
+ Minus = "minus",
26
27
  Search = "search",
27
28
  Share = "share",
28
29
  Share2 = "share2",
@@ -89,5 +90,7 @@ export declare enum localSvgs {
89
90
  Twitter = "twitter",
90
91
  Facebook = "facebook",
91
92
  Classrooms = "classrooms",
92
- Group = "group"
93
+ Group = "group",
94
+ Timer = "timer",
95
+ CrossCircle = "cross-circle"
93
96
  }
@@ -4,6 +4,7 @@ import Bookmark from './bookmark.svg';
4
4
  import Broadcast from './broadcast.svg';
5
5
  import Calendar from './calendar.svg';
6
6
  import Cog from './cog.svg';
7
+ import CrossCircle from './cross-circle.svg';
7
8
  import Folder from './folder.svg';
8
9
  import Handle from './handle.svg';
9
10
  import Heart from './heart.svg';
@@ -37,4 +38,4 @@ import FileZip from './file-zip.svg';
37
38
  import FileExcel from './file-excel.svg';
38
39
  import Twitter from './twitter.svg';
39
40
  import Facebook from './facebook.svg';
40
- export { Archive, Bell, Bookmark, Broadcast, Calendar, Cog, Folder, Handle, Interactive, Link, Playlist, PublisherArchive, Resources, StarOutline, Star, Tag, Time, Video, Subject, Series, File, FilePDF, FileImg, FilePowerpoint, FileWord, FileZip, FileExcel, Heart, HeartOutline, WhiteWave, Compass, History, Email, YearLevel, Subjects, Twitter, Facebook, Classrooms, Group };
41
+ export { Archive, Bell, Bookmark, Broadcast, Calendar, Cog, CrossCircle, Folder, Handle, Interactive, Link, Playlist, PublisherArchive, Resources, StarOutline, Star, Tag, Time, Video, Subject, Series, File, FilePDF, FileImg, FilePowerpoint, FileWord, FileZip, FileExcel, Heart, HeartOutline, WhiteWave, Compass, History, Email, YearLevel, Subjects, Twitter, Facebook, Classrooms, Group };
@@ -5,9 +5,10 @@ import CloseCaptionBadge from './close-caption-badge.svg';
5
5
  import Question from './question.svg';
6
6
  import Info from './info.svg';
7
7
  import Lock from './lock.svg';
8
+ import Timer from './timer.svg';
8
9
  import Verified from './verified.svg';
9
10
  import VisibleOff from './visible-off.svg';
10
11
  import VisibleOn from './visible-on.svg';
11
12
  import WarningOutline from './warning-o.svg';
12
13
  import Warning from './warning.svg';
13
- export { CheckCircle, CheckCircleOutline, Check, CloseCaptionBadge, Info, Lock, Verified, VisibleOff, VisibleOn, WarningOutline, Warning, Question };
14
+ export { CheckCircle, CheckCircleOutline, Check, CloseCaptionBadge, Info, Lock, Timer, Verified, VisibleOff, VisibleOn, WarningOutline, Warning, Question };
@@ -3,6 +3,7 @@ import { NotificationType } from 'libs/shared/apps/notifications/enums/Notificat
3
3
  export interface NotificationsAppLinks {
4
4
  notifications: Core.AppLink;
5
5
  videoDetails: Core.AppLink;
6
+ shareLink: Core.AppLink;
6
7
  pastReleases: Core.AppLink;
7
8
  awaitingReview: Core.AppLink;
8
9
  editStaffRequest: Core.AppLink;
@@ -10,6 +11,7 @@ export interface NotificationsAppLinks {
10
11
  export declare abstract class BaseNotificationsAppVariables {
11
12
  abstract get appLinks(): NotificationsAppLinks;
12
13
  abstract get notificationTypesWithAppLinks(): Array<NotificationType>;
14
+ abstract get unsupportedNotificationLinks(): Array<NotificationType>;
13
15
  abstract get notificationsEmptyStateUrl(): string;
14
16
  abstract get bellIconColor(): 'dark' | 'light';
15
17
  get name(): string;
@@ -1,4 +1,4 @@
1
- import { BaseObject, Group, Avatar, YearGroup, CustomerCollection } from 'libs/shared/interfaces';
1
+ import { BaseObject, Group, Avatar, YearGroup, CustomerCollection, ClassroomCollection } from 'libs/shared/interfaces';
2
2
  import { UserRole } from 'libs/shared/enums/UserRole';
3
3
  import { OnlineUserRole } from 'libs/shared/enums/UserRole';
4
4
  import { UserGroup } from 'libs/shared/enums/UserGroup';
@@ -28,6 +28,8 @@ export interface User extends BaseObject {
28
28
  lastSignInTime?: string;
29
29
  };
30
30
  _yearGroup: VirtualYearGroup;
31
+ masterYearGroup?: YearGroup;
32
+ classrooms?: ClassroomCollection;
31
33
  }
32
34
  export interface CuratorUser extends User {
33
35
  userId: string;
@@ -52,6 +54,16 @@ export interface CurrentUser extends BaseObject {
52
54
  customerId: string;
53
55
  customerName: string;
54
56
  customerLogo: string;
57
+ /**
58
+ * @important
59
+ * This should NOT be read in the product if it doesn't have to be.
60
+ * For things like feature blocking (e.g. student feed only being accessable to students), you should use
61
+ * Permissions API instead (talk to Josh T or Cam, or see `usePermissions`).
62
+ *
63
+ * This should be used for things like displaying different text in the product based on if the current user
64
+ * is a student or staff.
65
+ */
66
+ userType: UserGroup;
55
67
  /**
56
68
  * Regional instance the user (and their cusomter) belong to.
57
69
  *
@@ -1,6 +1,7 @@
1
- import { InteractiveResult } from 'libs/shared/interfaces';
1
+ import { InteractiveResult, User } from 'libs/shared/interfaces';
2
2
  export interface StudentResults {
3
3
  name: string;
4
4
  username: string;
5
+ user: User;
5
6
  results: InteractiveResult[];
6
7
  }
@@ -1,6 +1,6 @@
1
1
  import { HashObject } from 'libs/common/react/interfaces/HashObject';
2
2
  import { Core } from 'libs/common/core';
3
- import { Banner } from 'libs/shared/interfaces';
3
+ import { Banner, Image, Series, Video, InteractiveMetadata, Clip, Playlist, Classification } from 'libs/shared/interfaces';
4
4
  import { ImageType, ImageSize, ResizeType } from 'libs/shared/enums/Images';
5
5
  export interface ImageOptions {
6
6
  size?: ImageSize;
@@ -29,4 +29,5 @@ export declare const ImageHelper: {
29
29
  _createCategoryMappedUrl(mappingOptions: CategoryMapperImageOptions, options?: ImageOptions): string;
30
30
  _createUrl(baseUrl: string, queryParams?: HashObject): string;
31
31
  legacyCreateThumbnailUrl(thumbnail: string | Core.Model | HashObject, options?: ImageOptions): string;
32
+ getDisplayImageFromObject(obj: Series | Classification | Video | InteractiveMetadata | Clip | Playlist): Image;
32
33
  };