@fluixi/devtools 0.2.0-alpha.3 → 0.2.0-alpha.5
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/callsite.cjs +72 -0
- package/dist/callsite.d.ts +1 -1
- package/dist/callsite.js +1 -1
- package/dist/callsite.mjs +51 -0
- package/dist/change-view.cjs +134 -0
- package/dist/change-view.js +2 -2
- package/dist/change-view.mjs +111 -0
- package/dist/copy.cjs +63 -0
- package/dist/copy.mjs +42 -0
- package/dist/describe.cjs +55 -0
- package/dist/describe.js +2 -2
- package/dist/describe.mjs +34 -0
- package/dist/detail-panel.cjs +307 -0
- package/dist/detail-panel.d.ts +1 -1
- package/dist/detail-panel.d.ts.map +1 -1
- package/dist/detail-panel.js +1 -1
- package/dist/detail-panel.mjs +284 -0
- package/dist/diff.cjs +225 -0
- package/dist/diff.js +1 -1
- package/dist/diff.mjs +202 -0
- package/dist/dom.cjs +204 -0
- package/dist/dom.mjs +183 -0
- package/dist/export.cjs +221 -0
- package/dist/export.d.ts +2 -2
- package/dist/export.d.ts.map +1 -1
- package/dist/export.js +1 -1
- package/dist/export.mjs +209 -0
- package/dist/float.cjs +232 -0
- package/dist/float.d.ts +1 -1
- package/dist/float.js +3 -3
- package/dist/float.mjs +211 -0
- package/dist/format.cjs +175 -0
- package/dist/format.js +3 -3
- package/dist/format.mjs +154 -0
- package/dist/graph-view.cjs +893 -0
- package/dist/graph-view.mjs +870 -0
- package/dist/highlight.cjs +140 -0
- package/dist/highlight.mjs +119 -0
- package/dist/history.cjs +95 -0
- package/dist/history.d.ts +2 -2
- package/dist/history.js +2 -2
- package/dist/history.mjs +74 -0
- package/dist/hook.cjs +1562 -0
- package/dist/hook.d.ts +3 -3
- package/dist/hook.js +6 -6
- package/dist/hook.mjs +1553 -0
- package/dist/index.cjs +4552 -0
- package/dist/index.mjs +4544 -0
- package/dist/inspector.cjs +688 -0
- package/dist/inspector.d.ts +2 -2
- package/dist/inspector.js +7 -7
- package/dist/inspector.mjs +676 -0
- package/dist/instrument.cjs +497 -0
- package/dist/instrument.mjs +487 -0
- package/dist/kind-filter.cjs +172 -0
- package/dist/kind-filter.d.ts +2 -2
- package/dist/kind-filter.js +1 -1
- package/dist/kind-filter.mjs +151 -0
- package/dist/menu.cjs +141 -0
- package/dist/menu.mjs +120 -0
- package/dist/observe.cjs +1352 -0
- package/dist/observe.mjs +1345 -0
- package/dist/palette.cjs +52 -0
- package/dist/palette.mjs +31 -0
- package/dist/path.cjs +45 -0
- package/dist/path.d.ts +2 -2
- package/dist/path.js +2 -2
- package/dist/path.mjs +24 -0
- package/dist/plugin.cjs +87 -0
- package/dist/plugin.mjs +66 -0
- package/dist/plugins/context.cjs +98 -0
- package/dist/plugins/context.mjs +75 -0
- package/dist/plugins/directives.cjs +98 -0
- package/dist/plugins/directives.mjs +75 -0
- package/dist/plugins/index.cjs +162 -0
- package/dist/plugins/index.mjs +140 -0
- package/dist/source.cjs +111 -0
- package/dist/source.d.ts +2 -2
- package/dist/source.js +4 -4
- package/dist/source.mjs +90 -0
- package/dist/timeline.cjs +350 -0
- package/dist/timeline.js +3 -3
- package/dist/timeline.mjs +327 -0
- package/dist/tree.cjs +574 -0
- package/dist/tree.mjs +551 -0
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/value-pane.cjs +223 -0
- package/dist/value-pane.mjs +200 -0
- package/dist/wire.cjs +109 -0
- package/dist/wire.mjs +89 -0
- package/package.json +19 -6
package/dist/inspector.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export interface Inspector {
|
|
|
6
6
|
/**
|
|
7
7
|
* Draw an element instead of a node.
|
|
8
8
|
*
|
|
9
|
-
* An element is not in the graph
|
|
9
|
+
* An element is not in the graph: nothing computes it, but it is the part of the page a
|
|
10
10
|
* reader recognises, and the graph knows which tag rendered it and which values write into
|
|
11
11
|
* it. Those, and the line each binding was written on, are what there is to say.
|
|
12
12
|
*/
|
|
@@ -44,7 +44,7 @@ export interface InspectorOptions {
|
|
|
44
44
|
* counts as a value is the application's business, and returns whether it took.
|
|
45
45
|
*
|
|
46
46
|
* Omitted leaves values read-only, which is what a panel reading a snapshot over a wire
|
|
47
|
-
* wants
|
|
47
|
+
* wants: there is nothing on the other end to write to.
|
|
48
48
|
*/
|
|
49
49
|
onEdit?: (id: number, raw: string) => boolean;
|
|
50
50
|
/**
|
package/dist/inspector.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// What one node is, in words.
|
|
2
2
|
//
|
|
3
3
|
// The graph draws a node in the space of a card: a name, a kind, a clipped value, a file and
|
|
4
|
-
// a line. Everything else about it
|
|
5
|
-
// it, where it was declared as against where it was used
|
|
4
|
+
// a line. Everything else about it: the version, the run count, what it reads, what reads
|
|
5
|
+
// it, where it was declared as against where it was used, needs room, and every host that
|
|
6
6
|
// draws the graph wants the same answer. So it lives here rather than in each of them.
|
|
7
7
|
//
|
|
8
8
|
// Rendered as html into an element the host owns, and re-rendered only when what it says
|
|
@@ -48,7 +48,7 @@ const bothAt = (source, root) => {
|
|
|
48
48
|
/**
|
|
49
49
|
* The line worth opening for a tag.
|
|
50
50
|
*
|
|
51
|
-
* A component the framework instantiated
|
|
51
|
+
* A component the framework instantiated: a lazy route, a layout the router mounted, was
|
|
52
52
|
* created inside the framework, so `source` is a line in a package. `declaredAt` is where it
|
|
53
53
|
* was actually written. Only one line is shown for an element, so it had better be that one.
|
|
54
54
|
*/
|
|
@@ -63,7 +63,7 @@ function authoredPlace(node) {
|
|
|
63
63
|
* The tags this value writes inside, and how many times each.
|
|
64
64
|
*
|
|
65
65
|
* A signal handed to a component through a prop is read by the render effect that binds it,
|
|
66
|
-
* which is machinery the graph does not draw
|
|
66
|
+
* which is machinery the graph does not draw: so there is no edge from the signal to the
|
|
67
67
|
* component, and a card for it looks connected only to whatever declared it. The
|
|
68
68
|
* descriptions already say it exactly: each element records the values writing into it, and
|
|
69
69
|
* it sits in the tree of the tag that rendered it.
|
|
@@ -255,7 +255,7 @@ export function createInspector(host, options = {}) {
|
|
|
255
255
|
.join('');
|
|
256
256
|
const next = `${node.id}|${node.kind}|${value}|${node.runs}|${state ?? ''}|${relations}|${at(node.source, root)}|${at(node.usedAt, root)}|${bound}`;
|
|
257
257
|
// An input that has left the page is not one anybody is typing into. Without this a
|
|
258
|
-
// commit that never arrived
|
|
258
|
+
// commit that never arrived: the panel redrew, the tab changed, would hold the
|
|
259
259
|
// inspector on whatever it last wrote, for good.
|
|
260
260
|
if (editing !== null && field?.isConnected !== true) {
|
|
261
261
|
editing = null;
|
|
@@ -357,8 +357,8 @@ export function createInspector(host, options = {}) {
|
|
|
357
357
|
`<b>${escape(pick.label)}</b>` +
|
|
358
358
|
`<span class="ins-meta">not a node</span></div>` +
|
|
359
359
|
`<div class="ins-rel">${relations}</div>` +
|
|
360
|
-
// The tag's own line. An element has no position of its own in the graph
|
|
361
|
-
// component that rendered it does
|
|
360
|
+
// The tag's own line. An element has no position of its own in the graph, only the
|
|
361
|
+
// component that rendered it does: so this is as close as the source gets.
|
|
362
362
|
(source
|
|
363
363
|
? `<div class="ins-source">${source.external ? '📦' : '📍'} ${place(bothAt(source, root), source, reveals)}</div>`
|
|
364
364
|
: '') +
|