@vinena/knobs 0.5.3 → 0.6.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 (94) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +7 -6
  3. package/dist/context-amfyasb5.js +23 -0
  4. package/dist/context-svtr7vwt.js +22 -0
  5. package/dist/early.global.js +5 -5
  6. package/dist/edit/css.d.ts +59 -0
  7. package/dist/edit/html.d.ts +91 -0
  8. package/dist/edit/keep.d.ts +175 -0
  9. package/dist/edit/log.d.ts +107 -0
  10. package/dist/edit/replay.d.ts +28 -0
  11. package/dist/edit/risk.d.ts +33 -0
  12. package/dist/edit/rule.d.ts +31 -0
  13. package/dist/edit/source.d.ts +12 -0
  14. package/dist/edit/text.d.ts +66 -0
  15. package/dist/elementsview-fyc06wjt.js +3702 -0
  16. package/dist/elementsview-k6zvvcne.js +3701 -0
  17. package/dist/engine/dock.d.ts +3 -4
  18. package/dist/engine/frame.d.ts +1 -1
  19. package/dist/engine/style.d.ts +15 -0
  20. package/dist/{framekit-cjz0e4y8.js → framekit-622h6w1f.js} +54 -47
  21. package/dist/{framekit-yk1jxjv7.js → framekit-yx612r28.js} +54 -47
  22. package/dist/index-0zp9py56.js +859 -0
  23. package/dist/{index-prjpx67p.js → index-1mstjadm.js} +126 -2167
  24. package/dist/{index-begsqdm0.js → index-4a4x1bt2.js} +1 -1
  25. package/dist/index-58jdczmj.js +44 -0
  26. package/dist/index-5tv6sr74.js +23 -0
  27. package/dist/index-6bc2ztfd.js +688 -0
  28. package/dist/index-7cb4x1vj.js +1885 -0
  29. package/dist/index-a974q3aa.js +34 -0
  30. package/dist/{index-q73py563.js → index-aymfvd8s.js} +1 -1
  31. package/dist/{index-zt3rheck.js → index-aynkv7qk.js} +11 -8
  32. package/dist/{index-p57fdttx.js → index-dzm8ywq0.js} +492 -2365
  33. package/dist/{index-9jhatmky.js → index-f60yax1j.js} +13 -8
  34. package/dist/index-f67wctn3.js +1858 -0
  35. package/dist/{index-vgfn2n1h.js → index-ftjdt358.js} +8 -171
  36. package/dist/{index-j1h13ahg.js → index-gm51cthv.js} +2 -45
  37. package/dist/index-kfdzsyyw.js +1859 -0
  38. package/dist/index-t4kssacm.js +208 -0
  39. package/dist/index-v0ht9q0g.js +1518 -0
  40. package/dist/{index-6wbgqkdz.js → index-x59vz1xx.js} +247 -905
  41. package/dist/index-xh39jtkq.js +32 -0
  42. package/dist/index-yb7fc59g.js +718 -0
  43. package/dist/index-zd6adby9.js +496 -0
  44. package/dist/index.d.ts +62 -0
  45. package/dist/index.global.js +410 -152
  46. package/dist/index.js +504 -482
  47. package/dist/react-0wepdf60.js +1519 -0
  48. package/dist/{react-gefkdkdz.js → react-1gqwa2yw.js} +1 -1
  49. package/dist/{index-sn2y6j09.js → react-3mfz1x2a.js} +126 -2167
  50. package/dist/react-4rbjw9af.js +33 -0
  51. package/dist/react-5rq7bnsy.js +210 -0
  52. package/dist/react-6bz05qk1.js +860 -0
  53. package/dist/{react-qgz9afa2.js → react-6fnxxs30.js} +8 -171
  54. package/dist/react-6q2cw2ya.js +689 -0
  55. package/dist/{react-7vjfsh40.js → react-6t4dbdzn.js} +11 -8
  56. package/dist/react-88es9b5q.js +719 -0
  57. package/dist/react-97b5b8j4.js +46 -0
  58. package/dist/{react-mmq2zya3.js → react-bxzn8vq5.js} +1 -1
  59. package/dist/{react-3rhdj2k1.js → react-cs62p9qh.js} +62 -720
  60. package/dist/react-ethftdxp.js +497 -0
  61. package/dist/react-fp73vhyd.js +36 -0
  62. package/dist/{react-qfpg79hs.js → react-me102s1a.js} +2 -45
  63. package/dist/react-t2qnewz2.js +24 -0
  64. package/dist/react-ttj8f9qp.js +1886 -0
  65. package/dist/{react-806qmkyz.js → react-v8497a41.js} +13 -8
  66. package/dist/{react-6tss0r9f.js → react-wqn4sx0n.js} +265 -2137
  67. package/dist/react.js +500 -482
  68. package/dist/replay-j18rw92k.js +258 -0
  69. package/dist/replay-vtg0vqj2.js +257 -0
  70. package/dist/{storageview-7cv0vpdm.js → storageview-6xj7zb63.js} +11 -7
  71. package/dist/{storageview-dyhpgt8f.js → storageview-pzn8yaad.js} +11 -7
  72. package/dist/styles/force.d.ts +66 -0
  73. package/dist/ui/bindings.d.ts +31 -5
  74. package/dist/ui/changes.d.ts +49 -0
  75. package/dist/ui/cssauto.d.ts +119 -0
  76. package/dist/ui/cssedit.d.ts +80 -0
  77. package/dist/ui/domedit.d.ts +99 -0
  78. package/dist/ui/domtree.d.ts +26 -1
  79. package/dist/ui/elementsview.d.ts +19 -2
  80. package/dist/ui/htmledit.d.ts +62 -0
  81. package/dist/ui/inspector.d.ts +6 -1
  82. package/dist/ui/keys.d.ts +12 -8
  83. package/dist/ui/pane.d.ts +0 -2
  84. package/dist/ui/panel.d.ts +3 -0
  85. package/dist/ui/prefs.d.ts +30 -10
  86. package/dist/ui/settings.d.ts +2 -0
  87. package/dist/ui/size.d.ts +14 -22
  88. package/dist/ui/stylesview.d.ts +30 -1
  89. package/package.json +1 -1
  90. package/skills/devknobs/SKILL.md +95 -0
  91. package/dist/elementsview-1wsxcdtj.js +0 -2874
  92. package/dist/elementsview-3kv34jfx.js +0 -2873
  93. package/dist/index-78r0f8pw.js +0 -27
  94. package/dist/react-adky72h9.js +0 -29
@@ -0,0 +1,34 @@
1
+ // src/requests/shared.ts
2
+ var SHARED_VERSION = 2;
3
+ var SHARED = Symbol.for("devknobs.requests");
4
+ var QUIET = Symbol.for("devknobs.quiet");
5
+ function isShared(value) {
6
+ return typeof value === "object" && value !== null && Reflect.get(value, "version") === SHARED_VERSION;
7
+ }
8
+ function shared(scope = globalThis) {
9
+ try {
10
+ const value = Reflect.get(scope, SHARED);
11
+ return isShared(value) ? value : null;
12
+ } catch {
13
+ return null;
14
+ }
15
+ }
16
+ function share(recorder) {
17
+ if (recorder)
18
+ Reflect.set(globalThis, SHARED, recorder);
19
+ else
20
+ Reflect.deleteProperty(globalThis, SHARED);
21
+ }
22
+ function evict() {
23
+ const other = Reflect.get(globalThis, SHARED);
24
+ if (typeof other !== "object" || other === null)
25
+ return;
26
+ const uninstall = Reflect.get(other, "uninstall");
27
+ try {
28
+ if (typeof uninstall === "function")
29
+ uninstall.call(other);
30
+ } catch {}
31
+ Reflect.deleteProperty(globalThis, SHARED);
32
+ }
33
+
34
+ export { SHARED_VERSION, QUIET, shared, share, evict };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  QUIET,
3
3
  shared
4
- } from "./index-p57fdttx.js";
4
+ } from "./index-a974q3aa.js";
5
5
 
6
6
  // src/requests/quiet.ts
7
7
  function quietFetch(url, init) {
@@ -4,17 +4,21 @@ import {
4
4
  lay,
5
5
  rowBox,
6
6
  rowButton
7
- } from "./index-begsqdm0.js";
7
+ } from "./index-4a4x1bt2.js";
8
+ import {
9
+ getState
10
+ } from "./index-x59vz1xx.js";
8
11
  import {
9
- getState,
10
12
  icon
11
- } from "./index-6wbgqkdz.js";
13
+ } from "./index-6bc2ztfd.js";
12
14
  import {
13
- __require,
14
15
  isDevknobsFrame,
15
16
  newer,
16
17
  webStorage
17
- } from "./index-p57fdttx.js";
18
+ } from "./index-dzm8ywq0.js";
19
+ import {
20
+ __require
21
+ } from "./index-5tv6sr74.js";
18
22
 
19
23
  // src/storage/onload.ts
20
24
  var PRESETS_KEY = "devknobs:storage-presets";
@@ -132,7 +136,6 @@ function stopOnLoad() {
132
136
  }
133
137
 
134
138
  // src/ui/pane.ts
135
- var PANE_WIDTH = 340;
136
139
  var listeners = new Set;
137
140
  var shell = null;
138
141
  function emit(view) {
@@ -321,7 +324,7 @@ function createPane(context) {
321
324
  // src/ui/storageaction.ts
322
325
  var STORAGE_VIEW = "storage";
323
326
  function load() {
324
- return import("./storageview-dyhpgt8f.js").then((loaded) => loaded.storageView({
327
+ return import("./storageview-pzn8yaad.js").then((loaded) => loaded.storageView({
325
328
  visible: () => getState().panel.open && !document.hidden
326
329
  }));
327
330
  }
@@ -354,4 +357,4 @@ function createStorageControl(loadView = load) {
354
357
  };
355
358
  }
356
359
 
357
- export { PRESETS_KEY, PRESETS_VERSION, storedPresets, cookieText, put, applyOnLoad, appliedOnLoad, stopOnLoad, PANE_WIDTH, openPane, closePane, paneView, showPane, retitlePane, onPane, viewHead, createPane, STORAGE_VIEW, createStorageControl };
360
+ export { PRESETS_KEY, PRESETS_VERSION, storedPresets, cookieText, put, applyOnLoad, appliedOnLoad, stopOnLoad, openPane, closePane, paneView, showPane, retitlePane, onPane, viewHead, createPane, STORAGE_VIEW, createStorageControl };