@voltro/devtools 0.79.0 → 0.80.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 +134 -0
- package/dist/index.js +474 -411
- package/dist/styles.css +93 -1
- package/package.json +4 -4
package/dist/styles.css
CHANGED
|
@@ -229,6 +229,13 @@
|
|
|
229
229
|
@keyframes vdt-from-left { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
|
|
230
230
|
@keyframes vdt-from-right { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
|
|
231
231
|
@keyframes vdt-window-in { from { transform: scale(0.97); opacity: 0; } to { transform: none; opacity: 1; } }
|
|
232
|
+
/* Closing plays each entrance backwards: the same travel out, on the mirrored
|
|
233
|
+
* curve, so the console accelerates away where it decelerated in. */
|
|
234
|
+
@keyframes vdt-to-bottom { to { transform: translateY(24px); opacity: 0; } }
|
|
235
|
+
@keyframes vdt-to-top { to { transform: translateY(-24px); opacity: 0; } }
|
|
236
|
+
@keyframes vdt-to-left { to { transform: translateX(-24px); opacity: 0; } }
|
|
237
|
+
@keyframes vdt-to-right { to { transform: translateX(24px); opacity: 0; } }
|
|
238
|
+
@keyframes vdt-window-out { to { transform: scale(0.97); opacity: 0; } }
|
|
232
239
|
@keyframes vdt-spin { to { transform: rotate(360deg); } }
|
|
233
240
|
.vdt-scope .vdt-spinner { animation: vdt-spin 900ms linear infinite; }
|
|
234
241
|
|
|
@@ -263,7 +270,79 @@
|
|
|
263
270
|
0 0 0 1px color-mix(in oklch, var(--pill-glow) 45%, transparent);
|
|
264
271
|
}
|
|
265
272
|
.vdt-scope .vdt-capsule:active { transform: translateX(-50%) scale(0.98); }
|
|
273
|
+
|
|
274
|
+
/* Idle halo: a bright slice of the capsule's colour circles the rim while a
|
|
275
|
+
* blurred copy breathes just outside it. Two cycles (7s turn, 4.2s breath)
|
|
276
|
+
* never line up, so the glow never lands on the same shape twice and reads as
|
|
277
|
+
* alive instead of a metronome.
|
|
278
|
+
*
|
|
279
|
+
* Each halo layer clips a square conic disc to the stadium and turns the disc,
|
|
280
|
+
* because the obvious alternative — animating the gradient's start angle —
|
|
281
|
+
* needs `@property`, which does not register inside the shadow root the overlay
|
|
282
|
+
* renders in. The capsule's `::after` repaints the card over both layers, so
|
|
283
|
+
* only the 1px rim and the outer bleed show; a mask cannot do that for a pill,
|
|
284
|
+
* its content-box cut-out is a rectangle and eats the rim along the round ends. */
|
|
285
|
+
.vdt-scope .vdt-capsule { isolation: isolate; }
|
|
286
|
+
.vdt-scope .vdt-capsule::after {
|
|
287
|
+
content: '';
|
|
288
|
+
position: absolute;
|
|
289
|
+
inset: 0;
|
|
290
|
+
z-index: -1;
|
|
291
|
+
border-radius: inherit;
|
|
292
|
+
background: var(--card);
|
|
293
|
+
}
|
|
294
|
+
.vdt-scope .vdt-capsule-halo {
|
|
295
|
+
position: absolute;
|
|
296
|
+
inset: -2px;
|
|
297
|
+
z-index: -1;
|
|
298
|
+
border-radius: inherit;
|
|
299
|
+
overflow: hidden;
|
|
300
|
+
filter: blur(1px);
|
|
301
|
+
pointer-events: none;
|
|
302
|
+
animation: vdt-halo-breathe 4200ms ease-in-out infinite;
|
|
303
|
+
/* Picks up from the animated opacity when a busy state drops the animation. */
|
|
304
|
+
transition: opacity 200ms ease;
|
|
305
|
+
}
|
|
306
|
+
.vdt-scope .vdt-capsule-aura { inset: -5px; filter: blur(6px); }
|
|
307
|
+
.vdt-scope .vdt-capsule-halo::before {
|
|
308
|
+
content: '';
|
|
309
|
+
position: absolute;
|
|
310
|
+
left: 50%;
|
|
311
|
+
top: 50%;
|
|
312
|
+
/* Wide enough that the turning square always covers the stadium's corners. */
|
|
313
|
+
width: 150%;
|
|
314
|
+
aspect-ratio: 1;
|
|
315
|
+
background: conic-gradient(
|
|
316
|
+
from 0deg,
|
|
317
|
+
color-mix(in oklch, var(--pill-glow) 0%, transparent) 0deg,
|
|
318
|
+
color-mix(in oklch, var(--pill-glow) 90%, transparent) 55deg,
|
|
319
|
+
color-mix(in oklch, var(--pill-glow) 15%, transparent) 170deg,
|
|
320
|
+
color-mix(in oklch, var(--pill-glow) 70%, transparent) 240deg,
|
|
321
|
+
color-mix(in oklch, var(--pill-glow) 0%, transparent) 360deg
|
|
322
|
+
);
|
|
323
|
+
animation: vdt-halo-turn 7000ms linear infinite;
|
|
324
|
+
}
|
|
325
|
+
@keyframes vdt-halo-turn {
|
|
326
|
+
from { transform: translate(-50%, -50%) rotate(0deg); }
|
|
327
|
+
to { transform: translate(-50%, -50%) rotate(360deg); }
|
|
328
|
+
}
|
|
329
|
+
@keyframes vdt-halo-breathe { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
|
|
330
|
+
/* A busy capsule says so with its own pulse below; the halo steps aside. */
|
|
331
|
+
.vdt-scope .vdt-capsule[data-busy="true"] .vdt-capsule-halo { animation: none; opacity: 0; }
|
|
332
|
+
.vdt-scope .vdt-capsule[data-busy="true"] .vdt-capsule-halo::before { animation: none; }
|
|
266
333
|
.vdt-scope .vdt-capsule-mark { width: 20px; height: 20px; flex: none; color: var(--accent); }
|
|
334
|
+
/* The face (chips or status) fades in whenever it changes, while
|
|
335
|
+
* Capsule.tsx glides the width. `min-width: 0` lets it shrink to the gliding
|
|
336
|
+
* width; `data-morphing` clips it there for the glide's duration only, so the
|
|
337
|
+
* api dot's ring is never cut at rest. */
|
|
338
|
+
.vdt-scope .vdt-capsule-chips,
|
|
339
|
+
.vdt-scope .vdt-capsule-status { min-width: 0; animation: vdt-face-in 200ms cubic-bezier(0.2, 0.8, 0.2, 1); }
|
|
340
|
+
.vdt-scope .vdt-capsule[data-morphing="true"] .vdt-capsule-chips,
|
|
341
|
+
.vdt-scope .vdt-capsule[data-morphing="true"] .vdt-capsule-status { overflow: hidden; }
|
|
342
|
+
@keyframes vdt-face-in {
|
|
343
|
+
from { opacity: 0; transform: translateY(3px); }
|
|
344
|
+
to { opacity: 1; transform: none; }
|
|
345
|
+
}
|
|
267
346
|
.vdt-scope .vdt-capsule-chips { display: inline-flex; align-items: center; gap: 12px; }
|
|
268
347
|
.vdt-scope .vdt-capsule-chips > .vdt-chip + .vdt-chip { position: relative; padding-left: 12px; }
|
|
269
348
|
.vdt-scope .vdt-capsule-chips > .vdt-chip + .vdt-chip::before {
|
|
@@ -384,6 +463,13 @@
|
|
|
384
463
|
box-shadow: var(--shadow-panel);
|
|
385
464
|
animation: vdt-window-in 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
386
465
|
}
|
|
466
|
+
/* `forwards` holds the last frame until Devtools.tsx unmounts the console on
|
|
467
|
+
* the animation's `finished`, so it never flashes back before it goes. */
|
|
468
|
+
.vdt-scope .vdt-console[data-dock="bottom"][data-closing="true"] { animation: vdt-to-bottom 220ms cubic-bezier(0.8, 0, 0.8, 0.2) forwards; }
|
|
469
|
+
.vdt-scope .vdt-console[data-dock="top"][data-closing="true"] { animation: vdt-to-top 220ms cubic-bezier(0.8, 0, 0.8, 0.2) forwards; }
|
|
470
|
+
.vdt-scope .vdt-console[data-dock="left"][data-closing="true"] { animation: vdt-to-left 220ms cubic-bezier(0.8, 0, 0.8, 0.2) forwards; }
|
|
471
|
+
.vdt-scope .vdt-console[data-dock="right"][data-closing="true"] { animation: vdt-to-right 220ms cubic-bezier(0.8, 0, 0.8, 0.2) forwards; }
|
|
472
|
+
.vdt-scope .vdt-console[data-dock="window"][data-closing="true"] { animation: vdt-window-out 180ms cubic-bezier(0.8, 0, 0.8, 0.2) forwards; }
|
|
387
473
|
.vdt-scope .vdt-console[data-dock="window"] .vdt-bar { cursor: grab; }
|
|
388
474
|
.vdt-scope .vdt-console[data-dock="window"] .vdt-bar:active { cursor: grabbing; }
|
|
389
475
|
|
|
@@ -701,11 +787,17 @@
|
|
|
701
787
|
@media (prefers-reduced-motion: reduce) {
|
|
702
788
|
/* `[data-dock]` keeps this at the specificity of the per-dock entrance
|
|
703
789
|
* rules above; a bare `.vdt-console` here loses to them and the console
|
|
704
|
-
* still slides in (measured).
|
|
790
|
+
* still slides in (measured). The closing rules carry one attribute more,
|
|
791
|
+
* so they get their own selector — with no animation, closing is at once. */
|
|
705
792
|
.vdt-scope .vdt-capsule,
|
|
706
793
|
.vdt-scope .vdt-console[data-dock],
|
|
794
|
+
.vdt-scope .vdt-console[data-dock][data-closing],
|
|
707
795
|
.vdt-scope .vdt-dockmenu-pop { animation: none; transition: none; }
|
|
708
796
|
.vdt-scope .vdt-capsule[data-busy="true"] { animation: none; }
|
|
797
|
+
.vdt-scope .vdt-capsule-halo { animation: none; opacity: 0.5; }
|
|
798
|
+
.vdt-scope .vdt-capsule-halo::before { animation: none; transform: translate(-50%, -50%); }
|
|
799
|
+
.vdt-scope .vdt-capsule-chips,
|
|
800
|
+
.vdt-scope .vdt-capsule-status { animation: none; }
|
|
709
801
|
.vdt-scope .vdt-dots > span { animation: none; opacity: 0.6; }
|
|
710
802
|
.vdt-scope .vdt-capsule:hover { transform: translateX(-50%); }
|
|
711
803
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voltro/devtools",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.80.0",
|
|
4
4
|
"description": "Local admin / devtools surface over a running app's /_voltro/inspect/* — routes, RPC, workflows, schedules, cache, logs, and traces.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"voltro",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"node": ">=24.0.0"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@voltro/client": "0.
|
|
38
|
-
"@voltro/logger": "0.
|
|
39
|
-
"@voltro/web": "0.
|
|
37
|
+
"@voltro/client": "0.80.0",
|
|
38
|
+
"@voltro/logger": "0.80.0",
|
|
39
|
+
"@voltro/web": "0.80.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"react": "^19.0.0",
|