@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.
Files changed (48) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +11 -5
  3. package/THIRD_PARTY_NOTICES.md +3 -3
  4. package/dist/cli.d.ts +95 -0
  5. package/dist/cli.js +527 -0
  6. package/dist/{context-amfyasb5.js → context-eawqn680.js} +1 -1
  7. package/dist/{context-svtr7vwt.js → context-vd2xep5t.js} +1 -1
  8. package/dist/edit/keep.d.ts +1 -1
  9. package/dist/{elementsview-s5vj51vh.js → elementsview-jg4edt86.js} +7 -7
  10. package/dist/{elementsview-swft4xar.js → elementsview-m33ejs4r.js} +7 -7
  11. package/dist/engine/pageshot.d.ts +25 -0
  12. package/dist/{framekit-q97zeg1d.js → framekit-40pzennw.js} +48 -26
  13. package/dist/{framekit-rjk9fs3v.js → framekit-r16k97n7.js} +48 -26
  14. package/dist/grab/fiber.d.ts +2 -0
  15. package/dist/{index-s252g4k2.js → index-0qkj2mgb.js} +4 -4
  16. package/dist/{index-whehz74d.js → index-2jc9dnta.js} +21 -1
  17. package/dist/{index-whbpf3kg.js → index-3nwycv3p.js} +4 -4
  18. package/dist/{index-pwqfmbqm.js → index-8d1yk9d2.js} +8 -8
  19. package/dist/{index-ajs4na3f.js → index-cb91vcka.js} +1 -1
  20. package/dist/{index-20bc9yrj.js → index-fjrrgd9h.js} +1 -1
  21. package/dist/{index-df35z48z.js → index-q53j8wg5.js} +2 -2
  22. package/dist/{index-yc2m7nce.js → index-s6fya8pm.js} +4 -4
  23. package/dist/{index-dxga6h10.js → index-tqq2ygpj.js} +2 -2
  24. package/dist/{index-69fvtkcm.js → index-v2v4rmpe.js} +3 -3
  25. package/dist/{index-1mstjadm.js → index-xs29b55n.js} +4 -1
  26. package/dist/{index-sy63y6r7.js → index-xxbb8y41.js} +4 -4
  27. package/dist/index.global.js +135 -118
  28. package/dist/index.js +63 -23
  29. package/dist/{react-msn10fjb.js → react-0gxs9aef.js} +3 -3
  30. package/dist/{react-2b7725je.js → react-3ev6rwqz.js} +2 -2
  31. package/dist/{react-k4pkm1p5.js → react-6ngtb6p9.js} +1 -1
  32. package/dist/{react-5ekfj7g3.js → react-8nmtt0ge.js} +2 -2
  33. package/dist/{react-y9gr8yt2.js → react-actmnkwp.js} +1 -1
  34. package/dist/{react-p1m2eadn.js → react-fq4551ks.js} +4 -4
  35. package/dist/{react-vbk58f9m.js → react-meve34wp.js} +21 -1
  36. package/dist/{react-nc8fzgmc.js → react-vvc4x9kq.js} +4 -4
  37. package/dist/{react-3mfz1x2a.js → react-yx3g9k55.js} +4 -1
  38. package/dist/{react-smtqyzx0.js → react-zp7fdw8e.js} +8 -8
  39. package/dist/react.js +63 -23
  40. package/dist/{replay-461gcdh1.js → replay-m5g8km9y.js} +4 -4
  41. package/dist/{replay-ehgxp9py.js → replay-pmesjfa3.js} +4 -4
  42. package/dist/{storageview-vtvt76ze.js → storageview-9a6zm47z.js} +8 -8
  43. package/dist/{storageview-yyd57vzw.js → storageview-x62v1c3j.js} +8 -8
  44. package/dist/ui/icons.d.ts +5 -2
  45. package/dist/ui/panel.d.ts +2 -0
  46. package/dist/ui/settings.d.ts +11 -1
  47. package/package.json +5 -2
  48. 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-df35z48z.js";
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-20bc9yrj.js";
21
+ } from "./index-fjrrgd9h.js";
22
22
  import {
23
23
  icon,
24
24
  isDevknobs,
25
25
  typesInField
26
- } from "./index-whehz74d.js";
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-yc2m7nce.js";
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-1mstjadm.js";
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-pwqfmbqm.js";
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-whehz74d.js";
44
+ } from "./index-2jc9dnta.js";
45
45
  import {
46
46
  RINGS,
47
47
  addStyle,