dockview-react 8.4.0 → 8.5.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/cjs/react.d.ts +13 -0
- package/dist/dockview-react.js +314 -166
- package/dist/dockview-react.min.js +3 -3
- package/dist/package/main.cjs.js +127 -57
- package/dist/package/main.cjs.min.js +2 -2
- package/dist/package/main.esm.min.mjs +2 -2
- package/dist/package/main.esm.mjs +126 -58
- package/package.json +2 -2
package/dist/cjs/react.d.ts
CHANGED
|
@@ -32,4 +32,17 @@ type PortalLifecycleHook = () => [
|
|
|
32
32
|
*/
|
|
33
33
|
export declare const usePortalsLifecycle: PortalLifecycleHook;
|
|
34
34
|
export declare function isReactComponent(component: any): boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Creates the instance once and keeps it across effect cleanups that are not
|
|
37
|
+
* unmounts (`<Activity mode="hidden">`, StrictMode). A real unmount removes the
|
|
38
|
+
* host before cleanup, so a still-connected host means hidden; the instance is
|
|
39
|
+
* then disposed only if the host later leaves the document.
|
|
40
|
+
*/
|
|
41
|
+
export declare function useKeptInstance<T extends DockviewIDisposable>(domRef: React.RefObject<HTMLElement | null>, instanceRef: React.MutableRefObject<T | undefined>, create: (element: HTMLElement) => T): void;
|
|
42
|
+
/**
|
|
43
|
+
* Returns a check for option effects: true when the instance already holds the
|
|
44
|
+
* given values. The first values seen count as applied, since the instance was
|
|
45
|
+
* created from them, so effect replays skip redundant `updateOptions` calls.
|
|
46
|
+
*/
|
|
47
|
+
export declare function useAppliedOptions(instanceRef: React.RefObject<unknown>): (values: Record<string, unknown>) => boolean;
|
|
35
48
|
export {};
|