@paramour-js/devtools-panel 1.0.0-rc.1 → 1.0.0-rc.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.
- package/dist/components/panel.d.ts +3 -3
- package/dist/plugin.d.ts +9 -2
- package/dist/plugin.js +1 -1
- package/package.json +3 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
2
|
export interface ParamourDevtoolsPanelProps {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* The shell's theme, passed through by `paramourDevtoolsPlugin()`'s
|
|
5
|
+
* render function; selects the stylesheet's token set via a `data-theme`
|
|
6
|
+
* attribute — no theme context, no remount.
|
|
7
7
|
*/
|
|
8
8
|
readonly theme?: "dark" | "light";
|
|
9
9
|
}
|
package/dist/plugin.d.ts
CHANGED
|
@@ -6,13 +6,20 @@ import type { ReactElement } from "react";
|
|
|
6
6
|
* entry type is declared STRUCTURALLY (the shell's contract is just
|
|
7
7
|
* name/render/id/defaultOpen) so this module never imports the shell at
|
|
8
8
|
* runtime; assignability to the real plugin type is certified by the
|
|
9
|
-
* package's type tests.
|
|
9
|
+
* package's type tests.
|
|
10
|
+
*
|
|
11
|
+
* `render` is a function because that is the only way the panel receives
|
|
12
|
+
* the shell's theme: the shell calls a function render as
|
|
13
|
+
* `render(el, { theme, devtoolsOpen })` whenever its theme changes, and
|
|
14
|
+
* renders an element as-is with no props injected.
|
|
10
15
|
*/
|
|
11
16
|
export interface ParamourDevtoolsPluginEntry {
|
|
12
17
|
readonly defaultOpen?: boolean;
|
|
13
18
|
readonly id: string;
|
|
14
19
|
readonly name: string;
|
|
15
|
-
readonly render:
|
|
20
|
+
readonly render: (el: HTMLElement, props: {
|
|
21
|
+
readonly theme: "dark" | "light";
|
|
22
|
+
}) => ReactElement;
|
|
16
23
|
}
|
|
17
24
|
export interface ParamourDevtoolsPluginOptions {
|
|
18
25
|
readonly defaultOpen?: boolean;
|
package/dist/plugin.js
CHANGED
|
@@ -7,6 +7,6 @@ export function paramourDevtoolsPlugin(options) {
|
|
|
7
7
|
: { defaultOpen: options.defaultOpen }),
|
|
8
8
|
id: "paramour-devtools",
|
|
9
9
|
name: "Paramour",
|
|
10
|
-
render: _jsx(ParamourDevtoolsPanel, {}),
|
|
10
|
+
render: (_el, { theme }) => _jsx(ParamourDevtoolsPanel, { theme: theme }),
|
|
11
11
|
};
|
|
12
12
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paramour-js/devtools-panel",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"react-dom": "^19.2.0",
|
|
35
35
|
"typescript": "^6.0.3",
|
|
36
36
|
"zod": "^4.4.3",
|
|
37
|
-
"@paramour-js/next": "1.0.0-rc.
|
|
38
|
-
"paramour": "1.0.0-rc.
|
|
37
|
+
"@paramour-js/next": "1.0.0-rc.2",
|
|
38
|
+
"paramour": "1.0.0-rc.2"
|
|
39
39
|
},
|
|
40
40
|
"description": "Paramour devtools: a TanStack Devtools panel showing live route observations — wire vs parsed values, codec shapes, default/catch attribution, decode issues, and editable search params.",
|
|
41
41
|
"author": "Jason Paff <jasonpaff@gmail.com>",
|