@playkit-js/unisphere 0.0.19-canary.0-338e5c5 → 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-338e5c5",
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,9 @@ 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';
13
+
14
+ const { reducers: {shell}} = ui;
12
15
 
13
16
  class UnispherePluginManager {
14
17
  private iconIds = new Map<string, number>();
@@ -112,9 +115,8 @@ class UnispherePluginManager {
112
115
  }
113
116
  });
114
117
  }
115
-
116
- // TODO: Export this event and in playkit-js-seo
117
- 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));
118
120
  }
119
121
  });
120
122
 
@@ -226,6 +228,9 @@ class UnispherePluginManager {
226
228
  this.iconIds.clear();
227
229
 
228
230
  this.containerManager.destroy();
231
+
232
+ //@ts-ignore
233
+ this.player.ui.store.dispatch(shell.actions.updateTimeDisplayIsMinimized(false));
229
234
  }
230
235
 
231
236
  public destroy(): void {