@vinena/knobs 0.5.2 → 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.
- package/CHANGELOG.md +39 -0
- package/README.md +7 -6
- package/dist/context-amfyasb5.js +23 -0
- package/dist/context-svtr7vwt.js +22 -0
- package/dist/early.global.js +6 -6
- package/dist/edit/css.d.ts +59 -0
- package/dist/edit/html.d.ts +91 -0
- package/dist/edit/keep.d.ts +175 -0
- package/dist/edit/log.d.ts +107 -0
- package/dist/edit/replay.d.ts +28 -0
- package/dist/edit/risk.d.ts +33 -0
- package/dist/edit/rule.d.ts +31 -0
- package/dist/edit/source.d.ts +12 -0
- package/dist/edit/text.d.ts +66 -0
- package/dist/elementsview-fyc06wjt.js +3702 -0
- package/dist/elementsview-k6zvvcne.js +3701 -0
- package/dist/engine/browserdraw.d.ts +5 -0
- package/dist/engine/browserkit.d.ts +2 -0
- package/dist/engine/devices.d.ts +3 -2
- package/dist/engine/dock.d.ts +3 -4
- package/dist/engine/frame.d.ts +1 -1
- package/dist/engine/frames.d.ts +1 -0
- package/dist/engine/identity.d.ts +5 -1
- package/dist/engine/index.d.ts +2 -0
- package/dist/engine/mock.d.ts +0 -2
- package/dist/engine/mockdata.d.ts +4 -3
- package/dist/engine/mockdraw.d.ts +2 -14
- package/dist/engine/morphrun.d.ts +4 -0
- package/dist/engine/native.d.ts +31 -3
- package/dist/engine/notice.d.ts +1 -2
- package/dist/engine/style.d.ts +15 -0
- package/dist/engine/width.d.ts +3 -0
- package/dist/{framekit-w0v516w5.js → framekit-622h6w1f.js} +264 -105
- package/dist/{framekit-te90cjs0.js → framekit-yx612r28.js} +264 -105
- package/dist/index-0zp9py56.js +859 -0
- package/dist/{index-9re7sv56.js → index-1mstjadm.js} +126 -2167
- package/dist/{index-30fc6php.js → index-4a4x1bt2.js} +1 -1
- package/dist/index-58jdczmj.js +44 -0
- package/dist/index-5tv6sr74.js +23 -0
- package/dist/index-6bc2ztfd.js +688 -0
- package/dist/index-7cb4x1vj.js +1885 -0
- package/dist/index-a974q3aa.js +34 -0
- package/dist/{index-r72tz2vn.js → index-aymfvd8s.js} +1 -1
- package/dist/{index-trx7bxdk.js → index-aynkv7qk.js} +11 -8
- package/dist/{index-xjhwp5cj.js → index-dzm8ywq0.js} +504 -2362
- package/dist/{index-dan2kpsd.js → index-f60yax1j.js} +13 -8
- package/dist/index-f67wctn3.js +1858 -0
- package/dist/{index-agwr37gw.js → index-ftjdt358.js} +8 -171
- package/dist/{index-pewcdh28.js → index-gm51cthv.js} +2 -45
- package/dist/index-kfdzsyyw.js +1859 -0
- package/dist/index-t4kssacm.js +208 -0
- package/dist/index-v0ht9q0g.js +1518 -0
- package/dist/{index-sxe5079a.js → index-x59vz1xx.js} +262 -901
- package/dist/index-xh39jtkq.js +32 -0
- package/dist/index-yb7fc59g.js +718 -0
- package/dist/index-zd6adby9.js +496 -0
- package/dist/index.d.ts +62 -0
- package/dist/index.global.js +447 -160
- package/dist/index.js +533 -485
- package/dist/react-0wepdf60.js +1519 -0
- package/dist/{react-4pvp6amm.js → react-1gqwa2yw.js} +1 -1
- package/dist/{index-hv02xka3.js → react-3mfz1x2a.js} +126 -2167
- package/dist/react-4rbjw9af.js +33 -0
- package/dist/react-5rq7bnsy.js +210 -0
- package/dist/react-6bz05qk1.js +860 -0
- package/dist/{react-05jh9jv5.js → react-6fnxxs30.js} +8 -171
- package/dist/react-6q2cw2ya.js +689 -0
- package/dist/{react-sw8d8c94.js → react-6t4dbdzn.js} +11 -8
- package/dist/react-88es9b5q.js +719 -0
- package/dist/react-97b5b8j4.js +46 -0
- package/dist/{react-16spgn0h.js → react-bxzn8vq5.js} +1 -1
- package/dist/{react-ayg1bgw3.js → react-cs62p9qh.js} +83 -722
- package/dist/react-ethftdxp.js +497 -0
- package/dist/react-fp73vhyd.js +36 -0
- package/dist/{react-exjcpxma.js → react-me102s1a.js} +2 -45
- package/dist/react-t2qnewz2.js +24 -0
- package/dist/react-ttj8f9qp.js +1886 -0
- package/dist/{react-zy1mmhgz.js → react-v8497a41.js} +13 -8
- package/dist/{react-fm9y8dbn.js → react-wqn4sx0n.js} +276 -2133
- package/dist/react.js +529 -485
- package/dist/replay-j18rw92k.js +258 -0
- package/dist/replay-vtg0vqj2.js +257 -0
- package/dist/{storageview-s7heg93p.js → storageview-6xj7zb63.js} +11 -7
- package/dist/{storageview-r595qpt9.js → storageview-pzn8yaad.js} +11 -7
- package/dist/styles/force.d.ts +66 -0
- package/dist/types.d.ts +7 -0
- package/dist/ui/bindings.d.ts +31 -5
- package/dist/ui/changes.d.ts +49 -0
- package/dist/ui/cssauto.d.ts +119 -0
- package/dist/ui/cssedit.d.ts +80 -0
- package/dist/ui/domedit.d.ts +99 -0
- package/dist/ui/domtree.d.ts +26 -1
- package/dist/ui/elementsview.d.ts +19 -2
- package/dist/ui/htmledit.d.ts +62 -0
- package/dist/ui/inspector.d.ts +6 -1
- package/dist/ui/keys.d.ts +12 -8
- package/dist/ui/pane.d.ts +0 -2
- package/dist/ui/panel.d.ts +3 -0
- package/dist/ui/prefs.d.ts +30 -10
- package/dist/ui/settings.d.ts +10 -0
- package/dist/ui/size.d.ts +14 -22
- package/dist/ui/stylesview.d.ts +30 -1
- package/package.json +1 -1
- package/skills/devknobs/SKILL.md +95 -0
- package/dist/elementsview-2z4pkrdz.js +0 -2873
- package/dist/elementsview-qn8qyksa.js +0 -2874
- package/dist/index-78r0f8pw.js +0 -27
- 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 };
|
|
@@ -4,17 +4,21 @@ import {
|
|
|
4
4
|
lay,
|
|
5
5
|
rowBox,
|
|
6
6
|
rowButton
|
|
7
|
-
} from "./index-
|
|
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-
|
|
13
|
+
} from "./index-6bc2ztfd.js";
|
|
12
14
|
import {
|
|
13
|
-
__require,
|
|
14
15
|
isDevknobsFrame,
|
|
15
16
|
newer,
|
|
16
17
|
webStorage
|
|
17
|
-
} from "./index-
|
|
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-
|
|
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,
|
|
360
|
+
export { PRESETS_KEY, PRESETS_VERSION, storedPresets, cookieText, put, applyOnLoad, appliedOnLoad, stopOnLoad, openPane, closePane, paneView, showPane, retitlePane, onPane, viewHead, createPane, STORAGE_VIEW, createStorageControl };
|