@playkit-js/playkit-js-ui 0.78.0 → 0.78.1-canary.0-6f60446

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.
@@ -2,7 +2,6 @@ import { AbrMode } from '@playkit-js/playkit-js';
2
2
  import { ActionCreatorsMapObject } from 'redux';
3
3
  import { AudioTrack } from '@playkit-js/playkit-js';
4
4
  import { BaseMiddleware } from '@playkit-js/playkit-js';
5
- import { BaseProvider } from '@playkit-js/playkit-js-providers';
6
5
  import { Component } from 'preact';
7
6
  import { ComponentChild } from 'preact';
8
7
  import { ComponentChildren } from 'preact';
@@ -15,10 +14,10 @@ import { FakeEvent } from '@playkit-js/playkit-js';
15
14
  import { FakeEventTarget } from '@playkit-js/playkit-js';
16
15
  import { FunctionalComponent } from 'preact';
17
16
  import { h } from 'preact';
17
+ import { KPUIAddComponent as KPUIAddComponent_2 } from '@playkit-js/playkit-js-ui';
18
+ import { KPUIRemoveComponent as KPUIRemoveComponent_2 } from '@playkit-js/playkit-js-ui';
18
19
  import { LoggerLevels } from '@playkit-js/playkit-js';
19
20
  import { MediaType } from '@playkit-js/playkit-js';
20
- import { OTTProviderMediaInfoObject } from '@playkit-js/playkit-js-providers';
21
- import { OVPProviderMediaInfoObject } from '@playkit-js/playkit-js-providers';
22
21
  import { PKAbrConfigObject } from '@playkit-js/playkit-js';
23
22
  import { PKDimensionsConfig } from '@playkit-js/playkit-js';
24
23
  import { PKDrmDataObject } from '@playkit-js/playkit-js';
@@ -34,14 +33,15 @@ import { PKTextTrack } from '@playkit-js/playkit-js';
34
33
  import * as preact_2 from 'preact';
35
34
  import * as preactHooks from 'preact/hooks';
36
35
  import * as preacti18n from 'preact-i18n';
37
- import { ProviderEntryListObject } from '@playkit-js/playkit-js-providers';
38
- import { ProviderMediaConfigSessionObject } from '@playkit-js/playkit-js-providers';
39
- import { ProviderMediaConfigSourcesObject } from '@playkit-js/playkit-js-providers';
40
- import { ProviderMediaInfoObject } from '@playkit-js/playkit-js-providers';
41
- import { ProviderOptionsObject } from '@playkit-js/playkit-js-providers';
42
- import { ProviderPlaylistInfoObject } from '@playkit-js/playkit-js-providers';
43
- import { ProviderPlaylistMetadataObject } from '@playkit-js/playkit-js-providers';
44
- import { ProviderPlaylistObject } from '@playkit-js/playkit-js-providers';
36
+ import { Provider } from '@playkit-js/playkit-js-providers/ovp-provider';
37
+ import { ProviderEntryListObject } from '@playkit-js/playkit-js-providers/types';
38
+ import { ProviderMediaConfigSessionObject } from '@playkit-js/playkit-js-providers/types';
39
+ import { ProviderMediaConfigSourcesObject } from '@playkit-js/playkit-js-providers/types';
40
+ import { ProviderMediaInfoObject } from '@playkit-js/playkit-js-providers/types';
41
+ import { ProviderOptionsObject } from '@playkit-js/playkit-js-providers/types';
42
+ import { ProviderPlaylistInfoObject } from '@playkit-js/playkit-js-providers/types';
43
+ import { ProviderPlaylistMetadataObject } from '@playkit-js/playkit-js-providers/types';
44
+ import { ProviderPlaylistObject } from '@playkit-js/playkit-js-providers/types';
45
45
  import * as redux from 'react-redux';
46
46
  import { RefObject } from 'preact';
47
47
  import { RenderableProps } from 'preact';
@@ -997,7 +997,7 @@ declare class BaseComponent extends Component<any, any> {
997
997
  * Other plugins should extend this class.
998
998
  * @classdesc
999
999
  */
1000
- declare class BasePlugin implements IPlugin {
1000
+ declare class BasePlugin {
1001
1001
  protected logger: any;
1002
1002
  /**
1003
1003
  * The runtime configuration of the plugin.
@@ -1031,16 +1031,6 @@ declare class BasePlugin implements IPlugin {
1031
1031
  * @member
1032
1032
  */
1033
1033
  protected static defaultConfig: any;
1034
- /**
1035
- * Factory method to create the actual plugin.
1036
- * @param {string} name - The plugin name
1037
- * @param {Object} player - The player reference
1038
- * @param {Object} config - The plugin configuration
1039
- * @returns {BasePlugin} - New runtime plugin instance
1040
- * @static
1041
- * @public
1042
- */
1043
- static createPlugin(name: string, player: KalturaPlayer, config?: any): BasePlugin;
1044
1034
  /**
1045
1035
  * Returns under what conditions the plugin is valid.
1046
1036
  * Plugin must implement this method.
@@ -1049,7 +1039,7 @@ declare class BasePlugin implements IPlugin {
1049
1039
  * @public
1050
1040
  * @abstract
1051
1041
  */
1052
- protected static isValid(): boolean;
1042
+ static isValid(): boolean;
1053
1043
  /**
1054
1044
  * constructor
1055
1045
  * @param {string} name - The plugin name
@@ -1058,7 +1048,7 @@ declare class BasePlugin implements IPlugin {
1058
1048
  * @constructor
1059
1049
  * @private
1060
1050
  */
1061
- constructor(name: string, player: KalturaPlayer, config: any);
1051
+ constructor(name: string, player: KalturaPlayer, config?: any);
1062
1052
  /**
1063
1053
  * Getter for the configuration of the plugin.
1064
1054
  * @param {string} attr - The key in the plugin configuration (optional).
@@ -1115,7 +1105,7 @@ declare class BasePlugin implements IPlugin {
1115
1105
  * @param {any} payload - The event payload.
1116
1106
  * @returns {void}
1117
1107
  */
1118
- dispatchEvent(name: string, payload: any): void;
1108
+ dispatchEvent(name: string, payload?: any): void;
1119
1109
  }
1120
1110
 
1121
1111
  /**
@@ -1917,6 +1907,17 @@ export declare type ColorType = {
1917
1907
  warning: string;
1918
1908
  live: string;
1919
1909
  playerBackground: string;
1910
+ paperSurface: string;
1911
+ elevatedSurface: string;
1912
+ protectionSurface: string;
1913
+ tone1: string;
1914
+ tone2: string;
1915
+ tone3: string;
1916
+ tone4: string;
1917
+ tone5: string;
1918
+ tone6: string;
1919
+ tone7: string;
1920
+ tone8: string;
1920
1921
  };
1921
1922
 
1922
1923
  declare namespace Components {
@@ -3486,9 +3487,6 @@ declare class InteractiveArea extends Component<any, any> {
3486
3487
  render(): h.JSX.Element;
3487
3488
  }
3488
3489
 
3489
- declare interface IPlugin {
3490
- }
3491
-
3492
3490
  /**
3493
3491
  * @interface IRemotePlayer
3494
3492
  *
@@ -3901,8 +3899,8 @@ declare class KalturaPlayer extends FakeEventTarget {
3901
3899
  isUntimedImg(): boolean;
3902
3900
  isUntimedDocument(): boolean;
3903
3901
  isImage(): boolean;
3904
- isAudio(): boolean;
3905
3902
  isDocument(): boolean;
3903
+ isAudio(): boolean;
3906
3904
  seekToLiveEdge(): void;
3907
3905
  getStartTimeOfDvrWindow(): number;
3908
3906
  getTracks(type?: TrackTypes): Array<Track>;
@@ -3993,7 +3991,7 @@ declare class KalturaPlayer extends FakeEventTarget {
3993
3991
  get plugins(): {
3994
3992
  [name: string]: BasePlugin;
3995
3993
  };
3996
- get provider(): BaseProvider<OVPProviderMediaInfoObject | OTTProviderMediaInfoObject>;
3994
+ get provider(): Provider;
3997
3995
  get ui(): UIWrapper;
3998
3996
  /**
3999
3997
  * The playlist controller.
@@ -4554,6 +4552,13 @@ declare class Logo extends Component<any, any> {
4554
4552
  * @memberof Logo
4555
4553
  */
4556
4554
  private _handleLogoUrl;
4555
+ /**
4556
+ * sets the url with the entry id
4557
+ * @param {string} url - the url configured on the logo
4558
+ * @returns {boolean} - whether the url was set with entry id or not
4559
+ * @memberof Logo
4560
+ */
4561
+ private _setLogoUrlWithEntryId;
4557
4562
  /**
4558
4563
  * should render component
4559
4564
  * @returns {boolean} - whether to render the component
@@ -5509,11 +5514,14 @@ declare class PlaylistNextScreen extends Component<any, any> {
5509
5514
  * @typedef {Object} KPPlaylistOptions@typedef {Object} KPPlaylistOptions
5510
5515
  * @property {boolean} [autoContinue=true] - Determines whether to continue to the next item automatically.
5511
5516
  * @property {boolean} [loop=false] - Determines whether to play the playlist in a loop. When selected, the playlist will play automatically even if autoContinue is set to false.
5517
+ * @property {string} [startAtEntryId] - Determines which entry id to start to the play the playlist from.
5512
5518
  */
5513
5519
  declare interface PlaylistOptions {
5514
5520
  autoContinue: boolean;
5515
5521
  loop: boolean;
5516
5522
  imageDuration: number;
5523
+ documentDuration: number;
5524
+ startAtEntryId?: string;
5517
5525
  }
5518
5526
 
5519
5527
  declare interface PlaylistState {
@@ -7500,14 +7508,14 @@ declare class UIWrapper {
7500
7508
  * @param {KPUIAddComponent} component - The component to add
7501
7509
  * @returns {Function} - Removal function
7502
7510
  */
7503
- addComponent(component: any): () => void;
7511
+ addComponent(component: KPUIAddComponent_2): () => void;
7504
7512
  /**
7505
7513
  * Remove a component dynamically
7506
7514
  *
7507
7515
  * @param {KPUIRemoveComponent} component - The component to remove
7508
7516
  * @returns {Function} - Undo removal function
7509
7517
  */
7510
- removeComponent(component: any): () => void;
7518
+ removeComponent(component: KPUIRemoveComponent_2): () => void;
7511
7519
  get store(): any;
7512
7520
  /**
7513
7521
  * Deprecated - left for backward compatibility - use instead registerService in KalturaPlayer