@voltro/devtools 0.83.0 → 0.84.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/dist/styles.css CHANGED
@@ -221,8 +221,8 @@
221
221
  /* Motion. One authored moment: the console arrives from its edge, the capsule
222
222
  * pops. Everything else is a 150–200ms state change. */
223
223
  @keyframes vdt-pop {
224
- from { opacity: 0; transform: translateX(-50%) scale(0.94); }
225
- to { opacity: 1; transform: translateX(-50%) scale(1); }
224
+ from { opacity: 0; transform: scale(0.94); }
225
+ to { opacity: 1; transform: scale(1); }
226
226
  }
227
227
  @keyframes vdt-from-bottom { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
228
228
  @keyframes vdt-from-top { from { transform: translateY(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
@@ -240,11 +240,22 @@
240
240
  .vdt-scope .vdt-spinner { animation: vdt-spin 900ms linear infinite; }
241
241
 
242
242
  /* ---- Capsule (closed) --------------------------------------------------- */
243
- .vdt-scope .vdt-capsule {
243
+ /* Placement (`capsulePlacement.ts`): x / y are fractions of the travel left
244
+ * once the inset and the box's own size are taken off the viewport. `left`
245
+ * and `top` cover the viewport part and `translate` (its own property, so the
246
+ * hover / press / pop transforms compose with it) the box's own size — a
247
+ * capsule in a corner stays flush with it while its width morphs, and none
248
+ * can leave the screen. The slots shown while dragging use the same rule. */
249
+ .vdt-scope .vdt-capsule,
250
+ .vdt-scope .vdt-capsule-slot {
251
+ --vdt-capsule-inset: 18px;
244
252
  position: absolute;
245
- left: 50%;
246
- bottom: 18px;
247
- transform: translateX(-50%);
253
+ left: calc(var(--vdt-capsule-inset) + var(--vdt-capsule-x, 0.5) * (100% - 2 * var(--vdt-capsule-inset)));
254
+ top: calc(var(--vdt-capsule-inset) + var(--vdt-capsule-y, 1) * (100% - 2 * var(--vdt-capsule-inset)));
255
+ translate: calc(var(--vdt-capsule-x, 0.5) * -100%) calc(var(--vdt-capsule-y, 1) * -100%);
256
+ }
257
+ .vdt-scope .vdt-capsule {
258
+ touch-action: none;
248
259
  height: 40px;
249
260
  padding: 0 14px 0 10px;
250
261
  display: inline-flex;
@@ -264,12 +275,32 @@
264
275
  transition: box-shadow 180ms ease, transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
265
276
  }
266
277
  .vdt-scope .vdt-capsule:hover {
267
- transform: translateX(-50%) translateY(-1px);
278
+ transform: translateY(-1px);
268
279
  box-shadow:
269
280
  0 14px 36px -10px oklch(0 0 0 / 65%),
270
281
  0 0 0 1px color-mix(in oklch, var(--pill-glow) 45%, transparent);
271
282
  }
272
- .vdt-scope .vdt-capsule:active { transform: translateX(-50%) scale(0.98); }
283
+ .vdt-scope .vdt-capsule:active { transform: scale(0.98); }
284
+ /* Dragging: the capsule follows the pointer 1:1 — no lift, no press, no
285
+ * transition lagging behind it. */
286
+ .vdt-scope .vdt-capsule[data-dragging="true"] { cursor: grabbing; transform: none; transition: box-shadow 180ms ease; }
287
+
288
+ /* Snap slots, shown only while the capsule is dragged: outlines of the
289
+ * capsule's size at each corner and edge midpoint; the one it will land in
290
+ * lights up. */
291
+ .vdt-scope .vdt-capsule-slot {
292
+ border: 1px dashed color-mix(in oklch, var(--accent) 40%, transparent);
293
+ border-radius: 999px;
294
+ background: color-mix(in oklch, var(--accent) 6%, transparent);
295
+ animation: vdt-slot-in 160ms ease-out;
296
+ transition: background 120ms ease, border-color 120ms ease;
297
+ }
298
+ .vdt-scope .vdt-capsule-slot[data-active="true"] {
299
+ border-style: solid;
300
+ border-color: color-mix(in oklch, var(--accent) 75%, transparent);
301
+ background: color-mix(in oklch, var(--accent) 16%, transparent);
302
+ }
303
+ @keyframes vdt-slot-in { from { opacity: 0; } to { opacity: 1; } }
273
304
 
274
305
  /* Idle halo: a bright slice of the capsule's colour circles the rim while a
275
306
  * blurred copy breathes just outside it. Two cycles (7s turn, 4.2s breath)
@@ -470,6 +501,9 @@
470
501
  .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
502
  .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
503
  .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; }
504
+ /* Its own browser window: the window is the frame — no edge, no shadow, no
505
+ * entrance, and nothing to close-animate (the window just closes). */
506
+ .vdt-scope .vdt-console[data-dock="external"] { inset: 0; animation: none; }
473
507
  .vdt-scope .vdt-console[data-dock="window"] .vdt-bar { cursor: grab; }
474
508
  .vdt-scope .vdt-console[data-dock="window"] .vdt-bar:active { cursor: grabbing; }
475
509
 
@@ -809,14 +843,15 @@
809
843
  .vdt-scope .vdt-capsule,
810
844
  .vdt-scope .vdt-console[data-dock],
811
845
  .vdt-scope .vdt-console[data-dock][data-closing],
812
- .vdt-scope .vdt-dockmenu-pop { animation: none; transition: none; }
846
+ .vdt-scope .vdt-dockmenu-pop,
847
+ .vdt-scope .vdt-capsule-slot { animation: none; transition: none; }
813
848
  .vdt-scope .vdt-capsule[data-busy="true"] { animation: none; }
814
849
  .vdt-scope .vdt-capsule-halo { animation: none; opacity: 0.5; }
815
850
  .vdt-scope .vdt-capsule-halo::before { animation: none; transform: translate(-50%, -50%); }
816
851
  .vdt-scope .vdt-capsule-chips,
817
852
  .vdt-scope .vdt-capsule-status { animation: none; }
818
853
  .vdt-scope .vdt-dots > span { animation: none; opacity: 0.6; }
819
- .vdt-scope .vdt-capsule:hover { transform: translateX(-50%); }
854
+ .vdt-scope .vdt-capsule:hover { transform: none; }
820
855
  }
821
856
 
822
857
  /* The overlay's own error state (components/boundary.tsx): inside the chrome,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voltro/devtools",
3
- "version": "0.83.0",
3
+ "version": "0.84.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.83.0",
38
- "@voltro/logger": "0.83.0",
39
- "@voltro/web": "0.83.0"
37
+ "@voltro/client": "0.84.0",
38
+ "@voltro/logger": "0.84.0",
39
+ "@voltro/web": "0.84.0"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "react": "^19.0.0",