@apps-in-toss/devtools 3.0.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.
@@ -0,0 +1,25 @@
1
+ //#region src/panel/index.d.ts
2
+ /**
3
+ * @apps-in-toss/devtools Floating Panel — entry + auto-mount.
4
+ *
5
+ * Importing `@apps-in-toss/devtools/panel` mounts the DevTools panel on the page. The
6
+ * panel UI is a self-contained client-side React 19 tree (`<Panel>`); React is
7
+ * BUNDLED into `dist/panel/index.js` (the tsdown panel entry has no `external`),
8
+ * so consumers do not need React in their own graph and react never appears in
9
+ * this package's published `dependencies` (it is a devDependency).
10
+ *
11
+ * `mount()` / `disposePanel()` keep the same public contract as the old vanilla
12
+ * implementation (idempotent mount guard, full teardown) so existing tests and
13
+ * the locale-reactivity layer continue to work. Locale changes no longer remount
14
+ * the panel — `<Panel>` subscribes to the i18n store via `useT()` and re-renders
15
+ * its subtree in place (tab + button position survive).
16
+ */
17
+ declare function mount(): void;
18
+ /**
19
+ * Pairs with `mount()`. Idempotent — safe to call before mount or twice in a row.
20
+ * Unmounts the React tree, removes the host + injected `<style>`, and resets
21
+ * module state so `mount()` can re-mount cleanly.
22
+ */
23
+ declare function disposePanel(): void;
24
+ //#endregion
25
+ export { disposePanel, mount };