@luci-dev/toolbar 0.5.5 → 0.5.8

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2026 Lucas
3
+ Copyright (c) 2026 Lucas (Pawprint Design)
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -4,20 +4,25 @@ Luci inside your own app while you develop it: leave notes on the running app fo
4
4
 
5
5
  ## Set up
6
6
 
7
- 1. In your app's folder: `luci init` (once). It asks **Add Luci's dev toolbar to your app?**; press Enter.
8
- 2. `luci serve`, then open your app on this machine. Luci's button is in the bottom corner.
7
+ ```bash
8
+ npm install -g @luci-dev/cli
9
+ luci init
10
+ luci serve
11
+ ```
9
12
 
10
- Missed it, or said no? `luci serve` asks again while the toolbar is not in the app, and `luci toolbar` adds it any time. Or ask your agent to add Luci's dev toolbar: the project's agent files tell it to run `luci toolbar`.
13
+ 1. Install Luci globally once: `npm install -g @luci-dev/cli` (requires Node 18 or later).
14
+ 2. In your app's folder: `luci init` (once). It asks **Add Luci's dev toolbar to your app?**; press Enter (or pass `luci init --toolbar`).
15
+ 3. `luci serve`, then open your app on this machine. Luci's button is in the bottom corner.
11
16
 
12
- What it adds: a few lines between `luci:toolbar` comments, before `</body>` of the app's root file (Next.js `app/layout` or `pages/_document`, SvelteKit `src/app.html`, an Astro layout, or `index.html` for Vite, Create React App, Angular and plain sites). The loader only runs on `localhost` (Next.js: in development), so a deployed site is unchanged and nothing is installed. `luci toolbar remove` takes it out again; `luci toolbar --dry-run` shows what it would add. Without a root file Luci knows, add the line yourself:
17
+ Missed it, or said no? `luci serve` asks again while the toolbar is not in the app, and `luci toolbar` adds or updates it any time. Or ask your agent to add Luci's dev toolbar: the project's agent files tell it to run `luci toolbar`.
13
18
 
14
- ```html
15
- <script src="http://127.0.0.1:4545/toolbar.js"></script>
16
- ```
19
+ What it adds: a few lines between `luci:toolbar` comments, before `</body>` of the app's root file (Next.js `app/layout` or `pages/_document`, SvelteKit `src/app.html`, an Astro layout, or `index.html` for Vite, Create React App, Angular and plain sites). The loader only runs on `localhost` (Next.js: in development), so a deployed site is unchanged and nothing is installed. `luci toolbar remove` takes it out again; `luci toolbar --dry-run` shows what it would add.
20
+
21
+ 4. Optional: connect your agent to `luci-mcp` (for Claude Code, from the project folder: `claude mcp add luci-mcp -- npx -y @luci-dev/mcp@latest`), so it can read the notes and saved captures itself. Copying the prompt works without it.
17
22
 
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.
23
+ **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`), run `luci toolbar` if the loader changed, stop `luci serve`, start it again and reload your app.
19
24
 
20
- `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`.
25
+ `luci serve` listens on 127.0.0.1 only and answers pages on this machine only. When `luci serve` is not running, the loader shows a small **"Luci isn't running"** badge with **Copy fix for my agent** and **Retry** (which loads the toolbar without reloading the page once `luci serve` starts).
21
26
 
22
27
  ## Feedback
23
28
 
@@ -33,6 +38,15 @@ What it adds: a few lines between `luci:toolbar` comments, before `</body>` of t
33
38
 
34
39
  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
40
 
41
+ ## On a phone
42
+
43
+ Open your app on a phone (or a narrow window, under 640 px) and the toolbar adapts:
44
+
45
+ - 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.
46
+ - 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.
47
+ - A note opens as a sheet just above the bar. Intent and priority are one tap each.
48
+ - Tooltips show for keyboard focus only.
49
+
36
50
  ## Modes
37
51
 
38
52
  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;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= host.attachShadow({ mode: 'open' });
81
- // The Charcoal pill (brand/DESIGN.md, On-page toolbar), with a ginger ring turning
81
+ // The Charcoal pill (the brand kit, 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}}
@@ -145,7 +145,7 @@ export async function mountDevToolbar(options = {}) {
145
145
  launcher = doc.createElement(LAUNCHER_TAG);
146
146
  launcher.setAttribute(LUCI_UI_ATTRIBUTE, '');
147
147
  const root = launcher.attachShadow({ mode: 'open' });
148
- // Luci's head in a Ginger circle: the 48 px menu button (brand/DESIGN.md, On-page toolbar), in the
148
+ // Luci's head in a Ginger circle: the 48 px menu button (the brand kit, On-page toolbar), in the
149
149
  // corner of the bar's place, where the bar grows from
150
150
  root.innerHTML = `<style>${TOKENS_CSS}${ANIMATIONS_CSS}
151
151
  button{position:fixed;${cornerCss(place, 48)};z-index:2147483647;display:flex;align-items:center;justify-content:center;width:48px;height:48px;padding:0;border:0;
@@ -235,7 +235,7 @@ export async function mountDevToolbar(options = {}) {
235
235
  catch {
236
236
  return false;
237
237
  } };
238
- /** The bar grows out of the launcher's corner (opacity and transform only, brand/DESIGN.md motion). */
238
+ /** The bar grows out of the launcher's corner (opacity and transform only, the brand kit's motion rules). */
239
239
  const grow = (host) => {
240
240
  const bar = host.shadowRoot?.querySelector('.bar');
241
241
  if (!bar || reducedMotion() || typeof bar.animate !== 'function')
@@ -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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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"}
@@ -26446,6 +26446,10 @@ ${external_exports.prettifyError(meta3.error)}`);
26446
26446
  var TAILWIND_V3_FILE_NAME = "tailwind.config.js";
26447
26447
  var hex5 = (v3) => formatColor(v3, { colors: "hex" });
26448
26448
  var slug3 = (text) => text.toLowerCase().replace(/^--/, "").replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "") || "token";
26449
+ var keyIn = (group, hint) => {
26450
+ const key2 = slug3(hint);
26451
+ return key2.startsWith(`${group}-`) && key2.length > group.length + 1 ? key2.slice(group.length + 1) : key2;
26452
+ };
26449
26453
  var px2 = (v3) => {
26450
26454
  const n2 = pxValue(v3);
26451
26455
  return n2 === null ? v3 : `${Math.round(n2 * 100) / 100}px`;
@@ -26483,7 +26487,7 @@ ${external_exports.prettifyError(meta3.error)}`);
26483
26487
  if (v3.toLowerCase() === val.toLowerCase())
26484
26488
  return;
26485
26489
  }
26486
- const k6 = freeKey2(tokens2.colors, slug3(keyHint));
26490
+ const k6 = freeKey2(tokens2.colors, keyIn("color", keyHint));
26487
26491
  tokens2.colors.set(k6, val);
26488
26492
  };
26489
26493
  const addSpace2 = (rawVal, keyHint) => {
@@ -26495,7 +26499,7 @@ ${external_exports.prettifyError(meta3.error)}`);
26495
26499
  return;
26496
26500
  }
26497
26501
  const num4 = pxValue(val);
26498
- const k6 = keyHint ? slug3(keyHint) : num4 !== null ? String(num4) : freeKey2(tokens2.spacing, "space");
26502
+ const k6 = keyHint ? keyIn("spacing", keyHint) : num4 !== null ? String(num4) : freeKey2(tokens2.spacing, "space");
26499
26503
  tokens2.spacing.set(freeKey2(tokens2.spacing, k6), val);
26500
26504
  };
26501
26505
  const addRadius = (rawVal, keyHint) => {
@@ -26507,7 +26511,7 @@ ${external_exports.prettifyError(meta3.error)}`);
26507
26511
  return;
26508
26512
  }
26509
26513
  const num4 = pxValue(val);
26510
- let hint = keyHint ? slug3(keyHint) : num4 !== null ? `${num4}px` : "radius";
26514
+ let hint = keyHint ? keyIn("radius", keyHint) : num4 !== null ? `${num4}px` : "radius";
26511
26515
  if (num4 && num4 >= 999)
26512
26516
  hint = "full";
26513
26517
  tokens2.radii.set(freeKey2(tokens2.radii, hint), val);
@@ -26623,7 +26627,7 @@ ${external_exports.prettifyError(meta3.error)}`);
26623
26627
  function formatCssVariables(captures, options = {}) {
26624
26628
  const t3 = extractTokens(captures);
26625
26629
  const lines = [];
26626
- lines.push("/* Generated by Luci (https://github.com/luci-ai/luci) */");
26630
+ lines.push("/* Generated by Luci (https://github.com/waidesign/luci-by-pawprint.design) */");
26627
26631
  if (options.name)
26628
26632
  lines.push(`/* Design System: ${options.name} */`);
26629
26633
  if (t3.sources.size)
@@ -26686,7 +26690,7 @@ ${external_exports.prettifyError(meta3.error)}`);
26686
26690
  function formatTailwind(captures, options = {}) {
26687
26691
  const t3 = extractTokens(captures);
26688
26692
  const lines = [];
26689
- lines.push("/* Generated by Luci (https://github.com/luci-ai/luci) */");
26693
+ lines.push("/* Generated by Luci (https://github.com/waidesign/luci-by-pawprint.design) */");
26690
26694
  if (options.name)
26691
26695
  lines.push(`/* Tailwind v4 Theme: ${options.name} */`);
26692
26696
  if (t3.sources.size)
@@ -26767,7 +26771,7 @@ module.exports = {
26767
26771
  };
26768
26772
  `;
26769
26773
  const header = [
26770
- "/* Generated by Luci (https://github.com/luci-ai/luci) */",
26774
+ "/* Generated by Luci (https://github.com/waidesign/luci-by-pawprint.design) */",
26771
26775
  options.name ? `/* Tailwind v3 Config: ${options.name} */` : null,
26772
26776
  t3.sources.size ? `/* Sources: ${Array.from(t3.sources).join(", ")} */` : null,
26773
26777
  ""
@@ -30053,6 +30057,13 @@ module.exports = {
30053
30057
  const r4 = el.getBoundingClientRect();
30054
30058
  return `${el.tagName.toLowerCase()} ${Math.round(r4.width)} \xD7 ${Math.round(r4.height)}`;
30055
30059
  }
30060
+ function touchScreen(win) {
30061
+ try {
30062
+ return win.matchMedia("(hover: none)").matches;
30063
+ } catch {
30064
+ return false;
30065
+ }
30066
+ }
30056
30067
 
30057
30068
  // packages/capture/dist/ui/basket.js
30058
30069
  function memoryBasketStore(initial = []) {
@@ -30538,7 +30549,7 @@ module.exports = {
30538
30549
  "muzzle-800": "#3B3A39",
30539
30550
  "muzzle-900": "#2B2B2B"
30540
30551
  };
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';
30552
+ 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
30553
 
30543
30554
  // packages/ui/dist/mascot/art.js
30544
30555
  var POSE_SVG = {
@@ -31329,7 +31340,7 @@ module.exports = {
31329
31340
  }
31330
31341
 
31331
31342
  // packages/ui/dist/about.js
31332
- var LUCI_VERSION = "0.5.5";
31343
+ var LUCI_VERSION = "0.5.8";
31333
31344
  var LUCI_REPO_URL = "https://github.com/waidesign/luci-by-pawprint.design";
31334
31345
 
31335
31346
  // packages/ui/dist/copy.js
@@ -31345,7 +31356,7 @@ module.exports = {
31345
31356
  help: "How it works"
31346
31357
  },
31347
31358
  capture: {
31348
- title: "DESIGN.md Extractor",
31359
+ title: "Capture",
31349
31360
  byline: "by Luci",
31350
31361
  description: "Pick anything on a page. Get a design file your agent can build from.",
31351
31362
  devTitle: "Luci",
@@ -31420,7 +31431,7 @@ module.exports = {
31420
31431
  // packages/ui/dist/styles.js
31421
31432
  var BASE_CSS = `
31422
31433
  .luci-theme {
31423
- /* Buttons: md is 40 px with 15 px labels (DESIGN.md section 6); a compact surface sets sm as its default */
31434
+ /* Buttons: md is 40 px with 15 px labels (the brand kit, section 6); a compact surface sets sm as its default */
31424
31435
  --luci-btn-h: 40px;
31425
31436
  --luci-btn-font: 15px;
31426
31437
  --luci-btn-line: 20px;
@@ -31432,6 +31443,13 @@ module.exports = {
31432
31443
  color: var(--luci-color-ink);
31433
31444
  -webkit-font-smoothing: antialiased;
31434
31445
  }
31446
+ /*
31447
+ * Elevation for cards floating over the page: the float shadow, plus the faint inner edge on Charcoal
31448
+ * (the dark theme's cards), so they stay apart from a dark host page of the same colour.
31449
+ */
31450
+ .luci-theme { --luci-elevation: var(--luci-shadow-float); --luci-elevation-bar: var(--luci-shadow-edge), var(--luci-shadow-float); }
31451
+ @media (prefers-color-scheme: dark) { .luci-theme:not([data-theme="light"]) { --luci-elevation: var(--luci-shadow-edge), var(--luci-shadow-float); } }
31452
+ .luci-theme[data-theme="dark"] { --luci-elevation: var(--luci-shadow-edge), var(--luci-shadow-float); }
31435
31453
  .luci-theme *, .luci-theme *::before, .luci-theme *::after { box-sizing: border-box; }
31436
31454
  .luci-theme :where(button, input, select, textarea) { font: inherit; color: inherit; }
31437
31455
  .luci-theme :where(code, kbd, pre, samp) { font-family: var(--luci-font-code); }
@@ -31463,7 +31481,7 @@ module.exports = {
31463
31481
  `;
31464
31482
  var COMPONENTS_CSS = `
31465
31483
  /*
31466
- * Button (DESIGN.md section 6). Variants: btn-primary, btn-secondary, btn-outline, btn-ghost (also a
31484
+ * Button (the brand kit, section 6). Variants: btn-primary, btn-secondary, btn-outline, btn-ghost (also a
31467
31485
  * bare button), btn-danger, btn-link; btn-icon for icon-only (square, round). Sizes: btn-sm 32,
31468
31486
  * btn-md 40, btn-lg 48 (default: the surface's). States: hover, :active (pressed), :focus-visible,
31469
31487
  * :disabled, aria-pressed="true" (toggled on), aria-busy="true" (working).
@@ -31553,7 +31571,7 @@ module.exports = {
31553
31571
  .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
31572
  .status-msg .status-detail { margin: 0; }
31555
31573
  .status-msg .mascot { width: 48px; }
31556
- .toast { position: fixed; z-index: 2147483647; box-shadow: var(--luci-shadow-float); }
31574
+ .toast { position: fixed; z-index: 2147483647; box-shadow: var(--luci-elevation); }
31557
31575
 
31558
31576
  /* Card and panel */
31559
31577
  .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 +31622,12 @@ module.exports = {
31604
31622
  .luci-theme [data-tip]:is(:hover, :focus-visible)::after { opacity: 1; transform: translate(-50%, 0);
31605
31623
  transition: opacity var(--luci-motion-base) 300ms, transform var(--luci-motion-base) 300ms; }
31606
31624
 
31625
+ /*
31626
+ * Touch screens have no hover: a tapped button would keep its tooltip until the next tap elsewhere, over
31627
+ * the bar and its cards. There they show for keyboard focus only.
31628
+ */
31629
+ @media (hover: none) { .luci-theme [data-tip]:hover:not(:focus-visible)::after { opacity: 0; transition: none; } }
31630
+
31607
31631
  /* Left-aligned tooltips (first button in rows, cards, or explicit data-tip-align="left") open rightwards to prevent clipping inside cards/panels */
31608
31632
  .luci-theme [data-tip][data-tip-align="left"]::after,
31609
31633
  .luci-theme .panel .actions > [data-tip]:first-child::after,
@@ -31761,7 +31785,7 @@ ${UI_CSS}
31761
31785
  .luci-theme[data-dock="left"] .sub,
31762
31786
  .luci-theme[data-dock="left"] .panel { right: auto; left: var(--luci-space-12); }
31763
31787
 
31764
- /* The toolbar pill (DESIGN.md, On-page toolbar): Charcoal in both themes, float shadow, no stroke */
31788
+ /* The toolbar pill (the brand kit, On-page toolbar): Charcoal in both themes, float shadow, no stroke */
31765
31789
  .bar {
31766
31790
  --luci-color-focus: var(--luci-color-muzzle-50);
31767
31791
  position: fixed;
@@ -31777,7 +31801,8 @@ ${UI_CSS}
31777
31801
  border-radius: 32px;
31778
31802
  background: var(--luci-color-bar);
31779
31803
  color: var(--luci-color-bar-ink);
31780
- box-shadow: var(--luci-shadow-float);
31804
+ /* Charcoal in both themes, so always with the inner edge: it stays apart from a dark page */
31805
+ box-shadow: var(--luci-elevation-bar);
31781
31806
  }
31782
31807
  /* Above the cards, so the tools' tooltips are never under a card */
31783
31808
  .shell > .bar { position: relative; z-index: 2; }
@@ -31822,6 +31847,7 @@ ${UI_CSS}
31822
31847
  .luci-theme .bar .basket-pill[aria-pressed="true"],
31823
31848
  .luci-theme .bar .basket-pill[aria-pressed="true"]:hover:not(:disabled),
31824
31849
  .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); }
31850
+ .bar .basket-n { display: none; }
31825
31851
  .brand { display: inline-flex; align-items: center; gap: var(--luci-space-8); padding: 0 var(--luci-space-8) 0 0;
31826
31852
  font: var(--luci-type-display-weight) var(--luci-type-heading-size)/1 var(--luci-font-display); color: var(--luci-color-bar-ink); }
31827
31853
  /* The dev toolbar's mode switch, on Charcoal */
@@ -31836,7 +31862,8 @@ ${UI_CSS}
31836
31862
  * --luci-y its distances from that corner's edges (default bottom right, 12 px, by its button; the
31837
31863
  * person can drag it anywhere). Everything opens from the bar, on the side with room: cards just above
31838
31864
  * 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).
31865
+ * hint's place while it is open. --luci-bar-h is the bar's measured height (it can wrap), so a card
31866
+ * never opens under it. The extension sets none of this (its bar keeps its own place).
31840
31867
  */
31841
31868
  :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
31869
  :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 +31871,14 @@ ${UI_CSS}
31844
31871
  :host([data-h="left"]) .shell { align-items: flex-start; }
31845
31872
  :host([data-v="bottom"]) :is(.shell, .bar:not(.shell > .bar)) { top: auto; bottom: var(--luci-y, 12px); }
31846
31873
  :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); }
31874
+ :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); }
31875
+ :host([data-v="bottom"]) .menu { top: auto; bottom: calc(var(--luci-y, 12px) + var(--luci-bar-h, 64px)); }
31849
31876
  :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); }
31877
+ :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); }
31878
+ :host([data-v="top"]) .menu { bottom: auto; top: calc(var(--luci-y, 12px) + var(--luci-bar-h, 64px)); }
31852
31879
  :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)); }
31880
+ :host([data-v]) .panel:not(.shell > .panel) { max-height: min(72vh, calc(100vh - var(--luci-y, 12px) - var(--luci-bar-h, 64px) - 32px)); }
31881
+ :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
31882
  :host([data-v]) .luci-theme:has(> .panel) > .sub:not([role="alert"]) { display: none; }
31856
31883
  :host([data-v="bottom"]) :is(.sub, .panel, .menu) { animation: luci-rise var(--luci-motion-base, 200ms) both; }
31857
31884
  :host([data-v="top"]) :is(.sub, .panel, .menu) { animation: luci-drop var(--luci-motion-base, 200ms) both; }
@@ -31869,13 +31896,44 @@ ${UI_CSS}
31869
31896
  :host([data-v]) .bar button, :host([data-v]) .bar .menu-btn { cursor: pointer; }
31870
31897
  :host([data-moving]) .bar, :host([data-moving]) .bar * { cursor: grabbing; user-select: none; }
31871
31898
  /* 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); }
31899
+ :host([data-v="bottom"]) .wf { padding-bottom: calc(var(--luci-y, 12px) + var(--luci-bar-h, 64px) + 12px); }
31873
31900
  :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); }
31901
+ :host([data-v="top"]) .wf-tools { padding-top: calc(var(--luci-y, 12px) + var(--luci-bar-h, 64px) + 12px); }
31875
31902
  :host([data-v="top"]) .panel[data-part="sketch-panel"]:not(.shell > .panel) { top: auto; bottom: var(--luci-space-12); }
31876
31903
 
31904
+ /*
31905
+ * Phones and narrow windows (dev toolbar): the bar spans the window's width in two planned rows instead
31906
+ * of wrapping wherever it runs out of room. Row 1: Luci, the mode switch, Close. Row 2: the mode's tools,
31907
+ * spread evenly at the 44 px touch target. The first separator is the line break. Cards open full width
31908
+ * from the bar, above it (or below a bar dragged to the top).
31909
+ */
31910
+ @media (max-width: 639px) {
31911
+ :host([data-v]) :is(.shell, .bar:not(.shell > .bar), .sub:not(.shell > .sub), .panel:not(.shell > .panel), .menu) { left: 8px; right: 8px; }
31912
+ :host([data-v]) :is(.sub:not(.shell > .sub), .panel:not(.shell > .panel)) { width: auto; }
31913
+ :host([data-v]) .shell { align-items: stretch; max-width: none; }
31914
+ :host([data-v]) .shell > :is(.sub, .panel) { width: auto; }
31915
+ :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; }
31916
+ :host([data-v]) .bar > * { order: 3; }
31917
+ :host([data-v]) .bar > :is(.menu-btn, .modes) { order: 0; }
31918
+ :host([data-v]) .bar > [data-action="close"] { order: 1; }
31919
+ :host([data-v]) .bar > .modes + .bar-sep { order: 2; flex-basis: 100%; width: 0; height: 0; margin: 0; background: none; }
31920
+ :host([data-v]) .bar > .bar-sep:not(.modes + .bar-sep) { display: none; }
31921
+ :host([data-v]) .bar .modes { flex: 1 1 auto; margin: 0 var(--luci-space-4); }
31922
+ :host([data-v]) .bar .modes button { flex: 1 1 0; padding-inline: var(--luci-space-8); }
31923
+ :host([data-v]) .luci-theme .bar :is(.tool, .split .caret) { --luci-btn-h: 44px; }
31924
+ /* Where notes go, as its dot only (the words stay as its label) */
31925
+ :host([data-v]) .bar .conn { width: 28px; height: 44px; justify-content: center; padding: 0; font-size: 0; }
31926
+ :host([data-v]) .bar .conn::before { width: 10px; height: 10px; }
31927
+ /* Layout's inspector leaves the top of the page in view, where the selected element can be */
31928
+ :host([data-v]) .layout-panel:not(.shell > .panel) { max-height: min(45vh, calc(100vh - var(--luci-y, 12px) - var(--luci-bar-h, 64px) - 32px)); }
31929
+ /* The basket as its icon and count (its label still says "Basket, n items") */
31930
+ :host([data-v]) .luci-theme .bar .basket-pill { gap: var(--luci-space-4); padding: 0 var(--luci-space-12) 0 var(--luci-space-8); }
31931
+ :host([data-v]) .bar .basket-full { display: none; }
31932
+ :host([data-v]) .bar .basket-n { display: inline; }
31933
+ }
31934
+
31877
31935
  /* 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); }
31936
+ .sub, .panel { background: var(--luci-color-surface); border-radius: var(--luci-radius-xl); box-shadow: var(--luci-elevation); }
31879
31937
  .sub {
31880
31938
  position: fixed;
31881
31939
  top: 84px;
@@ -31937,6 +31995,8 @@ ${UI_CSS}
31937
31995
  /* The first-run greeting */
31938
31996
  .greet { flex-direction: row; align-items: center; gap: var(--luci-space-16); }
31939
31997
  .greet .t-title { margin: 0; }
31998
+ /* The words wrap beside Luci on a narrow window (panels keep their children's size otherwise) */
31999
+ .greet > .stack { flex-shrink: 1; min-width: 0; }
31940
32000
 
31941
32001
  /* Segmented control */
31942
32002
  .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 +32053,8 @@ label { display: inline-flex; gap: var(--luci-space-4); align-items: center; col
31993
32053
 
31994
32054
  /* Page overlays while picking: drawn over the host page, never part of it */
31995
32055
  .pick-layer, .pixel-layer { position: fixed; inset: 0; z-index: 2147483640; cursor: crosshair; background: transparent; touch-action: none; }
32056
+ /* Picking an element by touch takes taps, not drags: the page still scrolls and zooms under the finger */
32057
+ .pick-layer { touch-action: pan-x pan-y pinch-zoom; }
31996
32058
  .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
32059
  .highlight.locked { border-width: 2px; border-style: solid; }
31998
32060
  .highlight.blocked { border-color: var(--luci-color-pick-blocked); background: var(--luci-color-pick-blocked-fill); }
@@ -32001,7 +32063,7 @@ label { display: inline-flex; gap: var(--luci-space-4); align-items: center; col
32001
32063
  @media (prefers-reduced-motion: no-preference) { .highlight { transition: top 60ms, left 60ms, width 60ms, height 60ms; } }
32002
32064
  /* The label and the pixel swatch read like tooltips: Charcoal fill, Muzzle White text */
32003
32065
  .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);
32066
+ background: var(--luci-color-muzzle-900); color: var(--luci-color-muzzle-50); box-shadow: var(--luci-elevation-bar);
32005
32067
  font: var(--luci-type-code-weight) 12px/1.4 var(--luci-font-code); }
32006
32068
  .label { max-width: 360px; white-space: pre-wrap; }
32007
32069
  .label .reason { display: block; color: var(--luci-color-nose-pink-300); font-family: var(--luci-font-body); }
@@ -32737,10 +32799,16 @@ button .spinner { display: inline-block; width: 12px; height: 12px; vertical-ali
32737
32799
  const [debuggerGranted, setDebuggerGranted] = d2(false);
32738
32800
  h2(() => {
32739
32801
  if (props.debuggerPermission?.get) {
32740
- void props.debuggerPermission.get().then(setDebuggerGranted);
32802
+ void props.debuggerPermission.get().then(setDebuggerGranted, () => setDebuggerGranted(false));
32741
32803
  }
32742
32804
  }, []);
32743
32805
  const useDebugger = capSettings.useDebugger ?? true;
32806
+ const openDebuggerHelp = () => {
32807
+ if (props.onHelp)
32808
+ props.onHelp("debugger-permission");
32809
+ else
32810
+ props.debuggerPermission?.request?.();
32811
+ };
32744
32812
  return u2("div", { class: "panel", role: "dialog", "aria-label": "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("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) => {
32745
32813
  const val = e6.currentTarget.value;
32746
32814
  setBridgePortInput(val);
@@ -32755,11 +32823,7 @@ button .spinner { display: inline-block; width: 12px; height: 12px; vertical-ali
32755
32823
  }
32756
32824
  props.onClearAllFeedbackNotes?.();
32757
32825
  setConfirmClear(false);
32758
- }, children: confirmClear ? "Delete every note on every page?" : "Clear all notes" }), confirmClear && u2("button", { type: "button", onClick: () => setConfirmClear(false), children: "Cancel" })] })] }), activeTab === "layout" && u2("div", { class: "tool-settings-body", "data-part": "layout-settings-tab", children: u2("div", { class: "stack", children: [u2("span", { class: "field-label", children: "Spacing & layout guidance" }), u2("p", { class: "tip-box", children: "Values snap to the page's detected spacing scale (e.g. 4px / 8px). Elements can be moved, resized and spaced freely." }), u2("p", { class: "dim", children: "Preview changes live in the browser without modifying code. When finished, Copy prompt generates a structured layout plan for your agent." })] }) }), activeTab === "capture" && u2("div", { class: "tool-settings-body", "data-part": "capture-settings-tab", children: [u2("div", { class: "stack", children: [u2("span", { class: "field-label", children: "Default file format" }), u2("div", { class: "settings-grid", children: [u2("label", { class: "field-stack", children: [u2("span", { class: "dim", children: "Units" }), u2(Select, { "data-setting": "units", value: capSettings.units ?? "px", onChange: (e6) => updateCapSettings({ ...capSettings, units: e6.currentTarget.value }), children: [u2("option", { value: "px", children: "px" }), u2("option", { value: "rem", children: "rem" }), u2("option", { value: "both", children: "both" })] })] }), u2("label", { class: "field-stack", children: [u2("span", { class: "dim", children: "Colours" }), u2(Select, { "data-setting": "colors", value: capSettings.colors ?? "hex", onChange: (e6) => updateCapSettings({ ...capSettings, colors: e6.currentTarget.value }), children: [u2("option", { value: "hex", children: "hex" }), u2("option", { value: "rgb", children: "rgb" }), u2("option", { value: "hsl", children: "hsl" }), u2("option", { value: "oklch", children: "oklch" })] })] }), u2("label", { class: "field-stack", title: "The file's source line: the page address, or only the site name", children: [u2("span", { class: "dim", children: "Source" }), u2(Select, { "data-setting": "source", value: capSettings.source ?? "page", onChange: (e6) => updateCapSettings({ ...capSettings, source: e6.currentTarget.value }), children: [u2("option", { value: "page", children: "page address" }), u2("option", { value: "site", children: "site name only" })] })] }), u2("label", { class: "field-stack", title: "The file you copy, download and export: Luci's tables, DESIGN.md for Google Stitch, Tailwind CSS, or CSS Variables", children: [u2("span", { class: "dim", children: "File" }), u2(Select, { "data-setting": "style", value: capSettings.style ?? "luci", onChange: (e6) => updateCapSettings({ ...capSettings, style: e6.currentTarget.value }), children: [u2("option", { value: "luci", children: "Luci tables" }), u2("option", { value: "stitch", children: "DESIGN.md (Stitch)" }), u2("option", { value: "tailwind", children: "Tailwind v4 (@theme)" }), u2("option", { value: "tailwind-v3", children: "Tailwind v3 (config.js)" }), u2("option", { value: "css-vars", children: "CSS Variables (tokens.css)" })] })] })] })] }), props.debuggerPermission && u2("div", { class: "project-card", "data-part": "debugger-permission", children: [u2("div", { class: "project-header", children: [u2("span", { class: `status-dot ${debuggerGranted && useDebugger ? "online" : "offline"}`, "aria-hidden": "true" }), u2("div", { class: "project-info", children: [u2("span", { class: "project-name", children: debuggerGranted ? useDebugger ? "Debugger: active" : "Debugger: disabled" : "Debugger: optional (not enabled)" }), u2("span", { class: "project-hint dim", children: debuggerGranted ? useDebugger ? "Briefly attaches only during captures for exact CDP states" : "CSS rules & hidden frames active. Debugger will never be attached." : "CSS rules & frame fallback active" })] })] }), u2("div", { class: "project-port-row", children: debuggerGranted ? u2("button", { type: "button", class: "btn-secondary", "data-action": "toggle-debugger", onClick: () => updateCapSettings({ ...capSettings, useDebugger: !useDebugger }), children: useDebugger ? "Disable debugger" : "Enable debugger" }) : u2("button", { type: "button", class: "btn-secondary", "data-action": "enable-debugger", onClick: () => {
32759
- if (props.debuggerPermission?.request) {
32760
- props.debuggerPermission.request();
32761
- }
32762
- }, children: "Enable in Help" }) })] }), u2("hr", { class: "settings-divider" }), u2("div", { class: "stack", children: [u2("span", { class: "field-label", children: "Keys" }), u2("div", { class: "shortcut-list", "data-part": "keys", children: [u2("span", { children: TOOLS.map((t3) => u2(S, { children: [u2("kbd", { class: "kbd", children: CAPTURE_KEYS[t3] }), " "] })) }), u2("span", { class: "dim", children: "Component, Text, Colour, Spacing" }), u2("span", { children: [u2("kbd", { class: "kbd", children: CAPTURE_KEYS.page }), " ", u2("kbd", { class: "kbd", children: CAPTURE_KEYS.check })] }), u2("span", { class: "dim", children: "Whole page, Check a build" }), u2("span", { children: [u2("kbd", { class: "kbd", children: CAPTURE_KEYS.basket }), " ", u2("kbd", { class: "kbd", children: CAPTURE_KEYS.menu })] }), u2("span", { class: "dim", children: "Basket, this menu" }), u2("span", { children: [u2("kbd", { class: "kbd", children: "\u2191" }), " ", u2("kbd", { class: "kbd", children: "\u2193" })] }), u2("span", { class: "dim", children: "Wider or narrower selection" }), u2("span", { children: u2("kbd", { class: "kbd", children: "Enter" }) }), u2("span", { class: "dim", children: "Pick, then take This one" }), u2("span", { children: u2("kbd", { class: "kbd", children: "Esc" }) }), u2("span", { class: "dim", children: "Stop picking, or close the panel" })] })] })] })] });
32826
+ }, children: confirmClear ? "Delete every note on every page?" : "Clear all notes" }), confirmClear && u2("button", { type: "button", onClick: () => setConfirmClear(false), children: "Cancel" })] })] }), activeTab === "layout" && u2("div", { class: "tool-settings-body", "data-part": "layout-settings-tab", children: u2("div", { class: "stack", children: [u2("span", { class: "field-label", children: "Spacing & layout guidance" }), u2("p", { class: "tip-box", children: "Values snap to the page's detected spacing scale (e.g. 4px / 8px). Elements can be moved, resized and spaced freely." }), u2("p", { class: "dim", children: "Preview changes live in the browser without modifying code. When finished, Copy prompt generates a structured layout plan for your agent." })] }) }), activeTab === "capture" && u2("div", { class: "tool-settings-body", "data-part": "capture-settings-tab", children: [u2("div", { class: "stack", children: [u2("span", { class: "field-label", children: "Default file format" }), u2("div", { class: "settings-grid", children: [u2("label", { class: "field-stack", children: [u2("span", { class: "dim", children: "Units" }), u2(Select, { "data-setting": "units", value: capSettings.units ?? "px", onChange: (e6) => updateCapSettings({ ...capSettings, units: e6.currentTarget.value }), children: [u2("option", { value: "px", children: "px" }), u2("option", { value: "rem", children: "rem" }), u2("option", { value: "both", children: "both" })] })] }), u2("label", { class: "field-stack", children: [u2("span", { class: "dim", children: "Colours" }), u2(Select, { "data-setting": "colors", value: capSettings.colors ?? "hex", onChange: (e6) => updateCapSettings({ ...capSettings, colors: e6.currentTarget.value }), children: [u2("option", { value: "hex", children: "hex" }), u2("option", { value: "rgb", children: "rgb" }), u2("option", { value: "hsl", children: "hsl" }), u2("option", { value: "oklch", children: "oklch" })] })] }), u2("label", { class: "field-stack", title: "The file's source line: the page address, or only the site name", children: [u2("span", { class: "dim", children: "Source" }), u2(Select, { "data-setting": "source", value: capSettings.source ?? "page", onChange: (e6) => updateCapSettings({ ...capSettings, source: e6.currentTarget.value }), children: [u2("option", { value: "page", children: "page address" }), u2("option", { value: "site", children: "site name only" })] })] }), u2("label", { class: "field-stack", title: "The file you copy, download and export: Luci's tables, DESIGN.md for Google Stitch, Tailwind CSS, or CSS Variables", children: [u2("span", { class: "dim", children: "File" }), u2(Select, { "data-setting": "style", value: capSettings.style ?? "luci", onChange: (e6) => updateCapSettings({ ...capSettings, style: e6.currentTarget.value }), children: [u2("option", { value: "luci", children: "Luci tables" }), u2("option", { value: "stitch", children: "DESIGN.md (Stitch)" }), u2("option", { value: "tailwind", children: "Tailwind v4 (@theme)" }), u2("option", { value: "tailwind-v3", children: "Tailwind v3 (config.js)" }), u2("option", { value: "css-vars", children: "CSS Variables (tokens.css)" })] })] })] })] }), props.debuggerPermission && u2("div", { class: "project-card", "data-part": "debugger-permission", children: [u2("div", { class: "project-header", children: [u2("span", { class: `status-dot ${debuggerGranted && useDebugger ? "online" : "offline"}`, "aria-hidden": "true" }), u2("div", { class: "project-info", children: [u2("span", { class: "project-name", children: debuggerGranted ? useDebugger ? "Debugger: on" : "Debugger: off" : "Debugger: not available" }), u2("span", { class: "project-hint dim", children: debuggerGranted ? useDebugger ? "Luci uses it during a capture for exact states and widths, then detaches it" : "Luci never attaches it: states come from stylesheet rules, widths from a hidden frame" : "Chrome is not letting Luci use it: states come from stylesheet rules, widths from a hidden frame" })] })] }), u2("div", { class: "project-port-row", children: [debuggerGranted && u2("button", { type: "button", class: "btn-secondary", "data-action": "toggle-debugger", onClick: () => updateCapSettings({ ...capSettings, useDebugger: !useDebugger }), children: useDebugger ? "Don't use the debugger" : "Use the debugger" }), u2("button", { type: "button", class: "btn-secondary", "data-action": "debugger-help", onClick: openDebuggerHelp, children: "About the debugger" })] })] }), u2("hr", { class: "settings-divider" }), u2("div", { class: "stack", children: [u2("span", { class: "field-label", children: "Keys" }), u2("div", { class: "shortcut-list", "data-part": "keys", children: [u2("span", { children: TOOLS.map((t3) => u2(S, { children: [u2("kbd", { class: "kbd", children: CAPTURE_KEYS[t3] }), " "] })) }), u2("span", { class: "dim", children: "Component, Text, Colour, Spacing" }), u2("span", { children: [u2("kbd", { class: "kbd", children: CAPTURE_KEYS.page }), " ", u2("kbd", { class: "kbd", children: CAPTURE_KEYS.check })] }), u2("span", { class: "dim", children: "Whole page, Check a build" }), u2("span", { children: [u2("kbd", { class: "kbd", children: CAPTURE_KEYS.basket }), " ", u2("kbd", { class: "kbd", children: CAPTURE_KEYS.menu })] }), u2("span", { class: "dim", children: "Basket, this menu" }), u2("span", { children: [u2("kbd", { class: "kbd", children: "\u2191" }), " ", u2("kbd", { class: "kbd", children: "\u2193" })] }), u2("span", { class: "dim", children: "Wider or narrower selection" }), u2("span", { children: u2("kbd", { class: "kbd", children: "Enter" }) }), u2("span", { class: "dim", children: "Pick, then take This one" }), u2("span", { children: u2("kbd", { class: "kbd", children: "Esc" }) }), u2("span", { class: "dim", children: "Stop picking, or close the panel" })] })] })] })] });
32763
32827
  }
32764
32828
 
32765
32829
  // packages/capture/dist/ui/check.js
@@ -32944,7 +33008,7 @@ button .spinner { display: inline-block; width: 12px; height: 12px; vertical-ali
32944
33008
  };
32945
33009
  const label = props.projectName ? `Save to ${props.projectName}` : "Save to project";
32946
33010
  const title2 = props.projectName ? `Into ${props.projectName}/.luci/design/, where your agent reads it` : "Into the project's .luci/design/, where your agent reads it";
32947
- return u2(S, { children: [u2("button", { type: "button", "data-action": "save-to-project", disabled: state.busy, title: title2, onClick: () => void run(), children: state.busy ? u2(S, { children: [u2(ButtonSpinner, {}), "Saving\u2026"] }) : label }), state.done && u2("span", { class: "dim", "data-part": "saved", children: state.done }), state.error && u2("span", { class: "error", "data-part": "save-error", children: state.error })] });
33011
+ return u2(S, { children: [u2("button", { type: "button", "data-action": "save-to-project", disabled: state.busy, title: title2, onClick: () => void run(), children: state.busy ? u2(S, { children: [u2(ButtonSpinner, {}), "Saving\u2026"] }) : label }), state.done && u2("span", { class: "dim", "data-part": "saved", children: state.done }), state.error && u2(S, { children: [u2("span", { class: "error", "data-part": "save-error", children: state.error }), props.onDownload && u2("button", { type: "button", class: "btn-secondary", "data-action": "download-fallback", onClick: props.onDownload, children: "Download file instead" })] })] });
32948
33012
  }
32949
33013
  function RuleButton(props) {
32950
33014
  const [state, setState] = d2({});
@@ -33585,7 +33649,7 @@ button .spinner { display: inline-block; width: 12px; height: 12px; vertical-ali
33585
33649
  area2.scrollBy(e6.deltaX, e6.deltaY);
33586
33650
  }
33587
33651
  };
33588
- const pickUp = (x3, y3) => {
33652
+ const pickUp = (x3, y3, touch = false) => {
33589
33653
  {
33590
33654
  const target = elementAt(doc, x3, y3);
33591
33655
  const start = drag.current;
@@ -33593,6 +33657,11 @@ button .spinner { display: inline-block; width: 12px; height: 12px; vertical-ali
33593
33657
  if (!target || !start || !tool)
33594
33658
  return;
33595
33659
  const moved = Math.hypot(x3 - start.x, y3 - start.y) > DRAG_PX;
33660
+ if (touch && !moved && target !== candidateRef.current) {
33661
+ trail.current = [];
33662
+ aim(target);
33663
+ return;
33664
+ }
33596
33665
  if (tool === "spacing" && moved && target !== start.el) {
33597
33666
  const blocked = [start.el, target].map(eligibilityOf).find((x4) => x4.status !== "allowed");
33598
33667
  if (blocked) {
@@ -33872,6 +33941,12 @@ button .spinner { display: inline-block; width: 12px; height: 12px; vertical-ali
33872
33941
  return;
33873
33942
  props.debuggerPermission.get().then(setDebuggerGranted).catch(() => setDebuggerGranted(false));
33874
33943
  }, [props.debuggerPermission, settingsOpen]);
33944
+ const openDebuggerHelp = () => {
33945
+ if (props.onHelp)
33946
+ props.onHelp("debugger-permission");
33947
+ else
33948
+ props.debuggerPermission?.request?.();
33949
+ };
33875
33950
  const [itemSent, setItemSent] = d2({});
33876
33951
  const [basketSending, setBasketSending] = d2(false);
33877
33952
  const [basketStatus, setBasketStatus] = d2(null);
@@ -33887,7 +33962,7 @@ button .spinner { display: inline-block; width: 12px; height: 12px; vertical-ali
33887
33962
  } catch (err) {
33888
33963
  const msg = err instanceof Error ? err.message : String(err);
33889
33964
  setItemSent((prev) => ({ ...prev, [item.id]: { error: msg } }));
33890
- setBasketStatus({ text: msg, error: true });
33965
+ setBasketStatus({ text: msg, error: true, download: () => downloadText(fileName, markdown2) });
33891
33966
  }
33892
33967
  };
33893
33968
  const sendAllToProject = async () => {
@@ -33905,7 +33980,8 @@ button .spinner { display: inline-block; width: 12px; height: 12px; vertical-ali
33905
33980
  const target = activeProject?.name ? `${activeProject.name}/.luci/design/` : ".luci/design/";
33906
33981
  setBasketStatus({ text: `Saved ${saved} capture${saved === 1 ? "" : "s"} into ${target}.` });
33907
33982
  } catch (err) {
33908
- setBasketStatus({ text: err instanceof Error ? err.message : String(err), error: true });
33983
+ const all = exportBasket(basket, settings);
33984
+ setBasketStatus({ text: err instanceof Error ? err.message : String(err), error: true, download: () => downloadText(all.fileName, all.markdown) });
33909
33985
  } finally {
33910
33986
  setBasketSending(false);
33911
33987
  }
@@ -34209,20 +34285,14 @@ button .spinner { display: inline-block; width: 12px; height: 12px; vertical-ali
34209
34285
  const hoverElig = hovered ? eligibilityOf(hovered) : null;
34210
34286
  const rect = hovered?.getBoundingClientRect();
34211
34287
  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) => {
34288
+ 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, ...props.onHelp ? { onHelp: props.onHelp } : {} }) : 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
34289
  const val = e6.currentTarget.value;
34214
34290
  setBridgePortInput(val);
34215
34291
  void props.projectInfo?.setUrl?.(val).then(refreshProject);
34216
- } })] })] }), props.debuggerPermission && u2("div", { class: "project-card", "data-part": "debugger-permission", children: [u2("div", { class: "project-header", children: [u2("span", { class: `status-dot ${debuggerGranted && useDebugger ? "online" : "offline"}`, "aria-hidden": "true" }), u2("div", { class: "project-info", children: [u2("span", { class: "project-name", children: debuggerGranted ? useDebugger ? "Debugger: active" : "Debugger: disabled" : "Debugger: optional (not enabled)" }), u2("span", { class: "project-hint dim", children: debuggerGranted ? useDebugger ? "Briefly attaches only during captures for exact CDP states" : "CSS rules & hidden frames active. Debugger will never be attached." : "CSS rules & frame fallback active" })] })] }), u2("div", { class: "project-port-row", children: debuggerGranted ? u2("button", { type: "button", class: "btn-secondary", "data-action": "toggle-debugger", onClick: () => changeSettings({ ...settings, useDebugger: !useDebugger }), children: useDebugger ? "Disable debugger" : "Enable debugger" }) : u2("button", { type: "button", class: "btn-secondary", "data-action": "enable-debugger", onClick: () => {
34217
- if (props.debuggerPermission?.request) {
34218
- props.debuggerPermission.request();
34219
- } else if (props.onHelp) {
34220
- props.onHelp("debugger-permission");
34221
- }
34222
- }, children: "Enable in Help" }) })] }), u2("hr", { class: "settings-divider" }), u2(AppearanceControls, { prefs: uiPrefs, onChange: setUiPrefs, movable: Boolean(props.movable || props.modes), moved: props.movable ? Boolean(place) : Boolean(props.modes && uiPrefs.devPlace) }), u2("hr", { class: "settings-divider" }), u2("div", { class: "stack", children: [u2("span", { class: "field-label", children: "Default file format" }), u2("div", { class: "settings-grid", children: [u2("label", { class: "field-stack", children: [u2("span", { class: "dim", children: "Units" }), u2(Select, { "data-setting": "units", value: settings.units ?? "px", onChange: (e6) => changeSettings({ ...settings, units: e6.currentTarget.value }), children: [u2("option", { value: "px", children: "px" }), u2("option", { value: "rem", children: "rem" }), u2("option", { value: "both", children: "both" })] })] }), u2("label", { class: "field-stack", children: [u2("span", { class: "dim", children: "Colours" }), u2(Select, { "data-setting": "colors", value: settings.colors ?? "hex", onChange: (e6) => changeSettings({ ...settings, colors: e6.currentTarget.value }), children: [u2("option", { value: "hex", children: "hex" }), u2("option", { value: "rgb", children: "rgb" }), u2("option", { value: "hsl", children: "hsl" }), u2("option", { value: "oklch", children: "oklch" })] })] }), u2("label", { class: "field-stack", title: "The file's source line: the page address, or only the site name", children: [u2("span", { class: "dim", children: "Source" }), u2(Select, { "data-setting": "source", value: settings.source ?? "page", onChange: (e6) => changeSettings({ ...settings, source: e6.currentTarget.value }), children: [u2("option", { value: "page", children: "page address" }), u2("option", { value: "site", children: "site name only" })] })] }), u2("label", { class: "field-stack", title: "The file you copy, download and export: Luci's tables, DESIGN.md for Google Stitch, Tailwind CSS, or CSS Variables", children: [u2("span", { class: "dim", children: "File" }), u2(Select, { "data-setting": "style", value: settings.style ?? "luci", onChange: (e6) => changeSettings({ ...settings, style: e6.currentTarget.value }), children: [u2("option", { value: "luci", children: "Luci tables" }), u2("option", { value: "stitch", children: "DESIGN.md (Stitch)" }), u2("option", { value: "tailwind", children: "Tailwind v4 (@theme)" }), u2("option", { value: "tailwind-v3", children: "Tailwind v3 (config.js)" }), u2("option", { value: "css-vars", children: "CSS Variables (tokens.css)" })] })] })] })] }), u2("hr", { class: "settings-divider" }), u2("div", { class: "stack", children: [u2("span", { class: "field-label", children: "Keys" }), u2("div", { class: "shortcut-list", "data-part": "keys", children: [u2("span", { children: TOOLS.map((t3) => u2(S, { children: [u2("kbd", { class: "kbd", children: KEYS[t3] }), " "] })) }), u2("span", { class: "dim", children: "Component, Text, Colour, Spacing" }), u2("span", { children: [u2("kbd", { class: "kbd", children: KEYS.page }), " ", u2("kbd", { class: "kbd", children: KEYS.check })] }), u2("span", { class: "dim", children: "Whole page, Check a build" }), u2("span", { children: [u2("kbd", { class: "kbd", children: KEYS.basket }), " ", u2("kbd", { class: "kbd", children: KEYS.menu })] }), u2("span", { class: "dim", children: "Basket, this menu" }), u2("span", { children: [u2("kbd", { class: "kbd", children: "\u2191" }), " ", u2("kbd", { class: "kbd", children: "\u2193" })] }), u2("span", { class: "dim", children: "Wider or narrower selection" }), u2("span", { children: u2("kbd", { class: "kbd", children: "Enter" }) }), u2("span", { class: "dim", children: "Pick, then take This one" }), u2("span", { children: u2("kbd", { class: "kbd", children: "Esc" }) }), u2("span", { class: "dim", children: "Stop picking, or close the panel" })] })] })] })), !settingsOpen && pageBusy && !basketOpen && u2("div", { class: "panel", children: u2(Loading, { sleep: true, text: COPY.capture.readingPage, step: pageStep }) }), !settingsOpen && basketOpen && u2("div", { class: "panel", role: "dialog", "aria-label": "Basket", "data-part": "basket", children: comparison ? u2(S, { children: [u2("h2", { children: "Compare" }), u2("p", { class: "hint", "data-part": "compare-summary", children: ["A: ", comparison.result.a.name, " (", sourceLabel(comparison.items[0]), comparison.result.a.note ? `, your note: ${comparison.result.a.note}` : "", "). B: ", comparison.result.b.name, " (", sourceLabel(comparison.items[1]), comparison.result.b.note ? `, your note: ${comparison.result.b.note}` : "", "). ", comparison.result.same.length, " value", comparison.result.same.length === 1 ? " is" : "s are", " the same; ", comparison.result.differences.length, " differ", comparison.result.differences.length === 1 ? "s" : "", "."] }), comparison.result.differences.length ? u2("div", { class: "compare-scroll", children: u2("table", { class: "compare", "data-part": "compare-table", children: [u2("thead", { children: u2("tr", { children: [u2("th", { class: "col-what", children: "What" }), u2("th", { class: "col-a", children: "A" }), u2("th", { class: "col-b", children: "B" })] }) }), u2("tbody", { children: comparison.result.differences.map((d3) => u2("tr", { children: [u2("td", { class: "col-what", children: d3.what }), u2("td", { class: "col-a", children: d3.a }), u2("td", { class: "col-b", children: d3.b })] })) })] }) }) : u2("p", { class: "hint", children: "No differences: every value compared is the same." }), u2("div", { class: "row actions", children: [u2(Button, { variant: "primary", size: "md", iconOnly: true, tipAbove: true, tipAlign: "left", icon: copied ? CircleCheck : ClipboardCopy, label: copied ? COPY.common.copied : "Copy the comparison", "data-action": "copy-compare", onClick: () => void copyText(formatCompareReport(comparison.result, { a: comparison.items[0].name, b: comparison.items[1].name })) }), u2("button", { type: "button", class: "btn-secondary", "data-action": "compare-back", onClick: () => {
34292
+ } })] })] }), props.debuggerPermission && u2("div", { class: "project-card", "data-part": "debugger-permission", children: [u2("div", { class: "project-header", children: [u2("span", { class: `status-dot ${debuggerGranted && useDebugger ? "online" : "offline"}`, "aria-hidden": "true" }), u2("div", { class: "project-info", children: [u2("span", { class: "project-name", children: debuggerGranted ? useDebugger ? "Debugger: on" : "Debugger: off" : "Debugger: not available" }), u2("span", { class: "project-hint dim", children: debuggerGranted ? useDebugger ? "Luci uses it during a capture for exact states and widths, then detaches it" : "Luci never attaches it: states come from stylesheet rules, widths from a hidden frame" : "Chrome is not letting Luci use it: states come from stylesheet rules, widths from a hidden frame" })] })] }), u2("div", { class: "project-port-row", children: [debuggerGranted && u2("button", { type: "button", class: "btn-secondary", "data-action": "toggle-debugger", onClick: () => changeSettings({ ...settings, useDebugger: !useDebugger }), children: useDebugger ? "Don't use the debugger" : "Use the debugger" }), u2("button", { type: "button", class: "btn-secondary", "data-action": "debugger-help", onClick: openDebuggerHelp, children: "About the debugger" })] })] }), u2("hr", { class: "settings-divider" }), u2(AppearanceControls, { prefs: uiPrefs, onChange: setUiPrefs, movable: Boolean(props.movable || props.modes), moved: props.movable ? Boolean(place) : Boolean(props.modes && uiPrefs.devPlace) }), u2("hr", { class: "settings-divider" }), u2("div", { class: "stack", children: [u2("span", { class: "field-label", children: "Default file format" }), u2("div", { class: "settings-grid", children: [u2("label", { class: "field-stack", children: [u2("span", { class: "dim", children: "Units" }), u2(Select, { "data-setting": "units", value: settings.units ?? "px", onChange: (e6) => changeSettings({ ...settings, units: e6.currentTarget.value }), children: [u2("option", { value: "px", children: "px" }), u2("option", { value: "rem", children: "rem" }), u2("option", { value: "both", children: "both" })] })] }), u2("label", { class: "field-stack", children: [u2("span", { class: "dim", children: "Colours" }), u2(Select, { "data-setting": "colors", value: settings.colors ?? "hex", onChange: (e6) => changeSettings({ ...settings, colors: e6.currentTarget.value }), children: [u2("option", { value: "hex", children: "hex" }), u2("option", { value: "rgb", children: "rgb" }), u2("option", { value: "hsl", children: "hsl" }), u2("option", { value: "oklch", children: "oklch" })] })] }), u2("label", { class: "field-stack", title: "The file's source line: the page address, or only the site name", children: [u2("span", { class: "dim", children: "Source" }), u2(Select, { "data-setting": "source", value: settings.source ?? "page", onChange: (e6) => changeSettings({ ...settings, source: e6.currentTarget.value }), children: [u2("option", { value: "page", children: "page address" }), u2("option", { value: "site", children: "site name only" })] })] }), u2("label", { class: "field-stack", title: "The file you copy, download and export: Luci's tables, DESIGN.md for Google Stitch, Tailwind CSS, or CSS Variables", children: [u2("span", { class: "dim", children: "File" }), u2(Select, { "data-setting": "style", value: settings.style ?? "luci", onChange: (e6) => changeSettings({ ...settings, style: e6.currentTarget.value }), children: [u2("option", { value: "luci", children: "Luci tables" }), u2("option", { value: "stitch", children: "DESIGN.md (Stitch)" }), u2("option", { value: "tailwind", children: "Tailwind v4 (@theme)" }), u2("option", { value: "tailwind-v3", children: "Tailwind v3 (config.js)" }), u2("option", { value: "css-vars", children: "CSS Variables (tokens.css)" })] })] })] })] }), u2("hr", { class: "settings-divider" }), u2("div", { class: "stack", children: [u2("span", { class: "field-label", children: "Keys" }), u2("div", { class: "shortcut-list", "data-part": "keys", children: [u2("span", { children: TOOLS.map((t3) => u2(S, { children: [u2("kbd", { class: "kbd", children: KEYS[t3] }), " "] })) }), u2("span", { class: "dim", children: "Component, Text, Colour, Spacing" }), u2("span", { children: [u2("kbd", { class: "kbd", children: KEYS.page }), " ", u2("kbd", { class: "kbd", children: KEYS.check })] }), u2("span", { class: "dim", children: "Whole page, Check a build" }), u2("span", { children: [u2("kbd", { class: "kbd", children: KEYS.basket }), " ", u2("kbd", { class: "kbd", children: KEYS.menu })] }), u2("span", { class: "dim", children: "Basket, this menu" }), u2("span", { children: [u2("kbd", { class: "kbd", children: "\u2191" }), " ", u2("kbd", { class: "kbd", children: "\u2193" })] }), u2("span", { class: "dim", children: "Wider or narrower selection" }), u2("span", { children: u2("kbd", { class: "kbd", children: "Enter" }) }), u2("span", { class: "dim", children: "Pick, then take This one" }), u2("span", { children: u2("kbd", { class: "kbd", children: "Esc" }) }), u2("span", { class: "dim", children: "Stop picking, or close the panel" })] })] })] })), !settingsOpen && pageBusy && !basketOpen && u2("div", { class: "panel", children: u2(Loading, { sleep: true, text: COPY.capture.readingPage, step: pageStep }) }), !settingsOpen && basketOpen && u2("div", { class: "panel", role: "dialog", "aria-label": "Basket", "data-part": "basket", children: comparison ? u2(S, { children: [u2("h2", { children: "Compare" }), u2("p", { class: "hint", "data-part": "compare-summary", children: ["A: ", comparison.result.a.name, " (", sourceLabel(comparison.items[0]), comparison.result.a.note ? `, your note: ${comparison.result.a.note}` : "", "). B: ", comparison.result.b.name, " (", sourceLabel(comparison.items[1]), comparison.result.b.note ? `, your note: ${comparison.result.b.note}` : "", "). ", comparison.result.same.length, " value", comparison.result.same.length === 1 ? " is" : "s are", " the same; ", comparison.result.differences.length, " differ", comparison.result.differences.length === 1 ? "s" : "", "."] }), comparison.result.differences.length ? u2("div", { class: "compare-scroll", children: u2("table", { class: "compare", "data-part": "compare-table", children: [u2("thead", { children: u2("tr", { children: [u2("th", { class: "col-what", children: "What" }), u2("th", { class: "col-a", children: "A" }), u2("th", { class: "col-b", children: "B" })] }) }), u2("tbody", { children: comparison.result.differences.map((d3) => u2("tr", { children: [u2("td", { class: "col-what", children: d3.what }), u2("td", { class: "col-a", children: d3.a }), u2("td", { class: "col-b", children: d3.b })] })) })] }) }) : u2("p", { class: "hint", children: "No differences: every value compared is the same." }), u2("div", { class: "row actions", children: [u2(Button, { variant: "primary", size: "md", iconOnly: true, tipAbove: true, tipAlign: "left", icon: copied ? CircleCheck : ClipboardCopy, label: copied ? COPY.common.copied : "Copy the comparison", "data-action": "copy-compare", onClick: () => void copyText(formatCompareReport(comparison.result, { a: comparison.items[0].name, b: comparison.items[1].name })) }), u2("button", { type: "button", class: "btn-secondary", "data-action": "compare-back", onClick: () => {
34223
34293
  setComparison(null);
34224
34294
  setCopied(false);
34225
- }, children: "Back to the basket" })] })] }) : basketExport && exported ? u2(S, { children: [u2("h2", { children: basketExport.title }), u2("div", { class: "file", "data-part": "file-name", children: exported.fileName }), u2("pre", { "data-part": "preview", children: exported.markdown }), u2("div", { class: "row actions", children: [u2(Button, { variant: "primary", size: "md", iconOnly: true, tipAbove: true, tipAlign: "left", icon: copied ? CircleCheck : ClipboardCopy, label: copied ? COPY.common.copied : COPY.capture.actions.copy, "data-action": "copy", onClick: () => void copyText(exported.markdown) }), u2(Button, { variant: "secondary", size: "md", iconOnly: true, tipAbove: true, icon: Download, label: COPY.capture.actions.download, "data-action": "download", onClick: () => downloadText(exported.fileName, exported.markdown) }), props.saveToProject && u2(SaveButton, { save: () => props.saveToProject(exported.fileName, exported.markdown), projectName: activeProject?.name }, exported.fileName), u2("button", { type: "button", class: "btn-secondary", "data-action": "basket-back", onClick: () => {
34295
+ }, children: "Back to the basket" })] })] }) : basketExport && exported ? u2(S, { children: [u2("h2", { children: basketExport.title }), u2("div", { class: "file", "data-part": "file-name", children: exported.fileName }), u2("pre", { "data-part": "preview", children: exported.markdown }), u2("div", { class: "row actions", children: [u2(Button, { variant: "primary", size: "md", iconOnly: true, tipAbove: true, tipAlign: "left", icon: copied ? CircleCheck : ClipboardCopy, label: copied ? COPY.common.copied : COPY.capture.actions.copy, "data-action": "copy", onClick: () => void copyText(exported.markdown) }), u2(Button, { variant: "secondary", size: "md", iconOnly: true, tipAbove: true, icon: Download, label: COPY.capture.actions.download, "data-action": "download", onClick: () => downloadText(exported.fileName, exported.markdown) }), props.saveToProject && u2(SaveButton, { save: () => props.saveToProject(exported.fileName, exported.markdown), onDownload: () => downloadText(exported.fileName, exported.markdown), projectName: activeProject?.name }, exported.fileName), u2("button", { type: "button", class: "btn-secondary", "data-action": "basket-back", onClick: () => {
34226
34296
  setBasketExport(null);
34227
34297
  setCopied(false);
34228
34298
  }, children: "Back to the basket" })] })] }) : u2(S, { children: [u2("h2", { children: "Basket" }), !basket.length ? u2(EmptyState, { pose: "box", title: COPY.capture.basketEmpty.title, body: COPY.capture.basketEmpty.body, part: "basket-empty" }) : u2("ul", { class: "items", children: basket.map((item) => u2("li", { "data-item": item.id, children: [u2("span", { class: "meta", children: [groupOf(item.capture), " \xB7 ", sourceLabel(item)] }), basket.length > 1 && u2("label", { class: "compare-pick", title: "Pick two items to compare them", children: [u2("input", { type: "checkbox", "data-item-compare": true, checked: compareIds.includes(item.id), onChange: (e6) => setCompareIds((ids) => e6.currentTarget.checked ? [...ids.filter((i3) => i3 !== item.id), item.id].slice(-2) : ids.filter((i3) => i3 !== item.id)) }), "Compare"] }), u2("input", { type: "text", "aria-label": "Name", "data-item-name": true, value: item.name, onChange: (e6) => saveBasket(renameInBasket(basket, item.id, e6.currentTarget.value)) }), u2("span", { class: "row", children: [u2("button", { type: "button", class: "btn-secondary", "data-item-export": true, onClick: () => setBasketExport({ title: item.name, item }), children: "Export" }), props.saveToProject && u2("button", { type: "button", class: "btn-secondary", "data-item-send-project": true, title: activeProject?.name ? `Save this capture to ${activeProject.name}/.luci/design/` : "Save this capture to .luci/design/ in your project", onClick: () => void sendOneToProject(item), children: itemSent[item.id]?.error ? "Failed" : itemSent[item.id] ? "Saved" : "Send to project" }), u2("button", { class: "btn-danger", type: "button", "data-item-remove": true, "aria-label": `Remove ${item.name}`, onClick: () => saveBasket(removeFromBasket(basket, item.id)), children: "Remove" })] }), u2("textarea", { "data-item-note": true, "aria-label": `Note for your agent about ${item.name}`, placeholder: "Note for your agent (optional). What to use it for, what to change.", value: item.capture.instructions ?? "", onChange: (e6) => saveBasket(noteInBasket(basket, item.id, e6.currentTarget.value)) })] })) }), mergeable.length > 0 && u2("div", { class: "stack", "data-part": "merge", children: [u2("span", { class: "dim", children: ["One site, several pages: ", mergeable.map((g2) => `${g2.type} from ${g2.pages.length} pages of ${g2.site}`).join(", "), ". Merge them into one site file. Each row says which pages use it; values that differ are listed as conflicts."] }), u2("span", { class: "row", children: u2("button", { type: "button", class: "btn-secondary", "data-action": "merge-systems", onClick: mergeSystemsNow, children: ["Merge into site system", mergeable.length === 1 ? "" : "s", " (", mergeable.length, ")"] }) })] }), mergedNote && u2("p", { class: "hint", "data-part": "merged", children: mergedNote }), compareItems && u2("div", { class: "row", "data-part": "compare-pick", children: [u2("span", { class: "dim", children: [compareItems[0].name, " and ", compareItems[1].name] }), u2("button", { type: "button", class: "btn-secondary", "data-action": "compare", onClick: () => {
@@ -34231,7 +34301,7 @@ button .spinner { display: inline-block; width: 12px; height: 12px; vertical-ali
34231
34301
  }, children: "Compare the two" })] }), u2("div", { class: "row", children: [u2("button", { type: "button", class: "btn-primary", "data-action": "export-all", disabled: !basket.length, onClick: () => setBasketExport({ title: `All ${basket.length} items, one file` }), children: "Export all as one file" }), props.saveToProject && u2("button", { type: "button", class: "btn-secondary", "data-action": "send-all-project", disabled: !basket.length || basketSending, title: activeProject?.name ? `Save each capture in the basket to ${activeProject.name}/.luci/design/` : "Save each capture in the basket to .luci/design/ in your project", onClick: () => void sendAllToProject(), children: basketSending ? u2(S, { children: [u2(ButtonSpinner, {}), "Sending\u2026"] }) : "Send all to project" }), basket.length > 0 && (confirmClear ? u2("button", { type: "button", class: "btn-danger", "data-action": "clear-basket-confirm", onClick: () => {
34232
34302
  saveBasket([]);
34233
34303
  setConfirmClear(false);
34234
- }, children: "Yes, empty the basket" }) : u2("button", { type: "button", class: "btn-danger", "data-action": "clear-basket", onClick: () => setConfirmClear(true), children: "Empty basket" }))] }), basketStatus && u2("p", { class: basketStatus.error ? "error" : "hint", "data-part": "basket-status", children: basketStatus.text })] }) }), !settingsOpen && (picking || dropperOpen || pixelMode || imageMode) && tool && u2("div", { class: `sub with-luci${imageMode ? " image-drop" : ""}`, "data-part": "tool-hint", role: "note", ...imageMode ? {
34304
+ }, children: "Yes, empty the basket" }) : u2("button", { type: "button", class: "btn-danger", "data-action": "clear-basket", onClick: () => setConfirmClear(true), children: "Empty basket" }))] }), basketStatus && u2("div", { class: "row", "data-part": "basket-status", children: [u2("p", { class: basketStatus.error ? "error" : "hint", style: { margin: 0 }, children: basketStatus.text }), basketStatus.error && basketStatus.download && u2("button", { type: "button", class: "btn-secondary", "data-action": "download-fallback", onClick: basketStatus.download, children: "Download file instead" })] })] }) }), !settingsOpen && (picking || dropperOpen || pixelMode || imageMode) && tool && u2("div", { class: `sub with-luci${imageMode ? " image-drop" : ""}`, "data-part": "tool-hint", role: "note", ...imageMode ? {
34235
34305
  onDragOver: (e6) => {
34236
34306
  e6.preventDefault();
34237
34307
  },
@@ -34252,7 +34322,7 @@ button .spinner { display: inline-block; width: 12px; height: 12px; vertical-ali
34252
34322
  const f6 = e6.currentTarget.files?.[0];
34253
34323
  if (f6)
34254
34324
  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) => {
34325
+ } }), 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
34326
  setWatchCheck(on);
34257
34327
  setAutoNote(null);
34258
34328
  if (!on)
@@ -34275,13 +34345,18 @@ button .spinner { display: inline-block; width: 12px; height: 12px; vertical-ali
34275
34345
  openBasket();
34276
34346
  else
34277
34347
  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) => {
34348
+ } }), 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, onDownload: sectionFiles.length ? downloadZip : download, 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) => {
34349
+ if (e6.pointerType !== "touch")
34350
+ pickMove(e6.clientX, e6.clientY);
34351
+ }, onPointerDown: (e6) => {
34279
34352
  e6.preventDefault();
34280
34353
  e6.currentTarget.setPointerCapture?.(e6.pointerId);
34281
34354
  pickDown(e6.clientX, e6.clientY);
34282
34355
  }, onPointerUp: (e6) => {
34283
34356
  e6.preventDefault();
34284
- pickUp(e6.clientX, e6.clientY);
34357
+ pickUp(e6.clientX, e6.clientY, e6.pointerType === "touch");
34358
+ }, onPointerCancel: () => {
34359
+ drag.current = null;
34285
34360
  }, 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
34361
  const left = pixelHover.x + 20 + LOUPE_PX > win.innerWidth ? pixelHover.x - 20 - LOUPE_PX : pixelHover.x + 20;
34287
34362
  const top = pixelHover.y + 20 + LOUPE_PX + 36 > win.innerHeight ? pixelHover.y - 20 - LOUPE_PX - 36 : pixelHover.y + 20;
@@ -35150,6 +35225,8 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
35150
35225
  left: `${Math.max(12, Math.min(x3, win.innerWidth - 376))}px`,
35151
35226
  top: `${Math.max(12, Math.min(y3 + 12, win.innerHeight - 320))}px`
35152
35227
  });
35228
+ var NARROW = 640;
35229
+ var noteAt = (win, x3, y3) => win.innerWidth < NARROW ? {} : popAt(win, x3, y3);
35153
35230
  var PAUSE_CSS = "*, *::before, *::after { animation-play-state: paused !important; transition: none !important; caret-color: transparent !important; }";
35154
35231
  function copyScope(items2) {
35155
35232
  const fresh = items2.filter((i3) => i3.status === "pending").length;
@@ -35163,6 +35240,8 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
35163
35240
  const [error62, setError] = d2(null);
35164
35241
  const [annotating, setAnnotating] = d2(false);
35165
35242
  const [candidate, setCandidate] = d2(null);
35243
+ const [tapped, setTapped] = d2(false);
35244
+ const touchPress = A2(false);
35166
35245
  const [draft, setDraft] = d2(null);
35167
35246
  const [openRef, setOpenRef] = d2(null);
35168
35247
  const [panel, setPanel] = d2(null);
@@ -35250,6 +35329,7 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
35250
35329
  else if (annotating) {
35251
35330
  setAnnotating(false);
35252
35331
  setCandidate(null);
35332
+ setTapped(false);
35253
35333
  } else
35254
35334
  return;
35255
35335
  e6.preventDefault();
@@ -35288,13 +35368,40 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
35288
35368
  setOpenRef(null);
35289
35369
  setPanel(null);
35290
35370
  setSelection(null);
35371
+ setTapped(false);
35372
+ if (touchPress.current)
35373
+ setCandidate(null);
35291
35374
  setDraft({ el, at: { x: x3, y: y3 }, ...selectedText ? { selectedText } : {} });
35292
35375
  };
35293
- const pickMove = (e6) => setCandidate(elementAt(doc, e6.clientX, e6.clientY));
35376
+ const pickDown = (e6) => {
35377
+ touchPress.current = e6.pointerType === "touch";
35378
+ };
35379
+ const pickMove = (e6) => {
35380
+ if (e6.pointerType !== "touch") {
35381
+ setCandidate(elementAt(doc, e6.clientX, e6.clientY));
35382
+ setTapped(false);
35383
+ }
35384
+ };
35385
+ const pickLeave = (e6) => {
35386
+ if (e6.pointerType !== "touch" && !tapped)
35387
+ setCandidate(null);
35388
+ };
35294
35389
  const pickClick = (e6) => {
35295
35390
  const el = elementAt(doc, e6.clientX, e6.clientY);
35296
- if (el)
35297
- startDraft(el, e6.clientX, e6.clientY);
35391
+ if (!el)
35392
+ return;
35393
+ if (touchPress.current && !(tapped && el === candidate)) {
35394
+ setCandidate(el);
35395
+ setTapped(true);
35396
+ return;
35397
+ }
35398
+ startDraft(el, e6.clientX, e6.clientY);
35399
+ };
35400
+ const noteTapped = () => {
35401
+ if (!candidate)
35402
+ return;
35403
+ const r4 = candidate.getBoundingClientRect();
35404
+ startDraft(candidate, r4.left + r4.width / 2, r4.bottom);
35298
35405
  };
35299
35406
  const pickWheel = (e6) => {
35300
35407
  const under = elementAt(doc, e6.clientX, e6.clientY);
@@ -35375,6 +35482,7 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
35375
35482
  const toggleAnnotate = () => {
35376
35483
  setAnnotating((a3) => !a3);
35377
35484
  setCandidate(null);
35485
+ setTapped(false);
35378
35486
  setDraft(null);
35379
35487
  };
35380
35488
  useShortcuts(doc, [
@@ -35389,7 +35497,7 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
35389
35497
  setChecking(false);
35390
35498
  setError(why);
35391
35499
  });
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) => {
35500
+ }, 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
35501
  const pos = markerPos(item);
35394
35502
  if (!pos)
35395
35503
  return null;
@@ -35398,9 +35506,9 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
35398
35506
  setOpenRef((r4) => r4 === item.ref ? null : item.ref);
35399
35507
  setDraft(null);
35400
35508
  }, 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 && (() => {
35509
+ }), 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
35510
  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) });
35511
+ 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
35512
  })(), 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
35513
  setPanel(null);
35406
35514
  setOpenRef(ref2);
@@ -35425,7 +35533,7 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
35425
35533
  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
35534
  if (e6.key === "Enter" && (e6.metaKey || e6.ctrlKey))
35427
35535
  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" })] })] });
35536
+ } }), 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
35537
  }
35430
35538
  function NoteDetails(props) {
35431
35539
  const { item, backend, act } = props;
@@ -35505,7 +35613,17 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
35505
35613
 
35506
35614
  /* The note popover */
35507
35615
  .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; }
35616
+ background: var(--luci-color-surface); border-radius: var(--luci-radius-lg); box-shadow: var(--luci-elevation); overflow-wrap: break-word; word-break: break-word; }
35617
+ /* Intent and priority: a label over its segmented choice */
35618
+ .note-choice { display: flex; flex-direction: column; gap: var(--luci-space-4); }
35619
+ .note-choice .seg { flex-wrap: wrap; }
35620
+ /* On a phone a note is a sheet above the bar, full width; cards under it step aside */
35621
+ @media (max-width: 639px) {
35622
+ .pop { left: 8px; right: 8px; width: auto; max-width: none; top: auto;
35623
+ bottom: calc(var(--luci-y, 12px) + var(--luci-bar-h, 64px) + 8px);
35624
+ max-height: calc(100vh - var(--luci-y, 12px) - var(--luci-bar-h, 64px) - 24px); overflow-y: auto; overscroll-behavior: contain; }
35625
+ .luci-theme:has(> .pop) > .sub { display: none; }
35626
+ }
35509
35627
  .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
35628
  .pop textarea { min-height: 72px; }
35511
35629
  .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 +35645,7 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
35527
35645
  .split > button:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
35528
35646
  .luci-theme .bar .split .caret { --luci-btn-h: 48px; width: 28px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
35529
35647
  .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); }
35648
+ background: var(--luci-color-surface-raised); border-radius: var(--luci-radius-md); box-shadow: var(--luci-elevation); }
35531
35649
  .luci-theme[data-dock="left"] .menu { right: auto; left: var(--luci-space-12); }
35532
35650
  .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
35651
  border-radius: var(--luci-radius-sm); text-align: left; white-space: normal; }
@@ -36667,6 +36785,7 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
36667
36785
  const [scale, setScale] = d2(null);
36668
36786
  const [selecting, setSelecting] = d2(true);
36669
36787
  const [hovered, setHovered] = d2(null);
36788
+ const placeTouch = A2(false);
36670
36789
  const [selected, setSelected] = d2(null);
36671
36790
  const [drag, setDrag] = d2(null);
36672
36791
  const [drop, setDrop] = d2(null);
@@ -36989,7 +37108,7 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
36989
37108
  const insBox = selIns ? p6.insertRect(selIns.id) : null;
36990
37109
  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
37110
  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: () => {
37111
+ 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
37112
  setPlacing(null);
36994
37113
  setPlaceHover(null);
36995
37114
  }, children: "Cancel" }) })] });
@@ -37085,15 +37204,27 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
37085
37204
  } }), 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
37205
  p6.reset();
37087
37206
  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) => {
37207
+ } }), 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) => {
37208
+ placeTouch.current = e6.pointerType === "touch";
37209
+ }, onPointerMove: (e6) => {
37210
+ if (e6.pointerType === "touch")
37211
+ return;
37089
37212
  const el = elementAt(doc, e6.clientX, e6.clientY);
37090
37213
  setPlaceHover(el && !isLuciUi(el) ? placeTarget(doc, el, e6.clientX, e6.clientY) : null);
37091
37214
  }, onClick: (e6) => {
37092
37215
  const el = elementAt(doc, e6.clientX, e6.clientY);
37093
37216
  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` } }), (() => {
37217
+ if (!t3)
37218
+ return;
37219
+ if (placeTouch.current && !(placeHover && placeHover.anchor === t3.anchor && placeHover.position === t3.position)) {
37220
+ setPlaceHover(t3);
37221
+ return;
37222
+ }
37223
+ placeAt(t3.anchor, t3.position);
37224
+ }, onWheel: pickWheel, onPointerLeave: (e6) => {
37225
+ if (e6.pointerType !== "touch")
37226
+ setPlaceHover(null);
37227
+ } }), 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
37228
  const r4 = placeHover.line ?? placeHover.outline;
37098
37229
  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
37230
  })()] }), p6.inserts().map((ins) => {
@@ -37105,11 +37236,24 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
37105
37236
  const above = insBox.top >= 34;
37106
37237
  const y3 = above ? insBox.top - 32 : insBox.bottom + 6;
37107
37238
  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) => {
37239
+ })(), 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) => {
37240
+ placeTouch.current = e6.pointerType === "touch";
37241
+ }, onPointerMove: (e6) => {
37242
+ if (e6.pointerType !== "touch")
37243
+ setHovered(elementAt(doc, e6.clientX, e6.clientY));
37244
+ }, onClick: (e6) => {
37109
37245
  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` } }), (() => {
37246
+ if (!el || isLuciUi(el))
37247
+ return;
37248
+ if (placeTouch.current && el !== hovered) {
37249
+ setHovered(el);
37250
+ return;
37251
+ }
37252
+ select(el);
37253
+ }, onWheel: pickWheel, onPointerLeave: (e6) => {
37254
+ if (e6.pointerType !== "touch")
37255
+ setHovered(null);
37256
+ } }), 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
37257
  const above = box.top >= 34;
37114
37258
  const y3 = above ? box.top - 32 : box.bottom + 6;
37115
37259
  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 +37371,7 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
37227
37371
  const root = host.attachShadow({ mode: "open" });
37228
37372
  root.innerHTML = `<style>${TOKENS_CSS}
37229
37373
  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)}
37374
+ 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
37375
  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
37376
  @keyframes s{to{transform:rotate(360deg)}}
37233
37377
  @media (prefers-reduced-motion: reduce){i{animation:none}}
@@ -37385,6 +37529,19 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
37385
37529
  host.setAttribute("data-v", place.v);
37386
37530
  host.style.setProperty("--luci-x", `${x3}px`);
37387
37531
  host.style.setProperty("--luci-y", `${y3}px`);
37532
+ if (bar?.offsetHeight) host.style.setProperty("--luci-bar-h", `${bar.offsetHeight}px`);
37533
+ };
37534
+ let barWatch = null;
37535
+ const watchBar = (host) => {
37536
+ barWatch?.disconnect();
37537
+ barWatch = null;
37538
+ const bar = host.shadowRoot?.querySelector(".bar");
37539
+ const RO = win.ResizeObserver;
37540
+ if (!bar || !RO) return;
37541
+ barWatch = new RO(() => {
37542
+ if (current?.host === host) applyPlace(host);
37543
+ });
37544
+ barWatch.observe(bar);
37388
37545
  };
37389
37546
  let drag = null;
37390
37547
  let justMoved = false;
@@ -37566,6 +37723,7 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
37566
37723
  });
37567
37724
  }
37568
37725
  applyPlace(current.host);
37726
+ watchBar(current.host);
37569
37727
  draggable(current.host);
37570
37728
  if (how.grow) grow(current.host);
37571
37729
  };
@@ -37582,6 +37740,7 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
37582
37740
  doc.removeEventListener(UI_PREFS_EVENT, followPrefs);
37583
37741
  win.removeEventListener("resize", onResize);
37584
37742
  stopDrag();
37743
+ barWatch?.disconnect();
37585
37744
  current?.destroy();
37586
37745
  current = null;
37587
37746
  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.8",
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.8",
21
+ "@luci-dev/feedback": "0.5.8",
22
+ "@luci-dev/format": "0.5.8",
23
+ "@luci-dev/ui": "0.5.8"
24
24
  },
25
25
  "publishConfig": {
26
26
  "access": "public"