dockview-react 8.4.1 → 8.5.1

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.
@@ -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 {};