@netless/fastboard-ui 0.3.2-canary.4 → 0.3.2

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
@@ -16,10 +16,15 @@ declare type GenericIcon<K extends string, E extends string = IconType> = {
16
16
  };
17
17
  };
18
18
  declare type I18nData<T extends string> = Record<Language, Record<T, string>>;
19
+ interface ToolbarConfig {
20
+ apps?: {
21
+ enable?: boolean;
22
+ };
23
+ }
19
24
  interface FastboardUIConfig {
20
25
  toolbar?: {
21
26
  enable?: boolean;
22
- };
27
+ } & ToolbarConfig;
23
28
  redo_undo?: {
24
29
  enable?: boolean;
25
30
  };
@@ -62,6 +67,7 @@ declare interface ToolbarProps {
62
67
  app?: FastboardApp | null;
63
68
  theme?: Theme;
64
69
  language?: Language;
70
+ config?: ToolbarConfig;
65
71
  }
66
72
 
67
73
  declare class Toolbar extends SvelteComponentTyped<ToolbarProps> {}
@@ -110,8 +116,9 @@ declare class AppsInToolbar {
110
116
  push(...data: AppInToolbar[]): void;
111
117
  insert(data: AppInToolbar, index: number): void;
112
118
  delete(filter: (data: AppInToolbar) => boolean): void;
119
+ clear(): void;
113
120
  }
114
121
 
115
122
  declare const apps: AppsInToolbar;
116
123
 
117
- export { AppInToolbar, AppsInToolbar, Fastboard, FastboardProps, FastboardUIConfig, GenericIcon, I18nData, IconType, Language, PageControl, PageControlProps, PlayerControl, PlayerControlProps, RedoUndo, RedoUndoProps, ReplayFastboard, ReplayFastboardProps, SvelteAction, Theme, Toolbar, ToolbarProps, ZoomControl, ZoomControlProps, apps };
124
+ export { AppInToolbar, AppsInToolbar, Fastboard, FastboardProps, FastboardUIConfig, GenericIcon, I18nData, IconType, Language, PageControl, PageControlProps, PlayerControl, PlayerControlProps, RedoUndo, RedoUndoProps, ReplayFastboard, ReplayFastboardProps, SvelteAction, Theme, Toolbar, ToolbarConfig, ToolbarProps, ZoomControl, ZoomControlProps, apps };