@netless/fastboard-ui 0.3.6 → 0.3.8-alpha.0

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
@@ -7,15 +7,15 @@ interface SvelteAction<T = void> {
7
7
  destroy?: () => void;
8
8
  };
9
9
  }
10
- declare type Theme = "light" | "dark";
11
- declare type Language = "en" | "zh-CN";
12
- declare type IconType = "normal" | "disable";
13
- declare type GenericIcon<K extends string, E extends string = IconType> = {
10
+ type Theme = "light" | "dark";
11
+ type Language = "en" | "zh-CN";
12
+ type IconType = "normal" | "disable";
13
+ type GenericIcon<K extends string, E extends string = IconType> = {
14
14
  [key in K]: {
15
15
  [kind in E]: string;
16
16
  };
17
17
  };
18
- declare type I18nData<T extends string> = Record<Language, Record<T, string>>;
18
+ type I18nData<T extends string> = Record<Language, Record<T, string>>;
19
19
  interface ToolbarConfig {
20
20
  apps?: {
21
21
  enable?: boolean;
@@ -82,24 +82,24 @@ declare interface PlayerControlProps {
82
82
  declare class PlayerControl extends SvelteComponentTyped<PlayerControlProps> {}
83
83
 
84
84
  declare interface ReplayFastboardProps {
85
- player?: FastboardPlayer | null;
86
- theme?: Theme;
87
- language?: Language;
88
- containerRef?: (container: HTMLDivElement | null) => void;
89
- }
90
- declare class ReplayFastboard extends SvelteComponentTyped<ReplayFastboardProps> {
85
+ player?: FastboardPlayer | null;
86
+ theme?: Theme;
87
+ language?: Language;
88
+ containerRef?: (container: HTMLDivElement | null) => void;
91
89
  }
92
90
 
91
+ declare class ReplayFastboard extends SvelteComponentTyped<ReplayFastboardProps> {}
92
+
93
93
  declare interface FastboardProps {
94
- app?: FastboardApp | null;
95
- theme?: Theme;
96
- language?: Language;
97
- containerRef?: (container: HTMLDivElement | null) => void;
98
- config?: FastboardUIConfig;
99
- }
100
- declare class Fastboard extends SvelteComponentTyped<FastboardProps> {
94
+ app?: FastboardApp | null;
95
+ theme?: Theme;
96
+ language?: Language;
97
+ containerRef?: (container: HTMLDivElement | null) => void;
98
+ config?: FastboardUIConfig;
101
99
  }
102
100
 
101
+ declare class Fastboard extends SvelteComponentTyped<FastboardProps> {}
102
+
103
103
  interface UI {
104
104
  /** render UI to div */
105
105
  mount(div: Element, props?: FastboardProps): UI;