strataplayer 1.2.7 → 1.2.8

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/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { default as default_2 } from 'react';
2
2
  import { JSX } from 'react/jsx-runtime';
3
3
 
4
- declare interface ContextMenuItem {
4
+ export declare interface ContextMenuItem {
5
5
  html?: string | default_2.ReactNode;
6
6
  disabled?: boolean;
7
7
  icon?: string | default_2.ReactNode;
@@ -13,7 +13,7 @@ declare interface ContextMenuItem {
13
13
  isLabel?: boolean;
14
14
  }
15
15
 
16
- declare interface ControlItem {
16
+ export declare interface ControlItem {
17
17
  id?: string;
18
18
  position: 'left' | 'right' | 'center';
19
19
  index: number;
@@ -42,14 +42,15 @@ declare interface Highlight_2 {
42
42
  time: number;
43
43
  text: string;
44
44
  }
45
+ export { Highlight_2 as Highlight }
45
46
 
46
- declare interface IPlugin {
47
+ export declare interface IPlugin {
47
48
  name: string;
48
49
  init(core: StrataCore): void;
49
50
  destroy?(): void;
50
51
  }
51
52
 
52
- declare interface LayerConfig {
53
+ export declare interface LayerConfig {
53
54
  name?: string;
54
55
  html: string | default_2.ReactNode;
55
56
  style?: default_2.CSSProperties;
@@ -79,6 +80,7 @@ declare interface Notification_2 {
79
80
  duration?: number;
80
81
  progress?: number;
81
82
  }
83
+ export { Notification_2 as Notification }
82
84
 
83
85
  export declare interface PlayerSource {
84
86
  url: string;
@@ -142,9 +144,9 @@ export declare interface PlayerState {
142
144
  controlsVisible: boolean;
143
145
  }
144
146
 
145
- declare type PlayerTheme = 'default' | 'pixel' | 'game' | 'hacker';
147
+ export declare type PlayerTheme = 'default' | 'pixel' | 'game' | 'hacker';
146
148
 
147
- declare interface SettingItem {
149
+ export declare interface SettingItem {
148
150
  id?: string;
149
151
  html: string | default_2.ReactNode;
150
152
  icon?: string | default_2.ReactNode;
@@ -309,7 +311,7 @@ declare interface StrataPlayerProps extends StrataConfig {
309
311
  onGetInstance?: (core: StrataCore) => void;
310
312
  }
311
313
 
312
- declare interface SubtitleSettings {
314
+ export declare interface SubtitleSettings {
313
315
  useNative: boolean;
314
316
  fixCapitalization: boolean;
315
317
  backgroundOpacity: number;