@vinena/knobs 0.7.1 → 0.7.2
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 +5 -0
- package/dist/{elementsview-mcg6d5zp.js → elementsview-1bar694x.js} +2 -2
- package/dist/{elementsview-mwr1s17z.js → elementsview-p2wc9b0s.js} +2 -2
- package/dist/engine/bandmedia.d.ts +119 -0
- package/dist/engine/browserui.d.ts +3 -1
- package/dist/engine/pageshot.d.ts +24 -4
- package/dist/engine/safaridraw.d.ts +24 -3
- package/dist/engine/underbar.d.ts +26 -7
- package/dist/{framekit-wyppj1se.js → framekit-n57ts9zt.js} +937 -70
- package/dist/{framekit-4v7nc3ea.js → framekit-wqp811a2.js} +937 -70
- package/dist/{index-bgzyc7rz.js → index-b8cnnbpr.js} +3 -3
- package/dist/{index-c1t6knbf.js → index-cfrnrg24.js} +3 -3
- package/dist/{index-82y8x8vv.js → index-j8hrzag1.js} +2 -2
- package/dist/{index-3s4v7gw5.js → index-pvknvvkw.js} +3 -3
- package/dist/{index-cqymjce4.js → index-qz04adp5.js} +3 -3
- package/dist/{index-a23nv5j4.js → index-t7a07nm9.js} +2 -2
- package/dist/index.global.js +183 -166
- package/dist/index.js +7 -7
- package/dist/{react-7tzwahsm.js → react-0tbd51s3.js} +2 -2
- package/dist/{react-ppyj3fg2.js → react-881wvm1z.js} +2 -2
- package/dist/{react-wzd3cfg8.js → react-pf7fc2f3.js} +3 -3
- package/dist/{react-tet7swk2.js → react-zj0dbpdg.js} +3 -3
- package/dist/react.js +7 -7
- package/dist/{storageview-2rvwk0v7.js → storageview-5tvmca8y.js} +3 -3
- package/dist/{storageview-6vq7nz02.js → storageview-ec52x60p.js} +3 -3
- package/package.json +2 -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-pvknvvkw.js";
|
|
16
16
|
import {
|
|
17
17
|
hushOnce
|
|
18
18
|
} from "./index-aymfvd8s.js";
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
showPane,
|
|
71
71
|
stopOnLoad,
|
|
72
72
|
viewHead
|
|
73
|
-
} from "./index-
|
|
73
|
+
} from "./index-j8hrzag1.js";
|
|
74
74
|
import {
|
|
75
75
|
actButton,
|
|
76
76
|
button,
|
|
@@ -144,7 +144,7 @@ import {
|
|
|
144
144
|
watchHinge,
|
|
145
145
|
watchPanel,
|
|
146
146
|
zoomKey
|
|
147
|
-
} from "./index-
|
|
147
|
+
} from "./index-t7a07nm9.js";
|
|
148
148
|
import {
|
|
149
149
|
MAT_COLORS,
|
|
150
150
|
MAT_COLOR_NAMES,
|
|
@@ -159,7 +159,7 @@ import {
|
|
|
159
159
|
runsUnderBars,
|
|
160
160
|
uaPreset,
|
|
161
161
|
userAgentOf
|
|
162
|
-
} from "./index-
|
|
162
|
+
} from "./index-b8cnnbpr.js";
|
|
163
163
|
import {
|
|
164
164
|
BINDING_ICONS,
|
|
165
165
|
KEYS_FIELD,
|
|
@@ -2662,7 +2662,7 @@ var PANE = { openPane, paneView, onPane, retitlePane, showPane };
|
|
|
2662
2662
|
function here(element) {
|
|
2663
2663
|
return element.isConnected && element.ownerDocument.defaultView !== null;
|
|
2664
2664
|
}
|
|
2665
|
-
function createInspector(context, load = () => import("./elementsview-
|
|
2665
|
+
function createInspector(context, load = () => import("./elementsview-p2wc9b0s.js").then(({ createElementsView }) => ({ createStylesView: createElementsView })), pane = PANE) {
|
|
2666
2666
|
const { inspect, tips, prefs } = context;
|
|
2667
2667
|
const listeners = new Set;
|
|
2668
2668
|
let view = null;
|
|
@@ -6352,7 +6352,7 @@ function isZero(duration) {
|
|
|
6352
6352
|
}
|
|
6353
6353
|
|
|
6354
6354
|
// src/version.ts
|
|
6355
|
-
var VERSION = "0.7.
|
|
6355
|
+
var VERSION = "0.7.2";
|
|
6356
6356
|
|
|
6357
6357
|
// src/ui/settings.ts
|
|
6358
6358
|
var NO_KEY = "not set";
|
|
@@ -9715,7 +9715,7 @@ async function grab(elements, options2) {
|
|
|
9715
9715
|
const host = hosted("grab");
|
|
9716
9716
|
if (host)
|
|
9717
9717
|
return host(elements, options2);
|
|
9718
|
-
const loaded = await import("./index-
|
|
9718
|
+
const loaded = await import("./index-cfrnrg24.js");
|
|
9719
9719
|
return loaded.grab(elements, options2);
|
|
9720
9720
|
}
|
|
9721
9721
|
function edits2() {
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "./react-rxw73n04.js";
|
|
9
9
|
import {
|
|
10
10
|
getState
|
|
11
|
-
} from "./react-
|
|
11
|
+
} from "./react-881wvm1z.js";
|
|
12
12
|
import {
|
|
13
13
|
icon
|
|
14
14
|
} from "./react-hdneb4v3.js";
|
|
@@ -213,7 +213,7 @@ function createPane(context) {
|
|
|
213
213
|
// src/ui/storageaction.ts
|
|
214
214
|
var STORAGE_VIEW = "storage";
|
|
215
215
|
function load() {
|
|
216
|
-
return import("./storageview-
|
|
216
|
+
return import("./storageview-5tvmca8y.js").then((loaded) => loaded.storageView({
|
|
217
217
|
visible: () => getState().panel.open && !document.hidden
|
|
218
218
|
}));
|
|
219
219
|
}
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
resume,
|
|
24
24
|
screenSizeOf,
|
|
25
25
|
uaPreset
|
|
26
|
-
} from "./react-
|
|
26
|
+
} from "./react-zj0dbpdg.js";
|
|
27
27
|
import {
|
|
28
28
|
composedParent,
|
|
29
29
|
isDevknobs
|
|
@@ -1788,7 +1788,7 @@ function pause(on) {
|
|
|
1788
1788
|
|
|
1789
1789
|
// src/engine/frames.ts
|
|
1790
1790
|
var kit = null;
|
|
1791
|
-
var load2 = () => import("./framekit-
|
|
1791
|
+
var load2 = () => import("./framekit-n57ts9zt.js");
|
|
1792
1792
|
var loading = null;
|
|
1793
1793
|
var down = false;
|
|
1794
1794
|
var waiting = [];
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
frameWindow,
|
|
7
7
|
subscribe
|
|
8
|
-
} from "./react-
|
|
8
|
+
} from "./react-881wvm1z.js";
|
|
9
9
|
import {
|
|
10
10
|
inField,
|
|
11
11
|
isFunctionKey,
|
|
@@ -166,7 +166,7 @@ function systemScheme() {
|
|
|
166
166
|
host.remove();
|
|
167
167
|
return dark ? "dark" : "light";
|
|
168
168
|
}
|
|
169
|
-
function createGrab(options = {}, loadMode = () => import("./index-
|
|
169
|
+
function createGrab(options = {}, loadMode = () => import("./index-qz04adp5.js")) {
|
|
170
170
|
const keyNow = options.key ?? defaultGrabKey;
|
|
171
171
|
const { purpose } = options;
|
|
172
172
|
const channel = purpose?.channel ?? "grab";
|
|
@@ -375,7 +375,7 @@ function held(view) {
|
|
|
375
375
|
return null;
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
|
-
function createInspect(options = {}, load = () => import("./index-
|
|
378
|
+
function createInspect(options = {}, load = () => import("./index-qz04adp5.js"), frameOf = frameWindow) {
|
|
379
379
|
const inFrame = isDevknobsFrame();
|
|
380
380
|
const listeners = new Set;
|
|
381
381
|
let outliner = null;
|
|
@@ -614,14 +614,14 @@ function domainPill(x, top2, look = SAFARI_PILL) {
|
|
|
614
614
|
text: { x, y: top2 + height / 2, size, pad }
|
|
615
615
|
};
|
|
616
616
|
}
|
|
617
|
-
function address(kind, box, page, reload) {
|
|
617
|
+
function address(kind, box, page, reload, clear) {
|
|
618
618
|
const y = box.y + box.height / 2;
|
|
619
619
|
return {
|
|
620
620
|
...capsule(kind, box, [
|
|
621
621
|
mark("page", box.x + page, y),
|
|
622
622
|
mark("reload", box.x + box.width - reload, y)
|
|
623
623
|
]),
|
|
624
|
-
text: { x: box.x + box.width / 2, y, size: SAFARI_TEXT.field }
|
|
624
|
+
text: { x: box.x + box.width / 2, y, size: SAFARI_TEXT.field, ...clear === undefined ? {} : { clear } }
|
|
625
625
|
};
|
|
626
626
|
}
|
|
627
627
|
function acrossRow(left2, right2, y) {
|
|
@@ -675,7 +675,7 @@ function duoCover(bars, W, H, orientation, minimized) {
|
|
|
675
675
|
const [back = 0, reader = 0] = c.buttons;
|
|
676
676
|
const low = H - c.gap - c.capsule;
|
|
677
677
|
bars.shapes = [
|
|
678
|
-
address("glass", rect(c.inset, H - c.gap - 48, page - 2 * c.inset, 48), 24, 24),
|
|
678
|
+
address("glass", rect(c.inset, H - c.gap - 48, page - 2 * c.inset, 48), 24, 24, 25),
|
|
679
679
|
button(back, "back"),
|
|
680
680
|
button(reader, "bookmarks"),
|
|
681
681
|
capsule("glass", rect(x - 24, low, 48, c.capsule), [mark("plus", x, low + 24), mark("tabs", x, H - c.gap - 24)])
|
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-pf7fc2f3.js";
|
|
17
17
|
import {
|
|
18
18
|
hushOnce
|
|
19
19
|
} from "./react-1gqwa2yw.js";
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
showPane,
|
|
72
72
|
stopOnLoad,
|
|
73
73
|
viewHead
|
|
74
|
-
} from "./react-
|
|
74
|
+
} from "./react-0tbd51s3.js";
|
|
75
75
|
import {
|
|
76
76
|
actButton,
|
|
77
77
|
button,
|
|
@@ -145,7 +145,7 @@ import {
|
|
|
145
145
|
watchHinge,
|
|
146
146
|
watchPanel,
|
|
147
147
|
zoomKey
|
|
148
|
-
} from "./react-
|
|
148
|
+
} from "./react-881wvm1z.js";
|
|
149
149
|
import {
|
|
150
150
|
MAT_COLORS,
|
|
151
151
|
MAT_COLOR_NAMES,
|
|
@@ -160,7 +160,7 @@ import {
|
|
|
160
160
|
runsUnderBars,
|
|
161
161
|
uaPreset,
|
|
162
162
|
userAgentOf
|
|
163
|
-
} from "./react-
|
|
163
|
+
} from "./react-zj0dbpdg.js";
|
|
164
164
|
import {
|
|
165
165
|
BINDING_ICONS,
|
|
166
166
|
KEYS_FIELD,
|
|
@@ -2665,7 +2665,7 @@ var PANE = { openPane, paneView, onPane, retitlePane, showPane };
|
|
|
2665
2665
|
function here(element) {
|
|
2666
2666
|
return element.isConnected && element.ownerDocument.defaultView !== null;
|
|
2667
2667
|
}
|
|
2668
|
-
function createInspector(context, load = () => import("./elementsview-
|
|
2668
|
+
function createInspector(context, load = () => import("./elementsview-1bar694x.js").then(({ createElementsView }) => ({ createStylesView: createElementsView })), pane = PANE) {
|
|
2669
2669
|
const { inspect, tips, prefs } = context;
|
|
2670
2670
|
const listeners = new Set;
|
|
2671
2671
|
let view = null;
|
|
@@ -6355,7 +6355,7 @@ function isZero(duration) {
|
|
|
6355
6355
|
}
|
|
6356
6356
|
|
|
6357
6357
|
// src/version.ts
|
|
6358
|
-
var VERSION = "0.7.
|
|
6358
|
+
var VERSION = "0.7.2";
|
|
6359
6359
|
|
|
6360
6360
|
// src/ui/settings.ts
|
|
6361
6361
|
var NO_KEY = "not set";
|
|
@@ -9709,7 +9709,7 @@ async function grab(elements, options2) {
|
|
|
9709
9709
|
const host = hosted("grab");
|
|
9710
9710
|
if (host)
|
|
9711
9711
|
return host(elements, options2);
|
|
9712
|
-
const loaded = await import("./index-
|
|
9712
|
+
const loaded = await import("./index-qz04adp5.js");
|
|
9713
9713
|
return loaded.grab(elements, options2);
|
|
9714
9714
|
}
|
|
9715
9715
|
function edits2() {
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
cookieText,
|
|
7
7
|
put,
|
|
8
8
|
storedPresets
|
|
9
|
-
} from "./react-
|
|
9
|
+
} from "./react-0tbd51s3.js";
|
|
10
10
|
import {
|
|
11
11
|
copyText
|
|
12
12
|
} from "./react-j87bdhhe.js";
|
|
@@ -32,8 +32,8 @@ import {
|
|
|
32
32
|
textField,
|
|
33
33
|
toolbar
|
|
34
34
|
} from "./react-rxw73n04.js";
|
|
35
|
-
import"./react-
|
|
36
|
-
import"./react-
|
|
35
|
+
import"./react-881wvm1z.js";
|
|
36
|
+
import"./react-zj0dbpdg.js";
|
|
37
37
|
import {
|
|
38
38
|
icon
|
|
39
39
|
} from "./react-hdneb4v3.js";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
cookieText,
|
|
6
6
|
put,
|
|
7
7
|
storedPresets
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-j8hrzag1.js";
|
|
9
9
|
import {
|
|
10
10
|
copyText
|
|
11
11
|
} from "./index-585hs9tp.js";
|
|
@@ -31,8 +31,8 @@ import {
|
|
|
31
31
|
textField,
|
|
32
32
|
toolbar
|
|
33
33
|
} from "./index-vmz7htwn.js";
|
|
34
|
-
import"./index-
|
|
35
|
-
import"./index-
|
|
34
|
+
import"./index-t7a07nm9.js";
|
|
35
|
+
import"./index-b8cnnbpr.js";
|
|
36
36
|
import {
|
|
37
37
|
icon
|
|
38
38
|
} from "./index-vhda420r.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vinena/knobs",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Mert Düzgün",
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
"unlink": "bun scripts/link.ts unlink",
|
|
47
47
|
"test": "bun test",
|
|
48
48
|
"toplayer": "node scripts/toplayer.ts",
|
|
49
|
+
"underbar-oracle": "node scripts/underbar-oracle.ts",
|
|
49
50
|
"typecheck": "tsc --noEmit"
|
|
50
51
|
},
|
|
51
52
|
"peerDependencies": {
|