@luci-dev/toolbar 0.5.4 → 0.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -15,7 +15,9 @@ What it adds: a few lines between `luci:toolbar` comments, before `</body>` of t
15
15
  <script src="http://127.0.0.1:4545/toolbar.js"></script>
16
16
  ```
17
17
 
18
- 3. Optional: connect your agent to `luci-mcp` (for example `claude mcp add luci -- node <luci>/packages/mcp/dist/bin.js`), so it can read the notes and saved captures itself. Copying the prompt works without it.
18
+ 3. Optional: connect your agent to `luci-mcp` (for Claude Code, from the project folder: `claude mcp add luci -- npx -y @luci-dev/mcp@latest`), so it can read the notes and saved captures itself. Copying the prompt works without it.
19
+
20
+ **Updating:** the toolbar comes from the Luci you have installed. After updating Luci (`npm install -g @luci-dev/cli@latest`, or nothing with `npx @luci-dev/cli@latest`), stop `luci serve`, start it again and reload your app. The script tag in your app stays as it is.
19
21
 
20
22
  `luci serve` listens on 127.0.0.1 only and answers pages on this machine only. Without it, the toolbar still works: notes stay in this browser (for this app's address) and the prompt can be copied. The **This browser** badge says why it is not connected; click it after starting `luci serve`.
21
23
 
@@ -33,6 +35,15 @@ What it adds: a few lines between `luci:toolbar` comments, before `</body>` of t
33
35
 
34
36
  With React, Vue 3 or Svelte 4/5 in development mode, each note records the components around the element (`App > Pricing > PlanCard`) and its source file (with the JSX line through source maps in React, the `.svelte` file and line from `__svelte_meta` in Svelte, and the `.vue` SFC file from `__vueParentComponent` in Vue 3). In a production build, notes keep the selector and text.
35
37
 
38
+ ## On a phone
39
+
40
+ Open your app on a phone (or a narrow window, under 640 px) and the toolbar adapts:
41
+
42
+ - The bar spans the screen in two rows: Luci, the mode switch and Close on top, the mode's tools below. Cards open above it, never under it.
43
+ - A finger has no hover, so picking takes two taps: the first outlines and names the element, the second (on the same element) acts on it. In Annotate, the card above the bar also offers **Add note** and **Parent**. The page still scrolls while you pick.
44
+ - A note opens as a sheet just above the bar. Intent and priority are one tap each.
45
+ - Tooltips show for keyboard focus only.
46
+
36
47
  ## Modes
37
48
 
38
49
  The switch first in the bar, **Feedback · Layout · Capture**, is in the same place in every mode. The bar sits at the bottom of the window, in the corner of Luci's button (right, or left with **Dock: Left**), and grows out of the button when you open it. While nothing in a mode is active, a card above the bar says what the mode is for and its keys.
@@ -1 +1 @@
1
- {"version":3,"file":"devToolbar.d.ts","sourceRoot":"","sources":["../src/devToolbar.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAEU,KAAK,WAAW,EAAE,KAAK,SAAS,EAChD,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EASL,KAAK,eAAe,EAEpB,KAAK,QAAQ,EACd,MAAM,oBAAoB,CAAC;AAE5B,eAAO,MAAM,cAAc,0BAA0B,CAAC;AACtD,eAAO,MAAM,YAAY,kBAAkB,CAAC;AAC5C,MAAM,MAAM,IAAI,GAAG,UAAU,GAAG,QAAQ,GAAG,SAAS,CAAC;AACrD,2CAA2C;AAC3C,eAAO,MAAM,KAAK;aACd,EAAE,EAAE,UAAU;aAAE,KAAK,EAAE,UAAU;aAAE,KAAK,EAAE,yDAAyD;;aACnG,EAAE,EAAE,QAAQ;aAAE,KAAK,EAAE,QAAQ;aAAE,KAAK,EAAE,4FAA4F;;aAClI,EAAE,EAAE,SAAS;aAAE,KAAK,EAAE,SAAS;aAAE,KAAK,EAAE,oEAAoE;EACtG,CAAC;AAEX,MAAM,WAAW,iBAAiB;IAChC,yGAAyG;IACzG,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,QAAQ,CAAC;IACf,oGAAoG;IACpG,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,mFAAmF;IACnF,IAAI,CAAC,EAAE,IAAI,CAAC;CACb;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;IAClC,uEAAuE;IACvE,OAAO,IAAI,OAAO,CAAC,MAAM,G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oE;EACtG,CAAC;AAEX,MAAM,WAAW,iBAAiB;IAChC,yGAAyG;IACzG,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,QAAQ,CAAC;IACf,oGAAoG;IACpG,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,mFAAmF;IACnF,IAAI,CAAC,EAAE,IAAI,CAAC;CACb;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;IAClC,uEAAuE;IACvE,OAAO,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAClC,IAAI,IAAI,IAAI,CAAC;IACb,IAAI,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IACvB,OAAO,IAAI,IAAI,CAAC;CACjB;AAoBD,oFAAoF;AACpF,wBAAgB,aAAa,CAAC,OAAO,EAAE,QAAQ,EAAE,GAAG,GAAE,MAAoB,GAAG,WAAW,CAYvF;AAED;;;;GAIG;AACH,wBAAsB,aAAa,CAAC,OAAO,EAAE,eAAe,EAAE,GAAG,EAAE,QAAQ,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,SAAS,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAOxI;AAED,eAAO,MAAM,cAAc,oBAAoB,CAAC;AA0BhD,2CAA2C;AAC3C,wBAAsB,eAAe,CAAC,OAAO,GAAE,iBAAsB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAyWhG"}
@@ -81,7 +81,7 @@ function connectingPill(doc, place) {
81
81
  // The Charcoal pill (brand/DESIGN.md, On-page toolbar), with a ginger ring turning
82
82
  root.innerHTML = `<style>${TOKENS_CSS}
83
83
  div{position:fixed;${cornerCss(place, 40)};z-index:2147483647;display:flex;gap:8px;align-items:center;padding:8px 16px 8px 12px;border-radius:var(--luci-radius-full);
84
- background:var(--luci-color-bar);color:var(--luci-color-bar-ink);font:500 var(--luci-type-small-size)/var(--luci-type-small-line) var(--luci-font-body);box-shadow:var(--luci-shadow-float)}
84
+ background:var(--luci-color-bar);color:var(--luci-color-bar-ink);font:500 var(--luci-type-small-size)/var(--luci-type-small-line) var(--luci-font-body);box-shadow:var(--luci-shadow-edge),var(--luci-shadow-float)}
85
85
  i{width:14px;height:14px;border-radius:50%;border:2px solid var(--luci-color-bar-stroke);border-top-color:var(--luci-color-tool-active);animation:s .8s linear infinite}
86
86
  @keyframes s{to{transform:rotate(360deg)}}
87
87
  @media (prefers-reduced-motion: reduce){i{animation:none}}
@@ -255,6 +255,22 @@ export async function mountDevToolbar(options = {}) {
255
255
  host.setAttribute('data-v', place.v);
256
256
  host.style.setProperty('--luci-x', `${x}px`);
257
257
  host.style.setProperty('--luci-y', `${y}px`);
258
+ // The bar's real height (it takes two rows on a phone): cards open just past it, never under it
259
+ if (bar?.offsetHeight)
260
+ host.style.setProperty('--luci-bar-h', `${bar.offsetHeight}px`);
261
+ };
262
+ /** Place the host again whenever its bar changes size (a tool appears, the window narrows). */
263
+ let barWatch = null;
264
+ const watchBar = (host) => {
265
+ barWatch?.disconnect();
266
+ barWatch = null;
267
+ const bar = host.shadowRoot?.querySelector('.bar');
268
+ const RO = win.ResizeObserver;
269
+ if (!bar || !RO)
270
+ return;
271
+ barWatch = new RO(() => { if (current?.host === host)
272
+ applyPlace(host); });
273
+ barWatch.observe(bar);
258
274
  };
259
275
  /*
260
276
  * Dragging: by the bar's own background, a separator or Luci's head (higher threshold for
@@ -451,6 +467,7 @@ export async function mountDevToolbar(options = {}) {
451
467
  }
452
468
  // In the bar's place (by its button unless the person dragged it), and draggable
453
469
  applyPlace(current.host);
470
+ watchBar(current.host);
454
471
  draggable(current.host);
455
472
  if (how.grow)
456
473
  grow(current.host);
@@ -466,6 +483,7 @@ export async function mountDevToolbar(options = {}) {
466
483
  doc.removeEventListener(UI_PREFS_EVENT, followPrefs);
467
484
  win.removeEventListener('resize', onResize);
468
485
  stopDrag();
486
+ barWatch?.disconnect();
469
487
  current?.destroy();
470
488
  current = null;
471
489
  removeLauncher();
@@ -1 +1 @@
1
- {"version":3,"file":"devToolbar.js","sourceRoot":"","sources":["../src/devToolbar.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EACL,iBAAiB,EAAE,qBAAqB,EAAE,cAAc,EAAE,YAAY,EAAE,WAAW,EAAE,YAAY,EAElG,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,gBAAgB,EAAwD,MAAM,0BAA0B,CAAC;AAClH,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC3E,OAAO,EACL,yBAAyB,EACzB,aAAa,EACb,eAAe,EACf,cAAc,EACd,cAAc,EACd,aAAa,EACb,WAAW,EAKZ,MAAM,oBAAoB,CAAC;AAE5B,MAAM,CAAC,MAAM,cAAc,GAAG,uBAAuB,CAAC;AACtD,MAAM,CAAC,MAAM,YAAY,GAAG,eAAe,CAAC;AAE5C,2CAA2C;AAC3C,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,EAAE,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,yDAAyD,EAAE;IACvG,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,4FAA4F,EAAE;IACtI,EAAE,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,oEAAoE,EAAE;CACxG,CAAC;AAqBX,MAAM,IAAI,GAAG,EAAE,OAAO,EAAE,uBAAuB,EAAE,QAAQ,EAAE,wBAAwB,EAAE,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,eAAe,EAAW,CAAC;AAE5L,iGAAiG;AACjG,SAAS,cAAc,CAAC,GAAW;IACjC,IAAI,CAAC;QACH,MAAM,CAAC,GAAG,GAAG,CAAC,YAAY,CA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CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACxB,IAAI,GAAG,CAAC,IAAI;YAAE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACnC,CAAC,CAAC;IAEF,IAAI,CAAC,IAAI,CAAC,CAAC;IACX,OAAO;QACL,IAAI,OAAO,KAAK,OAAO,OAAO,CAAC,CAAC,CAAC;QACjC,OAAO;QACP,IAAI,EAAE,GAAG,EAAE,CAAC,IAAI;QAChB,IAAI;QACJ,OAAO,EAAE,GAAG,EAAE;YACZ,GAAG,CAAC,mBAAmB,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC;YAC1D,GAAG,CAAC,mBAAmB,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;YACrD,GAAG,CAAC,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;YAC5C,QAAQ,EAAE,CAAC;YACX,QAAQ,EAAE,UAAU,EAAE,CAAC;YACvB,OAAO,EAAE,OAAO,EAAE,CAAC;YACnB,OAAO,GAAG,IAAI,CAAC;YACf,cAAc,EAAE,CAAC;QACnB,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -4222,7 +4222,7 @@ ${content.join("\n")}
4222
4222
  const unrecKeys = /* @__PURE__ */ new Map();
4223
4223
  let unrecIssue;
4224
4224
  const keyIssues = /* @__PURE__ */ new Map();
4225
- const collect = (iss, side) => {
4225
+ const collect = (iss, side2) => {
4226
4226
  let keys;
4227
4227
  if (iss.code === "unrecognized_keys" && !iss.path?.length) {
4228
4228
  unrecIssue ?? (unrecIssue = iss);
@@ -4238,7 +4238,7 @@ ${content.join("\n")}
4238
4238
  for (const k6 of keys) {
4239
4239
  if (!unrecKeys.has(k6))
4240
4240
  unrecKeys.set(k6, {});
4241
- unrecKeys.get(k6)[side] = true;
4241
+ unrecKeys.get(k6)[side2] = true;
4242
4242
  }
4243
4243
  return true;
4244
4244
  };
@@ -19865,11 +19865,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
19865
19865
  }
19866
19866
 
19867
19867
  // node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/in-out.js
19868
- function withChecks(side, checks) {
19868
+ function withChecks(side2, checks) {
19869
19869
  if (!checks?.length)
19870
- return side;
19871
- const def = side._zod.def;
19872
- return clone(side, mergeDefs(def, { checks: [...def.checks ?? [], ...checks] }), { parent: true });
19870
+ return side2;
19871
+ const def = side2._zod.def;
19872
+ return clone(side2, mergeDefs(def, { checks: [...def.checks ?? [], ...checks] }), { parent: true });
19873
19873
  }
19874
19874
  function outSide(def) {
19875
19875
  return withChecks(def.out, def.checks);
@@ -25659,6 +25659,10 @@ ${external_exports.prettifyError(meta3.error)}`);
25659
25659
  // packages/format/dist/capture/compare.js
25660
25660
  var NONE2 = "not set";
25661
25661
  var shown = (v3) => v3.token ? `${v3.value} (${v3.token})` : v3.value;
25662
+ function side(meta3, instructions) {
25663
+ const note2 = instructions?.replace(/\s+/g, " ").trim();
25664
+ return { name: meta3.name, type: meta3.type, source: meta3.source, ...note2 ? { note: note2 } : {} };
25665
+ }
25662
25666
  var put = (out, what, property, v3) => {
25663
25667
  if (v3)
25664
25668
  out.set(what, { value: v3.computed, ...v3.token ? { token: v3.token } : {}, property });
@@ -25762,8 +25766,8 @@ ${external_exports.prettifyError(meta3.error)}`);
25762
25766
  function compareCaptures(a3, b2) {
25763
25767
  const fa = flattenCapture(a3), fb = flattenCapture(b2);
25764
25768
  const out = {
25765
- a: { name: a3.meta.name, type: a3.meta.type, source: a3.meta.source },
25766
- b: { name: b2.meta.name, type: b2.meta.type, source: b2.meta.source },
25769
+ a: side(a3.meta, a3.instructions),
25770
+ b: side(b2.meta, b2.instructions),
25767
25771
  same: [],
25768
25772
  differences: []
25769
25773
  };
@@ -25782,8 +25786,8 @@ ${external_exports.prettifyError(meta3.error)}`);
25782
25786
  const d3 = result.differences;
25783
25787
  const out = [
25784
25788
  `# Compare: ${names.a} and ${names.b}`,
25785
- `- A: ${result.a.name} (${result.a.type}), from ${result.a.source}`,
25786
- `- B: ${result.b.name} (${result.b.type}), from ${result.b.source}`,
25789
+ `- A: ${result.a.name} (${result.a.type}), from ${result.a.source}${result.a.note ? `. Your note: ${result.a.note}` : ""}`,
25790
+ `- B: ${result.b.name} (${result.b.type}), from ${result.b.source}${result.b.note ? `. Your note: ${result.b.note}` : ""}`,
25787
25791
  `- ${result.same.length} value${result.same.length === 1 ? " is" : "s are"} the same; ${d3.length} differ${d3.length === 1 ? "s" : ""}.`
25788
25792
  ];
25789
25793
  if (d3.length) {
@@ -27182,11 +27186,11 @@ module.exports = {
27182
27186
  if (el.hasText)
27183
27187
  add("color", "text");
27184
27188
  add("background-color", "background");
27185
- for (const side of SIDES) {
27186
- const width = parseFloat(el.styles[`border-${side}-width`] ?? "0");
27187
- const style = el.styles[`border-${side}-style`] ?? "none";
27189
+ for (const side2 of SIDES) {
27190
+ const width = parseFloat(el.styles[`border-${side2}-width`] ?? "0");
27191
+ const style = el.styles[`border-${side2}-style`] ?? "none";
27188
27192
  if (width > 0 && style !== "none" && style !== "hidden")
27189
- add(`border-${side}-color`, "border");
27193
+ add(`border-${side2}-color`, "border");
27190
27194
  }
27191
27195
  if (SVG_SHAPES.has(el.tag)) {
27192
27196
  add("fill", "text");
@@ -27524,12 +27528,12 @@ module.exports = {
27524
27528
  return null;
27525
27529
  const value = style.getPropertyValue(short3[0]).trim();
27526
27530
  if (value) {
27527
- const side2 = sideOf(topLevelParts(value), short3[1], short3[0] === "gap");
27528
- return side2 ? { value: side2, important: style.getPropertyPriority(short3[0]) === "important" } : null;
27531
+ const side3 = sideOf(topLevelParts(value), short3[1], short3[0] === "gap");
27532
+ return side3 ? { value: side3, important: style.getPropertyPriority(short3[0]) === "important" } : null;
27529
27533
  }
27530
- const side = /^border-(top|right|bottom|left)-color$/.exec(prop)?.[1];
27531
- if (side) {
27532
- for (const shorthand of [`border-${side}`, "border"]) {
27534
+ const side2 = /^border-(top|right|bottom|left)-color$/.exec(prop)?.[1];
27535
+ if (side2) {
27536
+ for (const shorthand of [`border-${side2}`, "border"]) {
27533
27537
  const v3 = style.getPropertyValue(shorthand).trim();
27534
27538
  const color = v3 ? borderColorPart(v3) : void 0;
27535
27539
  if (color)
@@ -29096,8 +29100,8 @@ module.exports = {
29096
29100
  const invisible = (p6) => {
29097
29101
  if (/^outline-/.test(p6) && p6 !== "outline-offset")
29098
29102
  return rest["outline-style"] === "none" && now["outline-style"] === "none";
29099
- const side = /^border-(\w+)-color$/.exec(p6)?.[1];
29100
- return side ? parseFloat(rest[`border-${side}-width`] ?? "0") === 0 && parseFloat(now[`border-${side}-width`] ?? "0") === 0 : false;
29103
+ const side2 = /^border-(\w+)-color$/.exec(p6)?.[1];
29104
+ return side2 ? parseFloat(rest[`border-${side2}-width`] ?? "0") === 0 && parseFloat(now[`border-${side2}-width`] ?? "0") === 0 : false;
29101
29105
  };
29102
29106
  const changed = STATE_PROPERTIES.filter((p6) => now[p6] !== void 0 && !same2(p6, rest[p6] ?? "", now[p6] ?? "") && !invisible(p6));
29103
29107
  const out = [];
@@ -30049,6 +30053,13 @@ module.exports = {
30049
30053
  const r4 = el.getBoundingClientRect();
30050
30054
  return `${el.tagName.toLowerCase()} ${Math.round(r4.width)} \xD7 ${Math.round(r4.height)}`;
30051
30055
  }
30056
+ function touchScreen(win) {
30057
+ try {
30058
+ return win.matchMedia("(hover: none)").matches;
30059
+ } catch {
30060
+ return false;
30061
+ }
30062
+ }
30052
30063
 
30053
30064
  // packages/capture/dist/ui/basket.js
30054
30065
  function memoryBasketStore(initial = []) {
@@ -30534,7 +30545,7 @@ module.exports = {
30534
30545
  "muzzle-800": "#3B3A39",
30535
30546
  "muzzle-900": "#2B2B2B"
30536
30547
  };
30537
- var TOKENS_CSS = '/* Generated by scripts/brand-sync.mjs from brand/. Do not edit: run `pnpm brand:sync`. */\n:host, :root {\n --luci-color-ginger-50: #FEF5E8;\n --luci-color-ginger-100: #FEEBD1;\n --luci-color-ginger-200: #FCD7AA;\n --luci-color-ginger-300: #FBBE7A;\n --luci-color-ginger-400: #F6A24F;\n --luci-color-ginger-500: #EC862B;\n --luci-color-ginger-600: #D86D1D;\n --luci-color-ginger-700: #AD4F1A;\n --luci-color-ginger-800: #893D1B;\n --luci-color-ginger-900: #652D18;\n --luci-color-ginger-950: #451F12;\n --luci-color-collar-lime-100: #EAF5C7;\n --luci-color-collar-lime-300: #CBE66D;\n --luci-color-collar-lime-500: #B4D43C;\n --luci-color-collar-lime-700: #547617;\n --luci-color-nose-pink-100: #FFE4E1;\n --luci-color-nose-pink-300: #F5B9B4;\n --luci-color-nose-pink-500: #E79993;\n --luci-color-nose-pink-700: #AB5050;\n --luci-color-iris-gold-100: #F7F0CA;\n --luci-color-iris-gold-300: #E6D17A;\n --luci-color-iris-gold-500: #CBB042;\n --luci-color-iris-gold-700: #7B6813;\n --luci-color-success-100: #DFF3D5;\n --luci-color-success-700: #3F7932;\n --luci-color-warning-100: #FEEDC9;\n --luci-color-warning-700: #975F03;\n --luci-color-danger-100: #FFE3DF;\n --luci-color-danger-700: #C5372F;\n --luci-color-info-100: #D9F0F3;\n --luci-color-info-700: #1E767F;\n --luci-color-muzzle-0: #FDF9F6;\n --luci-color-muzzle-50: #F5EFEA;\n --luci-color-muzzle-100: #EBE5E0;\n --luci-color-muzzle-200: #DBD4CF;\n --luci-color-muzzle-300: #C2BCB8;\n --luci-color-muzzle-400: #A29D99;\n --luci-color-muzzle-500: #837F7C;\n --luci-color-muzzle-600: #656360;\n --luci-color-muzzle-700: #4F4D4B;\n --luci-color-muzzle-800: #3B3A39;\n --luci-color-muzzle-900: #2B2B2B;\n --luci-radius-sm: 8px;\n --luci-radius-md: 12px;\n --luci-radius-lg: 16px;\n --luci-radius-xl: 24px;\n --luci-radius-full: 9999px;\n --luci-space-4: 4px;\n --luci-space-8: 8px;\n --luci-space-12: 12px;\n --luci-space-16: 16px;\n --luci-space-20: 20px;\n --luci-space-24: 24px;\n --luci-space-32: 32px;\n --luci-space-40: 40px;\n --luci-space-48: 48px;\n --luci-space-64: 64px;\n --luci-space-80: 80px;\n --luci-font-display: "Luci Fredoka", Fredoka, "Luci Inter", Inter, sans-serif;\n --luci-font-body: "Luci Inter", Inter, system-ui, sans-serif;\n --luci-font-code: "Luci JetBrains Mono", \'JetBrains Mono\', ui-monospace, monospace;\n --luci-type-display-size: 40px;\n --luci-type-display-line: 44px;\n --luci-type-display-weight: 600;\n --luci-type-title-size: 24px;\n --luci-type-title-line: 30px;\n --luci-type-title-weight: 600;\n --luci-type-heading-size: 17px;\n --luci-type-heading-line: 24px;\n --luci-type-heading-weight: 600;\n --luci-type-body-size: 15px;\n --luci-type-body-line: 22px;\n --luci-type-body-weight: 400;\n --luci-type-small-size: 13px;\n --luci-type-small-line: 18px;\n --luci-type-small-weight: 500;\n --luci-type-micro-size: 12px;\n --luci-type-micro-line: 16px;\n --luci-type-micro-weight: 600;\n --luci-type-code-size: 13px;\n --luci-type-code-line: 20px;\n --luci-type-code-weight: 500;\n --luci-shadow-float: 0 8px 24px rgba(43, 43, 43, 0.14);\n --luci-motion-fast: 150ms ease-out;\n --luci-motion-base: 200ms ease-out;\n --luci-motion-exit: 150ms ease-in;\n --luci-size-touch-target: 44px;\n --luci-size-toolbar-button: 48px;\n --luci-size-toolbar-icon: 22px;\n --luci-size-mascot-min: 96px;\n --luci-size-toast-face: 48px;\n --luci-color-surface: var(--luci-color-muzzle-50);\n --luci-color-surface-raised: var(--luci-color-muzzle-0);\n --luci-color-surface-sunken: var(--luci-color-muzzle-100);\n --luci-color-ink: var(--luci-color-muzzle-900);\n --luci-color-ink-secondary: var(--luci-color-muzzle-600);\n --luci-color-ink-disabled: var(--luci-color-muzzle-400);\n --luci-color-primary: var(--luci-color-ginger-500);\n --luci-color-on-primary: var(--luci-color-muzzle-900);\n --luci-color-primary-hover: var(--luci-color-ginger-600);\n --luci-color-primary-soft: var(--luci-color-ginger-100);\n --luci-color-link: var(--luci-color-ginger-700);\n --luci-color-accent: var(--luci-color-collar-lime-500);\n --luci-color-on-accent: var(--luci-color-muzzle-900);\n --luci-color-success: var(--luci-color-success-700);\n --luci-color-success-bg: var(--luci-color-success-100);\n --luci-color-warning: var(--luci-color-warning-700);\n --luci-color-warning-bg: var(--luci-color-warning-100);\n --luci-color-danger: var(--luci-color-danger-700);\n --luci-color-danger-bg: var(--luci-color-danger-100);\n --luci-color-danger-hover: #FFD3CD;\n --luci-color-info: var(--luci-color-info-700);\n --luci-color-info-bg: var(--luci-color-info-100);\n --luci-color-secondary-hover: var(--luci-color-muzzle-100);\n --luci-color-ghost-hover: color-mix(in srgb, var(--luci-color-muzzle-900) 6%, transparent);\n --luci-color-stroke-subtle: color-mix(in srgb, var(--luci-color-muzzle-900) 12%, transparent);\n --luci-color-stroke-muzzle: var(--luci-color-muzzle-200);\n --luci-color-stroke-strong: color-mix(in srgb, var(--luci-color-muzzle-900) 24%, transparent);\n --luci-color-focus: var(--luci-color-muzzle-900);\n --luci-color-bar: var(--luci-color-muzzle-900);\n --luci-color-bar-ink: var(--luci-color-muzzle-50);\n --luci-color-bar-ink-secondary: var(--luci-color-muzzle-300);\n --luci-color-bar-hover: var(--luci-color-muzzle-700);\n --luci-color-bar-stroke: color-mix(in srgb, var(--luci-color-muzzle-50) 16%, transparent);\n --luci-color-tool-active: var(--luci-color-ginger-400);\n --luci-color-on-tool-active: var(--luci-color-muzzle-900);\n --luci-color-pick: var(--luci-color-ginger-500);\n --luci-color-pick-fill: color-mix(in srgb, var(--luci-color-ginger-500) 14%, transparent);\n --luci-color-pick-blocked: var(--luci-color-danger-700);\n --luci-color-pick-blocked-fill: color-mix(in srgb, var(--luci-color-muzzle-500) 35%, transparent);\n --luci-color-pad-fill: color-mix(in srgb, var(--luci-color-collar-lime-500) 35%, transparent);\n --luci-color-margin-fill: color-mix(in srgb, var(--luci-color-ginger-300) 35%, transparent);\n --luci-color-insert: var(--luci-color-nose-pink-500);\n --luci-color-insert-fill: color-mix(in srgb, var(--luci-color-nose-pink-500) 16%, transparent);\n --luci-color-insert-ink: var(--luci-color-nose-pink-100);\n}\n@media (prefers-color-scheme: dark) {\n .luci-theme:not([data-theme="light"]) {\n --luci-color-surface: var(--luci-color-muzzle-900);\n --luci-color-surface-raised: var(--luci-color-muzzle-800);\n --luci-color-surface-sunken: var(--luci-color-muzzle-800);\n --luci-color-ink: var(--luci-color-muzzle-50);\n --luci-color-ink-secondary: var(--luci-color-muzzle-300);\n --luci-color-ink-disabled: var(--luci-color-muzzle-500);\n --luci-color-primary: var(--luci-color-ginger-400);\n --luci-color-on-primary: var(--luci-color-muzzle-900);\n --luci-color-primary-hover: var(--luci-color-ginger-300);\n --luci-color-primary-soft: color-mix(in srgb, var(--luci-color-ginger-400) 18%, transparent);\n --luci-color-link: var(--luci-color-ginger-300);\n --luci-color-accent: var(--luci-color-collar-lime-500);\n --luci-color-on-accent: var(--luci-color-muzzle-900);\n --luci-color-success: var(--luci-color-success-700);\n --luci-color-success-bg: var(--luci-color-success-100);\n --luci-color-warning: var(--luci-color-warning-700);\n --luci-color-warning-bg: var(--luci-color-warning-100);\n --luci-color-danger: var(--luci-color-danger-700);\n --luci-color-danger-bg: var(--luci-color-danger-100);\n --luci-color-danger-hover: #FFD3CD;\n --luci-color-info: var(--luci-color-info-700);\n --luci-color-info-bg: var(--luci-color-info-100);\n --luci-color-secondary-hover: var(--luci-color-muzzle-700);\n --luci-color-ghost-hover: color-mix(in srgb, var(--luci-color-muzzle-50) 8%, transparent);\n --luci-color-stroke-subtle: color-mix(in srgb, var(--luci-color-muzzle-50) 16%, transparent);\n --luci-color-stroke-muzzle: var(--luci-color-muzzle-700);\n --luci-color-stroke-strong: color-mix(in srgb, var(--luci-color-muzzle-50) 28%, transparent);\n --luci-color-focus: var(--luci-color-muzzle-50);\n }\n}\n.luci-theme[data-theme="dark"] {\n --luci-color-surface: var(--luci-color-muzzle-900);\n --luci-color-surface-raised: var(--luci-color-muzzle-800);\n --luci-color-surface-sunken: var(--luci-color-muzzle-800);\n --luci-color-ink: var(--luci-color-muzzle-50);\n --luci-color-ink-secondary: var(--luci-color-muzzle-300);\n --luci-color-ink-disabled: var(--luci-color-muzzle-500);\n --luci-color-primary: var(--luci-color-ginger-400);\n --luci-color-on-primary: var(--luci-color-muzzle-900);\n --luci-color-primary-hover: var(--luci-color-ginger-300);\n --luci-color-primary-soft: color-mix(in srgb, var(--luci-color-ginger-400) 18%, transparent);\n --luci-color-link: var(--luci-color-ginger-300);\n --luci-color-accent: var(--luci-color-collar-lime-500);\n --luci-color-on-accent: var(--luci-color-muzzle-900);\n --luci-color-success: var(--luci-color-success-700);\n --luci-color-success-bg: var(--luci-color-success-100);\n --luci-color-warning: var(--luci-color-warning-700);\n --luci-color-warning-bg: var(--luci-color-warning-100);\n --luci-color-danger: var(--luci-color-danger-700);\n --luci-color-danger-bg: var(--luci-color-danger-100);\n --luci-color-danger-hover: #FFD3CD;\n --luci-color-info: var(--luci-color-info-700);\n --luci-color-info-bg: var(--luci-color-info-100);\n --luci-color-secondary-hover: var(--luci-color-muzzle-700);\n --luci-color-ghost-hover: color-mix(in srgb, var(--luci-color-muzzle-50) 8%, transparent);\n --luci-color-stroke-subtle: color-mix(in srgb, var(--luci-color-muzzle-50) 16%, transparent);\n --luci-color-stroke-muzzle: var(--luci-color-muzzle-700);\n --luci-color-stroke-strong: color-mix(in srgb, var(--luci-color-muzzle-50) 28%, transparent);\n --luci-color-focus: var(--luci-color-muzzle-50);\n}\n';
30548
+ var TOKENS_CSS = '/* Generated by scripts/brand-sync.mjs from brand/. Do not edit: run `pnpm brand:sync`. */\n:host, :root {\n --luci-color-ginger-50: #FEF5E8;\n --luci-color-ginger-100: #FEEBD1;\n --luci-color-ginger-200: #FCD7AA;\n --luci-color-ginger-300: #FBBE7A;\n --luci-color-ginger-400: #F6A24F;\n --luci-color-ginger-500: #EC862B;\n --luci-color-ginger-600: #D86D1D;\n --luci-color-ginger-700: #AD4F1A;\n --luci-color-ginger-800: #893D1B;\n --luci-color-ginger-900: #652D18;\n --luci-color-ginger-950: #451F12;\n --luci-color-collar-lime-100: #EAF5C7;\n --luci-color-collar-lime-300: #CBE66D;\n --luci-color-collar-lime-500: #B4D43C;\n --luci-color-collar-lime-700: #547617;\n --luci-color-nose-pink-100: #FFE4E1;\n --luci-color-nose-pink-300: #F5B9B4;\n --luci-color-nose-pink-500: #E79993;\n --luci-color-nose-pink-700: #AB5050;\n --luci-color-iris-gold-100: #F7F0CA;\n --luci-color-iris-gold-300: #E6D17A;\n --luci-color-iris-gold-500: #CBB042;\n --luci-color-iris-gold-700: #7B6813;\n --luci-color-success-100: #DFF3D5;\n --luci-color-success-700: #3F7932;\n --luci-color-warning-100: #FEEDC9;\n --luci-color-warning-700: #975F03;\n --luci-color-danger-100: #FFE3DF;\n --luci-color-danger-700: #C5372F;\n --luci-color-info-100: #D9F0F3;\n --luci-color-info-700: #1E767F;\n --luci-color-muzzle-0: #FDF9F6;\n --luci-color-muzzle-50: #F5EFEA;\n --luci-color-muzzle-100: #EBE5E0;\n --luci-color-muzzle-200: #DBD4CF;\n --luci-color-muzzle-300: #C2BCB8;\n --luci-color-muzzle-400: #A29D99;\n --luci-color-muzzle-500: #837F7C;\n --luci-color-muzzle-600: #656360;\n --luci-color-muzzle-700: #4F4D4B;\n --luci-color-muzzle-800: #3B3A39;\n --luci-color-muzzle-900: #2B2B2B;\n --luci-radius-sm: 8px;\n --luci-radius-md: 12px;\n --luci-radius-lg: 16px;\n --luci-radius-xl: 24px;\n --luci-radius-full: 9999px;\n --luci-space-4: 4px;\n --luci-space-8: 8px;\n --luci-space-12: 12px;\n --luci-space-16: 16px;\n --luci-space-20: 20px;\n --luci-space-24: 24px;\n --luci-space-32: 32px;\n --luci-space-40: 40px;\n --luci-space-48: 48px;\n --luci-space-64: 64px;\n --luci-space-80: 80px;\n --luci-font-display: "Luci Fredoka", Fredoka, "Luci Inter", Inter, sans-serif;\n --luci-font-body: "Luci Inter", Inter, system-ui, sans-serif;\n --luci-font-code: "Luci JetBrains Mono", \'JetBrains Mono\', ui-monospace, monospace;\n --luci-type-display-size: 40px;\n --luci-type-display-line: 44px;\n --luci-type-display-weight: 600;\n --luci-type-title-size: 24px;\n --luci-type-title-line: 30px;\n --luci-type-title-weight: 600;\n --luci-type-heading-size: 17px;\n --luci-type-heading-line: 24px;\n --luci-type-heading-weight: 600;\n --luci-type-body-size: 15px;\n --luci-type-body-line: 22px;\n --luci-type-body-weight: 400;\n --luci-type-small-size: 13px;\n --luci-type-small-line: 18px;\n --luci-type-small-weight: 500;\n --luci-type-micro-size: 12px;\n --luci-type-micro-line: 16px;\n --luci-type-micro-weight: 600;\n --luci-type-code-size: 13px;\n --luci-type-code-line: 20px;\n --luci-type-code-weight: 500;\n --luci-shadow-float: 0 1px 2px rgba(0, 0, 0, 0.24), 0 8px 24px rgba(0, 0, 0, 0.28);\n --luci-shadow-edge: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.05);\n --luci-motion-fast: 150ms ease-out;\n --luci-motion-base: 200ms ease-out;\n --luci-motion-exit: 150ms ease-in;\n --luci-size-touch-target: 44px;\n --luci-size-toolbar-button: 48px;\n --luci-size-toolbar-icon: 22px;\n --luci-size-mascot-min: 96px;\n --luci-size-toast-face: 48px;\n --luci-color-surface: var(--luci-color-muzzle-50);\n --luci-color-surface-raised: var(--luci-color-muzzle-0);\n --luci-color-surface-sunken: var(--luci-color-muzzle-100);\n --luci-color-ink: var(--luci-color-muzzle-900);\n --luci-color-ink-secondary: var(--luci-color-muzzle-600);\n --luci-color-ink-disabled: var(--luci-color-muzzle-400);\n --luci-color-primary: var(--luci-color-ginger-500);\n --luci-color-on-primary: var(--luci-color-muzzle-900);\n --luci-color-primary-hover: var(--luci-color-ginger-600);\n --luci-color-primary-soft: var(--luci-color-ginger-100);\n --luci-color-link: var(--luci-color-ginger-700);\n --luci-color-accent: var(--luci-color-collar-lime-500);\n --luci-color-on-accent: var(--luci-color-muzzle-900);\n --luci-color-success: var(--luci-color-success-700);\n --luci-color-success-bg: var(--luci-color-success-100);\n --luci-color-warning: var(--luci-color-warning-700);\n --luci-color-warning-bg: var(--luci-color-warning-100);\n --luci-color-danger: var(--luci-color-danger-700);\n --luci-color-danger-bg: var(--luci-color-danger-100);\n --luci-color-danger-hover: #FFD3CD;\n --luci-color-info: var(--luci-color-info-700);\n --luci-color-info-bg: var(--luci-color-info-100);\n --luci-color-secondary-hover: var(--luci-color-muzzle-100);\n --luci-color-ghost-hover: color-mix(in srgb, var(--luci-color-muzzle-900) 6%, transparent);\n --luci-color-stroke-subtle: color-mix(in srgb, var(--luci-color-muzzle-900) 12%, transparent);\n --luci-color-stroke-muzzle: var(--luci-color-muzzle-200);\n --luci-color-stroke-strong: color-mix(in srgb, var(--luci-color-muzzle-900) 24%, transparent);\n --luci-color-focus: var(--luci-color-muzzle-900);\n --luci-color-bar: var(--luci-color-muzzle-900);\n --luci-color-bar-ink: var(--luci-color-muzzle-50);\n --luci-color-bar-ink-secondary: var(--luci-color-muzzle-300);\n --luci-color-bar-hover: var(--luci-color-muzzle-700);\n --luci-color-bar-stroke: color-mix(in srgb, var(--luci-color-muzzle-50) 16%, transparent);\n --luci-color-tool-active: var(--luci-color-ginger-400);\n --luci-color-on-tool-active: var(--luci-color-muzzle-900);\n --luci-color-pick: var(--luci-color-ginger-500);\n --luci-color-pick-fill: color-mix(in srgb, var(--luci-color-ginger-500) 14%, transparent);\n --luci-color-pick-blocked: var(--luci-color-danger-700);\n --luci-color-pick-blocked-fill: color-mix(in srgb, var(--luci-color-muzzle-500) 35%, transparent);\n --luci-color-pad-fill: color-mix(in srgb, var(--luci-color-collar-lime-500) 35%, transparent);\n --luci-color-margin-fill: color-mix(in srgb, var(--luci-color-ginger-300) 35%, transparent);\n --luci-color-insert: var(--luci-color-nose-pink-500);\n --luci-color-insert-fill: color-mix(in srgb, var(--luci-color-nose-pink-500) 16%, transparent);\n --luci-color-insert-ink: var(--luci-color-nose-pink-100);\n}\n@media (prefers-color-scheme: dark) {\n .luci-theme:not([data-theme="light"]) {\n --luci-color-surface: var(--luci-color-muzzle-900);\n --luci-color-surface-raised: var(--luci-color-muzzle-800);\n --luci-color-surface-sunken: var(--luci-color-muzzle-800);\n --luci-color-ink: var(--luci-color-muzzle-50);\n --luci-color-ink-secondary: var(--luci-color-muzzle-300);\n --luci-color-ink-disabled: var(--luci-color-muzzle-500);\n --luci-color-primary: var(--luci-color-ginger-400);\n --luci-color-on-primary: var(--luci-color-muzzle-900);\n --luci-color-primary-hover: var(--luci-color-ginger-300);\n --luci-color-primary-soft: color-mix(in srgb, var(--luci-color-ginger-400) 18%, transparent);\n --luci-color-link: var(--luci-color-ginger-300);\n --luci-color-accent: var(--luci-color-collar-lime-500);\n --luci-color-on-accent: var(--luci-color-muzzle-900);\n --luci-color-success: var(--luci-color-success-700);\n --luci-color-success-bg: var(--luci-color-success-100);\n --luci-color-warning: var(--luci-color-warning-700);\n --luci-color-warning-bg: var(--luci-color-warning-100);\n --luci-color-danger: var(--luci-color-danger-700);\n --luci-color-danger-bg: var(--luci-color-danger-100);\n --luci-color-danger-hover: #FFD3CD;\n --luci-color-info: var(--luci-color-info-700);\n --luci-color-info-bg: var(--luci-color-info-100);\n --luci-color-secondary-hover: var(--luci-color-muzzle-700);\n --luci-color-ghost-hover: color-mix(in srgb, var(--luci-color-muzzle-50) 8%, transparent);\n --luci-color-stroke-subtle: color-mix(in srgb, var(--luci-color-muzzle-50) 16%, transparent);\n --luci-color-stroke-muzzle: var(--luci-color-muzzle-700);\n --luci-color-stroke-strong: color-mix(in srgb, var(--luci-color-muzzle-50) 28%, transparent);\n --luci-color-focus: var(--luci-color-muzzle-50);\n }\n}\n.luci-theme[data-theme="dark"] {\n --luci-color-surface: var(--luci-color-muzzle-900);\n --luci-color-surface-raised: var(--luci-color-muzzle-800);\n --luci-color-surface-sunken: var(--luci-color-muzzle-800);\n --luci-color-ink: var(--luci-color-muzzle-50);\n --luci-color-ink-secondary: var(--luci-color-muzzle-300);\n --luci-color-ink-disabled: var(--luci-color-muzzle-500);\n --luci-color-primary: var(--luci-color-ginger-400);\n --luci-color-on-primary: var(--luci-color-muzzle-900);\n --luci-color-primary-hover: var(--luci-color-ginger-300);\n --luci-color-primary-soft: color-mix(in srgb, var(--luci-color-ginger-400) 18%, transparent);\n --luci-color-link: var(--luci-color-ginger-300);\n --luci-color-accent: var(--luci-color-collar-lime-500);\n --luci-color-on-accent: var(--luci-color-muzzle-900);\n --luci-color-success: var(--luci-color-success-700);\n --luci-color-success-bg: var(--luci-color-success-100);\n --luci-color-warning: var(--luci-color-warning-700);\n --luci-color-warning-bg: var(--luci-color-warning-100);\n --luci-color-danger: var(--luci-color-danger-700);\n --luci-color-danger-bg: var(--luci-color-danger-100);\n --luci-color-danger-hover: #FFD3CD;\n --luci-color-info: var(--luci-color-info-700);\n --luci-color-info-bg: var(--luci-color-info-100);\n --luci-color-secondary-hover: var(--luci-color-muzzle-700);\n --luci-color-ghost-hover: color-mix(in srgb, var(--luci-color-muzzle-50) 8%, transparent);\n --luci-color-stroke-subtle: color-mix(in srgb, var(--luci-color-muzzle-50) 16%, transparent);\n --luci-color-stroke-muzzle: var(--luci-color-muzzle-700);\n --luci-color-stroke-strong: color-mix(in srgb, var(--luci-color-muzzle-50) 28%, transparent);\n --luci-color-focus: var(--luci-color-muzzle-50);\n}\n';
30538
30549
 
30539
30550
  // packages/ui/dist/mascot/art.js
30540
30551
  var POSE_SVG = {
@@ -31325,7 +31336,7 @@ module.exports = {
31325
31336
  }
31326
31337
 
31327
31338
  // packages/ui/dist/about.js
31328
- var LUCI_VERSION = "0.5.3";
31339
+ var LUCI_VERSION = "0.5.6";
31329
31340
  var LUCI_REPO_URL = "https://github.com/waidesign/luci-by-pawprint.design";
31330
31341
 
31331
31342
  // packages/ui/dist/copy.js
@@ -31412,9 +31423,6 @@ module.exports = {
31412
31423
  function EmptyState(props) {
31413
31424
  return u2("div", { class: "empty", ...props.part ? { "data-part": props.part } : {}, children: [u2(Mascot, { pose: props.pose ?? "peek", size: props.size ?? 120 }), u2("p", { class: "t-title", children: props.title }), props.body && u2("p", { children: props.body }), props.children] });
31414
31425
  }
31415
- function Badge(props) {
31416
- return u2("span", { class: props.brand ? "badge brand" : "badge", children: props.children });
31417
- }
31418
31426
 
31419
31427
  // packages/ui/dist/styles.js
31420
31428
  var BASE_CSS = `
@@ -31431,6 +31439,13 @@ module.exports = {
31431
31439
  color: var(--luci-color-ink);
31432
31440
  -webkit-font-smoothing: antialiased;
31433
31441
  }
31442
+ /*
31443
+ * Elevation for cards floating over the page: the float shadow, plus the faint inner edge on Charcoal
31444
+ * (the dark theme's cards), so they stay apart from a dark host page of the same colour.
31445
+ */
31446
+ .luci-theme { --luci-elevation: var(--luci-shadow-float); --luci-elevation-bar: var(--luci-shadow-edge), var(--luci-shadow-float); }
31447
+ @media (prefers-color-scheme: dark) { .luci-theme:not([data-theme="light"]) { --luci-elevation: var(--luci-shadow-edge), var(--luci-shadow-float); } }
31448
+ .luci-theme[data-theme="dark"] { --luci-elevation: var(--luci-shadow-edge), var(--luci-shadow-float); }
31434
31449
  .luci-theme *, .luci-theme *::before, .luci-theme *::after { box-sizing: border-box; }
31435
31450
  .luci-theme :where(button, input, select, textarea) { font: inherit; color: inherit; }
31436
31451
  .luci-theme :where(code, kbd, pre, samp) { font-family: var(--luci-font-code); }
@@ -31552,7 +31567,7 @@ module.exports = {
31552
31567
  .status-msg .status-title { margin: 0; color: var(--status); font-size: var(--luci-type-heading-size); line-height: var(--luci-type-heading-line); font-weight: var(--luci-type-heading-weight); }
31553
31568
  .status-msg .status-detail { margin: 0; }
31554
31569
  .status-msg .mascot { width: 48px; }
31555
- .toast { position: fixed; z-index: 2147483647; box-shadow: var(--luci-shadow-float); }
31570
+ .toast { position: fixed; z-index: 2147483647; box-shadow: var(--luci-elevation); }
31556
31571
 
31557
31572
  /* Card and panel */
31558
31573
  .card { padding: var(--luci-space-24); border: 1px solid var(--luci-color-stroke-subtle); border-radius: var(--luci-radius-xl); background: var(--luci-color-surface-raised); }
@@ -31603,6 +31618,12 @@ module.exports = {
31603
31618
  .luci-theme [data-tip]:is(:hover, :focus-visible)::after { opacity: 1; transform: translate(-50%, 0);
31604
31619
  transition: opacity var(--luci-motion-base) 300ms, transform var(--luci-motion-base) 300ms; }
31605
31620
 
31621
+ /*
31622
+ * Touch screens have no hover: a tapped button would keep its tooltip until the next tap elsewhere, over
31623
+ * the bar and its cards. There they show for keyboard focus only.
31624
+ */
31625
+ @media (hover: none) { .luci-theme [data-tip]:hover:not(:focus-visible)::after { opacity: 0; transition: none; } }
31626
+
31606
31627
  /* Left-aligned tooltips (first button in rows, cards, or explicit data-tip-align="left") open rightwards to prevent clipping inside cards/panels */
31607
31628
  .luci-theme [data-tip][data-tip-align="left"]::after,
31608
31629
  .luci-theme .panel .actions > [data-tip]:first-child::after,
@@ -31776,7 +31797,8 @@ ${UI_CSS}
31776
31797
  border-radius: 32px;
31777
31798
  background: var(--luci-color-bar);
31778
31799
  color: var(--luci-color-bar-ink);
31779
- box-shadow: var(--luci-shadow-float);
31800
+ /* Charcoal in both themes, so always with the inner edge: it stays apart from a dark page */
31801
+ box-shadow: var(--luci-elevation-bar);
31780
31802
  }
31781
31803
  /* Above the cards, so the tools' tooltips are never under a card */
31782
31804
  .shell > .bar { position: relative; z-index: 2; }
@@ -31821,6 +31843,7 @@ ${UI_CSS}
31821
31843
  .luci-theme .bar .basket-pill[aria-pressed="true"],
31822
31844
  .luci-theme .bar .basket-pill[aria-pressed="true"]:hover:not(:disabled),
31823
31845
  .luci-theme .bar button.basket-pill[aria-pressed="true"]:hover:not(:disabled) { background: var(--luci-color-collar-lime-300); color: var(--luci-color-on-accent); }
31846
+ .bar .basket-n { display: none; }
31824
31847
  .brand { display: inline-flex; align-items: center; gap: var(--luci-space-8); padding: 0 var(--luci-space-8) 0 0;
31825
31848
  font: var(--luci-type-display-weight) var(--luci-type-heading-size)/1 var(--luci-font-display); color: var(--luci-color-bar-ink); }
31826
31849
  /* The dev toolbar's mode switch, on Charcoal */
@@ -31835,7 +31858,8 @@ ${UI_CSS}
31835
31858
  * --luci-y its distances from that corner's edges (default bottom right, 12 px, by its button; the
31836
31859
  * person can drag it anywhere). Everything opens from the bar, on the side with room: cards just above
31837
31860
  * a bar in the bottom half, just below one in the top half, aligned to its side. A panel takes the
31838
- * hint's place while it is open. The extension sets none of this (its bar keeps its own place).
31861
+ * hint's place while it is open. --luci-bar-h is the bar's measured height (it can wrap), so a card
31862
+ * never opens under it. The extension sets none of this (its bar keeps its own place).
31839
31863
  */
31840
31864
  :host([data-h="right"]) :is(.shell, .bar:not(.shell > .bar), .sub:not(.shell > .sub), .panel:not(.shell > .panel), .menu) { left: auto; right: var(--luci-x, 12px); }
31841
31865
  :host([data-h="left"]) :is(.shell, .bar:not(.shell > .bar), .sub:not(.shell > .sub), .panel:not(.shell > .panel), .menu) { right: auto; left: var(--luci-x, 12px); }
@@ -31843,14 +31867,14 @@ ${UI_CSS}
31843
31867
  :host([data-h="left"]) .shell { align-items: flex-start; }
31844
31868
  :host([data-v="bottom"]) :is(.shell, .bar:not(.shell > .bar)) { top: auto; bottom: var(--luci-y, 12px); }
31845
31869
  :host([data-v="bottom"]) .shell { flex-direction: column-reverse; }
31846
- :host([data-v="bottom"]) :is(.sub:not(.shell > .sub), .panel:not(.shell > .panel)) { top: auto; bottom: calc(var(--luci-y, 12px) + 72px); }
31847
- :host([data-v="bottom"]) .menu { top: auto; bottom: calc(var(--luci-y, 12px) + 64px); }
31870
+ :host([data-v="bottom"]) :is(.sub:not(.shell > .sub), .panel:not(.shell > .panel)) { top: auto; bottom: calc(var(--luci-y, 12px) + var(--luci-bar-h, 64px) + 8px); }
31871
+ :host([data-v="bottom"]) .menu { top: auto; bottom: calc(var(--luci-y, 12px) + var(--luci-bar-h, 64px)); }
31848
31872
  :host([data-v="top"]) :is(.shell, .bar:not(.shell > .bar)) { bottom: auto; top: var(--luci-y, 12px); }
31849
- :host([data-v="top"]) :is(.sub:not(.shell > .sub), .panel:not(.shell > .panel)) { bottom: auto; top: calc(var(--luci-y, 12px) + 72px); }
31850
- :host([data-v="top"]) .menu { bottom: auto; top: calc(var(--luci-y, 12px) + 64px); }
31873
+ :host([data-v="top"]) :is(.sub:not(.shell > .sub), .panel:not(.shell > .panel)) { bottom: auto; top: calc(var(--luci-y, 12px) + var(--luci-bar-h, 64px) + 8px); }
31874
+ :host([data-v="top"]) .menu { bottom: auto; top: calc(var(--luci-y, 12px) + var(--luci-bar-h, 64px)); }
31851
31875
  :host([data-v]) .shell { max-height: calc(100vh - var(--luci-y, 12px) - 12px); }
31852
- :host([data-v]) .panel:not(.shell > .panel) { max-height: min(72vh, calc(100vh - var(--luci-y, 12px) - 96px)); }
31853
- :host([data-v]) .layout-panel:not(.shell > .panel) { max-height: min(80vh, calc(100vh - var(--luci-y, 12px) - 96px)); }
31876
+ :host([data-v]) .panel:not(.shell > .panel) { max-height: min(72vh, calc(100vh - var(--luci-y, 12px) - var(--luci-bar-h, 64px) - 32px)); }
31877
+ :host([data-v]) .layout-panel:not(.shell > .panel) { max-height: min(80vh, calc(100vh - var(--luci-y, 12px) - var(--luci-bar-h, 64px) - 32px)); }
31854
31878
  :host([data-v]) .luci-theme:has(> .panel) > .sub:not([role="alert"]) { display: none; }
31855
31879
  :host([data-v="bottom"]) :is(.sub, .panel, .menu) { animation: luci-rise var(--luci-motion-base, 200ms) both; }
31856
31880
  :host([data-v="top"]) :is(.sub, .panel, .menu) { animation: luci-drop var(--luci-motion-base, 200ms) both; }
@@ -31868,13 +31892,44 @@ ${UI_CSS}
31868
31892
  :host([data-v]) .bar button, :host([data-v]) .bar .menu-btn { cursor: pointer; }
31869
31893
  :host([data-moving]) .bar, :host([data-moving]) .bar * { cursor: grabbing; user-select: none; }
31870
31894
  /* New page's canvas covers the window: its tools and its panel keep clear of the bar */
31871
- :host([data-v="bottom"]) .wf { padding-bottom: calc(var(--luci-y, 12px) + 76px); }
31895
+ :host([data-v="bottom"]) .wf { padding-bottom: calc(var(--luci-y, 12px) + var(--luci-bar-h, 64px) + 12px); }
31872
31896
  :host([data-v="bottom"]) .wf-tools { padding-top: var(--luci-space-12); }
31873
- :host([data-v="top"]) .wf-tools { padding-top: calc(var(--luci-y, 12px) + 76px); }
31897
+ :host([data-v="top"]) .wf-tools { padding-top: calc(var(--luci-y, 12px) + var(--luci-bar-h, 64px) + 12px); }
31874
31898
  :host([data-v="top"]) .panel[data-part="sketch-panel"]:not(.shell > .panel) { top: auto; bottom: var(--luci-space-12); }
31875
31899
 
31900
+ /*
31901
+ * Phones and narrow windows (dev toolbar): the bar spans the window's width in two planned rows instead
31902
+ * of wrapping wherever it runs out of room. Row 1: Luci, the mode switch, Close. Row 2: the mode's tools,
31903
+ * spread evenly at the 44 px touch target. The first separator is the line break. Cards open full width
31904
+ * from the bar, above it (or below a bar dragged to the top).
31905
+ */
31906
+ @media (max-width: 639px) {
31907
+ :host([data-v]) :is(.shell, .bar:not(.shell > .bar), .sub:not(.shell > .sub), .panel:not(.shell > .panel), .menu) { left: 8px; right: 8px; }
31908
+ :host([data-v]) :is(.sub:not(.shell > .sub), .panel:not(.shell > .panel)) { width: auto; }
31909
+ :host([data-v]) .shell { align-items: stretch; max-width: none; }
31910
+ :host([data-v]) .shell > :is(.sub, .panel) { width: auto; }
31911
+ :host([data-v]) .bar { justify-content: space-between; row-gap: var(--luci-space-4); column-gap: 0; padding: 6px; border-radius: var(--luci-radius-xl); max-width: none; }
31912
+ :host([data-v]) .bar > * { order: 3; }
31913
+ :host([data-v]) .bar > :is(.menu-btn, .modes) { order: 0; }
31914
+ :host([data-v]) .bar > [data-action="close"] { order: 1; }
31915
+ :host([data-v]) .bar > .modes + .bar-sep { order: 2; flex-basis: 100%; width: 0; height: 0; margin: 0; background: none; }
31916
+ :host([data-v]) .bar > .bar-sep:not(.modes + .bar-sep) { display: none; }
31917
+ :host([data-v]) .bar .modes { flex: 1 1 auto; margin: 0 var(--luci-space-4); }
31918
+ :host([data-v]) .bar .modes button { flex: 1 1 0; padding-inline: var(--luci-space-8); }
31919
+ :host([data-v]) .luci-theme .bar :is(.tool, .split .caret) { --luci-btn-h: 44px; }
31920
+ /* Where notes go, as its dot only (the words stay as its label) */
31921
+ :host([data-v]) .bar .conn { width: 28px; height: 44px; justify-content: center; padding: 0; font-size: 0; }
31922
+ :host([data-v]) .bar .conn::before { width: 10px; height: 10px; }
31923
+ /* Layout's inspector leaves the top of the page in view, where the selected element can be */
31924
+ :host([data-v]) .layout-panel:not(.shell > .panel) { max-height: min(45vh, calc(100vh - var(--luci-y, 12px) - var(--luci-bar-h, 64px) - 32px)); }
31925
+ /* The basket as its icon and count (its label still says "Basket, n items") */
31926
+ :host([data-v]) .luci-theme .bar .basket-pill { gap: var(--luci-space-4); padding: 0 var(--luci-space-12) 0 var(--luci-space-8); }
31927
+ :host([data-v]) .bar .basket-full { display: none; }
31928
+ :host([data-v]) .bar .basket-n { display: inline; }
31929
+ }
31930
+
31876
31931
  /* Cards under the pill: the hint while picking, and every panel (radius-xl, float shadow, no stroke) */
31877
- .sub, .panel { background: var(--luci-color-surface); border-radius: var(--luci-radius-xl); box-shadow: var(--luci-shadow-float); }
31932
+ .sub, .panel { background: var(--luci-color-surface); border-radius: var(--luci-radius-xl); box-shadow: var(--luci-elevation); }
31878
31933
  .sub {
31879
31934
  position: fixed;
31880
31935
  top: 84px;
@@ -31936,6 +31991,8 @@ ${UI_CSS}
31936
31991
  /* The first-run greeting */
31937
31992
  .greet { flex-direction: row; align-items: center; gap: var(--luci-space-16); }
31938
31993
  .greet .t-title { margin: 0; }
31994
+ /* The words wrap beside Luci on a narrow window (panels keep their children's size otherwise) */
31995
+ .greet > .stack { flex-shrink: 1; min-width: 0; }
31939
31996
 
31940
31997
  /* Segmented control */
31941
31998
  .seg { display: inline-flex; align-self: flex-start; gap: var(--luci-space-4); padding: var(--luci-space-4); background: var(--luci-color-surface-sunken); border-radius: var(--luci-radius-full); }
@@ -31992,6 +32049,8 @@ label { display: inline-flex; gap: var(--luci-space-4); align-items: center; col
31992
32049
 
31993
32050
  /* Page overlays while picking: drawn over the host page, never part of it */
31994
32051
  .pick-layer, .pixel-layer { position: fixed; inset: 0; z-index: 2147483640; cursor: crosshair; background: transparent; touch-action: none; }
32052
+ /* Picking an element by touch takes taps, not drags: the page still scrolls and zooms under the finger */
32053
+ .pick-layer { touch-action: pan-x pan-y pinch-zoom; }
31995
32054
  .highlight { position: fixed; z-index: 2147483646; pointer-events: none; border: 2px solid var(--luci-color-pick); background: var(--luci-color-pick-fill); border-radius: 2px; }
31996
32055
  .highlight.locked { border-width: 2px; border-style: solid; }
31997
32056
  .highlight.blocked { border-color: var(--luci-color-pick-blocked); background: var(--luci-color-pick-blocked-fill); }
@@ -32000,7 +32059,7 @@ label { display: inline-flex; gap: var(--luci-space-4); align-items: center; col
32000
32059
  @media (prefers-reduced-motion: no-preference) { .highlight { transition: top 60ms, left 60ms, width 60ms, height 60ms; } }
32001
32060
  /* The label and the pixel swatch read like tooltips: Charcoal fill, Muzzle White text */
32002
32061
  .label, .swatch { position: fixed; z-index: 2147483647; pointer-events: none; padding: var(--luci-space-4) var(--luci-space-8); border-radius: var(--luci-radius-md);
32003
- background: var(--luci-color-muzzle-900); color: var(--luci-color-muzzle-50); box-shadow: var(--luci-shadow-float);
32062
+ background: var(--luci-color-muzzle-900); color: var(--luci-color-muzzle-50); box-shadow: var(--luci-elevation-bar);
32004
32063
  font: var(--luci-type-code-weight) 12px/1.4 var(--luci-font-code); }
32005
32064
  .label { max-width: 360px; white-space: pre-wrap; }
32006
32065
  .label .reason { display: block; color: var(--luci-color-nose-pink-300); font-family: var(--luci-font-body); }
@@ -32532,9 +32591,9 @@ button .spinner { display: inline-block; width: 12px; height: 12px; vertical-ali
32532
32591
  return `grid columns ${c4.from} \u2192 ${c4.to}`;
32533
32592
  const rendered = /^(min-|max-)?(width|height)$/.test(c4.property) && /px$/.test(c4.to);
32534
32593
  const kept = { left: "right", right: "left", up: "bottom", down: "top" };
32535
- const side = { left: "the left", right: "the right", up: "the top", down: "the bottom" };
32594
+ const side2 = { left: "the left", right: "the right", up: "the top", down: "the bottom" };
32536
32595
  const toward = { left: "to the left", right: "to the right", up: "upward", down: "downward" };
32537
- const grow = c4.grow ? `, ${parseFloat(c4.to) < parseFloat(c4.from) ? `shrinking from ${side[c4.grow]}` : `growing ${toward[c4.grow]}`} (its ${kept[c4.grow]} edge stays where it is)` : "";
32596
+ const grow = c4.grow ? `, ${parseFloat(c4.to) < parseFloat(c4.from) ? `shrinking from ${side2[c4.grow]}` : `growing ${toward[c4.grow]}`} (its ${kept[c4.grow]} edge stays where it is)` : "";
32538
32597
  return `${c4.property}${rendered ? " as rendered" : ""} ${c4.from} \u2192 ${c4.to}${c4.token ? ` (${c4.token})` : ""}${grow}`;
32539
32598
  }
32540
32599
  if (c4.op === "insert") {
@@ -32740,7 +32799,7 @@ button .spinner { display: inline-block; width: 12px; height: 12px; vertical-ali
32740
32799
  }
32741
32800
  }, []);
32742
32801
  const useDebugger = capSettings.useDebugger ?? true;
32743
- 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(Badge, { brand: true, children: "Beta" })] }), 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) => {
32802
+ 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) => {
32744
32803
  const val = e6.currentTarget.value;
32745
32804
  setBridgePortInput(val);
32746
32805
  void props.projectInfo?.setUrl?.(val).then(refreshProject);
@@ -33584,7 +33643,7 @@ button .spinner { display: inline-block; width: 12px; height: 12px; vertical-ali
33584
33643
  area2.scrollBy(e6.deltaX, e6.deltaY);
33585
33644
  }
33586
33645
  };
33587
- const pickUp = (x3, y3) => {
33646
+ const pickUp = (x3, y3, touch = false) => {
33588
33647
  {
33589
33648
  const target = elementAt(doc, x3, y3);
33590
33649
  const start = drag.current;
@@ -33592,6 +33651,11 @@ button .spinner { display: inline-block; width: 12px; height: 12px; vertical-ali
33592
33651
  if (!target || !start || !tool)
33593
33652
  return;
33594
33653
  const moved = Math.hypot(x3 - start.x, y3 - start.y) > DRAG_PX;
33654
+ if (touch && !moved && target !== candidateRef.current) {
33655
+ trail.current = [];
33656
+ aim(target);
33657
+ return;
33658
+ }
33595
33659
  if (tool === "spacing" && moved && target !== start.el) {
33596
33660
  const blocked = [start.el, target].map(eligibilityOf).find((x4) => x4.status !== "allowed");
33597
33661
  if (blocked) {
@@ -34208,7 +34272,7 @@ button .spinner { display: inline-block; width: 12px; height: 12px; vertical-ali
34208
34272
  const hoverElig = hovered ? eligibilityOf(hovered) : null;
34209
34273
  const rect = hovered?.getBoundingClientRect();
34210
34274
  const cs = hovered && tool === "spacing" ? win.getComputedStyle(hovered) : null;
34211
- 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(Badge, { brand: true, children: "Beta" }), u2("span", { class: "brand-sub", "data-part": "brand-sub", children: props.modes ? COPY.capture.devByline : COPY.capture.byline })] }), u2("p", { class: "brand-desc", children: props.modes ? COPY.capture.devDescription : COPY.capture.description }), props.onHelp && u2("div", { class: "row", children: u2(Button, { variant: "secondary", icon: Info, "data-action": "help", onClick: () => props.onHelp(), children: COPY.common.help }) })] }), u2(RepoButton, {})] }), !props.modes && u2("div", { class: "invite", "data-part": "invite", children: [u2("p", { class: "invite-title", children: COPY.capture.invite.title }), u2("p", { class: "invite-body", children: COPY.capture.invite.body }), LUCI_REPO_URL ? u2("a", { class: "btn-link invite-action", "data-action": "take-home", href: LUCI_REPO_URL, target: "_blank", rel: "noopener noreferrer", children: COPY.capture.invite.action }) : props.onHelp && u2(Button, { variant: "link", class: "invite-action", "data-action": "take-home", onClick: () => props.onHelp("take-luci-home"), children: COPY.capture.invite.action })] }), u2("div", { class: "project-card", "data-part": "connected-project", children: [u2("div", { class: "project-header", children: [u2("span", { class: `status-dot ${activeProject?.project ? "online" : "offline"}`, "aria-hidden": "true" }), u2("div", { class: "project-info", children: [u2("span", { class: "project-name", children: activeProject?.name ? `Connected to ${activeProject.name}` : "Not connected to a project" }), activeProject?.project && u2("span", { class: "project-path dim", title: activeProject.project, children: activeProject.project }), !activeProject?.project && u2("span", { class: "project-hint dim", children: ["Run ", u2("code", { children: "luci serve" }), " in your project terminal"] })] })] }), props.projectInfo?.setUrl && u2("div", { class: "project-port-row", children: [u2("label", { class: "dim", for: "luci-bridge-url", children: "Bridge:" }), u2("input", { id: "luci-bridge-url", type: "text", class: "port-input", "data-part": "port-input", value: bridgePortInput, placeholder: "http://127.0.0.1:4545", onChange: (e6) => {
34275
+ return u2("div", { class: "luci luci-theme", "data-theme": uiPrefs.theme, "data-dock": uiPrefs.dock, children: [u2("div", { class: "shell", "data-part": "shell", ref: shellRef, style: shellStyle, ...props.movable ? { "data-movable": "" } : {}, ...moving ? { "data-moving": "" } : {}, ...place ? { "data-h": place.h, "data-v": place.v } : {}, children: [u2("div", { class: "bar", role: "toolbar", "aria-label": props.modes ? COPY.capture.devTitle : COPY.capture.title, ref: barRef, onPointerDown: startMove, onClickCapture: swallowDragClick, children: [u2("button", { type: "button", class: "menu-btn", "data-action": "settings", "aria-label": COPY.common.menu, "aria-pressed": settingsOpen, "aria-keyshortcuts": KEYS.menu, "data-tip": `${COPY.common.menu} ${KEYS.menu}`, onClick: toggleMenu, children: u2(LuciLogo, { size: 48 }) }), props.modes && u2(ModeSwitch, { ...props.modes }), u2("span", { class: "bar-sep", "aria-hidden": "true" }), TOOLS.map((t3) => u2(Button, { iconOnly: true, size: "lg", class: "tool", icon: TOOL_ICONS[t3], label: COPY.capture.tools[t3], shortcut: KEYS[t3], "data-tool": t3, "aria-pressed": currentTool === t3, onClick: () => pickTool(t3) })), u2(Button, { iconOnly: true, size: "lg", class: "tool", icon: AppWindow, label: COPY.capture.tools.page, shortcut: KEYS.page, "data-action": "whole-page", "aria-pressed": wholePage && (pageBusy || Boolean(result)), onClick: captureWholePage }), u2(Button, { iconOnly: true, size: "lg", class: "tool", icon: ScanEye, label: COPY.capture.tools.check, shortcut: KEYS.check, "data-action": "check", "aria-pressed": checking, onClick: openCheck }), u2("span", { class: "bar-sep", "aria-hidden": "true" }), u2("button", { type: "button", class: "basket-pill", "data-action": "basket", "aria-pressed": basketOpen && !settingsOpen, "aria-label": COPY.capture.basketLabel(basket.length), "aria-keyshortcuts": KEYS.basket, "data-tip": `Basket ${KEYS.basket}`, onClick: toggleBasket, children: [u2(Icon2, { icon: ShoppingBasket }), u2("span", { class: "basket-full", children: COPY.capture.basket(basket.length) }), u2("span", { class: "basket-n", children: basket.length })] }), u2(Button, { iconOnly: true, size: "lg", class: "tool", icon: X2, label: COPY.common.close, "data-action": "close", onClick: props.onClose })] }), greeting && u2("div", { class: "panel greet", role: "status", "data-part": "greeting", children: [u2(Mascot, { pose: "hello", size: 96 }), u2("div", { class: "stack", children: [u2("p", { class: "t-title", children: COPY.capture.greeting.title }), u2("p", { class: "hint", children: COPY.capture.greeting.body })] })] }), props.modes && idle && !greeting && u2("div", { class: "sub with-luci", role: "note", "data-part": "intro", children: [u2(Mascot, { pose: "peek", size: 96 }), u2("div", { class: "sub-body", children: [u2("p", { class: "hint", children: COPY.devToolbar.intro.capture.body }), u2("p", { class: "keys", children: COPY.devToolbar.intro.capture.keys })] })] }), settingsOpen && (props.modes ? u2(DevSettingsPanel, { currentMode: "capture", uiPrefs, onUiPrefsChange: setUiPrefs, projectInfo: props.projectInfo, store: props.store, captureSettings: settings, onCaptureSettingsChange: changeSettings, debuggerPermission: props.debuggerPermission }) : u2("div", { class: "panel", role: "dialog", "aria-label": COPY.common.menu, "data-part": "settings", children: [u2("div", { class: "menu-head", children: [u2(Mascot, { pose: "sit", size: 96 }), u2("div", { class: "brand-stack", children: [u2("div", { class: "brand-title-line", children: [u2("span", { class: "brand-title", "data-part": "brand-title", children: props.modes ? COPY.capture.devTitle : COPY.capture.title }), u2("span", { class: "brand-sub", "data-part": "brand-sub", children: props.modes ? COPY.capture.devByline : COPY.capture.byline })] }), u2("p", { class: "brand-desc", children: props.modes ? COPY.capture.devDescription : COPY.capture.description }), props.onHelp && u2("div", { class: "row", children: u2(Button, { variant: "secondary", icon: Info, "data-action": "help", onClick: () => props.onHelp(), children: COPY.common.help }) })] }), u2(RepoButton, {})] }), !props.modes && u2("div", { class: "invite", "data-part": "invite", children: [u2("p", { class: "invite-title", children: COPY.capture.invite.title }), u2("p", { class: "invite-body", children: COPY.capture.invite.body }), LUCI_REPO_URL ? u2("a", { class: "btn-link invite-action", "data-action": "take-home", href: LUCI_REPO_URL, target: "_blank", rel: "noopener noreferrer", children: COPY.capture.invite.action }) : props.onHelp && u2(Button, { variant: "link", class: "invite-action", "data-action": "take-home", onClick: () => props.onHelp("take-luci-home"), children: COPY.capture.invite.action })] }), u2("div", { class: "project-card", "data-part": "connected-project", children: [u2("div", { class: "project-header", children: [u2("span", { class: `status-dot ${activeProject?.project ? "online" : "offline"}`, "aria-hidden": "true" }), u2("div", { class: "project-info", children: [u2("span", { class: "project-name", children: activeProject?.name ? `Connected to ${activeProject.name}` : "Not connected to a project" }), activeProject?.project && u2("span", { class: "project-path dim", title: activeProject.project, children: activeProject.project }), !activeProject?.project && u2("span", { class: "project-hint dim", children: ["Run ", u2("code", { children: "luci serve" }), " in your project terminal"] })] })] }), props.projectInfo?.setUrl && u2("div", { class: "project-port-row", children: [u2("label", { class: "dim", for: "luci-bridge-url", children: "Bridge:" }), u2("input", { id: "luci-bridge-url", type: "text", class: "port-input", "data-part": "port-input", value: bridgePortInput, placeholder: "http://127.0.0.1:4545", onChange: (e6) => {
34212
34276
  const val = e6.currentTarget.value;
34213
34277
  setBridgePortInput(val);
34214
34278
  void props.projectInfo?.setUrl?.(val).then(refreshProject);
@@ -34218,16 +34282,16 @@ button .spinner { display: inline-block; width: 12px; height: 12px; vertical-ali
34218
34282
  } else if (props.onHelp) {
34219
34283
  props.onHelp("debugger-permission");
34220
34284
  }
34221
- }, 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]), "). B: ", comparison.result.b.name, " (", sourceLabel(comparison.items[1]), "). ", 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: () => {
34285
+ }, 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: () => {
34222
34286
  setComparison(null);
34223
34287
  setCopied(false);
34224
34288
  }, 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: () => {
34225
34289
  setBasketExport(null);
34226
34290
  setCopied(false);
34227
- }, 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" : activeProject?.name ? `Send to ${activeProject.name}` : "Send" }), 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: () => {
34291
+ }, 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: () => {
34228
34292
  setComparison({ items: compareItems, result: compareCaptures(compareItems[0].capture, compareItems[1].capture) });
34229
34293
  setCopied(false);
34230
- }, 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"] }) : activeProject?.name ? `Send all to ${activeProject.name}` : "Send all to project" }), basket.length > 0 && (confirmClear ? u2("button", { type: "button", class: "btn-danger", "data-action": "clear-basket-confirm", onClick: () => {
34294
+ }, 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: () => {
34231
34295
  saveBasket([]);
34232
34296
  setConfirmClear(false);
34233
34297
  }, 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 ? {
@@ -34251,7 +34315,7 @@ button .spinner { display: inline-block; width: 12px; height: 12px; vertical-ali
34251
34315
  const f6 = e6.currentTarget.files?.[0];
34252
34316
  if (f6)
34253
34317
  void readImageFile(f6, f6.name);
34254
- } }), u2("button", { type: "button", class: "btn-secondary", "data-action": "choose-image", disabled: imageBusy, onClick: () => imageInput.current?.click(), children: "Choose an image" })] }), u2("p", { class: "keys", children: pixelMode || imageMode ? "Esc: back to Element" : "\u2191 \u2193 after clicking: wider or narrower \xB7 Esc: stop" })] })] }), !settingsOpen && picking && notice && u2("div", { class: "panel", role: "status", children: u2("p", { class: "error", "data-part": "notice", children: notice }) }), !settingsOpen && checkOpen && !basketOpen && u2(DesignChooser, { ...props.designs ? { designs: props.designs } : {}, basket, onChoose: chooseDesign, onCancel: endCheck }), !settingsOpen && !picking && !basketOpen && checkOutcome && checkDesign && picked && u2(CheckResultPanel, { outcome: checkOutcome, watching: watchCheck, onWatch: (on) => {
34318
+ } }), u2("button", { type: "button", class: "btn-secondary", "data-action": "choose-image", disabled: imageBusy, onClick: () => imageInput.current?.click(), children: "Choose an image" })] }), u2("p", { class: "keys", children: pixelMode || imageMode ? "Esc: back to Element" : touchScreen(win) ? "Tap once to see an element, again to take it" : "\u2191 \u2193 after clicking: wider or narrower \xB7 Esc: stop" })] })] }), !settingsOpen && picking && notice && u2("div", { class: "panel", role: "status", children: u2("p", { class: "error", "data-part": "notice", children: notice }) }), !settingsOpen && checkOpen && !basketOpen && u2(DesignChooser, { ...props.designs ? { designs: props.designs } : {}, basket, onChoose: chooseDesign, onCancel: endCheck }), !settingsOpen && !picking && !basketOpen && checkOutcome && checkDesign && picked && u2(CheckResultPanel, { outcome: checkOutcome, watching: watchCheck, onWatch: (on) => {
34255
34319
  setWatchCheck(on);
34256
34320
  setAutoNote(null);
34257
34321
  if (!on)
@@ -34274,13 +34338,18 @@ button .spinner { display: inline-block; width: 12px; height: 12px; vertical-ali
34274
34338
  openBasket();
34275
34339
  else
34276
34340
  void addCurrent();
34277
- } }), tool && u2(Button, { variant: "secondary", size: "md", iconOnly: true, tipAbove: true, icon: TOOL_ICONS[tool], "data-action": "pick-again", label: COPY.capture.actions.pickAgain, onClick: () => startPicking(tool) }), props.saveToProject && output2 && u2(SaveButton, { save: saveAll, projectName: activeProject?.name }, output2.fileName), props.makeRule && output2 && output2.capture.meta.scope === "component" && u2(RuleButton, { make: () => props.makeRule(output2.fileName, markdown) }, `rule ${output2.fileName}`)] })] })] }) : u2(S, { children: [u2("div", { class: "greet", children: [u2(Mascot, { pose: "annoyed", size: 96 }), u2("p", { class: "error", "data-part": "error", children: result.message })] }), tool && u2("div", { class: "row", children: u2(Button, { variant: "secondary", icon: TOOL_ICONS[tool], "data-action": "pick-again", onClick: () => startPicking(tool), children: COPY.capture.actions.pickAgain }) })] }) })] }), picking && tool && u2("div", { class: "pick-layer", "data-part": "pick-layer", onPointerMove: (e6) => pickMove(e6.clientX, e6.clientY), onPointerDown: (e6) => {
34341
+ } }), tool && u2(Button, { variant: "secondary", size: "md", iconOnly: true, tipAbove: true, icon: TOOL_ICONS[tool], "data-action": "pick-again", label: COPY.capture.actions.pickAgain, onClick: () => startPicking(tool) }), props.saveToProject && output2 && u2(SaveButton, { save: saveAll, projectName: activeProject?.name }, output2.fileName), props.makeRule && output2 && output2.capture.meta.scope === "component" && u2(RuleButton, { make: () => props.makeRule(output2.fileName, markdown) }, `rule ${output2.fileName}`)] })] })] }) : u2(S, { children: [u2("div", { class: "greet", children: [u2(Mascot, { pose: "annoyed", size: 96 }), u2("p", { class: "error", "data-part": "error", children: result.message })] }), tool && u2("div", { class: "row", children: u2(Button, { variant: "secondary", icon: TOOL_ICONS[tool], "data-action": "pick-again", onClick: () => startPicking(tool), children: COPY.capture.actions.pickAgain }) })] }) })] }), picking && tool && u2("div", { class: "pick-layer", "data-part": "pick-layer", onPointerMove: (e6) => {
34342
+ if (e6.pointerType !== "touch")
34343
+ pickMove(e6.clientX, e6.clientY);
34344
+ }, onPointerDown: (e6) => {
34278
34345
  e6.preventDefault();
34279
34346
  e6.currentTarget.setPointerCapture?.(e6.pointerId);
34280
34347
  pickDown(e6.clientX, e6.clientY);
34281
34348
  }, onPointerUp: (e6) => {
34282
34349
  e6.preventDefault();
34283
- pickUp(e6.clientX, e6.clientY);
34350
+ pickUp(e6.clientX, e6.clientY, e6.pointerType === "touch");
34351
+ }, onPointerCancel: () => {
34352
+ drag.current = null;
34284
34353
  }, onWheel: (e6) => pickWheel(e6), onContextMenu: (e6) => e6.preventDefault() }), pixelMode && u2(S, { children: [u2("div", { class: "pixel-layer", "data-part": "pixel-layer", onPointerMove: (e6) => setPixelHover(samplePixel(e6.clientX, e6.clientY)), onPointerLeave: () => setPixelHover(null), onClick: (e6) => pickPixelAt(e6.clientX, e6.clientY) }), pixelHover && shot.current && (() => {
34285
34354
  const left = pixelHover.x + 20 + LOUPE_PX > win.innerWidth ? pixelHover.x - 20 - LOUPE_PX : pixelHover.x + 20;
34286
34355
  const top = pixelHover.y + 20 + LOUPE_PX + 36 > win.innerHeight ? pixelHover.y - 20 - LOUPE_PX - 36 : pixelHover.y + 20;
@@ -35146,9 +35215,11 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
35146
35215
  var isCopied = (i3) => shownStatus(i3.status) === "copied";
35147
35216
  var plural4 = (n2, word) => `${n2} ${word}${n2 === 1 ? "" : "s"}`;
35148
35217
  var popAt = (win, x3, y3) => ({
35149
- left: `${Math.max(12, Math.min(x3, win.innerWidth - 352))}px`,
35218
+ left: `${Math.max(12, Math.min(x3, win.innerWidth - 376))}px`,
35150
35219
  top: `${Math.max(12, Math.min(y3 + 12, win.innerHeight - 320))}px`
35151
35220
  });
35221
+ var NARROW = 640;
35222
+ var noteAt = (win, x3, y3) => win.innerWidth < NARROW ? {} : popAt(win, x3, y3);
35152
35223
  var PAUSE_CSS = "*, *::before, *::after { animation-play-state: paused !important; transition: none !important; caret-color: transparent !important; }";
35153
35224
  function copyScope(items2) {
35154
35225
  const fresh = items2.filter((i3) => i3.status === "pending").length;
@@ -35162,6 +35233,8 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
35162
35233
  const [error62, setError] = d2(null);
35163
35234
  const [annotating, setAnnotating] = d2(false);
35164
35235
  const [candidate, setCandidate] = d2(null);
35236
+ const [tapped, setTapped] = d2(false);
35237
+ const touchPress = A2(false);
35165
35238
  const [draft, setDraft] = d2(null);
35166
35239
  const [openRef, setOpenRef] = d2(null);
35167
35240
  const [panel, setPanel] = d2(null);
@@ -35249,6 +35322,7 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
35249
35322
  else if (annotating) {
35250
35323
  setAnnotating(false);
35251
35324
  setCandidate(null);
35325
+ setTapped(false);
35252
35326
  } else
35253
35327
  return;
35254
35328
  e6.preventDefault();
@@ -35287,13 +35361,40 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
35287
35361
  setOpenRef(null);
35288
35362
  setPanel(null);
35289
35363
  setSelection(null);
35364
+ setTapped(false);
35365
+ if (touchPress.current)
35366
+ setCandidate(null);
35290
35367
  setDraft({ el, at: { x: x3, y: y3 }, ...selectedText ? { selectedText } : {} });
35291
35368
  };
35292
- const pickMove = (e6) => setCandidate(elementAt(doc, e6.clientX, e6.clientY));
35369
+ const pickDown = (e6) => {
35370
+ touchPress.current = e6.pointerType === "touch";
35371
+ };
35372
+ const pickMove = (e6) => {
35373
+ if (e6.pointerType !== "touch") {
35374
+ setCandidate(elementAt(doc, e6.clientX, e6.clientY));
35375
+ setTapped(false);
35376
+ }
35377
+ };
35378
+ const pickLeave = (e6) => {
35379
+ if (e6.pointerType !== "touch" && !tapped)
35380
+ setCandidate(null);
35381
+ };
35293
35382
  const pickClick = (e6) => {
35294
35383
  const el = elementAt(doc, e6.clientX, e6.clientY);
35295
- if (el)
35296
- startDraft(el, e6.clientX, e6.clientY);
35384
+ if (!el)
35385
+ return;
35386
+ if (touchPress.current && !(tapped && el === candidate)) {
35387
+ setCandidate(el);
35388
+ setTapped(true);
35389
+ return;
35390
+ }
35391
+ startDraft(el, e6.clientX, e6.clientY);
35392
+ };
35393
+ const noteTapped = () => {
35394
+ if (!candidate)
35395
+ return;
35396
+ const r4 = candidate.getBoundingClientRect();
35397
+ startDraft(candidate, r4.left + r4.width / 2, r4.bottom);
35297
35398
  };
35298
35399
  const pickWheel = (e6) => {
35299
35400
  const under = elementAt(doc, e6.clientX, e6.clientY);
@@ -35374,6 +35475,7 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
35374
35475
  const toggleAnnotate = () => {
35375
35476
  setAnnotating((a3) => !a3);
35376
35477
  setCandidate(null);
35478
+ setTapped(false);
35377
35479
  setDraft(null);
35378
35480
  };
35379
35481
  useShortcuts(doc, [
@@ -35388,7 +35490,7 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
35388
35490
  setChecking(false);
35389
35491
  setError(why);
35390
35492
  });
35391
- }, children: checking ? u2(S, { children: [u2(ButtonSpinner, {}), "Checking\u2026"] }) : "This browser" }), u2(Button, { iconOnly: true, size: "lg", class: "tool", icon: X2, label: "Close Luci", "data-action": "close", onClick: props.onClose })] }), copyMenu && u2("div", { class: "menu", role: "menu", "data-part": "copy-menu", children: [u2("button", { type: "button", role: "menuitem", "data-copy": "new", disabled: !fresh, onClick: () => void copyPrompt(false), children: ["Only new notes (", fresh, ")", u2("span", { class: "dim", children: "Notes not sent to the agent yet" })] }), u2("button", { type: "button", role: "menuitem", "data-copy": "open", disabled: !openCount, onClick: () => void copyPrompt(true), children: ["All notes not done (", openCount, ")", u2("span", { class: "dim", children: "Sends earlier notes again too" })] })] }), !annotating && !draft && !paused && panel === null && !open2 && !copyMenu && u2("div", { class: "sub with-luci", role: "note", "data-part": "intro", children: [u2(Mascot, { pose: "peek", size: 96 }), u2("div", { class: "sub-body", children: [u2("p", { class: "hint", children: COPY.devToolbar.intro.feedback.body }), u2("p", { class: "keys", children: COPY.devToolbar.intro.feedback.keys })] })] }), annotating && !draft && u2("div", { class: "sub with-luci", role: "note", "data-part": "hint", children: [u2(Mascot, { pose: "note", size: 96 }), u2("div", { class: "sub-body", children: u2("p", { class: "hint", children: "Click an element to leave a note. Esc stops. Then select text to note words." }) })] }), paused && !(annotating && !draft) && u2("div", { class: "sub with-luci", role: "status", "data-part": "paused", children: [u2(Mascot, { pose: "turned", size: 96, animated: false }), u2("div", { class: "sub-body", children: [u2("p", { class: "hint", children: "Page paused. Its animations are frozen." }), u2("p", { class: "keys", children: [FEEDBACK_KEYS.pause, ": resume"] })] })] }), annotating && !draft && u2("div", { class: "pick-layer", "data-part": "pick-layer", onPointerMove: pickMove, onClick: pickClick, onWheel: pickWheel, onPointerLeave: () => setCandidate(null) }), hoverRect && u2(S, { children: [u2("div", { class: "highlight", style: { left: `${hoverRect.left}px`, top: `${hoverRect.top}px`, width: `${hoverRect.width}px`, height: `${hoverRect.height}px` } }), u2("div", { class: "label", "data-part": "hover-label", style: { left: `${hoverRect.left}px`, top: `${Math.max(0, hoverRect.top - 24)}px` }, children: hoverName })] }), selection && !draft && u2("button", { type: "button", class: "chip-add btn-primary", "data-action": "add-selection", style: popAt(win, selection.x, selection.y - 8), onClick: () => startDraft(selection.el, selection.x, selection.y, selection.text), children: "Add feedback" }), here.map((item) => {
35493
+ }, children: checking ? u2(S, { children: [u2(ButtonSpinner, {}), "Checking\u2026"] }) : "This browser" }), u2(Button, { iconOnly: true, size: "lg", class: "tool", icon: X2, label: "Close Luci", "data-action": "close", onClick: props.onClose })] }), copyMenu && u2("div", { class: "menu", role: "menu", "data-part": "copy-menu", children: [u2("button", { type: "button", role: "menuitem", "data-copy": "new", disabled: !fresh, onClick: () => void copyPrompt(false), children: ["Only new notes (", fresh, ")", u2("span", { class: "dim", children: "Notes not sent to the agent yet" })] }), u2("button", { type: "button", role: "menuitem", "data-copy": "open", disabled: !openCount, onClick: () => void copyPrompt(true), children: ["All notes not done (", openCount, ")", u2("span", { class: "dim", children: "Sends earlier notes again too" })] })] }), !annotating && !draft && !paused && panel === null && !open2 && !copyMenu && u2("div", { class: "sub with-luci", role: "note", "data-part": "intro", children: [u2(Mascot, { pose: "peek", size: 96 }), u2("div", { class: "sub-body", children: [u2("p", { class: "hint", children: COPY.devToolbar.intro.feedback.body }), u2("p", { class: "keys", children: COPY.devToolbar.intro.feedback.keys })] })] }), annotating && !draft && u2("div", { class: "sub with-luci", role: "note", "data-part": "hint", children: [u2(Mascot, { pose: "note", size: 96 }), u2("div", { class: "sub-body", children: tapped && candidate ? u2(S, { children: [u2("p", { class: "hint", children: u2("strong", { "data-part": "tapped-name", children: hoverName }) }), u2("div", { class: "row", children: [u2("button", { type: "button", class: "btn-primary", "data-action": "note-tapped", onClick: noteTapped, children: "Add note" }), u2("button", { type: "button", class: "btn-secondary", "data-action": "tap-parent", disabled: !parentOf2(candidate) || parentOf2(candidate) === doc.documentElement, onClick: () => setCandidate(parentOf2(candidate)), children: "Parent" })] })] }) : u2("p", { class: "hint", children: touchScreen(win) ? "Tap an element to select it, then add your note. Then select text to note words." : "Click an element to leave a note. Esc stops. Then select text to note words." }) })] }), paused && !(annotating && !draft) && u2("div", { class: "sub with-luci", role: "status", "data-part": "paused", children: [u2(Mascot, { pose: "turned", size: 96, animated: false }), u2("div", { class: "sub-body", children: [u2("p", { class: "hint", children: "Page paused. Its animations are frozen." }), u2("p", { class: "keys", children: [FEEDBACK_KEYS.pause, ": resume"] })] })] }), annotating && !draft && u2("div", { class: "pick-layer", "data-part": "pick-layer", onPointerDown: pickDown, onPointerMove: pickMove, onClick: pickClick, onWheel: pickWheel, onPointerLeave: pickLeave }), hoverRect && u2(S, { children: [u2("div", { class: "highlight", style: { left: `${hoverRect.left}px`, top: `${hoverRect.top}px`, width: `${hoverRect.width}px`, height: `${hoverRect.height}px` } }), u2("div", { class: "label", "data-part": "hover-label", style: { left: `${hoverRect.left}px`, top: `${Math.max(0, hoverRect.top - 24)}px` }, children: hoverName })] }), selection && !draft && u2("button", { type: "button", class: "chip-add btn-primary", "data-action": "add-selection", style: popAt(win, selection.x, selection.y - 8), onClick: () => startDraft(selection.el, selection.x, selection.y, selection.text), children: "Add feedback" }), here.map((item) => {
35392
35494
  const pos = markerPos(item);
35393
35495
  if (!pos)
35394
35496
  return null;
@@ -35397,9 +35499,9 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
35397
35499
  setOpenRef((r4) => r4 === item.ref ? null : item.ref);
35398
35500
  setDraft(null);
35399
35501
  }, children: [n2, STATUS_MARK[shownStatus(item.status)]] });
35400
- }), draft && u2("div", { class: "pop", role: "dialog", "aria-label": "New feedback", "data-part": "note-form", style: popAt(win, draft.at.x, draft.at.y), children: [u2("h3", { children: draft.selectedText ? "Feedback on the selected text" : `Feedback on ${nameOf2(draft.el)}` }), draft.selectedText && u2("p", { class: "quote", "data-part": "selected", children: ["\u201C", draft.selectedText, "\u201D"] }), u2(NoteForm, { submitLabel: "Save", onSubmit: save, onCancel: () => setDraft(null) }, `${draft.at.x},${draft.at.y}`)] }), open2 && (() => {
35502
+ }), draft && u2("div", { class: "pop", role: "dialog", "aria-label": "New feedback", "data-part": "note-form", style: noteAt(win, draft.at.x, draft.at.y), children: [u2("h3", { children: draft.selectedText ? "Feedback on the selected text" : `Feedback on ${nameOf2(draft.el)}` }), draft.selectedText && u2("p", { class: "quote", "data-part": "selected", children: ["\u201C", draft.selectedText, "\u201D"] }), u2(NoteForm, { submitLabel: "Save", onSubmit: save, onCancel: () => setDraft(null) }, `${draft.at.x},${draft.at.y}`)] }), open2 && (() => {
35401
35503
  const pos = markerPos(open2);
35402
- return u2("div", { class: "pop", role: "dialog", "aria-label": `Note ${open2.ref}`, "data-part": "item", "data-ref": open2.ref, style: popAt(win, pos?.x ?? 24, pos?.y ?? 24), children: u2(NoteDetails, { item: open2, backend, act, onClose: () => setOpenRef(null) }, open2.ref) });
35504
+ return u2("div", { class: "pop", role: "dialog", "aria-label": `Note ${open2.ref}`, "data-part": "item", "data-ref": open2.ref, style: noteAt(win, pos?.x ?? 24, pos?.y ?? 24), children: u2(NoteDetails, { item: open2, backend, act, onClose: () => setOpenRef(null) }, open2.ref) });
35403
35505
  })(), panel === "items" && u2("div", { class: "panel", role: "dialog", "aria-label": "Feedback notes", "data-part": "items", children: prompt ? u2(S, { children: [u2("h2", { children: prompt.text ? `Prompt with ${plural4(prompt.refs.length, "note")}` : "Nothing to send" }), prompt.text ? u2(S, { children: [u2("p", { class: "hint", "data-part": "copied", children: [prompt.copied ? "Copied. Paste it to your agent." : "Copy it below. Paste it to your agent.", backend.kind === "project" ? " Your agent can also fetch it with get_feedback_prompt." : "", " These notes are now marked as sent."] }), u2("pre", { "data-part": "prompt", children: prompt.text })] }) : u2(EmptyState, { title: "Every note is done.", pose: "content", part: "all-done" }), u2("div", { class: "row", children: u2("button", { type: "button", "data-action": "prompt-back", onClick: () => setPrompt(null), children: "Back to the notes" }) })] }) : u2(NotesPanel, { items: items2, route, backend, act, scope, onCopy: () => void copyPrompt(scope.includeSent), onShow: (ref2) => {
35404
35506
  setPanel(null);
35405
35507
  setOpenRef(ref2);
@@ -35424,7 +35526,7 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
35424
35526
  return u2(S, { children: [u2("textarea", { ref: ref2, "data-part": "comment", placeholder: "What should change?", value: comment, onInput: (e6) => setComment(e6.currentTarget.value), onKeyDown: (e6) => {
35425
35527
  if (e6.key === "Enter" && (e6.metaKey || e6.ctrlKey))
35426
35528
  void submit();
35427
- } }), u2("div", { class: "row", children: [u2("label", { children: ["Intent ", u2(Select, { "data-part": "intent", value: intent, onChange: (e6) => setIntent(e6.currentTarget.value), children: FEEDBACK_INTENTS.map((i3) => u2("option", { value: i3, children: i3 })) })] }), u2("label", { children: ["Priority ", u2(Select, { "data-part": "priority", value: priority, onChange: (e6) => setPriority(e6.currentTarget.value), children: FEEDBACK_PRIORITIES.map((p6) => u2("option", { value: p6, children: p6 })) })] })] }), u2("div", { class: "row", children: [u2("button", { type: "button", class: "btn-primary", "data-action": "save-note", disabled: !comment.trim() || busy, onClick: () => void submit(), children: busy ? u2(S, { children: [u2(ButtonSpinner, {}), "Saving\u2026"] }) : props.submitLabel }), u2("button", { type: "button", "data-action": "cancel-note", onClick: props.onCancel, children: "Cancel" })] })] });
35529
+ } }), u2("div", { class: "note-choice", children: [u2("span", { class: "field-label", "aria-hidden": "true", children: "Intent" }), u2("div", { class: "seg", role: "group", "aria-label": "Intent", "data-part": "intent", children: FEEDBACK_INTENTS.map((i3) => u2("button", { type: "button", "data-value": i3, "aria-pressed": intent === i3, onClick: () => setIntent(i3), children: i3 })) })] }), u2("div", { class: "note-choice", children: [u2("span", { class: "field-label", "aria-hidden": "true", children: "Priority" }), u2("div", { class: "seg", role: "group", "aria-label": "Priority", "data-part": "priority", children: FEEDBACK_PRIORITIES.map((p6) => u2("button", { type: "button", "data-value": p6, "aria-pressed": priority === p6, onClick: () => setPriority(p6), children: p6 })) })] }), u2("div", { class: "row", children: [u2("button", { type: "button", class: "btn-primary", "data-action": "save-note", disabled: !comment.trim() || busy, onClick: () => void submit(), children: busy ? u2(S, { children: [u2(ButtonSpinner, {}), "Saving\u2026"] }) : props.submitLabel }), u2("button", { type: "button", "data-action": "cancel-note", onClick: props.onCancel, children: "Cancel" })] })] });
35428
35530
  }
35429
35531
  function NoteDetails(props) {
35430
35532
  const { item, backend, act } = props;
@@ -35465,7 +35567,7 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
35465
35567
  const [hook, setHook] = d2(s3.webhookUrl ?? "");
35466
35568
  const [confirm, setConfirm] = d2(false);
35467
35569
  const validHook = !hook || /^https?:\/\/\S+$/.test(hook);
35468
- return u2("div", { class: "panel", role: "dialog", "aria-label": "Feedback 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(Badge, { brand: true, children: "Beta" })] }), u2(RepoButton, {})] }), u2(AppearanceControls, { prefs: props.uiPrefs, onChange: props.onUiPrefsChange, movable: true, moved: Boolean(props.uiPrefs.devPlace) }), u2("hr", { class: "settings-divider" }), u2("div", { class: "stack", children: [u2("span", { children: "Marker color" }), u2("div", { class: "swatches", role: "group", "aria-label": "Marker color", children: MARKER_COLORS2.map((c4) => u2("button", { type: "button", "aria-label": c4, "aria-pressed": s3.markerColor === c4, "data-color": c4, style: { background: c4 }, onClick: () => props.onChange({ ...s3, markerColor: c4 }) })) })] }), u2("label", { children: ["Prompt detail ", u2(Select, { "data-part": "detail", value: s3.detail, onChange: (e6) => props.onChange({ ...s3, detail: e6.currentTarget.value }), children: DETAIL_LEVELS.map((d3) => u2("option", { value: d3, children: d3 })) })] }), u2("p", { class: "dim", children: "compact: selector and text. standard: + source file and components. detailed: + computed styles." }), u2("div", { class: "stack", children: [u2("span", { children: "Webhook (optional)" }), u2("input", { type: "url", class: "field", "data-part": "webhook", placeholder: "https://...", value: hook, onInput: (e6) => setHook(e6.currentTarget.value.trim()) }), u2("div", { class: "row", children: [u2("button", { type: "button", "data-action": "save-webhook", disabled: !validHook, onClick: () => {
35570
+ return u2("div", { class: "panel", role: "dialog", "aria-label": "Feedback 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: props.uiPrefs, onChange: props.onUiPrefsChange, movable: true, moved: Boolean(props.uiPrefs.devPlace) }), u2("hr", { class: "settings-divider" }), u2("div", { class: "stack", children: [u2("span", { children: "Marker color" }), u2("div", { class: "swatches", role: "group", "aria-label": "Marker color", children: MARKER_COLORS2.map((c4) => u2("button", { type: "button", "aria-label": c4, "aria-pressed": s3.markerColor === c4, "data-color": c4, style: { background: c4 }, onClick: () => props.onChange({ ...s3, markerColor: c4 }) })) })] }), u2("label", { children: ["Prompt detail ", u2(Select, { "data-part": "detail", value: s3.detail, onChange: (e6) => props.onChange({ ...s3, detail: e6.currentTarget.value }), children: DETAIL_LEVELS.map((d3) => u2("option", { value: d3, children: d3 })) })] }), u2("p", { class: "dim", children: "compact: selector and text. standard: + source file and components. detailed: + computed styles." }), u2("div", { class: "stack", children: [u2("span", { children: "Webhook (optional)" }), u2("input", { type: "url", class: "field", "data-part": "webhook", placeholder: "https://...", value: hook, onInput: (e6) => setHook(e6.currentTarget.value.trim()) }), u2("div", { class: "row", children: [u2("button", { type: "button", "data-action": "save-webhook", disabled: !validHook, onClick: () => {
35469
35571
  const { webhookUrl: _w, ...rest } = s3;
35470
35572
  props.onChange(hook ? { ...rest, webhookUrl: hook } : rest);
35471
35573
  }, children: "Save webhook" }), u2("span", { class: "dim", children: "Sent only when you press Send to webhook." })] })] }), u2("div", { class: "row danger", children: confirm ? u2("button", { class: "btn-danger", type: "button", "data-action": "clear-all-confirm", onClick: () => {
@@ -35503,11 +35605,21 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
35503
35605
  .marker.lost { opacity: 0.6; }
35504
35606
 
35505
35607
  /* The note popover */
35506
- .pop { position: fixed; z-index: 2147483647; width: min(360px, calc(100vw - 24px)); display: flex; flex-direction: column; gap: var(--luci-space-12); padding: var(--luci-space-16);
35507
- background: var(--luci-color-surface); border-radius: var(--luci-radius-lg); box-shadow: var(--luci-shadow-float); }
35608
+ .pop { position: fixed; z-index: 2147483647; box-sizing: border-box; width: min(360px, calc(100vw - 24px)); max-width: calc(100vw - 24px); display: flex; flex-direction: column; gap: var(--luci-space-12); padding: var(--luci-space-16);
35609
+ background: var(--luci-color-surface); border-radius: var(--luci-radius-lg); box-shadow: var(--luci-elevation); overflow-wrap: break-word; word-break: break-word; }
35610
+ /* Intent and priority: a label over its segmented choice */
35611
+ .note-choice { display: flex; flex-direction: column; gap: var(--luci-space-4); }
35612
+ .note-choice .seg { flex-wrap: wrap; }
35613
+ /* On a phone a note is a sheet above the bar, full width; cards under it step aside */
35614
+ @media (max-width: 639px) {
35615
+ .pop { left: 8px; right: 8px; width: auto; max-width: none; top: auto;
35616
+ bottom: calc(var(--luci-y, 12px) + var(--luci-bar-h, 64px) + 8px);
35617
+ max-height: calc(100vh - var(--luci-y, 12px) - var(--luci-bar-h, 64px) - 24px); overflow-y: auto; overscroll-behavior: contain; }
35618
+ .luci-theme:has(> .pop) > .sub { display: none; }
35619
+ }
35508
35620
  .pop h3 { margin: 0; font: var(--luci-type-heading-weight) var(--luci-type-heading-size)/var(--luci-type-heading-line) var(--luci-font-body); }
35509
35621
  .pop textarea { min-height: 72px; }
35510
- .pop .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); }
35622
+ .pop .quote, .details .quote { margin: 0; padding: var(--luci-space-8) var(--luci-space-12); border-radius: var(--luci-radius-md); background: var(--luci-color-surface-sunken); color: var(--luci-color-ink-secondary); overflow-wrap: break-word; word-break: break-word; }
35511
35623
  .thread { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--luci-space-4); }
35512
35624
  .thread li { padding: var(--luci-space-8) var(--luci-space-12); border-radius: var(--luci-radius-md); background: var(--luci-color-surface-sunken); }
35513
35625
  .thread li.agent { background: var(--luci-color-primary-soft); }
@@ -35526,7 +35638,7 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
35526
35638
  .split > button:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
35527
35639
  .luci-theme .bar .split .caret { --luci-btn-h: 48px; width: 28px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
35528
35640
  .menu { position: fixed; top: 64px; right: var(--luci-space-12); z-index: 2147483647; display: flex; flex-direction: column; gap: 2px; padding: var(--luci-space-8); min-width: 280px;
35529
- background: var(--luci-color-surface-raised); border-radius: var(--luci-radius-md); box-shadow: var(--luci-shadow-float); }
35641
+ background: var(--luci-color-surface-raised); border-radius: var(--luci-radius-md); box-shadow: var(--luci-elevation); }
35530
35642
  .luci-theme[data-dock="left"] .menu { right: auto; left: var(--luci-space-12); }
35531
35643
  .luci-theme .menu button { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 48px; padding: var(--luci-space-8) var(--luci-space-12);
35532
35644
  border-radius: var(--luci-radius-sm); text-align: left; white-space: normal; }
@@ -35546,14 +35658,16 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
35546
35658
  border-radius: var(--luci-radius-lg); text-align: left; white-space: normal; font-weight: 400; }
35547
35659
  .row-main .body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
35548
35660
  .row-main .comment { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
35549
- .meta { margin: 0; color: var(--luci-color-ink-secondary); font-size: var(--luci-type-small-size); }
35661
+ .meta { margin: 0; color: var(--luci-color-ink-secondary); font-size: var(--luci-type-small-size); overflow-wrap: anywhere; word-break: break-word; }
35662
+ .meta code, .details code, [data-part="note-source"] code { font: var(--luci-type-code-weight) 12px/1.4 var(--luci-font-code); color: var(--luci-color-ink); background: var(--luci-color-surface-sunken); padding: 1px var(--luci-space-4); border-radius: var(--luci-radius-sm); word-break: break-all; overflow-wrap: anywhere; white-space: normal; }
35550
35663
  .dot { flex: none; min-width: 22px; height: 22px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--luci-radius-full);
35551
35664
  background: var(--marker); color: var(--marker-ink); font: 600 11px/1 var(--luci-font-body); }
35552
35665
  .dot.copied { background: var(--luci-color-surface-sunken); color: var(--luci-color-ink); }
35553
35666
  .dot.done { background: var(--luci-color-success-bg); color: var(--luci-color-success); }
35554
35667
  .row-details { display: flex; flex-direction: column; gap: var(--luci-space-8); padding: 0 var(--luci-space-12) var(--luci-space-12) 46px; }
35555
- .details h3 { display: flex; gap: var(--luci-space-8); align-items: center; }
35556
- .details .comment { margin: 0; }
35668
+ .details { display: flex; flex-direction: column; gap: var(--luci-space-8); min-width: 0; max-width: 100%; overflow-wrap: break-word; word-break: break-word; }
35669
+ .details h3 { display: flex; gap: var(--luci-space-8); align-items: center; flex-wrap: wrap; margin: 0; }
35670
+ .details .comment { margin: 0; overflow-wrap: break-word; word-break: break-word; white-space: pre-wrap; }
35557
35671
  .row-details .details { gap: var(--luci-space-8); }
35558
35672
  .link, .luci-theme .link-button { color: var(--luci-color-link); align-self: flex-start; }
35559
35673
  .luci-theme .link-button { min-height: 0; padding: 0; text-decoration: underline; font-weight: 500; }
@@ -36179,8 +36293,8 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
36179
36293
  continue;
36180
36294
  const token = scale.tokens.get(parseFloat(to));
36181
36295
  const k6 = this.kept.get(el);
36182
- const side = prop === "width" && k6?.x ? k6.x.keep === "end" ? "left" : "right" : prop === "height" && k6?.y ? k6.y.keep === "end" ? "up" : "down" : void 0;
36183
- out.push({ op: "set", property: prop, from, to, ...token ? { token } : {}, ...side ? { grow: side } : {} });
36296
+ const side2 = prop === "width" && k6?.x ? k6.x.keep === "end" ? "left" : "right" : prop === "height" && k6?.y ? k6.y.keep === "end" ? "up" : "down" : void 0;
36297
+ out.push({ op: "set", property: prop, from, to, ...token ? { token } : {}, ...side2 ? { grow: side2 } : {} });
36184
36298
  }
36185
36299
  for (const ins of this.added.values()) {
36186
36300
  if (ins.anchor !== el)
@@ -36651,9 +36765,9 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
36651
36765
  function handleStyle(edge, b2) {
36652
36766
  const x3 = edge.includes("w") ? b2.left : edge.includes("e") ? b2.right : b2.left + b2.width / 2;
36653
36767
  const y3 = edge.includes("n") ? b2.top : edge.includes("s") ? b2.bottom : b2.top + b2.height / 2;
36654
- const side = edge.length === 1;
36655
- const w3 = side && (edge === "e" || edge === "w") ? 10 : side ? 24 : 14;
36656
- const h3 = side && (edge === "n" || edge === "s") ? 10 : side ? 24 : 14;
36768
+ const side2 = edge.length === 1;
36769
+ const w3 = side2 && (edge === "e" || edge === "w") ? 10 : side2 ? 24 : 14;
36770
+ const h3 = side2 && (edge === "n" || edge === "s") ? 10 : side2 ? 24 : 14;
36657
36771
  return { left: `${x3 - w3 / 2}px`, top: `${y3 - h3 / 2}px`, width: `${w3}px`, height: `${h3}px`, cursor: CURSOR[edge] };
36658
36772
  }
36659
36773
  function Layout(props) {
@@ -36664,6 +36778,7 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
36664
36778
  const [scale, setScale] = d2(null);
36665
36779
  const [selecting, setSelecting] = d2(true);
36666
36780
  const [hovered, setHovered] = d2(null);
36781
+ const placeTouch = A2(false);
36667
36782
  const [selected, setSelected] = d2(null);
36668
36783
  const [drag, setDrag] = d2(null);
36669
36784
  const [drop, setDrop] = d2(null);
@@ -36986,7 +37101,7 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
36986
37101
  const insBox = selIns ? p6.insertRect(selIns.id) : null;
36987
37102
  const placeButtons = (anchor2, onPlace, current) => u2("div", { class: "row", "data-part": "place-buttons", children: ["before", "after", ...LEAF.test(anchor2.tagName) ? [] : ["start", "end"]].map((pos) => u2("button", { type: "button", "data-place": pos, "aria-pressed": current === pos, onClick: () => onPlace(pos), children: { before: "Before", after: "After", start: "Inside, start", end: "Inside, end" }[pos] })) });
36988
37103
  const catalogView = () => u2("div", { class: "stack", "data-part": "insert-catalog", children: [u2("h2", { children: "Insert" }), u2("p", { class: "dim", children: "Pick what to add. Then click where it goes." }), u2(PartPicker, { sources, onChoose: choose })] });
36989
- const placingView = (pl) => u2("div", { class: "stack", "data-part": "placing", children: [u2("h2", { children: ["Place: ", partName2(pl.what)] }), u2("div", { class: "luci-hint", "data-part": "placing-hint", children: [u2(Mascot, { pose: "place", size: 96 }), u2("p", { class: "hint", children: "Click where it goes. Near an edge: before or after. The middle of a card or list: inside, at the end. Esc cancels." })] }), selected && u2("div", { class: "stack", children: [u2("span", { children: ["Or next to ", nameWithComponent(selected), ":"] }), placeButtons(selected, (pos) => placeAt(selected, pos))] }), u2("div", { class: "row", children: u2("button", { type: "button", "data-action": "cancel-insert", onClick: () => {
37104
+ const placingView = (pl) => u2("div", { class: "stack", "data-part": "placing", children: [u2("h2", { children: ["Place: ", partName2(pl.what)] }), u2("div", { class: "luci-hint", "data-part": "placing-hint", children: [u2(Mascot, { pose: "place", size: 96 }), u2("p", { class: "hint", children: touchScreen(doc.defaultView ?? window) ? "Tap where it goes to see it there, then tap again to place it. Near an edge: before or after. The middle of a card or list: inside, at the end." : "Click where it goes. Near an edge: before or after. The middle of a card or list: inside, at the end. Esc cancels." })] }), selected && u2("div", { class: "stack", children: [u2("span", { children: ["Or next to ", nameWithComponent(selected), ":"] }), placeButtons(selected, (pos) => placeAt(selected, pos))] }), u2("div", { class: "row", children: u2("button", { type: "button", "data-action": "cancel-insert", onClick: () => {
36990
37105
  setPlacing(null);
36991
37106
  setPlaceHover(null);
36992
37107
  }, children: "Cancel" }) })] });
@@ -37082,15 +37197,27 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
37082
37197
  } }), u2(Button, { iconOnly: true, size: "lg", class: "tool", icon: RotateCcw, label: "Reset", tip: "Back to what your code has", "data-action": "reset", disabled: !plannedCount && !p6.canUndo, onClick: () => {
37083
37198
  p6.reset();
37084
37199
  bump();
37085
- } }), 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(Badge, { brand: true, children: "Beta" })] }), u2(RepoButton, {})] }), u2(AppearanceControls, { prefs: uiPrefs, onChange: setUiPrefs, movable: true, moved: Boolean(uiPrefs.devPlace) })] })), sketching && scale && u2(Sketch, { doc, backend, base: scale.base, onClose: () => setSketching(false) }), !sketching && u2(S, { children: [!scale && u2("div", { class: "sub", children: u2(Loading, { text: "Reading the page's spacing scale\u2026", part: "scale-loading", sleep: true }) }), result?.why && u2("div", { class: "sub", role: "status", "data-part": "reset-note", children: u2("p", { class: "hint", children: ["Preview cleared. Your plan is safe in the ", result.prompt ? "copied prompt" : "Feedback notes", "."] }) }), scale && selecting && !selected && !result && !catalog && !placing && u2("div", { class: "sub with-luci", role: "note", "data-part": "hint", children: [u2(Mascot, { pose: "arrange", size: 96 }), u2("div", { class: "sub-body", children: u2("p", { class: "hint", children: ["Click an element. Drag its handles to resize, \u283F to move it. Values snap to this page's ", scale.base, "px scale. Your code stays as it is."] }) })] }), scale && placing && !drag && u2("div", { class: "pick-layer", "data-part": "place-layer", onPointerMove: (e6) => {
37200
+ } }), u2(Button, { iconOnly: true, size: "lg", variant: "primary", class: "tool", icon: ClipboardCopy, "data-action": "copy-layout-prompt", disabled: !plannedCount || Boolean(busy), loading: busy === "copy", badge: plannedCount || void 0, label: busy === "copy" ? "Copying" : `Copy prompt${plannedCount ? ` (${plannedCount})` : ""}`, tip: "The page goes back as it was", onClick: () => void copyPrompt() })] }), u2("span", { class: `conn ${backend.kind}`, "data-part": "connection", title: backend.kind === "project" ? "Notes are saved in the project" : props.connectNote ?? "", children: backend.kind === "project" ? "Project" : "This browser" }), u2(Button, { iconOnly: true, size: "lg", class: "tool", icon: X2, label: "Close Luci", "data-action": "close", onClick: props.onClose })] }), settingsOpen && (props.modes ? u2(DevSettingsPanel, { currentMode: "layout", uiPrefs, onUiPrefsChange: setUiPrefs, projectInfo: props.projectInfo, store: props.store }) : u2("div", { class: "panel", role: "dialog", "aria-label": "Layout settings", "data-part": "settings", children: [u2("div", { class: "settings-head", children: [u2("div", { class: "row", style: { alignItems: "center", gap: "8px" }, children: u2("h2", { children: "Settings" }) }), u2(RepoButton, {})] }), u2(AppearanceControls, { prefs: uiPrefs, onChange: setUiPrefs, movable: true, moved: Boolean(uiPrefs.devPlace) })] })), sketching && scale && u2(Sketch, { doc, backend, base: scale.base, onClose: () => setSketching(false) }), !sketching && u2(S, { children: [!scale && u2("div", { class: "sub", children: u2(Loading, { text: "Reading the page's spacing scale\u2026", part: "scale-loading", sleep: true }) }), result?.why && u2("div", { class: "sub", role: "status", "data-part": "reset-note", children: u2("p", { class: "hint", children: ["Preview cleared. Your plan is safe in the ", result.prompt ? "copied prompt" : "Feedback notes", "."] }) }), scale && selecting && !selected && !result && !catalog && !placing && u2("div", { class: "sub with-luci", role: "note", "data-part": "hint", children: [u2(Mascot, { pose: "arrange", size: 96 }), u2("div", { class: "sub-body", children: u2("p", { class: "hint", children: [touchScreen(doc.defaultView ?? window) ? "Tap an element to see it, again to select it." : "Click an element.", " Drag its handles to resize, \u283F to move it. Values snap to this page's ", scale.base, "px scale. Your code stays as it is."] }) })] }), scale && placing && !drag && u2("div", { class: "pick-layer", "data-part": "place-layer", onPointerDown: (e6) => {
37201
+ placeTouch.current = e6.pointerType === "touch";
37202
+ }, onPointerMove: (e6) => {
37203
+ if (e6.pointerType === "touch")
37204
+ return;
37086
37205
  const el = elementAt(doc, e6.clientX, e6.clientY);
37087
37206
  setPlaceHover(el && !isLuciUi(el) ? placeTarget(doc, el, e6.clientX, e6.clientY) : null);
37088
37207
  }, onClick: (e6) => {
37089
37208
  const el = elementAt(doc, e6.clientX, e6.clientY);
37090
37209
  const t3 = el && !isLuciUi(el) ? placeTarget(doc, el, e6.clientX, e6.clientY) : null;
37091
- if (t3)
37092
- placeAt(t3.anchor, t3.position);
37093
- }, onWheel: pickWheel, onPointerLeave: () => setPlaceHover(null) }), placing && placeHover && u2(S, { children: [placeHover.line && u2("div", { class: "drop-line", "data-part": "place-line", style: { left: `${placeHover.line.left}px`, top: `${placeHover.line.top}px`, width: `${placeHover.line.width}px`, height: `${placeHover.line.height}px` } }), placeHover.outline && u2("div", { class: "highlight inside", "data-part": "place-inside", style: { left: `${placeHover.outline.left}px`, top: `${placeHover.outline.top}px`, width: `${placeHover.outline.width}px`, height: `${placeHover.outline.height}px` } }), (() => {
37210
+ if (!t3)
37211
+ return;
37212
+ if (placeTouch.current && !(placeHover && placeHover.anchor === t3.anchor && placeHover.position === t3.position)) {
37213
+ setPlaceHover(t3);
37214
+ return;
37215
+ }
37216
+ placeAt(t3.anchor, t3.position);
37217
+ }, onWheel: pickWheel, onPointerLeave: (e6) => {
37218
+ if (e6.pointerType !== "touch")
37219
+ setPlaceHover(null);
37220
+ } }), placing && placeHover && u2(S, { children: [placeHover.line && u2("div", { class: "drop-line", "data-part": "place-line", style: { left: `${placeHover.line.left}px`, top: `${placeHover.line.top}px`, width: `${placeHover.line.width}px`, height: `${placeHover.line.height}px` } }), placeHover.outline && u2("div", { class: "highlight inside", "data-part": "place-inside", style: { left: `${placeHover.outline.left}px`, top: `${placeHover.outline.top}px`, width: `${placeHover.outline.width}px`, height: `${placeHover.outline.height}px` } }), (() => {
37094
37221
  const r4 = placeHover.line ?? placeHover.outline;
37095
37222
  return u2("div", { class: "label", "data-part": "place-label", style: { left: `${Math.max(2, r4.left)}px`, top: `${Math.max(0, r4.top - 24)}px` }, children: [partName2(placing.what), ": ", POSITION_TEXT[placeHover.position], " ", nameWithComponent(placeHover.anchor)] });
37096
37223
  })()] }), p6.inserts().map((ins) => {
@@ -37102,11 +37229,24 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
37102
37229
  const above = insBox.top >= 34;
37103
37230
  const y3 = above ? insBox.top - 32 : insBox.bottom + 6;
37104
37231
  return u2(S, { children: [u2("button", { type: "button", class: "handle h-move", "data-handle": "insert-move", title: "Drag to move it among its neighbors", style: { left: `${Math.max(2, insBox.left)}px`, top: `${y3}px` }, onPointerDown: startInsertDrag("move"), onPointerMove: onDragMove, onPointerUp: endDrag, children: "\u283F" }), u2("div", { class: "label", "data-part": "insert-size-label", style: { left: `${Math.max(2, insBox.left) + 32}px`, top: `${y3 + 2}px` }, children: ["New ", partName2(selIns.what), " ", Math.round(insBox.width), " \xD7 ", Math.round(insBox.height)] })] });
37105
- })(), EDGES.map((edge) => u2("span", { class: `handle h-${edge.length === 1 ? "side" : "corner"}`, "data-handle": `insert-${edge}`, title: "Drag to resize", style: handleStyle(edge, insBox), onPointerDown: startInsertDrag(edge), onPointerMove: onDragMove, onPointerUp: endDrag }))] }), scale && selecting && !placing && !drag && u2("div", { class: "pick-layer", "data-part": "pick-layer", onPointerMove: (e6) => setHovered(elementAt(doc, e6.clientX, e6.clientY)), onClick: (e6) => {
37232
+ })(), EDGES.map((edge) => u2("span", { class: `handle h-${edge.length === 1 ? "side" : "corner"}`, "data-handle": `insert-${edge}`, title: "Drag to resize", style: handleStyle(edge, insBox), onPointerDown: startInsertDrag(edge), onPointerMove: onDragMove, onPointerUp: endDrag }))] }), scale && selecting && !placing && !drag && u2("div", { class: "pick-layer", "data-part": "pick-layer", onPointerDown: (e6) => {
37233
+ placeTouch.current = e6.pointerType === "touch";
37234
+ }, onPointerMove: (e6) => {
37235
+ if (e6.pointerType !== "touch")
37236
+ setHovered(elementAt(doc, e6.clientX, e6.clientY));
37237
+ }, onClick: (e6) => {
37106
37238
  const el = elementAt(doc, e6.clientX, e6.clientY);
37107
- if (el && !isLuciUi(el))
37108
- select(el);
37109
- }, onWheel: pickWheel, onPointerLeave: () => setHovered(null) }), hoverBox && hovered && u2(S, { children: [u2("div", { class: "highlight", style: { left: `${hoverBox.left}px`, top: `${hoverBox.top}px`, width: `${hoverBox.width}px`, height: `${hoverBox.height}px` } }), u2("div", { class: "label", "data-part": "hover-label", style: { left: `${hoverBox.left}px`, top: `${Math.max(0, hoverBox.top - 24)}px` }, children: nameWithComponent(hovered) })] }), boxModel(), box && selected && u2(S, { children: [u2("div", { class: "sel", "data-part": "selection", style: { left: `${box.left}px`, top: `${box.top}px`, width: `${box.width}px`, height: `${box.height}px` } }), (() => {
37239
+ if (!el || isLuciUi(el))
37240
+ return;
37241
+ if (placeTouch.current && el !== hovered) {
37242
+ setHovered(el);
37243
+ return;
37244
+ }
37245
+ select(el);
37246
+ }, onWheel: pickWheel, onPointerLeave: (e6) => {
37247
+ if (e6.pointerType !== "touch")
37248
+ setHovered(null);
37249
+ } }), hoverBox && hovered && u2(S, { children: [u2("div", { class: "highlight", style: { left: `${hoverBox.left}px`, top: `${hoverBox.top}px`, width: `${hoverBox.width}px`, height: `${hoverBox.height}px` } }), u2("div", { class: "label", "data-part": "hover-label", style: { left: `${hoverBox.left}px`, top: `${Math.max(0, hoverBox.top - 24)}px` }, children: nameWithComponent(hovered) })] }), boxModel(), box && selected && u2(S, { children: [u2("div", { class: "sel", "data-part": "selection", style: { left: `${box.left}px`, top: `${box.top}px`, width: `${box.width}px`, height: `${box.height}px` } }), (() => {
37110
37250
  const above = box.top >= 34;
37111
37251
  const y3 = above ? box.top - 32 : box.bottom + 6;
37112
37252
  return u2(S, { children: [siblings > 1 && u2("button", { type: "button", class: "handle h-move", "data-handle": "move", title: showMove ? "Drag to move it among its neighbors" : "Drag to plan a move (it cannot be shown here: the prompt says where it goes)", style: { left: `${Math.max(2, box.left)}px`, top: `${y3}px` }, onPointerDown: startDrag("move"), onPointerMove: onDragMove, onPointerUp: endDrag, children: "\u283F" }), u2("div", { class: "label", "data-part": "size-label", style: { left: `${Math.max(2, box.left) + (siblings > 1 ? 32 : 0)}px`, top: `${y3 + 2}px` }, children: [nameWithComponent(selected), " ", Math.round(box.width), " \xD7 ", Math.round(box.height), tokenFor(`${Math.round(box.width)}px`) ? ` \xB7 ${tokenFor(`${Math.round(box.width)}px`)}` : ""] })] });
@@ -37224,7 +37364,7 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
37224
37364
  const root = host.attachShadow({ mode: "open" });
37225
37365
  root.innerHTML = `<style>${TOKENS_CSS}
37226
37366
  div{position:fixed;${cornerCss(place, 40)};z-index:2147483647;display:flex;gap:8px;align-items:center;padding:8px 16px 8px 12px;border-radius:var(--luci-radius-full);
37227
- background:var(--luci-color-bar);color:var(--luci-color-bar-ink);font:500 var(--luci-type-small-size)/var(--luci-type-small-line) var(--luci-font-body);box-shadow:var(--luci-shadow-float)}
37367
+ background:var(--luci-color-bar);color:var(--luci-color-bar-ink);font:500 var(--luci-type-small-size)/var(--luci-type-small-line) var(--luci-font-body);box-shadow:var(--luci-shadow-edge),var(--luci-shadow-float)}
37228
37368
  i{width:14px;height:14px;border-radius:50%;border:2px solid var(--luci-color-bar-stroke);border-top-color:var(--luci-color-tool-active);animation:s .8s linear infinite}
37229
37369
  @keyframes s{to{transform:rotate(360deg)}}
37230
37370
  @media (prefers-reduced-motion: reduce){i{animation:none}}
@@ -37382,6 +37522,19 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
37382
37522
  host.setAttribute("data-v", place.v);
37383
37523
  host.style.setProperty("--luci-x", `${x3}px`);
37384
37524
  host.style.setProperty("--luci-y", `${y3}px`);
37525
+ if (bar?.offsetHeight) host.style.setProperty("--luci-bar-h", `${bar.offsetHeight}px`);
37526
+ };
37527
+ let barWatch = null;
37528
+ const watchBar = (host) => {
37529
+ barWatch?.disconnect();
37530
+ barWatch = null;
37531
+ const bar = host.shadowRoot?.querySelector(".bar");
37532
+ const RO = win.ResizeObserver;
37533
+ if (!bar || !RO) return;
37534
+ barWatch = new RO(() => {
37535
+ if (current?.host === host) applyPlace(host);
37536
+ });
37537
+ barWatch.observe(bar);
37385
37538
  };
37386
37539
  let drag = null;
37387
37540
  let justMoved = false;
@@ -37563,6 +37716,7 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
37563
37716
  });
37564
37717
  }
37565
37718
  applyPlace(current.host);
37719
+ watchBar(current.host);
37566
37720
  draggable(current.host);
37567
37721
  if (how.grow) grow(current.host);
37568
37722
  };
@@ -37579,6 +37733,7 @@ padding ${cs.padding} margin ${cs.margin}${/flex|grid/.test(cs.display) ? ` ga
37579
37733
  doc.removeEventListener(UI_PREFS_EVENT, followPrefs);
37580
37734
  win.removeEventListener("resize", onResize);
37581
37735
  stopDrag();
37736
+ barWatch?.disconnect();
37582
37737
  current?.destroy();
37583
37738
  current = null;
37584
37739
  removeLauncher();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luci-dev/toolbar",
3
- "version": "0.5.4",
3
+ "version": "0.5.6",
4
4
  "description": "The dev toolbar: feedback and capture in your own app, saved into the project through luci serve.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -17,10 +17,10 @@
17
17
  "dist"
18
18
  ],
19
19
  "dependencies": {
20
- "@luci-dev/capture": "0.5.4",
21
- "@luci-dev/feedback": "0.5.4",
22
- "@luci-dev/format": "0.5.4",
23
- "@luci-dev/ui": "0.5.4"
20
+ "@luci-dev/capture": "0.5.6",
21
+ "@luci-dev/feedback": "0.5.6",
22
+ "@luci-dev/format": "0.5.6",
23
+ "@luci-dev/ui": "0.5.6"
24
24
  },
25
25
  "publishConfig": {
26
26
  "access": "public"