@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.
Files changed (65) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/README.md +7 -0
  3. package/dist/early.global.js +6 -6
  4. package/dist/{elementsview-tf4qzmtw.js → elementsview-1wsxcdtj.js} +4 -4
  5. package/dist/{elementsview-jnkbhzkj.js → elementsview-3kv34jfx.js} +4 -4
  6. package/dist/engine/browserdraw.d.ts +29 -2
  7. package/dist/engine/browserkit.d.ts +20 -1
  8. package/dist/engine/browserui.d.ts +162 -22
  9. package/dist/engine/devices.d.ts +3 -2
  10. package/dist/engine/devicon.d.ts +59 -0
  11. package/dist/engine/fit.d.ts +4 -3
  12. package/dist/engine/foldflip.d.ts +40 -0
  13. package/dist/engine/frames.d.ts +1 -0
  14. package/dist/engine/identity.d.ts +12 -5
  15. package/dist/engine/index.d.ts +2 -0
  16. package/dist/engine/mock.d.ts +14 -0
  17. package/dist/engine/mockdata.d.ts +5 -1
  18. package/dist/engine/morphrun.d.ts +4 -0
  19. package/dist/engine/native.d.ts +31 -3
  20. package/dist/engine/notice.d.ts +1 -2
  21. package/dist/engine/pageshot.d.ts +5 -2
  22. package/dist/engine/safaridraw.d.ts +162 -10
  23. package/dist/engine/screen.d.ts +24 -0
  24. package/dist/engine/store.d.ts +2 -1
  25. package/dist/engine/tabicon.d.ts +43 -0
  26. package/dist/engine/toplayer.d.ts +62 -0
  27. package/dist/engine/touchpointer.d.ts +0 -21
  28. package/dist/engine/underbar.d.ts +61 -0
  29. package/dist/engine/width.d.ts +3 -0
  30. package/dist/{framekit-3n7p79ht.js → framekit-cjz0e4y8.js} +2492 -1587
  31. package/dist/{framekit-g96t6nmq.js → framekit-yk1jxjv7.js} +2492 -1587
  32. package/dist/host.d.ts +51 -0
  33. package/dist/{index-33x9hxe3.js → index-6wbgqkdz.js} +626 -189
  34. package/dist/{index-2d6wvs8h.js → index-9jhatmky.js} +4 -4
  35. package/dist/{index-zvze25nf.js → index-begsqdm0.js} +1 -1
  36. package/dist/{index-peh33xjv.js → index-j1h13ahg.js} +1 -1
  37. package/dist/{index-5baxvd3v.js → index-p57fdttx.js} +307 -129
  38. package/dist/{index-dvr4x91q.js → index-prjpx67p.js} +20 -8
  39. package/dist/{index-d0cjxjsm.js → index-q73py563.js} +1 -1
  40. package/dist/{index-ke6v7919.js → index-sn2y6j09.js} +20 -8
  41. package/dist/{index-0casarhy.js → index-vgfn2n1h.js} +1 -1
  42. package/dist/{index-k015tb6c.js → index-zt3rheck.js} +4 -4
  43. package/dist/index.d.ts +26 -1
  44. package/dist/index.global.js +299 -176
  45. package/dist/index.js +424 -124
  46. package/dist/instance.d.ts +23 -4
  47. package/dist/{react-qv0nykcv.js → react-3rhdj2k1.js} +623 -186
  48. package/dist/{react-carf84xv.js → react-6tss0r9f.js} +307 -129
  49. package/dist/{react-eygws6cx.js → react-7vjfsh40.js} +4 -4
  50. package/dist/{react-71a9ypex.js → react-806qmkyz.js} +4 -4
  51. package/dist/{react-65tgdbs8.js → react-gefkdkdz.js} +1 -1
  52. package/dist/{react-sq9pkw4k.js → react-mmq2zya3.js} +1 -1
  53. package/dist/{react-xxfpfddf.js → react-qfpg79hs.js} +1 -1
  54. package/dist/{react-pdvseef0.js → react-qgz9afa2.js} +1 -1
  55. package/dist/react.js +420 -123
  56. package/dist/{storageview-sb23henh.js → storageview-7cv0vpdm.js} +4 -4
  57. package/dist/{storageview-vf8v8q8j.js → storageview-dyhpgt8f.js} +4 -4
  58. package/dist/types.d.ts +14 -0
  59. package/dist/ui/footer.d.ts +9 -2
  60. package/dist/ui/panel.d.ts +16 -2
  61. package/dist/ui/settings.d.ts +25 -1
  62. package/dist/version.d.ts +2 -0
  63. package/package.json +3 -2
  64. package/skills/devknobs/SKILL.md +1 -1
  65. package/dist/engine/endroom.d.ts +0 -21
@@ -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
- /** Take what a copy the page mounts asks for, from its mount options. */
6
- adopt: (options: object) => void;
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? */