@vinena/knobs 0.6.5 → 0.6.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/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # changelog
2
2
 
3
+ ## 0.6.6
4
+
5
+ - grab's label leaves out component names a production build shortened, such as `xf`, and shows the element alone
6
+ - text under Safari's bottom bars no longer shows doubled or cut on high-density phones. the picture of the page there, and in a foldable's fold, is laid out at the phone's pixel ratio, as the page is, so its lines sit where the page's do
7
+
3
8
  ## 0.6.5
4
9
 
5
10
  - in light mode on a computer set to dark, the page under Safari's bottom bar on an iPhone or iPad is light too. the picture of the page there, and in a foldable's fold, now uses the scheme and other settings the page reads, not the computer's. it keeps `@namespace` rules and a style sheet's own `media`
@@ -7,7 +7,7 @@ import {
7
7
  grabEntry,
8
8
  joinEntries,
9
9
  quickEntry
10
- } from "./react-3mfz1x2a.js";
10
+ } from "./react-yx3g9k55.js";
11
11
  import"./react-1gqwa2yw.js";
12
12
  import"./react-5rq7bnsy.js";
13
13
  import"./react-fp73vhyd.js";
@@ -6,7 +6,7 @@ import {
6
6
  grabEntry,
7
7
  joinEntries,
8
8
  quickEntry
9
- } from "./index-1mstjadm.js";
9
+ } from "./index-xs29b55n.js";
10
10
  import"./index-aymfvd8s.js";
11
11
  import"./index-t4kssacm.js";
12
12
  import"./index-a974q3aa.js";
@@ -97,7 +97,7 @@ import {
97
97
  import {
98
98
  getState,
99
99
  subscribe
100
- } from "./index-pwqfmbqm.js";
100
+ } from "./index-x3sxssbs.js";
101
101
  import {
102
102
  isMac
103
103
  } from "./index-s6yzsvs4.js";
@@ -479,7 +479,7 @@ var found = new WeakMap;
479
479
  var locateSource = (element) => {
480
480
  let pending = found.get(element);
481
481
  if (!pending) {
482
- pending = import("./context-svtr7vwt.js").then(({ grabEntry }) => grabEntry(element)).then(({ source }) => {
482
+ pending = import("./context-vd2xep5t.js").then(({ grabEntry }) => grabEntry(element)).then(({ source }) => {
483
483
  if (!source || source.origin !== "app")
484
484
  return null;
485
485
  return source.lineNumber ? `${source.filePath}:${source.lineNumber}` : source.filePath;
@@ -98,7 +98,7 @@ import {
98
98
  import {
99
99
  getState,
100
100
  subscribe
101
- } from "./react-smtqyzx0.js";
101
+ } from "./react-a1r0nr0g.js";
102
102
  import {
103
103
  isMac
104
104
  } from "./react-5h7pxnax.js";
@@ -480,7 +480,7 @@ var found = new WeakMap;
480
480
  var locateSource = (element) => {
481
481
  let pending = found.get(element);
482
482
  if (!pending) {
483
- pending = import("./context-amfyasb5.js").then(({ grabEntry }) => grabEntry(element)).then(({ source }) => {
483
+ pending = import("./context-eawqn680.js").then(({ grabEntry }) => grabEntry(element)).then(({ source }) => {
484
484
  if (!source || source.origin !== "app")
485
485
  return null;
486
486
  return source.lineNumber ? `${source.filePath}:${source.lineNumber}` : source.filePath;
@@ -116,6 +116,31 @@ export declare function svgUrl(svg: string): string;
116
116
  * size in % or em would be taken against it too. So both get the size in px.
117
117
  */
118
118
  export declare function rootSize(doc: Document, view: Window): string;
119
+ /**
120
+ * The zoom the page in `view` is laid out at: its pixel ratio, or 1 where it
121
+ * has none. The browser lays the live page out with its pixel ratio as a
122
+ * zoom, and a drawing of its copy at 1. Text lines round apart at the two,
123
+ * more the further down the page, so the copy is laid out at the page's.
124
+ * Only Chromium lays the page out so. Safari and Firefox lay it out in css
125
+ * px, as the drawing at 1 is, so it stays 1 there. The browser is told by
126
+ * the host's own `userAgentData`, as a device frame may change the page's.
127
+ * An insecure origin has none either, and keeps 1.
128
+ */
129
+ export declare function layoutZoom(view: Window): number;
130
+ /** The zoom the page in `doc` sets on its own root, or 1 where it sets a bad one. */
131
+ export declare function ownZoom(doc: Document, view: Window): number;
132
+ /**
133
+ * The zoom for the root of a copy of the page in `doc`, laid out at `ratio`,
134
+ * as a style to add to it. A zoom the page sets on its own root comes on top of
135
+ * the ratio. Important, so a page rule with !important does not win over it.
136
+ */
137
+ export declare function rootZoom(doc: Document, view: Window, ratio: number): string;
138
+ /**
139
+ * A drawing of `markup`, a copy of the page, `width` by `height` css px, its
140
+ * root sized by `sized`. Its copy laid out at `zoom` is as many times as
141
+ * large, so the drawing views that much more of it in the same size.
142
+ */
143
+ export declare function drawing(markup: string, width: number, height: number, sized: string, zoom: number): string;
119
144
  /**
120
145
  * A picture of the page in `frame` as the browser draws it, from `copy`, laid
121
146
  * out and scrolled as the frame is now, on a canvas of the screen `glass`
@@ -5057,6 +5057,24 @@ function rootSize(doc, view) {
5057
5057
  const size = view.getComputedStyle(doc.documentElement).fontSize;
5058
5058
  return size ? `font-size:${size} !important` : "";
5059
5059
  }
5060
+ function layoutZoom(view) {
5061
+ if (!("userAgentData" in navigator))
5062
+ return 1;
5063
+ const ratio = view.devicePixelRatio;
5064
+ return Number.isFinite(ratio) && ratio > 0 ? ratio : 1;
5065
+ }
5066
+ function ownZoom(doc, view) {
5067
+ const own = Number(view.getComputedStyle(doc.documentElement).zoom);
5068
+ return Number.isFinite(own) && own > 0 ? own : 1;
5069
+ }
5070
+ function rootZoom(doc, view, ratio) {
5071
+ const own = ownZoom(doc, view);
5072
+ return ratio === 1 && own === 1 ? "" : `;zoom:${ratio * own} !important`;
5073
+ }
5074
+ function drawing(markup, width, height, sized, zoom) {
5075
+ const view = Number.isFinite(zoom) && zoom > 0 && zoom !== 1 ? ` viewBox="0 0 ${width * zoom} ${height * zoom}"` : "";
5076
+ return `<svg xmlns="http://www.w3.org/2000/svg" width="${width}" height="${height}"${view} style="${sized}">` + `<foreignObject width="100%" height="100%">${markup}</foreignObject></svg>`;
5077
+ }
5060
5078
  async function paintPage(frame2, glass, size, color, copy) {
5061
5079
  const doc = frame2.contentDocument;
5062
5080
  const view = frame2.contentWindow;
@@ -5084,11 +5102,14 @@ async function paintPage(frame2, glass, size, color, copy) {
5084
5102
  } catch {}
5085
5103
  }
5086
5104
  const root = copy.cloneNode(true);
5087
- const scrolled = `position:relative;left:${-scrollX}px;top:${-scrollY}px`;
5105
+ const own = ownZoom(doc, view);
5106
+ const scrolled = `position:relative;left:${-scrollX / own}px;top:${-scrollY / own}px`;
5088
5107
  const sized = rootSize(doc, view);
5089
- root.setAttribute("style", `${root.getAttribute("style") ?? ""};${sized};${scrolled}`);
5108
+ const zoom = layoutZoom(view);
5109
+ const zoomed = rootZoom(doc, view, zoom);
5110
+ root.setAttribute("style", `${root.getAttribute("style") ?? ""};${sized};${scrolled}${zoomed}`);
5090
5111
  const markup = new XMLSerializer().serializeToString(root);
5091
- const svg = `<svg xmlns="http://www.w3.org/2000/svg" width="${width}" height="${height}" style="${sized}">` + `<foreignObject width="100%" height="100%">${markup}</foreignObject></svg>`;
5112
+ const svg = drawing(markup, width, height, sized, zoom);
5092
5113
  const image = new Image;
5093
5114
  try {
5094
5115
  image.src = svgUrl(svg);
@@ -5168,12 +5189,13 @@ function pictureOf(frame2) {
5168
5189
  node.setAttribute("style", viewportUnits(node.getAttribute("style") ?? "", tall));
5169
5190
  }
5170
5191
  const full = Math.max(doc.documentElement.scrollHeight, tall);
5171
- const root = doc.documentElement.getBoundingClientRect().height;
5192
+ const root = doc.documentElement.getBoundingClientRect().height / ownZoom(doc, view);
5172
5193
  const sized = rootSize(doc, view);
5173
- copy.setAttribute("style", `${copy.getAttribute("style") ?? ""};${sized};height:${root}px !important`);
5194
+ const zoom = layoutZoom(view);
5195
+ const zoomed = rootZoom(doc, view, zoom);
5196
+ copy.setAttribute("style", `${copy.getAttribute("style") ?? ""};${sized};height:${root}px !important${zoomed}`);
5174
5197
  const markup = new XMLSerializer().serializeToString(copy);
5175
- const svg = `<svg xmlns="http://www.w3.org/2000/svg" width="${width}" height="${full}" style="${sized}">` + `<foreignObject width="100%" height="100%">${markup}</foreignObject></svg>`;
5176
- return { src: svgUrl(svg), width, height: full };
5198
+ return { src: svgUrl(drawing(markup, width, full, sized, zoom)), width, height: full };
5177
5199
  }
5178
5200
  function createUnderbar(glass, frame2) {
5179
5201
  const band = el("div", "underbar");
@@ -6541,8 +6563,8 @@ function copyBars(shown2, value, size) {
6541
6563
  const svg = `<svg xmlns="http://www.w3.org/2000/svg" width="${size.width}" height="${size.height}">` + `<foreignObject width="100%" height="100%">${markup}</foreignObject></svg>`;
6542
6564
  const image = new Image;
6543
6565
  image.src = svgUrl(svg);
6544
- const drawing = image.decode().then(() => image, () => null);
6545
- return { drawing, size, glass: bars ? glassOf(bars, host) : [] };
6566
+ const drawing2 = image.decode().then(() => image, () => null);
6567
+ return { drawing: drawing2, size, glass: bars ? glassOf(bars, host) : [] };
6546
6568
  }
6547
6569
  async function paintBars(shot, bars) {
6548
6570
  const image = await bars.drawing;
@@ -7204,10 +7226,10 @@ function leafOf(side, picture, turning2, across) {
7204
7226
  screen.style.boxShadow = `0 0 0 ${UNDER}px #000`;
7205
7227
  node.append(screen);
7206
7228
  if (body) {
7207
- const drawing = drawMock(body, size, href);
7208
- drawing.style.width = "100%";
7209
- drawing.style.height = "100%";
7210
- node.append(drawing);
7229
+ const drawing2 = drawMock(body, size, href);
7230
+ drawing2.style.width = "100%";
7231
+ drawing2.style.height = "100%";
7232
+ node.append(drawing2);
7211
7233
  }
7212
7234
  const opening = placeAt(div(""), rect);
7213
7235
  const dark = div("");
@@ -8800,7 +8822,7 @@ var veil = null;
8800
8822
  var mat = null;
8801
8823
  var matKey = "";
8802
8824
  var stage = null;
8803
- var drawing = null;
8825
+ var drawing2 = null;
8804
8826
  var screen = null;
8805
8827
  var glass = null;
8806
8828
  var pageBox = null;
@@ -9284,7 +9306,7 @@ function unwatchDensity() {
9284
9306
  densityRatio = 0;
9285
9307
  }
9286
9308
  function resize() {
9287
- if (!frame3 || !letterbox || !stage || !drawing || !screen || !readout || !caption)
9309
+ if (!frame3 || !letterbox || !stage || !drawing2 || !screen || !readout || !caption)
9288
9310
  return;
9289
9311
  if (released || turning() || folding())
9290
9312
  return;
@@ -9319,9 +9341,9 @@ function resize() {
9319
9341
  const radii = mock ? corners(mock.screenRadius).map((radius) => `${radius * place2.zoom}px`) : [];
9320
9342
  showBrowser(bars, page, place2, auto, radii.join(" "));
9321
9343
  touchDot?.fit(place2, place2.zoom);
9322
- drawing.style.width = `${place2.box.width}px`;
9323
- drawing.style.height = `${place2.box.height}px`;
9324
- const at = mock ? drawing.getBoundingClientRect() : null;
9344
+ drawing2.style.width = `${place2.box.width}px`;
9345
+ drawing2.style.height = `${place2.box.height}px`;
9346
+ const at = mock ? drawing2.getBoundingClientRect() : null;
9325
9347
  const ratio = window.devicePixelRatio;
9326
9348
  const nudge = at ? { x: snapShift(at.left + place2.left, ratio), y: snapShift(at.top + place2.top, ratio) } : null;
9327
9349
  screen.style.left = `${place2.left - (mock?.inset.left ?? 0) * place2.scale + (nudge?.x ?? 0)}px`;
@@ -9647,8 +9669,8 @@ function open(veiled, first) {
9647
9669
  readout.append(caption, picker);
9648
9670
  stage = document.createElement("div");
9649
9671
  stage.className = "stage";
9650
- drawing = document.createElement("div");
9651
- drawing.className = "drawing";
9672
+ drawing2 = document.createElement("div");
9673
+ drawing2.className = "drawing";
9652
9674
  screen = document.createElement("div");
9653
9675
  screen.className = "screen";
9654
9676
  glass = document.createElement("div");
@@ -9711,8 +9733,8 @@ function open(veiled, first) {
9711
9733
  turnCover.className = "screenblank";
9712
9734
  turnCover.hidden = true;
9713
9735
  screen.append(glass);
9714
- drawing.append(screen);
9715
- stage.append(drawing);
9736
+ drawing2.append(screen);
9737
+ stage.append(drawing2);
9716
9738
  letterbox.append(veil, back, readout, stage, notice);
9717
9739
  letterbox.addEventListener("wheel", onWheel, { passive: false });
9718
9740
  root.append(letterbox);
@@ -9777,7 +9799,7 @@ function teardown() {
9777
9799
  mat = null;
9778
9800
  matKey = "";
9779
9801
  stage = null;
9780
- drawing = null;
9802
+ drawing2 = null;
9781
9803
  screen = null;
9782
9804
  glass = null;
9783
9805
  pageBox = null;
@@ -5058,6 +5058,24 @@ function rootSize(doc, view) {
5058
5058
  const size = view.getComputedStyle(doc.documentElement).fontSize;
5059
5059
  return size ? `font-size:${size} !important` : "";
5060
5060
  }
5061
+ function layoutZoom(view) {
5062
+ if (!("userAgentData" in navigator))
5063
+ return 1;
5064
+ const ratio = view.devicePixelRatio;
5065
+ return Number.isFinite(ratio) && ratio > 0 ? ratio : 1;
5066
+ }
5067
+ function ownZoom(doc, view) {
5068
+ const own = Number(view.getComputedStyle(doc.documentElement).zoom);
5069
+ return Number.isFinite(own) && own > 0 ? own : 1;
5070
+ }
5071
+ function rootZoom(doc, view, ratio) {
5072
+ const own = ownZoom(doc, view);
5073
+ return ratio === 1 && own === 1 ? "" : `;zoom:${ratio * own} !important`;
5074
+ }
5075
+ function drawing(markup, width, height, sized, zoom) {
5076
+ const view = Number.isFinite(zoom) && zoom > 0 && zoom !== 1 ? ` viewBox="0 0 ${width * zoom} ${height * zoom}"` : "";
5077
+ return `<svg xmlns="http://www.w3.org/2000/svg" width="${width}" height="${height}"${view} style="${sized}">` + `<foreignObject width="100%" height="100%">${markup}</foreignObject></svg>`;
5078
+ }
5061
5079
  async function paintPage(frame2, glass, size, color, copy) {
5062
5080
  const doc = frame2.contentDocument;
5063
5081
  const view = frame2.contentWindow;
@@ -5085,11 +5103,14 @@ async function paintPage(frame2, glass, size, color, copy) {
5085
5103
  } catch {}
5086
5104
  }
5087
5105
  const root = copy.cloneNode(true);
5088
- const scrolled = `position:relative;left:${-scrollX}px;top:${-scrollY}px`;
5106
+ const own = ownZoom(doc, view);
5107
+ const scrolled = `position:relative;left:${-scrollX / own}px;top:${-scrollY / own}px`;
5089
5108
  const sized = rootSize(doc, view);
5090
- root.setAttribute("style", `${root.getAttribute("style") ?? ""};${sized};${scrolled}`);
5109
+ const zoom = layoutZoom(view);
5110
+ const zoomed = rootZoom(doc, view, zoom);
5111
+ root.setAttribute("style", `${root.getAttribute("style") ?? ""};${sized};${scrolled}${zoomed}`);
5091
5112
  const markup = new XMLSerializer().serializeToString(root);
5092
- const svg = `<svg xmlns="http://www.w3.org/2000/svg" width="${width}" height="${height}" style="${sized}">` + `<foreignObject width="100%" height="100%">${markup}</foreignObject></svg>`;
5113
+ const svg = drawing(markup, width, height, sized, zoom);
5093
5114
  const image = new Image;
5094
5115
  try {
5095
5116
  image.src = svgUrl(svg);
@@ -5169,12 +5190,13 @@ function pictureOf(frame2) {
5169
5190
  node.setAttribute("style", viewportUnits(node.getAttribute("style") ?? "", tall));
5170
5191
  }
5171
5192
  const full = Math.max(doc.documentElement.scrollHeight, tall);
5172
- const root = doc.documentElement.getBoundingClientRect().height;
5193
+ const root = doc.documentElement.getBoundingClientRect().height / ownZoom(doc, view);
5173
5194
  const sized = rootSize(doc, view);
5174
- copy.setAttribute("style", `${copy.getAttribute("style") ?? ""};${sized};height:${root}px !important`);
5195
+ const zoom = layoutZoom(view);
5196
+ const zoomed = rootZoom(doc, view, zoom);
5197
+ copy.setAttribute("style", `${copy.getAttribute("style") ?? ""};${sized};height:${root}px !important${zoomed}`);
5175
5198
  const markup = new XMLSerializer().serializeToString(copy);
5176
- const svg = `<svg xmlns="http://www.w3.org/2000/svg" width="${width}" height="${full}" style="${sized}">` + `<foreignObject width="100%" height="100%">${markup}</foreignObject></svg>`;
5177
- return { src: svgUrl(svg), width, height: full };
5199
+ return { src: svgUrl(drawing(markup, width, full, sized, zoom)), width, height: full };
5178
5200
  }
5179
5201
  function createUnderbar(glass, frame2) {
5180
5202
  const band = el("div", "underbar");
@@ -6542,8 +6564,8 @@ function copyBars(shown2, value, size) {
6542
6564
  const svg = `<svg xmlns="http://www.w3.org/2000/svg" width="${size.width}" height="${size.height}">` + `<foreignObject width="100%" height="100%">${markup}</foreignObject></svg>`;
6543
6565
  const image = new Image;
6544
6566
  image.src = svgUrl(svg);
6545
- const drawing = image.decode().then(() => image, () => null);
6546
- return { drawing, size, glass: bars ? glassOf(bars, host) : [] };
6567
+ const drawing2 = image.decode().then(() => image, () => null);
6568
+ return { drawing: drawing2, size, glass: bars ? glassOf(bars, host) : [] };
6547
6569
  }
6548
6570
  async function paintBars(shot, bars) {
6549
6571
  const image = await bars.drawing;
@@ -7205,10 +7227,10 @@ function leafOf(side, picture, turning2, across) {
7205
7227
  screen.style.boxShadow = `0 0 0 ${UNDER}px #000`;
7206
7228
  node.append(screen);
7207
7229
  if (body) {
7208
- const drawing = drawMock(body, size, href);
7209
- drawing.style.width = "100%";
7210
- drawing.style.height = "100%";
7211
- node.append(drawing);
7230
+ const drawing2 = drawMock(body, size, href);
7231
+ drawing2.style.width = "100%";
7232
+ drawing2.style.height = "100%";
7233
+ node.append(drawing2);
7212
7234
  }
7213
7235
  const opening = placeAt(div(""), rect);
7214
7236
  const dark = div("");
@@ -8801,7 +8823,7 @@ var veil = null;
8801
8823
  var mat = null;
8802
8824
  var matKey = "";
8803
8825
  var stage = null;
8804
- var drawing = null;
8826
+ var drawing2 = null;
8805
8827
  var screen = null;
8806
8828
  var glass = null;
8807
8829
  var pageBox = null;
@@ -9285,7 +9307,7 @@ function unwatchDensity() {
9285
9307
  densityRatio = 0;
9286
9308
  }
9287
9309
  function resize() {
9288
- if (!frame3 || !letterbox || !stage || !drawing || !screen || !readout || !caption)
9310
+ if (!frame3 || !letterbox || !stage || !drawing2 || !screen || !readout || !caption)
9289
9311
  return;
9290
9312
  if (released || turning() || folding())
9291
9313
  return;
@@ -9320,9 +9342,9 @@ function resize() {
9320
9342
  const radii = mock ? corners(mock.screenRadius).map((radius) => `${radius * place2.zoom}px`) : [];
9321
9343
  showBrowser(bars, page, place2, auto, radii.join(" "));
9322
9344
  touchDot?.fit(place2, place2.zoom);
9323
- drawing.style.width = `${place2.box.width}px`;
9324
- drawing.style.height = `${place2.box.height}px`;
9325
- const at = mock ? drawing.getBoundingClientRect() : null;
9345
+ drawing2.style.width = `${place2.box.width}px`;
9346
+ drawing2.style.height = `${place2.box.height}px`;
9347
+ const at = mock ? drawing2.getBoundingClientRect() : null;
9326
9348
  const ratio = window.devicePixelRatio;
9327
9349
  const nudge = at ? { x: snapShift(at.left + place2.left, ratio), y: snapShift(at.top + place2.top, ratio) } : null;
9328
9350
  screen.style.left = `${place2.left - (mock?.inset.left ?? 0) * place2.scale + (nudge?.x ?? 0)}px`;
@@ -9648,8 +9670,8 @@ function open(veiled, first) {
9648
9670
  readout.append(caption, picker);
9649
9671
  stage = document.createElement("div");
9650
9672
  stage.className = "stage";
9651
- drawing = document.createElement("div");
9652
- drawing.className = "drawing";
9673
+ drawing2 = document.createElement("div");
9674
+ drawing2.className = "drawing";
9653
9675
  screen = document.createElement("div");
9654
9676
  screen.className = "screen";
9655
9677
  glass = document.createElement("div");
@@ -9712,8 +9734,8 @@ function open(veiled, first) {
9712
9734
  turnCover.className = "screenblank";
9713
9735
  turnCover.hidden = true;
9714
9736
  screen.append(glass);
9715
- drawing.append(screen);
9716
- stage.append(drawing);
9737
+ drawing2.append(screen);
9738
+ stage.append(drawing2);
9717
9739
  letterbox.append(veil, back, readout, stage, notice);
9718
9740
  letterbox.addEventListener("wheel", onWheel, { passive: false });
9719
9741
  root.append(letterbox);
@@ -9778,7 +9800,7 @@ function teardown() {
9778
9800
  mat = null;
9779
9801
  matKey = "";
9780
9802
  stage = null;
9781
- drawing = null;
9803
+ drawing2 = null;
9782
9804
  screen = null;
9783
9805
  glass = null;
9784
9806
  pageBox = null;
@@ -13,5 +13,7 @@ export declare function isComposite(fiber: Fiber): boolean;
13
13
  * boundary at most, so a route's key far above never shows.
14
14
  */
15
15
  export declare function listKey(fiber: Fiber | null): string | null;
16
+ /** A name a production build shortened, like `xf`: component names start uppercase. */
17
+ export declare function isMinifiedName(name: string): boolean;
16
18
  /** Names of the components above the fiber, nearest first, that `accept` lets through. */
17
19
  export declare function componentNames(fiber: Fiber | null, max: number, accept: (name: string) => boolean): string[];
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  frameWindow,
6
6
  subscribe
7
- } from "./index-pwqfmbqm.js";
7
+ } from "./index-x3sxssbs.js";
8
8
  import {
9
9
  inField,
10
10
  isFunctionKey,
@@ -164,7 +164,7 @@ function systemScheme() {
164
164
  host.remove();
165
165
  return dark ? "dark" : "light";
166
166
  }
167
- function createGrab(options = {}, loadMode = () => import("./index-sy63y6r7.js")) {
167
+ function createGrab(options = {}, loadMode = () => import("./index-t4wrs2a3.js")) {
168
168
  const keyNow = options.key ?? defaultGrabKey;
169
169
  const { purpose } = options;
170
170
  const channel = purpose?.channel ?? "grab";
@@ -373,7 +373,7 @@ function held(view) {
373
373
  return null;
374
374
  }
375
375
  }
376
- function createInspect(options = {}, load = () => import("./index-sy63y6r7.js"), frameOf = frameWindow) {
376
+ function createInspect(options = {}, load = () => import("./index-t4wrs2a3.js"), frameOf = frameWindow) {
377
377
  const inFrame = isDevknobsFrame();
378
378
  const listeners = new Set;
379
379
  let outliner = null;
@@ -7,7 +7,7 @@ import {
7
7
  grabColor,
8
8
  isCLike,
9
9
  isElement
10
- } from "./react-p1m2eadn.js";
10
+ } from "./react-v08ywmtw.js";
11
11
  import {
12
12
  componentOf,
13
13
  escapeText,
@@ -15,7 +15,7 @@ import {
15
15
  grabEntry,
16
16
  joinEntries,
17
17
  quickEntry
18
- } from "./react-3mfz1x2a.js";
18
+ } from "./react-yx3g9k55.js";
19
19
  import"./react-1gqwa2yw.js";
20
20
  import {
21
21
  shorthand,
@@ -34,7 +34,7 @@ import {
34
34
  holdInTopLayer,
35
35
  pause,
36
36
  subscribe
37
- } from "./react-smtqyzx0.js";
37
+ } from "./react-a1r0nr0g.js";
38
38
  import"./react-5h7pxnax.js";
39
39
  import {
40
40
  composedParent,
@@ -7,7 +7,7 @@ import {
7
7
  } from "./index-20bc9yrj.js";
8
8
  import {
9
9
  getState
10
- } from "./index-pwqfmbqm.js";
10
+ } from "./index-x3sxssbs.js";
11
11
  import {
12
12
  icon
13
13
  } from "./index-whehz74d.js";
@@ -324,7 +324,7 @@ function createPane(context) {
324
324
  // src/ui/storageaction.ts
325
325
  var STORAGE_VIEW = "storage";
326
326
  function load() {
327
- return import("./storageview-yyd57vzw.js").then((loaded) => loaded.storageView({
327
+ return import("./storageview-kxzpnfvr.js").then((loaded) => loaded.storageView({
328
328
  visible: () => getState().panel.open && !document.hidden
329
329
  }));
330
330
  }
@@ -6,7 +6,7 @@ import {
6
6
  grabColor,
7
7
  isCLike,
8
8
  isElement
9
- } from "./index-yc2m7nce.js";
9
+ } from "./index-7vb2ct4s.js";
10
10
  import {
11
11
  componentOf,
12
12
  escapeText,
@@ -14,7 +14,7 @@ import {
14
14
  grabEntry,
15
15
  joinEntries,
16
16
  quickEntry
17
- } from "./index-1mstjadm.js";
17
+ } from "./index-xs29b55n.js";
18
18
  import"./index-aymfvd8s.js";
19
19
  import {
20
20
  shorthand,
@@ -33,7 +33,7 @@ import {
33
33
  holdInTopLayer,
34
34
  pause,
35
35
  subscribe
36
- } from "./index-pwqfmbqm.js";
36
+ } from "./index-x3sxssbs.js";
37
37
  import"./index-s6yzsvs4.js";
38
38
  import {
39
39
  composedParent,
@@ -1132,7 +1132,7 @@ function holdInTopLayer(host, rank) {
1132
1132
 
1133
1133
  // src/engine/frames.ts
1134
1134
  var kit = null;
1135
- var load2 = () => import("./framekit-q97zeg1d.js");
1135
+ var load2 = () => import("./framekit-0as9t6a7.js");
1136
1136
  var loading = null;
1137
1137
  var down = false;
1138
1138
  var waiting = [];
@@ -89,13 +89,16 @@ function listKey(fiber) {
89
89
  }
90
90
  return null;
91
91
  }
92
+ function isMinifiedName(name) {
93
+ return name.length <= 2 && name[0] !== name[0]?.toUpperCase();
94
+ }
92
95
  function componentNames(fiber, max, accept) {
93
96
  const names = [];
94
97
  for (let current = fiber;current && names.length < max; current = current.return) {
95
98
  if (!isComposite(current))
96
99
  continue;
97
100
  const name = displayName(current.type);
98
- if (name && accept(name))
101
+ if (name && !isMinifiedName(name) && accept(name))
99
102
  names.push(name);
100
103
  }
101
104
  return names;