@vinena/knobs 0.6.6 → 0.7.1

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.
Files changed (116) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +13 -7
  3. package/THIRD_PARTY_NOTICES.md +3 -3
  4. package/dist/cli.d.ts +95 -0
  5. package/dist/cli.js +527 -0
  6. package/dist/{context-eawqn680.js → context-2r76ext7.js} +3 -3
  7. package/dist/{context-vd2xep5t.js → context-h1bdt8w3.js} +3 -3
  8. package/dist/early.global.js +7 -8
  9. package/dist/edit/html.d.ts +7 -3
  10. package/dist/edit/keep.d.ts +2 -2
  11. package/dist/{elementsview-n26sp8m7.js → elementsview-mcg6d5zp.js} +21 -19
  12. package/dist/{elementsview-dpm0xmb2.js → elementsview-mwr1s17z.js} +21 -19
  13. package/dist/engine/bezels.d.ts +2 -2
  14. package/dist/engine/check.d.ts +2 -2
  15. package/dist/engine/describe.d.ts +2 -2
  16. package/dist/engine/devices.d.ts +3 -3
  17. package/dist/engine/fit.d.ts +4 -4
  18. package/dist/engine/foldhand.d.ts +2 -2
  19. package/dist/engine/frame.d.ts +6 -6
  20. package/dist/engine/frames.d.ts +4 -4
  21. package/dist/engine/fresh.d.ts +12 -5
  22. package/dist/engine/header.d.ts +3 -1
  23. package/dist/engine/identity.d.ts +4 -4
  24. package/dist/engine/index.d.ts +7 -7
  25. package/dist/engine/locale.d.ts +2 -2
  26. package/dist/engine/morph.d.ts +2 -2
  27. package/dist/engine/native.d.ts +8 -8
  28. package/dist/engine/placeholder.d.ts +3 -3
  29. package/dist/engine/reload.d.ts +2 -2
  30. package/dist/engine/screen.d.ts +2 -2
  31. package/dist/engine/scrollkeep.d.ts +1 -1
  32. package/dist/engine/store.d.ts +11 -11
  33. package/dist/engine/storekeys.d.ts +34 -0
  34. package/dist/engine/style.d.ts +1 -1
  35. package/dist/engine/tabicon.d.ts +2 -2
  36. package/dist/engine/underneath.d.ts +1 -0
  37. package/dist/engine/width.d.ts +3 -3
  38. package/dist/{framekit-0as9t6a7.js → framekit-4v7nc3ea.js} +25 -20
  39. package/dist/{framekit-dknq662p.js → framekit-wyppj1se.js} +25 -20
  40. package/dist/grab/clipboard.d.ts +2 -0
  41. package/dist/{index-jfv7vavj.js → index-311fys81.js} +93 -29
  42. package/dist/index-3dcgysws.js +77 -0
  43. package/dist/{index-7vb2ct4s.js → index-3s4v7gw5.js} +11 -10
  44. package/dist/{index-ztnjefrh.js → index-585hs9tp.js} +5 -1
  45. package/dist/{index-za4ppxay.js → index-6t0w5s7p.js} +1 -1
  46. package/dist/{index-r1rdj05c.js → index-82y8x8vv.js} +14 -11
  47. package/dist/{index-dxga6h10.js → index-9targr2f.js} +26 -16
  48. package/dist/{index-x3sxssbs.js → index-a23nv5j4.js} +65 -45
  49. package/dist/{index-t4kssacm.js → index-abwqw8jh.js} +6 -1
  50. package/dist/{index-s6yzsvs4.js → index-bgzyc7rz.js} +22 -15
  51. package/dist/{index-t4wrs2a3.js → index-c1t6knbf.js} +20 -14
  52. package/dist/{index-7w0nm76e.js → index-cqymjce4.js} +20 -14
  53. package/dist/{index-69fvtkcm.js → index-dvtbh3c8.js} +24 -18
  54. package/dist/{index-ajs4na3f.js → index-k4w5v53q.js} +2 -2
  55. package/dist/{index-df35z48z.js → index-n31pn4ax.js} +20 -16
  56. package/dist/{index-ymqm185m.js → index-rps0bdq9.js} +1 -1
  57. package/dist/{index-a8ffw5ft.js → index-szd9bddn.js} +1 -1
  58. package/dist/{index-whehz74d.js → index-vhda420r.js} +32 -6
  59. package/dist/{index-xs29b55n.js → index-vmprrfwe.js} +5 -2
  60. package/dist/{index-20bc9yrj.js → index-vmz7htwn.js} +1 -1
  61. package/dist/index.d.ts +14 -8
  62. package/dist/index.global.js +176 -159
  63. package/dist/index.js +108 -43
  64. package/dist/instance.d.ts +7 -1
  65. package/dist/mark.d.ts +50 -0
  66. package/dist/{react-msn10fjb.js → react-4ezjf7mq.js} +24 -18
  67. package/dist/react-4qn9vsjw.js +78 -0
  68. package/dist/{react-73reavv4.js → react-4tcwpama.js} +1 -1
  69. package/dist/{react-k4pkm1p5.js → react-7eyps0cg.js} +2 -2
  70. package/dist/{react-10r2rczp.js → react-7tzwahsm.js} +14 -11
  71. package/dist/{react-yx3g9k55.js → react-amvrbng8.js} +5 -2
  72. package/dist/{react-5rq7bnsy.js → react-atw9y8ny.js} +5 -1
  73. package/dist/{react-4phtr2nd.js → react-dg4bjv3j.js} +1 -1
  74. package/dist/{react-vbk58f9m.js → react-hdneb4v3.js} +32 -6
  75. package/dist/{react-h9w04skh.js → react-j87bdhhe.js} +4 -1
  76. package/dist/{react-wtgvkf6g.js → react-mkafgzqf.js} +1 -1
  77. package/dist/{react-a1r0nr0g.js → react-ppyj3fg2.js} +65 -45
  78. package/dist/{react-0r5418av.js → react-rbmk30xk.js} +92 -29
  79. package/dist/{react-y9gr8yt2.js → react-rxw73n04.js} +1 -1
  80. package/dist/{react-5h7pxnax.js → react-tet7swk2.js} +22 -15
  81. package/dist/{react-5ekfj7g3.js → react-w94cfn87.js} +20 -16
  82. package/dist/{react-v08ywmtw.js → react-wzd3cfg8.js} +11 -10
  83. package/dist/{react-2b7725je.js → react-x209et38.js} +26 -16
  84. package/dist/react.d.ts +3 -1
  85. package/dist/react.js +111 -44
  86. package/dist/{replay-ehgxp9py.js → replay-3xqgt3xg.js} +8 -8
  87. package/dist/{replay-461gcdh1.js → replay-48gn27bj.js} +8 -8
  88. package/dist/storage/onload.d.ts +1 -1
  89. package/dist/{storageview-5p1y11b5.js → storageview-2rvwk0v7.js} +20 -17
  90. package/dist/{storageview-kxzpnfvr.js → storageview-6vq7nz02.js} +20 -17
  91. package/dist/styles/force.d.ts +3 -1
  92. package/dist/types.d.ts +4 -4
  93. package/dist/ui/actions.d.ts +3 -3
  94. package/dist/ui/bindings.d.ts +1 -1
  95. package/dist/ui/catalog.d.ts +14 -14
  96. package/dist/ui/changes.d.ts +1 -1
  97. package/dist/ui/colors.d.ts +1 -1
  98. package/dist/ui/deviceknobs.d.ts +2 -2
  99. package/dist/ui/editors.d.ts +3 -3
  100. package/dist/ui/foldslider.d.ts +2 -2
  101. package/dist/ui/icons.d.ts +5 -2
  102. package/dist/ui/keys.d.ts +1 -1
  103. package/dist/ui/list.d.ts +10 -10
  104. package/dist/ui/palette.d.ts +2 -2
  105. package/dist/ui/panel.d.ts +2 -0
  106. package/dist/ui/pin.d.ts +2 -2
  107. package/dist/ui/prefs.d.ts +1 -1
  108. package/dist/ui/rows.d.ts +3 -3
  109. package/dist/ui/settings.d.ts +11 -1
  110. package/dist/ui/storageview.d.ts +2 -2
  111. package/dist/ui/stylesview.d.ts +3 -3
  112. package/dist/ui/swatches.d.ts +2 -2
  113. package/package.json +5 -2
  114. package/skills/{devknobs → knobs}/SKILL.md +52 -51
  115. package/dist/index-5tv6sr74.js +0 -23
  116. package/dist/react-t2qnewz2.js +0 -24
package/dist/react.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  ease,
5
5
  keepMounted,
6
6
  lerp
7
- } from "./react-k4pkm1p5.js";
7
+ } from "./react-7eyps0cg.js";
8
8
  import {
9
9
  GRAB_COLORS as GRAB_COLORS2,
10
10
  GRAB_COLOR_NAMES,
@@ -13,7 +13,7 @@ import {
13
13
  createGrab,
14
14
  createInspect,
15
15
  oneAtATime
16
- } from "./react-v08ywmtw.js";
16
+ } from "./react-wzd3cfg8.js";
17
17
  import {
18
18
  hushOnce
19
19
  } from "./react-1gqwa2yw.js";
@@ -38,7 +38,7 @@ import {
38
38
  settle,
39
39
  translateOf,
40
40
  velocity
41
- } from "./react-2b7725je.js";
41
+ } from "./react-x209et38.js";
42
42
  import {
43
43
  dockRoom,
44
44
  dockWidth,
@@ -54,10 +54,10 @@ import {
54
54
  pathNow,
55
55
  startKeep,
56
56
  stopKeep
57
- } from "./react-5ekfj7g3.js";
57
+ } from "./react-w94cfn87.js";
58
58
  import {
59
59
  label
60
- } from "./react-4phtr2nd.js";
60
+ } from "./react-dg4bjv3j.js";
61
61
  import {
62
62
  appliedOnLoad,
63
63
  applyOnLoad,
@@ -71,7 +71,7 @@ import {
71
71
  showPane,
72
72
  stopOnLoad,
73
73
  viewHead
74
- } from "./react-10r2rczp.js";
74
+ } from "./react-7tzwahsm.js";
75
75
  import {
76
76
  actButton,
77
77
  button,
@@ -100,7 +100,7 @@ import {
100
100
  tabBar,
101
101
  textField,
102
102
  toolbar
103
- } from "./react-y9gr8yt2.js";
103
+ } from "./react-rxw73n04.js";
104
104
  import {
105
105
  BODY_CAP,
106
106
  HOST_RESET,
@@ -145,7 +145,7 @@ import {
145
145
  watchHinge,
146
146
  watchPanel,
147
147
  zoomKey
148
- } from "./react-a1r0nr0g.js";
148
+ } from "./react-ppyj3fg2.js";
149
149
  import {
150
150
  MAT_COLORS,
151
151
  MAT_COLOR_NAMES,
@@ -160,11 +160,12 @@ import {
160
160
  runsUnderBars,
161
161
  uaPreset,
162
162
  userAgentOf
163
- } from "./react-5h7pxnax.js";
163
+ } from "./react-tet7swk2.js";
164
164
  import {
165
165
  BINDING_ICONS,
166
166
  KEYS_FIELD,
167
167
  ROW_ICONS,
168
+ brand,
168
169
  comboLabel,
169
170
  comboSpoken,
170
171
  comboText,
@@ -182,8 +183,9 @@ import {
182
183
  parseCombo,
183
184
  rowIcon,
184
185
  typeAhead,
186
+ vinenaMark,
185
187
  zoomAction
186
- } from "./react-vbk58f9m.js";
188
+ } from "./react-hdneb4v3.js";
187
189
  import {
188
190
  BARS,
189
191
  BROWSERS,
@@ -238,20 +240,26 @@ import {
238
240
  parseColor,
239
241
  percent,
240
242
  readColor,
243
+ readItem,
241
244
  readMessage,
242
245
  realNow,
246
+ removeItem,
243
247
  resolveGeo,
244
248
  rewriteMediaText,
249
+ sameItem,
245
250
  stamped,
246
251
  still,
247
252
  toHex,
248
253
  watchSystemMedia,
249
- webStorage
250
- } from "./react-0r5418av.js";
254
+ webStorage,
255
+ writeItem
256
+ } from "./react-rbmk30xk.js";
251
257
  import"./react-fp73vhyd.js";
252
258
  import {
253
- __require
254
- } from "./react-t2qnewz2.js";
259
+ __require,
260
+ markOwn,
261
+ setMark
262
+ } from "./react-4qn9vsjw.js";
255
263
 
256
264
  // src/react.tsx
257
265
  import { useEffect, useRef } from "react";
@@ -662,7 +670,7 @@ var HEADER = {
662
670
  category: "location and time",
663
671
  control: "switch",
664
672
  options: OFF_ON,
665
- aliases: ["header", "server", "x-devknobs-now", "backend"],
673
+ aliases: ["header", "server", "x-knobs-now", "x-devknobs-now", "backend"],
666
674
  read: (state) => flag(state.clock.header),
667
675
  write: (value) => ({ clock: { header: value === "on" } }),
668
676
  reset: { clock: { header: DEFAULT_STATE.clock.header } },
@@ -1318,13 +1326,13 @@ var ROWS = [...KNOB_ROWS, ...ACTIONS.map(actionRow)];
1318
1326
  function knobOf(id) {
1319
1327
  const knob = KNOBS.find((entry) => entry.id === id);
1320
1328
  if (!knob)
1321
- throw new Error(`devknobs: no knob ${id}`);
1329
+ throw new Error(`knobs: no knob ${id}`);
1322
1330
  return knob;
1323
1331
  }
1324
1332
  function rowOf(id) {
1325
1333
  const row = KNOB_ROWS.find((entry) => entry.knobs.includes(id));
1326
1334
  if (!row)
1327
- throw new Error(`devknobs: no row for ${id}`);
1335
+ throw new Error(`knobs: no row for ${id}`);
1328
1336
  return row;
1329
1337
  }
1330
1338
  function availableKnobs() {
@@ -1443,7 +1451,7 @@ function knobs() {
1443
1451
  min: CLOCK_SPEED_MIN,
1444
1452
  max: CLOCK_SPEED_MAX
1445
1453
  }),
1446
- header: field2("Send the clock's instant to the page's own origin in an x-devknobs-now header.", flag2)
1454
+ header: field2("Send the clock's instant to the page's own origin in an x-knobs-now header (and the old x-devknobs-now).", flag2)
1447
1455
  }
1448
1456
  }),
1449
1457
  network: spec("navigator.onLine and navigator.connection. Requests still go out.", {
@@ -1489,7 +1497,7 @@ function knobs() {
1489
1497
  }, "frame"),
1490
1498
  overflow: spec("Mark the boxes that stick out of the viewport sideways.", flag2),
1491
1499
  outlines: spec("Outline every element.", flag2),
1492
- panel: spec("The devknobs panel. Close it and hide its handle to keep it out of screenshots. reset() leaves it as it is, open or closed, docked or not.", {
1500
+ panel: spec("The knobs panel. Close it and hide its handle to keep it out of screenshots. reset() leaves it as it is, open or closed, docked or not.", {
1493
1501
  type: "object",
1494
1502
  fields: {
1495
1503
  open: field2("The panel is open.", flag2),
@@ -1563,7 +1571,7 @@ function fits(path, shape, value) {
1563
1571
  }
1564
1572
  function checkPatch(patch) {
1565
1573
  if (!isRecord2(patch))
1566
- throw new TypeError("devknobs: setState takes an object");
1574
+ throw new TypeError("knobs: setState takes an object");
1567
1575
  const shapes = new Map(describe().map((knob) => [knob.key, knob.value]));
1568
1576
  for (const [key, value] of Object.entries(patch)) {
1569
1577
  const shape = shapes.get(key);
@@ -1591,12 +1599,12 @@ function checkPatch(patch) {
1591
1599
  function unlisted(path, value) {
1592
1600
  const takes = UNLISTED.get(path);
1593
1601
  if (!takes)
1594
- throw new TypeError(`devknobs: unknown knob ${path}`);
1602
+ throw new TypeError(`knobs: unknown knob ${path}`);
1595
1603
  if (!takes(value))
1596
1604
  throw bad(path, value);
1597
1605
  }
1598
1606
  function bad(path, value) {
1599
- return new TypeError(`devknobs: bad value for ${path}: ${shown(value)}`);
1607
+ return new TypeError(`knobs: bad value for ${path}: ${shown(value)}`);
1600
1608
  }
1601
1609
  function shown(value) {
1602
1610
  if (typeof value === "number" && !Number.isFinite(value))
@@ -1726,18 +1734,37 @@ function free(scope, release) {
1726
1734
  Reflect.deleteProperty(scope, HOST);
1727
1735
  }
1728
1736
  var PINNED = Symbol.for("devknobs.pinned");
1737
+ var ACCESSOR = Symbol.for("devknobs.accessor");
1738
+ function ourKnobs(scope) {
1739
+ const get = Object.getOwnPropertyDescriptor(scope, "knobs")?.get;
1740
+ return get !== undefined && Reflect.get(get, ACCESSOR) === true ? { api: get() } : null;
1741
+ }
1729
1742
  function expose(scope, api) {
1730
1743
  Reflect.set(scope, "devknobs", api);
1744
+ if (Object.hasOwn(scope, "knobs") && ourKnobs(scope) === null)
1745
+ return;
1746
+ const get = () => api;
1747
+ Reflect.set(get, ACCESSOR, true);
1748
+ Object.defineProperty(scope, "knobs", {
1749
+ configurable: true,
1750
+ enumerable: true,
1751
+ get,
1752
+ set(value) {
1753
+ Object.defineProperty(scope, "knobs", { value, writable: true, configurable: true, enumerable: true });
1754
+ }
1755
+ });
1731
1756
  }
1732
1757
  function withdraw(scope, api) {
1733
1758
  if (Reflect.get(scope, PINNED) === true)
1734
1759
  return;
1735
1760
  if (Reflect.get(scope, "devknobs") === api)
1736
1761
  Reflect.deleteProperty(scope, "devknobs");
1762
+ if (ourKnobs(scope)?.api === api)
1763
+ Reflect.deleteProperty(scope, "knobs");
1737
1764
  }
1738
1765
 
1739
1766
  // src/ui/bindings.ts
1740
- var KEYS_KEY = "devknobs:keys";
1767
+ var KEYS_KEY = "knobs:keys";
1741
1768
  var KEYS_VERSION = 1;
1742
1769
  var BINDINGS = [
1743
1770
  "panel",
@@ -1903,7 +1930,7 @@ function resolveKeys(base, stored, grab = true) {
1903
1930
  }
1904
1931
  function loadKeys() {
1905
1932
  try {
1906
- return readKeys(webStorage("local")?.getItem(KEYS_KEY));
1933
+ return readKeys(readItem(webStorage("local"), KEYS_KEY));
1907
1934
  } catch {
1908
1935
  return {};
1909
1936
  }
@@ -1911,9 +1938,9 @@ function loadKeys() {
1911
1938
  function keepKeys(keys) {
1912
1939
  try {
1913
1940
  if (Object.keys(keys).length === 0)
1914
- webStorage("local")?.removeItem(KEYS_KEY);
1941
+ removeItem(webStorage("local"), KEYS_KEY);
1915
1942
  else
1916
- webStorage("local")?.setItem(KEYS_KEY, JSON.stringify(stamped(keys, KEYS_VERSION)));
1943
+ writeItem(webStorage("local"), KEYS_KEY, JSON.stringify(stamped(keys, KEYS_VERSION)));
1917
1944
  } catch {}
1918
1945
  }
1919
1946
  function keysListed(keys, listed) {
@@ -1959,7 +1986,7 @@ function createKeys(options2 = {}) {
1959
1986
  listener();
1960
1987
  }
1961
1988
  function onStorage(event) {
1962
- if (event.key !== KEYS_KEY && event.key !== null)
1989
+ if (event.key !== null && !sameItem(event.key, KEYS_KEY))
1963
1990
  return;
1964
1991
  heard();
1965
1992
  }
@@ -2638,7 +2665,7 @@ var PANE = { openPane, paneView, onPane, retitlePane, showPane };
2638
2665
  function here(element) {
2639
2666
  return element.isConnected && element.ownerDocument.defaultView !== null;
2640
2667
  }
2641
- function createInspector(context, load = () => import("./elementsview-n26sp8m7.js").then(({ createElementsView }) => ({ createStylesView: createElementsView })), pane = PANE) {
2668
+ function createInspector(context, load = () => import("./elementsview-mcg6d5zp.js").then(({ createElementsView }) => ({ createStylesView: createElementsView })), pane = PANE) {
2642
2669
  const { inspect, tips, prefs } = context;
2643
2670
  const listeners = new Set;
2644
2671
  let view = null;
@@ -2826,7 +2853,7 @@ function createInspector(context, load = () => import("./elementsview-n26sp8m7.j
2826
2853
  }
2827
2854
 
2828
2855
  // src/ui/colors.ts
2829
- var COLORS_KEY = "devknobs:colors";
2856
+ var COLORS_KEY = "knobs:colors";
2830
2857
  var COLORS_VERSION = 1;
2831
2858
  var MOST_COLORS = 8;
2832
2859
  function listOf(value) {
@@ -2866,7 +2893,7 @@ function pickColor(text, options2, list) {
2866
2893
  }
2867
2894
  function loadColors() {
2868
2895
  try {
2869
- return readColors(webStorage("local")?.getItem(COLORS_KEY));
2896
+ return readColors(readItem(webStorage("local"), COLORS_KEY));
2870
2897
  } catch {
2871
2898
  return readColors(null);
2872
2899
  }
@@ -2875,9 +2902,9 @@ function keepColors(colors) {
2875
2902
  try {
2876
2903
  const local = webStorage("local");
2877
2904
  if (colors.mat.length + colors.grab.length === 0)
2878
- local?.removeItem(COLORS_KEY);
2905
+ removeItem(local, COLORS_KEY);
2879
2906
  else
2880
- local?.setItem(COLORS_KEY, colorsText(colors));
2907
+ writeItem(local, COLORS_KEY, colorsText(colors));
2881
2908
  } catch {}
2882
2909
  }
2883
2910
  function createColors() {
@@ -2888,7 +2915,7 @@ function createColors() {
2888
2915
  listener();
2889
2916
  }
2890
2917
  function onStorage(event) {
2891
- if (event.key !== COLORS_KEY && event.key !== null)
2918
+ if (event.key !== null && !sameItem(event.key, COLORS_KEY))
2892
2919
  return;
2893
2920
  if (fresh())
2894
2921
  return;
@@ -6328,7 +6355,7 @@ function isZero(duration) {
6328
6355
  }
6329
6356
 
6330
6357
  // src/version.ts
6331
- var VERSION = "0.6.6";
6358
+ var VERSION = "0.7.1";
6332
6359
 
6333
6360
  // src/ui/settings.ts
6334
6361
  var NO_KEY = "not set";
@@ -6366,6 +6393,25 @@ function feedbackRow() {
6366
6393
  link.addEventListener(type, aim);
6367
6394
  return rowBox({ main: link, glyph: icon("message-square"), title: "send feedback" }).box;
6368
6395
  }
6396
+ function outLink(className, href) {
6397
+ const link = el("a", className);
6398
+ link.setAttribute("href", href);
6399
+ link.setAttribute("target", "_blank");
6400
+ link.setAttribute("rel", "noopener noreferrer");
6401
+ return link;
6402
+ }
6403
+ var REPO_URL = "https://github.com/vinenastudio/knobs";
6404
+ function githubRow() {
6405
+ return rowBox({ main: outLink("main feedback", REPO_URL), glyph: brand("github"), title: "github" }).box;
6406
+ }
6407
+ function vinenaUrl(host) {
6408
+ return `https://vinena.studio/?utm_source=knobs.dev&utm_medium=referral&utm_campaign=${host ? "extension" : "panel"}`;
6409
+ }
6410
+ function creditRow(host) {
6411
+ const link = outLink("credit", vinenaUrl(host));
6412
+ link.append(el("span", "", "crafted at"), vinenaMark());
6413
+ return link;
6414
+ }
6369
6415
  function keepRow(resolve) {
6370
6416
  const control = button("switch row-control", "");
6371
6417
  control.setAttribute("role", "switch");
@@ -6524,7 +6570,7 @@ function createSettings(context) {
6524
6570
  }).box);
6525
6571
  keyViews.set(binding, { set: set2, back });
6526
6572
  }
6527
- keysView.append(feedbackRow());
6573
+ keysView.append(feedbackRow(), githubRow(), creditRow(context.host));
6528
6574
  let editingKeys = false;
6529
6575
  let recording = null;
6530
6576
  const { refuse, unrefuse, destroy: stopRefusing } = createRefusal(tips, said);
@@ -7640,6 +7686,23 @@ input[type="checkbox"]:focus-visible { outline: 1px solid var(--faint); outline-
7640
7686
  .row-key { flex: none; align-self: center; font-size: 10px; line-height: 1.4; color: var(--faint); }
7641
7687
  .feedback { color: inherit; text-decoration: none; cursor: pointer; }
7642
7688
  .feedback:focus-visible { outline: 1px solid var(--faint); outline-offset: -1px; }
7689
+ /* The studio's credit under the settings' rows: its words and its wordmark, as quiet as the footer's text. */
7690
+ .credit {
7691
+ display: flex;
7692
+ align-items: center;
7693
+ justify-content: center;
7694
+ gap: 0.4em;
7695
+ padding: 8px var(--view-end) 4px var(--view-start);
7696
+ font-size: 10px;
7697
+ line-height: 1.4;
7698
+ color: var(--faint);
7699
+ text-decoration: none;
7700
+ white-space: nowrap;
7701
+ border-radius: 8px;
7702
+ }
7703
+ .credit:hover { color: var(--fg); }
7704
+ .credit:focus-visible { color: var(--fg); outline: 1px solid var(--faint); outline-offset: -1px; }
7705
+ .credit .wordmark { flex: none; width: auto; height: 0.85em; }
7643
7706
  .row-control { flex: none; align-self: center; margin-left: auto; }
7644
7707
  /* A row's small button inside its main, before what the main ends with,
7645
7708
  takes no height of its own, so the row is as tall as any. */
@@ -8822,7 +8885,7 @@ function createPanel(options2 = {}) {
8822
8885
  const actionsHere = availableActions();
8823
8886
  const bindingsHere = BINDINGS.filter((binding) => (binding !== "grab" || grab !== null) && (binding !== "inspect" && binding !== "elements" || inspect !== null));
8824
8887
  const host = document.createElement("div");
8825
- host.setAttribute("data-devknobs", "panel");
8888
+ markOwn(host, "panel");
8826
8889
  host.style.cssText = HOST_STYLE;
8827
8890
  const root = host.attachShadow({ mode: "open" });
8828
8891
  addStyle(root, HOST_RESET);
@@ -8841,7 +8904,7 @@ function createPanel(options2 = {}) {
8841
8904
  searchInput.placeholder = "search knobs";
8842
8905
  searchInput.autocomplete = "off";
8843
8906
  searchInput.spellcheck = false;
8844
- searchInput.setAttribute(KEYS_FIELD, "");
8907
+ setMark(searchInput, KEYS_FIELD);
8845
8908
  searchInput.setAttribute("role", "combobox");
8846
8909
  searchInput.setAttribute("aria-label", "find a knob");
8847
8910
  searchInput.setAttribute("aria-autocomplete", "list");
@@ -8904,6 +8967,7 @@ function createPanel(options2 = {}) {
8904
8967
  },
8905
8968
  prefer: options2.prefer ?? null,
8906
8969
  setPrefer: (value) => options2.prefer?.change(value),
8970
+ host: options2.host === true,
8907
8971
  searching: () => palette.searching(),
8908
8972
  leaveSearch: () => palette.leaveSearch()
8909
8973
  });
@@ -9032,7 +9096,7 @@ function createPanel(options2 = {}) {
9032
9096
  }
9033
9097
  function renderKeys() {
9034
9098
  const now2 = keys.get();
9035
- handle.setAttribute("aria-label", `devknobs, press ${comboSpoken(now2.panel)}`);
9099
+ handle.setAttribute("aria-label", `knobs, press ${comboSpoken(now2.panel)}`);
9036
9100
  footer.drawKeys(now2);
9037
9101
  settings.drawKeys(now2);
9038
9102
  knobRows.drawKeys(now2);
@@ -9434,7 +9498,8 @@ function attach(options2) {
9434
9498
  grab: grabControl,
9435
9499
  inspect,
9436
9500
  handle: options2.handle,
9437
- prefer: panelPrefer(options2)
9501
+ prefer: panelPrefer(options2),
9502
+ host: options2.host === true
9438
9503
  });
9439
9504
  }
9440
9505
  function panelPrefer(options2) {
@@ -9601,7 +9666,7 @@ function retake(options2, native) {
9601
9666
  }
9602
9667
  if (retaken++ >= RETAKES) {
9603
9668
  if (retaken === RETAKES + 1) {
9604
- console.warn("devknobs: this page runs its own copy of devknobs, which does not know hosts; it keeps the page");
9669
+ console.warn("knobs: this page runs its own copy of knobs, which does not know hosts; it keeps the page");
9605
9670
  }
9606
9671
  return;
9607
9672
  }
@@ -9644,7 +9709,7 @@ async function grab(elements, options2) {
9644
9709
  const host = hosted("grab");
9645
9710
  if (host)
9646
9711
  return host(elements, options2);
9647
- const loaded = await import("./index-7w0nm76e.js");
9712
+ const loaded = await import("./index-cqymjce4.js");
9648
9713
  return loaded.grab(elements, options2);
9649
9714
  }
9650
9715
  function edits2() {
@@ -9655,8 +9720,8 @@ async function setEdits(list) {
9655
9720
  if (host)
9656
9721
  return host(list);
9657
9722
  if (!Array.isArray(list))
9658
- throw new TypeError("devknobs.setEdits takes a list of edits, as edits() gives them");
9659
- const { replayEdits } = await import("./replay-461gcdh1.js");
9723
+ throw new TypeError("knobs: setEdits takes a list of edits, as edits() gives them");
9724
+ const { replayEdits } = await import("./replay-48gn27bj.js");
9660
9725
  const { applied, skipped } = replayEdits(edits, list);
9661
9726
  return { applied, skipped };
9662
9727
  }
@@ -9673,7 +9738,7 @@ function forceState2(target, states = []) {
9673
9738
  var api = { mount, unmount, getState: getState2, setState: setState2, reset: reset2, replay: replay2, grab, describe: describe2, ready: ready2, edits: edits2, setEdits, undoEdit, forceState: forceState2 };
9674
9739
 
9675
9740
  // src/react.tsx
9676
- function DevKnobs(props) {
9741
+ function Knobs(props) {
9677
9742
  const options2 = useRef(props);
9678
9743
  useEffect(() => {
9679
9744
  mount(options2.current);
@@ -9681,6 +9746,8 @@ function DevKnobs(props) {
9681
9746
  }, []);
9682
9747
  return null;
9683
9748
  }
9749
+ var DevKnobs = Knobs;
9684
9750
  export {
9751
+ Knobs,
9685
9752
  DevKnobs
9686
9753
  };
@@ -9,7 +9,7 @@ import {
9
9
  parseHtml,
10
10
  rulesOf,
11
11
  textEdit
12
- } from "./index-69fvtkcm.js";
12
+ } from "./index-dvtbh3c8.js";
13
13
  import {
14
14
  REASONS,
15
15
  RISK,
@@ -17,8 +17,8 @@ import {
17
17
  riskyAttribute,
18
18
  riskyElement,
19
19
  riskyNodes
20
- } from "./index-df35z48z.js";
21
- import"./index-za4ppxay.js";
20
+ } from "./index-n31pn4ax.js";
21
+ import"./index-6t0w5s7p.js";
22
22
  import {
23
23
  NEW_RULE_SHEET,
24
24
  cssOff,
@@ -28,11 +28,11 @@ import {
28
28
  offIn,
29
29
  ruleOf,
30
30
  sheetIdOf
31
- } from "./index-a8ffw5ft.js";
32
- import"./index-20bc9yrj.js";
33
- import"./index-whehz74d.js";
34
- import"./index-jfv7vavj.js";
35
- import"./index-5tv6sr74.js";
31
+ } from "./index-szd9bddn.js";
32
+ import"./index-vmz7htwn.js";
33
+ import"./index-vhda420r.js";
34
+ import"./index-311fys81.js";
35
+ import"./index-3dcgysws.js";
36
36
 
37
37
  // src/edit/replay.ts
38
38
  var AFTER_MISSED = "an earlier edit it may depend on was not made";
@@ -10,7 +10,7 @@ import {
10
10
  parseHtml,
11
11
  rulesOf,
12
12
  textEdit
13
- } from "./react-msn10fjb.js";
13
+ } from "./react-4ezjf7mq.js";
14
14
  import {
15
15
  REASONS,
16
16
  RISK,
@@ -18,8 +18,8 @@ import {
18
18
  riskyAttribute,
19
19
  riskyElement,
20
20
  riskyNodes
21
- } from "./react-5ekfj7g3.js";
22
- import"./react-73reavv4.js";
21
+ } from "./react-w94cfn87.js";
22
+ import"./react-4tcwpama.js";
23
23
  import {
24
24
  NEW_RULE_SHEET,
25
25
  cssOff,
@@ -29,11 +29,11 @@ import {
29
29
  offIn,
30
30
  ruleOf,
31
31
  sheetIdOf
32
- } from "./react-4phtr2nd.js";
33
- import"./react-y9gr8yt2.js";
34
- import"./react-vbk58f9m.js";
35
- import"./react-0r5418av.js";
36
- import"./react-t2qnewz2.js";
32
+ } from "./react-dg4bjv3j.js";
33
+ import"./react-rxw73n04.js";
34
+ import"./react-hdneb4v3.js";
35
+ import"./react-rbmk30xk.js";
36
+ import"./react-4qn9vsjw.js";
37
37
 
38
38
  // src/edit/replay.ts
39
39
  var AFTER_MISSED = "an earlier edit it may depend on was not made";
@@ -7,7 +7,7 @@
7
7
  * the page above did, and the two share their storage.
8
8
  */
9
9
  /** Where the presets are kept, in `localStorage`, through devknobs' own gateway. */
10
- export declare const PRESETS_KEY = "devknobs:storage-presets";
10
+ export declare const PRESETS_KEY = "knobs:storage-presets";
11
11
  /** The version of what `PRESETS_KEY` keeps. Bump it with a new shape, see stored.ts. */
12
12
  export declare const PRESETS_VERSION = 1;
13
13
  type Fields = Record<string, unknown>;
@@ -6,10 +6,10 @@ import {
6
6
  cookieText,
7
7
  put,
8
8
  storedPresets
9
- } from "./react-10r2rczp.js";
9
+ } from "./react-7tzwahsm.js";
10
10
  import {
11
11
  copyText
12
- } from "./react-h9w04skh.js";
12
+ } from "./react-j87bdhhe.js";
13
13
  import {
14
14
  branch,
15
15
  codeBlock,
@@ -31,22 +31,25 @@ import {
31
31
  textArea,
32
32
  textField,
33
33
  toolbar
34
- } from "./react-y9gr8yt2.js";
35
- import"./react-a1r0nr0g.js";
36
- import"./react-5h7pxnax.js";
34
+ } from "./react-rxw73n04.js";
35
+ import"./react-ppyj3fg2.js";
36
+ import"./react-tet7swk2.js";
37
37
  import {
38
38
  icon
39
- } from "./react-vbk58f9m.js";
39
+ } from "./react-hdneb4v3.js";
40
40
  import {
41
+ isOwnKey,
42
+ removeItem,
41
43
  stamped,
42
- webStorage
43
- } from "./react-0r5418av.js";
44
+ webStorage,
45
+ writeItem
46
+ } from "./react-rbmk30xk.js";
44
47
  import"./react-fp73vhyd.js";
45
- import"./react-t2qnewz2.js";
48
+ import"./react-4qn9vsjw.js";
46
49
 
47
50
  // src/storage/site.ts
48
51
  function isOwn(key) {
49
- return key === "devknobs" || key.startsWith("devknobs:");
52
+ return isOwnKey(key);
50
53
  }
51
54
  function nameOf(error) {
52
55
  if (typeof error !== "object" || error === null)
@@ -1031,9 +1034,9 @@ function savePresets(presets) {
1031
1034
  return "presets are not kept here";
1032
1035
  try {
1033
1036
  if (presets.length === 0)
1034
- storage.removeItem(PRESETS_KEY);
1037
+ removeItem(storage, PRESETS_KEY);
1035
1038
  else
1036
- storage.setItem(PRESETS_KEY, JSON.stringify(stamped({ presets }, PRESETS_VERSION)));
1039
+ writeItem(storage, PRESETS_KEY, JSON.stringify(stamped({ presets }, PRESETS_VERSION)));
1037
1040
  return null;
1038
1041
  } catch {
1039
1042
  return "cannot keep the preset: the storage is full";
@@ -1654,7 +1657,7 @@ async function savePreset(shell, query) {
1654
1657
  };
1655
1658
  const name = textField({ placeholder: "preset name", onEnter: save });
1656
1659
  const node = stack([
1657
- noteLine(`keeps ${holds}${query.trim() === "" ? "" : ", as the filter shows them"}, without devknobs' own`),
1660
+ noteLine(`keeps ${holds}${query.trim() === "" ? "" : ", as the filter shows them"}, without knobs' own`),
1658
1661
  name,
1659
1662
  problem,
1660
1663
  controls([
@@ -2000,7 +2003,7 @@ function webSection(shell, kind) {
2000
2003
  if (!item.own)
2001
2004
  run();
2002
2005
  else
2003
- askIn(shell, fold.body, `${key} is devknobs' own. ${doing} it anyway?`, doing, run, fill);
2006
+ askIn(shell, fold.body, `${key} is knobs' own. ${doing} it anyway?`, doing, run, fill);
2004
2007
  }
2005
2008
  function edit() {
2006
2009
  editing++;
@@ -2133,7 +2136,7 @@ var NODE_ICONS = { database: "database", store: "table-2", cache: "file" };
2133
2136
  var POLL_MS = 1000;
2134
2137
  var FOLD_MS = 200;
2135
2138
  var NOT_READ = "cannot read";
2136
- var OWN_GROUP = "devknobs";
2139
+ var OWN_GROUP = "knobs";
2137
2140
  var kept = { expanded: new Set, seeded: false };
2138
2141
  function labelOf(kind) {
2139
2142
  return STORAGE_KINDS.find((entry) => entry.value === kind)?.label ?? kind;
@@ -2342,7 +2345,7 @@ function storageView(options = {}) {
2342
2345
  ownLine.replaceChildren();
2343
2346
  return;
2344
2347
  }
2345
- ownToggle.textContent = own2 ? "hide devknobs' own" : `${hidden} hidden (devknobs' own)`;
2348
+ ownToggle.textContent = own2 ? "hide knobs' own" : `${hidden} hidden (knobs' own)`;
2346
2349
  if (ownLine.children.length === 0)
2347
2350
  ownLine.replaceChildren(ownToggle);
2348
2351
  }
@@ -2640,7 +2643,7 @@ ${each.version}`).join(`
2640
2643
  function clearAll() {
2641
2644
  const own2 = shell.own();
2642
2645
  countSite(site, own2).then((counts) => {
2643
- const kept2 = own2 ? ", devknobs' own items too" : ". devknobs' own items are kept";
2646
+ const kept2 = own2 ? ", knobs' own items too" : ". knobs' own items are kept";
2644
2647
  shell.ask(`clear site data? ${countsText(counts)}${kept2}`, "clear site data", () => {
2645
2648
  clearSite(site, own2).then((report) => {
2646
2649
  shell.say(reportLines(report), {