@vinena/knobs 0.5.1 → 0.5.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.
Files changed (59) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +7 -0
  3. package/dist/early.global.js +6 -6
  4. package/dist/{elementsview-jnkbhzkj.js → elementsview-2z4pkrdz.js} +4 -4
  5. package/dist/{elementsview-tf4qzmtw.js → elementsview-qn8qyksa.js} +4 -4
  6. package/dist/engine/browserdraw.d.ts +24 -2
  7. package/dist/engine/browserkit.d.ts +18 -1
  8. package/dist/engine/browserui.d.ts +162 -22
  9. package/dist/engine/devicon.d.ts +59 -0
  10. package/dist/engine/fit.d.ts +4 -3
  11. package/dist/engine/foldflip.d.ts +40 -0
  12. package/dist/engine/identity.d.ts +7 -4
  13. package/dist/engine/mock.d.ts +16 -0
  14. package/dist/engine/mockdata.d.ts +4 -1
  15. package/dist/engine/mockdraw.d.ts +14 -2
  16. package/dist/engine/pageshot.d.ts +5 -2
  17. package/dist/engine/safaridraw.d.ts +162 -10
  18. package/dist/engine/screen.d.ts +24 -0
  19. package/dist/engine/store.d.ts +2 -1
  20. package/dist/engine/tabicon.d.ts +43 -0
  21. package/dist/engine/toplayer.d.ts +62 -0
  22. package/dist/engine/touchpointer.d.ts +0 -21
  23. package/dist/engine/underbar.d.ts +61 -0
  24. package/dist/{framekit-g96t6nmq.js → framekit-te90cjs0.js} +2325 -1572
  25. package/dist/{framekit-3n7p79ht.js → framekit-w0v516w5.js} +2325 -1572
  26. package/dist/host.d.ts +51 -0
  27. package/dist/{index-zvze25nf.js → index-30fc6php.js} +1 -1
  28. package/dist/{index-dvr4x91q.js → index-9re7sv56.js} +20 -8
  29. package/dist/{index-0casarhy.js → index-agwr37gw.js} +1 -1
  30. package/dist/{index-2d6wvs8h.js → index-dan2kpsd.js} +4 -4
  31. package/dist/{index-ke6v7919.js → index-hv02xka3.js} +20 -8
  32. package/dist/{index-peh33xjv.js → index-pewcdh28.js} +1 -1
  33. package/dist/{index-d0cjxjsm.js → index-r72tz2vn.js} +1 -1
  34. package/dist/{index-33x9hxe3.js → index-sxe5079a.js} +605 -187
  35. package/dist/{index-k015tb6c.js → index-trx7bxdk.js} +4 -4
  36. package/dist/{index-5baxvd3v.js → index-xjhwp5cj.js} +275 -112
  37. package/dist/index.d.ts +26 -1
  38. package/dist/index.global.js +270 -176
  39. package/dist/index.js +398 -124
  40. package/dist/instance.d.ts +23 -4
  41. package/dist/{react-pdvseef0.js → react-05jh9jv5.js} +1 -1
  42. package/dist/{react-sq9pkw4k.js → react-16spgn0h.js} +1 -1
  43. package/dist/{react-65tgdbs8.js → react-4pvp6amm.js} +1 -1
  44. package/dist/{react-qv0nykcv.js → react-ayg1bgw3.js} +602 -184
  45. package/dist/{react-xxfpfddf.js → react-exjcpxma.js} +1 -1
  46. package/dist/{react-carf84xv.js → react-fm9y8dbn.js} +275 -112
  47. package/dist/{react-eygws6cx.js → react-sw8d8c94.js} +4 -4
  48. package/dist/{react-71a9ypex.js → react-zy1mmhgz.js} +4 -4
  49. package/dist/react.js +394 -123
  50. package/dist/{storageview-vf8v8q8j.js → storageview-r595qpt9.js} +4 -4
  51. package/dist/{storageview-sb23henh.js → storageview-s7heg93p.js} +4 -4
  52. package/dist/types.d.ts +7 -0
  53. package/dist/ui/footer.d.ts +9 -2
  54. package/dist/ui/panel.d.ts +16 -2
  55. package/dist/ui/settings.d.ts +17 -1
  56. package/dist/version.d.ts +2 -0
  57. package/package.json +3 -2
  58. package/skills/devknobs/SKILL.md +1 -1
  59. package/dist/engine/endroom.d.ts +0 -21
package/dist/index.d.ts CHANGED
@@ -1,8 +1,9 @@
1
1
  import * as engine from "./engine";
2
2
  import { type KnobDescription } from "./engine/describe";
3
3
  import type { GrabOptions, GrabResult } from "./grab/types";
4
+ import { type HostBuild, type PreferSetting, type PreferValue } from "./host";
4
5
  import type { DevknobsState, DevknobsStatePatch, GrabColorValue } from "./types";
5
- export type { BarsValue, BrowserValue, ClockMode, ClockValue, ConnectionValue, ContrastValue, DevknobsState, DevknobsStatePatch, DirValue, DprValue, EdgeValue, GeoErrorValue, GeoValue, GrabColorValue, HeightValue, Knob, LocaleValue, MotionValue, NetworkValue, OnlineValue, OrientationValue, PanelValue, SaveDataValue, SchemeValue, SideValue, SpeedValue, TextValue, TimeZoneValue, TransparencyValue, UaValue, VisionValue, WidthValue, ZoomValue, } from "./types";
6
+ export type { BarsValue, BrowserValue, ClockMode, ClockValue, ConnectionValue, ContrastValue, DevknobsState, DevknobsStatePatch, DevIconValue, DirValue, DprValue, EdgeValue, GeoErrorValue, GeoValue, GrabColorValue, HeightValue, Knob, LocaleValue, MotionValue, NetworkValue, OnlineValue, OrientationValue, PanelValue, SaveDataValue, SchemeValue, SideValue, SpeedValue, TextValue, TimeZoneValue, TransparencyValue, UaValue, VisionValue, WidthValue, ZoomValue, } from "./types";
6
7
  export type { KnobDescription, KnobField, KnobReload, KnobShape, KnobValue, } from "./engine/describe";
7
8
  export type { DeviceKind, DevicePreset } from "./engine/devices";
8
9
  export type { GeoPreset } from "./engine/geo";
@@ -10,6 +11,7 @@ export type { UaBrand, UaHints, UaPreset } from "./engine/ua";
10
11
  export type { EngineOptions } from "./engine";
11
12
  export type { FrameRefusal, NativeDriver, NativeMedia, NativeSetting, NativeUa, NativeViewport } from "./engine/native";
12
13
  export type { SystemMedia } from "./engine/system";
14
+ export type { HostBuild, PreferSetting, PreferValue } from "./host";
13
15
  export type { GrabEntry, GrabFrame, GrabOptions, GrabPayload, GrabResult, ResolvedSource, } from "./grab/types";
14
16
  export interface MountOptions extends engine.EngineOptions {
15
17
  /**
@@ -44,6 +46,23 @@ export interface MountOptions extends engine.EngineOptions {
44
46
  * Defaults to false.
45
47
  */
46
48
  host?: boolean;
49
+ /**
50
+ * For a host: who runs the panel where the page mounts its own copy, its
51
+ * choice in the panel's settings and the footer naming the copy that runs.
52
+ * With `page`, a copy the page mounts takes the page from this one, now or
53
+ * once `setPrefer` says so, and this one does not take it back.
54
+ */
55
+ prefer?: PreferSetting;
56
+ /**
57
+ * For a host: which build it is. Where two hosts meet on a page, such as a
58
+ * store and a local build of the extension, the one that ranks higher holds
59
+ * it whichever mounted first, and the other stands down for that page load:
60
+ * a local build over a store one, then the newer version. A host with none
61
+ * takes the page as before, from any copy.
62
+ */
63
+ build?: HostBuild;
64
+ /** For a host with a `build`: it stood down for another host, which holds the page for this load. */
65
+ stoodDown?: () => void;
47
66
  }
48
67
  export declare const PRESETS: {
49
68
  locale: readonly ["en", "en-US", "tr", "de", "fr", "es", "ar", "he", "ja", "zh-CN"];
@@ -62,6 +81,11 @@ export declare const PRESETS: {
62
81
  * the extension's copy, it takes this mount's choices instead.
63
82
  */
64
83
  export declare function mount(options?: MountOptions): void;
84
+ /**
85
+ * The host's preference changed, or came in after its mount: with `page`, it
86
+ * steps aside at once for a page copy that waits. The settings show it.
87
+ */
88
+ export declare function setPrefer(value: PreferValue): void;
65
89
  /** Remove the panel and undo every knob. A copy that was taken over has done so already. */
66
90
  export declare function unmount(): void;
67
91
  /**
@@ -70,6 +94,7 @@ export declare function unmount(): void;
70
94
  * to those queries.
71
95
  */
72
96
  export { setSystemMedia } from "./engine/system";
97
+ export { holdInTopLayer, LAYER, type TopLayerHold } from "./engine/toplayer";
73
98
  /**
74
99
  * Turn the `native` driver off or on, every knob kept: off, the page emulates
75
100
  * them as with no driver. For a host that keeps the choice of its `setting`