@vinena/knobs 0.5.3 → 0.6.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 (94) hide show
  1. package/CHANGELOG.md +32 -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 +5 -5
  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-dm5v3z5a.js +3761 -0
  16. package/dist/elementsview-xm82cvs2.js +3762 -0
  17. package/dist/engine/dock.d.ts +3 -4
  18. package/dist/engine/frame.d.ts +1 -1
  19. package/dist/engine/style.d.ts +15 -0
  20. package/dist/{framekit-cjz0e4y8.js → framekit-622h6w1f.js} +54 -47
  21. package/dist/{framekit-yk1jxjv7.js → framekit-yx612r28.js} +54 -47
  22. package/dist/index-0zp9py56.js +859 -0
  23. package/dist/{index-prjpx67p.js → index-1mstjadm.js} +126 -2167
  24. package/dist/{index-begsqdm0.js → index-4a4x1bt2.js} +1 -1
  25. package/dist/index-58jdczmj.js +44 -0
  26. package/dist/index-5tv6sr74.js +23 -0
  27. package/dist/index-6bc2ztfd.js +688 -0
  28. package/dist/index-7cb4x1vj.js +1885 -0
  29. package/dist/index-a974q3aa.js +34 -0
  30. package/dist/{index-q73py563.js → index-aymfvd8s.js} +1 -1
  31. package/dist/{index-zt3rheck.js → index-aynkv7qk.js} +11 -8
  32. package/dist/{index-p57fdttx.js → index-dzm8ywq0.js} +492 -2365
  33. package/dist/{index-9jhatmky.js → index-f60yax1j.js} +13 -8
  34. package/dist/index-f67wctn3.js +1858 -0
  35. package/dist/{index-vgfn2n1h.js → index-ftjdt358.js} +8 -171
  36. package/dist/{index-j1h13ahg.js → index-gm51cthv.js} +2 -45
  37. package/dist/index-kfdzsyyw.js +1859 -0
  38. package/dist/index-t4kssacm.js +208 -0
  39. package/dist/index-v0ht9q0g.js +1518 -0
  40. package/dist/{index-6wbgqkdz.js → index-x59vz1xx.js} +247 -905
  41. package/dist/index-xh39jtkq.js +32 -0
  42. package/dist/index-yb7fc59g.js +718 -0
  43. package/dist/index-zd6adby9.js +496 -0
  44. package/dist/index.d.ts +62 -0
  45. package/dist/index.global.js +438 -153
  46. package/dist/index.js +594 -486
  47. package/dist/react-0wepdf60.js +1519 -0
  48. package/dist/{react-gefkdkdz.js → react-1gqwa2yw.js} +1 -1
  49. package/dist/{index-sn2y6j09.js → react-3mfz1x2a.js} +126 -2167
  50. package/dist/react-4rbjw9af.js +33 -0
  51. package/dist/react-5rq7bnsy.js +210 -0
  52. package/dist/react-6bz05qk1.js +860 -0
  53. package/dist/{react-qgz9afa2.js → react-6fnxxs30.js} +8 -171
  54. package/dist/react-6q2cw2ya.js +689 -0
  55. package/dist/{react-7vjfsh40.js → react-6t4dbdzn.js} +11 -8
  56. package/dist/react-88es9b5q.js +719 -0
  57. package/dist/react-97b5b8j4.js +46 -0
  58. package/dist/{react-mmq2zya3.js → react-bxzn8vq5.js} +1 -1
  59. package/dist/{react-3rhdj2k1.js → react-cs62p9qh.js} +62 -720
  60. package/dist/react-ethftdxp.js +497 -0
  61. package/dist/react-fp73vhyd.js +36 -0
  62. package/dist/{react-qfpg79hs.js → react-me102s1a.js} +2 -45
  63. package/dist/react-t2qnewz2.js +24 -0
  64. package/dist/react-ttj8f9qp.js +1886 -0
  65. package/dist/{react-806qmkyz.js → react-v8497a41.js} +13 -8
  66. package/dist/{react-6tss0r9f.js → react-wqn4sx0n.js} +265 -2137
  67. package/dist/react.js +590 -486
  68. package/dist/replay-j18rw92k.js +258 -0
  69. package/dist/replay-vtg0vqj2.js +257 -0
  70. package/dist/{storageview-7cv0vpdm.js → storageview-6xj7zb63.js} +11 -7
  71. package/dist/{storageview-dyhpgt8f.js → storageview-pzn8yaad.js} +11 -7
  72. package/dist/styles/force.d.ts +66 -0
  73. package/dist/ui/bindings.d.ts +31 -5
  74. package/dist/ui/changes.d.ts +49 -0
  75. package/dist/ui/cssauto.d.ts +119 -0
  76. package/dist/ui/cssedit.d.ts +80 -0
  77. package/dist/ui/domedit.d.ts +99 -0
  78. package/dist/ui/domtree.d.ts +26 -1
  79. package/dist/ui/elementsview.d.ts +17 -2
  80. package/dist/ui/htmledit.d.ts +62 -0
  81. package/dist/ui/inspector.d.ts +6 -1
  82. package/dist/ui/keys.d.ts +12 -8
  83. package/dist/ui/pane.d.ts +0 -2
  84. package/dist/ui/panel.d.ts +3 -0
  85. package/dist/ui/prefs.d.ts +30 -10
  86. package/dist/ui/settings.d.ts +22 -1
  87. package/dist/ui/size.d.ts +14 -22
  88. package/dist/ui/stylesview.d.ts +30 -1
  89. package/package.json +1 -1
  90. package/skills/devknobs/SKILL.md +95 -0
  91. package/dist/elementsview-1wsxcdtj.js +0 -2874
  92. package/dist/elementsview-3kv34jfx.js +0 -2873
  93. package/dist/index-78r0f8pw.js +0 -27
  94. package/dist/react-adky72h9.js +0 -29
@@ -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. */
@@ -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`. */
@@ -3,10 +3,7 @@ import {
3
3
  FADE_CURVE,
4
4
  MORPH_TIME,
5
5
  bezier,
6
- columnEdge,
7
6
  coverAt,
8
- dockEdges,
9
- dockWidth,
10
7
  ease,
11
8
  fitCorners,
12
9
  folds,
@@ -15,7 +12,6 @@ import {
15
12
  keepMounted,
16
13
  lerp,
17
14
  moves,
18
- onDockWidth,
19
15
  plan,
20
16
  poseAt,
21
17
  poseOf,
@@ -29,97 +25,108 @@ import {
29
25
  turnOf,
30
26
  turnedPose,
31
27
  windowRect
32
- } from "./react-qfpg79hs.js";
28
+ } from "./react-me102s1a.js";
33
29
  import {
34
30
  hush,
35
31
  hushOnce,
36
32
  quietFetch
37
- } from "./react-gefkdkdz.js";
33
+ } from "./react-1gqwa2yw.js";
34
+ import {
35
+ columnEdge,
36
+ dockEdges,
37
+ dockWidth,
38
+ onDockWidth
39
+ } from "./react-97b5b8j4.js";
38
40
  import {
39
41
  copyText
40
42
  } from "./react-h9w04skh.js";
41
43
  import {
42
44
  BARS_START,
43
45
  DOT_LOOK,
44
- FRAME_ATTRIBUTE,
45
- FRAME_NAME,
46
- FRESH_ATTRIBUTE,
47
46
  MARK_EVENT,
48
47
  MAT_COLORS,
49
48
  MAT_COLOR_NAMES,
50
49
  SAFARI_TEXT,
51
- UNFRAMED,
52
- ZOOM_MAX,
53
- ZOOM_PRESETS,
54
50
  Z_INDEX,
55
- __export,
56
- addStyle,
57
51
  adoptEarly,
58
52
  alphaAt,
59
- anchorScroll,
60
- apply3 as apply,
61
- apply4 as apply2,
53
+ apply,
54
+ apply1 as apply2,
62
55
  barsOf,
63
56
  barsStep,
64
- baseMatchMedia,
65
- carried,
66
57
  clearSnapshot,
67
- coarse,
68
- deviceOf,
69
58
  dropEarly,
70
- ensureStyle,
71
59
  equip,
72
60
  equip1 as equip2,
73
61
  follow,
74
- formId,
75
- formOf,
76
- fresh,
77
62
  handing,
78
- handsSchemeDown,
79
- hasTouch,
80
63
  islandOf,
81
64
  keep,
82
65
  keepDrawing,
83
66
  layoutOf,
84
- loads,
85
- luminance,
86
67
  matGradient,
87
- merge,
88
68
  mockOf,
89
69
  nativeEnabled,
90
- needsFrame,
91
- openOf,
92
- ownReload,
93
- parseColor,
94
- parseHex,
95
- percent,
96
70
  placeIn,
97
- plainFrame,
98
- post,
99
71
  putMat,
100
72
  readMark,
101
- readMessage,
102
73
  readSnapshot,
103
- removeStyle,
104
74
  round,
105
75
  runsUnderBars,
106
- screenOf,
107
76
  screenSizeOf,
108
77
  settles,
109
78
  snapshotKey,
110
- stepZoom,
111
- still,
112
79
  stopAdopting,
113
- styleNode,
114
- turn,
115
80
  turnRadius,
116
81
  turnRect,
117
82
  turnSides,
118
83
  uaPreset,
119
84
  userAgentOf,
120
- viewportOf,
85
+ viewportOf
86
+ } from "./react-ttj8f9qp.js";
87
+ import {
88
+ FRAME_ATTRIBUTE,
89
+ FRAME_NAME,
90
+ FRESH_ATTRIBUTE,
91
+ UNFRAMED,
92
+ ZOOM_MAX,
93
+ ZOOM_PRESETS,
94
+ addStyle,
95
+ anchorScroll,
96
+ baseMatchMedia,
97
+ carried,
98
+ coarse,
99
+ deviceOf,
100
+ ensureStyle,
101
+ formId,
102
+ formOf,
103
+ fresh,
104
+ handsSchemeDown,
105
+ hasTouch,
106
+ loads,
107
+ luminance,
108
+ merge,
109
+ needsFrame,
110
+ openOf,
111
+ ownReload,
112
+ parseColor,
113
+ parseHex,
114
+ percent,
115
+ plainFrame,
116
+ post,
117
+ readMessage,
118
+ removeStyle,
119
+ screenOf,
120
+ stepZoom,
121
+ still,
122
+ styleNode,
123
+ turn,
121
124
  wheelZoom
122
- } from "./react-6tss0r9f.js";
125
+ } from "./react-wqn4sx0n.js";
126
+ import"./react-fp73vhyd.js";
127
+ import {
128
+ __export
129
+ } from "./react-t2qnewz2.js";
123
130
 
124
131
  // src/engine/width.ts
125
132
  var exports_width = {};
@@ -2,10 +2,7 @@ import {
2
2
  FADE_CURVE,
3
3
  MORPH_TIME,
4
4
  bezier,
5
- columnEdge,
6
5
  coverAt,
7
- dockEdges,
8
- dockWidth,
9
6
  ease,
10
7
  fitCorners,
11
8
  folds,
@@ -14,7 +11,6 @@ import {
14
11
  keepMounted,
15
12
  lerp,
16
13
  moves,
17
- onDockWidth,
18
14
  plan,
19
15
  poseAt,
20
16
  poseOf,
@@ -28,97 +24,108 @@ import {
28
24
  turnOf,
29
25
  turnedPose,
30
26
  windowRect
31
- } from "./index-j1h13ahg.js";
27
+ } from "./index-gm51cthv.js";
32
28
  import {
33
29
  hush,
34
30
  hushOnce,
35
31
  quietFetch
36
- } from "./index-q73py563.js";
32
+ } from "./index-aymfvd8s.js";
33
+ import {
34
+ columnEdge,
35
+ dockEdges,
36
+ dockWidth,
37
+ onDockWidth
38
+ } from "./index-58jdczmj.js";
37
39
  import {
38
40
  copyText
39
41
  } from "./index-ztnjefrh.js";
40
42
  import {
41
43
  BARS_START,
42
44
  DOT_LOOK,
43
- FRAME_ATTRIBUTE,
44
- FRAME_NAME,
45
- FRESH_ATTRIBUTE,
46
45
  MARK_EVENT,
47
46
  MAT_COLORS,
48
47
  MAT_COLOR_NAMES,
49
48
  SAFARI_TEXT,
50
- UNFRAMED,
51
- ZOOM_MAX,
52
- ZOOM_PRESETS,
53
49
  Z_INDEX,
54
- __export,
55
- addStyle,
56
50
  adoptEarly,
57
51
  alphaAt,
58
- anchorScroll,
59
- apply3 as apply,
60
- apply4 as apply2,
52
+ apply,
53
+ apply1 as apply2,
61
54
  barsOf,
62
55
  barsStep,
63
- baseMatchMedia,
64
- carried,
65
56
  clearSnapshot,
66
- coarse,
67
- deviceOf,
68
57
  dropEarly,
69
- ensureStyle,
70
58
  equip,
71
59
  equip1 as equip2,
72
60
  follow,
73
- formId,
74
- formOf,
75
- fresh,
76
61
  handing,
77
- handsSchemeDown,
78
- hasTouch,
79
62
  islandOf,
80
63
  keep,
81
64
  keepDrawing,
82
65
  layoutOf,
83
- loads,
84
- luminance,
85
66
  matGradient,
86
- merge,
87
67
  mockOf,
88
68
  nativeEnabled,
89
- needsFrame,
90
- openOf,
91
- ownReload,
92
- parseColor,
93
- parseHex,
94
- percent,
95
69
  placeIn,
96
- plainFrame,
97
- post,
98
70
  putMat,
99
71
  readMark,
100
- readMessage,
101
72
  readSnapshot,
102
- removeStyle,
103
73
  round,
104
74
  runsUnderBars,
105
- screenOf,
106
75
  screenSizeOf,
107
76
  settles,
108
77
  snapshotKey,
109
- stepZoom,
110
- still,
111
78
  stopAdopting,
112
- styleNode,
113
- turn,
114
79
  turnRadius,
115
80
  turnRect,
116
81
  turnSides,
117
82
  uaPreset,
118
83
  userAgentOf,
119
- viewportOf,
84
+ viewportOf
85
+ } from "./index-7cb4x1vj.js";
86
+ import {
87
+ FRAME_ATTRIBUTE,
88
+ FRAME_NAME,
89
+ FRESH_ATTRIBUTE,
90
+ UNFRAMED,
91
+ ZOOM_MAX,
92
+ ZOOM_PRESETS,
93
+ addStyle,
94
+ anchorScroll,
95
+ baseMatchMedia,
96
+ carried,
97
+ coarse,
98
+ deviceOf,
99
+ ensureStyle,
100
+ formId,
101
+ formOf,
102
+ fresh,
103
+ handsSchemeDown,
104
+ hasTouch,
105
+ loads,
106
+ luminance,
107
+ merge,
108
+ needsFrame,
109
+ openOf,
110
+ ownReload,
111
+ parseColor,
112
+ parseHex,
113
+ percent,
114
+ plainFrame,
115
+ post,
116
+ readMessage,
117
+ removeStyle,
118
+ screenOf,
119
+ stepZoom,
120
+ still,
121
+ styleNode,
122
+ turn,
120
123
  wheelZoom
121
- } from "./index-p57fdttx.js";
124
+ } from "./index-dzm8ywq0.js";
125
+ import"./index-a974q3aa.js";
126
+ import {
127
+ __export
128
+ } from "./index-5tv6sr74.js";
122
129
 
123
130
  // src/engine/width.ts
124
131
  var exports_width = {};