@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 +4 -4
- package/dist/index.js +12 -2833
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -2833
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
- package/src/components/tippy-util.ts +4 -14
- package/src/vanilla/index.tsx +3 -3
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(): "
|
|
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
|
|
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
|
|
142
|
-
update(props
|
|
141
|
+
declare function mount(app: FastboardApp, dom: HTMLElement, props?: MountProps): {
|
|
142
|
+
update(props?: MountProps): void;
|
|
143
143
|
destroy(): void;
|
|
144
144
|
};
|
|
145
145
|
|