@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.
Files changed (108) hide show
  1. package/CHANGELOG.md +39 -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 +6 -6
  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/browserdraw.d.ts +5 -0
  18. package/dist/engine/browserkit.d.ts +2 -0
  19. package/dist/engine/devices.d.ts +3 -2
  20. package/dist/engine/dock.d.ts +3 -4
  21. package/dist/engine/frame.d.ts +1 -1
  22. package/dist/engine/frames.d.ts +1 -0
  23. package/dist/engine/identity.d.ts +5 -1
  24. package/dist/engine/index.d.ts +2 -0
  25. package/dist/engine/mock.d.ts +0 -2
  26. package/dist/engine/mockdata.d.ts +4 -3
  27. package/dist/engine/mockdraw.d.ts +2 -14
  28. package/dist/engine/morphrun.d.ts +4 -0
  29. package/dist/engine/native.d.ts +31 -3
  30. package/dist/engine/notice.d.ts +1 -2
  31. package/dist/engine/style.d.ts +15 -0
  32. package/dist/engine/width.d.ts +3 -0
  33. package/dist/{framekit-w0v516w5.js → framekit-622h6w1f.js} +264 -105
  34. package/dist/{framekit-te90cjs0.js → framekit-yx612r28.js} +264 -105
  35. package/dist/index-0zp9py56.js +859 -0
  36. package/dist/{index-9re7sv56.js → index-1mstjadm.js} +126 -2167
  37. package/dist/{index-30fc6php.js → index-4a4x1bt2.js} +1 -1
  38. package/dist/index-58jdczmj.js +44 -0
  39. package/dist/index-5tv6sr74.js +23 -0
  40. package/dist/index-6bc2ztfd.js +688 -0
  41. package/dist/index-7cb4x1vj.js +1885 -0
  42. package/dist/index-a974q3aa.js +34 -0
  43. package/dist/{index-r72tz2vn.js → index-aymfvd8s.js} +1 -1
  44. package/dist/{index-trx7bxdk.js → index-aynkv7qk.js} +11 -8
  45. package/dist/{index-xjhwp5cj.js → index-dzm8ywq0.js} +504 -2362
  46. package/dist/{index-dan2kpsd.js → index-f60yax1j.js} +13 -8
  47. package/dist/index-f67wctn3.js +1858 -0
  48. package/dist/{index-agwr37gw.js → index-ftjdt358.js} +8 -171
  49. package/dist/{index-pewcdh28.js → index-gm51cthv.js} +2 -45
  50. package/dist/index-kfdzsyyw.js +1859 -0
  51. package/dist/index-t4kssacm.js +208 -0
  52. package/dist/index-v0ht9q0g.js +1518 -0
  53. package/dist/{index-sxe5079a.js → index-x59vz1xx.js} +262 -901
  54. package/dist/index-xh39jtkq.js +32 -0
  55. package/dist/index-yb7fc59g.js +718 -0
  56. package/dist/index-zd6adby9.js +496 -0
  57. package/dist/index.d.ts +62 -0
  58. package/dist/index.global.js +447 -160
  59. package/dist/index.js +533 -485
  60. package/dist/react-0wepdf60.js +1519 -0
  61. package/dist/{react-4pvp6amm.js → react-1gqwa2yw.js} +1 -1
  62. package/dist/{index-hv02xka3.js → react-3mfz1x2a.js} +126 -2167
  63. package/dist/react-4rbjw9af.js +33 -0
  64. package/dist/react-5rq7bnsy.js +210 -0
  65. package/dist/react-6bz05qk1.js +860 -0
  66. package/dist/{react-05jh9jv5.js → react-6fnxxs30.js} +8 -171
  67. package/dist/react-6q2cw2ya.js +689 -0
  68. package/dist/{react-sw8d8c94.js → react-6t4dbdzn.js} +11 -8
  69. package/dist/react-88es9b5q.js +719 -0
  70. package/dist/react-97b5b8j4.js +46 -0
  71. package/dist/{react-16spgn0h.js → react-bxzn8vq5.js} +1 -1
  72. package/dist/{react-ayg1bgw3.js → react-cs62p9qh.js} +83 -722
  73. package/dist/react-ethftdxp.js +497 -0
  74. package/dist/react-fp73vhyd.js +36 -0
  75. package/dist/{react-exjcpxma.js → react-me102s1a.js} +2 -45
  76. package/dist/react-t2qnewz2.js +24 -0
  77. package/dist/react-ttj8f9qp.js +1886 -0
  78. package/dist/{react-zy1mmhgz.js → react-v8497a41.js} +13 -8
  79. package/dist/{react-fm9y8dbn.js → react-wqn4sx0n.js} +276 -2133
  80. package/dist/react.js +529 -485
  81. package/dist/replay-j18rw92k.js +258 -0
  82. package/dist/replay-vtg0vqj2.js +257 -0
  83. package/dist/{storageview-s7heg93p.js → storageview-6xj7zb63.js} +11 -7
  84. package/dist/{storageview-r595qpt9.js → storageview-pzn8yaad.js} +11 -7
  85. package/dist/styles/force.d.ts +66 -0
  86. package/dist/types.d.ts +7 -0
  87. package/dist/ui/bindings.d.ts +31 -5
  88. package/dist/ui/changes.d.ts +49 -0
  89. package/dist/ui/cssauto.d.ts +119 -0
  90. package/dist/ui/cssedit.d.ts +80 -0
  91. package/dist/ui/domedit.d.ts +99 -0
  92. package/dist/ui/domtree.d.ts +26 -1
  93. package/dist/ui/elementsview.d.ts +19 -2
  94. package/dist/ui/htmledit.d.ts +62 -0
  95. package/dist/ui/inspector.d.ts +6 -1
  96. package/dist/ui/keys.d.ts +12 -8
  97. package/dist/ui/pane.d.ts +0 -2
  98. package/dist/ui/panel.d.ts +3 -0
  99. package/dist/ui/prefs.d.ts +30 -10
  100. package/dist/ui/settings.d.ts +10 -0
  101. package/dist/ui/size.d.ts +14 -22
  102. package/dist/ui/stylesview.d.ts +30 -1
  103. package/package.json +1 -1
  104. package/skills/devknobs/SKILL.md +95 -0
  105. package/dist/elementsview-2z4pkrdz.js +0 -2873
  106. package/dist/elementsview-qn8qyksa.js +0 -2874
  107. package/dist/index-78r0f8pw.js +0 -27
  108. package/dist/react-adky72h9.js +0 -29
@@ -77,3 +77,8 @@ export interface BrowserLayer {
77
77
  * says when the frame's page is in and ready to paint, with no reload on its way.
78
78
  */
79
79
  export declare function createBrowser(glass: HTMLElement, frame: HTMLIFrameElement, onChange: () => void, onReload?: () => void, ready?: () => boolean): BrowserLayer;
80
+ /** The seams over the frame's top and bottom edges, in the glass's px, 2 device px each side of it. */
81
+ export declare function seamRects(page: Rect | null, zoom: number, unit: number, look: Pick<Look, "header" | "footer">): {
82
+ top: Rect | null;
83
+ bottom: Rect | null;
84
+ };
@@ -8,6 +8,8 @@ export interface Look {
8
8
  * or sticky bar touching the top of the viewport, else the page's.
9
9
  */
10
10
  top: string;
11
+ /** Is `top` a fixed or sticky bar's, holding the top of the viewport? */
12
+ header: boolean;
11
13
  /** What fills the screen under the viewport: a fixed bar's color touching its bottom, else the content at its bottom edge. */
12
14
  bottom: string;
13
15
  /** Is `bottom` a fixed bar's, carried down under the bars, where Safari shows the page past the viewport otherwise? */
@@ -90,7 +90,8 @@ export declare function hold(state: DevknobsState, patch: DevknobsStatePatch): D
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
93
- * that is no longer the device's leaves no device behind. Without a foldable,
93
+ * that is no longer the device's leaves no device behind, nor the browser it
94
+ * brought, unless the change named a browser itself (`dropUa` false). Without a foldable,
94
95
  * the posture is the first, so one picked next comes up in it.
95
96
  */
96
- export declare function settle(state: DevknobsState): DevknobsState;
97
+ export declare function settle(state: DevknobsState, dropUa?: boolean): DevknobsState;
@@ -4,7 +4,7 @@ import type { PanelValue, SideValue } from "../types";
4
4
  * the page. The frame and the panel both ask here, so they agree.
5
5
  */
6
6
  /** How wide the panel is until it says otherwise, in px. */
7
- export declare const DOCK_WIDTH = 240;
7
+ export declare const DOCK_WIDTH = 320;
8
8
  /** The narrowest page the column leaves. In a window with less to spare it lies over the page. */
9
9
  export declare const PAGE_MIN = 320;
10
10
  /** The panel as the frame makes room for it. */
@@ -17,9 +17,8 @@ export type Docked = Pick<PanelValue, "open" | "side" | "docked">;
17
17
  export declare function dockWidth(): number;
18
18
  /**
19
19
  * The panel is `px` wide now, or glides there, as it says each time it takes
20
- * a width: the rows' or a view's, as its edge sets them. The frame hears, and
21
- * gives a pinned panel's column that much room. A width that is no size is
22
- * left out.
20
+ * a width, as its edge sets it. The frame hears, and gives a pinned panel's
21
+ * column that much room. A width that is no size is left out.
23
22
  */
24
23
  export declare function setDockWidth(px: number): void;
25
24
  /** Hear the panel's width change. Returns the way to stop. */
@@ -17,7 +17,7 @@ export declare const DPR_MAX = 5;
17
17
  /** What a zoom key asks of the frame: a step in or out, or back to fit. */
18
18
  export type ZoomAction = "zoom-in" | "zoom-out" | "zoom-fit";
19
19
  /** What a key pressed inside the frame asks of the panel above it. */
20
- export type KeyAction = "toggle" | "close" | "replay" | "requests" | "reset" | "storage" | "search" | ZoomAction;
20
+ export type KeyAction = "toggle" | "close" | "replay" | "requests" | "reset" | "storage" | "elements" | "settings" | "search" | ZoomAction;
21
21
  /** Everything the page and its frame say to each other. */
22
22
  export type DevknobsMessage =
23
23
  /** `native`: whether the host's driver is on above, so the frame emulates its knobs while it is off. */
@@ -22,6 +22,7 @@ export declare function onExit(handler: (() => void) | null): void;
22
22
  export declare function onZoom(handler: ((zoom: ZoomValue) => void) | null): void;
23
23
  export declare function onRefused(handler: ((url: string) => Promise<FrameRefusal | null>) | null): void;
24
24
  export declare function onFramed(handler: ((open: boolean) => void | Promise<void>) | null): void;
25
+ export declare function onLoader(handler: ((frame: HTMLIFrameElement, url: string) => boolean) | null): void;
25
26
  /** The window inside the frame, while there is one. */
26
27
  export declare function frameWindow(): Window | null;
27
28
  /**
@@ -10,8 +10,12 @@ export interface Identity {
10
10
  /** A touch screen in the frame: `ontouchstart`, touch points and a coarse pointer. */
11
11
  touch: boolean;
12
12
  dpr: DprValue;
13
+ /** Real phone mode: the frame's page loads go to servers as the device, so the page loads again when it turns. */
14
+ served?: boolean;
13
15
  }
14
- type IdentityKnobs = Pick<DevknobsState, "ua" | "device" | "dpr">;
16
+ type IdentityKnobs = Pick<DevknobsState, "ua" | "device" | "dpr"> & {
17
+ panel?: Pick<DevknobsState["panel"], "realPhone">;
18
+ };
15
19
  /** What the frame's new window is patched with: its identity, and the screen it reads. */
16
20
  type PatchKnobs = IdentityKnobs & Pick<DevknobsState, "posture" | "orientation">;
17
21
  export declare function identityOf(state: IdentityKnobs): Identity;
@@ -22,6 +22,8 @@ export declare function applyState(next: DevknobsState): void;
22
22
  * them back from the page. `note` says why, for the panel, and null clears it.
23
23
  */
24
24
  export declare function setNative(on: boolean, note?: string | null): void;
25
+ /** Can the host send requests as another browser, so real phone mode does something? */
26
+ export declare function hostSendsUa(): boolean;
25
27
  /** The driver's switch for the panel: null where the host gives none. */
26
28
  export declare function nativeSwitch(): {
27
29
  setting: NativeSetting;
@@ -49,8 +49,6 @@ export interface Mock {
49
49
  /** The body, in the mock. */
50
50
  body: Rect;
51
51
  screenRadius: Radius;
52
- /** The screen's corners are continuous, as on the phones with an island, not round. */
53
- continuous: boolean;
54
52
  bodyRadius: Radius;
55
53
  parts: Part[];
56
54
  /** The body as a picture, which then has every part in it, in place of the drawn one. */
@@ -38,8 +38,9 @@ export interface Body {
38
38
  * but the 9 are measured the same way from Google's emulator frames, at their
39
39
  * own density: the bezel, the corner, the punch hole and the right side's
40
40
  * buttons, with the body radius an estimate as on the iPhones. The islands
41
- * of the 17 family, the 16 Pro and the Air, and the Air's screen radius, are
42
- * measured on the iOS 26.5 simulator instead. An island's screen radius is the
43
- * circle through the 45 degree point of its continuous corner.
41
+ * of the 17 family, the 16 Pro and the Air are
42
+ * measured on the iOS 26.5 simulator instead. A phone with an island draws
43
+ * its screen corner as a circle concentric with the body's: one bezel on
44
+ * every side, and the screen's radius the body's less it.
44
45
  */
45
46
  export declare const BODIES: Record<string, Body>;
@@ -1,4 +1,4 @@
1
- import type { Mock, Radius, Rect } from "./mock";
1
+ import type { Mock, Radius } from "./mock";
2
2
  /**
3
3
  * How far black runs past the screen's edge under a picture of the body, in
4
4
  * css px of the screen. The picture's opening and the screen share an edge,
@@ -6,22 +6,10 @@ import type { Mock, Radius, Rect } from "./mock";
6
6
  * mat would show through as a light line. The rim of the body there is black.
7
7
  */
8
8
  export declare const UNDER = 2;
9
- /**
10
- * Apple's continuous screen corner, from the iOS 26.5 simulator's screen
11
- * masks: the edge starts to curve `extent` times the radius from the corner,
12
- * 84.66 on the 17 Pro, and passes the 45 degree point a circle of the radius
13
- * would, 18.19 in. A superellipse of exponent 2 to the `shape` draws it.
14
- */
15
- export declare const CONTINUOUS: {
16
- readonly extent: 1.363;
17
- readonly shape: 1.52;
18
- };
19
9
  /** A device's body over the frame, drawn by `drawMock`, in the letterbox's shadow root. */
20
- export declare const MOCK_CSS: string;
10
+ export declare const MOCK_CSS = "\n/* Clips the frame to the screen's corners in a mock, in the body's color so\n no blue shows at the seam. */\n.glass.mocked {\n position: absolute;\n overflow: hidden;\n background: #111112;\n}\n/* Over the frame, and never in the way of a pointer. */\n.mock {\n position: absolute;\n top: 0;\n left: 0;\n overflow: visible;\n pointer-events: none;\n}\n.mock .band { fill: #48484a; fill-rule: evenodd; }\n.mock .body { fill: #111112; fill-rule: evenodd; }\n.mock .button { fill: #48484a; }\n.mock .sensor { fill: #000; }\n.mock .slot { fill: #2a2a2c; }\n.mock .lens { fill: #000; stroke: #2a2a2c; stroke-width: 1; }\n.mock .home { fill: #2a2a2c; }\n.mock .key { fill: #111112; }";
21
11
  /** The radius of each corner, from the top left round by the right, `by` added to each. */
22
12
  export declare function corners(radius: Radius, by?: number): [number, number, number, number];
23
- /** A rect with continuous corners as path data, each corner a superellipse traced in 16 steps. */
24
- export declare function continuousRect(rect: Rect, radius: Radius): string;
25
13
  /**
26
14
  * The device's body, in css px of the frame: the buttons under it, the band,
27
15
  * the front glass inside it with the screen cut out, and the island, holes,
@@ -16,6 +16,8 @@ export interface Scene {
16
16
  screenRect(): Hole;
17
17
  /** The mat's opening at the whole window, a px past each edge, square. */
18
18
  fullRect(): Hole;
19
+ /** The color scheme the frame's loading cover wears, "" for the user's own. */
20
+ scheme(): string;
19
21
  /** The window's own page is hidden under the frame. */
20
22
  covered(): boolean;
21
23
  /** Hide the window's own page under the frame. */
@@ -35,6 +37,8 @@ export declare function running(): boolean;
35
37
  export declare function veilShare(): number;
36
38
  /** The frame is gone, and the mat with it. */
37
39
  export declare function forget(): void;
40
+ /** A screen's opening with every corner as round as its roundest, so it morphs as one shape. */
41
+ export declare function evenHole(hole: Hole): Hole;
38
42
  /**
39
43
  * A frame that comes up for a device change: nothing of it shows yet, and the
40
44
  * page is still there under a veil `share` of the way over it. None of the mat
@@ -29,7 +29,10 @@ export interface NativeViewport {
29
29
  * device's browser too. A custom string has the user agent alone, with an
30
30
  * empty `platform` and `uaPlatform` and no brands.
31
31
  */
32
- export type NativeUa = Pick<UaPreset, "userAgent" | "platform" | "mobile" | "brands" | "uaPlatform" | "hints">;
32
+ export type NativeUa = Pick<UaPreset, "userAgent" | "platform" | "mobile" | "brands" | "uaPlatform" | "hints"> & {
33
+ /** For the frame's own page loads alone: real phone mode's device, which the page around the frame never sends. */
34
+ frame?: true;
35
+ };
33
36
  /**
34
37
  * A host that sets some knobs for real, in the browser itself, such as a
35
38
  * browser extension through the DevTools protocol. Each part it has takes its
@@ -80,6 +83,20 @@ export interface NativeDriver {
80
83
  * settles, so the host can let it in first.
81
84
  */
82
85
  framed?: (open: boolean) => void | Promise<void>;
86
+ /**
87
+ * Load the frame's page at `url`, an address on the page's own origin, in
88
+ * place of devknobs setting the frame's `src`, as a browser extension can
89
+ * from its own world, which the page's own `frame-src` policy does not
90
+ * reach. False leaves it to devknobs.
91
+ */
92
+ load?: (frame: HTMLIFrameElement, url: string) => boolean;
93
+ /**
94
+ * Told each time real phone mode (`panel.realPhone`) turns, from the panel
95
+ * or `setState()`, for the host to keep as one setting for every tab and
96
+ * site; the host hands it back with `setState`. Real phone mode is offered
97
+ * only where the host has this and `ua`.
98
+ */
99
+ realPhone?: (on: boolean) => void;
83
100
  }
84
101
  /** Why the frame's page was refused, as the host knows it. */
85
102
  export interface FrameRefusal {
@@ -87,7 +104,10 @@ export interface FrameRefusal {
87
104
  why: string;
88
105
  /** What the notice's "copy details" button puts on the clipboard. */
89
106
  details?: string;
90
- /** A button that runs `run`, then loads the frame again, to find out more. `now` runs it at once, unpressed. */
107
+ /**
108
+ * A button that runs `run`, then loads the frame again, to find out more.
109
+ * `now` runs it at once, unpressed, with the notice kept hidden meanwhile.
110
+ */
91
111
  retry?: {
92
112
  label: string;
93
113
  run: () => Promise<void>;
@@ -119,8 +139,16 @@ export declare function handing(): Promise<void> | null;
119
139
  export declare function settles(result: unknown): Promise<void> | null;
120
140
  /** Hand the driver the knobs it takes, those that changed since. */
121
141
  export declare function drive(driver: NativeDriver, state: DevknobsState): void;
142
+ /**
143
+ * The browser a host sends requests as: the ua knob, unless it is the one the
144
+ * device brought and the device stays in the frame. The frame emulates that
145
+ * browser in its page alone, so a site's session never meets two browsers at
146
+ * once. A host sizing the whole tab as the device (`sized`) sends it too. In
147
+ * real phone mode the device's goes out for the frame's page loads alone.
148
+ */
149
+ export declare function hostUa(state: DevknobsState, sized: boolean): NativeUa | null;
122
150
  /** Hand the driver the ua knob, which it takes with its switch off too. */
123
- export declare function driveUa(driver: NativeDriver, state: DevknobsState): void;
151
+ export declare function driveUa(driver: NativeDriver, state: DevknobsState, sized?: boolean): void;
124
152
  /**
125
153
  * Hand the driver every default, for an unmount, and forget what it had. A
126
154
  * driver never handed anything gets nothing. `ua` false keeps the ua part as
@@ -8,8 +8,7 @@ import type { FrameRefusal } from "./native";
8
8
  export declare function createNotice(close: () => void): HTMLElement;
9
9
  /**
10
10
  * Say why under the notice, as a host told it, with a button for its details
11
- * and one to find out more, which runs the host's `retry` and then `again`,
12
- * at once where the host says so.
11
+ * and one to find out more, which runs the host's `retry` and then `again`.
13
12
  * Null takes it away.
14
13
  */
15
14
  export declare function explain(box: HTMLElement, refusal: FrameRefusal | null, again: () => void): void;
@@ -9,6 +9,8 @@ export interface OwnStyle {
9
9
  remove(): void;
10
10
  }
11
11
  type Root = Document | ShadowRoot;
12
+ /** Whether `node` is a Document (nodeType 9). */
13
+ export declare function isDocument(root: Node): root is Document;
12
14
  /** The `<style>` a sheet is, or null for a constructed one. */
13
15
  export declare function styleNode(style: OwnStyle): HTMLStyleElement | null;
14
16
  /** Is `sheet` one devknobs constructed? */
@@ -19,6 +21,19 @@ export declare function isOwnSheet(sheet: CSSStyleSheet): boolean;
19
21
  * shadow root, before what the shadow root gets next.
20
22
  */
21
23
  export declare function addStyle(root: Root, css: string): OwnStyle;
24
+ /**
25
+ * A sheet of devknobs' that goes on and off the page as the same sheet, so
26
+ * its rules stay the same objects: adopted and let go where the browser
27
+ * adopts sheets, else a `<style>` that is switched off. It starts off.
28
+ */
29
+ export interface SwitchedSheet {
30
+ readonly sheet: CSSStyleSheet;
31
+ on(): void;
32
+ off(): void;
33
+ /** Take it off the page for good. */
34
+ remove(): void;
35
+ }
36
+ export declare function switchedSheet(root: Root, name: string): SwitchedSheet | null;
22
37
  /** The sheet devknobs keeps on the page under `name`, if it has one. */
23
38
  export declare function findStyle(name: string, doc?: Document): OwnStyle | null;
24
39
  /** Every node devknobs adds to the page carries `data-devknobs`. */
@@ -19,6 +19,8 @@ export declare const RIDE_SLOW = 50;
19
19
  * an app may not mount devknobs in the frame at all.
20
20
  */
21
21
  export declare const FRAME_API_WAIT = 1500;
22
+ /** The longest the cover stays up, in ms: past it, the frame shows whatever it has. */
23
+ export declare const COVER_CAP: number;
22
24
  /** The window inside the frame, while there is one. */
23
25
  export declare function frameWindow(): Window | null;
24
26
  /** Keep the knobs and hand them to the frame, which applies them to its own page. */
@@ -26,6 +28,7 @@ export declare function sync(state: DevknobsState): void;
26
28
  export declare function onExit(handler: (() => void) | null): void;
27
29
  export declare function onRefused(handler: ((url: string) => Promise<FrameRefusal | null>) | null): void;
28
30
  export declare function onFramed(handler: ((open: boolean) => void | Promise<void>) | null): void;
31
+ export declare function onLoader(handler: ((frame: HTMLIFrameElement, url: string) => boolean) | null): void;
29
32
  export declare function onZoom(handler: ((zoom: ZoomValue) => void) | null): void;
30
33
  /**
31
34
  * The panel changed its width, and with `glide` it glides to it. A floating