@vinena/knobs 0.6.5 → 0.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/dist/{context-amfyasb5.js → context-eawqn680.js} +1 -1
- package/dist/{context-svtr7vwt.js → context-vd2xep5t.js} +1 -1
- package/dist/{elementsview-s5vj51vh.js → elementsview-dpm0xmb2.js} +2 -2
- package/dist/{elementsview-swft4xar.js → elementsview-n26sp8m7.js} +2 -2
- package/dist/engine/pageshot.d.ts +25 -0
- package/dist/{framekit-q97zeg1d.js → framekit-0as9t6a7.js} +45 -23
- package/dist/{framekit-rjk9fs3v.js → framekit-dknq662p.js} +45 -23
- package/dist/grab/fiber.d.ts +2 -0
- package/dist/{index-yc2m7nce.js → index-7vb2ct4s.js} +3 -3
- package/dist/{index-whbpf3kg.js → index-7w0nm76e.js} +3 -3
- package/dist/{index-s252g4k2.js → index-r1rdj05c.js} +2 -2
- package/dist/{index-sy63y6r7.js → index-t4wrs2a3.js} +3 -3
- package/dist/{index-pwqfmbqm.js → index-x3sxssbs.js} +1 -1
- package/dist/{index-1mstjadm.js → index-xs29b55n.js} +4 -1
- package/dist/index.global.js +118 -118
- package/dist/index.js +6 -6
- package/dist/{react-nc8fzgmc.js → react-10r2rczp.js} +2 -2
- package/dist/{react-smtqyzx0.js → react-a1r0nr0g.js} +1 -1
- package/dist/{react-p1m2eadn.js → react-v08ywmtw.js} +3 -3
- package/dist/{react-3mfz1x2a.js → react-yx3g9k55.js} +4 -1
- package/dist/react.js +6 -6
- package/dist/{storageview-vtvt76ze.js → storageview-5p1y11b5.js} +2 -2
- package/dist/{storageview-yyd57vzw.js → storageview-kxzpnfvr.js} +2 -2
- 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-7vb2ct4s.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-r1rdj05c.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-x3sxssbs.js";
|
|
148
148
|
import {
|
|
149
149
|
MAT_COLORS,
|
|
150
150
|
MAT_COLOR_NAMES,
|
|
@@ -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-dpm0xmb2.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;
|
|
@@ -6325,7 +6325,7 @@ function isZero(duration) {
|
|
|
6325
6325
|
}
|
|
6326
6326
|
|
|
6327
6327
|
// src/version.ts
|
|
6328
|
-
var VERSION = "0.6.
|
|
6328
|
+
var VERSION = "0.6.6";
|
|
6329
6329
|
|
|
6330
6330
|
// src/ui/settings.ts
|
|
6331
6331
|
var NO_KEY = "not set";
|
|
@@ -9650,7 +9650,7 @@ async function grab(elements, options2) {
|
|
|
9650
9650
|
const host = hosted("grab");
|
|
9651
9651
|
if (host)
|
|
9652
9652
|
return host(elements, options2);
|
|
9653
|
-
const loaded = await import("./index-
|
|
9653
|
+
const loaded = await import("./index-t4wrs2a3.js");
|
|
9654
9654
|
return loaded.grab(elements, options2);
|
|
9655
9655
|
}
|
|
9656
9656
|
function edits2() {
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "./react-y9gr8yt2.js";
|
|
9
9
|
import {
|
|
10
10
|
getState
|
|
11
|
-
} from "./react-
|
|
11
|
+
} from "./react-a1r0nr0g.js";
|
|
12
12
|
import {
|
|
13
13
|
icon
|
|
14
14
|
} from "./react-vbk58f9m.js";
|
|
@@ -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-5p1y11b5.js").then((loaded) => loaded.storageView({
|
|
214
214
|
visible: () => getState().panel.open && !document.hidden
|
|
215
215
|
}));
|
|
216
216
|
}
|
|
@@ -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-dknq662p.js");
|
|
1780
1780
|
var loading = null;
|
|
1781
1781
|
var down = false;
|
|
1782
1782
|
var waiting = [];
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
frameWindow,
|
|
7
7
|
subscribe
|
|
8
|
-
} from "./react-
|
|
8
|
+
} from "./react-a1r0nr0g.js";
|
|
9
9
|
import {
|
|
10
10
|
inField,
|
|
11
11
|
isFunctionKey,
|
|
@@ -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-7w0nm76e.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-7w0nm76e.js"), frameOf = frameWindow) {
|
|
378
378
|
const inFrame = isDevknobsFrame();
|
|
379
379
|
const listeners = new Set;
|
|
380
380
|
let outliner = null;
|
|
@@ -90,13 +90,16 @@ function listKey(fiber) {
|
|
|
90
90
|
}
|
|
91
91
|
return null;
|
|
92
92
|
}
|
|
93
|
+
function isMinifiedName(name) {
|
|
94
|
+
return name.length <= 2 && name[0] !== name[0]?.toUpperCase();
|
|
95
|
+
}
|
|
93
96
|
function componentNames(fiber, max, accept) {
|
|
94
97
|
const names = [];
|
|
95
98
|
for (let current = fiber;current && names.length < max; current = current.return) {
|
|
96
99
|
if (!isComposite(current))
|
|
97
100
|
continue;
|
|
98
101
|
const name = displayName(current.type);
|
|
99
|
-
if (name && accept(name))
|
|
102
|
+
if (name && !isMinifiedName(name) && accept(name))
|
|
100
103
|
names.push(name);
|
|
101
104
|
}
|
|
102
105
|
return names;
|
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-v08ywmtw.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-10r2rczp.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-a1r0nr0g.js";
|
|
149
149
|
import {
|
|
150
150
|
MAT_COLORS,
|
|
151
151
|
MAT_COLOR_NAMES,
|
|
@@ -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-n26sp8m7.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;
|
|
@@ -6328,7 +6328,7 @@ function isZero(duration) {
|
|
|
6328
6328
|
}
|
|
6329
6329
|
|
|
6330
6330
|
// src/version.ts
|
|
6331
|
-
var VERSION = "0.6.
|
|
6331
|
+
var VERSION = "0.6.6";
|
|
6332
6332
|
|
|
6333
6333
|
// src/ui/settings.ts
|
|
6334
6334
|
var NO_KEY = "not set";
|
|
@@ -9644,7 +9644,7 @@ async function grab(elements, options2) {
|
|
|
9644
9644
|
const host = hosted("grab");
|
|
9645
9645
|
if (host)
|
|
9646
9646
|
return host(elements, options2);
|
|
9647
|
-
const loaded = await import("./index-
|
|
9647
|
+
const loaded = await import("./index-7w0nm76e.js");
|
|
9648
9648
|
return loaded.grab(elements, options2);
|
|
9649
9649
|
}
|
|
9650
9650
|
function edits2() {
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
cookieText,
|
|
7
7
|
put,
|
|
8
8
|
storedPresets
|
|
9
|
-
} from "./react-
|
|
9
|
+
} from "./react-10r2rczp.js";
|
|
10
10
|
import {
|
|
11
11
|
copyText
|
|
12
12
|
} from "./react-h9w04skh.js";
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
textField,
|
|
33
33
|
toolbar
|
|
34
34
|
} from "./react-y9gr8yt2.js";
|
|
35
|
-
import"./react-
|
|
35
|
+
import"./react-a1r0nr0g.js";
|
|
36
36
|
import"./react-5h7pxnax.js";
|
|
37
37
|
import {
|
|
38
38
|
icon
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
cookieText,
|
|
6
6
|
put,
|
|
7
7
|
storedPresets
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-r1rdj05c.js";
|
|
9
9
|
import {
|
|
10
10
|
copyText
|
|
11
11
|
} from "./index-ztnjefrh.js";
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
textField,
|
|
32
32
|
toolbar
|
|
33
33
|
} from "./index-20bc9yrj.js";
|
|
34
|
-
import"./index-
|
|
34
|
+
import"./index-x3sxssbs.js";
|
|
35
35
|
import"./index-s6yzsvs4.js";
|
|
36
36
|
import {
|
|
37
37
|
icon
|