@lettuceai/crisp 1.1.0 → 1.2.2

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.
@@ -26,7 +26,7 @@ export interface CommandPaletteProps {
26
26
  * settings and every navigation target are all searchable, just not from one place.
27
27
  * It never replaces a visible control; it's a shortcut to ones that exist.
28
28
  */
29
- export declare function CommandPalette({ open, onOpenChange, commands, placeholder, onQueryChange, loading, emptyMessage, }: CommandPaletteProps): import("react").ReactPortal;
29
+ export declare function CommandPalette({ open, onOpenChange, commands, placeholder, onQueryChange, loading, emptyMessage, }: CommandPaletteProps): import("react").ReactPortal | null;
30
30
  /** Binds ⌘K / Ctrl+K. Ignores the shortcut while a field is focused. */
31
31
  export declare function useCommandPalette(): {
32
32
  open: boolean;
@@ -12,4 +12,4 @@ export interface DialogProps {
12
12
  children?: ReactNode;
13
13
  }
14
14
  /** Centred modal. Confirmations, short forms, anything that should not feel like a page. */
15
- export declare function Dialog({ open, onClose, title, description, footer, size, dismissible, className, children }: DialogProps): import("react").ReactPortal;
15
+ export declare function Dialog({ open, onClose, title, description, footer, size, dismissible, className, children }: DialogProps): import("react").ReactPortal | null;
@@ -13,4 +13,4 @@ export interface ImageViewerProps {
13
13
  * Full-screen image inspection for the image library and chat attachments. Arrow keys
14
14
  * page, Escape closes, +/- zoom, and a zoomed image pans by drag.
15
15
  */
16
- export declare function ImageViewer({ images, index, onIndexChange }: ImageViewerProps): import("react").ReactPortal;
16
+ export declare function ImageViewer({ images, index, onIndexChange }: ImageViewerProps): import("react").ReactPortal | null;
@@ -42,4 +42,4 @@ export interface PopoverContentProps {
42
42
  className?: string;
43
43
  children: ReactNode;
44
44
  }
45
- export declare function PopoverContent({ side, align, offset, matchWidth, className, children }: PopoverContentProps): import("react").ReactPortal;
45
+ export declare function PopoverContent({ side, align, offset, matchWidth, className, children }: PopoverContentProps): import("react").ReactPortal | null;
@@ -19,6 +19,11 @@ export interface SheetProps {
19
19
  * moment it takes focus.
20
20
  */
21
21
  closeButton?: boolean;
22
+ /**
23
+ * `false` while the sheet must stay up, such as during a download it shows: drag,
24
+ * scrim, Escape and the close button no longer close it. Default `true`.
25
+ */
26
+ dismissible?: boolean;
22
27
  footer?: ReactNode;
23
28
  /**
24
29
  * `bottom` (default) everywhere — the bottom menu is the app's signature surface and
@@ -41,7 +46,7 @@ export interface SheetProps {
41
46
  className?: string;
42
47
  children: ReactNode;
43
48
  }
44
- export declare function Sheet({ open, onClose, title, description, leftAction, rightAction, closeButton, footer, placement, size, detents, defaultDetent, className, children, }: SheetProps): import("react").ReactPortal | null;
49
+ export declare function Sheet({ open, onClose, title, description, leftAction, rightAction, closeButton, dismissible, footer, placement, size, detents, defaultDetent, className, children, }: SheetProps): import("react").ReactPortal | null;
45
50
  /**
46
51
  * The team's name for this surface. Same component — `BottomMenu` reads better at
47
52
  * call sites that are, and always will be, a bottom menu.
@@ -11,5 +11,11 @@ export interface TooltipProps {
11
11
  className?: string;
12
12
  children: ReactElement<Record<string, unknown>>;
13
13
  }
14
- /** Hover / focus hint. Never the only place a label lives — icon buttons still need `label`. */
14
+ /**
15
+ * Hover / focus hint. Never the only place a label lives — icon buttons still need `label`.
16
+ * It renders in the overlay portal at the trigger's position, so a scrolling or clipping
17
+ * ancestor never hides it; it closes on scroll and resize instead of following the trigger.
18
+ * It keeps its own compositing layer: WebKit otherwise paints it under any layer a
19
+ * `backdrop-filter` creates, such as AppBar, whatever the z-index says.
20
+ */
15
21
  export declare function Tooltip({ content, placement, delay, disabled, className, children }: TooltipProps): import("react").JSX.Element;