@luci-dev/toolbar 0.5.5 → 0.5.6

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/README.md CHANGED
@@ -15,7 +15,9 @@ What it adds: a few lines between `luci:toolbar` comments, before `</body>` of t
15
15
  <script src="http://127.0.0.1:4545/toolbar.js"></script>
16
16
  ```
17
17
 
18
- 3. Optional: connect your agent to `luci-mcp` (for example `claude mcp add luci -- node <luci>/packages/mcp/dist/bin.js`), so it can read the notes and saved captures itself. Copying the prompt works without it.
18
+ 3. Optional: connect your agent to `luci-mcp` (for Claude Code, from the project folder: `claude mcp add luci -- npx -y @luci-dev/mcp@latest`), so it can read the notes and saved captures itself. Copying the prompt works without it.
19
+
20
+ **Updating:** the toolbar comes from the Luci you have installed. After updating Luci (`npm install -g @luci-dev/cli@latest`, or nothing with `npx @luci-dev/cli@latest`), stop `luci serve`, start it again and reload your app. The script tag in your app stays as it is.
19
21
 
20
22
  `luci serve` listens on 127.0.0.1 only and answers pages on this machine only. Without it, the toolbar still works: notes stay in this browser (for this app's address) and the prompt can be copied. The **This browser** badge says why it is not connected; click it after starting `luci serve`.
21
23
 
@@ -33,6 +35,15 @@ What it adds: a few lines between `luci:toolbar` comments, before `</body>` of t
33
35
 
34
36
  With React, Vue 3 or Svelte 4/5 in development mode, each note records the components around the element (`App > Pricing > PlanCard`) and its source file (with the JSX line through source maps in React, the `.svelte` file and line from `__svelte_meta` in Svelte, and the `.vue` SFC file from `__vueParentComponent` in Vue 3). In a production build, notes keep the selector and text.
35
37
 
38
+ ## On a phone
39
+
40
+ Open your app on a phone (or a narrow window, under 640 px) and the toolbar adapts:
41
+
42
+ - The bar spans the screen in two rows: Luci, the mode switch and Close on top, the mode's tools below. Cards open above it, never under it.
43
+ - A finger has no hover, so picking takes two taps: the first outlines and names the element, the second (on the same element) acts on it. In Annotate, the card above the bar also offers **Add note** and **Parent**. The page still scrolls while you pick.
44
+ - A note opens as a sheet just above the bar. Intent and priority are one tap each.
45
+ - Tooltips show for keyboard focus only.
46
+
36
47
  ## Modes
37
48
 
38
49
  The switch first in the bar, **Feedback · Layout · Capture**, is in the same place in every mode. The bar sits at the bottom of the window, in the corner of Luci's button (right, or left with **Dock: Left**), and grows out of the button when you open it. While nothing in a mode is active, a card above the bar says what the mode is for and its keys.
@@ -1 +1 @@
1
- {"version":3,"file":"devToolbar.d.ts","sourceRoot":"","sources":["../src/devToolbar.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAEU,KAAK,WAAW,EAAE,KAAK,SAAS,EAChD,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EASL,KAAK,eAAe,EAEpB,KAAK,QAAQ,EACd,MAAM,oBAAoB,CAAC;AAE5B,eAAO,MAAM,cAAc,0BAA0B,CAAC;AACtD,eAAO,MAAM,YAAY,kBAAkB,CAAC;AAC5C,MAAM,MAAM,IAAI,GAAG,UAAU,GAAG,QAAQ,GAAG,SAAS,CAAC;AACrD,2CAA2C;AAC3C,eAAO,MAAM,KAAK;aACd,EAAE,EAAE,UAAU;aAAE,KAAK,EAAE,UAAU;aAAE,KAAK,EAAE,yDAAyD;;aACnG,EAAE,EAAE,QAAQ;aAAE,KAAK,EAAE,QAAQ;aAAE,KAAK,EAAE,4FAA4F;;aAClI,EAAE,EAAE,SAAS;aAAE,KAAK,EAAE,SAAS;aAAE,KAAK,EAAE,oEAAoE;EACtG,CAAC;AAEX,MAAM,WAAW,iBAAiB;IAChC,yGAAyG;IACzG,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,QAAQ,CAAC;IACf,oGAAoG;IACpG,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,mFAAmF;IACnF,IAAI,CAAC,EAAE,IAAI,CAAC;CACb;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;IAClC,uEAAuE;IACvE,OAAO,IAAI,OAAO,CAAC,MAAM,G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oE;EACtG,CAAC;AAEX,MAAM,WAAW,iBAAiB;IAChC,yGAAyG;IACzG,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,QAAQ,CAAC;IACf,oGAAoG;IACpG,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,mFAAmF;IACnF,IAAI,CAAC,EAAE,IAAI,CAAC;CACb;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;IAClC,uEAAuE;IACvE,OAAO,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAClC,IAAI,IAAI,IAAI,CAAC;IACb,IAAI,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IACvB,OAAO,IAAI,IAAI,CAAC;CACjB;AAoBD,oFAAoF;AACpF,wBAAgB,aAAa,CAAC,OAAO,EAAE,QAAQ,EAAE,GAAG,GAAE,MAAoB,GAAG,WAAW,CAYvF;AAED;;;;GAIG;AACH,wBAAsB,aAAa,CAAC,OAAO,EAAE,eAAe,EAAE,GAAG,EAAE,QAAQ,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,SAAS,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAOxI;AAED,eAAO,MAAM,cAAc,oBAAoB,CAAC;AA0BhD,2CAA2C;AAC3C,wBAAsB,eAAe,CAAC,OAAO,GAAE,iBAAsB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAyWhG"}
@@ -81,7 +81,7 @@ function connectingPill(doc, place) {
81
81
  // The Charcoal pill (brand/DESIGN.md, On-page toolbar), with a ginger ring turning
82
82
  root.innerHTML = `<style>${TOKENS_CSS}
83
83
  div{position:fixed;${cornerCss(place, 40)};z-index:2147483647;display:flex;gap:8px;align-items:center;padding:8px 16px 8px 12px;border-radius:var(--luci-radius-full);
84
- background:var(--luci-color-bar);color:var(--luci-color-bar-ink);font:500 var(--luci-type-small-size)/var(--luci-type-small-line) var(--luci-font-body);box-shadow:var(--luci-shadow-float)}
84
+ background:var(--luci-color-bar);color:var(--luci-color-bar-ink);font:500 var(--luci-type-small-size)/var(--luci-type-small-line) var(--luci-font-body);box-shadow:var(--luci-shadow-edge),var(--luci-shadow-float)}
85
85
  i{width:14px;height:14px;border-radius:50%;border:2px solid var(--luci-color-bar-stroke);border-top-color:var(--luci-color-tool-active);animation:s .8s linear infinite}
86
86
  @keyframes s{to{transform:rotate(360deg)}}
87
87
  @media (prefers-reduced-motion: reduce){i{animation:none}}
@@ -255,6 +255,22 @@ export async function mountDevToolbar(options = {}) {
255
255
  host.setAttribute('data-v', place.v);
256
256
  host.style.setProperty('--luci-x', `${x}px`);
257
257
  host.style.setProperty('--luci-y', `${y}px`);
258
+ // The bar's real height (it takes two rows on a phone): cards open just past it, never under it
259
+ if (bar?.offsetHeight)
260
+ host.style.setProperty('--luci-bar-h', `${bar.offsetHeight}px`);
261
+ };
262
+ /** Place the host again whenever its bar changes size (a tool appears, the window narrows). */
263
+ let barWatch = null;
264
+ const watchBar = (host) => {
265
+ barWatch?.disconnect();
266
+ barWatch = null;
267
+ const bar = host.shadowRoot?.querySelector('.bar');
268
+ const RO = win.ResizeObserver;
269
+ if (!bar || !RO)
270
+ return;
271
+ barWatch = new RO(() => { if (current?.host === host)
272
+ applyPlace(host); });
273
+ barWatch.observe(bar);
258
274
  };
259
275
  /*
260
276
  * Dragging: by the bar's own background, a separator or Luci's head (higher threshold for
@@ -451,6 +467,7 @@ export async function mountDevToolbar(options = {}) {
451
467
  }
452
468
  // In the bar's place (by its button unless the person dragged it), and draggable
453
469
  applyPlace(current.host);
470
+ watchBar(current.host);
454
471
  draggable(current.host);
455
472
  if (how.grow)
456
473
  grow(current.host);
@@ -466,6 +483,7 @@ export async function mountDevToolbar(options = {}) {
466
483
  doc.removeEventListener(UI_PREFS_EVENT, followPrefs);
467
484
  win.removeEventListener('resize', onResize);
468
485
  stopDrag();
486
+ barWatch?.disconnect();
469
487
  current?.destroy();
470
488
  current = null;
471
489
  removeLauncher();
@@ -1 +1 @@
1
- {"version":3,"file":"devToolbar.js","sourceRoot":"","sources":["../src/devToolbar.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EACL,iBAAiB,EAAE,qBAAqB,EAAE,cAAc,EAAE,YAAY,EAAE,WAAW,EAAE,YAAY,EAElG,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,gBAAgB,EAAwD,MAAM,0BAA0B,CAAC;AAClH,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC3E,OAAO,EACL,yBAAyB,EACzB,aAAa,EACb,eAAe,EACf,cAAc,EACd,cAAc,EACd,aAAa,EACb,WAAW,EAKZ,MAAM,oBAAoB,CAAC;AAE5B,MAAM,CAAC,MAAM,cAAc,GAAG,uBAAuB,CAAC;AACtD,MAAM,CAAC,MAAM,YAAY,GAAG,eAAe,CAAC;AAE5C,2CAA2C;AAC3C,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,EAAE,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,yDAAyD,EAAE;IACvG,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,4FAA4F,EAAE;IACtI,EAAE,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,oEAAoE,EAAE;CACxG,CAAC;AAqBX,MAAM,IAAI,GAAG,EAAE,OAAO,EAAE,uBAAuB,EAAE,QAAQ,EAAE,wBAAwB,EAAE,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,eAAe,EAAW,CAAC;AAE5L,iGAAiG;AACjG,SAAS,cAAc,CAAC,GAAW;IACjC,IAAI,CAAC;QACH,MAAM,CAAC,GAAG,GAAG,CAAC,YAAY,CA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CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACxB,IAAI,GAAG,CAAC,IAAI;YAAE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACnC,CAAC,CAAC;IAEF,IAAI,CAAC,IAAI,CAAC,CAAC;IACX,OAAO;QACL,IAAI,OAAO,KAAK,OAAO,OAAO,CAAC,CAAC,CAAC;QACjC,OAAO;QACP,IAAI,EAAE,GAAG,EAAE,CAAC,IAAI;QAChB,IAAI;QACJ,OAAO,EAAE,GAAG,EAAE;YACZ,GAAG,CAAC,mBAAmB,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC;YAC1D,GAAG,CAAC,mBAAmB,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;YACrD,GAAG,CAAC,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;YAC5C,QAAQ,EAAE,CAAC;YACX,QAAQ,EAAE,UAAU,EAAE,CAAC;YACvB,OAAO,EAAE,OAAO,EAAE,CAAC;YACnB,OAAO,GAAG,IAAI,CAAC;YACf,cAAc,EAAE,CAAC;QACnB,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -30053,6 +30053,13 @@ module.exports = {
30053
30053
  const r4 = el.getBoundingClientRect();
30054
30054
  return `${el.tagName.toLowerCase()} ${Math.round(r4.width)} \xD7 ${Math.round(r4.height)}`;
30055
30055
  }
30056
+ function touchScreen(win) {
30057
+ try {
30058
+ return win.matchMedia("(hover: none)").matches;
30059
+ } catch {
30060
+ return false;
30061
+ }
30062
+ }
30056
30063
 
30057
30064
  // packages/capture/dist/ui/basket.js
30058
30065
  function memoryBasketStore(initial = []) {
@@ -30538,7 +30545,7 @@ module.exports = {
30538
30545
  "muzzle-800": "#3B3A39",
30539
30546
  "muzzle-900": "#2B2B2B"
30540
30547
  };
30541
- var TOKENS_CSS = '/* Generated by scripts/brand-sync.mjs from brand/. Do not edit: run `pnpm brand:sync`. */\n:host, :root {\n --luci-color-ginger-50: #FEF5E8;\n --luci-color-ginger-100: #FEEBD1;\n --luci-color-ginger-200: #FCD7AA;\n --luci-color-ginger-300: #FBBE7A;\n --luci-color-ginger-400: #F6A24F;\n --luci-color-ginger-500: #EC862B;\n --luci-color-ginger-600: #D86D1D;\n --luci-color-ginger-700: #AD4F1A;\n --luci-color-ginger-800: #893D1B;\n --luci-color-ginger-900: #652D18;\n --luci-color-ginger-950: #451F12;\n --luci-color-collar-lime-100: #EAF5C7;\n --luci-color-collar-lime-300: #CBE66D;\n --luci-color-collar-lime-500: #B4D43C;\n --luci-color-collar-lime-700: #547617;\n --luci-color-nose-pink-100: #FFE4E1;\n --luci-color-nose-pink-300: #F5B9B4;\n --luci-color-nose-pink-500: #E79993;\n --luci-color-nose-pink-700: #AB5050;\n --luci-color-iris-gold-100: #F7F0CA;\n --luci-color-iris-gold-300: #E6D17A;\n --luci-color-iris-gold-500: #CBB042;\n --luci-color-iris-gold-700: #7B6813;\n --luci-color-success-100: #DFF3D5;\n --luci-color-success-700: #3F7932;\n --luci-color-warning-100: #FEEDC9;\n --luci-color-warning-700: #975F03;\n --luci-color-danger-100: #FFE3DF;\n --luci-color-danger-700: #C5372F;\n --luci-color-info-100: #D9F0F3;\n --luci-color-info-700: #1E767F;\n --luci-color-muzzle-0: #FDF9F6;\n --luci-color-muzzle-50: #F5EFEA;\n --luci-color-muzzle-100: #EBE5E0;\n --luci-color-muzzle-200: #DBD4CF;\n --luci-color-muzzle-300: #C2BCB8;\n --luci-color-muzzle-400: #A29D99;\n --luci-color-muzzle-500: #837F7C;\n --luci-color-muzzle-600: #656360;\n --luci-color-muzzle-700: #4F4D4B;\n --luci-color-muzzle-800: #3B3A39;\n --luci-color-muzzle-900: #2B2B2B;\n --luci-radius-sm: 8px;\n --luci-radius-md: 12px;\n --luci-radius-lg: 16px;\n --luci-radius-xl: 24px;\n --luci-radius-full: 9999px;\n --luci-space-4: 4px;\n --luci-space-8: 8px;\n --luci-space-12: 12px;\n --luci-space-16: 16px;\n --luci-space-20: 20px;\n --luci-space-24: 24px;\n --luci-space-32: 32px;\n --luci-space-40: 40px;\n --luci-space-48: 48px;\n --luci-space-64: 64px;\n --luci-space-80: 80px;\n --luci-font-display: "Luci Fredoka", Fredoka, "Luci Inter", Inter, sans-serif;\n --luci-font-body: "Luci Inter", Inter, system-ui, sans-serif;\n --luci-font-code: "Luci JetBrains Mono", \'JetBrains Mono\', ui-monospace, monospace;\n --luci-type-display-size: 40px;\n --luci-type-display-line: 44px;\n --luci-type-display-weight: 600;\n --luci-type-title-size: 24px;\n --luci-type-title-line: 30px;\n --luci-type-title-weight: 600;\n --luci-type-heading-size: 17px;\n --luci-type-heading-line: 24px;\n --luci-type-heading-weight: 600;\n --luci-type-body-size: 15px;\n --luci-type-body-line: 22px;\n --luci-type-body-weight: 400;\n --luci-type-small-size: 13px;\n --luci-type-small-line: 18px;\n --luci-type-small-weight: 500;\n --luci-type-micro-size: 12px;\n --luci-type-micro-line: 16px;\n --luci-type-micro-weight: 600;\n --luci-type-code-size: 13px;\n --luci-type-code-line: 20px;\n --luci-type-code-weight: 500;\n --luci-shadow-float: 0 8px 24px rgba(43, 43, 43, 0.14);\n --luci-motion-fast: 150ms ease-out;\n --luci-motion-base: 200ms ease-out;\n --luci-motion-exit: 150ms ease-in;\n --luci-size-touch-target: 44px;\n --luci-size-toolbar-button: 48px;\n --luci-size-toolbar-icon: 22px;\n --luci-size-mascot-min: 96px;\n --luci-size-toast-face: 48px;\n --luci-color-surface: var(--luci-color-muzzle-50);\n --luci-color-surface-raised: var(--luci-color-muzzle-0);\n --luci-color-surface-sunken: var(--luci-color-muzzle-100);\n --luci-color-ink: var(--luci-color-muzzle-900);\n --luci-color-ink-secondary: var(--luci-color-muzzle-600);\n --luci-color-ink-disabled: var(--luci-color-muzzle-400);\n --luci-color-primary: var(--luci-color-ginger-500);\n --luci-color-on-primary: var(--luci-color-muzzle-900);\n --luci-color-primary-hover: var(--luci-color-ginger-600);\n --luci-color-primary-soft: var(--luci-color-ginger-100);\n --luci-color-link: var(--luci-color-ginger-700);\n --luci-color-accent: var(--luci-color-collar-lime-500);\n --luci-color-on-accent: var(--luci-color-muzzle-900);\n --luci-color-success: var(--luci-color-success-700);\n --luci-color-success-bg: var(--luci-color-success-100);\n --luci-color-warning: var(--luci-color-warning-700);\n --luci-color-warning-bg: var(--luci-color-warning-100);\n --luci-color-danger: var(--luci-color-danger-700);\n --luci-color-danger-bg: var(--luci-color-danger-100);\n --luci-color-danger-hover: #FFD3CD;\n --luci-color-info: var(--luci-color-info-700);\n --luci-color-info-bg: var(--luci-color-info-100);\n --luci-color-secondary-hover: var(--luci-color-muzzle-100);\n --luci-color-ghost-hover: color-mix(in srgb, var(--luci-color-muzzle-900) 6%, transparent);\n --luci-color-stroke-subtle: color-mix(in srgb, var(--luci-color-muzzle-900) 12%, transparent);\n --luci-color-stroke-muzzle: var(--luci-color-muzzle-200);\n --luci-color-stroke-strong: color-mix(in srgb, var(--luci-color-muzzle-900) 24%, transparent);\n --luci-color-focus: var(--luci-color-muzzle-900);\n --luci-color-bar: var(--luci-color-muzzle-900);\n --luci-color-bar-ink: var(--luci-color-muzzle-50);\n --luci-color-bar-ink-secondary: var(--luci-color-muzzle-300);\n --luci-color-bar-hover: var(--luci-color-muzzle-700);\n --luci-color-bar-stroke: color-mix(in srgb, var(--luci-color-muzzle-50) 16%, transparent);\n --luci-color-tool-active: var(--luci-color-ginger-400);\n --luci-color-on-tool-active: var(--luci-color-muzzle-900);\n --luci-color-pick: var(--luci-color-ginger-500);\n --luci-color-pick-fill: color-mix(in srgb, var(--luci-color-ginger-500) 14%, transparent);\n --luci-color-pick-blocked: var(--luci-color-danger-700);\n --luci-color-pick-blocked-fill: color-mix(in srgb, var(--luci-color-muzzle-500) 35%, transparent);\n --luci-color-pad-fill: color-mix(in srgb, var(--luci-color-collar-lime-500) 35%, transparent);\n --luci-color-margin-fill: color-mix(in srgb, var(--luci-color-ginger-300) 35%, transparent);\n --luci-color-insert: var(--luci-color-nose-pink-500);\n --luci-color-insert-fill: color-mix(in srgb, var(--luci-color-nose-pink-500) 16%, transparent);\n --luci-color-insert-ink: var(--luci-color-nose-pink-100);\n}\n@media (prefers-color-scheme: dark) {\n .luci-theme:not([data-theme="light"]) {\n --luci-color-surface: var(--luci-color-muzzle-900);\n --luci-color-surface-raised: var(--luci-color-muzzle-800);\n --luci-color-surface-sunken: var(--luci-color-muzzle-800);\n --luci-color-ink: var(--luci-color-muzzle-50);\n --luci-color-ink-secondary: var(--luci-color-muzzle-300);\n --luci-color-ink-disabled: var(--luci-color-muzzle-500);\n --luci-color-primary: var(--luci-color-ginger-400);\n --luci-color-on-primary: var(--luci-color-muzzle-900);\n --luci-color-primary-hover: var(--luci-color-ginger-300);\n --luci-color-primary-soft: color-mix(in srgb, var(--luci-color-ginger-400) 18%, transparent);\n --luci-color-link: var(--luci-color-ginger-300);\n --luci-color-accent: var(--luci-color-collar-lime-500);\n --luci-color-on-accent: var(--luci-color-muzzle-900);\n --luci-color-success: var(--luci-color-success-700);\n --luci-color-success-bg: var(--luci-color-success-100);\n --luci-color-warning: var(--luci-color-warning-700);\n --luci-color-warning-bg: var(--luci-color-warning-100);\n --luci-color-danger: var(--luci-color-danger-700);\n --luci-color-danger-bg: var(--luci-color-danger-100);\n --luci-color-danger-hover: #FFD3CD;\n --luci-color-info: var(--luci-color-info-700);\n --luci-color-info-bg: var(--luci-color-info-100);\n --luci-color-secondary-hover: var(--luci-color-muzzle-700);\n --luci-color-ghost-hover: color-mix(in srgb, var(--luci-color-muzzle-50) 8%, transparent);\n --luci-color-stroke-subtle: color-mix(in srgb, var(--luci-color-muzzle-50) 16%, transparent);\n --luci-color-stroke-muzzle: var(--luci-color-muzzle-700);\n --luci-color-stroke-strong: color-mix(in srgb, var(--luci-color-muzzle-50) 28%, transparent);\n --luci-color-focus: var(--luci-color-muzzle-50);\n }\n}\n.luci-theme[data-theme="dark"] {\n --luci-color-surface: var(--luci-color-muzzle-900);\n --luci-color-surface-raised: var(--luci-color-muzzle-800);\n --luci-color-surface-sunken: var(--luci-color-muzzle-800);\n --luci-color-ink: var(--luci-color-muzzle-50);\n --luci-color-ink-secondary: var(--luci-color-muzzle-300);\n --luci-color-ink-disabled: var(--luci-color-muzzle-500);\n --luci-color-primary: var(--luci-color-ginger-400);\n --luci-color-on-primary: var(--luci-color-muzzle-900);\n --luci-color-primary-hover: var(--luci-color-ginger-300);\n --luci-color-primary-soft: color-mix(in srgb, var(--luci-color-ginger-400) 18%, transparent);\n --luci-color-link: var(--luci-color-ginger-300);\n --luci-color-accent: var(--luci-color-collar-lime-500);\n --luci-color-on-accent: var(--luci-color-muzzle-900);\n --luci-color-success: var(--luci-color-success-700);\n --luci-color-success-bg: var(--luci-color-success-100);\n --luci-color-warning: var(--luci-color-warning-700);\n --luci-color-warning-bg: var(--luci-color-warning-100);\n --luci-color-danger: var(--luci-color-danger-700);\n --luci-color-danger-bg: var(--luci-color-danger-100);\n --luci-color-danger-hover: #FFD3CD;\n --luci-color-info: var(--luci-color-info-700);\n --luci-color-info-bg: var(--luci-color-info-100);\n --luci-color-secondary-hover: var(--luci-color-muzzle-700);\n --luci-color-ghost-hover: color-mix(in srgb, var(--luci-color-muzzle-50) 8%, transparent);\n --luci-color-stroke-subtle: color-mix(in srgb, var(--luci-color-muzzle-50) 16%, transparent);\n --luci-color-stroke-muzzle: var(--luci-color-muzzle-700);\n --luci-color-stroke-strong: color-mix(in srgb, var(--luci-color-muzzle-50) 28%, transparent);\n --luci-color-focus: var(--luci-color-muzzle-50);\n}\n';
30548
+ var TOKENS_CSS = '/* Generated by scripts/brand-sync.mjs from brand/. Do not edit: run `pnpm brand:sync`. */\n:host, :root {\n --luci-color-ginger-50: #FEF5E8;\n --luci-color-ginger-100: #FEEBD1;\n --luci-color-ginger-200: #FCD7AA;\n --luci-color-ginger-300: #FBBE7A;\n --luci-color-ginger-400: #F6A24F;\n --luci-color-ginger-500: #EC862B;\n --luci-color-ginger-600: #D86D1D;\n --luci-color-ginger-700: #AD4F1A;\n --luci-color-ginger-800: #893D1B;\n --luci-color-ginger-900: #652D18;\n --luci-color-ginger-950: #451F12;\n --luci-color-collar-lime-100: #EAF5C7;\n --luci-color-collar-lime-300: #CBE66D;\n --luci-color-collar-lime-500: #B4D43C;\n --luci-color-collar-lime-700: #547617;\n --luci-color-nose-pink-100: #FFE4E1;\n --luci-color-nose-pink-300: #F5B9B4;\n --luci-color-nose-pink-500: #E79993;\n --luci-color-nose-pink-700: #AB5050;\n --luci-color-iris-gold-100: #F7F0CA;\n --luci-color-iris-gold-300: #E6D17A;\n --luci-color-iris-gold-500: #CBB042;\n --luci-color-iris-gold-700: #7B6813;\n --luci-color-success-100: #DFF3D5;\n --luci-color-success-700: #3F7932;\n --luci-color-warning-100: #FEEDC9;\n --luci-color-warning-700: #975F03;\n --luci-color-danger-100: #FFE3DF;\n --luci-color-danger-700: #C5372F;\n --luci-color-info-100: #D9F0F3;\n --luci-color-info-700: #1E767F;\n --luci-color-muzzle-0: #FDF9F6;\n --luci-color-muzzle-50: #F5EFEA;\n --luci-color-muzzle-100: #EBE5E0;\n --luci-color-muzzle-200: #DBD4CF;\n --luci-color-muzzle-300: #C2BCB8;\n --luci-color-muzzle-400: #A29D99;\n --luci-color-muzzle-500: #837F7C;\n --luci-color-muzzle-600: #656360;\n --luci-color-muzzle-700: #4F4D4B;\n --luci-color-muzzle-800: #3B3A39;\n --luci-color-muzzle-900: #2B2B2B;\n --luci-radius-sm: 8px;\n --luci-radius-md: 12px;\n --luci-radius-lg: 16px;\n --luci-radius-xl: 24px;\n --luci-radius-full: 9999px;\n --luci-space-4: 4px;\n --luci-space-8: 8px;\n --luci-space-12: 12px;\n --luci-space-16: 16px;\n --luci-space-20: 20px;\n --luci-space-24: 24px;\n --luci-space-32: 32px;\n --luci-space-40: 40px;\n --luci-space-48: 48px;\n --luci-space-64: 64px;\n --luci-space-80: 80px;\n --luci-font-display: "Luci Fredoka", Fredoka, "Luci Inter", Inter, sans-serif;\n --luci-font-body: "Luci Inter", Inter, system-ui, sans-serif;\n --luci-font-code: "Luci JetBrains Mono", \'JetBrains Mono\', ui-monospace, monospace;\n --luci-type-display-size: 40px;\n --luci-type-display-line: 44px;\n --luci-type-display-weight: 600;\n --luci-type-title-size: 24px;\n --luci-type-title-line: 30px;\n --luci-type-title-weight: 600;\n --luci-type-heading-size: 17px;\n --luci-type-heading-line: 24px;\n --luci-type-heading-weight: 600;\n --luci-type-body-size: 15px;\n --luci-type-body-line: 22px;\n --luci-type-body-weight: 400;\n --luci-type-small-size: 13px;\n --luci-type-small-line: 18px;\n --luci-type-small-weight: 500;\n --luci-type-micro-size: 12px;\n --luci-type-micro-line: 16px;\n --luci-type-micro-weight: 600;\n --luci-type-code-size: 13px;\n --luci-type-code-line: 20px;\n --luci-type-code-weight: 500;\n --luci-shadow-float: 0 1px 2px rgba(0, 0, 0, 0.24), 0 8px 24px rgba(0, 0, 0, 0.28);\n --luci-shadow-edge: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.05);\n --luci-motion-fast: 150ms ease-out;\n --luci-motion-base: 200ms ease-out;\n --luci-motion-exit: 150ms ease-in;\n --luci-size-touch-target: 44px;\n --luci-size-toolbar-button: 48px;\n --luci-size-toolbar-icon: 22px;\n --luci-size-mascot-min: 96px;\n --luci-size-toast-face: 48px;\n --luci-color-surface: var(--luci-color-muzzle-50);\n --luci-color-surface-raised: var(--luci-color-muzzle-0);\n --luci-color-surface-sunken: var(--luci-color-muzzle-100);\n --luci-color-ink: var(--luci-color-muzzle-900);\n --luci-color-ink-secondary: var(--luci-color-muzzle-600);\n --luci-color-ink-disabled: var(--luci-color-muzzle-400);\n --luci-color-primary: var(--luci-color-ginger-500);\n --luci-color-on-primary: var(--luci-color-muzzle-900);\n --luci-color-primary-hover: var(--luci-color-ginger-600);\n --luci-color-primary-soft: var(--luci-color-ginger-100);\n --luci-color-link: var(--luci-color-ginger-700);\n --luci-color-accent: var(--luci-color-collar-lime-500);\n --luci-color-on-accent: var(--luci-color-muzzle-900);\n --luci-color-success: var(--luci-color-success-700);\n --luci-color-success-bg: var(--luci-color-success-100);\n --luci-color-warning: var(--luci-color-warning-700);\n --luci-color-warning-bg: var(--luci-color-warning-100);\n --luci-color-danger: var(--luci-color-danger-700);\n --luci-color-danger-bg: var(--luci-color-danger-100);\n --luci-color-danger-hover: #FFD3CD;\n --luci-color-info: var(--luci-color-info-700);\n --luci-color-info-bg: var(--luci-color-info-100);\n --luci-color-secondary-hover: var(--luci-color-muzzle-100);\n --luci-color-ghost-hover: color-mix(in srgb, var(--luci-color-muzzle-900) 6%, transparent);\n --luci-color-stroke-subtle: color-mix(in srgb, var(--luci-color-muzzle-900) 12%, transparent);\n --luci-color-stroke-muzzle: var(--luci-color-muzzle-200);\n --luci-color-stroke-strong: color-mix(in srgb, var(--luci-color-muzzle-900) 24%, transparent);\n --luci-color-focus: var(--luci-color-muzzle-900);\n --luci-color-bar: var(--luci-color-muzzle-900);\n --luci-color-bar-ink: var(--luci-color-muzzle-50);\n --luci-color-bar-ink-secondary: var(--luci-color-muzzle-300);\n --luci-color-bar-hover: var(--luci-color-muzzle-700);\n --luci-color-bar-stroke: color-mix(in srgb, var(--luci-color-muzzle-50) 16%, transparent);\n --luci-color-tool-active: var(--luci-color-ginger-400);\n --luci-color-on-tool-active: var(--luci-color-muzzle-900);\n --luci-color-pick: var(--luci-color-ginger-500);\n --luci-color-pick-fill: color-mix(in srgb, var(--luci-color-ginger-500) 14%, transparent);\n --luci-color-pick-blocked: var(--luci-color-danger-700);\n --luci-color-pick-blocked-fill: color-mix(in srgb, var(--luci-color-muzzle-500) 35%, transparent);\n --luci-color-pad-fill: color-mix(in srgb, var(--luci-color-collar-lime-500) 35%, transparent);\n --luci-color-margin-fill: color-mix(in srgb, var(--luci-color-ginger-300) 35%, transparent);\n --luci-color-insert: var(--luci-color-nose-pink-500);\n --luci-color-insert-fill: color-mix(in srgb, var(--luci-color-nose-pink-500) 16%, transparent);\n --luci-color-insert-ink: var(--luci-color-nose-pink-100);\n}\n@media (prefers-color-scheme: dark) {\n .luci-theme:not([data-theme="light"]) {\n --luci-color-surface: var(--luci-color-muzzle-900);\n --luci-color-surface-raised: var(--luci-color-muzzle-800);\n --luci-color-surface-sunken: var(--luci-color-muzzle-800);\n --luci-color-ink: var(--luci-color-muzzle-50);\n --luci-color-ink-secondary: var(--luci-color-muzzle-300);\n --luci-color-ink-disabled: var(--luci-color-muzzle-500);\n --luci-color-primary: var(--luci-color-ginger-400);\n --luci-color-on-primary: var(--luci-color-muzzle-900);\n --luci-color-primary-hover: var(--luci-color-ginger-300);\n --luci-color-primary-soft: color-mix(in srgb, var(--luci-color-ginger-400) 18%, transparent);\n --luci-color-link: var(--luci-color-ginger-300);\n --luci-color-accent: var(--luci-color-collar-lime-500);\n --luci-color-on-accent: var(--luci-color-muzzle-900);\n --luci-color-success: var(--luci-color-success-700);\n --luci-color-success-bg: var(--luci-color-success-100);\n --luci-color-warning: var(--luci-color-warning-700);\n --luci-color-warning-bg: var(--luci-color-warning-100);\n --luci-color-danger: var(--luci-color-danger-700);\n --luci-color-danger-bg: var(--luci-color-danger-100);\n --luci-color-danger-hover: #FFD3CD;\n --luci-color-info: var(--luci-color-info-700);\n --luci-color-info-bg: var(--luci-color-info-100);\n --luci-color-secondary-hover: var(--luci-color-muzzle-700);\n --luci-color-ghost-hover: color-mix(in srgb, var(--luci-color-muzzle-50) 8%, transparent);\n --luci-color-stroke-subtle: color-mix(in srgb, var(--luci-color-muzzle-50) 16%, transparent);\n --luci-color-stroke-muzzle: var(--luci-color-muzzle-700);\n --luci-color-stroke-strong: color-mix(in srgb, var(--luci-color-muzzle-50) 28%, transparent);\n --luci-color-focus: var(--luci-color-muzzle-50);\n }\n}\n.luci-theme[data-theme="dark"] {\n --luci-color-surface: var(--luci-color-muzzle-900);\n --luci-color-surface-raised: var(--luci-color-muzzle-800);\n --luci-color-surface-sunken: var(--luci-color-muzzle-800);\n --luci-color-ink: var(--luci-color-muzzle-50);\n --luci-color-ink-secondary: var(--luci-color-muzzle-300);\n --luci-color-ink-disabled: var(--luci-color-muzzle-500);\n --luci-color-primary: var(--luci-color-ginger-400);\n --luci-color-on-primary: var(--luci-color-muzzle-900);\n --luci-color-primary-hover: var(--luci-color-ginger-300);\n --luci-color-primary-soft: color-mix(in srgb, var(--luci-color-ginger-400) 18%, transparent);\n --luci-color-link: var(--luci-color-ginger-300);\n --luci-color-accent: var(--luci-color-collar-lime-500);\n --luci-color-on-accent: var(--luci-color-muzzle-900);\n --luci-color-success: var(--luci-color-success-700);\n --luci-color-success-bg: var(--luci-color-success-100);\n --luci-color-warning: var(--luci-color-warning-700);\n --luci-color-warning-bg: var(--luci-color-warning-100);\n --luci-color-danger: var(--luci-color-danger-700);\n --luci-color-danger-bg: var(--luci-color-danger-100);\n --luci-color-danger-hover: #FFD3CD;\n --luci-color-info: var(--luci-color-info-700);\n --luci-color-info-bg: var(--luci-color-info-100);\n --luci-color-secondary-hover: var(--luci-color-muzzle-700);\n --luci-color-ghost-hover: color-mix(in srgb, var(--luci-color-muzzle-50) 8%, transparent);\n --luci-color-stroke-subtle: color-mix(in srgb, var(--luci-color-muzzle-50) 16%, transparent);\n --luci-color-stroke-muzzle: var(--luci-color-muzzle-700);\n --luci-color-stroke-strong: color-mix(in srgb, var(--luci-color-muzzle-50) 28%, transparent);\n --luci-color-focus: var(--luci-color-muzzle-50);\n}\n';
30542
30549
 
30543
30550
  // packages/ui/dist/mascot/art.js
30544
30551
  var POSE_SVG = {
@@ -31329,7 +31336,7 @@ module.exports = {
31329
31336
  }
31330
31337
 
31331
31338
  // packages/ui/dist/about.js
31332
- var LUCI_VERSION = "0.5.5";
31339
+ var LUCI_VERSION = "0.5.6";
31333
31340
  var LUCI_REPO_URL = "https://github.com/waidesign/luci-by-pawprint.design";
31334
31341
 
31335
31342
  // packages/ui/dist/copy.js
@@ -31432,6 +31439,13 @@ module.exports = {
31432
31439
  color: var(--luci-color-ink);
31433
31440
  -webkit-font-smoothing: antialiased;
31434
31441
  }
31442
+ /*
31443
+ * Elevation for cards floating over the page: the float shadow, plus the faint inner edge on Charcoal
31444
+ * (the dark theme's cards), so they stay apart from a dark host page of the same colour.
31445
+ */
31446
+ .luci-theme { --luci-elevation: var(--luci-shadow-float); --luci-elevation-bar: var(--luci-shadow-edge), var(--luci-shadow-float); }
31447
+ @media (prefers-color-scheme: dark) { .luci-theme:not([data-theme="light"]) { --luci-elevation: var(--luci-shadow-edge), var(--luci-shadow-float); } }
31448
+ .luci-theme[data-theme="dark"] { --luci-elevation: var(--luci-shadow-edge), var(--luci-shadow-float); }
31435
31449
  .luci-theme *, .luci-theme *::before, .luci-theme *::after { box-sizing: border-box; }
31436
31450
  .luci-theme :where(button, input, select, textarea) { font: inherit; color: inherit; }
31437
31451
  .luci-theme :where(code, kbd, pre, samp) { font-family: var(--luci-font-code); }
@@ -31553,7 +31567,7 @@ module.exports = {
31553
31567
  .status-msg .status-title { margin: 0; color: var(--status); font-size: var(--luci-type-heading-size); line-height: var(--luci-type-heading-line); font-weight: var(--luci-type-heading-weight); }
31554
31568
  .status-msg .status-detail { margin: 0; }
31555
31569
  .status-msg .mascot { width: 48px; }
31556
- .toast { position: fixed; z-index: 2147483647; box-shadow: var(--luci-shadow-float); }
31570
+ .toast { position: fixed; z-index: 2147483647; box-shadow: var(--luci-elevation); }
31557
31571
 
31558
31572
  /* Card and panel */
31559
31573
  .card { padding: var(--luci-space-24); border: 1px solid var(--luci-color-stroke-subtle); border-radius: var(--luci-radius-xl); background: var(--luci-color-surface-raised); }
@@ -31604,6 +31618,12 @@ module.exports = {
31604
31618
  .luci-theme [data-tip]:is(:hover, :focus-visible)::after { opacity: 1; transform: translate(-50%, 0);
31605
31619
  transition: opacity var(--luci-motion-base) 300ms, transform var(--luci-motion-base) 300ms; }
31606
31620
 
31621
+ /*
31622
+ * Touch screens have no hover: a tapped button would keep its tooltip until the next tap elsewhere, over
31623
+ * the bar and its cards. There they show for keyboard focus only.
31624
+ */
31625
+ @media (hover: none) { .luci-theme [data-tip]:hover:not(:focus-visible)::after { opacity: 0; transition: none; } }
31626
+
31607
31627
  /* Left-aligned tooltips (first button in rows, cards, or explicit data-tip-align="left") open rightwards to prevent clipping inside cards/panels */
31608
31628
  .luci-theme [data-tip][data-tip-align="left"]::after,
31609
31629
  .luci-theme .panel .actions > [data-tip]:first-child::after,
@@ -31777,7 +31797,8 @@ ${UI_CSS}
31777
31797
  border-radius: 32px;
31778
31798
  background: var(--luci-color-bar);
31779
31799
  color: var(--luci-color-bar-ink);
31780
- box-shadow: var(--luci-shadow-float);
31800
+ /* Charcoal in both themes, so always with the inner edge: it stays apart from a dark page */
31801
+ box-shadow: var(--luci-elevation-bar);
31781
31802
  }
31782
31803
  /* Above the cards, so the tools' tooltips are never under a card */
31783
31804
  .shell > .bar { position: relative; z-index: 2; }
@@ -31822,6 +31843,7 @@ ${UI_CSS}
31822
31843
  .luci-theme .bar .basket-pill[aria-pressed="true"],
31823
31844
  .luci-theme .bar .basket-pill[aria-pressed="true"]:hover:not(:disabled),
31824
31845
  .luci-theme .bar button.basket-pill[aria-pressed="true"]:hover:not(:disabled) { background: var(--luci-color-collar-lime-300); color: var(--luci-color-on-accent); }
31846
+ .bar .basket-n { display: none; }
31825
31847
  .brand { display: inline-flex; align-items: center; gap: var(--luci-space-8); padding: 0 var(--luci-space-8) 0 0;
31826
31848
  font: var(--luci-type-display-weight) var(--luci-type-heading-size)/1 var(--luci-font-display); color: var(--luci-color-bar-ink); }
31827
31849
  /* The dev toolbar's mode switch, on Charcoal */
@@ -31836,7 +31858,8 @@ ${UI_CSS}
31836
31858
  * --luci-y its distances from that corner's edges (default bottom right, 12 px, by its button; the
31837
31859
  * person can drag it anywhere). Everything opens from the bar, on the side with room: cards just above
31838
31860
  * a bar in the bottom half, just below one in the top half, aligned to its side. A panel takes the
31839
- * hint's place while it is open. The extension sets none of this (its bar keeps its own place).
31861
+ * hint's place while it is open. --luci-bar-h is the bar's measured height (it can wrap), so a card
31862
+ * never opens under it. The extension sets none of this (its bar keeps its own place).
31840
31863
  */
31841
31864
  :host([data-h="right"]) :is(.shell, .bar:not(.shell > .bar), .sub:not(.shell > .sub), .panel:not(.shell > .panel), .menu) { left: auto; right: var(--luci-x, 12px); }
31842
31865
  :host([data-h="left"]) :is(.shell, .bar:not(.shell > .bar), .sub:not(.shell > .sub), .panel:not(.shell > .panel), .menu) { right: auto; left: var(--luci-x, 12px); }
@@ -31844,14 +31867,14 @@ ${UI_CSS}
31844
31867
  :host([data-h="left"]) .shell { align-items: flex-start; }
31845
31868
  :host([data-v="bottom"]) :is(.shell, .bar:not(.shell > .bar)) { top: auto; bottom: var(--luci-y, 12px); }
31846
31869
  :host([data-v="bottom"]) .shell { flex-direction: column-reverse; }
31847
- :host([data-v="bottom"]) :is(.sub:not(.shell > .sub), .panel:not(.shell > .panel)) { top: auto; bottom: calc(var(--luci-y, 12px) + 72px); }
31848
- :host([data-v="bottom"]) .menu { top: auto; bottom: calc(var(--luci-y, 12px) + 64px); }
31870
+ :host([data-v="bottom"]) :is(.sub:not(.shell > .sub), .panel:not(.shell > .panel)) { top: auto; bottom: calc(var(--luci-y, 12px) + var(--luci-bar-h, 64px) + 8px); }
31871
+ :host([data-v="bottom"]) .menu { top: auto; bottom: calc(var(--luci-y, 12px) + var(--luci-bar-h, 64px)); }
31849
31872
  :host([data-v="top"]) :is(.shell, .bar:not(.shell > .bar)) { bottom: auto; top: var(--luci-y, 12px); }
31850
- :host([data-v="top"]) :is(.sub:not(.shell > .sub), .panel:not(.shell > .panel)) { bottom: auto; top: calc(var(--luci-y, 12px) + 72px); }
31851
- :host([data-v="top"]) .menu { bottom: auto; top: calc(var(--luci-y, 12px) + 64px); }
31873
+ :host([data-v="top"]) :is(.sub:not(.shell > .sub), .panel:not(.shell > .panel)) { bottom: auto; top: calc(var(--luci-y, 12px) + var(--luci-bar-h, 64px) + 8px); }
31874
+ :host([data-v="top"]) .menu { bottom: auto; top: calc(var(--luci-y, 12px) + var(--luci-bar-h, 64px)); }
31852
31875
  :host([data-v]) .shell { max-height: calc(100vh - var(--luci-y, 12px) - 12px); }
31853
- :host([data-v]) .panel:not(.shell > .panel) { max-height: min(72vh, calc(100vh - var(--luci-y, 12px) - 96px)); }
31854
- :host([data-v]) .layout-panel:not(.shell > .panel) { max-height: min(80vh, calc(100vh - var(--luci-y, 12px) - 96px)); }
31876
+ :host([data-v]) .panel:not(.shell > .panel) { max-height: min(72vh, calc(100vh - var(--luci-y, 12px) - var(--luci-bar-h, 64px) - 32px)); }
31877
+ :host([data-v]) .layout-panel:not(.shell > .panel) { max-height: min(80vh, calc(100vh - var(--luci-y, 12px) - var(--luci-bar-h, 64px) - 32px)); }
31855
31878
  :host([data-v]) .luci-theme:has(> .panel) > .sub:not([role="alert"]) { display: none; }
31856
31879
  :host([data-v="bottom"]) :is(.sub, .panel, .menu) { animation: luci-rise var(--luci-motion-base, 200ms) both; }
31857
31880
  :host([data-v="top"]) :is(.sub, .panel, .menu) { animation: luci-drop var(--luci-motion-base, 200ms) both; }
@@ -31869,13 +31892,44 @@ ${UI_CSS}
31869
31892
  :host([data-v]) .bar button, :host([data-v]) .bar .menu-btn { cursor: pointer; }
31870
31893
  :host([data-moving]) .bar, :host([data-moving]) .bar * { cursor: grabbing; user-select: none; }
31871
31894
  /* New page's canvas covers the window: its tools and its panel keep clear of the bar */
31872
- :host([data-v="bottom"]) .wf { padding-bottom: calc(var(--luci-y, 12px) + 76px); }
31895
+ :host([data-v="bottom"]) .wf { padding-bottom: calc(var(--luci-y, 12px) + var(--luci-bar-h, 64px) + 12px); }
31873
31896
  :host([data-v="bottom"]) .wf-tools { padding-top: var(--luci-space-12); }
31874
- :host([data-v="top"]) .wf-tools { padding-top: calc(var(--luci-y, 12px) + 76px); }
31897
+ :host([data-v="top"]) .wf-tools { padding-top: calc(var(--luci-y, 12px) + var(--luci-bar-h, 64px) + 12px); }
31875
31898
  :host([data-v="top"]) .panel[data-part="sketch-panel"]:not(.shell > .panel) { top: auto; bottom: var(--luci-space-12); }
31876
31899
 
31900
+ /*
31901
+ * Phones and narrow windows (dev toolbar): the bar spans the window's width in two planned rows instead
31902
+ * of wrapping wherever it runs out of room. Row 1: Luci, the mode switch, Close. Row 2: the mode's tools,
31903
+ * spread evenly at the 44 px touch target. The first separator is the line break. Cards open full width
31904
+ * from the bar, above it (or below a bar dragged to the top).
31905
+ */
31906
+ @media (max-width: 639px) {
31907
+ :host([data-v]) :is(.shell, .bar:not(.shell > .bar), .sub:not(.shell > .sub), .panel:not(.shell > .panel), .menu) { left: 8px; right: 8px; }
31908
+ :host([data-v]) :is(.sub:not(.shell > .sub), .panel:not(.shell > .panel)) { width: auto; }
31909
+ :host([data-v]) .shell { align-items: stretch; max-width: none; }
31910
+ :host([data-v]) .shell > :is(.sub, .panel) { width: auto; }
31911
+ :host([data-v]) .bar { justify-content: space-between; row-gap: var(--luci-space-4); column-gap: 0; padding: 6px; border-radius: var(--luci-radius-xl); max-width: none; }
31912
+ :host([data-v]) .bar > * { order: 3; }
31913
+ :host([data-v]) .bar > :is(.menu-btn, .modes) { order: 0; }
31914
+ :host([data-v]) .bar > [data-action="close"] { order: 1; }
31915
+ :host([data-v]) .bar > .modes + .bar-sep { order: 2; flex-basis: 100%; width: 0; height: 0; margin: 0; background: none; }
31916
+ :host([data-v]) .bar > .bar-sep:not(.modes + .bar-sep) { display: none; }
31917
+ :host([data-v]) .bar .modes { flex: 1 1 auto; margin: 0 var(--luci-space-4); }
31918
+ :host([data-v]) .bar .modes button { flex: 1 1 0; padding-inline: var(--luci-space-8); }
31919
+ :host([data-v]) .luci-theme .bar :is(.tool, .split .caret) { --luci-btn-h: 44px; }
31920
+ /* Where notes go, as its dot only (the words stay as its label) */
31921
+ :host([data-v]) .bar .conn { width: 28px; height: 44px; justify-content: center; padding: 0; font-size: 0; }
31922
+ :host([data-v]) .bar .conn::before { width: 10px; height: 10px; }
31923
+ /* Layout's inspector leaves the top of the page in view, where the selected element can be */
31924
+ :host([data-v]) .layout-panel:not(.shell > .panel) { max-height: min(45vh, calc(100vh - var(--luci-y, 12px) - var(--luci-bar-h, 64px) - 32px)); }
31925
+ /* The basket as its icon and count (its label still says "Basket, n items") */
31926
+ :host([data-v]) .luci-theme .bar .basket-pill { gap: var(--luci-space-4); padding: 0 var(--luci-space-12) 0 var(--luci-space-8); }
31927
+ :host([data-v]) .bar .basket-full { display: none; }
31928
+ :host([data-v]) .bar .basket-n { display: inline; }
31929
+ }
31930
+
31877
31931
  /* Cards under the pill: the hint while picking, and every panel (radius-xl, float shadow, no stroke) */
31878
- .sub, .panel { background: var(--luci-color-surface); border-radius: var(--luci-radius-xl); box-shadow: var(--luci-shadow-float); }
31932
+ .sub, .panel { background: var(--luci-color-surface); border-radius: var(--luci-radius-xl); box-shadow: var(--luci-elevation); }
31879
31933
  .sub {
31880
31934
  position: fixed;
31881
31935
  top: 84px;
@@ -31937,6 +31991,8 @@ ${UI_CSS}
31937
31991
  /* The first-run greeting */
31938
31992
  .greet { flex-direction: row; align-items: center; gap: var(--luci-space-16); }
31939
31993
  .greet .t-title { margin: 0; }
31994
+ /* The words wrap beside Luci on a narrow window (panels keep their children's size otherwise) */
31995
+ .greet > .stack { flex-shrink: 1; min-width: 0; }
31940
31996
 
31941
31997
  /* Segmented control */
31942
31998
  .seg { display: inline-flex; align-self: flex-start; gap: var(--luci-space-4); padding: var(--luci-space-4); background: var(--luci-color-surface-sunken); border-radius: var(--luci-radius-full); }
@@ -31993,6 +32049,8 @@ label { display: inline-flex; gap: var(--luci-space-4); align-items: center; col
31993
32049
 
31994
32050
  /* Page overlays while picking: drawn over the host page, never part of it */
31995
32051
  .pick-layer, .pixel-layer { position: fixed; inset: 0; z-index: 2147483640; cursor: crosshair; background: transparent; touch-action: none; }
32052
+ /* Picking an element by touch takes taps, not drags: the page still scrolls and zooms under the finger */
32053
+ .pick-layer { touch-action: pan-x pan-y pinch-zoom; }
31996
32054
  .highlight { position: fixed; z-index: 2147483646; pointer-events: none; border: 2px solid var(--luci-color-pick); background: var(--luci-color-pick-fill); border-radius: 2px; }
31997
32055
  .highlight.locked { border-width: 2px; border-style: solid; }
31998
32056
  .highlight.blocked { border-color: var(--luci-color-pick-blocked); background: var(--luci-color-pick-blocked-fill); }
@@ -32001,7 +32059,7 @@ label { display: inline-flex; gap: var(--luci-space-4); align-items: center; col
32001
32059
  @media (prefers-reduced-motion: no-preference) { .highlight { transition: top 60ms, left 60ms, width 60ms, height 60ms; } }
32002
32060
  /* The label and the pixel swatch read like tooltips: Charcoal fill, Muzzle White text */
32003
32061
  .label, .swatch { position: fixed; z-index: 2147483647; pointer-events: none; padding: var(--luci-space-4) var(--luci-space-8); border-radius: var(--luci-radius-md);
32004
- background: var(--luci-color-muzzle-900); color: var(--luci-color-muzzle-50); box-shadow: var(--luci-shadow-float);
32062
+ background: var(--luci-color-muzzle-900); color: var(--luci-color-muzzle-50); box-shadow: var(--luci-elevation-bar);
32005
32063
  font: var(--luci-type-code-weight) 12px/1.4 var(--luci-font-code); }
32006
32064
  .label { max-width: 360px; white-space: pre-wrap; }
32007
32065
  .label .reason { display: block; color: var(--luci-color-nose-pink-300); font-family: var(--luci-font-body); }
@@ -33585,7 +33643,7 @@ button .spinner { display: inline-block; width: 12px; height: 12px; vertical-ali
33585
33643
  area2.scrollBy(e6.deltaX, e6.deltaY);
33586
33644
  }
33587
33645
  };
33588
- const pickUp = (x3, y3) => {
33646
+ const pickUp = (x3, y3, touch = false) => {
33589
33647
  {
33590
33648
  const target = elementAt(doc, x3, y3);
33591
33649
  const start = drag.current;
@@ -33593,6 +33651,11 @@ button .spinner { display: inline-block; width: 12px; height: 12px; vertical-ali
33593
33651
  if (!target || !start || !tool)
33594
33652
  return;
33595
33653
  const moved = Math.hypot(x3 - start.x, y3 - start.y) > DRAG_PX;
33654
+ if (touch && !moved && target !== candidateRef.current) {
33655
+ trail.current = [];
33656
+ aim(target);
33657
+ return;
33658
+ }
33596
33659
  if (tool === "spacing" && moved && target !== start.el) {
33597
33660
  const blocked = [start.el, target].map(eligibilityOf).find((x4) => x4.status !== "allowed");
33598
33661
  if (blocked) {
@@ -34209,7 +34272,7 @@ button .spinner { display: inline-block; width: 12px; height: 12px; vertical-ali
34209
34272
  const hoverElig = hovered ? eligibilityOf(hovered) : null;
34210
34273
  const rect = hovered?.getBoundingClientRect();
34211
34274
  const cs = hovered && tool === "spacing" ? win.getComputedStyle(hovered) : null;
34212
- return u2("div", { class: "luci luci-theme", "data-theme": uiPrefs.theme, "data-dock": uiPrefs.dock, children: [u2("div", { class: "shell", "data-part": "shell", ref: shellRef, style: shellStyle, ...props.movable ? { "data-movable": "" } : {}, ...moving ? { "data-moving": "" } : {}, ...place ? { "data-h": place.h, "data-v": place.v } : {}, children: [u2("div", { class: "bar", role: "toolbar", "aria-label": props.modes ? COPY.capture.devTitle : COPY.capture.title, ref: barRef, onPointerDown: startMove, onClickCapture: swallowDragClick, children: [u2("button", { type: "button", class: "menu-btn", "data-action": "settings", "aria-label": COPY.common.menu, "aria-pressed": settingsOpen, "aria-keyshortcuts": KEYS.menu, "data-tip": `${COPY.common.menu} ${KEYS.menu}`, onClick: toggleMenu, children: u2(LuciLogo, { size: 48 }) }), props.modes && u2(ModeSwitch, { ...props.modes }), u2("span", { class: "bar-sep", "aria-hidden": "true" }), TOOLS.map((t3) => u2(Button, { iconOnly: true, size: "lg", class: "tool", icon: TOOL_ICONS[t3], label: COPY.capture.tools[t3], shortcut: KEYS[t3], "data-tool": t3, "aria-pressed": currentTool === t3, onClick: () => pickTool(t3) })), u2(Button, { iconOnly: true, size: "lg", class: "tool", icon: AppWindow, label: COPY.capture.tools.page, shortcut: KEYS.page, "data-action": "whole-page", "aria-pressed": wholePage && (pageBusy || Boolean(result)), onClick: captureWholePage }), u2(Button, { iconOnly: true, size: "lg", class: "tool", icon: ScanEye, label: COPY.capture.tools.check, shortcut: KEYS.check, "data-action": "check", "aria-pressed": checking, onClick: openCheck }), u2("span", { class: "bar-sep", "aria-hidden": "true" }), u2("button", { type: "button", class: "basket-pill", "data-action": "basket", "aria-pressed": basketOpen && !settingsOpen, "aria-label": COPY.capture.basketLabel(basket.length), "aria-keyshortcuts": KEYS.basket, "data-tip": `Basket ${KEYS.basket}`, onClick: toggleBasket, children: [u2(Icon2, { icon: ShoppingBasket }), COPY.capture.basket(basket.length)] }), u2(Button, { iconOnly: true, size: "lg", class: "tool", icon: X2, label: COPY.common.close, "data-action": "close", onClick: props.onClose })] }), greeting && u2("div", { class: "panel greet", role: "status", "data-part": "greeting", children: [u2(Mascot, { pose: "hello", size: 96 }), u2("div", { class: "stack", children: [u2("p", { class: "t-title", children: COPY.capture.greeting.title }), u2("p", { class: "hint", children: COPY.capture.greeting.body })] })] }), props.modes && idle && !greeting && u2("div", { class: "sub with-luci", role: "note", "data-part": "intro", children: [u2(Mascot, { pose: "peek", size: 96 }), u2("div", { class: "sub-body", children: [u2("p", { class: "hint", children: COPY.devToolbar.intro.capture.body }), u2("p", { class: "keys", children: COPY.devToolbar.intro.capture.keys })] })] }), settingsOpen && (props.modes ? u2(DevSettingsPanel, { currentMode: "capture", uiPrefs, onUiPrefsChange: setUiPrefs, projectInfo: props.projectInfo, store: props.store, captureSettings: settings, onCaptureSettingsChange: changeSettings, debuggerPermission: props.debuggerPermission }) : u2("div", { class: "panel", role: "dialog", "aria-label": COPY.common.menu, "data-part": "settings", children: [u2("div", { class: "menu-head", children: [u2(Mascot, { pose: "sit", size: 96 }), u2("div", { class: "brand-stack", children: [u2("div", { class: "brand-title-line", children: [u2("span", { class: "brand-title", "data-part": "brand-title", children: props.modes ? COPY.capture.devTitle : COPY.capture.title }), u2("span", { class: "brand-sub", "data-part": "brand-sub", children: props.modes ? COPY.capture.devByline : COPY.capture.byline })] }), u2("p", { class: "brand-desc", children: props.modes ? COPY.capture.devDescription : COPY.capture.description }), props.onHelp && u2("div", { class: "row", children: u2(Button, { variant: "secondary", icon: Info, "data-action": "help", onClick: () => props.onHelp(), children: COPY.common.help }) })] }), u2(RepoButton, {})] }), !props.modes && u2("div", { class: "invite", "data-part": "invite", children: [u2("p", { class: "invite-title", children: COPY.capture.invite.title }), u2("p", { class: "invite-body", children: COPY.capture.invite.body }), LUCI_REPO_URL ? u2("a", { class: "btn-link invite-action", "data-action": "take-home", href: LUCI_REPO_URL, target: "_blank", rel: "noopener noreferrer", children: COPY.capture.invite.action }) : props.onHelp && u2(Button, { variant: "link", class: "invite-action", "data-action": "take-home", onClick: () => props.onHelp("take-luci-home"), children: COPY.capture.invite.action })] }), u2("div", { class: "project-card", "data-part": "connected-project", children: [u2("div", { class: "project-header", children: [u2("span", { class: `status-dot ${activeProject?.project ? "online" : "offline"}`, "aria-hidden": "true" }), u2("div", { class: "project-info", children: [u2("span", { class: "project-name", children: activeProject?.name ? `Connected to ${activeProject.name}` : "Not connected to a project" }), activeProject?.project && u2("span", { class: "project-path dim", title: activeProject.project, children: activeProject.project }), !activeProject?.project && u2("span", { class: "project-hint dim", children: ["Run ", u2("code", { children: "luci serve" }), " in your project terminal"] })] })] }), props.projectInfo?.setUrl && u2("div", { class: "project-port-row", children: [u2("label", { class: "dim", for: "luci-bridge-url", children: "Bridge:" }), u2("input", { id: "luci-bridge-url", type: "text", class: "port-input", "data-part": "port-input", value: bridgePortInput, placeholder: "http://127.0.0.1:4545", onChange: (e6) => {
34275
+ return u2("div", { class: "luci luci-theme", "data-theme": uiPrefs.theme, "data-dock": uiPrefs.dock, children: [u2("div", { class: "shell", "data-part": "shell", ref: shellRef, style: shellStyle, ...props.movable ? { "data-movable": "" } : {}, ...moving ? { "data-moving": "" } : {}, ...place ? { "data-h": place.h, "data-v": place.v } : {}, children: [u2("div", { class: "bar", role: "toolbar", "aria-label": props.modes ? COPY.capture.devTitle : COPY.capture.title, ref: barRef, onPointerDown: startMove, onClickCapture: swallowDragClick, children: [u2("button", { type: "button", class: "menu-btn", "data-action": "settings", "aria-label": COPY.common.menu, "aria-pressed": settingsOpen, "aria-keyshortcuts": KEYS.menu, "data-tip": `${COPY.common.menu} ${KEYS.menu}`, onClick: toggleMenu, children: u2(LuciLogo, { size: 48 }) }), props.modes && u2(ModeSwitch, { ...props.modes }), u2("span", { class: "bar-sep", "aria-hidden": "true" }), TOOLS.map((t3) => u2(Button, { iconOnly: true, size: "lg", class: "tool", icon: TOOL_ICONS[t3], label: COPY.capture.tools[t3], shortcut: KEYS[t3], "data-tool": t3, "aria-pressed": currentTool === t3, onClick: () => pickTool(t3) })), u2(Button, { iconOnly: true, size: "lg", class: "tool", icon: AppWindow, label: COPY.capture.tools.page, shortcut: KEYS.page, "data-action": "whole-page", "aria-pressed": wholePage && (pageBusy || Boolean(result)), onClick: captureWholePage }), u2(Button, { iconOnly: true, size: "lg", class: "tool", icon: ScanEye, label: COPY.capture.tools.check, shortcut: KEYS.check, "data-action": "check", "aria-pressed": checking, onClick: openCheck }), u2("span", { class: "bar-sep", "aria-hidden": "true" }), u2("button", { type: "button", class: "basket-pill", "data-action": "basket", "aria-pressed": basketOpen && !settingsOpen, "aria-label": COPY.capture.basketLabel(basket.length), "aria-keyshortcuts": KEYS.basket, "data-tip": `Basket ${KEYS.basket}`, onClick: toggleBasket, children: [u2(Icon2, { icon: ShoppingBasket }), u2("span", { class: "basket-full", children: COPY.capture.basket(basket.length) }), u2("span", { class: "basket-n", children: basket.length })] }), u2(Button, { iconOnly: true, size: "lg", class: "tool", icon: X2, label: COPY.common.close, "data-action": "close", onClick: props.onClose })] }), greeting && u2("div", { class: "panel greet", role: "status", "data-part": "greeting", children: [u2(Mascot, { pose: "hello", size: 96 }), u2("div", { class: "stack", children: [u2("p", { class: "t-title", children: COPY.capture.greeting.title }), u2("p", { class: "hint", children: COPY.capture.greeting.body })] })] }), props.modes && idle && !greeting && u2("div", { class: "sub with-luci", role: "note", "data-part": "intro", children: [u2(Mascot, { pose: "peek", size: 96 }), u2("div", { class: "sub-body", children: [u2("p", { class: "hint", children: COPY.devToolbar.intro.capture.body }), u2("p", { class: "keys", children: COPY.devToolbar.intro.capture.keys })] })] }), settingsOpen && (props.modes ? u2(DevSettingsPanel, { currentMode: "capture", uiPrefs, onUiPrefsChange: setUiPrefs, projectInfo: props.projectInfo, store: props.store, captureSettings: settings, onCaptureSettingsChange: changeSettings, debuggerPermission: props.debuggerPermission }) : u2("div", { class: "panel", role: "dialog", "aria-label": COPY.common.menu, "data-part": "settings", children: [u2("div", { class: "menu-head", children: [u2(Mascot, { pose: "sit", size: 96 }), u2("div", { class: "brand-stack", children: [u2("div", { class: "brand-title-line", children: [u2("span", { class: "brand-title", "data-part": "brand-title", children: props.modes ? COPY.capture.devTitle : COPY.capture.title }), u2("span", { class: "brand-sub", "data-part": "brand-sub", children: props.modes ? COPY.capture.devByline : COPY.capture.byline })] }), u2("p", { class: "brand-desc", children: props.modes ? COPY.capture.devDescription : COPY.capture.description }), props.onHelp && u2("div", { class: "row", children: u2(Button, { variant: "secondary", icon: Info, "data-action": "help", onClick: () => props.onHelp(), children: COPY.common.help }) })] }), u2(RepoButton, {})] }), !props.modes && u2("div", { class: "invite", "data-part": "invite", children: [u2("p", { class: "invite-title", children: COPY.capture.invite.title }), u2("p", { class: "invite-body", children: COPY.capture.invite.body }), LUCI_REPO_URL ? u2("a", { class: "btn-link invite-action", "data-action": "take-home", href: LUCI_REPO_URL, target: "_blank", rel: "noopener noreferrer", children: COPY.capture.invite.action }) : props.onHelp && u2(Button, { variant: "link", class: "invite-action", "data-action": "take-home", onClick: () => props.onHelp("take-luci-home"), children: COPY.capture.invite.action })] }), u2("div", { class: "project-card", "data-part": "connected-project", children: [u2("div", { class: "project-header", children: [u2("span", { class: `status-dot ${activeProject?.project ? "online" : "offline"}`, "aria-hidden": "true" }), u2("div", { class: "project-info", children: [u2("span", { class: "project-name", children: activeProject?.name ? `Connected to ${activeProject.name}` : "Not connected to a project" }), activeProject?.project && u2("span", { class: "project-path dim", title: activeProject.project, children: activeProject.project }), !activeProject?.project && u2("span", { class: "project-hint dim", children: ["Run ", u2("code", { children: "luci serve" }), " in your project terminal"] })] })] }), props.projectInfo?.setUrl && u2("div", { class: "project-port-row", children: [u2("label", { class: "dim", for: "luci-bridge-url", children: "Bridge:" }), u2("input", { id: "luci-bridge-url", type: "text", class: "port-input", "data-part": "port-input", value: bridgePortInput, placeholder: "http://127.0.0.1:4545", onChange: (e6) => {
34213
34276
  const val = e6.currentTarget.value;
34214
34277
  setBridgePortInput(val);
34215
34278
  void props.projectInfo?.setUrl?.(val).then(refreshProject);
@@ -34252,7 +34315,7 @@ button .spinner { display: inline-block; width: 12px; height: 12px; vertical-ali
34252
34315
  const f6 = e6.currentTarget.files?.[0];
34253
34316
  if (f6)
34254
34317
  void readImageFile(f6, f6.name);
34255
- } }), u2("button", { type: "button", class: "btn-secondary", "data-action": "choose-image", disabled: imageBusy, onClick: () => imageInput.current?.click(), children: "Choose an image" })] }), u2("p", { class: "keys", children: pixelMode || imageMode ? "Esc: back to Element" : "\u2191 \u2193 after clicking: wider or narrower \xB7 Esc: stop" })] })] }), !settingsOpen && picking && notice && u2("div", { class: "panel", role: "status", children: u2("p", { class: "error", "data-part": "notice", children: notice }) }), !settingsOpen && checkOpen && !basketOpen && u2(DesignChooser, { ...props.designs ? { designs: props.designs } : {}, basket, onChoose: chooseDesign, onCancel: endCheck }), !settingsOpen && !picking && !basketOpen && checkOutcome && checkDesign && picked && u2(CheckResultPanel, { outcome: checkOutcome, watching: watchCheck, onWatch: (on) => {
34318
+ } }), u2("button", { type: "button", class: "btn-secondary", "data-action": "choose-image", disabled: imageBusy, onClick: () => imageInput.current?.click(), children: "Choose an image" })] }), u2("p", { class: "keys", children: pixelMode || imageMode ? "Esc: back to Element" : touchScreen(win) ? "Tap once to see an element, again to take it" : "\u2191 \u2193 after clicking: wider or narrower \xB7 Esc: stop" })] })] }), !settingsOpen && picking && notice && u2("div", { class: "panel", role: "status", children: u2("p", { class: "error", "data-part": "notice", children: notice }) }), !settingsOpen && checkOpen && !basketOpen && u2(DesignChooser, { ...props.designs ? { designs: props.designs } : {}, basket, onChoose: chooseDesign, onCancel: endCheck }), !settingsOpen && !picking && !basketOpen && checkOutcome && checkDesign && picked && u2(CheckResultPanel, { outcome: checkOutcome, watching: watchCheck, onWatch: (on) => {
34256
34319
  setWatchCheck(on);
34257
34320
  setAutoNote(null);
34258
34321
  if (!on)
@@ -34275,13 +34338,18 @@ button .spinner { display: inline-block; width: 12px; height: 12px; vertical-ali
34275
34338
  openBasket();
34276
34339
  else
34277
34340
  void addCurrent();
34278
- } }), tool && u2(Button, { variant: "secondary", size: "md", iconOnly: true, tipAbove: true, icon: TOOL_ICONS[tool], "data-action": "pick-again", label: COPY.capture.actions.pickAgain, onClick: () => startPicking(tool) }), props.saveToProject && output2 && u2(SaveButton, { save: saveAll, projectName: activeProject?.name }, output2.fileName), props.makeRule && output2 && output2.capture.meta.scope === "component" && u2(RuleButton, { make: () => props.makeRule(output2.fileName, markdown) }, `rule ${output2.fileName}`)] })] })] }) : u2(S, { children: [u2("div", { class: "greet", children: [u2(Mascot, { pose: "annoyed", size: 96 }), u2("p", { class: "error", "data-part": "error", children: result.message })] }), tool && u2("div", { class: "row", children: u2(Button, { variant: "secondary", icon: TOOL_ICONS[tool], "data-action": "pick-again", onClick: () => startPicking(tool), children: COPY.capture.actions.pickAgain }) })] }) })] }), picking && tool && u2("div", { class: "pick-layer", "data-part": "pick-layer", onPointerMove: (e6) => pickMove(e6.clientX, e6.clientY), onPointerDown: (e6) => {
34341
+ } }), tool && u2(Button, { variant: "secondary", size: "md", iconOnly: true, tipAbove: true, icon: TOOL_ICONS[tool], "data-action": "pick-again", label: COPY.capture.actions.pickAgain, onClick: () => startPicking(tool) }), props.saveToProject && output2 && u2(SaveButton, { save: saveAll, projectName: activeProject?.name }, output2.fileName), props.makeRule && output2 && output2.capture.meta.scope === "component" && u2(RuleButton, { make: () => props.makeRule(output2.fileName, markdown) }, `rule ${output2.fileName}`)] })] })] }) : u2(S, { children: [u2("div", { class: "greet", children: [u2(Mascot, { pose: "annoyed", size: 96 }), u2("p", { class: "error", "data-part": "error", children: result.message })] }), tool && u2("div", { class: "row", children: u2(Button, { variant: "secondary", icon: TOOL_ICONS[tool], "data-action": "pick-again", onClick: () => startPicking(tool), children: COPY.capture.actions.pickAgain }) })] }) })] }), picking && tool && u2("div", { class: "pick-layer", "data-part": "pick-layer", onPointerMove: (e6) => {
34342
+ if (e6.pointerType !== "touch")
34343
+ pickMove(e6.clientX, e6.clientY);
34344
+ }, onPointerDown: (e6) => {
34279
34345
  e6.preventDefault();
34280
34346
  e6.currentTarget.setPointerCapture?.(e6.pointerId);
34281
34347
  pickDown(e6.clientX, e6.clientY);
34282
34348
  }, onPointerUp: (e6) => {
34283
34349
  e6.preventDefault();
34284
- pickUp(e6.clientX, e6.clientY);
34350
+ pickUp(e6.clientX, e6.clientY, e6.pointerType === "touch");
34351
+ }, onPointerCancel: () => {
34352
+ drag.current = null;
34285
34353
  }, onWheel: (e6) => pickWheel(e6), onContextMenu: (e6) => e6.preventDefault() }), pixelMode && u2(S, { children: [u2("div", { class: "pixel-layer", "data-part": "pixel-layer", onPointerMove: (e6) => setPixelHover(samplePixel(e6.clientX, e6.clientY)), onPointerLeave: () => setPixelHover(null), onClick: (e6) => pickPixelAt(e6.clientX, e6.clientY) }), pixelHover && shot.current && (() => {
34286
34354
  const left = pixelHover.x + 20 + LOUPE_PX > win.innerWidth ? pixelHover.x - 20 - LOUPE_PX : pixelHover.x + 20;
34287
34355
  const top = pixelHover.y + 20 + LOUPE_PX + 36 > win.innerHeight ? pixelHover.y - 20 - LOUPE_PX - 36 : pixelHover.y + 20;
@@ -35150,6 +35218,8 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
35150
35218
  left: `${Math.max(12, Math.min(x3, win.innerWidth - 376))}px`,
35151
35219
  top: `${Math.max(12, Math.min(y3 + 12, win.innerHeight - 320))}px`
35152
35220
  });
35221
+ var NARROW = 640;
35222
+ var noteAt = (win, x3, y3) => win.innerWidth < NARROW ? {} : popAt(win, x3, y3);
35153
35223
  var PAUSE_CSS = "*, *::before, *::after { animation-play-state: paused !important; transition: none !important; caret-color: transparent !important; }";
35154
35224
  function copyScope(items2) {
35155
35225
  const fresh = items2.filter((i3) => i3.status === "pending").length;
@@ -35163,6 +35233,8 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
35163
35233
  const [error62, setError] = d2(null);
35164
35234
  const [annotating, setAnnotating] = d2(false);
35165
35235
  const [candidate, setCandidate] = d2(null);
35236
+ const [tapped, setTapped] = d2(false);
35237
+ const touchPress = A2(false);
35166
35238
  const [draft, setDraft] = d2(null);
35167
35239
  const [openRef, setOpenRef] = d2(null);
35168
35240
  const [panel, setPanel] = d2(null);
@@ -35250,6 +35322,7 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
35250
35322
  else if (annotating) {
35251
35323
  setAnnotating(false);
35252
35324
  setCandidate(null);
35325
+ setTapped(false);
35253
35326
  } else
35254
35327
  return;
35255
35328
  e6.preventDefault();
@@ -35288,13 +35361,40 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
35288
35361
  setOpenRef(null);
35289
35362
  setPanel(null);
35290
35363
  setSelection(null);
35364
+ setTapped(false);
35365
+ if (touchPress.current)
35366
+ setCandidate(null);
35291
35367
  setDraft({ el, at: { x: x3, y: y3 }, ...selectedText ? { selectedText } : {} });
35292
35368
  };
35293
- const pickMove = (e6) => setCandidate(elementAt(doc, e6.clientX, e6.clientY));
35369
+ const pickDown = (e6) => {
35370
+ touchPress.current = e6.pointerType === "touch";
35371
+ };
35372
+ const pickMove = (e6) => {
35373
+ if (e6.pointerType !== "touch") {
35374
+ setCandidate(elementAt(doc, e6.clientX, e6.clientY));
35375
+ setTapped(false);
35376
+ }
35377
+ };
35378
+ const pickLeave = (e6) => {
35379
+ if (e6.pointerType !== "touch" && !tapped)
35380
+ setCandidate(null);
35381
+ };
35294
35382
  const pickClick = (e6) => {
35295
35383
  const el = elementAt(doc, e6.clientX, e6.clientY);
35296
- if (el)
35297
- startDraft(el, e6.clientX, e6.clientY);
35384
+ if (!el)
35385
+ return;
35386
+ if (touchPress.current && !(tapped && el === candidate)) {
35387
+ setCandidate(el);
35388
+ setTapped(true);
35389
+ return;
35390
+ }
35391
+ startDraft(el, e6.clientX, e6.clientY);
35392
+ };
35393
+ const noteTapped = () => {
35394
+ if (!candidate)
35395
+ return;
35396
+ const r4 = candidate.getBoundingClientRect();
35397
+ startDraft(candidate, r4.left + r4.width / 2, r4.bottom);
35298
35398
  };
35299
35399
  const pickWheel = (e6) => {
35300
35400
  const under = elementAt(doc, e6.clientX, e6.clientY);
@@ -35375,6 +35475,7 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
35375
35475
  const toggleAnnotate = () => {
35376
35476
  setAnnotating((a3) => !a3);
35377
35477
  setCandidate(null);
35478
+ setTapped(false);
35378
35479
  setDraft(null);
35379
35480
  };
35380
35481
  useShortcuts(doc, [
@@ -35389,7 +35490,7 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
35389
35490
  setChecking(false);
35390
35491
  setError(why);
35391
35492
  });
35392
- }, children: checking ? u2(S, { children: [u2(ButtonSpinner, {}), "Checking\u2026"] }) : "This browser" }), u2(Button, { iconOnly: true, size: "lg", class: "tool", icon: X2, label: "Close Luci", "data-action": "close", onClick: props.onClose })] }), copyMenu && u2("div", { class: "menu", role: "menu", "data-part": "copy-menu", children: [u2("button", { type: "button", role: "menuitem", "data-copy": "new", disabled: !fresh, onClick: () => void copyPrompt(false), children: ["Only new notes (", fresh, ")", u2("span", { class: "dim", children: "Notes not sent to the agent yet" })] }), u2("button", { type: "button", role: "menuitem", "data-copy": "open", disabled: !openCount, onClick: () => void copyPrompt(true), children: ["All notes not done (", openCount, ")", u2("span", { class: "dim", children: "Sends earlier notes again too" })] })] }), !annotating && !draft && !paused && panel === null && !open2 && !copyMenu && u2("div", { class: "sub with-luci", role: "note", "data-part": "intro", children: [u2(Mascot, { pose: "peek", size: 96 }), u2("div", { class: "sub-body", children: [u2("p", { class: "hint", children: COPY.devToolbar.intro.feedback.body }), u2("p", { class: "keys", children: COPY.devToolbar.intro.feedback.keys })] })] }), annotating && !draft && u2("div", { class: "sub with-luci", role: "note", "data-part": "hint", children: [u2(Mascot, { pose: "note", size: 96 }), u2("div", { class: "sub-body", children: u2("p", { class: "hint", children: "Click an element to leave a note. Esc stops. Then select text to note words." }) })] }), paused && !(annotating && !draft) && u2("div", { class: "sub with-luci", role: "status", "data-part": "paused", children: [u2(Mascot, { pose: "turned", size: 96, animated: false }), u2("div", { class: "sub-body", children: [u2("p", { class: "hint", children: "Page paused. Its animations are frozen." }), u2("p", { class: "keys", children: [FEEDBACK_KEYS.pause, ": resume"] })] })] }), annotating && !draft && u2("div", { class: "pick-layer", "data-part": "pick-layer", onPointerMove: pickMove, onClick: pickClick, onWheel: pickWheel, onPointerLeave: () => setCandidate(null) }), hoverRect && u2(S, { children: [u2("div", { class: "highlight", style: { left: `${hoverRect.left}px`, top: `${hoverRect.top}px`, width: `${hoverRect.width}px`, height: `${hoverRect.height}px` } }), u2("div", { class: "label", "data-part": "hover-label", style: { left: `${hoverRect.left}px`, top: `${Math.max(0, hoverRect.top - 24)}px` }, children: hoverName })] }), selection && !draft && u2("button", { type: "button", class: "chip-add btn-primary", "data-action": "add-selection", style: popAt(win, selection.x, selection.y - 8), onClick: () => startDraft(selection.el, selection.x, selection.y, selection.text), children: "Add feedback" }), here.map((item) => {
35493
+ }, children: checking ? u2(S, { children: [u2(ButtonSpinner, {}), "Checking\u2026"] }) : "This browser" }), u2(Button, { iconOnly: true, size: "lg", class: "tool", icon: X2, label: "Close Luci", "data-action": "close", onClick: props.onClose })] }), copyMenu && u2("div", { class: "menu", role: "menu", "data-part": "copy-menu", children: [u2("button", { type: "button", role: "menuitem", "data-copy": "new", disabled: !fresh, onClick: () => void copyPrompt(false), children: ["Only new notes (", fresh, ")", u2("span", { class: "dim", children: "Notes not sent to the agent yet" })] }), u2("button", { type: "button", role: "menuitem", "data-copy": "open", disabled: !openCount, onClick: () => void copyPrompt(true), children: ["All notes not done (", openCount, ")", u2("span", { class: "dim", children: "Sends earlier notes again too" })] })] }), !annotating && !draft && !paused && panel === null && !open2 && !copyMenu && u2("div", { class: "sub with-luci", role: "note", "data-part": "intro", children: [u2(Mascot, { pose: "peek", size: 96 }), u2("div", { class: "sub-body", children: [u2("p", { class: "hint", children: COPY.devToolbar.intro.feedback.body }), u2("p", { class: "keys", children: COPY.devToolbar.intro.feedback.keys })] })] }), annotating && !draft && u2("div", { class: "sub with-luci", role: "note", "data-part": "hint", children: [u2(Mascot, { pose: "note", size: 96 }), u2("div", { class: "sub-body", children: tapped && candidate ? u2(S, { children: [u2("p", { class: "hint", children: u2("strong", { "data-part": "tapped-name", children: hoverName }) }), u2("div", { class: "row", children: [u2("button", { type: "button", class: "btn-primary", "data-action": "note-tapped", onClick: noteTapped, children: "Add note" }), u2("button", { type: "button", class: "btn-secondary", "data-action": "tap-parent", disabled: !parentOf2(candidate) || parentOf2(candidate) === doc.documentElement, onClick: () => setCandidate(parentOf2(candidate)), children: "Parent" })] })] }) : u2("p", { class: "hint", children: touchScreen(win) ? "Tap an element to select it, then add your note. Then select text to note words." : "Click an element to leave a note. Esc stops. Then select text to note words." }) })] }), paused && !(annotating && !draft) && u2("div", { class: "sub with-luci", role: "status", "data-part": "paused", children: [u2(Mascot, { pose: "turned", size: 96, animated: false }), u2("div", { class: "sub-body", children: [u2("p", { class: "hint", children: "Page paused. Its animations are frozen." }), u2("p", { class: "keys", children: [FEEDBACK_KEYS.pause, ": resume"] })] })] }), annotating && !draft && u2("div", { class: "pick-layer", "data-part": "pick-layer", onPointerDown: pickDown, onPointerMove: pickMove, onClick: pickClick, onWheel: pickWheel, onPointerLeave: pickLeave }), hoverRect && u2(S, { children: [u2("div", { class: "highlight", style: { left: `${hoverRect.left}px`, top: `${hoverRect.top}px`, width: `${hoverRect.width}px`, height: `${hoverRect.height}px` } }), u2("div", { class: "label", "data-part": "hover-label", style: { left: `${hoverRect.left}px`, top: `${Math.max(0, hoverRect.top - 24)}px` }, children: hoverName })] }), selection && !draft && u2("button", { type: "button", class: "chip-add btn-primary", "data-action": "add-selection", style: popAt(win, selection.x, selection.y - 8), onClick: () => startDraft(selection.el, selection.x, selection.y, selection.text), children: "Add feedback" }), here.map((item) => {
35393
35494
  const pos = markerPos(item);
35394
35495
  if (!pos)
35395
35496
  return null;
@@ -35398,9 +35499,9 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
35398
35499
  setOpenRef((r4) => r4 === item.ref ? null : item.ref);
35399
35500
  setDraft(null);
35400
35501
  }, children: [n2, STATUS_MARK[shownStatus(item.status)]] });
35401
- }), draft && u2("div", { class: "pop", role: "dialog", "aria-label": "New feedback", "data-part": "note-form", style: popAt(win, draft.at.x, draft.at.y), children: [u2("h3", { children: draft.selectedText ? "Feedback on the selected text" : `Feedback on ${nameOf2(draft.el)}` }), draft.selectedText && u2("p", { class: "quote", "data-part": "selected", children: ["\u201C", draft.selectedText, "\u201D"] }), u2(NoteForm, { submitLabel: "Save", onSubmit: save, onCancel: () => setDraft(null) }, `${draft.at.x},${draft.at.y}`)] }), open2 && (() => {
35502
+ }), draft && u2("div", { class: "pop", role: "dialog", "aria-label": "New feedback", "data-part": "note-form", style: noteAt(win, draft.at.x, draft.at.y), children: [u2("h3", { children: draft.selectedText ? "Feedback on the selected text" : `Feedback on ${nameOf2(draft.el)}` }), draft.selectedText && u2("p", { class: "quote", "data-part": "selected", children: ["\u201C", draft.selectedText, "\u201D"] }), u2(NoteForm, { submitLabel: "Save", onSubmit: save, onCancel: () => setDraft(null) }, `${draft.at.x},${draft.at.y}`)] }), open2 && (() => {
35402
35503
  const pos = markerPos(open2);
35403
- return u2("div", { class: "pop", role: "dialog", "aria-label": `Note ${open2.ref}`, "data-part": "item", "data-ref": open2.ref, style: popAt(win, pos?.x ?? 24, pos?.y ?? 24), children: u2(NoteDetails, { item: open2, backend, act, onClose: () => setOpenRef(null) }, open2.ref) });
35504
+ return u2("div", { class: "pop", role: "dialog", "aria-label": `Note ${open2.ref}`, "data-part": "item", "data-ref": open2.ref, style: noteAt(win, pos?.x ?? 24, pos?.y ?? 24), children: u2(NoteDetails, { item: open2, backend, act, onClose: () => setOpenRef(null) }, open2.ref) });
35404
35505
  })(), panel === "items" && u2("div", { class: "panel", role: "dialog", "aria-label": "Feedback notes", "data-part": "items", children: prompt ? u2(S, { children: [u2("h2", { children: prompt.text ? `Prompt with ${plural4(prompt.refs.length, "note")}` : "Nothing to send" }), prompt.text ? u2(S, { children: [u2("p", { class: "hint", "data-part": "copied", children: [prompt.copied ? "Copied. Paste it to your agent." : "Copy it below. Paste it to your agent.", backend.kind === "project" ? " Your agent can also fetch it with get_feedback_prompt." : "", " These notes are now marked as sent."] }), u2("pre", { "data-part": "prompt", children: prompt.text })] }) : u2(EmptyState, { title: "Every note is done.", pose: "content", part: "all-done" }), u2("div", { class: "row", children: u2("button", { type: "button", "data-action": "prompt-back", onClick: () => setPrompt(null), children: "Back to the notes" }) })] }) : u2(NotesPanel, { items: items2, route, backend, act, scope, onCopy: () => void copyPrompt(scope.includeSent), onShow: (ref2) => {
35405
35506
  setPanel(null);
35406
35507
  setOpenRef(ref2);
@@ -35425,7 +35526,7 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
35425
35526
  return u2(S, { children: [u2("textarea", { ref: ref2, "data-part": "comment", placeholder: "What should change?", value: comment, onInput: (e6) => setComment(e6.currentTarget.value), onKeyDown: (e6) => {
35426
35527
  if (e6.key === "Enter" && (e6.metaKey || e6.ctrlKey))
35427
35528
  void submit();
35428
- } }), u2("div", { class: "row", children: [u2("label", { children: ["Intent ", u2(Select, { "data-part": "intent", value: intent, onChange: (e6) => setIntent(e6.currentTarget.value), children: FEEDBACK_INTENTS.map((i3) => u2("option", { value: i3, children: i3 })) })] }), u2("label", { children: ["Priority ", u2(Select, { "data-part": "priority", value: priority, onChange: (e6) => setPriority(e6.currentTarget.value), children: FEEDBACK_PRIORITIES.map((p6) => u2("option", { value: p6, children: p6 })) })] })] }), u2("div", { class: "row", children: [u2("button", { type: "button", class: "btn-primary", "data-action": "save-note", disabled: !comment.trim() || busy, onClick: () => void submit(), children: busy ? u2(S, { children: [u2(ButtonSpinner, {}), "Saving\u2026"] }) : props.submitLabel }), u2("button", { type: "button", "data-action": "cancel-note", onClick: props.onCancel, children: "Cancel" })] })] });
35529
+ } }), u2("div", { class: "note-choice", children: [u2("span", { class: "field-label", "aria-hidden": "true", children: "Intent" }), u2("div", { class: "seg", role: "group", "aria-label": "Intent", "data-part": "intent", children: FEEDBACK_INTENTS.map((i3) => u2("button", { type: "button", "data-value": i3, "aria-pressed": intent === i3, onClick: () => setIntent(i3), children: i3 })) })] }), u2("div", { class: "note-choice", children: [u2("span", { class: "field-label", "aria-hidden": "true", children: "Priority" }), u2("div", { class: "seg", role: "group", "aria-label": "Priority", "data-part": "priority", children: FEEDBACK_PRIORITIES.map((p6) => u2("button", { type: "button", "data-value": p6, "aria-pressed": priority === p6, onClick: () => setPriority(p6), children: p6 })) })] }), u2("div", { class: "row", children: [u2("button", { type: "button", class: "btn-primary", "data-action": "save-note", disabled: !comment.trim() || busy, onClick: () => void submit(), children: busy ? u2(S, { children: [u2(ButtonSpinner, {}), "Saving\u2026"] }) : props.submitLabel }), u2("button", { type: "button", "data-action": "cancel-note", onClick: props.onCancel, children: "Cancel" })] })] });
35429
35530
  }
35430
35531
  function NoteDetails(props) {
35431
35532
  const { item, backend, act } = props;
@@ -35505,7 +35606,17 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
35505
35606
 
35506
35607
  /* The note popover */
35507
35608
  .pop { position: fixed; z-index: 2147483647; box-sizing: border-box; width: min(360px, calc(100vw - 24px)); max-width: calc(100vw - 24px); display: flex; flex-direction: column; gap: var(--luci-space-12); padding: var(--luci-space-16);
35508
- background: var(--luci-color-surface); border-radius: var(--luci-radius-lg); box-shadow: var(--luci-shadow-float); overflow-wrap: break-word; word-break: break-word; }
35609
+ background: var(--luci-color-surface); border-radius: var(--luci-radius-lg); box-shadow: var(--luci-elevation); overflow-wrap: break-word; word-break: break-word; }
35610
+ /* Intent and priority: a label over its segmented choice */
35611
+ .note-choice { display: flex; flex-direction: column; gap: var(--luci-space-4); }
35612
+ .note-choice .seg { flex-wrap: wrap; }
35613
+ /* On a phone a note is a sheet above the bar, full width; cards under it step aside */
35614
+ @media (max-width: 639px) {
35615
+ .pop { left: 8px; right: 8px; width: auto; max-width: none; top: auto;
35616
+ bottom: calc(var(--luci-y, 12px) + var(--luci-bar-h, 64px) + 8px);
35617
+ max-height: calc(100vh - var(--luci-y, 12px) - var(--luci-bar-h, 64px) - 24px); overflow-y: auto; overscroll-behavior: contain; }
35618
+ .luci-theme:has(> .pop) > .sub { display: none; }
35619
+ }
35509
35620
  .pop h3 { margin: 0; font: var(--luci-type-heading-weight) var(--luci-type-heading-size)/var(--luci-type-heading-line) var(--luci-font-body); }
35510
35621
  .pop textarea { min-height: 72px; }
35511
35622
  .pop .quote, .details .quote { margin: 0; padding: var(--luci-space-8) var(--luci-space-12); border-radius: var(--luci-radius-md); background: var(--luci-color-surface-sunken); color: var(--luci-color-ink-secondary); overflow-wrap: break-word; word-break: break-word; }
@@ -35527,7 +35638,7 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
35527
35638
  .split > button:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
35528
35639
  .luci-theme .bar .split .caret { --luci-btn-h: 48px; width: 28px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
35529
35640
  .menu { position: fixed; top: 64px; right: var(--luci-space-12); z-index: 2147483647; display: flex; flex-direction: column; gap: 2px; padding: var(--luci-space-8); min-width: 280px;
35530
- background: var(--luci-color-surface-raised); border-radius: var(--luci-radius-md); box-shadow: var(--luci-shadow-float); }
35641
+ background: var(--luci-color-surface-raised); border-radius: var(--luci-radius-md); box-shadow: var(--luci-elevation); }
35531
35642
  .luci-theme[data-dock="left"] .menu { right: auto; left: var(--luci-space-12); }
35532
35643
  .luci-theme .menu button { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 48px; padding: var(--luci-space-8) var(--luci-space-12);
35533
35644
  border-radius: var(--luci-radius-sm); text-align: left; white-space: normal; }
@@ -36667,6 +36778,7 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
36667
36778
  const [scale, setScale] = d2(null);
36668
36779
  const [selecting, setSelecting] = d2(true);
36669
36780
  const [hovered, setHovered] = d2(null);
36781
+ const placeTouch = A2(false);
36670
36782
  const [selected, setSelected] = d2(null);
36671
36783
  const [drag, setDrag] = d2(null);
36672
36784
  const [drop, setDrop] = d2(null);
@@ -36989,7 +37101,7 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
36989
37101
  const insBox = selIns ? p6.insertRect(selIns.id) : null;
36990
37102
  const placeButtons = (anchor2, onPlace, current) => u2("div", { class: "row", "data-part": "place-buttons", children: ["before", "after", ...LEAF.test(anchor2.tagName) ? [] : ["start", "end"]].map((pos) => u2("button", { type: "button", "data-place": pos, "aria-pressed": current === pos, onClick: () => onPlace(pos), children: { before: "Before", after: "After", start: "Inside, start", end: "Inside, end" }[pos] })) });
36991
37103
  const catalogView = () => u2("div", { class: "stack", "data-part": "insert-catalog", children: [u2("h2", { children: "Insert" }), u2("p", { class: "dim", children: "Pick what to add. Then click where it goes." }), u2(PartPicker, { sources, onChoose: choose })] });
36992
- const placingView = (pl) => u2("div", { class: "stack", "data-part": "placing", children: [u2("h2", { children: ["Place: ", partName2(pl.what)] }), u2("div", { class: "luci-hint", "data-part": "placing-hint", children: [u2(Mascot, { pose: "place", size: 96 }), u2("p", { class: "hint", children: "Click where it goes. Near an edge: before or after. The middle of a card or list: inside, at the end. Esc cancels." })] }), selected && u2("div", { class: "stack", children: [u2("span", { children: ["Or next to ", nameWithComponent(selected), ":"] }), placeButtons(selected, (pos) => placeAt(selected, pos))] }), u2("div", { class: "row", children: u2("button", { type: "button", "data-action": "cancel-insert", onClick: () => {
37104
+ const placingView = (pl) => u2("div", { class: "stack", "data-part": "placing", children: [u2("h2", { children: ["Place: ", partName2(pl.what)] }), u2("div", { class: "luci-hint", "data-part": "placing-hint", children: [u2(Mascot, { pose: "place", size: 96 }), u2("p", { class: "hint", children: touchScreen(doc.defaultView ?? window) ? "Tap where it goes to see it there, then tap again to place it. Near an edge: before or after. The middle of a card or list: inside, at the end." : "Click where it goes. Near an edge: before or after. The middle of a card or list: inside, at the end. Esc cancels." })] }), selected && u2("div", { class: "stack", children: [u2("span", { children: ["Or next to ", nameWithComponent(selected), ":"] }), placeButtons(selected, (pos) => placeAt(selected, pos))] }), u2("div", { class: "row", children: u2("button", { type: "button", "data-action": "cancel-insert", onClick: () => {
36993
37105
  setPlacing(null);
36994
37106
  setPlaceHover(null);
36995
37107
  }, children: "Cancel" }) })] });
@@ -37085,15 +37197,27 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
37085
37197
  } }), u2(Button, { iconOnly: true, size: "lg", class: "tool", icon: RotateCcw, label: "Reset", tip: "Back to what your code has", "data-action": "reset", disabled: !plannedCount && !p6.canUndo, onClick: () => {
37086
37198
  p6.reset();
37087
37199
  bump();
37088
- } }), u2(Button, { iconOnly: true, size: "lg", variant: "primary", class: "tool", icon: ClipboardCopy, "data-action": "copy-layout-prompt", disabled: !plannedCount || Boolean(busy), loading: busy === "copy", badge: plannedCount || void 0, label: busy === "copy" ? "Copying" : `Copy prompt${plannedCount ? ` (${plannedCount})` : ""}`, tip: "The page goes back as it was", onClick: () => void copyPrompt() })] }), u2("span", { class: `conn ${backend.kind}`, "data-part": "connection", title: backend.kind === "project" ? "Notes are saved in the project" : props.connectNote ?? "", children: backend.kind === "project" ? "Project" : "This browser" }), u2(Button, { iconOnly: true, size: "lg", class: "tool", icon: X2, label: "Close Luci", "data-action": "close", onClick: props.onClose })] }), settingsOpen && (props.modes ? u2(DevSettingsPanel, { currentMode: "layout", uiPrefs, onUiPrefsChange: setUiPrefs, projectInfo: props.projectInfo, store: props.store }) : u2("div", { class: "panel", role: "dialog", "aria-label": "Layout settings", "data-part": "settings", children: [u2("div", { class: "settings-head", children: [u2("div", { class: "row", style: { alignItems: "center", gap: "8px" }, children: u2("h2", { children: "Settings" }) }), u2(RepoButton, {})] }), u2(AppearanceControls, { prefs: uiPrefs, onChange: setUiPrefs, movable: true, moved: Boolean(uiPrefs.devPlace) })] })), sketching && scale && u2(Sketch, { doc, backend, base: scale.base, onClose: () => setSketching(false) }), !sketching && u2(S, { children: [!scale && u2("div", { class: "sub", children: u2(Loading, { text: "Reading the page's spacing scale\u2026", part: "scale-loading", sleep: true }) }), result?.why && u2("div", { class: "sub", role: "status", "data-part": "reset-note", children: u2("p", { class: "hint", children: ["Preview cleared. Your plan is safe in the ", result.prompt ? "copied prompt" : "Feedback notes", "."] }) }), scale && selecting && !selected && !result && !catalog && !placing && u2("div", { class: "sub with-luci", role: "note", "data-part": "hint", children: [u2(Mascot, { pose: "arrange", size: 96 }), u2("div", { class: "sub-body", children: u2("p", { class: "hint", children: ["Click an element. Drag its handles to resize, \u283F to move it. Values snap to this page's ", scale.base, "px scale. Your code stays as it is."] }) })] }), scale && placing && !drag && u2("div", { class: "pick-layer", "data-part": "place-layer", onPointerMove: (e6) => {
37200
+ } }), u2(Button, { iconOnly: true, size: "lg", variant: "primary", class: "tool", icon: ClipboardCopy, "data-action": "copy-layout-prompt", disabled: !plannedCount || Boolean(busy), loading: busy === "copy", badge: plannedCount || void 0, label: busy === "copy" ? "Copying" : `Copy prompt${plannedCount ? ` (${plannedCount})` : ""}`, tip: "The page goes back as it was", onClick: () => void copyPrompt() })] }), u2("span", { class: `conn ${backend.kind}`, "data-part": "connection", title: backend.kind === "project" ? "Notes are saved in the project" : props.connectNote ?? "", children: backend.kind === "project" ? "Project" : "This browser" }), u2(Button, { iconOnly: true, size: "lg", class: "tool", icon: X2, label: "Close Luci", "data-action": "close", onClick: props.onClose })] }), settingsOpen && (props.modes ? u2(DevSettingsPanel, { currentMode: "layout", uiPrefs, onUiPrefsChange: setUiPrefs, projectInfo: props.projectInfo, store: props.store }) : u2("div", { class: "panel", role: "dialog", "aria-label": "Layout settings", "data-part": "settings", children: [u2("div", { class: "settings-head", children: [u2("div", { class: "row", style: { alignItems: "center", gap: "8px" }, children: u2("h2", { children: "Settings" }) }), u2(RepoButton, {})] }), u2(AppearanceControls, { prefs: uiPrefs, onChange: setUiPrefs, movable: true, moved: Boolean(uiPrefs.devPlace) })] })), sketching && scale && u2(Sketch, { doc, backend, base: scale.base, onClose: () => setSketching(false) }), !sketching && u2(S, { children: [!scale && u2("div", { class: "sub", children: u2(Loading, { text: "Reading the page's spacing scale\u2026", part: "scale-loading", sleep: true }) }), result?.why && u2("div", { class: "sub", role: "status", "data-part": "reset-note", children: u2("p", { class: "hint", children: ["Preview cleared. Your plan is safe in the ", result.prompt ? "copied prompt" : "Feedback notes", "."] }) }), scale && selecting && !selected && !result && !catalog && !placing && u2("div", { class: "sub with-luci", role: "note", "data-part": "hint", children: [u2(Mascot, { pose: "arrange", size: 96 }), u2("div", { class: "sub-body", children: u2("p", { class: "hint", children: [touchScreen(doc.defaultView ?? window) ? "Tap an element to see it, again to select it." : "Click an element.", " Drag its handles to resize, \u283F to move it. Values snap to this page's ", scale.base, "px scale. Your code stays as it is."] }) })] }), scale && placing && !drag && u2("div", { class: "pick-layer", "data-part": "place-layer", onPointerDown: (e6) => {
37201
+ placeTouch.current = e6.pointerType === "touch";
37202
+ }, onPointerMove: (e6) => {
37203
+ if (e6.pointerType === "touch")
37204
+ return;
37089
37205
  const el = elementAt(doc, e6.clientX, e6.clientY);
37090
37206
  setPlaceHover(el && !isLuciUi(el) ? placeTarget(doc, el, e6.clientX, e6.clientY) : null);
37091
37207
  }, onClick: (e6) => {
37092
37208
  const el = elementAt(doc, e6.clientX, e6.clientY);
37093
37209
  const t3 = el && !isLuciUi(el) ? placeTarget(doc, el, e6.clientX, e6.clientY) : null;
37094
- if (t3)
37095
- placeAt(t3.anchor, t3.position);
37096
- }, onWheel: pickWheel, onPointerLeave: () => setPlaceHover(null) }), placing && placeHover && u2(S, { children: [placeHover.line && u2("div", { class: "drop-line", "data-part": "place-line", style: { left: `${placeHover.line.left}px`, top: `${placeHover.line.top}px`, width: `${placeHover.line.width}px`, height: `${placeHover.line.height}px` } }), placeHover.outline && u2("div", { class: "highlight inside", "data-part": "place-inside", style: { left: `${placeHover.outline.left}px`, top: `${placeHover.outline.top}px`, width: `${placeHover.outline.width}px`, height: `${placeHover.outline.height}px` } }), (() => {
37210
+ if (!t3)
37211
+ return;
37212
+ if (placeTouch.current && !(placeHover && placeHover.anchor === t3.anchor && placeHover.position === t3.position)) {
37213
+ setPlaceHover(t3);
37214
+ return;
37215
+ }
37216
+ placeAt(t3.anchor, t3.position);
37217
+ }, onWheel: pickWheel, onPointerLeave: (e6) => {
37218
+ if (e6.pointerType !== "touch")
37219
+ setPlaceHover(null);
37220
+ } }), placing && placeHover && u2(S, { children: [placeHover.line && u2("div", { class: "drop-line", "data-part": "place-line", style: { left: `${placeHover.line.left}px`, top: `${placeHover.line.top}px`, width: `${placeHover.line.width}px`, height: `${placeHover.line.height}px` } }), placeHover.outline && u2("div", { class: "highlight inside", "data-part": "place-inside", style: { left: `${placeHover.outline.left}px`, top: `${placeHover.outline.top}px`, width: `${placeHover.outline.width}px`, height: `${placeHover.outline.height}px` } }), (() => {
37097
37221
  const r4 = placeHover.line ?? placeHover.outline;
37098
37222
  return u2("div", { class: "label", "data-part": "place-label", style: { left: `${Math.max(2, r4.left)}px`, top: `${Math.max(0, r4.top - 24)}px` }, children: [partName2(placing.what), ": ", POSITION_TEXT[placeHover.position], " ", nameWithComponent(placeHover.anchor)] });
37099
37223
  })()] }), p6.inserts().map((ins) => {
@@ -37105,11 +37229,24 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
37105
37229
  const above = insBox.top >= 34;
37106
37230
  const y3 = above ? insBox.top - 32 : insBox.bottom + 6;
37107
37231
  return u2(S, { children: [u2("button", { type: "button", class: "handle h-move", "data-handle": "insert-move", title: "Drag to move it among its neighbors", style: { left: `${Math.max(2, insBox.left)}px`, top: `${y3}px` }, onPointerDown: startInsertDrag("move"), onPointerMove: onDragMove, onPointerUp: endDrag, children: "\u283F" }), u2("div", { class: "label", "data-part": "insert-size-label", style: { left: `${Math.max(2, insBox.left) + 32}px`, top: `${y3 + 2}px` }, children: ["New ", partName2(selIns.what), " ", Math.round(insBox.width), " \xD7 ", Math.round(insBox.height)] })] });
37108
- })(), EDGES.map((edge) => u2("span", { class: `handle h-${edge.length === 1 ? "side" : "corner"}`, "data-handle": `insert-${edge}`, title: "Drag to resize", style: handleStyle(edge, insBox), onPointerDown: startInsertDrag(edge), onPointerMove: onDragMove, onPointerUp: endDrag }))] }), scale && selecting && !placing && !drag && u2("div", { class: "pick-layer", "data-part": "pick-layer", onPointerMove: (e6) => setHovered(elementAt(doc, e6.clientX, e6.clientY)), onClick: (e6) => {
37232
+ })(), EDGES.map((edge) => u2("span", { class: `handle h-${edge.length === 1 ? "side" : "corner"}`, "data-handle": `insert-${edge}`, title: "Drag to resize", style: handleStyle(edge, insBox), onPointerDown: startInsertDrag(edge), onPointerMove: onDragMove, onPointerUp: endDrag }))] }), scale && selecting && !placing && !drag && u2("div", { class: "pick-layer", "data-part": "pick-layer", onPointerDown: (e6) => {
37233
+ placeTouch.current = e6.pointerType === "touch";
37234
+ }, onPointerMove: (e6) => {
37235
+ if (e6.pointerType !== "touch")
37236
+ setHovered(elementAt(doc, e6.clientX, e6.clientY));
37237
+ }, onClick: (e6) => {
37109
37238
  const el = elementAt(doc, e6.clientX, e6.clientY);
37110
- if (el && !isLuciUi(el))
37111
- select(el);
37112
- }, onWheel: pickWheel, onPointerLeave: () => setHovered(null) }), hoverBox && hovered && u2(S, { children: [u2("div", { class: "highlight", style: { left: `${hoverBox.left}px`, top: `${hoverBox.top}px`, width: `${hoverBox.width}px`, height: `${hoverBox.height}px` } }), u2("div", { class: "label", "data-part": "hover-label", style: { left: `${hoverBox.left}px`, top: `${Math.max(0, hoverBox.top - 24)}px` }, children: nameWithComponent(hovered) })] }), boxModel(), box && selected && u2(S, { children: [u2("div", { class: "sel", "data-part": "selection", style: { left: `${box.left}px`, top: `${box.top}px`, width: `${box.width}px`, height: `${box.height}px` } }), (() => {
37239
+ if (!el || isLuciUi(el))
37240
+ return;
37241
+ if (placeTouch.current && el !== hovered) {
37242
+ setHovered(el);
37243
+ return;
37244
+ }
37245
+ select(el);
37246
+ }, onWheel: pickWheel, onPointerLeave: (e6) => {
37247
+ if (e6.pointerType !== "touch")
37248
+ setHovered(null);
37249
+ } }), hoverBox && hovered && u2(S, { children: [u2("div", { class: "highlight", style: { left: `${hoverBox.left}px`, top: `${hoverBox.top}px`, width: `${hoverBox.width}px`, height: `${hoverBox.height}px` } }), u2("div", { class: "label", "data-part": "hover-label", style: { left: `${hoverBox.left}px`, top: `${Math.max(0, hoverBox.top - 24)}px` }, children: nameWithComponent(hovered) })] }), boxModel(), box && selected && u2(S, { children: [u2("div", { class: "sel", "data-part": "selection", style: { left: `${box.left}px`, top: `${box.top}px`, width: `${box.width}px`, height: `${box.height}px` } }), (() => {
37113
37250
  const above = box.top >= 34;
37114
37251
  const y3 = above ? box.top - 32 : box.bottom + 6;
37115
37252
  return u2(S, { children: [siblings > 1 && u2("button", { type: "button", class: "handle h-move", "data-handle": "move", title: showMove ? "Drag to move it among its neighbors" : "Drag to plan a move (it cannot be shown here: the prompt says where it goes)", style: { left: `${Math.max(2, box.left)}px`, top: `${y3}px` }, onPointerDown: startDrag("move"), onPointerMove: onDragMove, onPointerUp: endDrag, children: "\u283F" }), u2("div", { class: "label", "data-part": "size-label", style: { left: `${Math.max(2, box.left) + (siblings > 1 ? 32 : 0)}px`, top: `${y3 + 2}px` }, children: [nameWithComponent(selected), " ", Math.round(box.width), " \xD7 ", Math.round(box.height), tokenFor(`${Math.round(box.width)}px`) ? ` \xB7 ${tokenFor(`${Math.round(box.width)}px`)}` : ""] })] });
@@ -37227,7 +37364,7 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
37227
37364
  const root = host.attachShadow({ mode: "open" });
37228
37365
  root.innerHTML = `<style>${TOKENS_CSS}
37229
37366
  div{position:fixed;${cornerCss(place, 40)};z-index:2147483647;display:flex;gap:8px;align-items:center;padding:8px 16px 8px 12px;border-radius:var(--luci-radius-full);
37230
- background:var(--luci-color-bar);color:var(--luci-color-bar-ink);font:500 var(--luci-type-small-size)/var(--luci-type-small-line) var(--luci-font-body);box-shadow:var(--luci-shadow-float)}
37367
+ background:var(--luci-color-bar);color:var(--luci-color-bar-ink);font:500 var(--luci-type-small-size)/var(--luci-type-small-line) var(--luci-font-body);box-shadow:var(--luci-shadow-edge),var(--luci-shadow-float)}
37231
37368
  i{width:14px;height:14px;border-radius:50%;border:2px solid var(--luci-color-bar-stroke);border-top-color:var(--luci-color-tool-active);animation:s .8s linear infinite}
37232
37369
  @keyframes s{to{transform:rotate(360deg)}}
37233
37370
  @media (prefers-reduced-motion: reduce){i{animation:none}}
@@ -37385,6 +37522,19 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
37385
37522
  host.setAttribute("data-v", place.v);
37386
37523
  host.style.setProperty("--luci-x", `${x3}px`);
37387
37524
  host.style.setProperty("--luci-y", `${y3}px`);
37525
+ if (bar?.offsetHeight) host.style.setProperty("--luci-bar-h", `${bar.offsetHeight}px`);
37526
+ };
37527
+ let barWatch = null;
37528
+ const watchBar = (host) => {
37529
+ barWatch?.disconnect();
37530
+ barWatch = null;
37531
+ const bar = host.shadowRoot?.querySelector(".bar");
37532
+ const RO = win.ResizeObserver;
37533
+ if (!bar || !RO) return;
37534
+ barWatch = new RO(() => {
37535
+ if (current?.host === host) applyPlace(host);
37536
+ });
37537
+ barWatch.observe(bar);
37388
37538
  };
37389
37539
  let drag = null;
37390
37540
  let justMoved = false;
@@ -37566,6 +37716,7 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
37566
37716
  });
37567
37717
  }
37568
37718
  applyPlace(current.host);
37719
+ watchBar(current.host);
37569
37720
  draggable(current.host);
37570
37721
  if (how.grow) grow(current.host);
37571
37722
  };
@@ -37582,6 +37733,7 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
37582
37733
  doc.removeEventListener(UI_PREFS_EVENT, followPrefs);
37583
37734
  win.removeEventListener("resize", onResize);
37584
37735
  stopDrag();
37736
+ barWatch?.disconnect();
37585
37737
  current?.destroy();
37586
37738
  current = null;
37587
37739
  removeLauncher();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luci-dev/toolbar",
3
- "version": "0.5.5",
3
+ "version": "0.5.6",
4
4
  "description": "The dev toolbar: feedback and capture in your own app, saved into the project through luci serve.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -17,10 +17,10 @@
17
17
  "dist"
18
18
  ],
19
19
  "dependencies": {
20
- "@luci-dev/capture": "0.5.5",
21
- "@luci-dev/feedback": "0.5.5",
22
- "@luci-dev/format": "0.5.5",
23
- "@luci-dev/ui": "0.5.5"
20
+ "@luci-dev/capture": "0.5.6",
21
+ "@luci-dev/feedback": "0.5.6",
22
+ "@luci-dev/format": "0.5.6",
23
+ "@luci-dev/ui": "0.5.6"
24
24
  },
25
25
  "publishConfig": {
26
26
  "access": "public"