@vinena/knobs 0.7.0 → 0.7.2
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 +23 -0
- package/README.md +2 -2
- package/dist/cli.js +2 -2
- package/dist/{context-eawqn680.js → context-2r76ext7.js} +3 -3
- package/dist/{context-vd2xep5t.js → context-h1bdt8w3.js} +3 -3
- package/dist/early.global.js +7 -8
- package/dist/edit/html.d.ts +7 -3
- package/dist/edit/keep.d.ts +1 -1
- package/dist/{elementsview-m33ejs4r.js → elementsview-1bar694x.js} +21 -19
- package/dist/{elementsview-jg4edt86.js → elementsview-p2wc9b0s.js} +21 -19
- package/dist/engine/bandmedia.d.ts +119 -0
- package/dist/engine/bezels.d.ts +2 -2
- package/dist/engine/browserui.d.ts +3 -1
- package/dist/engine/check.d.ts +2 -2
- package/dist/engine/describe.d.ts +2 -2
- package/dist/engine/devices.d.ts +3 -3
- package/dist/engine/fit.d.ts +4 -4
- package/dist/engine/foldhand.d.ts +2 -2
- package/dist/engine/frame.d.ts +6 -6
- package/dist/engine/frames.d.ts +4 -4
- package/dist/engine/fresh.d.ts +12 -5
- package/dist/engine/header.d.ts +3 -1
- package/dist/engine/identity.d.ts +4 -4
- package/dist/engine/index.d.ts +7 -7
- package/dist/engine/locale.d.ts +2 -2
- package/dist/engine/morph.d.ts +2 -2
- package/dist/engine/native.d.ts +8 -8
- package/dist/engine/pageshot.d.ts +24 -4
- package/dist/engine/placeholder.d.ts +3 -3
- package/dist/engine/reload.d.ts +2 -2
- package/dist/engine/safaridraw.d.ts +24 -3
- package/dist/engine/screen.d.ts +2 -2
- package/dist/engine/scrollkeep.d.ts +1 -1
- package/dist/engine/store.d.ts +11 -11
- package/dist/engine/storekeys.d.ts +34 -0
- package/dist/engine/style.d.ts +1 -1
- package/dist/engine/tabicon.d.ts +2 -2
- package/dist/engine/underbar.d.ts +26 -7
- package/dist/engine/underneath.d.ts +1 -0
- package/dist/engine/width.d.ts +3 -3
- package/dist/{framekit-r16k97n7.js → framekit-n57ts9zt.js} +959 -87
- package/dist/{framekit-40pzennw.js → framekit-wqp811a2.js} +959 -87
- package/dist/grab/clipboard.d.ts +2 -0
- package/dist/{index-jfv7vavj.js → index-311fys81.js} +93 -29
- package/dist/index-3dcgysws.js +77 -0
- package/dist/{index-ztnjefrh.js → index-585hs9tp.js} +5 -1
- package/dist/{index-za4ppxay.js → index-6t0w5s7p.js} +1 -1
- package/dist/{index-tqq2ygpj.js → index-9targr2f.js} +26 -16
- package/dist/{index-t4kssacm.js → index-abwqw8jh.js} +6 -1
- package/dist/{index-s6yzsvs4.js → index-b8cnnbpr.js} +25 -18
- package/dist/{index-xxbb8y41.js → index-cfrnrg24.js} +20 -14
- package/dist/{index-v2v4rmpe.js → index-dvtbh3c8.js} +24 -18
- package/dist/{index-0qkj2mgb.js → index-j8hrzag1.js} +14 -11
- package/dist/{index-cb91vcka.js → index-k4w5v53q.js} +1 -1
- package/dist/{index-q53j8wg5.js → index-n31pn4ax.js} +19 -15
- package/dist/{index-s6fya8pm.js → index-pvknvvkw.js} +11 -10
- package/dist/{index-3nwycv3p.js → index-qz04adp5.js} +20 -14
- package/dist/{index-ymqm185m.js → index-rps0bdq9.js} +1 -1
- package/dist/{index-a8ffw5ft.js → index-szd9bddn.js} +1 -1
- package/dist/{index-8d1yk9d2.js → index-t7a07nm9.js} +59 -39
- package/dist/{index-2jc9dnta.js → index-vhda420r.js} +11 -5
- package/dist/{index-xs29b55n.js → index-vmprrfwe.js} +5 -2
- package/dist/{index-fjrrgd9h.js → index-vmz7htwn.js} +1 -1
- package/dist/index.d.ts +14 -8
- package/dist/index.global.js +182 -165
- package/dist/index.js +57 -32
- package/dist/instance.d.ts +7 -1
- package/dist/mark.d.ts +50 -0
- package/dist/{react-vvc4x9kq.js → react-0tbd51s3.js} +14 -11
- package/dist/{react-0gxs9aef.js → react-4ezjf7mq.js} +24 -18
- package/dist/react-4qn9vsjw.js +78 -0
- package/dist/{react-73reavv4.js → react-4tcwpama.js} +1 -1
- package/dist/{react-6ngtb6p9.js → react-7eyps0cg.js} +1 -1
- package/dist/{react-zp7fdw8e.js → react-881wvm1z.js} +59 -39
- package/dist/{react-yx3g9k55.js → react-amvrbng8.js} +5 -2
- package/dist/{react-5rq7bnsy.js → react-atw9y8ny.js} +5 -1
- package/dist/{react-4phtr2nd.js → react-dg4bjv3j.js} +1 -1
- package/dist/{react-meve34wp.js → react-hdneb4v3.js} +11 -5
- package/dist/{react-h9w04skh.js → react-j87bdhhe.js} +4 -1
- package/dist/{react-wtgvkf6g.js → react-mkafgzqf.js} +1 -1
- package/dist/{react-fq4551ks.js → react-pf7fc2f3.js} +11 -10
- package/dist/{react-0r5418av.js → react-rbmk30xk.js} +92 -29
- package/dist/{react-actmnkwp.js → react-rxw73n04.js} +1 -1
- package/dist/{react-8nmtt0ge.js → react-w94cfn87.js} +19 -15
- package/dist/{react-3ev6rwqz.js → react-x209et38.js} +26 -16
- package/dist/{react-5h7pxnax.js → react-zj0dbpdg.js} +25 -18
- package/dist/react.d.ts +3 -1
- package/dist/react.js +60 -33
- package/dist/{replay-pmesjfa3.js → replay-3xqgt3xg.js} +8 -8
- package/dist/{replay-m5g8km9y.js → replay-48gn27bj.js} +8 -8
- package/dist/storage/onload.d.ts +1 -1
- package/dist/{storageview-9a6zm47z.js → storageview-5tvmca8y.js} +16 -13
- package/dist/{storageview-x62v1c3j.js → storageview-ec52x60p.js} +16 -13
- package/dist/styles/force.d.ts +3 -1
- package/dist/types.d.ts +4 -4
- package/dist/ui/actions.d.ts +3 -3
- package/dist/ui/bindings.d.ts +1 -1
- package/dist/ui/catalog.d.ts +14 -14
- package/dist/ui/changes.d.ts +1 -1
- package/dist/ui/colors.d.ts +1 -1
- package/dist/ui/deviceknobs.d.ts +2 -2
- package/dist/ui/editors.d.ts +3 -3
- package/dist/ui/foldslider.d.ts +2 -2
- package/dist/ui/keys.d.ts +1 -1
- package/dist/ui/list.d.ts +10 -10
- package/dist/ui/palette.d.ts +2 -2
- package/dist/ui/pin.d.ts +2 -2
- package/dist/ui/prefs.d.ts +1 -1
- package/dist/ui/rows.d.ts +3 -3
- package/dist/ui/storageview.d.ts +2 -2
- package/dist/ui/stylesview.d.ts +3 -3
- package/dist/ui/swatches.d.ts +2 -2
- package/package.json +2 -1
- package/skills/knobs/SKILL.md +36 -35
- package/dist/index-5tv6sr74.js +0 -23
- package/dist/react-t2qnewz2.js +0 -24
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
HTML_MIN,
|
|
5
5
|
forcedSelector,
|
|
6
6
|
forcing
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-9targr2f.js";
|
|
8
8
|
import"./index-58jdczmj.js";
|
|
9
9
|
import {
|
|
10
10
|
HIDE_ATTRIBUTE,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
rulesOf,
|
|
30
30
|
successor,
|
|
31
31
|
textEdit
|
|
32
|
-
} from "./index-
|
|
32
|
+
} from "./index-dvtbh3c8.js";
|
|
33
33
|
import {
|
|
34
34
|
compareSpecificity,
|
|
35
35
|
edits,
|
|
@@ -38,11 +38,11 @@ import {
|
|
|
38
38
|
readSavedEdit,
|
|
39
39
|
specificity,
|
|
40
40
|
splitList
|
|
41
|
-
} from "./index-
|
|
41
|
+
} from "./index-n31pn4ax.js";
|
|
42
42
|
import {
|
|
43
43
|
boxValue,
|
|
44
44
|
sizeText
|
|
45
|
-
} from "./index-
|
|
45
|
+
} from "./index-rps0bdq9.js";
|
|
46
46
|
import {
|
|
47
47
|
TITLE_MAX,
|
|
48
48
|
crumbText,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
swatchOf,
|
|
55
55
|
valueParts,
|
|
56
56
|
variableTip
|
|
57
|
-
} from "./index-
|
|
57
|
+
} from "./index-6t0w5s7p.js";
|
|
58
58
|
import {
|
|
59
59
|
NEW_RULE_SHEET,
|
|
60
60
|
cssOff,
|
|
@@ -76,13 +76,13 @@ import {
|
|
|
76
76
|
valueText,
|
|
77
77
|
varReferences,
|
|
78
78
|
variableNames
|
|
79
|
-
} from "./index-
|
|
79
|
+
} from "./index-szd9bddn.js";
|
|
80
80
|
import {
|
|
81
81
|
elementSelector
|
|
82
|
-
} from "./index-
|
|
82
|
+
} from "./index-abwqw8jh.js";
|
|
83
83
|
import {
|
|
84
84
|
copyText
|
|
85
|
-
} from "./index-
|
|
85
|
+
} from "./index-585hs9tp.js";
|
|
86
86
|
import {
|
|
87
87
|
button,
|
|
88
88
|
el,
|
|
@@ -93,31 +93,33 @@ import {
|
|
|
93
93
|
segments,
|
|
94
94
|
toolToggle,
|
|
95
95
|
toolbar
|
|
96
|
-
} from "./index-
|
|
96
|
+
} from "./index-vmz7htwn.js";
|
|
97
97
|
import {
|
|
98
98
|
getState,
|
|
99
99
|
subscribe
|
|
100
|
-
} from "./index-
|
|
100
|
+
} from "./index-t7a07nm9.js";
|
|
101
101
|
import {
|
|
102
102
|
isMac
|
|
103
|
-
} from "./index-
|
|
103
|
+
} from "./index-b8cnnbpr.js";
|
|
104
104
|
import {
|
|
105
105
|
comboLabel,
|
|
106
106
|
isDevknobs,
|
|
107
107
|
letterMatches,
|
|
108
108
|
typesInField,
|
|
109
109
|
withShift
|
|
110
|
-
} from "./index-
|
|
110
|
+
} from "./index-vhda420r.js";
|
|
111
111
|
import {
|
|
112
112
|
SIDES,
|
|
113
113
|
boxModel,
|
|
114
114
|
contentSize,
|
|
115
115
|
ownInline
|
|
116
|
-
} from "./index-
|
|
116
|
+
} from "./index-311fys81.js";
|
|
117
117
|
import"./index-a974q3aa.js";
|
|
118
118
|
import {
|
|
119
|
-
__require
|
|
120
|
-
|
|
119
|
+
__require,
|
|
120
|
+
isMarked,
|
|
121
|
+
ownSelector
|
|
122
|
+
} from "./index-3dcgysws.js";
|
|
121
123
|
|
|
122
124
|
// src/edit/text.ts
|
|
123
125
|
var MARKUP_KINDS = new Set(["text", "attr", "html", "hide", "delete", "move"]);
|
|
@@ -304,7 +306,7 @@ function promptText(edits2) {
|
|
|
304
306
|
var COPIED = "copied";
|
|
305
307
|
var NOT_COPIED = "could not copy";
|
|
306
308
|
var COPIED_FOR = 1200;
|
|
307
|
-
var AGENT_NOTE = "agents read and apply edits:
|
|
309
|
+
var AGENT_NOTE = "agents read and apply edits: knobs.edits() / setEdits()";
|
|
308
310
|
function keptLine(kept, missed) {
|
|
309
311
|
const made = `${kept} ${kept === 1 ? "edit" : "edits"} kept from before the reload`;
|
|
310
312
|
return missed > 0 ? `${made}, ${missed} could not be found` : made;
|
|
@@ -479,7 +481,7 @@ var found = new WeakMap;
|
|
|
479
481
|
var locateSource = (element) => {
|
|
480
482
|
let pending = found.get(element);
|
|
481
483
|
if (!pending) {
|
|
482
|
-
pending = import("./context-
|
|
484
|
+
pending = import("./context-h1bdt8w3.js").then(({ grabEntry }) => grabEntry(element)).then(({ source }) => {
|
|
483
485
|
if (!source || source.origin !== "app")
|
|
484
486
|
return null;
|
|
485
487
|
return source.lineNumber ? `${source.filePath}:${source.lineNumber}` : source.filePath;
|
|
@@ -1616,7 +1618,7 @@ function isFrame(element) {
|
|
|
1616
1618
|
return element.namespaceURI === "http://www.w3.org/1999/xhtml" && (element.localName === "head" || element.localName === "body");
|
|
1617
1619
|
}
|
|
1618
1620
|
function holdsOwn(element) {
|
|
1619
|
-
return element.querySelector(
|
|
1621
|
+
return element.querySelector(ownSelector()) !== null;
|
|
1620
1622
|
}
|
|
1621
1623
|
function actionsFor(row) {
|
|
1622
1624
|
if (!row || row.pseudo !== null)
|
|
@@ -2783,7 +2785,7 @@ function isOwn(record) {
|
|
|
2783
2785
|
if (record.type !== "childList")
|
|
2784
2786
|
return false;
|
|
2785
2787
|
const nodes = [...Array.from(record.addedNodes), ...Array.from(record.removedNodes)];
|
|
2786
|
-
return nodes.length > 0 && nodes.every((node) => isElement2(node) && node
|
|
2788
|
+
return nodes.length > 0 && nodes.every((node) => isElement2(node) && isMarked(node));
|
|
2787
2789
|
}
|
|
2788
2790
|
function knobsOf(state) {
|
|
2789
2791
|
return JSON.stringify({ ...state, panel: null });
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { type FitStyle, type Media } from "./pageshot";
|
|
2
|
+
/** A stretch of the document, from `top` to `bottom`, in its css px. */
|
|
3
|
+
export interface Span {
|
|
4
|
+
top: number;
|
|
5
|
+
bottom: number;
|
|
6
|
+
}
|
|
7
|
+
/** The stretch of the document whose pictures are read: the band `band` px tall under the viewport, and `REACH` past it each way. */
|
|
8
|
+
export declare function bandSpan(scrollY: number, innerHeight: number, band: number): Span;
|
|
9
|
+
/** Is the band, `band` px tall under the viewport, still inside `span`? */
|
|
10
|
+
export declare function inSpan(span: Span, scrollY: number, innerHeight: number, band: number): boolean;
|
|
11
|
+
/** Does a box at `rect` in the viewport, scrolled `scrollY`, meet `span`? Only one with an area does. */
|
|
12
|
+
export declare function meets(rect: {
|
|
13
|
+
top: number;
|
|
14
|
+
bottom: number;
|
|
15
|
+
width: number;
|
|
16
|
+
height: number;
|
|
17
|
+
}, scrollY: number, span: Span): boolean;
|
|
18
|
+
/**
|
|
19
|
+
* The px a picture `media` px as made is read at, to show in a box `wide` by
|
|
20
|
+
* `tall` css px at `ratio` device px each: no more than it has, nor than the
|
|
21
|
+
* box shows of it at most, as it covers the box, nor than `LARGEST`.
|
|
22
|
+
*/
|
|
23
|
+
export declare function readSize(media: {
|
|
24
|
+
width: number;
|
|
25
|
+
height: number;
|
|
26
|
+
}, wide: number, tall: number, ratio: number): {
|
|
27
|
+
width: number;
|
|
28
|
+
height: number;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* A picture `width` by `height` px as made, of `data`, stretched over it: it
|
|
32
|
+
* lays out as the page's picture does, however small `data` was read, and
|
|
33
|
+
* stretches as a picture does where the page fills a box of another shape.
|
|
34
|
+
*/
|
|
35
|
+
export declare function sizedPicture(data: string, width: number, height: number, rendering?: string): string;
|
|
36
|
+
/** Let go of the pictures read and of those made to read them by. */
|
|
37
|
+
export declare function forgetPixels(): void;
|
|
38
|
+
/** Is `address`, taken against `base`, of `origin`? A same-origin picture is read as it is, with no CORS to ask for. */
|
|
39
|
+
export declare function sameOrigin(address: string, base: string, origin: string): boolean;
|
|
40
|
+
/** `value`, a list such as computed backgrounds are, cut at the commas outside its brackets. */
|
|
41
|
+
export declare function layersOf(value: string): string[];
|
|
42
|
+
/** The address of a layer that is one `url(...)`, or null for a gradient, `none` or anything else. */
|
|
43
|
+
export declare function urlOf(layer: string): string | null;
|
|
44
|
+
/** A box in the document, in its css px. */
|
|
45
|
+
export interface Box {
|
|
46
|
+
left: number;
|
|
47
|
+
top: number;
|
|
48
|
+
width: number;
|
|
49
|
+
height: number;
|
|
50
|
+
}
|
|
51
|
+
/** A picture the frame may not read, where it shows in the document, fitted by `style`, and the canvas made to draw it from, to let go of once drawn. */
|
|
52
|
+
export interface Unread {
|
|
53
|
+
media: Media;
|
|
54
|
+
rect: Box;
|
|
55
|
+
style: FitStyle;
|
|
56
|
+
made?: HTMLCanvasElement;
|
|
57
|
+
/** The box of what holds it and cuts it off, and the radius of its corners, where something does. */
|
|
58
|
+
clip?: {
|
|
59
|
+
rect: Box;
|
|
60
|
+
radius: number;
|
|
61
|
+
};
|
|
62
|
+
/** Does something else of the page show over it, to draw back over it? */
|
|
63
|
+
covered?: boolean;
|
|
64
|
+
/** The video it is, where it plays, to draw again at each of its frames. */
|
|
65
|
+
live?: HTMLVideoElement;
|
|
66
|
+
}
|
|
67
|
+
/** What goes into the copy of the page near the band, and what is drawn over it. */
|
|
68
|
+
export interface BandMedia {
|
|
69
|
+
/** For each element whose pictures are read: what to set on its copy. */
|
|
70
|
+
fills: Map<Element, (copy: Element) => void>;
|
|
71
|
+
/** What the frame may not read, in the order to draw it. */
|
|
72
|
+
unread: Unread[];
|
|
73
|
+
/** What of the page shows over what the frame may not read, drawn back over it. */
|
|
74
|
+
above: Set<Element>;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* The pictures, videos, drawings and background pictures of the page in
|
|
78
|
+
* `doc` that meet `span`, read for its copy, the page scrolled `scrollY`
|
|
79
|
+
* down the copy. `loaded` is told when a background picture comes that was
|
|
80
|
+
* not there yet.
|
|
81
|
+
*/
|
|
82
|
+
export declare function bandMedia(doc: Document, view: Window, span: Span, loaded: () => void, scrollY?: number): BandMedia;
|
|
83
|
+
/** What the frame may not read near the band, or a video that plays there, drawn by hand, and the stretch of the document it covers. */
|
|
84
|
+
export interface Overlay {
|
|
85
|
+
canvas: HTMLCanvasElement;
|
|
86
|
+
span: Span;
|
|
87
|
+
/** The document's width in css px, and the canvas's px to a css px. */
|
|
88
|
+
width: number;
|
|
89
|
+
ratio: number;
|
|
90
|
+
/** The videos on it that play, to draw again at each of their frames. */
|
|
91
|
+
live: Unread[];
|
|
92
|
+
/**
|
|
93
|
+
* What of the page shows over it, to draw back over it once decoded: a
|
|
94
|
+
* drawing of the copy with all else hidden, and the pictures it shows over.
|
|
95
|
+
*/
|
|
96
|
+
above: {
|
|
97
|
+
src: string;
|
|
98
|
+
parts: Unread[];
|
|
99
|
+
} | null;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Draw `unread`, in a document `width` css px wide, on a canvas over `span` of
|
|
103
|
+
* it, `ratio` px to its css px, or null where there is nothing to draw. Only
|
|
104
|
+
* shown, never read, so a picture from another origin draws on it too.
|
|
105
|
+
* `above`, a drawing of what of the page shows over those covered, is drawn
|
|
106
|
+
* back over them with `drawAbove`.
|
|
107
|
+
*/
|
|
108
|
+
export declare function overlayOf(unread: Unread[], span: Span, width: number, ratio: number, above?: string | null): Overlay | null;
|
|
109
|
+
/**
|
|
110
|
+
* `image`, the drawing `overlay.above` names, drawn once on a canvas as large
|
|
111
|
+
* as the overlay, over the same stretch: a video that plays has it drawn back
|
|
112
|
+
* over each of its frames, which the drawing itself is too large to be at
|
|
113
|
+
* that pace. Null where it will not draw.
|
|
114
|
+
*/
|
|
115
|
+
export declare function raiseOf(overlay: Overlay, image: CanvasImageSource): HTMLCanvasElement | null;
|
|
116
|
+
/** Draw `raised`, from `raiseOf`, over the overlay where what it shows covers a picture drawn on it: over `only` alone where given. */
|
|
117
|
+
export declare function drawAbove(overlay: Overlay, raised: CanvasImageSource, only?: Unread): void;
|
|
118
|
+
/** Draw `one`, a video that plays on the overlay, again as it shows now, and `raised`, what shows over it, back over it. */
|
|
119
|
+
export declare function redrawLive(overlay: Overlay, one: Unread, raised: CanvasImageSource | null): void;
|
package/dist/engine/bezels.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { KnobsState, OrientationValue } from "../types";
|
|
2
2
|
import { type FoldShots } from "./fold";
|
|
3
3
|
import { type Mock, type Radius } from "./mock";
|
|
4
4
|
/**
|
|
@@ -129,7 +129,7 @@ export declare function foldShots(): FoldPictures | null;
|
|
|
129
129
|
/** May the Duo's fold frames still come in for a fold: are they loading or loaded, and has none failed? */
|
|
130
130
|
export declare function foldShotsDue(): boolean;
|
|
131
131
|
/** What picks the body drawn around the frame. */
|
|
132
|
-
export type BodyKnobs = Pick<
|
|
132
|
+
export type BodyKnobs = Pick<KnobsState, "mock" | "device" | "orientation" | "posture">;
|
|
133
133
|
/**
|
|
134
134
|
* The body around the frame: the maker's bezel image where the device has
|
|
135
135
|
* one, and the drawn mock where it has none or the image does not load. While
|
|
@@ -164,13 +164,15 @@ export interface Shape extends Rect {
|
|
|
164
164
|
marks: Mark[];
|
|
165
165
|
/**
|
|
166
166
|
* Where the shape shows the domain: its center in Safari, its start in
|
|
167
|
-
* Chrome. A pill's width is the domain's advance and `pad`.
|
|
167
|
+
* Chrome. A pill's width is the domain's advance and `pad`. An address's
|
|
168
|
+
* text keeps `clear` from the center of each glyph at its ends.
|
|
168
169
|
*/
|
|
169
170
|
text?: {
|
|
170
171
|
x: number;
|
|
171
172
|
y: number;
|
|
172
173
|
size: number;
|
|
173
174
|
pad?: number;
|
|
175
|
+
clear?: number;
|
|
174
176
|
};
|
|
175
177
|
}
|
|
176
178
|
/**
|
package/dist/engine/check.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { KnobsStatePatch } from "../types";
|
|
2
2
|
/**
|
|
3
3
|
* Throw a TypeError at a patch an agent got wrong: a knob or a field the
|
|
4
4
|
* state does not have, or a value outside what `describe()` says the knob
|
|
5
5
|
* takes, or for a field it leaves out, what the stored state reads.
|
|
6
6
|
* The whole patch is checked before any of it is applied.
|
|
7
7
|
*/
|
|
8
|
-
export declare function checkPatch(patch: unknown): asserts patch is
|
|
8
|
+
export declare function checkPatch(patch: unknown): asserts patch is KnobsStatePatch;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { KnobsState } from "../types";
|
|
2
2
|
/**
|
|
3
3
|
* What applying a knob takes: nothing, a load or reload of the page in the
|
|
4
4
|
* device frame, or a reload of the whole page.
|
|
@@ -35,7 +35,7 @@ export interface KnobField {
|
|
|
35
35
|
export type KnobValue = string | number | boolean | Record<string, string | number | boolean>;
|
|
36
36
|
export interface KnobDescription {
|
|
37
37
|
/** The key in a `setState` patch. An object knob may be patched field by field. */
|
|
38
|
-
key: keyof
|
|
38
|
+
key: keyof KnobsState;
|
|
39
39
|
description: string;
|
|
40
40
|
value: KnobShape;
|
|
41
41
|
/** The value `reset()` goes back to, or for `panel`, which `reset()` leaves as it is, the first mount's. */
|
package/dist/engine/devices.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { KnobsState, KnobsStatePatch, OrientationValue, PostureValue } from "../types";
|
|
2
2
|
export type DeviceKind = "phone" | "tablet" | "laptop" | "desktop";
|
|
3
3
|
export interface DevicePreset {
|
|
4
4
|
id: string;
|
|
@@ -86,7 +86,7 @@ export declare function turn(size: {
|
|
|
86
86
|
* the patch says how. A new orientation alone turns a frame that has both a
|
|
87
87
|
* width and a height. What the patch sets itself wins over all of it.
|
|
88
88
|
*/
|
|
89
|
-
export declare function hold(state:
|
|
89
|
+
export declare function hold(state: KnobsState, patch: KnobsStatePatch): KnobsStatePatch;
|
|
90
90
|
/**
|
|
91
91
|
* Keep the device fields true to the size: the orientation is the way the
|
|
92
92
|
* frame stands, portrait while it has no width or height to turn, and a size
|
|
@@ -94,4 +94,4 @@ export declare function hold(state: DevknobsState, patch: DevknobsStatePatch): D
|
|
|
94
94
|
* brought, unless the change named a browser itself (`dropUa` false). Without a foldable,
|
|
95
95
|
* the posture is the first, so one picked next comes up in it.
|
|
96
96
|
*/
|
|
97
|
-
export declare function settle(state:
|
|
97
|
+
export declare function settle(state: KnobsState, dropUa?: boolean): KnobsState;
|
package/dist/engine/fit.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { KnobsState, PostureValue, SideValue } from "../types";
|
|
2
2
|
import type { Sides } from "./mock";
|
|
3
3
|
import { type Point } from "./zoom";
|
|
4
4
|
/** The room over the readout's row, so it stands clear of the window's top edge, in px. */
|
|
@@ -28,7 +28,7 @@ export interface Fit {
|
|
|
28
28
|
top: number;
|
|
29
29
|
}
|
|
30
30
|
/** Does the letterbox read the frame out? A frame the window's size, fitted, is the window. */
|
|
31
|
-
export declare function hasStrip(knobs: Pick<
|
|
31
|
+
export declare function hasStrip(knobs: Pick<KnobsState, "width" | "height" | "zoom">): boolean;
|
|
32
32
|
/**
|
|
33
33
|
* Place a frame in a letterbox of `size`, under its readout strip. A width or
|
|
34
34
|
* height of the frame's own keeps a margin around it, and the window's own
|
|
@@ -46,7 +46,7 @@ export declare function hasStrip(knobs: Pick<DevknobsState, "width" | "height" |
|
|
|
46
46
|
* is fitted and centered. With a mock, a fit is drawn a hair smaller so the
|
|
47
47
|
* screen is a whole number of the `ratio`'s device pixels tall.
|
|
48
48
|
*/
|
|
49
|
-
export declare function fit(knobs: Pick<
|
|
49
|
+
export declare function fit(knobs: Pick<KnobsState, "width" | "height" | "zoom">, size: {
|
|
50
50
|
width: number;
|
|
51
51
|
height: number;
|
|
52
52
|
}, options?: {
|
|
@@ -70,7 +70,7 @@ export declare function origin(place: Fit, room: {
|
|
|
70
70
|
* A phone's browser leaves the page less of the screen, and that is the size
|
|
71
71
|
* it says. The zoom control beside it says the scale.
|
|
72
72
|
*/
|
|
73
|
-
export declare function label(place: Fit, knobs: Pick<
|
|
73
|
+
export declare function label(place: Fit, knobs: Pick<KnobsState, "dpr" | "height" | "device"> & {
|
|
74
74
|
posture?: PostureValue;
|
|
75
75
|
}, page?: {
|
|
76
76
|
width: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { KnobsState } from "../types";
|
|
2
2
|
import { foldRest, holdingHinge, watchFold, watchHinge } from "./foldrun";
|
|
3
3
|
/**
|
|
4
4
|
* A hand on a foldable's hinge, for the panel's fold slider, which is
|
|
@@ -12,7 +12,7 @@ export { foldRest, holdingHinge, watchFold, watchHinge };
|
|
|
12
12
|
* of one toward its other posture, which stays shut or open till the hand
|
|
13
13
|
* moves. False where it cannot, as while a device turns or changes.
|
|
14
14
|
*/
|
|
15
|
-
export declare function takeHinge(state:
|
|
15
|
+
export declare function takeHinge(state: KnobsState): boolean;
|
|
16
16
|
/** Move the hinge the hand holds toward `target`, 0 shut to 1 open. False where no hand holds one. */
|
|
17
17
|
export declare function moveHinge(target: number): boolean;
|
|
18
18
|
/**
|
package/dist/engine/frame.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type BoxRing } from "../grab/boxmodel";
|
|
2
|
-
import type {
|
|
2
|
+
import type { KnobsState, KnobsStatePatch, PanelValue, SchemeValue } from "../types";
|
|
3
3
|
/** Marks the iframe the width knob renders the page in. */
|
|
4
|
-
export declare const FRAME_ATTRIBUTE
|
|
4
|
+
export declare const FRAME_ATTRIBUTE: "data-devknobs-frame";
|
|
5
5
|
/**
|
|
6
6
|
* The same frame by window name. A page that cannot reach its frame element,
|
|
7
7
|
* such as one on `file:`, still knows it is framed and never opens a frame of
|
|
@@ -24,7 +24,7 @@ export type DevknobsMessage =
|
|
|
24
24
|
{
|
|
25
25
|
source: "devknobs";
|
|
26
26
|
type: "state";
|
|
27
|
-
state:
|
|
27
|
+
state: KnobsState;
|
|
28
28
|
native?: boolean;
|
|
29
29
|
} | {
|
|
30
30
|
source: "devknobs";
|
|
@@ -73,14 +73,14 @@ export declare function isDevknobsFrame(): boolean;
|
|
|
73
73
|
export declare function nativeScheme(scheme: SchemeValue): boolean;
|
|
74
74
|
export declare function handsSchemeDown(root: Node): boolean;
|
|
75
75
|
/** The knobs that bring the frame up. */
|
|
76
|
-
export type FrameKnobs = Pick<
|
|
76
|
+
export type FrameKnobs = Pick<KnobsState, "width" | "height" | "frame" | "dpr" | "vision">;
|
|
77
77
|
/** Each of those knobs at the value that leaves the frame down. */
|
|
78
78
|
export declare const UNFRAMED: FrameKnobs;
|
|
79
79
|
/**
|
|
80
80
|
* The frame leaving on its own: every knob that keeps it up off and the panel
|
|
81
81
|
* unpinned. No device as well, so the browser it brought goes as picking none does.
|
|
82
82
|
*/
|
|
83
|
-
export declare const EXITED:
|
|
83
|
+
export declare const EXITED: KnobsStatePatch;
|
|
84
84
|
/** The frame knobs, with the panel where it can be pinned to its side. */
|
|
85
85
|
export type Framing = FrameKnobs & {
|
|
86
86
|
panel?: Pick<PanelValue, "docked">;
|
|
@@ -111,7 +111,7 @@ export declare function frameForced(knobs: Framing): boolean;
|
|
|
111
111
|
* The knobs a framed page runs with. It is the viewport already, so it never
|
|
112
112
|
* frames itself, for a knob or for a pinned panel.
|
|
113
113
|
*/
|
|
114
|
-
export declare function framed(state:
|
|
114
|
+
export declare function framed(state: KnobsState): KnobsState;
|
|
115
115
|
/**
|
|
116
116
|
* Read a devknobs message sent by `from` on `origin`. Anything from another
|
|
117
117
|
* window or origin, or in another shape, is null.
|
package/dist/engine/frames.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { KnobsState, ZoomValue } from "../types";
|
|
2
2
|
import { type ZoomAction } from "./frame";
|
|
3
3
|
import type { FrameRefusal } from "./native";
|
|
4
4
|
import type * as Kit from "./framekit";
|
|
@@ -15,8 +15,8 @@ type FrameKit = typeof Kit;
|
|
|
15
15
|
export declare function loadFrames(): Promise<void>;
|
|
16
16
|
/** For tests: load the kit from `next` in place of `framekit.ts`. */
|
|
17
17
|
export declare function loadKitWith(next: () => Promise<FrameKit>): void;
|
|
18
|
-
export declare function apply(state:
|
|
19
|
-
export declare function sync(state:
|
|
18
|
+
export declare function apply(state: KnobsState): void;
|
|
19
|
+
export declare function sync(state: KnobsState): void;
|
|
20
20
|
export declare function reset(): void;
|
|
21
21
|
export declare function onExit(handler: (() => void) | null): void;
|
|
22
22
|
export declare function onZoom(handler: ((zoom: ZoomValue) => void) | null): void;
|
|
@@ -33,7 +33,7 @@ export declare function idle(): boolean;
|
|
|
33
33
|
export declare function panelSized(glide: boolean): void;
|
|
34
34
|
export declare function zoomKey(action: ZoomAction): boolean;
|
|
35
35
|
export declare function landSplash(): void;
|
|
36
|
-
export declare function takeHinge(state:
|
|
36
|
+
export declare function takeHinge(state: KnobsState): boolean;
|
|
37
37
|
export declare function moveHinge(target: number): boolean;
|
|
38
38
|
export declare function letGo(stop: number): boolean;
|
|
39
39
|
export declare function holdingHinge(): boolean;
|
package/dist/engine/fresh.d.ts
CHANGED
|
@@ -1,18 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Fresh mode, and the one way to web storage. With `
|
|
3
|
-
* page's address, devknobs shows what a first visit
|
|
2
|
+
* Fresh mode, and the one way to web storage. With `knobs=fresh` (or the old
|
|
3
|
+
* `devknobs=fresh`) in the page's address, devknobs shows what a first visit
|
|
4
|
+
* sees: it leaves
|
|
4
5
|
* `localStorage` alone, and a load of the page it did not ask for starts with
|
|
5
6
|
* none of its items in `sessionStorage`. Every read and write devknobs makes
|
|
6
7
|
* for itself goes through `webStorage`, so the rule holds in one place. The
|
|
7
8
|
* storage view shows the page's own items, and reaches those directly.
|
|
8
9
|
*/
|
|
9
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* The address parameter and the value that turn fresh mode on. `withFresh`
|
|
12
|
+
* writes this one, the old name, so a copy older than 0.8 in the width knob's
|
|
13
|
+
* frame still reads it. Until 1.0.
|
|
14
|
+
*/
|
|
10
15
|
export declare const FRESH_PARAM = "devknobs";
|
|
11
16
|
export declare const FRESH_VALUE = "fresh";
|
|
17
|
+
/** The parameter's new name, which turns fresh mode on as well. */
|
|
18
|
+
export declare const KNOBS_FRESH_PARAM = "knobs";
|
|
12
19
|
/** On the width knob's frame while the page above is in fresh mode. */
|
|
13
|
-
export declare const FRESH_ATTRIBUTE
|
|
20
|
+
export declare const FRESH_ATTRIBUTE: "data-devknobs-fresh";
|
|
14
21
|
/** Where a reload devknobs is about to ask for is timed, in `sessionStorage`. */
|
|
15
|
-
export declare const FRESH_RELOAD_KEY = "
|
|
22
|
+
export declare const FRESH_RELOAD_KEY = "knobs:fresh-reload";
|
|
16
23
|
/** The version of the timing `FRESH_RELOAD_KEY` keeps. Bump it with a change of shape, see stored.ts. */
|
|
17
24
|
export declare const FRESH_RELOAD_VERSION = 1;
|
|
18
25
|
/** How long a reload devknobs asked for has to bring its page, in ms. A later load is the user's. */
|
package/dist/engine/header.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { ClockValue } from "../types";
|
|
2
2
|
/** The request header that tells the page's own server what time the clock says. */
|
|
3
|
-
export declare const NOW_HEADER = "x-
|
|
3
|
+
export declare const NOW_HEADER = "x-knobs-now";
|
|
4
|
+
/** The header's old name, sent beside it with the same value until 1.0. */
|
|
5
|
+
export declare const OLD_NOW_HEADER = "x-devknobs-now";
|
|
4
6
|
/** Asked for, and a clock set to send. The real time is no news to a server. */
|
|
5
7
|
export declare function sends(clock: ClockValue): boolean;
|
|
6
8
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { KnobsState, DprValue } from "../types";
|
|
2
2
|
/**
|
|
3
3
|
* What a page reads once as it loads and keeps: the browser, the touch screen
|
|
4
4
|
* and the pixel ratio. A script that sniffed the user agent or set a canvas up
|
|
@@ -13,11 +13,11 @@ export interface Identity {
|
|
|
13
13
|
/** Real phone mode: the frame's page loads go to servers as the device, so the page loads again when it turns. */
|
|
14
14
|
served?: boolean;
|
|
15
15
|
}
|
|
16
|
-
type IdentityKnobs = Pick<
|
|
17
|
-
panel?: Pick<
|
|
16
|
+
type IdentityKnobs = Pick<KnobsState, "ua" | "device" | "dpr"> & {
|
|
17
|
+
panel?: Pick<KnobsState["panel"], "realPhone">;
|
|
18
18
|
};
|
|
19
19
|
/** What the frame's new window is patched with: its identity, and the screen it reads. */
|
|
20
|
-
type PatchKnobs = IdentityKnobs & Pick<
|
|
20
|
+
type PatchKnobs = IdentityKnobs & Pick<KnobsState, "posture" | "orientation">;
|
|
21
21
|
export declare function identityOf(state: IdentityKnobs): Identity;
|
|
22
22
|
/** Does a page loaded as `loaded` read wrong under `next`? Not while no page has loaded. */
|
|
23
23
|
export declare function stale(loaded: Identity | null, next: Identity): boolean;
|
package/dist/engine/index.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { KnobsState, KnobsStatePatch } from "../types";
|
|
2
2
|
import { type NativeDriver, type NativeSetting } from "./native";
|
|
3
3
|
export interface EngineOptions {
|
|
4
4
|
/** Keep the knobs in sessionStorage across reloads. Defaults to true. */
|
|
5
5
|
persist?: boolean;
|
|
6
6
|
/** Knobs to apply on top of the stored state. */
|
|
7
|
-
state?:
|
|
7
|
+
state?: KnobsStatePatch;
|
|
8
8
|
/**
|
|
9
9
|
* A host that sets text size, offline, the prefers knobs or the viewport
|
|
10
10
|
* for real. Those knobs leave the page alone and go to it instead.
|
|
11
11
|
*/
|
|
12
12
|
native?: NativeDriver;
|
|
13
13
|
}
|
|
14
|
-
export type Listener = (state:
|
|
15
|
-
export declare function getState():
|
|
14
|
+
export type Listener = (state: KnobsState) => void;
|
|
15
|
+
export declare function getState(): KnobsState;
|
|
16
16
|
/** Hear about every knob change, whoever made it. Returns the way to stop. */
|
|
17
17
|
export declare function subscribe(listener: Listener): () => void;
|
|
18
|
-
export declare function applyState(next:
|
|
18
|
+
export declare function applyState(next: KnobsState): void;
|
|
19
19
|
/**
|
|
20
20
|
* Turn the host's driver off or on, every knob kept. Off, it is handed its
|
|
21
21
|
* defaults and the page emulates its knobs as with no driver; on, it takes
|
|
@@ -30,14 +30,14 @@ export declare function nativeSwitch(): {
|
|
|
30
30
|
on: boolean;
|
|
31
31
|
note: string | null;
|
|
32
32
|
} | null;
|
|
33
|
-
export declare function setState(patch:
|
|
33
|
+
export declare function setState(patch: KnobsStatePatch): KnobsState;
|
|
34
34
|
/**
|
|
35
35
|
* The knobs, once the frame has caught up with them and the panel has slid
|
|
36
36
|
* where it goes. A page devknobs reloads never resolves it: ask again on the
|
|
37
37
|
* next page. Rejects while devknobs is not mounted, and when it unmounts
|
|
38
38
|
* during the wait.
|
|
39
39
|
*/
|
|
40
|
-
export declare function ready(): Promise<
|
|
40
|
+
export declare function ready(): Promise<KnobsState>;
|
|
41
41
|
/**
|
|
42
42
|
* The panel says how to tell it is still sliding, open or closed, its handle
|
|
43
43
|
* with it, so `ready()` waits for it to land. Returns the way to stop.
|
package/dist/engine/locale.d.ts
CHANGED
|
@@ -8,11 +8,11 @@ export declare const PARAGLIDE_COOKIE = "PARAGLIDE_LOCALE";
|
|
|
8
8
|
* a reload and dies with the tab: a second tab left on `system` never puts
|
|
9
9
|
* back what this one wrote.
|
|
10
10
|
*/
|
|
11
|
-
export declare const OWNER_KEY = "
|
|
11
|
+
export declare const OWNER_KEY = "knobs:locale-stores";
|
|
12
12
|
/** The version of the record `OWNER_KEY` keeps. Bump it with a change of shape, see stored.ts. */
|
|
13
13
|
export declare const OWNER_VERSION = 1;
|
|
14
14
|
/** Where the last reload devknobs asked for is timed. */
|
|
15
|
-
export declare const RELOAD_KEY = "
|
|
15
|
+
export declare const RELOAD_KEY = "knobs:locale-reload";
|
|
16
16
|
/** The version of the timing `RELOAD_KEY` keeps. Bump it with a change of shape, see stored.ts. */
|
|
17
17
|
export declare const RELOAD_VERSION = 1;
|
|
18
18
|
/** The direction `Intl` knows for the tag, script and all, or null when it does not. */
|
package/dist/engine/morph.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { KnobsState } from "../types";
|
|
2
2
|
import { type Framing } from "./frame";
|
|
3
3
|
import type { Rect } from "./mock";
|
|
4
4
|
/**
|
|
@@ -142,7 +142,7 @@ export declare function folds(from: string, to: string): boolean;
|
|
|
142
142
|
* Which way the frame is drawn, for a move: `closed`, `frame` for one with no
|
|
143
143
|
* device, or the device and the way it is held, and a foldable's posture.
|
|
144
144
|
*/
|
|
145
|
-
export declare function shapeOf(knobs: Framing & Pick<
|
|
145
|
+
export declare function shapeOf(knobs: Framing & Pick<KnobsState, "device" | "orientation" | "posture">): string;
|
|
146
146
|
/**
|
|
147
147
|
* Does going from one shape to the other move? A device that comes, goes,
|
|
148
148
|
* changes or turns does. A width, a height or a zoom changes in place, as
|
package/dist/engine/native.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ContrastValue,
|
|
1
|
+
import type { ContrastValue, KnobsState, MotionValue, SchemeValue, TextValue, TransparencyValue, UaValue } from "../types";
|
|
2
2
|
import { type UaPreset } from "./ua";
|
|
3
3
|
/** The prefers knobs, as a host sets them for real. */
|
|
4
4
|
export interface NativeMedia {
|
|
@@ -122,15 +122,15 @@ export interface NativeSetting {
|
|
|
122
122
|
change: (on: boolean) => void;
|
|
123
123
|
}
|
|
124
124
|
/** Does the frame draw something around the page, beside giving it a size? */
|
|
125
|
-
export declare function drawnAround(state:
|
|
125
|
+
export declare function drawnAround(state: KnobsState): boolean;
|
|
126
126
|
/** The viewport a host can set for these knobs, null where they need no size or the frame draws. */
|
|
127
|
-
export declare function nativeViewport(state:
|
|
127
|
+
export declare function nativeViewport(state: KnobsState): NativeViewport | null;
|
|
128
128
|
/** The browser a host sends requests as for the ua knob, null for the browser's own. */
|
|
129
129
|
export declare function nativeUa(value: UaValue): NativeUa | null;
|
|
130
130
|
/** The state the page's own emulation runs with: each knob the driver takes is left at system. */
|
|
131
|
-
export declare function inPage(state:
|
|
131
|
+
export declare function inPage(state: KnobsState, driver: NativeDriver | null): KnobsState;
|
|
132
132
|
/** The state the frame runs with: no size of its own while the driver sets the viewport. */
|
|
133
|
-
export declare function framing(state:
|
|
133
|
+
export declare function framing(state: KnobsState, driver: NativeDriver | null): KnobsState;
|
|
134
134
|
export declare function nativeEnabled(): boolean;
|
|
135
135
|
export declare function enableNative(on: boolean): void;
|
|
136
136
|
/** What the frame's next load waits for: a part the host is still setting, or null. */
|
|
@@ -138,7 +138,7 @@ export declare function handing(): Promise<void> | null;
|
|
|
138
138
|
/** What a host's answer holds the frame's load for: until it settles, at most `HAND_WAIT`, or null for none. */
|
|
139
139
|
export declare function settles(result: unknown): Promise<void> | null;
|
|
140
140
|
/** Hand the driver the knobs it takes, those that changed since. */
|
|
141
|
-
export declare function drive(driver: NativeDriver, state:
|
|
141
|
+
export declare function drive(driver: NativeDriver, state: KnobsState): void;
|
|
142
142
|
/**
|
|
143
143
|
* The browser a host sends requests as: the ua knob, unless it is the one the
|
|
144
144
|
* device brought and the device stays in the frame. The frame emulates that
|
|
@@ -146,9 +146,9 @@ export declare function drive(driver: NativeDriver, state: DevknobsState): void;
|
|
|
146
146
|
* once. A host sizing the whole tab as the device (`sized`) sends it too. In
|
|
147
147
|
* real phone mode the device's goes out for the frame's page loads alone.
|
|
148
148
|
*/
|
|
149
|
-
export declare function hostUa(state:
|
|
149
|
+
export declare function hostUa(state: KnobsState, sized: boolean): NativeUa | null;
|
|
150
150
|
/** Hand the driver the ua knob, which it takes with its switch off too. */
|
|
151
|
-
export declare function driveUa(driver: NativeDriver, state:
|
|
151
|
+
export declare function driveUa(driver: NativeDriver, state: KnobsState, sized?: boolean): void;
|
|
152
152
|
/**
|
|
153
153
|
* Hand the driver every default, for an unmount, and forget what it had. A
|
|
154
154
|
* driver never handed anything gets nothing. `ua` false keeps the ua part as
|