@vinena/knobs 0.6.5 → 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 +13 -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/{context-amfyasb5.js → context-eawqn680.js} +1 -1
- package/dist/{context-svtr7vwt.js → context-vd2xep5t.js} +1 -1
- package/dist/edit/keep.d.ts +1 -1
- package/dist/{elementsview-s5vj51vh.js → elementsview-jg4edt86.js} +7 -7
- package/dist/{elementsview-swft4xar.js → elementsview-m33ejs4r.js} +7 -7
- package/dist/engine/pageshot.d.ts +25 -0
- package/dist/{framekit-q97zeg1d.js → framekit-40pzennw.js} +48 -26
- package/dist/{framekit-rjk9fs3v.js → framekit-r16k97n7.js} +48 -26
- package/dist/grab/fiber.d.ts +2 -0
- package/dist/{index-s252g4k2.js → index-0qkj2mgb.js} +4 -4
- package/dist/{index-whehz74d.js → index-2jc9dnta.js} +21 -1
- package/dist/{index-whbpf3kg.js → index-3nwycv3p.js} +4 -4
- package/dist/{index-pwqfmbqm.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-yc2m7nce.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-1mstjadm.js → index-xs29b55n.js} +4 -1
- package/dist/{index-sy63y6r7.js → index-xxbb8y41.js} +4 -4
- package/dist/index.global.js +135 -118
- 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-p1m2eadn.js → react-fq4551ks.js} +4 -4
- package/dist/{react-vbk58f9m.js → react-meve34wp.js} +21 -1
- package/dist/{react-nc8fzgmc.js → react-vvc4x9kq.js} +4 -4
- package/dist/{react-3mfz1x2a.js → react-yx3g9k55.js} +4 -1
- package/dist/{react-smtqyzx0.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-vtvt76ze.js → storageview-9a6zm47z.js} +8 -8
- package/dist/{storageview-yyd57vzw.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
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
riskyElement,
|
|
6
6
|
specificity,
|
|
7
7
|
splitList
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-q53j8wg5.js";
|
|
9
9
|
import {
|
|
10
10
|
middle
|
|
11
11
|
} from "./index-za4ppxay.js";
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
import {
|
|
19
19
|
actButton,
|
|
20
20
|
el
|
|
21
|
-
} from "./index-
|
|
21
|
+
} from "./index-fjrrgd9h.js";
|
|
22
22
|
import {
|
|
23
23
|
icon,
|
|
24
24
|
isDevknobs,
|
|
25
25
|
typesInField
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-2jc9dnta.js";
|
|
27
27
|
import {
|
|
28
28
|
addStyle,
|
|
29
29
|
authoredQuery,
|
|
@@ -89,13 +89,16 @@ function listKey(fiber) {
|
|
|
89
89
|
}
|
|
90
90
|
return null;
|
|
91
91
|
}
|
|
92
|
+
function isMinifiedName(name) {
|
|
93
|
+
return name.length <= 2 && name[0] !== name[0]?.toUpperCase();
|
|
94
|
+
}
|
|
92
95
|
function componentNames(fiber, max, accept) {
|
|
93
96
|
const names = [];
|
|
94
97
|
for (let current = fiber;current && names.length < max; current = current.return) {
|
|
95
98
|
if (!isComposite(current))
|
|
96
99
|
continue;
|
|
97
100
|
const name = displayName(current.type);
|
|
98
|
-
if (name && accept(name))
|
|
101
|
+
if (name && !isMinifiedName(name) && accept(name))
|
|
99
102
|
names.push(name);
|
|
100
103
|
}
|
|
101
104
|
return names;
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
grabColor,
|
|
7
7
|
isCLike,
|
|
8
8
|
isElement
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-s6fya8pm.js";
|
|
10
10
|
import {
|
|
11
11
|
componentOf,
|
|
12
12
|
escapeText,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
grabEntry,
|
|
15
15
|
joinEntries,
|
|
16
16
|
quickEntry
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-xs29b55n.js";
|
|
18
18
|
import"./index-aymfvd8s.js";
|
|
19
19
|
import {
|
|
20
20
|
shorthand,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
holdInTopLayer,
|
|
34
34
|
pause,
|
|
35
35
|
subscribe
|
|
36
|
-
} from "./index-
|
|
36
|
+
} from "./index-8d1yk9d2.js";
|
|
37
37
|
import"./index-s6yzsvs4.js";
|
|
38
38
|
import {
|
|
39
39
|
composedParent,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
icon,
|
|
42
42
|
isDevknobs,
|
|
43
43
|
isGrabbable
|
|
44
|
-
} from "./index-
|
|
44
|
+
} from "./index-2jc9dnta.js";
|
|
45
45
|
import {
|
|
46
46
|
RINGS,
|
|
47
47
|
addStyle,
|