@clickview/player 0.0.5-dev.1 → 0.0.5-rc.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 (46) hide show
  1. package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +2 -21
  2. package/dist/libs/common/src/backbone/core/AppLink.d.ts +4 -0
  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 +1 -2
  5. package/dist/libs/shared/src/enums/MasterType.d.ts +0 -1
  6. package/dist/libs/shared/src/images/svg/ImportedSvgs.d.ts +1 -4
  7. package/dist/libs/shared/src/images/svg/objects/index.d.ts +1 -2
  8. package/dist/libs/shared/src/images/svg/status/index.d.ts +1 -2
  9. package/dist/libs/shared/src/interfaces/app-variables/BaseNotificationsAppVariables.d.ts +0 -2
  10. package/dist/libs/shared/src/interfaces/models/User.d.ts +0 -10
  11. package/dist/libs/shared/src/interfaces/models/interactive-results/StudentResult.d.ts +1 -2
  12. package/dist/libs/shared/src/utils/ImageHelper.d.ts +1 -2
  13. package/dist/player-app.css +20 -22
  14. package/dist/player-app.js +13 -13
  15. package/dist/projects/player/src/components/cog-button/cog-button.d.ts +1 -0
  16. package/dist/projects/player/src/components/collapserator/collapserator.d.ts +1 -1
  17. package/dist/projects/player/src/components/menu/menu.d.ts +0 -7
  18. package/dist/projects/player/src/components/player/player.d.ts +0 -4
  19. package/dist/projects/player/src/components/subs-caps-button/subs-caps-button.d.ts +0 -1
  20. package/dist/projects/player/src/components/subs-caps-button/subtitle-search-menu-item.d.ts +1 -2
  21. package/dist/projects/player/src/components/subtitle-search-button/subtitle-search-button.d.ts +0 -1
  22. package/dist/projects/player/src/players/base-player.d.ts +2 -13
  23. package/dist/projects/player/src/players/interactive-player.d.ts +0 -4
  24. package/dist/projects/player/src/players/player.d.ts +5 -0
  25. package/dist/projects/player/src/plugins/example-plugin/components/example-button/example-button.d.ts +1 -0
  26. package/dist/projects/player/src/plugins/example-plugin/example-plugin.d.ts +2 -0
  27. package/dist/projects/player/src/plugins/fullscreen-on-rotate-plugin/fullscreen-on-rotate-plugin.d.ts +0 -29
  28. package/dist/projects/player/src/plugins/interactive-plugin/hooks/useStateManager.d.ts +0 -2
  29. package/dist/projects/player/src/plugins/interactive-plugin/interactive-plugin.d.ts +0 -2
  30. package/dist/projects/player/src/plugins/next-video-plugin/next-video-plugin.d.ts +1 -1
  31. package/dist/projects/player/src/plugins/open-externally-plugin/open-externally-plugin.d.ts +0 -30
  32. package/dist/projects/player/src/plugins/persist-subtitle-settings-plugin/persist-subtitle-settings-plugin.d.ts +1 -0
  33. package/dist/projects/player/src/plugins/persist-volume-plugin/persist-volume-plugin.d.ts +0 -25
  34. package/dist/projects/player/src/plugins/picture-in-picture-plugin/picture-in-picture-plugin.d.ts +1 -0
  35. package/dist/projects/player/src/plugins/progress-reporter-plugin/progress-reporter-plugin.d.ts +0 -1
  36. package/dist/projects/player/src/plugins/progressive-files-plugin/progressive-files-plugin.d.ts +0 -3
  37. package/dist/projects/player/src/plugins/touch-controls-plugin/touch-controls-plugin.d.ts +0 -40
  38. package/dist/projects/player/src/services/analytics-service.d.ts +1 -5
  39. package/dist/projects/player/src/utils/scrollbar-helper.d.ts +6 -0
  40. package/package.json +4 -4
  41. package/dist/projects/player/src/components/cog-button/collapsible-heading-menu-item.d.ts +0 -15
  42. package/dist/projects/player/src/components/keyboard-shortcuts-button/keyboard-shortcuts-button.d.ts +0 -1
  43. package/dist/projects/player/src/components/play-pause-feedback/play-pause-feedback.d.ts +0 -1
  44. package/dist/projects/player/src/components/play-toggle/play-toggle.d.ts +0 -1
  45. package/dist/projects/player/src/components/subs-caps-button/off-text-track-menu-item.d.ts +0 -1
  46. /package/dist/projects/player/src/{components/seek-bar/seek-bar.d.ts → plugins/example-plugin/components/example-react-button/example-react-button.d.ts} +0 -0
@@ -28,6 +28,7 @@ export declare class CogButton extends MenuButton {
28
28
  constructor(player: VideoJsPlayer, options: CogButtonOptions);
29
29
  buildWrapperCSSClass(): string;
30
30
  buildCSSClass(): string;
31
+ pressButton(): void;
31
32
  /**
32
33
  * Create the list of menu items. Specific to each subclass.
33
34
  *
@@ -1,6 +1,6 @@
1
1
  import 'projects/player/components/cog-button/cog-button';
2
2
  import 'projects/player/components/subtitle-size-button/subtitle-size-button';
3
3
  import 'projects/player/components/subtitle-search-button/subtitle-search-button';
4
- import 'projects/player/components/keyboard-shortcuts-button/keyboard-shortcuts-button';
5
4
  import './collapserator.scss';
5
+ import '../play-toggle/play-toggle.scss';
6
6
  import '../fullscreen-toggle/fullscreen-toggle.scss';
@@ -5,13 +5,6 @@ declare const BaseMenu: {
5
5
  };
6
6
  export declare class Menu extends BaseMenu {
7
7
  isDisposed_: boolean;
8
- private simpleBar;
9
- createEl(): HTMLDivElement;
10
- contentEl(): Element;
11
- dispose(): void;
12
- addItem(component: string | videojs.MenuItem): void;
13
- lockShowing(): void;
14
- recalculateScrollBar(): void;
15
8
  /**
16
9
  * The video.js Menu handleBlur function checks if the target is an immediate child
17
10
  * but we have scenarios where the target is not an immediate child
@@ -1,10 +1,6 @@
1
- import { VideoJsPlayerOptions } from 'video.js';
2
1
  import './player.scss';
3
2
  export declare const IS_IPOD: boolean;
4
3
  export declare const IS_ANDROID: boolean;
5
- export interface PlayerWrapperOptions extends VideoJsPlayerOptions {
6
- setMaxHeight?: boolean;
7
- }
8
4
  declare module 'video.js' {
9
5
  interface VideoJsPlayer {
10
6
  lock(callback: (success: () => void) => void): void;
@@ -1,2 +1 @@
1
- import './off-text-track-menu-item.ts';
2
1
  import './subs-caps-button.scss';
@@ -48,8 +48,7 @@ declare const TextTrackMenuItem: {
48
48
  };
49
49
  export declare class SubtitleSearchMenuItem extends TextTrackMenuItem {
50
50
  constructor(player: VideoJsPlayer);
51
- private toggleEnabled;
52
- private bindTrackEvents;
51
+ private toggleHidden;
53
52
  handleClick(): void;
54
53
  }
55
54
  export {};
@@ -8,7 +8,6 @@ declare const MenuButton: {
8
8
  };
9
9
  export declare class SubtitleSearchButton extends MenuButton implements CollapsibleComponent {
10
10
  constructor(player: VideoJsPlayer, options?: videojs.MenuButtonOptions);
11
- private bindTrackEvents;
12
11
  createItems(): SubtitleResultMenuItem[];
13
12
  search(text: string): void;
14
13
  private findMatches;
@@ -1,9 +1,5 @@
1
- import { VideoJsPlayer } from 'video.js';
1
+ import { VideoJsPlayer, VideoJsPlayerOptions } from 'video.js';
2
2
  import 'videojs-contrib-quality-levels';
3
- import 'projects/player/plugins/persist-volume-plugin/persist-volume-plugin';
4
- import 'projects/player/plugins/fullscreen-on-rotate-plugin/fullscreen-on-rotate-plugin';
5
- import 'projects/player/plugins/open-externally-plugin/open-externally-plugin';
6
- import 'projects/player/plugins/touch-controls-plugin/touch-controls-plugin';
7
3
  import 'projects/player/plugins/progressive-files-plugin/progressive-files-plugin';
8
4
  import 'projects/player/plugins/localcache-plugin/localcache-plugin';
9
5
  import 'projects/player/plugins/persist-subtitle-settings-plugin/persist-subtitle-settings-plugin';
@@ -15,8 +11,6 @@ import 'projects/player/components/menu/menu';
15
11
  import 'projects/player/components/menu-button/menu-button';
16
12
  import 'projects/player/components/time-wrapper/time-wrapper';
17
13
  import 'projects/player/components/collapserator/collapserator';
18
- /** Seekbar must be imported before chapter-seek-bar */
19
- import 'projects/player/components/seek-bar/seek-bar';
20
14
  import 'projects/player/components/chapter-seek-bar/chapter-seek-bar';
21
15
  import 'projects/player/components/progress-control/progress-control';
22
16
  import 'projects/player/components/mouse-time-display/mouse-time-display';
@@ -26,8 +20,6 @@ import 'projects/player/components/quality-selector/quality-button';
26
20
  import 'projects/player/components/playback-rate-button/playback-rate-button';
27
21
  import 'projects/player/components/text-track-settings/text-track-settings';
28
22
  import 'projects/player/components/player/player';
29
- import 'projects/player/components/play-pause-feedback/play-pause-feedback';
30
- import 'projects/player/components/play-toggle/play-toggle';
31
23
  /**
32
24
  * *.scss imports must be relative
33
25
  */
@@ -40,8 +32,6 @@ import { ExternalLinkOptions } from 'projects/player/plugins/open-externally-plu
40
32
  import { PlaybackObject } from 'projects/player/interfaces/models/PlaybackObject';
41
33
  import { AnalyticsPlayerType, AnalyticsService } from 'projects/player/services/analytics-service';
42
34
  import { ProgressEvent } from 'projects/player/plugins/progress-reporter-plugin/progress-reporter-plugin';
43
- import { PlayerWrapperOptions } from 'projects/player/components/player/player';
44
- import { HashObject } from 'libs/analytics/interfaces';
45
35
  export interface BasePlayerOptions {
46
36
  autoplay?: boolean;
47
37
  viewKey: string;
@@ -78,12 +68,11 @@ export declare abstract class BasePlayer {
78
68
  protected configurePlugins(): void;
79
69
  protected onFlushProgress(events: ProgressEvent[]): void;
80
70
  protected buildVideoJs(): VideoJsPlayer;
81
- protected getPlayerOptions(): PlayerWrapperOptions;
71
+ protected getPlayerOptions(): VideoJsPlayerOptions;
82
72
  protected fetch(): Promise<void>;
83
73
  private fetchConfig;
84
74
  protected additionalSetup(playbackObject: PlaybackObject): void;
85
75
  private setupAnalyticsService;
86
- protected getAdditionalAnalyticsData(playbackObject: PlaybackObject): HashObject;
87
76
  protected logStream(): void;
88
77
  protected getAnalyticsPlayerType(): AnalyticsPlayerType;
89
78
  protected createEl(id: string | Element): HTMLVideoElement;
@@ -6,8 +6,6 @@ import { PlaybackObject } from 'projects/player/interfaces/models/PlaybackObject
6
6
  import { AnalyticsPlayerType } from 'projects/player/services/analytics-service';
7
7
  import { ProgressEvent } from 'projects/player/plugins/progress-reporter-plugin/progress-reporter-plugin';
8
8
  import 'projects/player/plugins/interactive-plugin/interactive-plugin';
9
- import { PlayerWrapperOptions } from '../components/player/player';
10
- import { HashObject } from 'libs/analytics/interfaces';
11
9
  export interface InteractivePlayerOptions extends BasePlayerOptions {
12
10
  mode?: InteractiveMode;
13
11
  imageApi?: URL;
@@ -23,12 +21,10 @@ export declare class InteractivePlayer extends BasePlayer {
23
21
  private resultsService;
24
22
  private totalProgress;
25
23
  constructor(id: string | Element, options: InteractivePlayerOptions);
26
- protected getPlayerOptions(): PlayerWrapperOptions;
27
24
  protected onFlushProgress(events: ProgressEvent[]): void;
28
25
  protected additionalSetup(playbackObject: PlaybackObject): Promise<void>;
29
26
  private setupUpClipPlugin;
30
27
  private setupViewInteractivePlugin;
31
- protected getAdditionalAnalyticsData(playbackObject: PlaybackObject): HashObject;
32
28
  protected getSeekBarOptions(): any;
33
29
  protected getAnalyticsPlayerType(): AnalyticsPlayerType;
34
30
  }
@@ -1,5 +1,10 @@
1
1
  import { BasePlayer, BasePlayerOptions } from './base-player';
2
+ import 'projects/player/plugins/example-plugin/example-plugin';
3
+ import 'projects/player/plugins/persist-volume-plugin/persist-volume-plugin';
4
+ import 'projects/player/plugins/fullscreen-on-rotate-plugin/fullscreen-on-rotate-plugin';
5
+ import 'projects/player/plugins/open-externally-plugin/open-externally-plugin';
2
6
  import 'projects/player/plugins/clip-plugin/clip-plugin';
7
+ import 'projects/player/plugins/touch-controls-plugin/touch-controls-plugin';
3
8
  import 'projects/player/plugins/next-video-plugin/next-video-plugin';
4
9
  import 'projects/player/plugins/create-clip-button-plugin/create-clip-button-plugin';
5
10
  import 'projects/player/plugins/resources-plugin/resources-plugin';
@@ -0,0 +1,2 @@
1
+ import './components/example-button/example-button';
2
+ import './components/example-react-button/example-react-button';
@@ -1,30 +1 @@
1
- import videojs, { VideoJsPlayer } from 'video.js';
2
- declare const Plugin: {
3
- new (player: VideoJsPlayer, options?: any): videojs.Plugin;
4
- prototype: videojs.Plugin;
5
- BASE_PLUGIN_NAME: string;
6
- deregisterPlugin(name: string): void;
7
- getPlugin(name: string): any;
8
- getPluginVersion(name: string): string;
9
- getPlugins(names?: string[]): {
10
- [name: string]: videojs.Plugin;
11
- };
12
- isBasic(plugin: string | (() => any)): boolean;
13
- registerPlugin<T, K>(name: string, plugin: (this: VideoJsPlayer, ...options: K[]) => T): (...options: K[]) => T;
14
- registerPlugin<T_1 extends any>(name: string, plugin: T_1): () => T_1;
15
- };
16
- declare class FullscreenOnRotatePlugin extends Plugin {
17
- constructor(player: VideoJsPlayer);
18
- private initialize;
19
- private onFullscreenChange;
20
- private onRotate;
21
- private hasScreenOrientation;
22
- private hasScreenLock;
23
- private getAngle;
24
- }
25
- declare module 'video.js' {
26
- interface VideoJsPlayer {
27
- fullscreenOnRotatePlugin(): FullscreenOnRotatePlugin;
28
- }
29
- }
30
1
  export {};
@@ -2,7 +2,6 @@ import { VideoJsPlayer } from 'video.js';
2
2
  import { Interaction, InteractionTypeId, Interactive, Timepoint } from 'libs/shared/interfaces';
3
3
  import { InteractiveMode, LatestSession } from 'projects/player/plugins/interactive-plugin/interfaces';
4
4
  import { ResultsService } from 'projects/player/plugins/interactive-plugin/utils/ResultsService';
5
- import { AnalyticsService } from 'projects/player/services/analytics-service';
6
5
  interface UseStateManagerProps {
7
6
  mode: InteractiveMode;
8
7
  timepoint: Timepoint;
@@ -10,7 +9,6 @@ interface UseStateManagerProps {
10
9
  player: VideoJsPlayer;
11
10
  resultsService?: ResultsService;
12
11
  latestSession?: LatestSession;
13
- analyticsService: AnalyticsService;
14
12
  setOpen: (open: boolean) => void;
15
13
  addCue: (timepointId: string) => void;
16
14
  updateCue: (oldTimepointId: string, timepointId: string) => void;
@@ -4,7 +4,6 @@ import { CurrentUser, Interactive } from 'libs/shared/interfaces';
4
4
  import { InteractiveMode, LatestSession } from 'projects/player/plugins/interactive-plugin/interfaces';
5
5
  import { ResultsService } from 'projects/player/plugins/interactive-plugin/utils/ResultsService';
6
6
  import { ProgressEvent } from 'projects/player/plugins/progress-reporter-plugin/progress-reporter-plugin';
7
- import { AnalyticsService } from 'projects/player/services/analytics-service';
8
7
  import 'projects/player/plugins/interactive-plugin/components/interactive/interactive-component';
9
8
  import 'projects/player/plugins/interactive-plugin/components/continue-session/continue-session';
10
9
  import './interactive-plugin-styles.scss';
@@ -33,7 +32,6 @@ interface InteractivePluginOptions {
33
32
  progress?: ProgressEvent[];
34
33
  latestSession?: LatestSession;
35
34
  clipOffset?: number;
36
- analyticsService: AnalyticsService;
37
35
  }
38
36
  declare class InteractivePlugin extends Plugin {
39
37
  private options;
@@ -30,7 +30,7 @@ declare class NextVideoPlugin extends Plugin {
30
30
  setShouldPlayNext(val: boolean): void;
31
31
  private setChapterTrack;
32
32
  private bindListeners;
33
- dispose(): void;
33
+ private unbindListeners;
34
34
  private onTimeUpdate;
35
35
  private showUpNext;
36
36
  private hideUpNext;
@@ -1,31 +1 @@
1
- import videojs, { VideoJsPlayer } from 'video.js';
2
- import { ExternalLinkOptions } from 'projects/player/plugins/open-externally-plugin/interfaces/ExternalLinkOptions';
3
1
  import 'projects/player/plugins/open-externally-plugin/components/open-externally-button';
4
- declare const Plugin: {
5
- new (player: VideoJsPlayer, options?: any): videojs.Plugin;
6
- prototype: videojs.Plugin;
7
- BASE_PLUGIN_NAME: string;
8
- deregisterPlugin(name: string): void;
9
- getPlugin(name: string): any;
10
- getPluginVersion(name: string): string;
11
- getPlugins(names?: string[]): {
12
- [name: string]: videojs.Plugin;
13
- };
14
- isBasic(plugin: string | (() => any)): boolean;
15
- registerPlugin<T, K>(name: string, plugin: (this: VideoJsPlayer, ...options: K[]) => T): (...options: K[]) => T;
16
- registerPlugin<T_1 extends any>(name: string, plugin: T_1): () => T_1;
17
- };
18
- interface OpenExternallyPluginOptions {
19
- getExternalLink: (options: ExternalLinkOptions) => string;
20
- }
21
- declare class OpenExternallyPlugin extends Plugin {
22
- private options;
23
- constructor(player: VideoJsPlayer, options: OpenExternallyPluginOptions);
24
- private onReady;
25
- }
26
- declare module 'video.js' {
27
- interface VideoJsPlayer {
28
- openExternallyPlugin(oprions: OpenExternallyPluginOptions): OpenExternallyPlugin;
29
- }
30
- }
31
- export {};
@@ -20,6 +20,7 @@ interface PersistSubtitleSettingsPluginOptions {
20
20
  }
21
21
  declare class PersistSubtitleSettingsPlugin extends Plugin {
22
22
  private options;
23
+ private trackGuess;
23
24
  constructor(player: VideoJsPlayer, options: PersistSubtitleSettingsPluginOptions);
24
25
  private initialize;
25
26
  private safeGet;
@@ -1,26 +1 @@
1
- import videojs, { VideoJsPlayer } from 'video.js';
2
- declare const Plugin: {
3
- new (player: VideoJsPlayer, options?: any): videojs.Plugin;
4
- prototype: videojs.Plugin;
5
- BASE_PLUGIN_NAME: string;
6
- deregisterPlugin(name: string): void;
7
- getPlugin(name: string): any;
8
- getPluginVersion(name: string): string;
9
- getPlugins(names?: string[]): {
10
- [name: string]: videojs.Plugin;
11
- };
12
- isBasic(plugin: string | (() => any)): boolean;
13
- registerPlugin<T, K>(name: string, plugin: (this: VideoJsPlayer, ...options: K[]) => T): (...options: K[]) => T;
14
- registerPlugin<T_1 extends any>(name: string, plugin: T_1): () => T_1;
15
- };
16
- declare class PersistVolumePlugin extends Plugin {
17
- constructor(player: VideoJsPlayer);
18
- private initialize;
19
- private saveVolumeState;
20
- }
21
- declare module 'video.js' {
22
- interface VideoJsPlayer {
23
- persistVolumePlugin(): PersistVolumePlugin;
24
- }
25
- }
26
1
  export {};
@@ -15,6 +15,7 @@ declare const Plugin: {
15
15
  registerPlugin<T_1 extends any>(name: string, plugin: T_1): () => T_1;
16
16
  };
17
17
  interface PictureInPicturePluginOptions {
18
+ initialIsInPictureInPicture: boolean;
18
19
  onRequestPictureInPicture: (isPiP: boolean) => void;
19
20
  }
20
21
  declare class PictureInPicturePlugin extends Plugin {
@@ -57,7 +57,6 @@ declare class ProgressReporterPlugin extends Plugin {
57
57
  private onEnded;
58
58
  private logEvent;
59
59
  private shouldUseCarriedOverTime;
60
- private shouldSaveCarriedOverTime;
61
60
  private shouldClearCarriedOverTime;
62
61
  private flushBuffer;
63
62
  }
@@ -19,9 +19,7 @@ export declare class ProgressiveFilesPlugin extends Plugin {
19
19
  private sources;
20
20
  private _currentSource;
21
21
  private qualityLevels;
22
- private options_;
23
22
  constructor(player: VideoJsPlayer, options: ProgressiveFilesPluginOptions);
24
- private initialize;
25
23
  get currentSource(): Source;
26
24
  /**
27
25
  * Sets the current player source. If the id cannot be found, the current source is returned
@@ -29,7 +27,6 @@ export declare class ProgressiveFilesPlugin extends Plugin {
29
27
  */
30
28
  setSource(id: string): Source;
31
29
  getSourceById(id: string): Source;
32
- private sortSources;
33
30
  private populateSources;
34
31
  private sourceChangeUpdateQualityLevels;
35
32
  }
@@ -1,41 +1 @@
1
- import videojs, { VideoJsPlayer } from 'video.js';
2
1
  import './components/touch-controls/touch-controls';
3
- declare const Plugin: {
4
- new (player: VideoJsPlayer, options?: any): videojs.Plugin;
5
- prototype: videojs.Plugin;
6
- BASE_PLUGIN_NAME: string;
7
- deregisterPlugin(name: string): void;
8
- getPlugin(name: string): any;
9
- getPluginVersion(name: string): string;
10
- getPlugins(names?: string[]): {
11
- [name: string]: videojs.Plugin;
12
- };
13
- isBasic(plugin: string | (() => any)): boolean;
14
- registerPlugin<T, K>(name: string, plugin: (this: VideoJsPlayer, ...options: K[]) => T): (...options: K[]) => T;
15
- registerPlugin<T_1 extends any>(name: string, plugin: T_1): () => T_1;
16
- };
17
- declare class TouchControlsPlugin extends Plugin {
18
- private tech;
19
- private touchControls;
20
- private touchStartTime;
21
- private lastTouchTime;
22
- private doubleTouchCount;
23
- private seekStartTime;
24
- private directionModifier;
25
- constructor(player: VideoJsPlayer);
26
- private bindFunctions;
27
- private initialize;
28
- private reBindEventListeners;
29
- private unBindEventListeners;
30
- dispose(): void;
31
- private onTouchStart;
32
- private onTouchEnd;
33
- private resetProperties;
34
- private onDoubleTouch;
35
- }
36
- declare module 'video.js' {
37
- interface VideoJsPlayer {
38
- touchControls(): TouchControlsPlugin;
39
- }
40
- }
41
- export {};
@@ -1,5 +1,5 @@
1
1
  import { RegionName } from 'libs/analytics/enums/RegionName';
2
- import { RegionalUrl, AnalyticsOptions, HashObject } from 'libs/analytics/interfaces';
2
+ import { RegionalUrl } from 'libs/analytics/interfaces';
3
3
  import { ProgressEvent } from 'projects/player/plugins/progress-reporter-plugin/progress-reporter-plugin';
4
4
  export declare type AnalyticsPlayerType = 'player' | 'interactive-player' | 'create-clip-player';
5
5
  interface AnalyticsServiceOptions {
@@ -8,14 +8,12 @@ interface AnalyticsServiceOptions {
8
8
  productVersion: string;
9
9
  regionName: RegionName;
10
10
  videoId: string;
11
- mediaId: string;
12
11
  userId: string;
13
12
  customerId: string;
14
13
  mediaType: 'MasterVideo' | 'MasterClip' | 'MasterInteractive';
15
14
  playerType: AnalyticsPlayerType;
16
15
  isEmbedded: boolean;
17
16
  isUsingLocalCache: boolean;
18
- additionalAnalyticsData?: HashObject;
19
17
  }
20
18
  export declare class AnalyticsService {
21
19
  private options;
@@ -23,8 +21,6 @@ export declare class AnalyticsService {
23
21
  constructor(options: AnalyticsServiceOptions);
24
22
  logStream(): void;
25
23
  logVideoProgress(events: ProgressEvent[]): void;
26
- logUserAction(analyticsData: HashObject | HashObject[], analyticsOptions: AnalyticsOptions): void;
27
- private getAnalyticsData;
28
24
  private initialize;
29
25
  private setupCollectionApiClient;
30
26
  private getCurrentUser;
@@ -0,0 +1,6 @@
1
+ import videojs from 'video.js';
2
+ export declare const ScrollbarHelper: {
3
+ initMenuScrollbar(component: videojs.MenuButton): void;
4
+ unMountScrollbar(component: videojs.MenuButton): void;
5
+ getMenuEl(component: videojs.MenuButton): HTMLElement;
6
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clickview/player",
3
- "version": "0.0.5-dev.1",
3
+ "version": "0.0.5-rc.0",
4
4
  "description": "ClickView Player",
5
5
  "main": "dist/player-app.js",
6
6
  "scripts": {
@@ -27,8 +27,8 @@
27
27
  "devDependencies": {
28
28
  "@babel/core": "7.11.6",
29
29
  "@clickview/eslint-config": "1.0.1",
30
- "@clickview/player-font": "0.0.11",
31
- "@clickview/tooling": "0.0.24-dev.1",
30
+ "@clickview/player-font": "0.0.10",
31
+ "@clickview/tooling": "0.0.23",
32
32
  "@storybook/react": "6.0.26",
33
33
  "@types/chromecast-caf-sender": "1.0.3",
34
34
  "@types/cropperjs": "1.3.0",
@@ -42,7 +42,7 @@
42
42
  "webpack-dev-server": "3.11.0"
43
43
  },
44
44
  "dependencies": {
45
- "@clickview/styles": "1.0.17-dev.1",
45
+ "@clickview/styles": "1.0.16",
46
46
  "@microsoft/signalr": "5.0.2",
47
47
  "cropperjs": "1.5.6",
48
48
  "draft-convert": "2.1.10",
@@ -1,15 +0,0 @@
1
- import videojs, { VideoJsPlayer } from 'video.js';
2
- declare const MenuItem: {
3
- new (player: VideoJsPlayer, options?: videojs.MenuItemOptions): videojs.MenuItem;
4
- prototype: videojs.MenuItem;
5
- };
6
- interface CollapsibleHeadingMenuItemOptions extends videojs.MenuItemOptions {
7
- onClickBack?: () => void;
8
- }
9
- export declare class CollapsibleHeadingMenuItem extends MenuItem {
10
- options_: CollapsibleHeadingMenuItemOptions;
11
- constructor(player: VideoJsPlayer, options?: CollapsibleHeadingMenuItemOptions);
12
- createEl(): HTMLLIElement;
13
- handleClick(event: videojs.EventTarget.Event): void;
14
- }
15
- export {};
@@ -1 +0,0 @@
1
- import './keyboard-shortcuts-button.scss';
@@ -1 +0,0 @@
1
- import './play-pause-feedback.scss';
@@ -1 +0,0 @@
1
- import './play-toggle.scss';