@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
|
@@ -1,24 +1,29 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
label
|
|
4
|
-
} from "./react-
|
|
4
|
+
} from "./react-ethftdxp.js";
|
|
5
5
|
import {
|
|
6
6
|
frameWindow,
|
|
7
|
+
subscribe
|
|
8
|
+
} from "./react-cs62p9qh.js";
|
|
9
|
+
import {
|
|
10
|
+
inField,
|
|
7
11
|
isFunctionKey,
|
|
8
12
|
keyIs,
|
|
9
|
-
subscribe,
|
|
10
13
|
typesInField,
|
|
11
14
|
withShift
|
|
12
|
-
} from "./react-
|
|
15
|
+
} from "./react-6q2cw2ya.js";
|
|
13
16
|
import {
|
|
14
|
-
__require,
|
|
15
17
|
addStyle,
|
|
16
18
|
isDevknobsFrame,
|
|
17
19
|
needsFrame,
|
|
18
20
|
post,
|
|
19
21
|
readMessage,
|
|
20
22
|
systemMedia
|
|
21
|
-
} from "./react-
|
|
23
|
+
} from "./react-wqn4sx0n.js";
|
|
24
|
+
import {
|
|
25
|
+
__require
|
|
26
|
+
} from "./react-t2qnewz2.js";
|
|
22
27
|
|
|
23
28
|
// src/grab/keys.ts
|
|
24
29
|
var HOLD = 100;
|
|
@@ -160,7 +165,7 @@ function systemScheme() {
|
|
|
160
165
|
host.remove();
|
|
161
166
|
return dark ? "dark" : "light";
|
|
162
167
|
}
|
|
163
|
-
function createGrab(options = {}, loadMode = () => import("./index-
|
|
168
|
+
function createGrab(options = {}, loadMode = () => import("./index-kfdzsyyw.js")) {
|
|
164
169
|
const keyNow = options.key ?? defaultGrabKey;
|
|
165
170
|
const { purpose } = options;
|
|
166
171
|
const channel = purpose?.channel ?? "grab";
|
|
@@ -239,7 +244,7 @@ function createGrab(options = {}, loadMode = () => import("./index-hv02xka3.js")
|
|
|
239
244
|
function onKeydown(event) {
|
|
240
245
|
const key = keyNow();
|
|
241
246
|
const press = key !== null && pressTurnsOn(key);
|
|
242
|
-
const grabKey = key !== null && isGrabKey(event, key) && !(grabKeyTypes(key) && typesInField(event));
|
|
247
|
+
const grabKey = key !== null && isGrabKey(event, key) && !(grabKeyTypes(key) && (key.shift ? typesInField(event) : inField(event)));
|
|
243
248
|
if (grabKey && press) {
|
|
244
249
|
event.preventDefault();
|
|
245
250
|
if (!event.repeat)
|
|
@@ -369,7 +374,7 @@ function held(view) {
|
|
|
369
374
|
return null;
|
|
370
375
|
}
|
|
371
376
|
}
|
|
372
|
-
function createInspect(options = {}, load = () => import("./index-
|
|
377
|
+
function createInspect(options = {}, load = () => import("./index-kfdzsyyw.js"), frameOf = frameWindow) {
|
|
373
378
|
const inFrame = isDevknobsFrame();
|
|
374
379
|
const listeners = new Set;
|
|
375
380
|
let outliner = null;
|