@vinena/knobs 0.6.1 → 0.6.3
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/dist/{elementsview-dm5v3z5a.js → elementsview-05qybwpn.js} +6 -6
- package/dist/{elementsview-xm82cvs2.js → elementsview-gjaqje2k.js} +6 -6
- package/dist/engine/fit.d.ts +16 -1
- package/dist/engine/mockdraw.d.ts +3 -1
- package/dist/{framekit-yx612r28.js → framekit-3bmkm34m.js} +88 -11
- package/dist/{framekit-622h6w1f.js → framekit-h0jrc5gs.js} +88 -11
- package/dist/{index-kfdzsyyw.js → index-0mav2k60.js} +3 -3
- package/dist/{index-v0ht9q0g.js → index-0yn3rnza.js} +3 -3
- package/dist/{index-0zp9py56.js → index-4192t60e.js} +1 -1
- package/dist/{index-aynkv7qk.js → index-509g0pa8.js} +4 -4
- package/dist/{index-yb7fc59g.js → index-6xsvcjnc.js} +2 -2
- package/dist/{index-f67wctn3.js → index-aj1z83rt.js} +3 -3
- package/dist/{index-4a4x1bt2.js → index-fp1h37b3.js} +1 -1
- package/dist/{index-f60yax1j.js → index-h93t2tc5.js} +4 -4
- package/dist/{index-x59vz1xx.js → index-kpsrkzmf.js} +2 -2
- package/dist/{index-6bc2ztfd.js → index-rdssc7sz.js} +3 -0
- package/dist/index.global.js +139 -131
- package/dist/index.js +43 -13
- package/dist/{react-cs62p9qh.js → react-2381cr3w.js} +2 -2
- package/dist/{react-6q2cw2ya.js → react-4ykd817s.js} +3 -0
- package/dist/{react-0wepdf60.js → react-anqpcaqm.js} +3 -3
- package/dist/{react-6t4dbdzn.js → react-gkzn5n3v.js} +4 -4
- package/dist/{react-bxzn8vq5.js → react-ptamex0p.js} +1 -1
- package/dist/{react-6bz05qk1.js → react-pvmjybgw.js} +1 -1
- package/dist/{react-88es9b5q.js → react-r3zf2djn.js} +2 -2
- package/dist/{react-v8497a41.js → react-x1ndxf29.js} +4 -4
- package/dist/react.js +43 -13
- package/dist/{replay-j18rw92k.js → replay-39ssrcqp.js} +4 -4
- package/dist/{replay-vtg0vqj2.js → replay-xacjqqt5.js} +4 -4
- package/dist/{storageview-6xj7zb63.js → storageview-3gnncmmv.js} +4 -4
- package/dist/{storageview-pzn8yaad.js → storageview-dwsnvz36.js} +4 -4
- package/dist/ui/icons.d.ts +1 -0
- package/dist/ui/settings.d.ts +7 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
createGrab,
|
|
13
13
|
createInspect,
|
|
14
14
|
oneAtATime
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-h93t2tc5.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-6xsvcjnc.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-4192t60e.js";
|
|
57
57
|
import {
|
|
58
58
|
label
|
|
59
59
|
} from "./index-zd6adby9.js";
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
showPane,
|
|
71
71
|
stopOnLoad,
|
|
72
72
|
viewHead
|
|
73
|
-
} from "./index-
|
|
73
|
+
} from "./index-509g0pa8.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-fp1h37b3.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-kpsrkzmf.js";
|
|
148
148
|
import {
|
|
149
149
|
MAT_COLORS,
|
|
150
150
|
MAT_COLOR_NAMES,
|
|
@@ -182,7 +182,7 @@ import {
|
|
|
182
182
|
rowIcon,
|
|
183
183
|
typeAhead,
|
|
184
184
|
zoomAction
|
|
185
|
-
} from "./index-
|
|
185
|
+
} from "./index-rdssc7sz.js";
|
|
186
186
|
import {
|
|
187
187
|
BARS,
|
|
188
188
|
BROWSERS,
|
|
@@ -2635,7 +2635,7 @@ var PANE = { openPane, paneView, onPane, retitlePane, showPane };
|
|
|
2635
2635
|
function here(element) {
|
|
2636
2636
|
return element.isConnected && element.ownerDocument.defaultView !== null;
|
|
2637
2637
|
}
|
|
2638
|
-
function createInspector(context, load = () => import("./elementsview-
|
|
2638
|
+
function createInspector(context, load = () => import("./elementsview-05qybwpn.js").then(({ createElementsView }) => ({ createStylesView: createElementsView })), pane = PANE) {
|
|
2639
2639
|
const { inspect, tips, prefs } = context;
|
|
2640
2640
|
const listeners = new Set;
|
|
2641
2641
|
let view = null;
|
|
@@ -6324,6 +6324,9 @@ function isZero(duration) {
|
|
|
6324
6324
|
return parseFloat(duration) === 0;
|
|
6325
6325
|
}
|
|
6326
6326
|
|
|
6327
|
+
// src/version.ts
|
|
6328
|
+
var VERSION = "0.6.3";
|
|
6329
|
+
|
|
6327
6330
|
// src/ui/settings.ts
|
|
6328
6331
|
var NO_KEY = "not set";
|
|
6329
6332
|
var HANDLE_HINT = 4000;
|
|
@@ -6333,6 +6336,33 @@ function handleHint(keys, mac) {
|
|
|
6333
6336
|
var REAL_PHONE_HINT = "sends the phone's user agent to sites, so they serve their mobile site. some sites may sign you out.";
|
|
6334
6337
|
var KEEP_LABEL = "keep edits after reload";
|
|
6335
6338
|
var KEEP_HINT = "keeps your Elements edits on this page after a reload.";
|
|
6339
|
+
function pageAddress(page) {
|
|
6340
|
+
try {
|
|
6341
|
+
const url = new URL(page);
|
|
6342
|
+
url.search = "";
|
|
6343
|
+
url.hash = "";
|
|
6344
|
+
url.username = "";
|
|
6345
|
+
url.password = "";
|
|
6346
|
+
return url.href;
|
|
6347
|
+
} catch {
|
|
6348
|
+
return page.split(/[?#]/, 1)[0] ?? "";
|
|
6349
|
+
}
|
|
6350
|
+
}
|
|
6351
|
+
function feedbackUrl(version, page) {
|
|
6352
|
+
const v = version === "source" ? "" : `&v=${encodeURIComponent(version)}`;
|
|
6353
|
+
return `https://feedback.vinena.studio/?product=knobs${v}&page=${encodeURIComponent(pageAddress(page))}`;
|
|
6354
|
+
}
|
|
6355
|
+
function feedbackRow() {
|
|
6356
|
+
const link = el("a", "main feedback");
|
|
6357
|
+
link.setAttribute("target", "_blank");
|
|
6358
|
+
link.setAttribute("rel", "noopener noreferrer");
|
|
6359
|
+
const aim = () => link.setAttribute("href", feedbackUrl(VERSION, location.href));
|
|
6360
|
+
if (typeof location !== "undefined")
|
|
6361
|
+
aim();
|
|
6362
|
+
for (const type of ["click", "auxclick", "contextmenu"])
|
|
6363
|
+
link.addEventListener(type, aim);
|
|
6364
|
+
return rowBox({ main: link, glyph: icon("message-square"), title: "send feedback" }).box;
|
|
6365
|
+
}
|
|
6336
6366
|
function keepRow(resolve) {
|
|
6337
6367
|
const control = button("switch row-control", "");
|
|
6338
6368
|
control.setAttribute("role", "switch");
|
|
@@ -6491,6 +6521,7 @@ function createSettings(context) {
|
|
|
6491
6521
|
}).box);
|
|
6492
6522
|
keyViews.set(binding, { set: set2, back });
|
|
6493
6523
|
}
|
|
6524
|
+
keysView.append(feedbackRow());
|
|
6494
6525
|
let editingKeys = false;
|
|
6495
6526
|
let recording = null;
|
|
6496
6527
|
const { refuse, unrefuse, destroy: stopRefusing } = createRefusal(tips, said);
|
|
@@ -7604,6 +7635,8 @@ input[type="checkbox"]:focus-visible { outline: 1px solid var(--faint); outline-
|
|
|
7604
7635
|
.row-hint { padding: 0 var(--view-end) 4px calc(var(--view-start) + var(--col-step)); font-size: 10.5px; color: var(--faint); }
|
|
7605
7636
|
/* An action's key, at the end of its row, as quiet as the footer shows a key. */
|
|
7606
7637
|
.row-key { flex: none; align-self: center; font-size: 10px; line-height: 1.4; color: var(--faint); }
|
|
7638
|
+
.feedback { color: inherit; text-decoration: none; cursor: pointer; }
|
|
7639
|
+
.feedback:focus-visible { outline: 1px solid var(--faint); outline-offset: -1px; }
|
|
7607
7640
|
.row-control { flex: none; align-self: center; margin-left: auto; }
|
|
7608
7641
|
/* A row's small button inside its main, before what the main ends with,
|
|
7609
7642
|
takes no height of its own, so the row is as tall as any. */
|
|
@@ -9316,9 +9349,6 @@ function createPanel(options2 = {}) {
|
|
|
9316
9349
|
};
|
|
9317
9350
|
}
|
|
9318
9351
|
|
|
9319
|
-
// src/version.ts
|
|
9320
|
-
var VERSION = "0.6.1";
|
|
9321
|
-
|
|
9322
9352
|
// src/index.ts
|
|
9323
9353
|
var PRESETS = {
|
|
9324
9354
|
locale: LOCALE_PRESETS,
|
|
@@ -9620,7 +9650,7 @@ async function grab(elements, options2) {
|
|
|
9620
9650
|
const host = hosted("grab");
|
|
9621
9651
|
if (host)
|
|
9622
9652
|
return host(elements, options2);
|
|
9623
|
-
const loaded = await import("./index-
|
|
9653
|
+
const loaded = await import("./index-aj1z83rt.js");
|
|
9624
9654
|
return loaded.grab(elements, options2);
|
|
9625
9655
|
}
|
|
9626
9656
|
function edits2() {
|
|
@@ -9632,7 +9662,7 @@ async function setEdits(list) {
|
|
|
9632
9662
|
return host(list);
|
|
9633
9663
|
if (!Array.isArray(list))
|
|
9634
9664
|
throw new TypeError("devknobs.setEdits takes a list of edits, as edits() gives them");
|
|
9635
|
-
const { replayEdits } = await import("./replay-
|
|
9665
|
+
const { replayEdits } = await import("./replay-xacjqqt5.js");
|
|
9636
9666
|
const { applied, skipped } = replayEdits(edits, list);
|
|
9637
9667
|
return { applied, skipped };
|
|
9638
9668
|
}
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
import {
|
|
28
28
|
composedParent,
|
|
29
29
|
isDevknobs
|
|
30
|
-
} from "./react-
|
|
30
|
+
} from "./react-4ykd817s.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-h0jrc5gs.js");
|
|
1780
1780
|
var loading = null;
|
|
1781
1781
|
var down = false;
|
|
1782
1782
|
var waiting = [];
|
|
@@ -148,6 +148,9 @@ var ICONS = {
|
|
|
148
148
|
p("M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2")
|
|
149
149
|
],
|
|
150
150
|
check: [p("M20 6 9 17l-5-5")],
|
|
151
|
+
"message-square": [
|
|
152
|
+
p("M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z")
|
|
153
|
+
],
|
|
151
154
|
"chevron-left": [p("m15 18-6-6 6-6")],
|
|
152
155
|
"chevrons-left-right": [p("m9 7-5 5 5 5"), p("m15 7 5 5-5 5")],
|
|
153
156
|
plus: [p("M5 12h14"), p("M12 5v14")],
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
riskyElement,
|
|
7
7
|
specificity,
|
|
8
8
|
splitList
|
|
9
|
-
} from "./react-
|
|
9
|
+
} from "./react-pvmjybgw.js";
|
|
10
10
|
import {
|
|
11
11
|
middle
|
|
12
12
|
} from "./react-6fnxxs30.js";
|
|
@@ -19,12 +19,12 @@ import {
|
|
|
19
19
|
import {
|
|
20
20
|
actButton,
|
|
21
21
|
el
|
|
22
|
-
} from "./react-
|
|
22
|
+
} from "./react-ptamex0p.js";
|
|
23
23
|
import {
|
|
24
24
|
icon,
|
|
25
25
|
isDevknobs,
|
|
26
26
|
typesInField
|
|
27
|
-
} from "./react-
|
|
27
|
+
} from "./react-4ykd817s.js";
|
|
28
28
|
import {
|
|
29
29
|
addStyle,
|
|
30
30
|
authoredQuery,
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
lay,
|
|
6
6
|
rowBox,
|
|
7
7
|
rowButton
|
|
8
|
-
} from "./react-
|
|
8
|
+
} from "./react-ptamex0p.js";
|
|
9
9
|
import {
|
|
10
10
|
getState
|
|
11
|
-
} from "./react-
|
|
11
|
+
} from "./react-2381cr3w.js";
|
|
12
12
|
import {
|
|
13
13
|
icon
|
|
14
|
-
} from "./react-
|
|
14
|
+
} from "./react-4ykd817s.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-3gnncmmv.js").then((loaded) => loaded.storageView({
|
|
214
214
|
visible: () => getState().panel.open && !document.hidden
|
|
215
215
|
}));
|
|
216
216
|
}
|
|
@@ -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-39ssrcqp.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;
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
resolveNesting,
|
|
8
8
|
splitList
|
|
9
|
-
} from "./react-
|
|
9
|
+
} from "./react-pvmjybgw.js";
|
|
10
10
|
import {
|
|
11
11
|
flatParent,
|
|
12
12
|
isNewRuleSheet,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./react-ethftdxp.js";
|
|
16
16
|
import {
|
|
17
17
|
isDevknobs
|
|
18
|
-
} from "./react-
|
|
18
|
+
} from "./react-4ykd817s.js";
|
|
19
19
|
import {
|
|
20
20
|
addStyle,
|
|
21
21
|
ensureStyle,
|
|
@@ -5,14 +5,14 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
frameWindow,
|
|
7
7
|
subscribe
|
|
8
|
-
} from "./react-
|
|
8
|
+
} from "./react-2381cr3w.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-4ykd817s.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-0mav2k60.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-0mav2k60.js"), frameOf = frameWindow) {
|
|
378
378
|
const inFrame = isDevknobsFrame();
|
|
379
379
|
const listeners = new Set;
|
|
380
380
|
let outliner = null;
|
package/dist/react.js
CHANGED
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
createGrab,
|
|
14
14
|
createInspect,
|
|
15
15
|
oneAtATime
|
|
16
|
-
} from "./react-
|
|
16
|
+
} from "./react-x1ndxf29.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-
|
|
41
|
+
} from "./react-r3zf2djn.js";
|
|
42
42
|
import {
|
|
43
43
|
dockRoom,
|
|
44
44
|
dockWidth,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
pathNow,
|
|
55
55
|
startKeep,
|
|
56
56
|
stopKeep
|
|
57
|
-
} from "./react-
|
|
57
|
+
} from "./react-pvmjybgw.js";
|
|
58
58
|
import {
|
|
59
59
|
label
|
|
60
60
|
} from "./react-ethftdxp.js";
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
showPane,
|
|
72
72
|
stopOnLoad,
|
|
73
73
|
viewHead
|
|
74
|
-
} from "./react-
|
|
74
|
+
} from "./react-gkzn5n3v.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-
|
|
103
|
+
} from "./react-ptamex0p.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-
|
|
148
|
+
} from "./react-2381cr3w.js";
|
|
149
149
|
import {
|
|
150
150
|
MAT_COLORS,
|
|
151
151
|
MAT_COLOR_NAMES,
|
|
@@ -183,7 +183,7 @@ import {
|
|
|
183
183
|
rowIcon,
|
|
184
184
|
typeAhead,
|
|
185
185
|
zoomAction
|
|
186
|
-
} from "./react-
|
|
186
|
+
} from "./react-4ykd817s.js";
|
|
187
187
|
import {
|
|
188
188
|
BARS,
|
|
189
189
|
BROWSERS,
|
|
@@ -2638,7 +2638,7 @@ var PANE = { openPane, paneView, onPane, retitlePane, showPane };
|
|
|
2638
2638
|
function here(element) {
|
|
2639
2639
|
return element.isConnected && element.ownerDocument.defaultView !== null;
|
|
2640
2640
|
}
|
|
2641
|
-
function createInspector(context, load = () => import("./elementsview-
|
|
2641
|
+
function createInspector(context, load = () => import("./elementsview-gjaqje2k.js").then(({ createElementsView }) => ({ createStylesView: createElementsView })), pane = PANE) {
|
|
2642
2642
|
const { inspect, tips, prefs } = context;
|
|
2643
2643
|
const listeners = new Set;
|
|
2644
2644
|
let view = null;
|
|
@@ -6327,6 +6327,9 @@ function isZero(duration) {
|
|
|
6327
6327
|
return parseFloat(duration) === 0;
|
|
6328
6328
|
}
|
|
6329
6329
|
|
|
6330
|
+
// src/version.ts
|
|
6331
|
+
var VERSION = "0.6.3";
|
|
6332
|
+
|
|
6330
6333
|
// src/ui/settings.ts
|
|
6331
6334
|
var NO_KEY = "not set";
|
|
6332
6335
|
var HANDLE_HINT = 4000;
|
|
@@ -6336,6 +6339,33 @@ function handleHint(keys, mac) {
|
|
|
6336
6339
|
var REAL_PHONE_HINT = "sends the phone's user agent to sites, so they serve their mobile site. some sites may sign you out.";
|
|
6337
6340
|
var KEEP_LABEL = "keep edits after reload";
|
|
6338
6341
|
var KEEP_HINT = "keeps your Elements edits on this page after a reload.";
|
|
6342
|
+
function pageAddress(page) {
|
|
6343
|
+
try {
|
|
6344
|
+
const url = new URL(page);
|
|
6345
|
+
url.search = "";
|
|
6346
|
+
url.hash = "";
|
|
6347
|
+
url.username = "";
|
|
6348
|
+
url.password = "";
|
|
6349
|
+
return url.href;
|
|
6350
|
+
} catch {
|
|
6351
|
+
return page.split(/[?#]/, 1)[0] ?? "";
|
|
6352
|
+
}
|
|
6353
|
+
}
|
|
6354
|
+
function feedbackUrl(version, page) {
|
|
6355
|
+
const v = version === "source" ? "" : `&v=${encodeURIComponent(version)}`;
|
|
6356
|
+
return `https://feedback.vinena.studio/?product=knobs${v}&page=${encodeURIComponent(pageAddress(page))}`;
|
|
6357
|
+
}
|
|
6358
|
+
function feedbackRow() {
|
|
6359
|
+
const link = el("a", "main feedback");
|
|
6360
|
+
link.setAttribute("target", "_blank");
|
|
6361
|
+
link.setAttribute("rel", "noopener noreferrer");
|
|
6362
|
+
const aim = () => link.setAttribute("href", feedbackUrl(VERSION, location.href));
|
|
6363
|
+
if (typeof location !== "undefined")
|
|
6364
|
+
aim();
|
|
6365
|
+
for (const type of ["click", "auxclick", "contextmenu"])
|
|
6366
|
+
link.addEventListener(type, aim);
|
|
6367
|
+
return rowBox({ main: link, glyph: icon("message-square"), title: "send feedback" }).box;
|
|
6368
|
+
}
|
|
6339
6369
|
function keepRow(resolve) {
|
|
6340
6370
|
const control = button("switch row-control", "");
|
|
6341
6371
|
control.setAttribute("role", "switch");
|
|
@@ -6494,6 +6524,7 @@ function createSettings(context) {
|
|
|
6494
6524
|
}).box);
|
|
6495
6525
|
keyViews.set(binding, { set: set2, back });
|
|
6496
6526
|
}
|
|
6527
|
+
keysView.append(feedbackRow());
|
|
6497
6528
|
let editingKeys = false;
|
|
6498
6529
|
let recording = null;
|
|
6499
6530
|
const { refuse, unrefuse, destroy: stopRefusing } = createRefusal(tips, said);
|
|
@@ -7607,6 +7638,8 @@ input[type="checkbox"]:focus-visible { outline: 1px solid var(--faint); outline-
|
|
|
7607
7638
|
.row-hint { padding: 0 var(--view-end) 4px calc(var(--view-start) + var(--col-step)); font-size: 10.5px; color: var(--faint); }
|
|
7608
7639
|
/* An action's key, at the end of its row, as quiet as the footer shows a key. */
|
|
7609
7640
|
.row-key { flex: none; align-self: center; font-size: 10px; line-height: 1.4; color: var(--faint); }
|
|
7641
|
+
.feedback { color: inherit; text-decoration: none; cursor: pointer; }
|
|
7642
|
+
.feedback:focus-visible { outline: 1px solid var(--faint); outline-offset: -1px; }
|
|
7610
7643
|
.row-control { flex: none; align-self: center; margin-left: auto; }
|
|
7611
7644
|
/* A row's small button inside its main, before what the main ends with,
|
|
7612
7645
|
takes no height of its own, so the row is as tall as any. */
|
|
@@ -9318,9 +9351,6 @@ function createPanel(options2 = {}) {
|
|
|
9318
9351
|
}
|
|
9319
9352
|
};
|
|
9320
9353
|
}
|
|
9321
|
-
|
|
9322
|
-
// src/version.ts
|
|
9323
|
-
var VERSION = "0.6.1";
|
|
9324
9354
|
// src/index.ts
|
|
9325
9355
|
var panel = null;
|
|
9326
9356
|
var stopKeys = null;
|
|
@@ -9614,7 +9644,7 @@ async function grab(elements, options2) {
|
|
|
9614
9644
|
const host = hosted("grab");
|
|
9615
9645
|
if (host)
|
|
9616
9646
|
return host(elements, options2);
|
|
9617
|
-
const loaded = await import("./index-
|
|
9647
|
+
const loaded = await import("./index-0mav2k60.js");
|
|
9618
9648
|
return loaded.grab(elements, options2);
|
|
9619
9649
|
}
|
|
9620
9650
|
function edits2() {
|
|
@@ -9626,7 +9656,7 @@ async function setEdits(list) {
|
|
|
9626
9656
|
return host(list);
|
|
9627
9657
|
if (!Array.isArray(list))
|
|
9628
9658
|
throw new TypeError("devknobs.setEdits takes a list of edits, as edits() gives them");
|
|
9629
|
-
const { replayEdits } = await import("./replay-
|
|
9659
|
+
const { replayEdits } = await import("./replay-39ssrcqp.js");
|
|
9630
9660
|
const { applied, skipped } = replayEdits(edits, list);
|
|
9631
9661
|
return { applied, skipped };
|
|
9632
9662
|
}
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
parseHtml,
|
|
11
11
|
rulesOf,
|
|
12
12
|
textEdit
|
|
13
|
-
} from "./react-
|
|
13
|
+
} from "./react-anqpcaqm.js";
|
|
14
14
|
import {
|
|
15
15
|
REASONS,
|
|
16
16
|
RISK,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
riskyAttribute,
|
|
19
19
|
riskyElement,
|
|
20
20
|
riskyNodes
|
|
21
|
-
} from "./react-
|
|
21
|
+
} from "./react-pvmjybgw.js";
|
|
22
22
|
import"./react-6fnxxs30.js";
|
|
23
23
|
import {
|
|
24
24
|
NEW_RULE_SHEET,
|
|
@@ -30,8 +30,8 @@ import {
|
|
|
30
30
|
ruleOf,
|
|
31
31
|
sheetIdOf
|
|
32
32
|
} from "./react-ethftdxp.js";
|
|
33
|
-
import"./react-
|
|
34
|
-
import"./react-
|
|
33
|
+
import"./react-ptamex0p.js";
|
|
34
|
+
import"./react-4ykd817s.js";
|
|
35
35
|
import"./react-wqn4sx0n.js";
|
|
36
36
|
import"./react-t2qnewz2.js";
|
|
37
37
|
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
parseHtml,
|
|
10
10
|
rulesOf,
|
|
11
11
|
textEdit
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-0yn3rnza.js";
|
|
13
13
|
import {
|
|
14
14
|
REASONS,
|
|
15
15
|
RISK,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
riskyAttribute,
|
|
18
18
|
riskyElement,
|
|
19
19
|
riskyNodes
|
|
20
|
-
} from "./index-
|
|
20
|
+
} from "./index-4192t60e.js";
|
|
21
21
|
import"./index-ftjdt358.js";
|
|
22
22
|
import {
|
|
23
23
|
NEW_RULE_SHEET,
|
|
@@ -29,8 +29,8 @@ import {
|
|
|
29
29
|
ruleOf,
|
|
30
30
|
sheetIdOf
|
|
31
31
|
} from "./index-zd6adby9.js";
|
|
32
|
-
import"./index-
|
|
33
|
-
import"./index-
|
|
32
|
+
import"./index-fp1h37b3.js";
|
|
33
|
+
import"./index-rdssc7sz.js";
|
|
34
34
|
import"./index-dzm8ywq0.js";
|
|
35
35
|
import"./index-5tv6sr74.js";
|
|
36
36
|
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
cookieText,
|
|
7
7
|
put,
|
|
8
8
|
storedPresets
|
|
9
|
-
} from "./react-
|
|
9
|
+
} from "./react-gkzn5n3v.js";
|
|
10
10
|
import {
|
|
11
11
|
copyText
|
|
12
12
|
} from "./react-h9w04skh.js";
|
|
@@ -31,12 +31,12 @@ import {
|
|
|
31
31
|
textArea,
|
|
32
32
|
textField,
|
|
33
33
|
toolbar
|
|
34
|
-
} from "./react-
|
|
35
|
-
import"./react-
|
|
34
|
+
} from "./react-ptamex0p.js";
|
|
35
|
+
import"./react-2381cr3w.js";
|
|
36
36
|
import"./react-ttj8f9qp.js";
|
|
37
37
|
import {
|
|
38
38
|
icon
|
|
39
|
-
} from "./react-
|
|
39
|
+
} from "./react-4ykd817s.js";
|
|
40
40
|
import {
|
|
41
41
|
stamped,
|
|
42
42
|
webStorage
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
cookieText,
|
|
6
6
|
put,
|
|
7
7
|
storedPresets
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-509g0pa8.js";
|
|
9
9
|
import {
|
|
10
10
|
copyText
|
|
11
11
|
} from "./index-ztnjefrh.js";
|
|
@@ -30,12 +30,12 @@ import {
|
|
|
30
30
|
textArea,
|
|
31
31
|
textField,
|
|
32
32
|
toolbar
|
|
33
|
-
} from "./index-
|
|
34
|
-
import"./index-
|
|
33
|
+
} from "./index-fp1h37b3.js";
|
|
34
|
+
import"./index-kpsrkzmf.js";
|
|
35
35
|
import"./index-7cb4x1vj.js";
|
|
36
36
|
import {
|
|
37
37
|
icon
|
|
38
|
-
} from "./index-
|
|
38
|
+
} from "./index-rdssc7sz.js";
|
|
39
39
|
import {
|
|
40
40
|
stamped,
|
|
41
41
|
webStorage
|
package/dist/ui/icons.d.ts
CHANGED
package/dist/ui/settings.d.ts
CHANGED
|
@@ -106,6 +106,13 @@ export interface KeepRow {
|
|
|
106
106
|
sync(): void;
|
|
107
107
|
destroy(): void;
|
|
108
108
|
}
|
|
109
|
+
/**
|
|
110
|
+
* Our feedback page for this copy of devknobs and the page it runs on. A copy
|
|
111
|
+
* run from source has no version to give.
|
|
112
|
+
*/
|
|
113
|
+
export declare function feedbackUrl(version: string, page: string): string;
|
|
114
|
+
/** The last row of the settings: a link that opens the feedback page in a new tab, and sends nothing itself. */
|
|
115
|
+
export declare function feedbackRow(): HTMLElement;
|
|
109
116
|
/**
|
|
110
117
|
* The switch that keeps the page's edits after a reload, as the keeper has
|
|
111
118
|
* it, and off to a click until the keeper knows what the page keeps.
|