@atlaskit/navigation-system
Version:
Page layout and navigation components for Atlassian apps.
20 lines (19 loc) • 771 B
TypeScript
import { type Context, type RefObject } from 'react';
import type { LayoutAreaMode } from './layout-area-sizing-context';
export type ChatPanelLayout = {
mode: LayoutAreaMode | 'responsive' | 'exiting';
phase?: 'entering' | 'exiting';
managedWidth?: number;
exitWidth?: string;
};
type ChatPanelLayoutOwner = {
rootRef: RefObject<HTMLDivElement>;
setLayout: (layout: ChatPanelLayout) => void;
/**
* Clears the layout only while it is still the published one. An exiting ChatPanel can
* unmount after its replacement has reported, and must not remove the replacement's layout.
*/
clearLayout: (layout: ChatPanelLayout) => void;
};
export declare const ChatPanelLayoutContext: Context<ChatPanelLayoutOwner | null>;
export {};