@vinena/knobs 0.7.0 → 0.7.1

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 (111) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +2 -2
  3. package/dist/cli.js +2 -2
  4. package/dist/{context-eawqn680.js → context-2r76ext7.js} +3 -3
  5. package/dist/{context-vd2xep5t.js → context-h1bdt8w3.js} +3 -3
  6. package/dist/early.global.js +7 -8
  7. package/dist/edit/html.d.ts +7 -3
  8. package/dist/edit/keep.d.ts +1 -1
  9. package/dist/{elementsview-m33ejs4r.js → elementsview-mcg6d5zp.js} +21 -19
  10. package/dist/{elementsview-jg4edt86.js → elementsview-mwr1s17z.js} +21 -19
  11. package/dist/engine/bezels.d.ts +2 -2
  12. package/dist/engine/check.d.ts +2 -2
  13. package/dist/engine/describe.d.ts +2 -2
  14. package/dist/engine/devices.d.ts +3 -3
  15. package/dist/engine/fit.d.ts +4 -4
  16. package/dist/engine/foldhand.d.ts +2 -2
  17. package/dist/engine/frame.d.ts +6 -6
  18. package/dist/engine/frames.d.ts +4 -4
  19. package/dist/engine/fresh.d.ts +12 -5
  20. package/dist/engine/header.d.ts +3 -1
  21. package/dist/engine/identity.d.ts +4 -4
  22. package/dist/engine/index.d.ts +7 -7
  23. package/dist/engine/locale.d.ts +2 -2
  24. package/dist/engine/morph.d.ts +2 -2
  25. package/dist/engine/native.d.ts +8 -8
  26. package/dist/engine/placeholder.d.ts +3 -3
  27. package/dist/engine/reload.d.ts +2 -2
  28. package/dist/engine/screen.d.ts +2 -2
  29. package/dist/engine/scrollkeep.d.ts +1 -1
  30. package/dist/engine/store.d.ts +11 -11
  31. package/dist/engine/storekeys.d.ts +34 -0
  32. package/dist/engine/style.d.ts +1 -1
  33. package/dist/engine/tabicon.d.ts +2 -2
  34. package/dist/engine/underneath.d.ts +1 -0
  35. package/dist/engine/width.d.ts +3 -3
  36. package/dist/{framekit-40pzennw.js → framekit-4v7nc3ea.js} +23 -18
  37. package/dist/{framekit-r16k97n7.js → framekit-wyppj1se.js} +23 -18
  38. package/dist/grab/clipboard.d.ts +2 -0
  39. package/dist/{index-jfv7vavj.js → index-311fys81.js} +93 -29
  40. package/dist/index-3dcgysws.js +77 -0
  41. package/dist/{index-s6fya8pm.js → index-3s4v7gw5.js} +11 -10
  42. package/dist/{index-ztnjefrh.js → index-585hs9tp.js} +5 -1
  43. package/dist/{index-za4ppxay.js → index-6t0w5s7p.js} +1 -1
  44. package/dist/{index-0qkj2mgb.js → index-82y8x8vv.js} +14 -11
  45. package/dist/{index-tqq2ygpj.js → index-9targr2f.js} +26 -16
  46. package/dist/{index-8d1yk9d2.js → index-a23nv5j4.js} +59 -39
  47. package/dist/{index-t4kssacm.js → index-abwqw8jh.js} +6 -1
  48. package/dist/{index-s6yzsvs4.js → index-bgzyc7rz.js} +22 -15
  49. package/dist/{index-xxbb8y41.js → index-c1t6knbf.js} +20 -14
  50. package/dist/{index-3nwycv3p.js → index-cqymjce4.js} +20 -14
  51. package/dist/{index-v2v4rmpe.js → index-dvtbh3c8.js} +24 -18
  52. package/dist/{index-cb91vcka.js → index-k4w5v53q.js} +1 -1
  53. package/dist/{index-q53j8wg5.js → index-n31pn4ax.js} +19 -15
  54. package/dist/{index-ymqm185m.js → index-rps0bdq9.js} +1 -1
  55. package/dist/{index-a8ffw5ft.js → index-szd9bddn.js} +1 -1
  56. package/dist/{index-2jc9dnta.js → index-vhda420r.js} +11 -5
  57. package/dist/{index-xs29b55n.js → index-vmprrfwe.js} +5 -2
  58. package/dist/{index-fjrrgd9h.js → index-vmz7htwn.js} +1 -1
  59. package/dist/index.d.ts +14 -8
  60. package/dist/index.global.js +159 -159
  61. package/dist/index.js +57 -32
  62. package/dist/instance.d.ts +7 -1
  63. package/dist/mark.d.ts +50 -0
  64. package/dist/{react-0gxs9aef.js → react-4ezjf7mq.js} +24 -18
  65. package/dist/react-4qn9vsjw.js +78 -0
  66. package/dist/{react-73reavv4.js → react-4tcwpama.js} +1 -1
  67. package/dist/{react-6ngtb6p9.js → react-7eyps0cg.js} +1 -1
  68. package/dist/{react-vvc4x9kq.js → react-7tzwahsm.js} +14 -11
  69. package/dist/{react-yx3g9k55.js → react-amvrbng8.js} +5 -2
  70. package/dist/{react-5rq7bnsy.js → react-atw9y8ny.js} +5 -1
  71. package/dist/{react-4phtr2nd.js → react-dg4bjv3j.js} +1 -1
  72. package/dist/{react-meve34wp.js → react-hdneb4v3.js} +11 -5
  73. package/dist/{react-h9w04skh.js → react-j87bdhhe.js} +4 -1
  74. package/dist/{react-wtgvkf6g.js → react-mkafgzqf.js} +1 -1
  75. package/dist/{react-zp7fdw8e.js → react-ppyj3fg2.js} +59 -39
  76. package/dist/{react-0r5418av.js → react-rbmk30xk.js} +92 -29
  77. package/dist/{react-actmnkwp.js → react-rxw73n04.js} +1 -1
  78. package/dist/{react-5h7pxnax.js → react-tet7swk2.js} +22 -15
  79. package/dist/{react-8nmtt0ge.js → react-w94cfn87.js} +19 -15
  80. package/dist/{react-fq4551ks.js → react-wzd3cfg8.js} +11 -10
  81. package/dist/{react-3ev6rwqz.js → react-x209et38.js} +26 -16
  82. package/dist/react.d.ts +3 -1
  83. package/dist/react.js +60 -33
  84. package/dist/{replay-pmesjfa3.js → replay-3xqgt3xg.js} +8 -8
  85. package/dist/{replay-m5g8km9y.js → replay-48gn27bj.js} +8 -8
  86. package/dist/storage/onload.d.ts +1 -1
  87. package/dist/{storageview-9a6zm47z.js → storageview-2rvwk0v7.js} +16 -13
  88. package/dist/{storageview-x62v1c3j.js → storageview-6vq7nz02.js} +16 -13
  89. package/dist/styles/force.d.ts +3 -1
  90. package/dist/types.d.ts +4 -4
  91. package/dist/ui/actions.d.ts +3 -3
  92. package/dist/ui/bindings.d.ts +1 -1
  93. package/dist/ui/catalog.d.ts +14 -14
  94. package/dist/ui/changes.d.ts +1 -1
  95. package/dist/ui/colors.d.ts +1 -1
  96. package/dist/ui/deviceknobs.d.ts +2 -2
  97. package/dist/ui/editors.d.ts +3 -3
  98. package/dist/ui/foldslider.d.ts +2 -2
  99. package/dist/ui/keys.d.ts +1 -1
  100. package/dist/ui/list.d.ts +10 -10
  101. package/dist/ui/palette.d.ts +2 -2
  102. package/dist/ui/pin.d.ts +2 -2
  103. package/dist/ui/prefs.d.ts +1 -1
  104. package/dist/ui/rows.d.ts +3 -3
  105. package/dist/ui/storageview.d.ts +2 -2
  106. package/dist/ui/stylesview.d.ts +3 -3
  107. package/dist/ui/swatches.d.ts +2 -2
  108. package/package.json +1 -1
  109. package/skills/knobs/SKILL.md +36 -35
  110. package/dist/index-5tv6sr74.js +0 -23
  111. package/dist/react-t2qnewz2.js +0 -24
package/dist/index.d.ts CHANGED
@@ -5,9 +5,9 @@ import { type Edit } from "./edit/log";
5
5
  import { type ForcedState } from "./styles/force";
6
6
  import type { GrabOptions, GrabResult } from "./grab/types";
7
7
  import { type HostBuild, type PreferSetting, type PreferValue } from "./host";
8
- import type { DevknobsState, DevknobsStatePatch, GrabColorValue } from "./types";
8
+ import type { KnobsState, KnobsStatePatch, GrabColorValue } from "./types";
9
9
  import { type KeysStore } from "./ui/bindings";
10
- 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";
10
+ export type { BarsValue, BrowserValue, ClockMode, ClockValue, ConnectionValue, ContrastValue, KnobsState, KnobsStatePatch, 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";
11
11
  export type { KnobDescription, KnobField, KnobReload, KnobShape, KnobValue, } from "./engine/describe";
12
12
  export type { DeviceKind, DevicePreset } from "./engine/devices";
13
13
  export type { Edit, EditKind, EditPlace, EditTarget } from "./edit/log";
@@ -124,16 +124,16 @@ export { holdInTopLayer, LAYER, type TopLayerHold } from "./engine/toplayer";
124
124
  * switch. `note` shows on that switch, such as why it went off.
125
125
  */
126
126
  export declare const setNative: typeof engine.setNative;
127
- export declare function getState(): DevknobsState;
127
+ export declare function getState(): KnobsState;
128
128
  /**
129
129
  * Apply a patch of knobs. A knob or a field the state does not have, or a
130
130
  * value it does not take, throws a TypeError, and then nothing changes. The
131
131
  * whole of `getState()` goes back in.
132
132
  */
133
- export declare function setState(patch: DevknobsStatePatch): DevknobsState;
133
+ export declare function setState(patch: KnobsStatePatch): KnobsState;
134
134
  export declare function reset(): void;
135
135
  export declare function replay(): void;
136
- export declare function ready(): Promise<DevknobsState>;
136
+ export declare function ready(): Promise<KnobsState>;
137
137
  export declare function describe(): KnobDescription[];
138
138
  /**
139
139
  * Copy what an agent needs to find the elements in the code: their html, the
@@ -194,10 +194,16 @@ declare const api: {
194
194
  undoEdit: typeof undoEdit;
195
195
  forceState: typeof forceState;
196
196
  };
197
- /** What `mount` puts at `window.devknobs`, for agents that run code in the page. */
198
- export type DevknobsApi = typeof api;
197
+ /** What `mount` puts at `window.knobs` and `window.devknobs`, for agents that run code in the page. */
198
+ export type KnobsApi = typeof api;
199
+ /** @deprecated use KnobsApi */
200
+ export type DevknobsApi = KnobsApi;
201
+ /** @deprecated use KnobsState */
202
+ export type DevknobsState = KnobsState;
203
+ /** @deprecated use KnobsStatePatch */
204
+ export type DevknobsStatePatch = KnobsStatePatch;
199
205
  declare global {
200
206
  interface Window {
201
- devknobs?: DevknobsApi;
207
+ devknobs?: KnobsApi;
202
208
  }
203
209
  }