@snap/valdi 1.1.5 → 1.2.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/.metadata/.bazelrc.template +9 -3
- package/.metadata/MODULE.bazel.template +112 -3
- package/.metadata/bzl/patches/rules_python/1.9.0/BUILD.bazel.template +1 -0
- package/.metadata/bzl/patches/rules_python/1.9.0/remove_setuptools_spaces.patch.template +96 -0
- package/README.md +35 -1
- package/bundled-skills/registry.json +2 -1
- package/bundled-skills/skills/valdi-animations/skill.md +49 -0
- package/bundled-skills/skills/valdi-async/skill.md +3 -2
- package/bundled-skills/skills/valdi-bazel/skill.md +2 -6
- package/bundled-skills/skills/valdi-compiler/skill.md +4 -4
- package/bundled-skills/skills/valdi-cpp-runtime/skill.md +18 -0
- package/bundled-skills/skills/valdi-error-handling/skill.md +1 -1
- package/bundled-skills/skills/valdi-gestures/skill.md +3 -3
- package/bundled-skills/skills/valdi-migrate/skill.md +2 -1
- package/bundled-skills/skills/valdi-mock-breakdown/skill.md +4 -4
- package/bundled-skills/skills/valdi-mock-to-module/skill.md +9 -6
- package/bundled-skills/skills/valdi-overview/skill.md +2 -1
- package/bundled-skills/skills/valdi-perf/skill.md +121 -5
- package/bundled-skills/skills/valdi-pr-review/skill.md +189 -0
- package/bundled-skills/skills/valdi-profile/skill.md +5 -3
- package/bundled-skills/skills/valdi-setup/skill.md +3 -6
- package/bundled-skills/skills/valdi-testing/skill.md +1 -1
- package/bundled-skills/skills/valdi-tsx/skill.md +47 -11
- package/debugger/README.md +356 -0
- package/debugger/debugger-actions.js +373 -0
- package/debugger/debugger-api.js +225 -0
- package/debugger/debugger-bootstrap.js +295 -0
- package/debugger/debugger-model.js +790 -0
- package/debugger/debugger-performance.js +573 -0
- package/debugger/debugger-preview-html.js +676 -0
- package/debugger/debugger-providers.js +389 -0
- package/debugger/debugger-render.js +529 -0
- package/debugger/debugger-runtime.js +387 -0
- package/debugger/debugger-session.js +188 -0
- package/debugger/debugger-settings.js +209 -0
- package/debugger/debugger-state.js +221 -0
- package/debugger/debugger-tree-model.js +539 -0
- package/debugger/debugger.css +1865 -0
- package/debugger/devtools-panel.css +1318 -0
- package/debugger/devtools-panel.html +273 -0
- package/debugger/devtools-panel.js +3329 -0
- package/debugger/index.html +279 -0
- package/dist/commands/bootstrap.js +6 -5
- package/dist/commands/build.js +6 -0
- package/dist/commands/debugger.js +163 -0
- package/dist/commands/doctor.js +5 -125
- package/dist/commands/inspect.js +5 -2
- package/dist/commands/inspect_commands/input.js +176 -0
- package/dist/commands/inspect_commands/snapshot.js +1 -1
- package/dist/commands/inspect_commands/tree.js +1 -1
- package/dist/commands/install.js +6 -0
- package/dist/commands/projectsync.js +15 -0
- package/dist/commands/webHotreload.js +31 -0
- package/dist/core/constants.js +26 -7
- package/dist/debugger/chromiumConsole.js +279 -0
- package/dist/debugger/inputClient.js +473 -0
- package/dist/debugger/server.js +3801 -0
- package/dist/debugger/targetRegistry.js +436 -0
- package/dist/debugger/webPreviewPerformance.js +864 -0
- package/dist/index.js +0 -0
- package/dist/setup/DevSetupHelper.js +0 -3
- package/dist/setup/linuxSetup.js +0 -14
- package/dist/setup/macOSSetup.js +1 -2
- package/dist/utils/BazelClient.js +34 -5
- package/dist/utils/applicationUtils.js +18 -0
- package/dist/utils/chromiumDevToolsClient.js +350 -0
- package/dist/utils/daemonClient.js +364 -44
- package/dist/utils/hermesClient.js +82 -176
- package/dist/utils/linuxDistro.js +0 -21
- package/dist/utils/loopbackHost.js +14 -0
- package/dist/utils/owlCdpClient.js +282 -0
- package/dist/utils/owlDevToolsExtension.js +142 -0
- package/dist/utils/skillsAdapters.js +40 -14
- package/dist/utils/stringUtils.js +13 -1
- package/package.json +4 -2
- package/dist/commands/inspect_commands/snapshot.spec.js +0 -105
- package/dist/core/packageFiles.spec.js +0 -29
- package/dist/preview/previewGenerator.spec.js +0 -203
- package/dist/preview/viewModelParser.spec.js +0 -171
- package/dist/utils/linuxDistro.spec.js +0 -170
- package/dist/utils/skillsAdapters.spec.js +0 -60
- package/dist/utils/stringUtils.spec.js +0 -81
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en" data-theme="light">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
+
<title>Valdi DevTools</title>
|
|
7
|
+
<link rel="stylesheet" href="./devtools-panel.css" />
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<div class="devtools-app">
|
|
11
|
+
<header class="main-toolbar">
|
|
12
|
+
<nav class="main-tabs" aria-label="Valdi development tools" role="tablist">
|
|
13
|
+
<button
|
|
14
|
+
id="elementsTab"
|
|
15
|
+
type="button"
|
|
16
|
+
class="main-tab selected"
|
|
17
|
+
data-section="elements"
|
|
18
|
+
role="tab"
|
|
19
|
+
aria-controls="elementsSection"
|
|
20
|
+
aria-selected="true"
|
|
21
|
+
tabindex="0"
|
|
22
|
+
>
|
|
23
|
+
Elements
|
|
24
|
+
</button>
|
|
25
|
+
<button
|
|
26
|
+
id="stateTab"
|
|
27
|
+
type="button"
|
|
28
|
+
class="main-tab"
|
|
29
|
+
data-section="state"
|
|
30
|
+
role="tab"
|
|
31
|
+
aria-controls="stateSection"
|
|
32
|
+
aria-selected="false"
|
|
33
|
+
tabindex="-1"
|
|
34
|
+
>
|
|
35
|
+
State
|
|
36
|
+
</button>
|
|
37
|
+
<button
|
|
38
|
+
id="performanceTab"
|
|
39
|
+
type="button"
|
|
40
|
+
class="main-tab"
|
|
41
|
+
data-section="performance"
|
|
42
|
+
role="tab"
|
|
43
|
+
aria-controls="performanceSection"
|
|
44
|
+
aria-selected="false"
|
|
45
|
+
tabindex="-1"
|
|
46
|
+
>
|
|
47
|
+
Performance
|
|
48
|
+
</button>
|
|
49
|
+
<button
|
|
50
|
+
id="consoleTab"
|
|
51
|
+
type="button"
|
|
52
|
+
class="main-tab"
|
|
53
|
+
data-section="console"
|
|
54
|
+
role="tab"
|
|
55
|
+
aria-controls="consoleSection"
|
|
56
|
+
aria-selected="false"
|
|
57
|
+
tabindex="-1"
|
|
58
|
+
>
|
|
59
|
+
Console
|
|
60
|
+
</button>
|
|
61
|
+
</nav>
|
|
62
|
+
<div class="toolbar-spacer"></div>
|
|
63
|
+
<button id="refreshButton" class="icon-button" title="Refresh inspected application" aria-label="Refresh">
|
|
64
|
+
<svg viewBox="0 0 20 20" aria-hidden="true">
|
|
65
|
+
<path d="M16.3 8A6.5 6.5 0 1 0 16 13M16.3 8V4.8M16.3 8H13" />
|
|
66
|
+
</svg>
|
|
67
|
+
</button>
|
|
68
|
+
</header>
|
|
69
|
+
|
|
70
|
+
<div class="target-toolbar">
|
|
71
|
+
<span id="targetStatusDot" class="status-dot connecting" aria-hidden="true"></span>
|
|
72
|
+
<label id="targetSelectLabel" class="target-select-label" for="targetSelect">Target</label>
|
|
73
|
+
<select id="targetSelect" class="target-select" aria-describedby="targetPickerStatus">
|
|
74
|
+
<option value="">Loading debugger targets…</option>
|
|
75
|
+
</select>
|
|
76
|
+
<span id="targetName" class="target-name">Connecting to inspected Valdi application…</span>
|
|
77
|
+
<span id="targetMetadata" class="target-metadata"></span>
|
|
78
|
+
<span id="targetPickerStatus" class="target-picker-status" role="status" aria-live="polite"></span>
|
|
79
|
+
<label class="live-toggle" title="Keep the inspected hierarchy current">
|
|
80
|
+
<input id="autoRefreshToggle" type="checkbox" checked /> Live
|
|
81
|
+
</label>
|
|
82
|
+
</div>
|
|
83
|
+
|
|
84
|
+
<main class="main-content">
|
|
85
|
+
<section
|
|
86
|
+
id="elementsSection"
|
|
87
|
+
class="section selected"
|
|
88
|
+
data-panel="elements"
|
|
89
|
+
role="tabpanel"
|
|
90
|
+
aria-labelledby="elementsTab"
|
|
91
|
+
>
|
|
92
|
+
<div class="tree-pane">
|
|
93
|
+
<div class="filter-toolbar">
|
|
94
|
+
<svg class="filter-icon" viewBox="0 0 20 20" aria-hidden="true">
|
|
95
|
+
<path d="M3 4h14l-5.4 6v5l-3.2 1v-6z" />
|
|
96
|
+
</svg>
|
|
97
|
+
<input id="treeFilter" type="search" placeholder="Filter nodes, text, attributes" autocomplete="off" />
|
|
98
|
+
<span id="filterSummary" class="filter-summary"></span>
|
|
99
|
+
<button
|
|
100
|
+
id="expandButton"
|
|
101
|
+
class="icon-button"
|
|
102
|
+
title="Expand useful nodes"
|
|
103
|
+
aria-label="Expand useful nodes"
|
|
104
|
+
>
|
|
105
|
+
<svg viewBox="0 0 20 20" aria-hidden="true"><path d="M4 6h12M4 10h8M4 14h5M14 12v5M11.5 14.5h5" /></svg>
|
|
106
|
+
</button>
|
|
107
|
+
</div>
|
|
108
|
+
<div
|
|
109
|
+
id="tree"
|
|
110
|
+
class="tree"
|
|
111
|
+
role="tree"
|
|
112
|
+
tabindex="0"
|
|
113
|
+
aria-label="Valdi element hierarchy"
|
|
114
|
+
aria-keyshortcuts="ArrowUp ArrowDown ArrowLeft ArrowRight Home End"
|
|
115
|
+
></div>
|
|
116
|
+
<div id="treeEmpty" class="empty-state">Waiting for the inspected Valdi renderer…</div>
|
|
117
|
+
</div>
|
|
118
|
+
|
|
119
|
+
<div
|
|
120
|
+
id="splitHandle"
|
|
121
|
+
class="split-handle"
|
|
122
|
+
role="separator"
|
|
123
|
+
aria-label="Resize inspector"
|
|
124
|
+
aria-orientation="horizontal"
|
|
125
|
+
></div>
|
|
126
|
+
|
|
127
|
+
<section class="inspector-pane" aria-label="Selected element inspector">
|
|
128
|
+
<div class="inspector-toolbar">
|
|
129
|
+
<nav class="detail-tabs" aria-label="Element inspection" role="tablist">
|
|
130
|
+
<button
|
|
131
|
+
id="stylesDetailTab"
|
|
132
|
+
type="button"
|
|
133
|
+
class="detail-tab selected"
|
|
134
|
+
data-detail="styles"
|
|
135
|
+
role="tab"
|
|
136
|
+
aria-controls="inspector"
|
|
137
|
+
aria-selected="true"
|
|
138
|
+
tabindex="0"
|
|
139
|
+
>
|
|
140
|
+
Styles
|
|
141
|
+
</button>
|
|
142
|
+
<button
|
|
143
|
+
id="computedDetailTab"
|
|
144
|
+
type="button"
|
|
145
|
+
class="detail-tab"
|
|
146
|
+
data-detail="computed"
|
|
147
|
+
role="tab"
|
|
148
|
+
aria-controls="inspector"
|
|
149
|
+
aria-selected="false"
|
|
150
|
+
tabindex="-1"
|
|
151
|
+
>
|
|
152
|
+
Computed
|
|
153
|
+
</button>
|
|
154
|
+
<button
|
|
155
|
+
id="stateDetailTab"
|
|
156
|
+
type="button"
|
|
157
|
+
class="detail-tab"
|
|
158
|
+
data-detail="state"
|
|
159
|
+
role="tab"
|
|
160
|
+
aria-controls="inspector"
|
|
161
|
+
aria-selected="false"
|
|
162
|
+
tabindex="-1"
|
|
163
|
+
>
|
|
164
|
+
State
|
|
165
|
+
</button>
|
|
166
|
+
<button
|
|
167
|
+
id="domDetailTab"
|
|
168
|
+
type="button"
|
|
169
|
+
class="detail-tab"
|
|
170
|
+
data-detail="dom"
|
|
171
|
+
role="tab"
|
|
172
|
+
aria-controls="inspector"
|
|
173
|
+
aria-selected="false"
|
|
174
|
+
tabindex="-1"
|
|
175
|
+
>
|
|
176
|
+
DOM
|
|
177
|
+
</button>
|
|
178
|
+
</nav>
|
|
179
|
+
<div class="toolbar-spacer"></div>
|
|
180
|
+
<button id="copyNodeButton" class="icon-button" title="Copy selected node JSON" aria-label="Copy node">
|
|
181
|
+
<svg viewBox="0 0 20 20" aria-hidden="true"><path d="M7 6h9v10H7zM4 13V4h9" /></svg>
|
|
182
|
+
</button>
|
|
183
|
+
</div>
|
|
184
|
+
<div id="inspector" class="inspector" role="tabpanel" aria-labelledby="stylesDetailTab"></div>
|
|
185
|
+
</section>
|
|
186
|
+
|
|
187
|
+
<footer class="breadcrumb-bar">
|
|
188
|
+
<div id="breadcrumbs" class="breadcrumbs"></div>
|
|
189
|
+
<span id="nodeSummary" class="node-summary"></span>
|
|
190
|
+
</footer>
|
|
191
|
+
</section>
|
|
192
|
+
|
|
193
|
+
<section
|
|
194
|
+
id="stateSection"
|
|
195
|
+
class="section utility-section"
|
|
196
|
+
data-panel="state"
|
|
197
|
+
role="tabpanel"
|
|
198
|
+
aria-labelledby="stateTab"
|
|
199
|
+
hidden
|
|
200
|
+
>
|
|
201
|
+
<div class="section-header runtime-state-toolbar">
|
|
202
|
+
<span>Component state</span>
|
|
203
|
+
<span id="stateSummary" class="runtime-state-summary" role="status" aria-live="polite"></span>
|
|
204
|
+
<input
|
|
205
|
+
id="stateFilter"
|
|
206
|
+
class="runtime-state-filter"
|
|
207
|
+
type="search"
|
|
208
|
+
placeholder="Filter components, keys, or values"
|
|
209
|
+
aria-label="Filter component state"
|
|
210
|
+
autocomplete="off"
|
|
211
|
+
/>
|
|
212
|
+
</div>
|
|
213
|
+
<div id="stateContent" class="utility-content runtime-state-content"></div>
|
|
214
|
+
</section>
|
|
215
|
+
|
|
216
|
+
<section
|
|
217
|
+
id="performanceSection"
|
|
218
|
+
class="section utility-section"
|
|
219
|
+
data-panel="performance"
|
|
220
|
+
role="tabpanel"
|
|
221
|
+
aria-labelledby="performanceTab"
|
|
222
|
+
hidden
|
|
223
|
+
>
|
|
224
|
+
<div class="section-header">
|
|
225
|
+
<span>Web preview performance</span>
|
|
226
|
+
<button type="button" class="text-button" data-performance-action="refresh">Refresh</button>
|
|
227
|
+
</div>
|
|
228
|
+
<div id="performanceContent" class="utility-content">
|
|
229
|
+
<div class="empty-state">Open Performance to inspect the selected web preview.</div>
|
|
230
|
+
</div>
|
|
231
|
+
</section>
|
|
232
|
+
|
|
233
|
+
<section
|
|
234
|
+
id="consoleSection"
|
|
235
|
+
class="section console-section"
|
|
236
|
+
data-panel="console"
|
|
237
|
+
role="tabpanel"
|
|
238
|
+
aria-labelledby="consoleTab"
|
|
239
|
+
hidden
|
|
240
|
+
>
|
|
241
|
+
<div class="section-header">
|
|
242
|
+
<span>Console output</span>
|
|
243
|
+
<button
|
|
244
|
+
id="clearConsoleButton"
|
|
245
|
+
class="text-button"
|
|
246
|
+
type="button"
|
|
247
|
+
title="Clear console output"
|
|
248
|
+
aria-label="Clear console"
|
|
249
|
+
aria-controls="consoleMessages"
|
|
250
|
+
>
|
|
251
|
+
Clear
|
|
252
|
+
</button>
|
|
253
|
+
</div>
|
|
254
|
+
<div id="consoleMessages" class="console-messages"></div>
|
|
255
|
+
<form id="consoleForm" class="console-prompt">
|
|
256
|
+
<span class="console-chevron">›</span>
|
|
257
|
+
<input
|
|
258
|
+
id="consoleInput"
|
|
259
|
+
type="text"
|
|
260
|
+
autocomplete="off"
|
|
261
|
+
maxlength="10000"
|
|
262
|
+
spellcheck="false"
|
|
263
|
+
placeholder="Evaluate JavaScript in the inspected application"
|
|
264
|
+
/>
|
|
265
|
+
</form>
|
|
266
|
+
</section>
|
|
267
|
+
</main>
|
|
268
|
+
</div>
|
|
269
|
+
<script src="./debugger-tree-model.js"></script>
|
|
270
|
+
<script src="./debugger-api.js"></script>
|
|
271
|
+
<script src="./devtools-panel.js"></script>
|
|
272
|
+
</body>
|
|
273
|
+
</html>
|