@playkit-js/unisphere 0.0.19-canary.0-7e412b7 → 0.0.19-canary.0-dcfb586

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playkit-js/unisphere",
3
- "version": "0.0.19-canary.0-7e412b7",
3
+ "version": "0.0.19-canary.0-dcfb586",
4
4
  "description": "Playkit JS Unisphere plugin",
5
5
  "main": "dist/playkit-unisphere.js",
6
6
  "typings": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -2,3 +2,5 @@ import { registerPlugin } from '@playkit-js/kaltura-player-js';
2
2
  import { pluginName, UnispherePlugin } from './unisphere-plugin';
3
3
 
4
4
  registerPlugin(pluginName, UnispherePlugin);
5
+
6
+ export { PlayerEvent } from './types/player-event';
@@ -1,3 +1,4 @@
1
1
  export { UnisphereEvent } from './unisphere-event';
2
+ export { PlayerEvent } from './player-event';
2
3
  export { UnisphereStorageKeys } from './unisphere-storage-keys';
3
4
  export * from './unisphere-plugin-config';
@@ -0,0 +1,3 @@
1
+ export enum PlayerEvent {
2
+ UNISPHERE_CHAPTERS_ADDED = 'unisphere_chapters_added'
3
+ }
@@ -9,6 +9,7 @@ import { SidePanelsManager, UpperBarManager } from '@playkit-js/ui-managers';
9
9
  import { UnisphereEvent, UnisphereStorageKeys, WidgetConfig } from './types';
10
10
  import { UpperBarIcon } from './components';
11
11
  import { ContainerManager, UnisphereElementService, UnisphereEventService, UnisphereStorageService, UnisphereWorkspaceService } from './services';
12
+ import { PlayerEvent } from './types';
12
13
 
13
14
  const { reducers: {shell}} = ui;
14
15
 
@@ -114,10 +115,8 @@ class UnispherePluginManager {
114
115
  }
115
116
  });
116
117
  }
117
- //@ts-ignore
118
- this.player.ui.store.dispatch(shell.actions.updateTimeDisplayIsMinimized(true));
119
- // TODO: Export this event and in playkit-js-seo
120
- this.player.dispatchEvent(new FakeEvent('UNISPHERE_CHAPTERS_ADDED', payload))
118
+ // event for playkit-js-seo
119
+ this.player.dispatchEvent(new FakeEvent(PlayerEvent.UNISPHERE_CHAPTERS_ADDED, payload));
121
120
  }
122
121
  });
123
122