@preact/signals-devtools-ui 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.
- package/CHANGELOG.md +12 -0
- package/LICENSE +21 -0
- package/README.md +139 -0
- package/dist/devtools-ui.d.ts +5 -0
- package/dist/devtools-ui.js +1 -0
- package/dist/devtools-ui.js.map +1 -0
- package/dist/devtools-ui.min.js +1 -0
- package/dist/devtools-ui.min.js.map +1 -0
- package/dist/devtools-ui.mjs +1 -0
- package/dist/devtools-ui.mjs.map +1 -0
- package/dist/devtools-ui.module.js +1 -0
- package/dist/devtools-ui.module.js.map +1 -0
- package/dist/styles.css +835 -0
- package/package.json +66 -0
- package/src/DevToolsPanel.tsx +107 -0
- package/src/components/Button.tsx +31 -0
- package/src/components/EmptyState.tsx +29 -0
- package/src/components/Graph.tsx +496 -0
- package/src/components/Header.tsx +39 -0
- package/src/components/SettingsPanel.tsx +129 -0
- package/src/components/StatusIndicator.tsx +22 -0
- package/src/components/UpdateItem.tsx +75 -0
- package/src/components/UpdateTreeNode.tsx +69 -0
- package/src/components/UpdatesContainer.tsx +41 -0
- package/src/components/index.ts +9 -0
- package/src/context.ts +359 -0
- package/src/index.ts +47 -0
- package/src/styles.css +835 -0
- package/src/types.ts +35 -0
package/src/types.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-export types from the adapter package for convenience
|
|
3
|
+
*/
|
|
4
|
+
export type {
|
|
5
|
+
SignalUpdate,
|
|
6
|
+
SignalDisposed,
|
|
7
|
+
Settings,
|
|
8
|
+
ConnectionStatus,
|
|
9
|
+
ConnectionStatusType,
|
|
10
|
+
DevToolsAdapter,
|
|
11
|
+
} from "@preact/signals-devtools-adapter";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Graph-related types
|
|
15
|
+
*/
|
|
16
|
+
export interface GraphNode {
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
type: "signal" | "computed" | "effect";
|
|
20
|
+
x: number;
|
|
21
|
+
y: number;
|
|
22
|
+
depth: number;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface GraphLink {
|
|
26
|
+
source: string;
|
|
27
|
+
target: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface GraphData {
|
|
31
|
+
nodes: GraphNode[];
|
|
32
|
+
links: GraphLink[];
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type Divider = { type: "divider" };
|