@vinena/knobs 0.6.6 → 0.7.0
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 +8 -0
- package/README.md +11 -5
- package/THIRD_PARTY_NOTICES.md +3 -3
- package/dist/cli.d.ts +95 -0
- package/dist/cli.js +527 -0
- package/dist/edit/keep.d.ts +1 -1
- package/dist/{elementsview-dpm0xmb2.js → elementsview-jg4edt86.js} +6 -6
- package/dist/{elementsview-n26sp8m7.js → elementsview-m33ejs4r.js} +6 -6
- package/dist/{framekit-0as9t6a7.js → framekit-40pzennw.js} +3 -3
- package/dist/{framekit-dknq662p.js → framekit-r16k97n7.js} +3 -3
- package/dist/{index-r1rdj05c.js → index-0qkj2mgb.js} +4 -4
- package/dist/{index-whehz74d.js → index-2jc9dnta.js} +21 -1
- package/dist/{index-7w0nm76e.js → index-3nwycv3p.js} +3 -3
- package/dist/{index-x3sxssbs.js → index-8d1yk9d2.js} +8 -8
- package/dist/{index-ajs4na3f.js → index-cb91vcka.js} +1 -1
- package/dist/{index-20bc9yrj.js → index-fjrrgd9h.js} +1 -1
- package/dist/{index-df35z48z.js → index-q53j8wg5.js} +2 -2
- package/dist/{index-7vb2ct4s.js → index-s6fya8pm.js} +4 -4
- package/dist/{index-dxga6h10.js → index-tqq2ygpj.js} +2 -2
- package/dist/{index-69fvtkcm.js → index-v2v4rmpe.js} +3 -3
- package/dist/{index-t4wrs2a3.js → index-xxbb8y41.js} +3 -3
- package/dist/index.global.js +127 -110
- package/dist/index.js +63 -23
- package/dist/{react-msn10fjb.js → react-0gxs9aef.js} +3 -3
- package/dist/{react-2b7725je.js → react-3ev6rwqz.js} +2 -2
- package/dist/{react-k4pkm1p5.js → react-6ngtb6p9.js} +1 -1
- package/dist/{react-5ekfj7g3.js → react-8nmtt0ge.js} +2 -2
- package/dist/{react-y9gr8yt2.js → react-actmnkwp.js} +1 -1
- package/dist/{react-v08ywmtw.js → react-fq4551ks.js} +4 -4
- package/dist/{react-vbk58f9m.js → react-meve34wp.js} +21 -1
- package/dist/{react-10r2rczp.js → react-vvc4x9kq.js} +4 -4
- package/dist/{react-a1r0nr0g.js → react-zp7fdw8e.js} +8 -8
- package/dist/react.js +63 -23
- package/dist/{replay-461gcdh1.js → replay-m5g8km9y.js} +4 -4
- package/dist/{replay-ehgxp9py.js → replay-pmesjfa3.js} +4 -4
- package/dist/{storageview-5p1y11b5.js → storageview-9a6zm47z.js} +8 -8
- package/dist/{storageview-kxzpnfvr.js → storageview-x62v1c3j.js} +8 -8
- package/dist/ui/icons.d.ts +5 -2
- package/dist/ui/panel.d.ts +2 -0
- package/dist/ui/settings.d.ts +11 -1
- package/package.json +5 -2
- package/skills/{devknobs → knobs}/SKILL.md +18 -18
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
ease,
|
|
4
4
|
keepMounted,
|
|
5
5
|
lerp
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-cb91vcka.js";
|
|
7
7
|
import {
|
|
8
8
|
GRAB_COLORS as GRAB_COLORS2,
|
|
9
9
|
GRAB_COLOR_NAMES,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
createGrab,
|
|
13
13
|
createInspect,
|
|
14
14
|
oneAtATime
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-s6fya8pm.js";
|
|
16
16
|
import {
|
|
17
17
|
hushOnce
|
|
18
18
|
} from "./index-aymfvd8s.js";
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
settle,
|
|
38
38
|
translateOf,
|
|
39
39
|
velocity
|
|
40
|
-
} from "./index-
|
|
40
|
+
} from "./index-tqq2ygpj.js";
|
|
41
41
|
import {
|
|
42
42
|
dockRoom,
|
|
43
43
|
dockWidth,
|
|
@@ -53,7 +53,7 @@ import {
|
|
|
53
53
|
pathNow,
|
|
54
54
|
startKeep,
|
|
55
55
|
stopKeep
|
|
56
|
-
} from "./index-
|
|
56
|
+
} from "./index-q53j8wg5.js";
|
|
57
57
|
import {
|
|
58
58
|
label
|
|
59
59
|
} from "./index-a8ffw5ft.js";
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
showPane,
|
|
71
71
|
stopOnLoad,
|
|
72
72
|
viewHead
|
|
73
|
-
} from "./index-
|
|
73
|
+
} from "./index-0qkj2mgb.js";
|
|
74
74
|
import {
|
|
75
75
|
actButton,
|
|
76
76
|
button,
|
|
@@ -99,7 +99,7 @@ import {
|
|
|
99
99
|
tabBar,
|
|
100
100
|
textField,
|
|
101
101
|
toolbar
|
|
102
|
-
} from "./index-
|
|
102
|
+
} from "./index-fjrrgd9h.js";
|
|
103
103
|
import {
|
|
104
104
|
BODY_CAP,
|
|
105
105
|
HOST_RESET,
|
|
@@ -144,7 +144,7 @@ import {
|
|
|
144
144
|
watchHinge,
|
|
145
145
|
watchPanel,
|
|
146
146
|
zoomKey
|
|
147
|
-
} from "./index-
|
|
147
|
+
} from "./index-8d1yk9d2.js";
|
|
148
148
|
import {
|
|
149
149
|
MAT_COLORS,
|
|
150
150
|
MAT_COLOR_NAMES,
|
|
@@ -164,6 +164,7 @@ import {
|
|
|
164
164
|
BINDING_ICONS,
|
|
165
165
|
KEYS_FIELD,
|
|
166
166
|
ROW_ICONS,
|
|
167
|
+
brand,
|
|
167
168
|
comboLabel,
|
|
168
169
|
comboSpoken,
|
|
169
170
|
comboText,
|
|
@@ -181,8 +182,9 @@ import {
|
|
|
181
182
|
parseCombo,
|
|
182
183
|
rowIcon,
|
|
183
184
|
typeAhead,
|
|
185
|
+
vinenaMark,
|
|
184
186
|
zoomAction
|
|
185
|
-
} from "./index-
|
|
187
|
+
} from "./index-2jc9dnta.js";
|
|
186
188
|
import {
|
|
187
189
|
BARS,
|
|
188
190
|
BROWSERS,
|
|
@@ -1315,13 +1317,13 @@ var ROWS = [...KNOB_ROWS, ...ACTIONS.map(actionRow)];
|
|
|
1315
1317
|
function knobOf(id) {
|
|
1316
1318
|
const knob = KNOBS.find((entry) => entry.id === id);
|
|
1317
1319
|
if (!knob)
|
|
1318
|
-
throw new Error(`
|
|
1320
|
+
throw new Error(`knobs: no knob ${id}`);
|
|
1319
1321
|
return knob;
|
|
1320
1322
|
}
|
|
1321
1323
|
function rowOf(id) {
|
|
1322
1324
|
const row = KNOB_ROWS.find((entry) => entry.knobs.includes(id));
|
|
1323
1325
|
if (!row)
|
|
1324
|
-
throw new Error(`
|
|
1326
|
+
throw new Error(`knobs: no row for ${id}`);
|
|
1325
1327
|
return row;
|
|
1326
1328
|
}
|
|
1327
1329
|
function availableKnobs() {
|
|
@@ -1486,7 +1488,7 @@ function knobs() {
|
|
|
1486
1488
|
}, "frame"),
|
|
1487
1489
|
overflow: spec("Mark the boxes that stick out of the viewport sideways.", flag2),
|
|
1488
1490
|
outlines: spec("Outline every element.", flag2),
|
|
1489
|
-
panel: spec("The
|
|
1491
|
+
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.", {
|
|
1490
1492
|
type: "object",
|
|
1491
1493
|
fields: {
|
|
1492
1494
|
open: field2("The panel is open.", flag2),
|
|
@@ -1560,7 +1562,7 @@ function fits(path, shape, value) {
|
|
|
1560
1562
|
}
|
|
1561
1563
|
function checkPatch(patch) {
|
|
1562
1564
|
if (!isRecord2(patch))
|
|
1563
|
-
throw new TypeError("
|
|
1565
|
+
throw new TypeError("knobs: setState takes an object");
|
|
1564
1566
|
const shapes = new Map(describe().map((knob) => [knob.key, knob.value]));
|
|
1565
1567
|
for (const [key, value] of Object.entries(patch)) {
|
|
1566
1568
|
const shape = shapes.get(key);
|
|
@@ -1588,12 +1590,12 @@ function checkPatch(patch) {
|
|
|
1588
1590
|
function unlisted(path, value) {
|
|
1589
1591
|
const takes = UNLISTED.get(path);
|
|
1590
1592
|
if (!takes)
|
|
1591
|
-
throw new TypeError(`
|
|
1593
|
+
throw new TypeError(`knobs: unknown knob ${path}`);
|
|
1592
1594
|
if (!takes(value))
|
|
1593
1595
|
throw bad(path, value);
|
|
1594
1596
|
}
|
|
1595
1597
|
function bad(path, value) {
|
|
1596
|
-
return new TypeError(`
|
|
1598
|
+
return new TypeError(`knobs: bad value for ${path}: ${shown(value)}`);
|
|
1597
1599
|
}
|
|
1598
1600
|
function shown(value) {
|
|
1599
1601
|
if (typeof value === "number" && !Number.isFinite(value))
|
|
@@ -2635,7 +2637,7 @@ var PANE = { openPane, paneView, onPane, retitlePane, showPane };
|
|
|
2635
2637
|
function here(element) {
|
|
2636
2638
|
return element.isConnected && element.ownerDocument.defaultView !== null;
|
|
2637
2639
|
}
|
|
2638
|
-
function createInspector(context, load = () => import("./elementsview-
|
|
2640
|
+
function createInspector(context, load = () => import("./elementsview-jg4edt86.js").then(({ createElementsView }) => ({ createStylesView: createElementsView })), pane = PANE) {
|
|
2639
2641
|
const { inspect, tips, prefs } = context;
|
|
2640
2642
|
const listeners = new Set;
|
|
2641
2643
|
let view = null;
|
|
@@ -6325,7 +6327,7 @@ function isZero(duration) {
|
|
|
6325
6327
|
}
|
|
6326
6328
|
|
|
6327
6329
|
// src/version.ts
|
|
6328
|
-
var VERSION = "0.
|
|
6330
|
+
var VERSION = "0.7.0";
|
|
6329
6331
|
|
|
6330
6332
|
// src/ui/settings.ts
|
|
6331
6333
|
var NO_KEY = "not set";
|
|
@@ -6363,6 +6365,25 @@ function feedbackRow() {
|
|
|
6363
6365
|
link.addEventListener(type, aim);
|
|
6364
6366
|
return rowBox({ main: link, glyph: icon("message-square"), title: "send feedback" }).box;
|
|
6365
6367
|
}
|
|
6368
|
+
function outLink(className, href) {
|
|
6369
|
+
const link = el("a", className);
|
|
6370
|
+
link.setAttribute("href", href);
|
|
6371
|
+
link.setAttribute("target", "_blank");
|
|
6372
|
+
link.setAttribute("rel", "noopener noreferrer");
|
|
6373
|
+
return link;
|
|
6374
|
+
}
|
|
6375
|
+
var REPO_URL = "https://github.com/vinenastudio/knobs";
|
|
6376
|
+
function githubRow() {
|
|
6377
|
+
return rowBox({ main: outLink("main feedback", REPO_URL), glyph: brand("github"), title: "github" }).box;
|
|
6378
|
+
}
|
|
6379
|
+
function vinenaUrl(host) {
|
|
6380
|
+
return `https://vinena.studio/?utm_source=knobs.dev&utm_medium=referral&utm_campaign=${host ? "extension" : "panel"}`;
|
|
6381
|
+
}
|
|
6382
|
+
function creditRow(host) {
|
|
6383
|
+
const link = outLink("credit", vinenaUrl(host));
|
|
6384
|
+
link.append(el("span", "", "crafted at"), vinenaMark());
|
|
6385
|
+
return link;
|
|
6386
|
+
}
|
|
6366
6387
|
function keepRow(resolve) {
|
|
6367
6388
|
const control = button("switch row-control", "");
|
|
6368
6389
|
control.setAttribute("role", "switch");
|
|
@@ -6521,7 +6542,7 @@ function createSettings(context) {
|
|
|
6521
6542
|
}).box);
|
|
6522
6543
|
keyViews.set(binding, { set: set2, back });
|
|
6523
6544
|
}
|
|
6524
|
-
keysView.append(feedbackRow());
|
|
6545
|
+
keysView.append(feedbackRow(), githubRow(), creditRow(context.host));
|
|
6525
6546
|
let editingKeys = false;
|
|
6526
6547
|
let recording = null;
|
|
6527
6548
|
const { refuse, unrefuse, destroy: stopRefusing } = createRefusal(tips, said);
|
|
@@ -7637,6 +7658,23 @@ input[type="checkbox"]:focus-visible { outline: 1px solid var(--faint); outline-
|
|
|
7637
7658
|
.row-key { flex: none; align-self: center; font-size: 10px; line-height: 1.4; color: var(--faint); }
|
|
7638
7659
|
.feedback { color: inherit; text-decoration: none; cursor: pointer; }
|
|
7639
7660
|
.feedback:focus-visible { outline: 1px solid var(--faint); outline-offset: -1px; }
|
|
7661
|
+
/* The studio's credit under the settings' rows: its words and its wordmark, as quiet as the footer's text. */
|
|
7662
|
+
.credit {
|
|
7663
|
+
display: flex;
|
|
7664
|
+
align-items: center;
|
|
7665
|
+
justify-content: center;
|
|
7666
|
+
gap: 0.4em;
|
|
7667
|
+
padding: 8px var(--view-end) 4px var(--view-start);
|
|
7668
|
+
font-size: 10px;
|
|
7669
|
+
line-height: 1.4;
|
|
7670
|
+
color: var(--faint);
|
|
7671
|
+
text-decoration: none;
|
|
7672
|
+
white-space: nowrap;
|
|
7673
|
+
border-radius: 8px;
|
|
7674
|
+
}
|
|
7675
|
+
.credit:hover { color: var(--fg); }
|
|
7676
|
+
.credit:focus-visible { color: var(--fg); outline: 1px solid var(--faint); outline-offset: -1px; }
|
|
7677
|
+
.credit .wordmark { flex: none; width: auto; height: 0.85em; }
|
|
7640
7678
|
.row-control { flex: none; align-self: center; margin-left: auto; }
|
|
7641
7679
|
/* A row's small button inside its main, before what the main ends with,
|
|
7642
7680
|
takes no height of its own, so the row is as tall as any. */
|
|
@@ -8901,6 +8939,7 @@ function createPanel(options2 = {}) {
|
|
|
8901
8939
|
},
|
|
8902
8940
|
prefer: options2.prefer ?? null,
|
|
8903
8941
|
setPrefer: (value) => options2.prefer?.change(value),
|
|
8942
|
+
host: options2.host === true,
|
|
8904
8943
|
searching: () => palette.searching(),
|
|
8905
8944
|
leaveSearch: () => palette.leaveSearch()
|
|
8906
8945
|
});
|
|
@@ -9029,7 +9068,7 @@ function createPanel(options2 = {}) {
|
|
|
9029
9068
|
}
|
|
9030
9069
|
function renderKeys() {
|
|
9031
9070
|
const now2 = keys.get();
|
|
9032
|
-
handle.setAttribute("aria-label", `
|
|
9071
|
+
handle.setAttribute("aria-label", `knobs, press ${comboSpoken(now2.panel)}`);
|
|
9033
9072
|
footer.drawKeys(now2);
|
|
9034
9073
|
settings.drawKeys(now2);
|
|
9035
9074
|
knobRows.drawKeys(now2);
|
|
@@ -9439,7 +9478,8 @@ function attach(options2) {
|
|
|
9439
9478
|
grab: grabControl,
|
|
9440
9479
|
inspect,
|
|
9441
9480
|
handle: options2.handle,
|
|
9442
|
-
prefer: panelPrefer(options2)
|
|
9481
|
+
prefer: panelPrefer(options2),
|
|
9482
|
+
host: options2.host === true
|
|
9443
9483
|
});
|
|
9444
9484
|
}
|
|
9445
9485
|
function panelPrefer(options2) {
|
|
@@ -9606,7 +9646,7 @@ function retake(options2, native) {
|
|
|
9606
9646
|
}
|
|
9607
9647
|
if (retaken++ >= RETAKES) {
|
|
9608
9648
|
if (retaken === RETAKES + 1) {
|
|
9609
|
-
console.warn("
|
|
9649
|
+
console.warn("knobs: this page runs its own copy of knobs, which does not know hosts; it keeps the page");
|
|
9610
9650
|
}
|
|
9611
9651
|
return;
|
|
9612
9652
|
}
|
|
@@ -9650,7 +9690,7 @@ async function grab(elements, options2) {
|
|
|
9650
9690
|
const host = hosted("grab");
|
|
9651
9691
|
if (host)
|
|
9652
9692
|
return host(elements, options2);
|
|
9653
|
-
const loaded = await import("./index-
|
|
9693
|
+
const loaded = await import("./index-xxbb8y41.js");
|
|
9654
9694
|
return loaded.grab(elements, options2);
|
|
9655
9695
|
}
|
|
9656
9696
|
function edits2() {
|
|
@@ -9661,8 +9701,8 @@ async function setEdits(list) {
|
|
|
9661
9701
|
if (host)
|
|
9662
9702
|
return host(list);
|
|
9663
9703
|
if (!Array.isArray(list))
|
|
9664
|
-
throw new TypeError("
|
|
9665
|
-
const { replayEdits } = await import("./replay-
|
|
9704
|
+
throw new TypeError("knobs: setEdits takes a list of edits, as edits() gives them");
|
|
9705
|
+
const { replayEdits } = await import("./replay-pmesjfa3.js");
|
|
9666
9706
|
const { applied, skipped } = replayEdits(edits, list);
|
|
9667
9707
|
return { applied, skipped };
|
|
9668
9708
|
}
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
riskyElement,
|
|
7
7
|
specificity,
|
|
8
8
|
splitList
|
|
9
|
-
} from "./react-
|
|
9
|
+
} from "./react-8nmtt0ge.js";
|
|
10
10
|
import {
|
|
11
11
|
middle
|
|
12
12
|
} from "./react-73reavv4.js";
|
|
@@ -19,12 +19,12 @@ import {
|
|
|
19
19
|
import {
|
|
20
20
|
actButton,
|
|
21
21
|
el
|
|
22
|
-
} from "./react-
|
|
22
|
+
} from "./react-actmnkwp.js";
|
|
23
23
|
import {
|
|
24
24
|
icon,
|
|
25
25
|
isDevknobs,
|
|
26
26
|
typesInField
|
|
27
|
-
} from "./react-
|
|
27
|
+
} from "./react-meve34wp.js";
|
|
28
28
|
import {
|
|
29
29
|
addStyle,
|
|
30
30
|
authoredQuery,
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
resolveNesting,
|
|
8
8
|
splitList
|
|
9
|
-
} from "./react-
|
|
9
|
+
} from "./react-8nmtt0ge.js";
|
|
10
10
|
import {
|
|
11
11
|
flatParent,
|
|
12
12
|
isNewRuleSheet,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./react-4phtr2nd.js";
|
|
16
16
|
import {
|
|
17
17
|
isDevknobs
|
|
18
|
-
} from "./react-
|
|
18
|
+
} from "./react-meve34wp.js";
|
|
19
19
|
import {
|
|
20
20
|
addStyle,
|
|
21
21
|
ensureStyle,
|
|
@@ -288,7 +288,7 @@ function keepMounted(node, options = {}) {
|
|
|
288
288
|
}
|
|
289
289
|
if (!warned) {
|
|
290
290
|
warned = true;
|
|
291
|
-
console.warn("
|
|
291
|
+
console.warn("knobs: the page keeps removing knobs' elements; putting them back less often");
|
|
292
292
|
}
|
|
293
293
|
timer = window.setTimeout(restore, wait);
|
|
294
294
|
}
|
|
@@ -189,7 +189,7 @@ var MAX_PAGES = 20;
|
|
|
189
189
|
var FIELD_MAX = 64 * 1024;
|
|
190
190
|
var KINDS = ["css-value", "css-toggle", "css-add", "css-rule", "text", "attr", "html", "hide", "delete", "move"];
|
|
191
191
|
var REASONS = {
|
|
192
|
-
invalid: "not an edit
|
|
192
|
+
invalid: "not an edit knobs reads",
|
|
193
193
|
missing: "not found on the page",
|
|
194
194
|
rule: "its rule is not on the page",
|
|
195
195
|
changed: "the page has another value now",
|
|
@@ -409,7 +409,7 @@ function settled(view, quiet = QUIET, longest = SETTLE_MAX) {
|
|
|
409
409
|
}
|
|
410
410
|
function createKeeper(options) {
|
|
411
411
|
const { log, store, view } = options;
|
|
412
|
-
const loadReplay = options.replay ?? (() => import("./replay-
|
|
412
|
+
const loadReplay = options.replay ?? (() => import("./replay-m5g8km9y.js").then(({ replayEdits }) => replayEdits));
|
|
413
413
|
const wait = options.settled ?? (() => settled(view));
|
|
414
414
|
const frame = options.frame ?? (() => null);
|
|
415
415
|
const ours = new WeakMap;
|
|
@@ -5,14 +5,14 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
frameWindow,
|
|
7
7
|
subscribe
|
|
8
|
-
} from "./react-
|
|
8
|
+
} from "./react-zp7fdw8e.js";
|
|
9
9
|
import {
|
|
10
10
|
inField,
|
|
11
11
|
isFunctionKey,
|
|
12
12
|
keyIs,
|
|
13
13
|
typesInField,
|
|
14
14
|
withShift
|
|
15
|
-
} from "./react-
|
|
15
|
+
} from "./react-meve34wp.js";
|
|
16
16
|
import {
|
|
17
17
|
addStyle,
|
|
18
18
|
isDevknobsFrame,
|
|
@@ -165,7 +165,7 @@ function systemScheme() {
|
|
|
165
165
|
host.remove();
|
|
166
166
|
return dark ? "dark" : "light";
|
|
167
167
|
}
|
|
168
|
-
function createGrab(options = {}, loadMode = () => import("./index-
|
|
168
|
+
function createGrab(options = {}, loadMode = () => import("./index-3nwycv3p.js")) {
|
|
169
169
|
const keyNow = options.key ?? defaultGrabKey;
|
|
170
170
|
const { purpose } = options;
|
|
171
171
|
const channel = purpose?.channel ?? "grab";
|
|
@@ -374,7 +374,7 @@ function held(view) {
|
|
|
374
374
|
return null;
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
|
-
function createInspect(options = {}, load = () => import("./index-
|
|
377
|
+
function createInspect(options = {}, load = () => import("./index-3nwycv3p.js"), frameOf = frameWindow) {
|
|
378
378
|
const inFrame = isDevknobsFrame();
|
|
379
379
|
const listeners = new Set;
|
|
380
380
|
let outliner = null;
|
|
@@ -232,8 +232,28 @@ var BRANDS = {
|
|
|
232
232
|
json: [
|
|
233
233
|
"currentColor",
|
|
234
234
|
"M12.043 23.968c.479-.004.953-.029 1.426-.094a11.805 11.805 0 003.146-.863 12.404 12.404 0 003.793-2.542 11.977 11.977 0 002.44-3.427 11.794 11.794 0 001.02-3.476c.149-1.16.135-2.346-.045-3.499a11.96 11.96 0 00-.793-2.788 11.197 11.197 0 00-.854-1.617c-1.168-1.837-2.861-3.314-4.81-4.3a12.835 12.835 0 00-2.172-.87h-.005c.119.063.24.132.345.201.12.074.239.146.351.225a8.93 8.93 0 011.559 1.33c1.063 1.145 1.797 2.548 2.218 4.041.284.982.434 1.998.495 3.017.044.743.044 1.491-.047 2.229-.149 1.27-.554 2.51-1.228 3.596a7.475 7.475 0 01-1.903 2.084c-1.244.928-2.877 1.482-4.436 1.114a3.916 3.916 0 01-.748-.258 4.692 4.692 0 01-.779-.45 6.08 6.08 0 01-1.244-1.105 6.507 6.507 0 01-1.049-1.747 7.366 7.366 0 01-.494-2.54c-.03-1.273.225-2.553.854-3.67a6.43 6.43 0 011.663-1.918c.225-.178.464-.333.704-.479l.016-.007a5.121 5.121 0 00-1.441-.12 4.963 4.963 0 00-1.228.24c-.359.12-.704.27-1.019.45a6.146 6.146 0 00-.733.494c-.211.18-.42.36-.615.555-1.123 1.153-1.768 2.682-2.022 4.256-.15.973-.15 1.96-.091 2.95.105 1.395.391 2.787.945 4.062a8.518 8.518 0 001.348 2.173 8.14 8.14 0 003.132 2.23 7.934 7.934 0 002.113.54c.074.015.149.015.209.015zm-2.934-.398a4.102 4.102 0 01-.45-.228 8.5 8.5 0 01-2.038-1.534c-1.094-1.137-1.827-2.566-2.247-4.08a15.184 15.184 0 01-.495-3.172 12.14 12.14 0 01.046-2.082c.135-1.257.495-2.501 1.124-3.58a6.889 6.889 0 011.783-2.053 6.23 6.23 0 011.633-.9 5.363 5.363 0 013.522-.045c.029 0 .029 0 .045.03.015.015.045.015.06.03.045.016.104.045.165.074.239.12.479.271.704.42a6.294 6.294 0 012.097 2.502c.42.914.615 1.934.631 2.938.014 1.079-.18 2.157-.645 3.146a6.42 6.42 0 01-2.638 2.832c.09.03.18.045.271.075.225.044.449.074.688.074 1.468.045 2.892-.66 3.94-1.647.195-.18.375-.375.54-.585.225-.27.435-.54.614-.823.239-.375.435-.75.614-1.154a8.112 8.112 0 00.509-1.664c.196-1.004.211-2.022.149-3.026-.135-2.022-.673-4.045-1.842-5.724a9.054 9.054 0 00-.555-.719 9.868 9.868 0 00-1.063-1.034 8.477 8.477 0 00-1.363-.915 9.927 9.927 0 00-1.692-.598l-.3-.06c-.209-.03-.42-.044-.634-.06a8.453 8.453 0 00-1.015.016c-.704.045-1.412.16-2.112.337C5.799 1.227 2.863 3.566 1.3 6.67A11.834 11.834 0 00.238 9.801a11.81 11.81 0 00-.104 3.775c.12 1.02.374 2.023.778 2.977.227.57.511 1.124.825 1.648 1.094 1.783 2.683 3.236 4.51 4.24.688.39 1.408.69 2.157.944.226.074.45.15.689.21z"
|
|
235
|
+
],
|
|
236
|
+
github: [
|
|
237
|
+
"currentColor",
|
|
238
|
+
"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"
|
|
235
239
|
]
|
|
236
240
|
};
|
|
241
|
+
var VINENA = {
|
|
242
|
+
viewBox: "-3.1 0 537.6 100",
|
|
243
|
+
d: "M147.7 0L205.7 39.97C212.299 35.383 217.85 29.448 221.987 22.559C226.124 15.669 228.753 7.98 229.7 0C240.978 32.123 243.056 66.759 235.7 100L177.7 60.03C171.101 64.617 165.55 70.552 161.413 77.441C157.276 84.331 154.647 92.02 153.7 100C142.422 67.877 140.344 33.241 147.7 0ZM332.2 0L390.2 39.97C396.799 35.383 402.35 29.448 406.487 22.559C410.624 15.669 413.253 7.98 414.2 0C425.478 32.123 427.556 66.759 420.2 100L362.2 60.03C355.601 64.617 350.05 70.552 345.913 77.441C341.776 84.331 339.147 92.02 338.2 100C326.922 67.877 324.844 33.241 332.2 0ZM256.7 0L320.788 0C321.757 -0.025 322.728 -0.025 323.7 0C308.09 8.286 293.044 17.594 278.662 27.864C277.746 28.519 276.999 29.382 276.484 30.383C275.969 31.384 275.7 32.494 275.7 33.619C275.7 35.495 276.445 37.294 277.771 38.62C279.054 39.903 280.78 40.642 282.589 40.689C282.662 40.69 282.735 40.69 282.808 40.691C288.331 40.737 292.836 39.957 297.815 39.096C299.95 38.726 302.172 38.341 304.599 38C301.662 41.307 300.039 45.577 300.039 50C300.039 54.423 301.662 58.693 304.599 62C302.172 61.659 299.95 61.274 297.815 60.904C292.836 60.043 288.331 59.263 282.808 59.309C282.735 59.31 282.662 59.31 282.589 59.311C280.78 59.358 279.054 60.097 277.771 61.38C276.445 62.706 275.7 64.505 275.7 66.381C275.7 67.506 275.969 68.616 276.484 69.617C276.999 70.618 277.746 71.481 278.662 72.136C293.044 82.406 308.09 91.714 323.7 100C322.728 100.025 321.757 100.025 320.788 100L256.7 100C247.367 67.32 247.367 32.68 256.7 0ZM0 0C1.758 11.149 7.438 21.304 16.018 28.637C19.433 31.557 23.219 33.952 27.25 35.779C26.953 37.155 26.8 38.57 26.8 40C26.8 45.304 28.907 50.391 32.658 54.142C36.409 57.893 41.496 60 46.8 60C52.104 60 57.191 57.893 60.942 54.142C64.693 50.391 66.8 45.304 66.8 40C66.8 38.57 66.647 37.155 66.35 35.779C70.381 33.952 74.167 31.557 77.582 28.637C86.162 21.304 91.842 11.149 93.6 0C96.647 19.434 93.821 39.335 85.483 57.152C77.144 74.969 63.674 89.889 46.8 100C29.926 89.889 16.456 74.969 8.117 57.152C-0.221 39.335 -3.047 19.434 0 0ZM531.4 100C529.642 88.851 523.962 78.696 515.382 71.363C511.967 68.443 508.181 66.048 504.15 64.221C504.447 62.845 504.6 61.43 504.6 60C504.6 54.696 502.493 49.609 498.742 45.858C494.991 42.107 489.904 40 484.6 40C479.296 40 474.209 42.107 470.458 45.858C466.707 49.609 464.6 54.696 464.6 60C464.6 61.43 464.753 62.845 465.051 64.221C461.019 66.048 457.233 68.443 453.818 71.363C445.238 78.696 439.558 88.851 437.8 100C434.753 80.566 437.579 60.665 445.917 42.848C454.256 25.031 467.726 10.111 484.6 0C501.474 10.111 514.944 25.031 523.283 42.848C531.621 60.665 534.447 80.566 531.4 100ZM120.7 0C129.225 15.286 133.7 32.498 133.7 50C133.7 67.502 129.225 84.714 120.7 100C112.175 84.714 107.7 67.502 107.7 50C107.7 32.498 112.175 15.286 120.7 0Z"
|
|
244
|
+
};
|
|
245
|
+
function vinenaMark() {
|
|
246
|
+
const svg = document.createElementNS(SVG, "svg");
|
|
247
|
+
svg.setAttribute("class", "wordmark");
|
|
248
|
+
svg.setAttribute("viewBox", VINENA.viewBox);
|
|
249
|
+
svg.setAttribute("fill", "currentColor");
|
|
250
|
+
svg.setAttribute("role", "img");
|
|
251
|
+
svg.setAttribute("aria-label", "Vinena");
|
|
252
|
+
const shape = document.createElementNS(SVG, "path");
|
|
253
|
+
shape.setAttribute("d", VINENA.d);
|
|
254
|
+
svg.append(shape);
|
|
255
|
+
return svg;
|
|
256
|
+
}
|
|
237
257
|
var ROW_ICONS = {
|
|
238
258
|
scheme: "half-sun-moon",
|
|
239
259
|
contrast: "contrast",
|
|
@@ -689,4 +709,4 @@ function grabTargetAt(root, x, y) {
|
|
|
689
709
|
return isGrabbable(element) ? element : null;
|
|
690
710
|
}
|
|
691
711
|
|
|
692
|
-
export { composedParent, isDevknobs, isGrabbable, grabTargetAt, ROW_ICONS, rowIcon, BINDING_ICONS, icon, glyph, parseCombo, comboText, withShift, isFunctionKey, comboLabel, comboSpoken, defaultKeys, KEYS_FIELD, inField, typesInField, lowerKey, letterMatches, keyIs, keyAction, isSearchKey, typeAhead, zoomAction, escapeStep, highlightAt, paletteMove, radioMove, forwardKeys };
|
|
712
|
+
export { composedParent, isDevknobs, isGrabbable, grabTargetAt, vinenaMark, ROW_ICONS, rowIcon, BINDING_ICONS, icon, brand, glyph, parseCombo, comboText, withShift, isFunctionKey, comboLabel, comboSpoken, defaultKeys, KEYS_FIELD, inField, typesInField, lowerKey, letterMatches, keyIs, keyAction, isSearchKey, typeAhead, zoomAction, escapeStep, highlightAt, paletteMove, radioMove, forwardKeys };
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
lay,
|
|
6
6
|
rowBox,
|
|
7
7
|
rowButton
|
|
8
|
-
} from "./react-
|
|
8
|
+
} from "./react-actmnkwp.js";
|
|
9
9
|
import {
|
|
10
10
|
getState
|
|
11
|
-
} from "./react-
|
|
11
|
+
} from "./react-zp7fdw8e.js";
|
|
12
12
|
import {
|
|
13
13
|
icon
|
|
14
|
-
} from "./react-
|
|
14
|
+
} from "./react-meve34wp.js";
|
|
15
15
|
import {
|
|
16
16
|
isDevknobsFrame,
|
|
17
17
|
newer,
|
|
@@ -210,7 +210,7 @@ function createPane(context) {
|
|
|
210
210
|
// src/ui/storageaction.ts
|
|
211
211
|
var STORAGE_VIEW = "storage";
|
|
212
212
|
function load() {
|
|
213
|
-
return import("./storageview-
|
|
213
|
+
return import("./storageview-9a6zm47z.js").then((loaded) => loaded.storageView({
|
|
214
214
|
visible: () => getState().panel.open && !document.hidden
|
|
215
215
|
}));
|
|
216
216
|
}
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
import {
|
|
28
28
|
composedParent,
|
|
29
29
|
isDevknobs
|
|
30
|
-
} from "./react-
|
|
30
|
+
} from "./react-meve34wp.js";
|
|
31
31
|
import {
|
|
32
32
|
DEFAULT_STATE,
|
|
33
33
|
EXITED,
|
|
@@ -1776,7 +1776,7 @@ function pause(on) {
|
|
|
1776
1776
|
|
|
1777
1777
|
// src/engine/frames.ts
|
|
1778
1778
|
var kit = null;
|
|
1779
|
-
var load2 = () => import("./framekit-
|
|
1779
|
+
var load2 = () => import("./framekit-r16k97n7.js");
|
|
1780
1780
|
var loading = null;
|
|
1781
1781
|
var down = false;
|
|
1782
1782
|
var waiting = [];
|
|
@@ -1810,7 +1810,7 @@ function loadFrames() {
|
|
|
1810
1810
|
return loading;
|
|
1811
1811
|
}
|
|
1812
1812
|
function failed(error) {
|
|
1813
|
-
console.error("
|
|
1813
|
+
console.error("knobs: the device frame could not load", error);
|
|
1814
1814
|
down = true;
|
|
1815
1815
|
before = null;
|
|
1816
1816
|
latest = null;
|
|
@@ -3218,7 +3218,7 @@ function log(offenders, excess) {
|
|
|
3218
3218
|
if (offenders.length === 0) {
|
|
3219
3219
|
if (excess > 0 && !loggedUnfound) {
|
|
3220
3220
|
loggedUnfound = true;
|
|
3221
|
-
console.warn(`
|
|
3221
|
+
console.warn(`knobs: the page scrolls ${excess}px past the ${width}px viewport, ` + "but no element box sticks out. a pseudo-element or a margin, maybe");
|
|
3222
3222
|
}
|
|
3223
3223
|
return;
|
|
3224
3224
|
}
|
|
@@ -3230,7 +3230,7 @@ function log(offenders, excess) {
|
|
|
3230
3230
|
}
|
|
3231
3231
|
function warning(count2, width, excess) {
|
|
3232
3232
|
const boxes = count2 === 1 ? "1 element sticks" : `${count2} elements stick`;
|
|
3233
|
-
return `
|
|
3233
|
+
return `knobs: ${boxes} out of the ${width}px viewport, the page scrolls ${excess}px sideways`;
|
|
3234
3234
|
}
|
|
3235
3235
|
function draw(offenders) {
|
|
3236
3236
|
if (!layer)
|
|
@@ -3533,7 +3533,7 @@ function reset15() {
|
|
|
3533
3533
|
var READY_WAIT = 1e4;
|
|
3534
3534
|
function whenSettled(settled, leaving2, value, mounted, wait = READY_WAIT) {
|
|
3535
3535
|
return new Promise((resolve, reject) => {
|
|
3536
|
-
const notMounted = () => new Error("
|
|
3536
|
+
const notMounted = () => new Error("knobs: not mounted");
|
|
3537
3537
|
if (!mounted()) {
|
|
3538
3538
|
reject(notMounted());
|
|
3539
3539
|
return;
|
|
@@ -3567,7 +3567,7 @@ function whenSettled(settled, leaving2, value, mounted, wait = READY_WAIT) {
|
|
|
3567
3567
|
else if (settled())
|
|
3568
3568
|
resolve(value());
|
|
3569
3569
|
else
|
|
3570
|
-
reject(new Error("
|
|
3570
|
+
reject(new Error("knobs: not settled after 10 seconds"));
|
|
3571
3571
|
}, wait);
|
|
3572
3572
|
frame2 = window.requestAnimationFrame(check);
|
|
3573
3573
|
});
|
|
@@ -3835,7 +3835,7 @@ function createTabIcon(env) {
|
|
|
3835
3835
|
const url = source ? env.render(source, iconSize(link)) : null;
|
|
3836
3836
|
if (!url) {
|
|
3837
3837
|
if (!told)
|
|
3838
|
-
console.debug(`
|
|
3838
|
+
console.debug(`knobs: the tab icon ${href} could not be read, so it shows no dev ribbon`);
|
|
3839
3839
|
told = true;
|
|
3840
3840
|
return;
|
|
3841
3841
|
}
|