@vinena/knobs 0.6.4 → 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.
Files changed (53) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/{context-amfyasb5.js → context-eawqn680.js} +1 -1
  3. package/dist/{context-svtr7vwt.js → context-vd2xep5t.js} +1 -1
  4. package/dist/early.global.js +5 -5
  5. package/dist/{elementsview-05qybwpn.js → elementsview-dpm0xmb2.js} +12 -12
  6. package/dist/{elementsview-gjaqje2k.js → elementsview-n26sp8m7.js} +12 -12
  7. package/dist/engine/media.d.ts +3 -2
  8. package/dist/engine/pageshot.d.ts +25 -0
  9. package/dist/engine/shotmedia.d.ts +50 -0
  10. package/dist/{framekit-3bmkm34m.js → framekit-0as9t6a7.js} +194 -32
  11. package/dist/{framekit-h0jrc5gs.js → framekit-dknq662p.js} +194 -32
  12. package/dist/grab/fiber.d.ts +2 -0
  13. package/dist/grab/overlay.d.ts +10 -1
  14. package/dist/{index-fp1h37b3.js → index-20bc9yrj.js} +1 -1
  15. package/dist/{index-0yn3rnza.js → index-69fvtkcm.js} +6 -6
  16. package/dist/{index-h93t2tc5.js → index-7vb2ct4s.js} +6 -6
  17. package/dist/{index-0mav2k60.js → index-7w0nm76e.js} +10 -10
  18. package/dist/{index-zd6adby9.js → index-a8ffw5ft.js} +1 -1
  19. package/dist/{index-gm51cthv.js → index-ajs4na3f.js} +1 -1
  20. package/dist/{index-4192t60e.js → index-df35z48z.js} +2 -2
  21. package/dist/{index-6xsvcjnc.js → index-dxga6h10.js} +4 -4
  22. package/dist/{index-dzm8ywq0.js → index-jfv7vavj.js} +3 -20
  23. package/dist/{index-509g0pa8.js → index-r1rdj05c.js} +5 -5
  24. package/dist/{index-7cb4x1vj.js → index-s6yzsvs4.js} +1 -1
  25. package/dist/{index-aj1z83rt.js → index-t4wrs2a3.js} +10 -10
  26. package/dist/{index-rdssc7sz.js → index-whehz74d.js} +1 -1
  27. package/dist/{index-kpsrkzmf.js → index-x3sxssbs.js} +4 -4
  28. package/dist/{index-1mstjadm.js → index-xs29b55n.js} +4 -1
  29. package/dist/{index-xh39jtkq.js → index-ymqm185m.js} +1 -1
  30. package/dist/{index-ftjdt358.js → index-za4ppxay.js} +1 -1
  31. package/dist/index.global.js +125 -119
  32. package/dist/index.js +15 -15
  33. package/dist/{react-wqn4sx0n.js → react-0r5418av.js} +3 -20
  34. package/dist/{react-gkzn5n3v.js → react-10r2rczp.js} +5 -5
  35. package/dist/{react-r3zf2djn.js → react-2b7725je.js} +4 -4
  36. package/dist/{react-ethftdxp.js → react-4phtr2nd.js} +1 -1
  37. package/dist/{react-pvmjybgw.js → react-5ekfj7g3.js} +2 -2
  38. package/dist/{react-ttj8f9qp.js → react-5h7pxnax.js} +1 -1
  39. package/dist/{react-6fnxxs30.js → react-73reavv4.js} +1 -1
  40. package/dist/{react-2381cr3w.js → react-a1r0nr0g.js} +4 -4
  41. package/dist/{react-me102s1a.js → react-k4pkm1p5.js} +1 -1
  42. package/dist/{react-anqpcaqm.js → react-msn10fjb.js} +6 -6
  43. package/dist/{react-x1ndxf29.js → react-v08ywmtw.js} +6 -6
  44. package/dist/{react-4ykd817s.js → react-vbk58f9m.js} +1 -1
  45. package/dist/{react-4rbjw9af.js → react-wtgvkf6g.js} +1 -1
  46. package/dist/{react-ptamex0p.js → react-y9gr8yt2.js} +1 -1
  47. package/dist/{react-3mfz1x2a.js → react-yx3g9k55.js} +4 -1
  48. package/dist/react.js +15 -15
  49. package/dist/{replay-39ssrcqp.js → replay-461gcdh1.js} +7 -7
  50. package/dist/{replay-xacjqqt5.js → replay-ehgxp9py.js} +7 -7
  51. package/dist/{storageview-3gnncmmv.js → storageview-5p1y11b5.js} +6 -6
  52. package/dist/{storageview-dwsnvz36.js → storageview-kxzpnfvr.js} +6 -6
  53. package/package.json +1 -1
@@ -2180,8 +2180,7 @@ var SYSTEM_MEDIA = {
2180
2180
  touch: false
2181
2181
  };
2182
2182
  var TRUE_TOKEN = "(min-width: 0px)";
2183
- var TRUE_QUERY = "all";
2184
- var FALSE_QUERY = "not all";
2183
+ var FALSE_TOKEN = "(not (min-width: 0px))";
2185
2184
  var FEATURE_OF = {
2186
2185
  scheme: "prefers-color-scheme",
2187
2186
  motion: "prefers-reduced-motion",
@@ -2235,24 +2234,8 @@ function splitQueryList(text2) {
2235
2234
  parts.push(text2.slice(start));
2236
2235
  return parts.map((part2) => part2.trim()).filter((part2) => part2.length > 0);
2237
2236
  }
2238
- function collapse(query, found, matched, rewritten) {
2239
- if (!found)
2240
- return query;
2241
- const negated = /^not\s/i.test(query);
2242
- if (negated ? matched : !matched)
2243
- return FALSE_QUERY;
2244
- return negated ? TRUE_QUERY : rewritten;
2245
- }
2246
2237
  function rewriteQuery(query, feature, value) {
2247
- let found = false;
2248
- let matched = true;
2249
- const rewritten = query.replace(featurePattern(feature), (_whole, queryValue) => {
2250
- found = true;
2251
- if (!featureMatches(queryValue, value))
2252
- matched = false;
2253
- return TRUE_TOKEN;
2254
- });
2255
- return collapse(query, found, matched, rewritten);
2238
+ return query.replace(featurePattern(feature), (_whole, queryValue) => featureMatches(queryValue, value) ? TRUE_TOKEN : FALSE_TOKEN);
2256
2239
  }
2257
2240
  function rewriteMediaText(text2, feature, value) {
2258
2241
  if (value === "system")
@@ -2726,4 +2709,4 @@ function removeStyle(name, doc = document) {
2726
2709
  findStyle(name, doc)?.remove();
2727
2710
  }
2728
2711
 
2729
- export { CLOCK_SPEED_MIN, CLOCK_SPEED_MAX, CLOCK_PRESETS, NativeDate, realNow, setClock, clockOn, now, wrapDate, NOW_READERS, temporalNow, readNow, takeOver, RINGS, SIDES, pxOf, boxModel, contentSize, hasBox, ringQuads, oneQuad, isPlain, alignQuads, ringPaths, luminance, parseColor, isCustomColor, toHex, parseHex, readColor, inkOn, POSTURES, openOf, DEVICES, deviceOf, formOf, formId, screenOf, hasTouch, turn, versionOf, newer, stamped, FRESH_ATTRIBUTE, fresh, webStorage, loads, carried, ownReload, GEO_PRESETS, resolveGeo, apply, reset, ZOOM_PRESETS, ZOOM_MIN, ZOOM_MAX, percent, stepZoom, wheelZoom, anchorScroll, DEFAULT_PINNED, DEFAULT_STATE, SCHEMES, MOTIONS, CONTRASTS, TRANSPARENCIES, DIRS, GEO_ERRORS, CLOCK_MODES, ONLINES, CONNECTIONS, SAVE_DATAS, BARS, BROWSERS, ORIENTATIONS, EDGES, SIDES2 as SIDES1, DEV_ICONS, VISIONS, GRAB_COLORS, resetState, merge, load, save, keepPlace, FRAME_ATTRIBUTE, FRAME_NAME, SIZE_MIN, SIZE_MAX, DPR_MIN, DPR_MAX, isDevknobsFrame, nativeScheme, handsSchemeDown, UNFRAMED, EXITED, knobFrame, needsFrame, plainFrame, frameForced, framed, readMessage, leaveFor, post, systemMedia, setSystemMedia, watchSystemMedia, baseMatchMedia, still, ownInline, TEXT_MIN, TEXT_MAX, apply2 as apply1, reset2 as reset1, rewriteMediaText, authoredQuery, coarse, apply3 as apply2, destroy, isDocument, styleNode, isOwnSheet, addStyle, switchedSheet, ensureStyle, removeStyle };
2712
+ export { CLOCK_SPEED_MIN, CLOCK_SPEED_MAX, CLOCK_PRESETS, NativeDate, realNow, setClock, clockOn, now, wrapDate, NOW_READERS, temporalNow, readNow, takeOver, RINGS, SIDES, pxOf, boxModel, contentSize, hasBox, ringQuads, oneQuad, isPlain, alignQuads, ringPaths, luminance, parseColor, isCustomColor, toHex, parseHex, readColor, inkOn, POSTURES, openOf, DEVICES, deviceOf, formOf, formId, screenOf, hasTouch, turn, versionOf, newer, stamped, FRESH_ATTRIBUTE, fresh, webStorage, loads, carried, ownReload, GEO_PRESETS, resolveGeo, apply, reset, ZOOM_PRESETS, ZOOM_MIN, ZOOM_MAX, percent, stepZoom, wheelZoom, anchorScroll, DEFAULT_PINNED, DEFAULT_STATE, SCHEMES, MOTIONS, CONTRASTS, TRANSPARENCIES, DIRS, GEO_ERRORS, CLOCK_MODES, ONLINES, CONNECTIONS, SAVE_DATAS, BARS, BROWSERS, ORIENTATIONS, EDGES, SIDES2 as SIDES1, DEV_ICONS, VISIONS, GRAB_COLORS, resetState, merge, load, save, keepPlace, FRAME_ATTRIBUTE, FRAME_NAME, SIZE_MIN, SIZE_MAX, DPR_MIN, DPR_MAX, isDevknobsFrame, nativeScheme, handsSchemeDown, UNFRAMED, EXITED, knobFrame, needsFrame, plainFrame, frameForced, framed, readMessage, leaveFor, post, systemMedia, setSystemMedia, watchSystemMedia, baseMatchMedia, still, ownInline, TEXT_MIN, TEXT_MAX, apply2 as apply1, reset2 as reset1, rewriteMediaText, mentionsFeature, authoredQuery, walkRules, coarse, apply3 as apply2, destroy, isDocument, styleNode, isOwnSheet, addStyle, switchedSheet, ensureStyle, removeStyle };
@@ -4,18 +4,18 @@ import {
4
4
  lay,
5
5
  rowBox,
6
6
  rowButton
7
- } from "./index-fp1h37b3.js";
7
+ } from "./index-20bc9yrj.js";
8
8
  import {
9
9
  getState
10
- } from "./index-kpsrkzmf.js";
10
+ } from "./index-x3sxssbs.js";
11
11
  import {
12
12
  icon
13
- } from "./index-rdssc7sz.js";
13
+ } from "./index-whehz74d.js";
14
14
  import {
15
15
  isDevknobsFrame,
16
16
  newer,
17
17
  webStorage
18
- } from "./index-dzm8ywq0.js";
18
+ } from "./index-jfv7vavj.js";
19
19
  import {
20
20
  __require
21
21
  } from "./index-5tv6sr74.js";
@@ -324,7 +324,7 @@ function createPane(context) {
324
324
  // src/ui/storageaction.ts
325
325
  var STORAGE_VIEW = "storage";
326
326
  function load() {
327
- return import("./storageview-dwsnvz36.js").then((loaded) => loaded.storageView({
327
+ return import("./storageview-kxzpnfvr.js").then((loaded) => loaded.storageView({
328
328
  visible: () => getState().panel.open && !document.hidden
329
329
  }));
330
330
  }
@@ -15,7 +15,7 @@ import {
15
15
  stamped,
16
16
  turn,
17
17
  webStorage
18
- } from "./index-dzm8ywq0.js";
18
+ } from "./index-jfv7vavj.js";
19
19
 
20
20
  // src/engine/ua.ts
21
21
  var CHROME = "154.0.8037.98";
@@ -6,7 +6,7 @@ import {
6
6
  grabColor,
7
7
  isCLike,
8
8
  isElement
9
- } from "./index-h93t2tc5.js";
9
+ } from "./index-7vb2ct4s.js";
10
10
  import {
11
11
  componentOf,
12
12
  escapeText,
@@ -14,17 +14,17 @@ 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,
21
21
  sizeText,
22
22
  tidy
23
- } from "./index-xh39jtkq.js";
23
+ } from "./index-ymqm185m.js";
24
24
  import {
25
25
  middle
26
- } from "./index-ftjdt358.js";
27
- import"./index-zd6adby9.js";
26
+ } from "./index-za4ppxay.js";
27
+ import"./index-a8ffw5ft.js";
28
28
  import"./index-t4kssacm.js";
29
29
  import {
30
30
  HOST_RESET,
@@ -33,15 +33,15 @@ import {
33
33
  holdInTopLayer,
34
34
  pause,
35
35
  subscribe
36
- } from "./index-kpsrkzmf.js";
37
- import"./index-7cb4x1vj.js";
36
+ } from "./index-x3sxssbs.js";
37
+ import"./index-s6yzsvs4.js";
38
38
  import {
39
39
  composedParent,
40
40
  grabTargetAt,
41
41
  icon,
42
42
  isDevknobs,
43
43
  isGrabbable
44
- } from "./index-rdssc7sz.js";
44
+ } from "./index-whehz74d.js";
45
45
  import {
46
46
  RINGS,
47
47
  addStyle,
@@ -61,7 +61,7 @@ import {
61
61
  ringQuads,
62
62
  systemMedia,
63
63
  watchSystemMedia
64
- } from "./index-dzm8ywq0.js";
64
+ } from "./index-jfv7vavj.js";
65
65
  import"./index-a974q3aa.js";
66
66
  import"./index-5tv6sr74.js";
67
67
 
@@ -829,8 +829,8 @@ ${colorRules("p3")}
829
829
  top: 0;
830
830
  left: 0;
831
831
  transform-origin: 0 0;
832
- will-change: transform;
833
832
  }
833
+ .glide { will-change: transform; }
834
834
  .fills > .part, .lines > .part {
835
835
  width: var(--unit);
836
836
  height: var(--unit);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  post
3
- } from "./index-dzm8ywq0.js";
3
+ } from "./index-jfv7vavj.js";
4
4
 
5
5
  // src/ui/icons.ts
6
6
  var SVG = "http://www.w3.org/2000/svg";
@@ -22,11 +22,11 @@ import {
22
22
  resume,
23
23
  screenSizeOf,
24
24
  uaPreset
25
- } from "./index-7cb4x1vj.js";
25
+ } from "./index-s6yzsvs4.js";
26
26
  import {
27
27
  composedParent,
28
28
  isDevknobs
29
- } from "./index-rdssc7sz.js";
29
+ } from "./index-whehz74d.js";
30
30
  import {
31
31
  DEFAULT_STATE,
32
32
  EXITED,
@@ -68,7 +68,7 @@ import {
68
68
  temporalNow,
69
69
  webStorage,
70
70
  wrapDate
71
- } from "./index-dzm8ywq0.js";
71
+ } from "./index-jfv7vavj.js";
72
72
  import {
73
73
  QUIET,
74
74
  SHARED_VERSION,
@@ -1132,7 +1132,7 @@ function holdInTopLayer(host, rank) {
1132
1132
 
1133
1133
  // src/engine/frames.ts
1134
1134
  var kit = null;
1135
- var load2 = () => import("./framekit-3bmkm34m.js");
1135
+ var load2 = () => import("./framekit-0as9t6a7.js");
1136
1136
  var loading = null;
1137
1137
  var down = false;
1138
1138
  var waiting = [];
@@ -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;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  SIDES,
3
3
  pxOf
4
- } from "./index-dzm8ywq0.js";
4
+ } from "./index-jfv7vavj.js";
5
5
 
6
6
  // src/grab/boxtext.ts
7
7
  var NONE = "-";
@@ -2,7 +2,7 @@ import {
2
2
  NEW_RULE_SHEET,
3
3
  resolveVars,
4
4
  varReferences
5
- } from "./index-zd6adby9.js";
5
+ } from "./index-a8ffw5ft.js";
6
6
 
7
7
  // src/ui/stylesformat.ts
8
8
  var TITLE_MAX = 44;