@ganeshdole/brainbox-widget 0.0.0-stage → 0.1.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.
@@ -0,0 +1,16 @@
1
+ import type { TriggerMode } from "@ganeshdole/brainbox-shared";
2
+ import type { Position } from "./lib/position.ts";
3
+ export interface BrainboxWidgetProps {
4
+ /** `floating` renders our launcher button; `manual` waits for
5
+ * `useBrainboxWidget().open()` or a host trigger. */
6
+ trigger?: TriggerMode;
7
+ /** Which corner the launcher and panels sit in. */
8
+ position?: Position;
9
+ }
10
+ /**
11
+ * Brainbox's own capture UI, for a React tree that has a `<BrainboxProvider>`
12
+ * above it. Renders into a shadow root appended to `<body>` rather than where
13
+ * it sits in the tree: the host's styles cannot reach it there, and no
14
+ * ancestor's `overflow` or `transform` can trap its fixed-position panels.
15
+ */
16
+ export declare function BrainboxWidget({ trigger, position }: BrainboxWidgetProps): import("react").ReactPortal | null;