@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.
- package/CHANGELOG.md +11 -0
- package/dist/{context-amfyasb5.js → context-eawqn680.js} +1 -1
- package/dist/{context-svtr7vwt.js → context-vd2xep5t.js} +1 -1
- package/dist/early.global.js +5 -5
- package/dist/{elementsview-05qybwpn.js → elementsview-dpm0xmb2.js} +12 -12
- package/dist/{elementsview-gjaqje2k.js → elementsview-n26sp8m7.js} +12 -12
- package/dist/engine/media.d.ts +3 -2
- package/dist/engine/pageshot.d.ts +25 -0
- package/dist/engine/shotmedia.d.ts +50 -0
- package/dist/{framekit-3bmkm34m.js → framekit-0as9t6a7.js} +194 -32
- package/dist/{framekit-h0jrc5gs.js → framekit-dknq662p.js} +194 -32
- package/dist/grab/fiber.d.ts +2 -0
- package/dist/grab/overlay.d.ts +10 -1
- package/dist/{index-fp1h37b3.js → index-20bc9yrj.js} +1 -1
- package/dist/{index-0yn3rnza.js → index-69fvtkcm.js} +6 -6
- package/dist/{index-h93t2tc5.js → index-7vb2ct4s.js} +6 -6
- package/dist/{index-0mav2k60.js → index-7w0nm76e.js} +10 -10
- package/dist/{index-zd6adby9.js → index-a8ffw5ft.js} +1 -1
- package/dist/{index-gm51cthv.js → index-ajs4na3f.js} +1 -1
- package/dist/{index-4192t60e.js → index-df35z48z.js} +2 -2
- package/dist/{index-6xsvcjnc.js → index-dxga6h10.js} +4 -4
- package/dist/{index-dzm8ywq0.js → index-jfv7vavj.js} +3 -20
- package/dist/{index-509g0pa8.js → index-r1rdj05c.js} +5 -5
- package/dist/{index-7cb4x1vj.js → index-s6yzsvs4.js} +1 -1
- package/dist/{index-aj1z83rt.js → index-t4wrs2a3.js} +10 -10
- package/dist/{index-rdssc7sz.js → index-whehz74d.js} +1 -1
- package/dist/{index-kpsrkzmf.js → index-x3sxssbs.js} +4 -4
- package/dist/{index-1mstjadm.js → index-xs29b55n.js} +4 -1
- package/dist/{index-xh39jtkq.js → index-ymqm185m.js} +1 -1
- package/dist/{index-ftjdt358.js → index-za4ppxay.js} +1 -1
- package/dist/index.global.js +125 -119
- package/dist/index.js +15 -15
- package/dist/{react-wqn4sx0n.js → react-0r5418av.js} +3 -20
- package/dist/{react-gkzn5n3v.js → react-10r2rczp.js} +5 -5
- package/dist/{react-r3zf2djn.js → react-2b7725je.js} +4 -4
- package/dist/{react-ethftdxp.js → react-4phtr2nd.js} +1 -1
- package/dist/{react-pvmjybgw.js → react-5ekfj7g3.js} +2 -2
- package/dist/{react-ttj8f9qp.js → react-5h7pxnax.js} +1 -1
- package/dist/{react-6fnxxs30.js → react-73reavv4.js} +1 -1
- package/dist/{react-2381cr3w.js → react-a1r0nr0g.js} +4 -4
- package/dist/{react-me102s1a.js → react-k4pkm1p5.js} +1 -1
- package/dist/{react-anqpcaqm.js → react-msn10fjb.js} +6 -6
- package/dist/{react-x1ndxf29.js → react-v08ywmtw.js} +6 -6
- package/dist/{react-4ykd817s.js → react-vbk58f9m.js} +1 -1
- package/dist/{react-4rbjw9af.js → react-wtgvkf6g.js} +1 -1
- package/dist/{react-ptamex0p.js → react-y9gr8yt2.js} +1 -1
- package/dist/{react-3mfz1x2a.js → react-yx3g9k55.js} +4 -1
- package/dist/react.js +15 -15
- package/dist/{replay-39ssrcqp.js → replay-461gcdh1.js} +7 -7
- package/dist/{replay-xacjqqt5.js → replay-ehgxp9py.js} +7 -7
- package/dist/{storageview-3gnncmmv.js → storageview-5p1y11b5.js} +6 -6
- package/dist/{storageview-dwsnvz36.js → storageview-kxzpnfvr.js} +6 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
ease,
|
|
4
4
|
keepMounted,
|
|
5
5
|
lerp
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-ajs4na3f.js";
|
|
7
7
|
import {
|
|
8
8
|
GRAB_COLORS as GRAB_COLORS2,
|
|
9
9
|
GRAB_COLOR_NAMES,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
createGrab,
|
|
13
13
|
createInspect,
|
|
14
14
|
oneAtATime
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-7vb2ct4s.js";
|
|
16
16
|
import {
|
|
17
17
|
hushOnce
|
|
18
18
|
} from "./index-aymfvd8s.js";
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
settle,
|
|
38
38
|
translateOf,
|
|
39
39
|
velocity
|
|
40
|
-
} from "./index-
|
|
40
|
+
} from "./index-dxga6h10.js";
|
|
41
41
|
import {
|
|
42
42
|
dockRoom,
|
|
43
43
|
dockWidth,
|
|
@@ -53,10 +53,10 @@ import {
|
|
|
53
53
|
pathNow,
|
|
54
54
|
startKeep,
|
|
55
55
|
stopKeep
|
|
56
|
-
} from "./index-
|
|
56
|
+
} from "./index-df35z48z.js";
|
|
57
57
|
import {
|
|
58
58
|
label
|
|
59
|
-
} from "./index-
|
|
59
|
+
} from "./index-a8ffw5ft.js";
|
|
60
60
|
import {
|
|
61
61
|
appliedOnLoad,
|
|
62
62
|
applyOnLoad,
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
showPane,
|
|
71
71
|
stopOnLoad,
|
|
72
72
|
viewHead
|
|
73
|
-
} from "./index-
|
|
73
|
+
} from "./index-r1rdj05c.js";
|
|
74
74
|
import {
|
|
75
75
|
actButton,
|
|
76
76
|
button,
|
|
@@ -99,7 +99,7 @@ import {
|
|
|
99
99
|
tabBar,
|
|
100
100
|
textField,
|
|
101
101
|
toolbar
|
|
102
|
-
} from "./index-
|
|
102
|
+
} from "./index-20bc9yrj.js";
|
|
103
103
|
import {
|
|
104
104
|
BODY_CAP,
|
|
105
105
|
HOST_RESET,
|
|
@@ -144,7 +144,7 @@ import {
|
|
|
144
144
|
watchHinge,
|
|
145
145
|
watchPanel,
|
|
146
146
|
zoomKey
|
|
147
|
-
} from "./index-
|
|
147
|
+
} from "./index-x3sxssbs.js";
|
|
148
148
|
import {
|
|
149
149
|
MAT_COLORS,
|
|
150
150
|
MAT_COLOR_NAMES,
|
|
@@ -159,7 +159,7 @@ import {
|
|
|
159
159
|
runsUnderBars,
|
|
160
160
|
uaPreset,
|
|
161
161
|
userAgentOf
|
|
162
|
-
} from "./index-
|
|
162
|
+
} from "./index-s6yzsvs4.js";
|
|
163
163
|
import {
|
|
164
164
|
BINDING_ICONS,
|
|
165
165
|
KEYS_FIELD,
|
|
@@ -182,7 +182,7 @@ import {
|
|
|
182
182
|
rowIcon,
|
|
183
183
|
typeAhead,
|
|
184
184
|
zoomAction
|
|
185
|
-
} from "./index-
|
|
185
|
+
} from "./index-whehz74d.js";
|
|
186
186
|
import {
|
|
187
187
|
BARS,
|
|
188
188
|
BROWSERS,
|
|
@@ -247,7 +247,7 @@ import {
|
|
|
247
247
|
toHex,
|
|
248
248
|
watchSystemMedia,
|
|
249
249
|
webStorage
|
|
250
|
-
} from "./index-
|
|
250
|
+
} from "./index-jfv7vavj.js";
|
|
251
251
|
import"./index-a974q3aa.js";
|
|
252
252
|
import {
|
|
253
253
|
__require
|
|
@@ -2635,7 +2635,7 @@ var PANE = { openPane, paneView, onPane, retitlePane, showPane };
|
|
|
2635
2635
|
function here(element) {
|
|
2636
2636
|
return element.isConnected && element.ownerDocument.defaultView !== null;
|
|
2637
2637
|
}
|
|
2638
|
-
function createInspector(context, load = () => import("./elementsview-
|
|
2638
|
+
function createInspector(context, load = () => import("./elementsview-dpm0xmb2.js").then(({ createElementsView }) => ({ createStylesView: createElementsView })), pane = PANE) {
|
|
2639
2639
|
const { inspect, tips, prefs } = context;
|
|
2640
2640
|
const listeners = new Set;
|
|
2641
2641
|
let view = null;
|
|
@@ -6325,7 +6325,7 @@ function isZero(duration) {
|
|
|
6325
6325
|
}
|
|
6326
6326
|
|
|
6327
6327
|
// src/version.ts
|
|
6328
|
-
var VERSION = "0.6.
|
|
6328
|
+
var VERSION = "0.6.6";
|
|
6329
6329
|
|
|
6330
6330
|
// src/ui/settings.ts
|
|
6331
6331
|
var NO_KEY = "not set";
|
|
@@ -9650,7 +9650,7 @@ async function grab(elements, options2) {
|
|
|
9650
9650
|
const host = hosted("grab");
|
|
9651
9651
|
if (host)
|
|
9652
9652
|
return host(elements, options2);
|
|
9653
|
-
const loaded = await import("./index-
|
|
9653
|
+
const loaded = await import("./index-t4wrs2a3.js");
|
|
9654
9654
|
return loaded.grab(elements, options2);
|
|
9655
9655
|
}
|
|
9656
9656
|
function edits2() {
|
|
@@ -9662,7 +9662,7 @@ async function setEdits(list) {
|
|
|
9662
9662
|
return host(list);
|
|
9663
9663
|
if (!Array.isArray(list))
|
|
9664
9664
|
throw new TypeError("devknobs.setEdits takes a list of edits, as edits() gives them");
|
|
9665
|
-
const { replayEdits } = await import("./replay-
|
|
9665
|
+
const { replayEdits } = await import("./replay-ehgxp9py.js");
|
|
9666
9666
|
const { applied, skipped } = replayEdits(edits, list);
|
|
9667
9667
|
return { applied, skipped };
|
|
9668
9668
|
}
|
|
@@ -2177,8 +2177,7 @@ var SYSTEM_MEDIA = {
|
|
|
2177
2177
|
touch: false
|
|
2178
2178
|
};
|
|
2179
2179
|
var TRUE_TOKEN = "(min-width: 0px)";
|
|
2180
|
-
var
|
|
2181
|
-
var FALSE_QUERY = "not all";
|
|
2180
|
+
var FALSE_TOKEN = "(not (min-width: 0px))";
|
|
2182
2181
|
var FEATURE_OF = {
|
|
2183
2182
|
scheme: "prefers-color-scheme",
|
|
2184
2183
|
motion: "prefers-reduced-motion",
|
|
@@ -2232,24 +2231,8 @@ function splitQueryList(text2) {
|
|
|
2232
2231
|
parts.push(text2.slice(start));
|
|
2233
2232
|
return parts.map((part2) => part2.trim()).filter((part2) => part2.length > 0);
|
|
2234
2233
|
}
|
|
2235
|
-
function collapse(query, found, matched, rewritten) {
|
|
2236
|
-
if (!found)
|
|
2237
|
-
return query;
|
|
2238
|
-
const negated = /^not\s/i.test(query);
|
|
2239
|
-
if (negated ? matched : !matched)
|
|
2240
|
-
return FALSE_QUERY;
|
|
2241
|
-
return negated ? TRUE_QUERY : rewritten;
|
|
2242
|
-
}
|
|
2243
2234
|
function rewriteQuery(query, feature, value) {
|
|
2244
|
-
|
|
2245
|
-
let matched = true;
|
|
2246
|
-
const rewritten = query.replace(featurePattern(feature), (_whole, queryValue) => {
|
|
2247
|
-
found = true;
|
|
2248
|
-
if (!featureMatches(queryValue, value))
|
|
2249
|
-
matched = false;
|
|
2250
|
-
return TRUE_TOKEN;
|
|
2251
|
-
});
|
|
2252
|
-
return collapse(query, found, matched, rewritten);
|
|
2235
|
+
return query.replace(featurePattern(feature), (_whole, queryValue) => featureMatches(queryValue, value) ? TRUE_TOKEN : FALSE_TOKEN);
|
|
2253
2236
|
}
|
|
2254
2237
|
function rewriteMediaText(text2, feature, value) {
|
|
2255
2238
|
if (value === "system")
|
|
@@ -2723,4 +2706,4 @@ function removeStyle(name, doc = document) {
|
|
|
2723
2706
|
findStyle(name, doc)?.remove();
|
|
2724
2707
|
}
|
|
2725
2708
|
|
|
2726
|
-
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, 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 };
|
|
2709
|
+
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, 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 };
|
|
@@ -5,18 +5,18 @@ import {
|
|
|
5
5
|
lay,
|
|
6
6
|
rowBox,
|
|
7
7
|
rowButton
|
|
8
|
-
} from "./react-
|
|
8
|
+
} from "./react-y9gr8yt2.js";
|
|
9
9
|
import {
|
|
10
10
|
getState
|
|
11
|
-
} from "./react-
|
|
11
|
+
} from "./react-a1r0nr0g.js";
|
|
12
12
|
import {
|
|
13
13
|
icon
|
|
14
|
-
} from "./react-
|
|
14
|
+
} from "./react-vbk58f9m.js";
|
|
15
15
|
import {
|
|
16
16
|
isDevknobsFrame,
|
|
17
17
|
newer,
|
|
18
18
|
webStorage
|
|
19
|
-
} from "./react-
|
|
19
|
+
} from "./react-0r5418av.js";
|
|
20
20
|
import {
|
|
21
21
|
__require
|
|
22
22
|
} from "./react-t2qnewz2.js";
|
|
@@ -210,7 +210,7 @@ function createPane(context) {
|
|
|
210
210
|
// src/ui/storageaction.ts
|
|
211
211
|
var STORAGE_VIEW = "storage";
|
|
212
212
|
function load() {
|
|
213
|
-
return import("./storageview-
|
|
213
|
+
return import("./storageview-5p1y11b5.js").then((loaded) => loaded.storageView({
|
|
214
214
|
visible: () => getState().panel.open && !document.hidden
|
|
215
215
|
}));
|
|
216
216
|
}
|
|
@@ -6,16 +6,16 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
resolveNesting,
|
|
8
8
|
splitList
|
|
9
|
-
} from "./react-
|
|
9
|
+
} from "./react-5ekfj7g3.js";
|
|
10
10
|
import {
|
|
11
11
|
flatParent,
|
|
12
12
|
isNewRuleSheet,
|
|
13
13
|
isShadowRoot,
|
|
14
14
|
scopeOf
|
|
15
|
-
} from "./react-
|
|
15
|
+
} from "./react-4phtr2nd.js";
|
|
16
16
|
import {
|
|
17
17
|
isDevknobs
|
|
18
|
-
} from "./react-
|
|
18
|
+
} from "./react-vbk58f9m.js";
|
|
19
19
|
import {
|
|
20
20
|
addStyle,
|
|
21
21
|
ensureStyle,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
stamped,
|
|
27
27
|
versionOf,
|
|
28
28
|
webStorage
|
|
29
|
-
} from "./react-
|
|
29
|
+
} from "./react-0r5418av.js";
|
|
30
30
|
|
|
31
31
|
// src/styles/force.ts
|
|
32
32
|
var FORCED_STATES = ["hover", "focus", "focus-visible", "active", "focus-within"];
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
realNow,
|
|
5
5
|
stamped,
|
|
6
6
|
webStorage
|
|
7
|
-
} from "./react-
|
|
7
|
+
} from "./react-0r5418av.js";
|
|
8
8
|
import {
|
|
9
9
|
__require
|
|
10
10
|
} from "./react-t2qnewz2.js";
|
|
@@ -409,7 +409,7 @@ function settled(view, quiet = QUIET, longest = SETTLE_MAX) {
|
|
|
409
409
|
}
|
|
410
410
|
function createKeeper(options) {
|
|
411
411
|
const { log, store, view } = options;
|
|
412
|
-
const loadReplay = options.replay ?? (() => import("./replay-
|
|
412
|
+
const loadReplay = options.replay ?? (() => import("./replay-461gcdh1.js").then(({ replayEdits }) => replayEdits));
|
|
413
413
|
const wait = options.settled ?? (() => settled(view));
|
|
414
414
|
const frame = options.frame ?? (() => null);
|
|
415
415
|
const ours = new WeakMap;
|
|
@@ -23,11 +23,11 @@ import {
|
|
|
23
23
|
resume,
|
|
24
24
|
screenSizeOf,
|
|
25
25
|
uaPreset
|
|
26
|
-
} from "./react-
|
|
26
|
+
} from "./react-5h7pxnax.js";
|
|
27
27
|
import {
|
|
28
28
|
composedParent,
|
|
29
29
|
isDevknobs
|
|
30
|
-
} from "./react-
|
|
30
|
+
} from "./react-vbk58f9m.js";
|
|
31
31
|
import {
|
|
32
32
|
DEFAULT_STATE,
|
|
33
33
|
EXITED,
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
temporalNow,
|
|
70
70
|
webStorage,
|
|
71
71
|
wrapDate
|
|
72
|
-
} from "./react-
|
|
72
|
+
} from "./react-0r5418av.js";
|
|
73
73
|
import {
|
|
74
74
|
QUIET,
|
|
75
75
|
SHARED_VERSION,
|
|
@@ -1776,7 +1776,7 @@ function pause(on) {
|
|
|
1776
1776
|
|
|
1777
1777
|
// src/engine/frames.ts
|
|
1778
1778
|
var kit = null;
|
|
1779
|
-
var load2 = () => import("./framekit-
|
|
1779
|
+
var load2 = () => import("./framekit-dknq662p.js");
|
|
1780
1780
|
var loading = null;
|
|
1781
1781
|
var down = false;
|
|
1782
1782
|
var waiting = [];
|
|
@@ -6,32 +6,32 @@ import {
|
|
|
6
6
|
riskyElement,
|
|
7
7
|
specificity,
|
|
8
8
|
splitList
|
|
9
|
-
} from "./react-
|
|
9
|
+
} from "./react-5ekfj7g3.js";
|
|
10
10
|
import {
|
|
11
11
|
middle
|
|
12
|
-
} from "./react-
|
|
12
|
+
} from "./react-73reavv4.js";
|
|
13
13
|
import {
|
|
14
14
|
NEW_RULE_SHEET,
|
|
15
15
|
isNewRuleSheet,
|
|
16
16
|
isShadowRoot,
|
|
17
17
|
label
|
|
18
|
-
} from "./react-
|
|
18
|
+
} from "./react-4phtr2nd.js";
|
|
19
19
|
import {
|
|
20
20
|
actButton,
|
|
21
21
|
el
|
|
22
|
-
} from "./react-
|
|
22
|
+
} from "./react-y9gr8yt2.js";
|
|
23
23
|
import {
|
|
24
24
|
icon,
|
|
25
25
|
isDevknobs,
|
|
26
26
|
typesInField
|
|
27
|
-
} from "./react-
|
|
27
|
+
} from "./react-vbk58f9m.js";
|
|
28
28
|
import {
|
|
29
29
|
addStyle,
|
|
30
30
|
authoredQuery,
|
|
31
31
|
ensureStyle,
|
|
32
32
|
isDocument,
|
|
33
33
|
isOwnSheet
|
|
34
|
-
} from "./react-
|
|
34
|
+
} from "./react-0r5418av.js";
|
|
35
35
|
|
|
36
36
|
// src/styles/collect.ts
|
|
37
37
|
function isKind(rule, kind) {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
label
|
|
4
|
-
} from "./react-
|
|
4
|
+
} from "./react-4phtr2nd.js";
|
|
5
5
|
import {
|
|
6
6
|
frameWindow,
|
|
7
7
|
subscribe
|
|
8
|
-
} from "./react-
|
|
8
|
+
} from "./react-a1r0nr0g.js";
|
|
9
9
|
import {
|
|
10
10
|
inField,
|
|
11
11
|
isFunctionKey,
|
|
12
12
|
keyIs,
|
|
13
13
|
typesInField,
|
|
14
14
|
withShift
|
|
15
|
-
} from "./react-
|
|
15
|
+
} from "./react-vbk58f9m.js";
|
|
16
16
|
import {
|
|
17
17
|
addStyle,
|
|
18
18
|
isDevknobsFrame,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
post,
|
|
21
21
|
readMessage,
|
|
22
22
|
systemMedia
|
|
23
|
-
} from "./react-
|
|
23
|
+
} from "./react-0r5418av.js";
|
|
24
24
|
import {
|
|
25
25
|
__require
|
|
26
26
|
} from "./react-t2qnewz2.js";
|
|
@@ -165,7 +165,7 @@ function systemScheme() {
|
|
|
165
165
|
host.remove();
|
|
166
166
|
return dark ? "dark" : "light";
|
|
167
167
|
}
|
|
168
|
-
function createGrab(options = {}, loadMode = () => import("./index-
|
|
168
|
+
function createGrab(options = {}, loadMode = () => import("./index-7w0nm76e.js")) {
|
|
169
169
|
const keyNow = options.key ?? defaultGrabKey;
|
|
170
170
|
const { purpose } = options;
|
|
171
171
|
const channel = purpose?.channel ?? "grab";
|
|
@@ -374,7 +374,7 @@ function held(view) {
|
|
|
374
374
|
return null;
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
|
-
function createInspect(options = {}, load = () => import("./index-
|
|
377
|
+
function createInspect(options = {}, load = () => import("./index-7w0nm76e.js"), frameOf = frameWindow) {
|
|
378
378
|
const inFrame = isDevknobsFrame();
|
|
379
379
|
const listeners = new Set;
|
|
380
380
|
let outliner = null;
|
|
@@ -90,13 +90,16 @@ function listKey(fiber) {
|
|
|
90
90
|
}
|
|
91
91
|
return null;
|
|
92
92
|
}
|
|
93
|
+
function isMinifiedName(name) {
|
|
94
|
+
return name.length <= 2 && name[0] !== name[0]?.toUpperCase();
|
|
95
|
+
}
|
|
93
96
|
function componentNames(fiber, max, accept) {
|
|
94
97
|
const names = [];
|
|
95
98
|
for (let current = fiber;current && names.length < max; current = current.return) {
|
|
96
99
|
if (!isComposite(current))
|
|
97
100
|
continue;
|
|
98
101
|
const name = displayName(current.type);
|
|
99
|
-
if (name && accept(name))
|
|
102
|
+
if (name && !isMinifiedName(name) && accept(name))
|
|
100
103
|
names.push(name);
|
|
101
104
|
}
|
|
102
105
|
return names;
|
package/dist/react.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
ease,
|
|
5
5
|
keepMounted,
|
|
6
6
|
lerp
|
|
7
|
-
} from "./react-
|
|
7
|
+
} from "./react-k4pkm1p5.js";
|
|
8
8
|
import {
|
|
9
9
|
GRAB_COLORS as GRAB_COLORS2,
|
|
10
10
|
GRAB_COLOR_NAMES,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
createGrab,
|
|
14
14
|
createInspect,
|
|
15
15
|
oneAtATime
|
|
16
|
-
} from "./react-
|
|
16
|
+
} from "./react-v08ywmtw.js";
|
|
17
17
|
import {
|
|
18
18
|
hushOnce
|
|
19
19
|
} from "./react-1gqwa2yw.js";
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
settle,
|
|
39
39
|
translateOf,
|
|
40
40
|
velocity
|
|
41
|
-
} from "./react-
|
|
41
|
+
} from "./react-2b7725je.js";
|
|
42
42
|
import {
|
|
43
43
|
dockRoom,
|
|
44
44
|
dockWidth,
|
|
@@ -54,10 +54,10 @@ import {
|
|
|
54
54
|
pathNow,
|
|
55
55
|
startKeep,
|
|
56
56
|
stopKeep
|
|
57
|
-
} from "./react-
|
|
57
|
+
} from "./react-5ekfj7g3.js";
|
|
58
58
|
import {
|
|
59
59
|
label
|
|
60
|
-
} from "./react-
|
|
60
|
+
} from "./react-4phtr2nd.js";
|
|
61
61
|
import {
|
|
62
62
|
appliedOnLoad,
|
|
63
63
|
applyOnLoad,
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
showPane,
|
|
72
72
|
stopOnLoad,
|
|
73
73
|
viewHead
|
|
74
|
-
} from "./react-
|
|
74
|
+
} from "./react-10r2rczp.js";
|
|
75
75
|
import {
|
|
76
76
|
actButton,
|
|
77
77
|
button,
|
|
@@ -100,7 +100,7 @@ import {
|
|
|
100
100
|
tabBar,
|
|
101
101
|
textField,
|
|
102
102
|
toolbar
|
|
103
|
-
} from "./react-
|
|
103
|
+
} from "./react-y9gr8yt2.js";
|
|
104
104
|
import {
|
|
105
105
|
BODY_CAP,
|
|
106
106
|
HOST_RESET,
|
|
@@ -145,7 +145,7 @@ import {
|
|
|
145
145
|
watchHinge,
|
|
146
146
|
watchPanel,
|
|
147
147
|
zoomKey
|
|
148
|
-
} from "./react-
|
|
148
|
+
} from "./react-a1r0nr0g.js";
|
|
149
149
|
import {
|
|
150
150
|
MAT_COLORS,
|
|
151
151
|
MAT_COLOR_NAMES,
|
|
@@ -160,7 +160,7 @@ import {
|
|
|
160
160
|
runsUnderBars,
|
|
161
161
|
uaPreset,
|
|
162
162
|
userAgentOf
|
|
163
|
-
} from "./react-
|
|
163
|
+
} from "./react-5h7pxnax.js";
|
|
164
164
|
import {
|
|
165
165
|
BINDING_ICONS,
|
|
166
166
|
KEYS_FIELD,
|
|
@@ -183,7 +183,7 @@ import {
|
|
|
183
183
|
rowIcon,
|
|
184
184
|
typeAhead,
|
|
185
185
|
zoomAction
|
|
186
|
-
} from "./react-
|
|
186
|
+
} from "./react-vbk58f9m.js";
|
|
187
187
|
import {
|
|
188
188
|
BARS,
|
|
189
189
|
BROWSERS,
|
|
@@ -247,7 +247,7 @@ import {
|
|
|
247
247
|
toHex,
|
|
248
248
|
watchSystemMedia,
|
|
249
249
|
webStorage
|
|
250
|
-
} from "./react-
|
|
250
|
+
} from "./react-0r5418av.js";
|
|
251
251
|
import"./react-fp73vhyd.js";
|
|
252
252
|
import {
|
|
253
253
|
__require
|
|
@@ -2638,7 +2638,7 @@ var PANE = { openPane, paneView, onPane, retitlePane, showPane };
|
|
|
2638
2638
|
function here(element) {
|
|
2639
2639
|
return element.isConnected && element.ownerDocument.defaultView !== null;
|
|
2640
2640
|
}
|
|
2641
|
-
function createInspector(context, load = () => import("./elementsview-
|
|
2641
|
+
function createInspector(context, load = () => import("./elementsview-n26sp8m7.js").then(({ createElementsView }) => ({ createStylesView: createElementsView })), pane = PANE) {
|
|
2642
2642
|
const { inspect, tips, prefs } = context;
|
|
2643
2643
|
const listeners = new Set;
|
|
2644
2644
|
let view = null;
|
|
@@ -6328,7 +6328,7 @@ function isZero(duration) {
|
|
|
6328
6328
|
}
|
|
6329
6329
|
|
|
6330
6330
|
// src/version.ts
|
|
6331
|
-
var VERSION = "0.6.
|
|
6331
|
+
var VERSION = "0.6.6";
|
|
6332
6332
|
|
|
6333
6333
|
// src/ui/settings.ts
|
|
6334
6334
|
var NO_KEY = "not set";
|
|
@@ -9644,7 +9644,7 @@ async function grab(elements, options2) {
|
|
|
9644
9644
|
const host = hosted("grab");
|
|
9645
9645
|
if (host)
|
|
9646
9646
|
return host(elements, options2);
|
|
9647
|
-
const loaded = await import("./index-
|
|
9647
|
+
const loaded = await import("./index-7w0nm76e.js");
|
|
9648
9648
|
return loaded.grab(elements, options2);
|
|
9649
9649
|
}
|
|
9650
9650
|
function edits2() {
|
|
@@ -9656,7 +9656,7 @@ async function setEdits(list) {
|
|
|
9656
9656
|
return host(list);
|
|
9657
9657
|
if (!Array.isArray(list))
|
|
9658
9658
|
throw new TypeError("devknobs.setEdits takes a list of edits, as edits() gives them");
|
|
9659
|
-
const { replayEdits } = await import("./replay-
|
|
9659
|
+
const { replayEdits } = await import("./replay-461gcdh1.js");
|
|
9660
9660
|
const { applied, skipped } = replayEdits(edits, list);
|
|
9661
9661
|
return { applied, skipped };
|
|
9662
9662
|
}
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
parseHtml,
|
|
11
11
|
rulesOf,
|
|
12
12
|
textEdit
|
|
13
|
-
} from "./react-
|
|
13
|
+
} from "./react-msn10fjb.js";
|
|
14
14
|
import {
|
|
15
15
|
REASONS,
|
|
16
16
|
RISK,
|
|
@@ -18,8 +18,8 @@ import {
|
|
|
18
18
|
riskyAttribute,
|
|
19
19
|
riskyElement,
|
|
20
20
|
riskyNodes
|
|
21
|
-
} from "./react-
|
|
22
|
-
import"./react-
|
|
21
|
+
} from "./react-5ekfj7g3.js";
|
|
22
|
+
import"./react-73reavv4.js";
|
|
23
23
|
import {
|
|
24
24
|
NEW_RULE_SHEET,
|
|
25
25
|
cssOff,
|
|
@@ -29,10 +29,10 @@ import {
|
|
|
29
29
|
offIn,
|
|
30
30
|
ruleOf,
|
|
31
31
|
sheetIdOf
|
|
32
|
-
} from "./react-
|
|
33
|
-
import"./react-
|
|
34
|
-
import"./react-
|
|
35
|
-
import"./react-
|
|
32
|
+
} from "./react-4phtr2nd.js";
|
|
33
|
+
import"./react-y9gr8yt2.js";
|
|
34
|
+
import"./react-vbk58f9m.js";
|
|
35
|
+
import"./react-0r5418av.js";
|
|
36
36
|
import"./react-t2qnewz2.js";
|
|
37
37
|
|
|
38
38
|
// src/edit/replay.ts
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
parseHtml,
|
|
10
10
|
rulesOf,
|
|
11
11
|
textEdit
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-69fvtkcm.js";
|
|
13
13
|
import {
|
|
14
14
|
REASONS,
|
|
15
15
|
RISK,
|
|
@@ -17,8 +17,8 @@ import {
|
|
|
17
17
|
riskyAttribute,
|
|
18
18
|
riskyElement,
|
|
19
19
|
riskyNodes
|
|
20
|
-
} from "./index-
|
|
21
|
-
import"./index-
|
|
20
|
+
} from "./index-df35z48z.js";
|
|
21
|
+
import"./index-za4ppxay.js";
|
|
22
22
|
import {
|
|
23
23
|
NEW_RULE_SHEET,
|
|
24
24
|
cssOff,
|
|
@@ -28,10 +28,10 @@ import {
|
|
|
28
28
|
offIn,
|
|
29
29
|
ruleOf,
|
|
30
30
|
sheetIdOf
|
|
31
|
-
} from "./index-
|
|
32
|
-
import"./index-
|
|
33
|
-
import"./index-
|
|
34
|
-
import"./index-
|
|
31
|
+
} from "./index-a8ffw5ft.js";
|
|
32
|
+
import"./index-20bc9yrj.js";
|
|
33
|
+
import"./index-whehz74d.js";
|
|
34
|
+
import"./index-jfv7vavj.js";
|
|
35
35
|
import"./index-5tv6sr74.js";
|
|
36
36
|
|
|
37
37
|
// src/edit/replay.ts
|