@solidnative-dev/devtools 0.0.0-stage → 0.1.0-alpha.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.
Files changed (51) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +266 -2
  3. package/dist/causal-solid.d.ts +30 -0
  4. package/dist/causal-solid.d.ts.map +1 -0
  5. package/dist/causal-solid.js +1108 -0
  6. package/dist/causal-solid.js.map +1 -0
  7. package/dist/index.d.ts +46 -0
  8. package/dist/index.d.ts.map +1 -0
  9. package/dist/index.js +220 -0
  10. package/dist/index.js.map +1 -0
  11. package/dist/network-service-development.d.ts +6 -0
  12. package/dist/network-service-development.d.ts.map +1 -0
  13. package/dist/network-service-development.js +12 -0
  14. package/dist/network-service-development.js.map +1 -0
  15. package/dist/network-service.d.ts +13 -0
  16. package/dist/network-service.d.ts.map +1 -0
  17. package/dist/network-service.js +37 -0
  18. package/dist/network-service.js.map +1 -0
  19. package/dist/network.d.ts +57 -0
  20. package/dist/network.d.ts.map +1 -0
  21. package/dist/network.js +353 -0
  22. package/dist/network.js.map +1 -0
  23. package/dist/react-native.d.ts +27 -0
  24. package/dist/react-native.d.ts.map +1 -0
  25. package/dist/react-native.js +111 -0
  26. package/dist/react-native.js.map +1 -0
  27. package/dist/root-development.d.ts +5 -0
  28. package/dist/root-development.d.ts.map +1 -0
  29. package/dist/root-development.js +86 -0
  30. package/dist/root-development.js.map +1 -0
  31. package/dist/root.d.ts +48 -0
  32. package/dist/root.d.ts.map +1 -0
  33. package/dist/root.js +8 -0
  34. package/dist/root.js.map +1 -0
  35. package/dist/solid-diagnostics-development.d.ts +30 -0
  36. package/dist/solid-diagnostics-development.d.ts.map +1 -0
  37. package/dist/solid-diagnostics-development.js +166 -0
  38. package/dist/solid-diagnostics-development.js.map +1 -0
  39. package/dist/solid-diagnostics.d.ts +15 -0
  40. package/dist/solid-diagnostics.d.ts.map +1 -0
  41. package/dist/solid-diagnostics.js +20 -0
  42. package/dist/solid-diagnostics.js.map +1 -0
  43. package/dist/solid.d.ts +32 -0
  44. package/dist/solid.d.ts.map +1 -0
  45. package/dist/solid.js +563 -0
  46. package/dist/solid.js.map +1 -0
  47. package/dist/tree-solid.d.ts +106 -0
  48. package/dist/tree-solid.d.ts.map +1 -0
  49. package/dist/tree-solid.js +1117 -0
  50. package/dist/tree-solid.js.map +1 -0
  51. package/package.json +66 -3
@@ -0,0 +1,106 @@
1
+ import { type CausalTimelineOperation, type CausalTimelineSnapshot, type TreeDebugNode, type TreeDebugSnapshot } from "@solidnative-dev/observability";
2
+ import { type Element as SolidElement } from "solid-js";
3
+ export declare const DEVELOPMENT_TREE_PANEL_DEFAULT_VISIBLE_NODES = 80;
4
+ export declare const DEVELOPMENT_TREE_PANEL_MAX_VISIBLE_NODES = 250;
5
+ export declare const DEVELOPMENT_TREE_PANEL_MAX_SEARCH_LENGTH = 128;
6
+ export type DevelopmentTreeSnapshotProvider = () => TreeDebugSnapshot | undefined;
7
+ export interface DevelopmentTreeNodeBounds {
8
+ readonly x: number;
9
+ readonly y: number;
10
+ readonly width: number;
11
+ readonly height: number;
12
+ readonly pageX: number;
13
+ readonly pageY: number;
14
+ }
15
+ export type DevelopmentTreeMeasureProvider = (handle: number) => DevelopmentTreeNodeBounds | undefined | Promise<DevelopmentTreeNodeBounds | undefined>;
16
+ export interface HighlightedTreeNodeState {
17
+ readonly selectedHandle: number;
18
+ readonly measuredHandle: number;
19
+ readonly summary: string;
20
+ readonly measuredSummary: string;
21
+ readonly bounds: DevelopmentTreeNodeBounds;
22
+ }
23
+ export interface TreeInspectorEntry {
24
+ readonly node: TreeDebugNode;
25
+ readonly depth: number;
26
+ readonly parentHandle: number | undefined;
27
+ readonly childrenHandles: readonly number[];
28
+ readonly prefix: string;
29
+ readonly summary: string;
30
+ readonly searchText: string;
31
+ }
32
+ export interface TreeInspectorIndex {
33
+ readonly snapshot: TreeDebugSnapshot;
34
+ readonly entries: readonly TreeInspectorEntry[];
35
+ readonly byHandle: ReadonlyMap<number, TreeInspectorEntry>;
36
+ readonly handlesByOwner: ReadonlyMap<string, readonly number[]>;
37
+ readonly handlesByComputation: ReadonlyMap<string, readonly number[]>;
38
+ }
39
+ export interface TreeCausalCorrelation {
40
+ readonly operationsByNodeHandle: ReadonlyMap<number, readonly CausalTimelineOperation[]>;
41
+ readonly nodeHandlesByOperationId: ReadonlyMap<string, readonly number[]>;
42
+ }
43
+ export interface CapturedTreeSnapshotResult {
44
+ readonly snapshot?: TreeDebugSnapshot;
45
+ readonly failure?: string;
46
+ }
47
+ export interface DevelopmentTreePanelProps {
48
+ readonly snapshotTree: DevelopmentTreeSnapshotProvider;
49
+ /** Measures a mounted element node by handle to highlight its live screen bounds. */
50
+ readonly measureTreeNode?: DevelopmentTreeMeasureProvider | undefined;
51
+ readonly children: SolidElement;
52
+ readonly initiallyOpen?: boolean;
53
+ readonly maxVisibleNodes?: number;
54
+ /** Lets a development root place multiple inspector badges without overlap. */
55
+ readonly badgeBottom?: number;
56
+ }
57
+ export declare function optionalTreeSnapshotProvider(value: DevelopmentTreeSnapshotProvider | undefined, ownerName: string): DevelopmentTreeSnapshotProvider | undefined;
58
+ export declare function optionalTreeMeasureProvider(value: DevelopmentTreeMeasureProvider | undefined, ownerName: string): DevelopmentTreeMeasureProvider | undefined;
59
+ export declare function resolveTreeHighlightBounds(provider: DevelopmentTreeMeasureProvider, handle: number): Promise<DevelopmentTreeNodeBounds | undefined>;
60
+ export declare function formatTreeNodeBounds(bounds: DevelopmentTreeNodeBounds): string;
61
+ export declare function TreeHighlightOverlay(props: {
62
+ readonly highlight: HighlightedTreeNodeState;
63
+ readonly onReturnToInspector: () => void;
64
+ readonly onDismiss: () => void;
65
+ }): SolidElement;
66
+ export declare function requireTreeSnapshotProvider(value: DevelopmentTreeSnapshotProvider): DevelopmentTreeSnapshotProvider;
67
+ export declare function captureValidatedTreeSnapshot(provider: DevelopmentTreeSnapshotProvider): CapturedTreeSnapshotResult;
68
+ export declare function normalizedTreeSearch(value: string): string;
69
+ export declare function formatTreeNodeSummary(node: TreeDebugNode): string;
70
+ export declare function formatTreeNodeAccessibilityLabel(node: TreeDebugNode): string;
71
+ export declare function formatTreeNodeMeta(node: TreeDebugNode, linkedOperationCount?: number): string;
72
+ export declare function treeSummaryText(snapshot: TreeDebugSnapshot): string;
73
+ export declare function indexTreeDebugSnapshot(snapshot: TreeDebugSnapshot): TreeInspectorIndex;
74
+ export declare function correlateTreeWithCausalSnapshot(index: TreeInspectorIndex, timelineSnapshot: CausalTimelineSnapshot): TreeCausalCorrelation;
75
+ export declare function TreeNodeRow(props: {
76
+ readonly entry: TreeInspectorEntry;
77
+ readonly linkedOperationCount?: number;
78
+ readonly showPrefix?: boolean;
79
+ readonly onSelect: () => void;
80
+ }): SolidElement;
81
+ export declare function treeListContent(options: {
82
+ readonly index: TreeInspectorIndex | undefined;
83
+ readonly failure: string | undefined;
84
+ readonly search: string;
85
+ readonly maxVisibleNodes: number;
86
+ readonly operationsByNodeHandle?: ReadonlyMap<number, readonly CausalTimelineOperation[]> | undefined;
87
+ readonly onSelectNode: (handle: number) => void;
88
+ }): SolidElement | SolidElement[];
89
+ export declare function resolveTreeHighlightTarget(index: TreeInspectorIndex, entry: TreeInspectorEntry): TreeInspectorEntry | undefined;
90
+ export declare function treeNodeDetailContent(options: {
91
+ readonly index: TreeInspectorIndex;
92
+ readonly entry: TreeInspectorEntry;
93
+ readonly linkedOperations?: readonly CausalTimelineOperation[] | undefined;
94
+ readonly highlightError?: string | undefined;
95
+ readonly highlighting?: boolean | undefined;
96
+ readonly onHighlightNode?: ((entry: TreeInspectorEntry, target: TreeInspectorEntry) => void) | undefined;
97
+ readonly onSelectNode: (handle: number) => void;
98
+ readonly onSelectOperation?: ((operation: CausalTimelineOperation) => void) | undefined;
99
+ }): SolidElement[];
100
+ /**
101
+ * Adds a standalone, manually refreshed value-free live UI tree inspector.
102
+ * Snapshots are captured before opening or on explicit Refresh so rendering
103
+ * the inspector never feeds back into continuous tree updates.
104
+ */
105
+ export declare function DevelopmentTreePanel(props: DevelopmentTreePanelProps): SolidElement;
106
+ //# sourceMappingURL=tree-solid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tree-solid.d.ts","sourceRoot":"","sources":["../src/tree-solid.ts"],"names":[],"mappings":"AAQA,OAAO,EAEL,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACvB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAIL,KAAK,OAAO,IAAI,YAAY,EAC7B,MAAM,UAAU,CAAC;AAElB,eAAO,MAAM,4CAA4C,KAAK,CAAC;AAC/D,eAAO,MAAM,wCAAwC,MAAM,CAAC;AAC5D,eAAO,MAAM,wCAAwC,MAAM,CAAC;AAI5D,MAAM,MAAM,+BAA+B,GAAG,MAC5C,iBAAiB,GAAG,SAAS,CAAC;AAEhC,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,MAAM,8BAA8B,GAAG,CAC3C,MAAM,EAAE,MAAM,KAEZ,yBAAyB,GACzB,SAAS,GACT,OAAO,CAAC,yBAAyB,GAAG,SAAS,CAAC,CAAC;AAEnD,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,MAAM,EAAE,yBAAyB,C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