@playkit-js/unisphere 0.0.19-canary.0-3799517 → 0.0.19-canary.0-df85552

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 (63) hide show
  1. package/dist/player-event.js +2 -0
  2. package/dist/player-event.js.map +1 -0
  3. package/lib/components/container-element/container-element.d.ts +9 -0
  4. package/lib/components/container-element/container-element.d.ts.map +1 -0
  5. package/lib/components/container-element/index.d.ts +2 -0
  6. package/lib/components/container-element/index.d.ts.map +1 -0
  7. package/lib/components/index.d.ts +3 -0
  8. package/lib/components/index.d.ts.map +1 -0
  9. package/lib/components/upper-bar-icon/index.d.ts +2 -0
  10. package/lib/components/upper-bar-icon/index.d.ts.map +1 -0
  11. package/lib/components/upper-bar-icon/upper-bar-icon.d.ts +8 -0
  12. package/lib/components/upper-bar-icon/upper-bar-icon.d.ts.map +1 -0
  13. package/lib/index.d.ts +4 -0
  14. package/lib/index.d.ts.map +1 -0
  15. package/lib/player-event.d.ts +4 -0
  16. package/lib/player-event.d.ts.map +1 -0
  17. package/lib/services/container/container-manager.d.ts +11 -0
  18. package/lib/services/container/container-manager.d.ts.map +1 -0
  19. package/lib/services/container/index.d.ts +2 -0
  20. package/lib/services/container/index.d.ts.map +1 -0
  21. package/lib/services/container/producers/base-container-producer.d.ts +13 -0
  22. package/lib/services/container/producers/base-container-producer.d.ts.map +1 -0
  23. package/lib/services/container/producers/container-producer.d.ts +8 -0
  24. package/lib/services/container/producers/container-producer.d.ts.map +1 -0
  25. package/lib/services/container/producers/index.d.ts +4 -0
  26. package/lib/services/container/producers/index.d.ts.map +1 -0
  27. package/lib/services/container/producers/sidepanel-container-producer.d.ts +9 -0
  28. package/lib/services/container/producers/sidepanel-container-producer.d.ts.map +1 -0
  29. package/lib/services/container/producers/simple-container-producer.d.ts +9 -0
  30. package/lib/services/container/producers/simple-container-producer.d.ts.map +1 -0
  31. package/lib/services/index.d.ts +4 -0
  32. package/lib/services/index.d.ts.map +1 -0
  33. package/lib/services/unisphere/index.d.ts +5 -0
  34. package/lib/services/unisphere/index.d.ts.map +1 -0
  35. package/lib/services/unisphere/unisphere-base-service.d.ts +15 -0
  36. package/lib/services/unisphere/unisphere-base-service.d.ts.map +1 -0
  37. package/lib/services/unisphere/unisphere-element-service.d.ts +11 -0
  38. package/lib/services/unisphere/unisphere-element-service.d.ts.map +1 -0
  39. package/lib/services/unisphere/unisphere-event-service.d.ts +12 -0
  40. package/lib/services/unisphere/unisphere-event-service.d.ts.map +1 -0
  41. package/lib/services/unisphere/unisphere-storage-service.d.ts +10 -0
  42. package/lib/services/unisphere/unisphere-storage-service.d.ts.map +1 -0
  43. package/lib/services/unisphere/unisphere-workspace-service.d.ts +9 -0
  44. package/lib/services/unisphere/unisphere-workspace-service.d.ts.map +1 -0
  45. package/lib/services/utils/index.d.ts +2 -0
  46. package/lib/services/utils/index.d.ts.map +1 -0
  47. package/lib/services/utils/utils.d.ts +3 -0
  48. package/lib/services/utils/utils.d.ts.map +1 -0
  49. package/lib/tsconfig-lib.tsbuildinfo +1 -0
  50. package/lib/types/index.d.ts +4 -0
  51. package/lib/types/index.d.ts.map +1 -0
  52. package/lib/types/unisphere-event.d.ts +14 -0
  53. package/lib/types/unisphere-event.d.ts.map +1 -0
  54. package/lib/types/unisphere-plugin-config.d.ts +24 -0
  55. package/lib/types/unisphere-plugin-config.d.ts.map +1 -0
  56. package/lib/types/unisphere-storage-keys.d.ts +9 -0
  57. package/lib/types/unisphere-storage-keys.d.ts.map +1 -0
  58. package/lib/unisphere-plugin-manager.d.ts +30 -0
  59. package/lib/unisphere-plugin-manager.d.ts.map +1 -0
  60. package/lib/unisphere-plugin.d.ts +17 -0
  61. package/lib/unisphere-plugin.d.ts.map +1 -0
  62. package/package.json +12 -1
  63. package/src/player-event.ts +3 -0
@@ -0,0 +1,2 @@
1
+ !function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define("KalturaPlayer",[],r):"object"==typeof exports?exports.KalturaPlayer=r():(e.KalturaPlayer=e.KalturaPlayer||{},e.KalturaPlayer.plugins=e.KalturaPlayer.plugins||{},e.KalturaPlayer.plugins.unisphere=r())}(self,(()=>(()=>{"use strict";var e={d:(r,t)=>{for(var a in t)e.o(t,a)&&!e.o(r,a)&&Object.defineProperty(r,a,{enumerable:!0,get:t[a]})},o:(e,r)=>Object.prototype.hasOwnProperty.call(e,r),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},r={};e.r(r),e.d(r,{PlayerEvent:()=>t});var t=function(e){return e.UNISPHERE_CHAPTERS_ADDED="unisphere_chapters_added",e}({});return r})()));
2
+ //# sourceMappingURL=player-event.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"player-event.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,gBAAiB,GAAIH,GACF,iBAAZC,QACdA,QAAuB,cAAID,KAE3BD,EAAoB,cAAIA,EAAoB,eAAK,CAAC,EAAGA,EAAoB,cAAW,QAAIA,EAAoB,cAAW,SAAK,CAAC,EAAGA,EAAoB,cAAW,QAAa,UAAIC,IACjL,CATD,CASGK,MAAM,I,mBCRT,IAAIC,EAAsB,CCA1BA,EAAwB,CAACL,EAASM,KACjC,IAAI,IAAIC,KAAOD,EACXD,EAAoBG,EAAEF,EAAYC,KAASF,EAAoBG,EAAER,EAASO,IAC5EE,OAAOC,eAAeV,EAASO,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAE1E,ECNDF,EAAwB,CAACQ,EAAKC,IAAUL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,GCClFT,EAAyBL,IACH,oBAAXkB,QAA0BA,OAAOC,aAC1CV,OAAOC,eAAeV,EAASkB,OAAOC,YAAa,CAAEC,MAAO,WAE7DX,OAAOC,eAAeV,EAAS,aAAc,CAAEoB,OAAO,GAAO,G,uCCLvD,IAAKC,EAAW,SAAXA,GAAW,OAAXA,EAAW,oDAAXA,CAAW,M","sources":["webpack://KalturaPlayer.plugins.unisphere/webpack/universalModuleDefinition","webpack://KalturaPlayer.plugins.unisphere/webpack/bootstrap","webpack://KalturaPlayer.plugins.unisphere/webpack/runtime/define property getters","webpack://KalturaPlayer.plugins.unisphere/webpack/runtime/hasOwnProperty shorthand","webpack://KalturaPlayer.plugins.unisphere/webpack/runtime/make namespace object","webpack://KalturaPlayer.plugins.unisphere/./player-event.ts"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"KalturaPlayer\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"KalturaPlayer\"] = factory();\n\telse\n\t\troot[\"KalturaPlayer\"] = root[\"KalturaPlayer\"] || {}, root[\"KalturaPlayer\"][\"plugins\"] = root[\"KalturaPlayer\"][\"plugins\"] || {}, root[\"KalturaPlayer\"][\"plugins\"][\"unisphere\"] = factory();\n})(self, () => {\nreturn ","// The require scope\nvar __webpack_require__ = {};\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","export enum PlayerEvent {\n UNISPHERE_CHAPTERS_ADDED = 'unisphere_chapters_added'\n}\n"],"names":["root","factory","exports","module","define","amd","self","__webpack_require__","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","value","PlayerEvent"],"sourceRoot":""}
@@ -0,0 +1,9 @@
1
+ interface ContainerProps {
2
+ id: string;
3
+ style?: {
4
+ [property: string]: string;
5
+ };
6
+ }
7
+ declare const ContainerElement: (props: ContainerProps) => preact.JSX.Element;
8
+ export { ContainerElement };
9
+ //# sourceMappingURL=container-element.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"container-element.d.ts","sourceRoot":"","sources":["../../../src/components/container-element/container-element.tsx"],"names":[],"mappings":"AAGA,UAAU,cAAc;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE;QAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACxC;AAED,QAAA,MAAM,gBAAgB,UAAW,cAAc,KAAG,MAAM,CAAC,GAAG,CAAC,OAE5D,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { ContainerElement } from './container-element';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/container-element/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './container-element';
2
+ export * from './upper-bar-icon';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { UpperBarIcon } from './upper-bar-icon';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/upper-bar-icon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,8 @@
1
+ interface UpperBarIconProps {
2
+ id: string;
3
+ iconPath: string;
4
+ label: string;
5
+ }
6
+ declare const UpperBarIcon: ({ id, label, iconPath }: UpperBarIconProps) => preact.JSX.Element;
7
+ export { UpperBarIcon };
8
+ //# sourceMappingURL=upper-bar-icon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upper-bar-icon.d.ts","sourceRoot":"","sources":["../../../src/components/upper-bar-icon/upper-bar-icon.tsx"],"names":[],"mappings":"AAMA,UAAU,iBAAiB;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,QAAA,MAAM,YAAY,4BAA6B,iBAAiB,KAAG,MAAM,CAAC,GAAG,CAAC,OAQ7E,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,CAAC"}
package/lib/index.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ export declare enum PlayerEvent {
2
+ UNISPHERE_CHAPTERS_ADDED = "unisphere_chapters_added"
3
+ }
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,oBAAY,WAAW;IACrB,wBAAwB,6BAA6B;CACtD"}
@@ -0,0 +1,4 @@
1
+ export declare enum PlayerEvent {
2
+ UNISPHERE_CHAPTERS_ADDED = "unisphere_chapters_added"
3
+ }
4
+ //# sourceMappingURL=player-event.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"player-event.d.ts","sourceRoot":"","sources":["../src/player-event.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACrB,wBAAwB,6BAA6B;CACtD"}
@@ -0,0 +1,11 @@
1
+ import { KalturaPlayer } from '@playkit-js/kaltura-player-js';
2
+ import { ContainerConfig } from '../../types';
3
+ declare class ContainerManager {
4
+ private player;
5
+ private containerProducers;
6
+ constructor(player: KalturaPlayer);
7
+ createContainer(containerConfig: ContainerConfig): string | null;
8
+ destroy(): void;
9
+ }
10
+ export { ContainerManager };
11
+ //# sourceMappingURL=container-manager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"container-manager.d.ts","sourceRoot":"","sources":["../../../src/services/container/container-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAG9C,cAAM,gBAAgB;IAMR,OAAO,CAAC,MAAM;IAL1B,OAAO,CAAC,kBAAkB,CAGvB;gBAEiB,MAAM,EAAE,aAAa;IAElC,eAAe,CAAC,eAAe,EAAE,eAAe,GAAG,MAAM,GAAG,IAAI;IAKhE,OAAO,IAAI,IAAI;CAKvB;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { ContainerManager } from './container-manager';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/container/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { KalturaPlayer } from '@playkit-js/kaltura-player-js';
2
+ import { SidePanelsManager } from '@playkit-js/ui-managers';
3
+ import { ContainerConfig } from '../../../types';
4
+ declare abstract class BaseContainerProducer {
5
+ protected _disposers: Map<string, () => void>;
6
+ protected generateId(containerConfig: ContainerConfig): string;
7
+ protected getSidePanelsManager(player: KalturaPlayer): SidePanelsManager | undefined;
8
+ protected addDisposer(containerId: string, disposer: () => void): void;
9
+ dispose(containerId: string): void;
10
+ destroy(): void;
11
+ }
12
+ export { BaseContainerProducer };
13
+ //# sourceMappingURL=base-container-producer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base-container-producer.d.ts","sourceRoot":"","sources":["../../../../src/services/container/producers/base-container-producer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGjD,uBAAe,qBAAqB;IAClC,SAAS,CAAC,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,IAAI,CAAC,CAAiC;IAE9E,SAAS,CAAC,UAAU,CAAC,eAAe,EAAE,eAAe,GAAG,MAAM;IAI9D,SAAS,CAAC,oBAAoB,CAAC,MAAM,EAAE,aAAa,GAAG,iBAAiB,GAAG,SAAS;IAIpF,SAAS,CAAC,WAAW,CAAC,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI;IAI/D,OAAO,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI;IAQlC,OAAO,IAAI,IAAI;CAKvB;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { KalturaPlayer } from '@playkit-js/kaltura-player-js';
2
+ import { ContainerConfig } from '../../../types';
3
+ export interface ContainerProducer<T extends ContainerConfig> {
4
+ createContainer(player: KalturaPlayer, containerConfig: T): string | null;
5
+ dispose(containerId: string): void;
6
+ destroy(): void;
7
+ }
8
+ //# sourceMappingURL=container-producer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"container-producer.d.ts","sourceRoot":"","sources":["../../../../src/services/container/producers/container-producer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEjD,MAAM,WAAW,iBAAiB,CAAC,CAAC,SAAS,eAAe;IAC1D,eAAe,CAAC,MAAM,EAAE,aAAa,EAAE,eAAe,EAAE,CAAC,GAAG,MAAM,GAAG,IAAI,CAAC;IAC1E,OAAO,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,OAAO,IAAI,IAAI,CAAC;CACjB"}
@@ -0,0 +1,4 @@
1
+ export { SidePanelContainerProducer } from './sidepanel-container-producer';
2
+ export { SimpleContainerProducer } from './simple-container-producer';
3
+ export * from './container-producer';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/container/producers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { KalturaPlayer } from '@playkit-js/kaltura-player-js';
2
+ import { SidePanelContainerConfig } from '../../../types';
3
+ import { ContainerProducer } from './container-producer';
4
+ import { BaseContainerProducer } from './base-container-producer';
5
+ declare class SidePanelContainerProducer extends BaseContainerProducer implements ContainerProducer<SidePanelContainerConfig> {
6
+ createContainer(player: KalturaPlayer, containerConfig: SidePanelContainerConfig): string | null;
7
+ }
8
+ export { SidePanelContainerProducer };
9
+ //# sourceMappingURL=sidepanel-container-producer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sidepanel-container-producer.d.ts","sourceRoot":"","sources":["../../../../src/services/container/producers/sidepanel-container-producer.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAE9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAG1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAElE,cAAM,0BAA2B,SAAQ,qBAAsB,YAAW,iBAAiB,CAAC,wBAAwB,CAAC;IAC5G,eAAe,CAAC,MAAM,EAAE,aAAa,EAAE,eAAe,EAAE,wBAAwB,GAAG,MAAM,GAAG,IAAI;CAsBxG;AAED,OAAO,EAAE,0BAA0B,EAAE,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { KalturaPlayer } from '@playkit-js/kaltura-player-js';
2
+ import { SimpleContainerConfig } from '../../../types';
3
+ import { BaseContainerProducer } from './base-container-producer';
4
+ import { ContainerProducer } from './container-producer';
5
+ declare class SimpleContainerProducer extends BaseContainerProducer implements ContainerProducer<SimpleContainerConfig> {
6
+ createContainer(player: KalturaPlayer, containerConfig: SimpleContainerConfig): string | null;
7
+ }
8
+ export { SimpleContainerProducer };
9
+ //# sourceMappingURL=simple-container-producer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"simple-container-producer.d.ts","sourceRoot":"","sources":["../../../../src/services/container/producers/simple-container-producer.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAE9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAEvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,cAAM,uBAAwB,SAAQ,qBAAsB,YAAW,iBAAiB,CAAC,qBAAqB,CAAC;IACtG,eAAe,CAAC,MAAM,EAAE,aAAa,EAAE,eAAe,EAAE,qBAAqB,GAAG,MAAM,GAAG,IAAI;CAcrG;AACD,OAAO,EAAE,uBAAuB,EAAE,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from './unisphere';
2
+ export * from './container';
3
+ export * from './utils';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
@@ -0,0 +1,5 @@
1
+ export { UnisphereWorkspaceService } from './unisphere-workspace-service';
2
+ export { UnisphereElementService } from './unisphere-element-service';
3
+ export { UnisphereEventService } from './unisphere-event-service';
4
+ export { UnisphereStorageService } from './unisphere-storage-service';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/unisphere/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { UnisphereWorkspaceType } from '@unisphere/runtime';
2
+ declare global {
3
+ interface Window {
4
+ unisphereWorkspace: UnisphereWorkspaceType;
5
+ }
6
+ }
7
+ declare abstract class UnisphereBaseService {
8
+ private static unsubscribeMap;
9
+ private static sequence;
10
+ protected static addToUnsubscribeMap(unsubscribe: () => void): number;
11
+ protected static unsubscribeAll(): void;
12
+ static unsubscribe(id: number): void;
13
+ }
14
+ export { UnisphereBaseService };
15
+ //# sourceMappingURL=unisphere-base-service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unisphere-base-service.d.ts","sourceRoot":"","sources":["../../../src/services/unisphere/unisphere-base-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAE5D,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,kBAAkB,EAAE,sBAAsB,CAAC;KAC5C;CACF;AAED,uBAAe,oBAAoB;IACjC,OAAO,CAAC,MAAM,CAAC,cAAc,CAAsC;IACnE,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAM;IAE7B,SAAS,CAAC,MAAM,CAAC,mBAAmB,CAAC,WAAW,EAAE,MAAM,IAAI,GAAG,MAAM;IAMrE,SAAS,CAAC,MAAM,CAAC,cAAc,IAAI,IAAI;WAOzB,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;CAO5C;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { UnisphereBaseService } from './unisphere-base-service';
2
+ import { UnisphereElementBaseType } from '@unisphere/runtime';
3
+ declare class UnisphereElementService extends UnisphereBaseService {
4
+ static get: ({ widgetId, context, settings }: {
5
+ widgetId: string;
6
+ context: string;
7
+ settings: unknown;
8
+ }) => Promise<UnisphereElementBaseType | null>;
9
+ }
10
+ export { UnisphereElementService };
11
+ //# sourceMappingURL=unisphere-element-service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unisphere-element-service.d.ts","sourceRoot":"","sources":["../../../src/services/unisphere/unisphere-element-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAG9D,cAAM,uBAAwB,SAAQ,oBAAoB;IACxD,OAAc,GAAG,oCAId;QACD,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,EAAE,OAAO,CAAC;KACnB,KAAG,OAAO,CAAC,wBAAwB,GAAG,IAAI,CAAC,CAQ1C;CACH;AAED,OAAO,EAAE,uBAAuB,EAAE,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { UnisphereBaseService } from './unisphere-base-service';
2
+ declare class UnisphereEventService extends UnisphereBaseService {
3
+ static subscribe: (event: string, callback: (data: {
4
+ payload: {
5
+ [key: string]: unknown;
6
+ };
7
+ }) => void) => number;
8
+ static emit: (event: string, payload: Record<string, unknown>) => void;
9
+ static destroy(): void;
10
+ }
11
+ export { UnisphereEventService };
12
+ //# sourceMappingURL=unisphere-event-service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unisphere-event-service.d.ts","sourceRoot":"","sources":["../../../src/services/unisphere/unisphere-event-service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAKhE,cAAM,qBAAsB,SAAQ,oBAAoB;IACtD,OAAc,SAAS,UAAW,MAAM,YAAY,CAAC,IAAI,EAAE;QAAE,OAAO,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;SAAE,CAAA;KAAE,KAAK,IAAI,KAAG,MAAM,CAUlH;IAEF,OAAc,IAAI,UAAW,MAAM,WAAW,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAG,IAAI,CAS1E;WAEY,OAAO,IAAI,IAAI;CAG9B;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { StorageServiceListener } from '@unisphere/runtime';
2
+ import { UnisphereBaseService } from './unisphere-base-service';
3
+ declare class UnisphereStorageService extends UnisphereBaseService {
4
+ static update: (key: string, value: unknown) => void;
5
+ static get: (key: string) => unknown;
6
+ static subscribe: (key: string, callback: StorageServiceListener) => void;
7
+ static destroy(): void;
8
+ }
9
+ export { UnisphereStorageService };
10
+ //# sourceMappingURL=unisphere-storage-service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unisphere-storage-service.d.ts","sourceRoot":"","sources":["../../../src/services/unisphere/unisphere-storage-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAsB,MAAM,oBAAoB,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAMhE,cAAM,uBAAwB,SAAQ,oBAAoB;IACxD,OAAc,MAAM,QAAS,MAAM,SAAS,OAAO,KAAG,IAAI,CAKxD;IAEF,OAAc,GAAG,QAAS,MAAM,KAAG,OAAO,CAIxC;IAEF,OAAc,SAAS,QAAS,MAAM,YAAY,sBAAsB,KAAG,IAAI,CAa7E;WAEY,OAAO,IAAI,IAAI;CAG9B;AAED,OAAO,EAAE,uBAAuB,EAAE,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { UnisphereWorkspaceType } from '@unisphere/runtime';
2
+ declare class UnisphereWorkspaceService {
3
+ private static workspaceInstance;
4
+ static set(workspaceInstance: UnisphereWorkspaceType): void;
5
+ static get(): UnisphereWorkspaceType | null;
6
+ static destroy(): void;
7
+ }
8
+ export { UnisphereWorkspaceService };
9
+ //# sourceMappingURL=unisphere-workspace-service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unisphere-workspace-service.d.ts","sourceRoot":"","sources":["../../../src/services/unisphere/unisphere-workspace-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAE5D,cAAM,yBAAyB;IAC7B,OAAO,CAAC,MAAM,CAAC,iBAAiB,CAAuC;WAEzD,GAAG,CAAC,iBAAiB,EAAE,sBAAsB,GAAG,IAAI;WAIpD,GAAG,IAAI,sBAAsB,GAAG,IAAI;WAIpC,OAAO,IAAI,IAAI;CAS9B;AAED,OAAO,EAAE,yBAAyB,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './utils';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare function getUniqueId(prefix?: string): string;
2
+ export { getUniqueId };
3
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/services/utils/utils.ts"],"names":[],"mappings":"AAEA,iBAAS,WAAW,CAAC,MAAM,SAAK,GAAG,MAAM,CAOxC;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
@@ -0,0 +1 @@
1
+ {"root":["../src/index.ts","../src/player-event.ts","../src/unisphere-plugin-manager.tsx","../src/unisphere-plugin.tsx","../src/components/index.ts","../src/components/container-element/container-element.tsx","../src/components/container-element/index.ts","../src/components/upper-bar-icon/index.ts","../src/components/upper-bar-icon/upper-bar-icon.tsx","../src/services/index.ts","../src/services/container/container-manager.ts","../src/services/container/index.ts","../src/services/container/producers/base-container-producer.ts","../src/services/container/producers/container-producer.ts","../src/services/container/producers/index.ts","../src/services/container/producers/sidepanel-container-producer.tsx","../src/services/container/producers/simple-container-producer.tsx","../src/services/unisphere/index.ts","../src/services/unisphere/unisphere-base-service.ts","../src/services/unisphere/unisphere-element-service.ts","../src/services/unisphere/unisphere-event-service.ts","../src/services/unisphere/unisphere-storage-service.ts","../src/services/unisphere/unisphere-workspace-service.ts","../src/services/utils/index.ts","../src/services/utils/utils.ts","../src/types/global.d.ts","../src/types/index.ts","../src/types/unisphere-event.ts","../src/types/unisphere-plugin-config.ts","../src/types/unisphere-storage-keys.ts"],"version":"5.6.3"}
@@ -0,0 +1,4 @@
1
+ export { UnisphereEvent } from './unisphere-event';
2
+ export { UnisphereStorageKeys } from './unisphere-storage-keys';
3
+ export * from './unisphere-plugin-config';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,cAAc,2BAA2B,CAAC"}
@@ -0,0 +1,14 @@
1
+ export declare enum UnisphereEvent {
2
+ UPPER_BAR_ICON_SHOW = "unisphere.event.player.upper-bar-icon.show",
3
+ UPPER_BAR_ICON_CLICK = "unisphere.event.player.upper-bar-icon.click",
4
+ SIDE_PANEL_OPEN = "unisphere.event.player.side-panel.open",
5
+ SIDE_PANEL_CLOSE = "unisphere.event.player.side-panel.close",
6
+ SIDE_PANEL_TOGGLE = "unisphere.event.player.side-panel.toggle",
7
+ SET_VALUE_CURRENT_TIME = "unisphere.event.player.set-value.current-time",
8
+ CHAPTERS_ADD = "unisphere.event.player.chapters.add",
9
+ PLAYER_RESIZE = "unisphere.event.player.resize",
10
+ DISPATCH_EVENT = "unisphere.event.player.dispatch-event",
11
+ SIDE_PANEL_CLOSED = "unisphere.event.player.side-panel.closed",
12
+ SIDE_PANEL_OPENED = "unisphere.event.player.side-panel.opened"
13
+ }
14
+ //# sourceMappingURL=unisphere-event.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unisphere-event.d.ts","sourceRoot":"","sources":["../../src/types/unisphere-event.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IACxB,mBAAmB,+CAA+C;IAClE,oBAAoB,gDAAgD;IACpE,eAAe,2CAA2C;IAC1D,gBAAgB,4CAA4C;IAC5D,iBAAiB,6CAA6C;IAC9D,sBAAsB,kDAAkD;IACxE,YAAY,wCAAwC;IACpD,aAAa,kCAAkC;IAC/C,cAAc,0CAA0C;IACxD,iBAAiB,6CAA6C;IAC9D,iBAAiB,6CAA6C;CAC/D"}
@@ -0,0 +1,24 @@
1
+ import { ReservedPresetAreas, ReservedPresetNames } from 'services/preset-manager/models/preset-item-data';
2
+ export interface ContainerConfig {
3
+ containerType: string;
4
+ presets: ReservedPresetNames[];
5
+ unisphereArea: string;
6
+ }
7
+ export interface SidePanelContainerConfig extends ContainerConfig {
8
+ position?: string;
9
+ expandMode?: string;
10
+ }
11
+ export interface SimpleContainerConfig extends ContainerConfig {
12
+ playerArea: ReservedPresetAreas;
13
+ }
14
+ export interface WidgetConfig {
15
+ widgetId: string;
16
+ context: string;
17
+ settings: unknown;
18
+ containers: ContainerConfig[];
19
+ }
20
+ export interface UnispherePluginConfig {
21
+ workspaceName?: string;
22
+ widgets: WidgetConfig[];
23
+ }
24
+ //# sourceMappingURL=unisphere-plugin-config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unisphere-plugin-config.d.ts","sourceRoot":"","sources":["../../src/types/unisphere-plugin-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AAE3G,MAAM,WAAW,eAAe;IAC9B,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,mBAAmB,EAAE,CAAC;IAC/B,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,wBAAyB,SAAQ,eAAe;IAC/D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,qBAAsB,SAAQ,eAAe;IAC5D,UAAU,EAAE,mBAAmB,CAAC;CACjC;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,eAAe,EAAE,CAAC;CAC/B;AACD,MAAM,WAAW,qBAAqB;IACpC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,YAAY,EAAE,CAAC;CACzB"}
@@ -0,0 +1,9 @@
1
+ declare enum UnisphereStorageKeys {
2
+ SELECTED_CHAPTER = "selectedChapter",
3
+ CURRENT_TIME = "currentTime",
4
+ IS_PAUSED = "isPaused",
5
+ PLAYER_SESSION = "player-session",
6
+ IS_SMALL_SIZE = "isSmallSize"
7
+ }
8
+ export { UnisphereStorageKeys };
9
+ //# sourceMappingURL=unisphere-storage-keys.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unisphere-storage-keys.d.ts","sourceRoot":"","sources":["../../src/types/unisphere-storage-keys.ts"],"names":[],"mappings":"AAAA,aAAK,oBAAoB;IACvB,gBAAgB,oBAAoB;IACpC,YAAY,gBAAgB;IAC5B,SAAS,aAAa;IACtB,cAAc,mBAAmB;IACjC,aAAa,gBAAgB;CAC9B;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { UnisphereWorkspaceType } from '@unisphere/runtime';
2
+ import { core, KalturaPlayer } from '@playkit-js/kaltura-player-js';
3
+ import { WidgetConfig } from './types';
4
+ declare class UnispherePluginManager {
5
+ private player;
6
+ private eventManager;
7
+ private logger;
8
+ private iconIds;
9
+ private panelIds;
10
+ private persistentIconIds;
11
+ private containerManager;
12
+ private currentIsSmallSize?;
13
+ private unsubscribeStore?;
14
+ constructor(player: KalturaPlayer, eventManager: core.EventManager, logger: any);
15
+ private get upperBarManager();
16
+ private get sidePanelsManager();
17
+ private get timelineManager();
18
+ private get cuePointManager();
19
+ private addEventHandlers;
20
+ private addUpperBarIcon;
21
+ private isVideoClipped;
22
+ private shouldLoadWidget;
23
+ loadWidgets(widgets: WidgetConfig[]): void;
24
+ init(workspaceInstance: UnisphereWorkspaceType, widgets: WidgetConfig[]): void;
25
+ updateSessionData(): void;
26
+ reset(): void;
27
+ destroy(): void;
28
+ }
29
+ export { UnispherePluginManager };
30
+ //# sourceMappingURL=unisphere-plugin-manager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unisphere-plugin-manager.d.ts","sourceRoot":"","sources":["../src/unisphere-plugin-manager.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAE5D,OAAO,EAAE,IAAI,EAAM,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAGxE,OAAO,EAAwC,YAAY,EAAE,MAAM,SAAS,CAAC;AAO7E,cAAM,sBAAsB;IAQd,OAAO,CAAC,MAAM;IAAiB,OAAO,CAAC,YAAY;IAAqB,OAAO,CAAC,MAAM;IAPlG,OAAO,CAAC,OAAO,CAA6B;IAC5C,OAAO,CAAC,QAAQ,CAAqB;IACrC,OAAO,CAAC,iBAAiB,CAA6B;IACtD,OAAO,CAAC,gBAAgB,CAAmB;IAC3C,OAAO,CAAC,kBAAkB,CAAC,CAAsB;IACjD,OAAO,CAAC,gBAAgB,CAAC,CAAa;gBAElB,MAAM,EAAE,aAAa,EAAU,YAAY,EAAE,IAAI,CAAC,YAAY,EAAU,MAAM,EAAE,GAAG;IAKvG,OAAO,KAAK,eAAe,GAE1B;IAED,OAAO,KAAK,iBAAiB,GAE5B;IAED,OAAO,KAAK,eAAe,GAa1B;IAED,OAAO,KAAK,eAAe,GAO1B;IAED,OAAO,CAAC,gBAAgB;IAwFxB,OAAO,CAAC,eAAe;IAsBvB,OAAO,CAAC,cAAc;IAKtB,OAAO,CAAC,gBAAgB;IAKjB,WAAW,CAAC,OAAO,EAAE,YAAY,EAAE,GAAG,IAAI;IAsB1C,IAAI,CAAC,iBAAiB,EAAE,sBAAsB,EAAE,OAAO,EAAE,YAAY,EAAE,GAAG,IAAI;IAM9E,iBAAiB,IAAI,IAAI;IAQzB,KAAK,IAAI,IAAI;IAmBb,OAAO,IAAI,IAAI;CAiBvB;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { BasePlugin, KalturaPlayer } from '@playkit-js/kaltura-player-js';
2
+ import { UnispherePluginConfig } from './types';
3
+ export declare const pluginName = "unisphere";
4
+ export declare class UnispherePlugin extends BasePlugin {
5
+ static defaultConfig: UnispherePluginConfig;
6
+ private unispherePluginManager;
7
+ private isReady;
8
+ private workspaceName;
9
+ private shouldCreateWorkspace;
10
+ constructor(name: string, player: KalturaPlayer, config: UnispherePluginConfig);
11
+ private getWorkspace;
12
+ static isValid(): boolean;
13
+ loadMedia(): void;
14
+ reset(): void;
15
+ destroy(): void;
16
+ }
17
+ //# sourceMappingURL=unisphere-plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unisphere-plugin.d.ts","sourceRoot":"","sources":["../src/unisphere-plugin.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAOhD,eAAO,MAAM,UAAU,cAAc,CAAC;AAEtC,qBAAa,eAAgB,SAAQ,UAAU;IAC7C,OAAc,aAAa,EAAE,qBAAqB,CAEhD;IAEF,OAAO,CAAC,sBAAsB,CAAyB;IAEvD,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,aAAa,CAAM;IAC3B,OAAO,CAAC,qBAAqB,CAAS;gBAE1B,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,qBAAqB;YAehE,YAAY;WAkBZ,OAAO,IAAI,OAAO;IAIzB,SAAS,IAAI,IAAI;IAiBjB,KAAK,IAAI,IAAI;IAIb,OAAO,IAAI,IAAI;CAIvB"}
package/package.json CHANGED
@@ -1,11 +1,22 @@
1
1
  {
2
2
  "name": "@playkit-js/unisphere",
3
- "version": "0.0.19-canary.0-3799517",
3
+ "version": "0.0.19-canary.0-df85552",
4
4
  "description": "Playkit JS Unisphere plugin",
5
5
  "main": "dist/playkit-unisphere.js",
6
6
  "typings": "dist/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/index.d.ts",
10
+ "default": "./dist/playkit-unisphere.js"
11
+ },
12
+ "./player-event": {
13
+ "types": "./lib/player-event.d.ts",
14
+ "default": "./dist/player-event.js"
15
+ }
16
+ },
7
17
  "files": [
8
18
  "dist/**/*",
19
+ "lib/**/*",
9
20
  "src/**/*"
10
21
  ],
11
22
  "license": "AGPL-3.0",
@@ -0,0 +1,3 @@
1
+ export enum PlayerEvent {
2
+ UNISPHERE_CHAPTERS_ADDED = 'unisphere_chapters_added'
3
+ }