@vinena/knobs 0.5.1 → 0.5.3
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 +29 -0
- package/README.md +7 -0
- package/dist/early.global.js +6 -6
- package/dist/{elementsview-tf4qzmtw.js → elementsview-1wsxcdtj.js} +4 -4
- package/dist/{elementsview-jnkbhzkj.js → elementsview-3kv34jfx.js} +4 -4
- package/dist/engine/browserdraw.d.ts +29 -2
- package/dist/engine/browserkit.d.ts +20 -1
- package/dist/engine/browserui.d.ts +162 -22
- package/dist/engine/devices.d.ts +3 -2
- package/dist/engine/devicon.d.ts +59 -0
- package/dist/engine/fit.d.ts +4 -3
- package/dist/engine/foldflip.d.ts +40 -0
- package/dist/engine/frames.d.ts +1 -0
- package/dist/engine/identity.d.ts +12 -5
- package/dist/engine/index.d.ts +2 -0
- package/dist/engine/mock.d.ts +14 -0
- package/dist/engine/mockdata.d.ts +5 -1
- 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/pageshot.d.ts +5 -2
- package/dist/engine/safaridraw.d.ts +162 -10
- package/dist/engine/screen.d.ts +24 -0
- package/dist/engine/store.d.ts +2 -1
- package/dist/engine/tabicon.d.ts +43 -0
- package/dist/engine/toplayer.d.ts +62 -0
- package/dist/engine/touchpointer.d.ts +0 -21
- package/dist/engine/underbar.d.ts +61 -0
- package/dist/engine/width.d.ts +3 -0
- package/dist/{framekit-3n7p79ht.js → framekit-cjz0e4y8.js} +2492 -1587
- package/dist/{framekit-g96t6nmq.js → framekit-yk1jxjv7.js} +2492 -1587
- package/dist/host.d.ts +51 -0
- package/dist/{index-33x9hxe3.js → index-6wbgqkdz.js} +626 -189
- package/dist/{index-2d6wvs8h.js → index-9jhatmky.js} +4 -4
- package/dist/{index-zvze25nf.js → index-begsqdm0.js} +1 -1
- package/dist/{index-peh33xjv.js → index-j1h13ahg.js} +1 -1
- package/dist/{index-5baxvd3v.js → index-p57fdttx.js} +307 -129
- package/dist/{index-dvr4x91q.js → index-prjpx67p.js} +20 -8
- package/dist/{index-d0cjxjsm.js → index-q73py563.js} +1 -1
- package/dist/{index-ke6v7919.js → index-sn2y6j09.js} +20 -8
- package/dist/{index-0casarhy.js → index-vgfn2n1h.js} +1 -1
- package/dist/{index-k015tb6c.js → index-zt3rheck.js} +4 -4
- package/dist/index.d.ts +26 -1
- package/dist/index.global.js +299 -176
- package/dist/index.js +424 -124
- package/dist/instance.d.ts +23 -4
- package/dist/{react-qv0nykcv.js → react-3rhdj2k1.js} +623 -186
- package/dist/{react-carf84xv.js → react-6tss0r9f.js} +307 -129
- package/dist/{react-eygws6cx.js → react-7vjfsh40.js} +4 -4
- package/dist/{react-71a9ypex.js → react-806qmkyz.js} +4 -4
- package/dist/{react-65tgdbs8.js → react-gefkdkdz.js} +1 -1
- package/dist/{react-sq9pkw4k.js → react-mmq2zya3.js} +1 -1
- package/dist/{react-xxfpfddf.js → react-qfpg79hs.js} +1 -1
- package/dist/{react-pdvseef0.js → react-qgz9afa2.js} +1 -1
- package/dist/react.js +420 -123
- package/dist/{storageview-sb23henh.js → storageview-7cv0vpdm.js} +4 -4
- package/dist/{storageview-vf8v8q8j.js → storageview-dyhpgt8f.js} +4 -4
- package/dist/types.d.ts +14 -0
- package/dist/ui/footer.d.ts +9 -2
- package/dist/ui/panel.d.ts +16 -2
- package/dist/ui/settings.d.ts +25 -1
- package/dist/version.d.ts +2 -0
- package/package.json +3 -2
- package/skills/devknobs/SKILL.md +1 -1
- package/dist/engine/endroom.d.ts +0 -21
package/dist/instance.d.ts
CHANGED
|
@@ -1,18 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A page copy's way to have the page from a host that steps aside, with what
|
|
3
|
+
* the host hands it. `pending` says whether that copy still waits, false once
|
|
4
|
+
* it unmounted, so a host never steps aside for a copy that is gone.
|
|
5
|
+
*/
|
|
6
|
+
export type Take = ((handed: object) => boolean) & {
|
|
7
|
+
pending?: () => boolean;
|
|
8
|
+
};
|
|
1
9
|
/** A host, as `HOST` holds it. */
|
|
2
10
|
export interface Host {
|
|
3
11
|
/** The host's way out, the one `OWNER` holds while the host has the page. */
|
|
4
12
|
release: () => void;
|
|
5
|
-
/**
|
|
6
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Take what a copy the page mounts asks for, from its mount options. With
|
|
15
|
+
* `take`, that copy's way to have the page instead, should the host step
|
|
16
|
+
* aside for it, now or later: the host lets go first and hands it what it
|
|
17
|
+
* keeps for it, and it says whether it took the page. Older copies leave none.
|
|
18
|
+
*/
|
|
19
|
+
adopt: (options: object, take?: Take) => void;
|
|
7
20
|
/** The host's api, where a copy that defers to it sends its own calls. Older hosts leave none. */
|
|
8
21
|
api?: object;
|
|
22
|
+
/** Which build the host is, read with `rankOf`. Older hosts leave none. */
|
|
23
|
+
rank?: object;
|
|
24
|
+
/** Hear that another host stood down for this one, with that host's rank. Older hosts leave none. */
|
|
25
|
+
outranked?: (other: object) => void;
|
|
9
26
|
}
|
|
27
|
+
/** What a host leaves on the slot beside its way out, `adopt` and api. */
|
|
28
|
+
export type HostExtras = Pick<Host, "rank" | "outranked">;
|
|
10
29
|
/**
|
|
11
30
|
* Take the page for `release`. Another copy that holds it lets go first. With
|
|
12
31
|
* `adopt`, the copy holds it as the host: copies the page mounts later hand
|
|
13
|
-
* their options to `adopt`, and their calls to `api`.
|
|
32
|
+
* their options to `adopt`, and their calls to `api`. `extras`: its rank, and how it hears of a host that stood down for it.
|
|
14
33
|
*/
|
|
15
|
-
export declare function claim(scope: object, release: () => void, adopt?: (options: object) => void, api?: object): void;
|
|
34
|
+
export declare function claim(scope: object, release: () => void, adopt?: (options: object, take?: Take) => void, api?: object, extras?: HostExtras): void;
|
|
16
35
|
/** The host that holds the page now, or null where none does. */
|
|
17
36
|
export declare function hostOf(scope: object): Host | null;
|
|
18
37
|
/** Does any copy of devknobs hold the page now? */
|