@netless/fastboard-react 0.2.10 → 0.2.13-canary.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
@@ -20,7 +20,7 @@ declare function useTheme(userTheme?: Theme | null): Theme;
20
20
  declare function useFastboardApp(): FastboardApp;
21
21
  declare function useFastboardValue<T>(val: FastboardReadable<T>): T;
22
22
  declare function useWritable(): boolean;
23
- declare function useBoxState(): "minimized" | "maximized" | "normal" | undefined;
23
+ declare function useBoxState(): "normal" | "minimized" | "maximized" | undefined;
24
24
  declare function useFocusedApp(): string | undefined;
25
25
  declare function useMaximized(): boolean;
26
26
  declare function useHideControls(): boolean | "toolbar-only";
@@ -131,15 +131,15 @@ declare const ReplayFastboard: React__default.ForwardRefExoticComponent<Pick<Rep
131
131
 
132
132
  declare type MountProps = Omit<FastboardProps & DivProps, "ref">;
133
133
  /**
134
- * Mount fastboard app to some dom, returns the disposer, which will unmount the app.
134
+ * Mount fastboard app to some dom, returns the updater and disposer.
135
135
  * @example
136
136
  * let app = await createFastboard({ ...config })
137
137
  * const { update, destroy } = mount(app, document.getElementById("whiteboard"))
138
138
  * update({ theme: 'dark' })
139
139
  * destroy()
140
140
  */
141
- declare function mount(app: FastboardApp, dom: HTMLElement, props: MountProps): {
142
- update(props: MountProps): void;
141
+ declare function mount(app: FastboardApp, dom: HTMLElement, props?: MountProps): {
142
+ update(props?: MountProps): void;
143
143
  destroy(): void;
144
144
  };
145
145