@smwb/ui-mcp-solid 0.9.0 → 0.10.0

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.
@@ -0,0 +1,203 @@
1
+ {
2
+ "name": "FloatingWindow",
3
+ "description": "Draggable, resizable non-modal window; several can stay open at once.",
4
+ "ssr": {
5
+ "safe": true,
6
+ "rendering": "client",
7
+ "note": "Renders nothing on the server; the window is portaled into <body> on the client after hydration."
8
+ },
9
+ "extends": [
10
+ "Omit<JSX.HTMLAttributes<HTMLDivElement>, \"onResize\" | \"title\">"
11
+ ],
12
+ "inheritedAttributes": "Also accepts standard HTML attributes for the underlying element (see extends clause in TypeScript).",
13
+ "styles": {
14
+ "base": [
15
+ "@smwb/ui-styles/less/foundation.less",
16
+ "@smwb/ui-styles/less/theme.less"
17
+ ],
18
+ "entries": [
19
+ "@smwb/ui-styles/less/components/floatingWindow/floatingWindow.entry.less"
20
+ ],
21
+ "dependencies": [
22
+ "@smwb/ui-styles/less/components/icon/icon.entry.less"
23
+ ],
24
+ "importExample": "@import (less) \"node_modules/@smwb/ui-styles/less/foundation.less\";\n@import (less) \"node_modules/@smwb/ui-styles/less/theme.less\";\n@import (less) \"node_modules/@smwb/ui-styles/less/components/floatingWindow/floatingWindow.entry.less\";\n@import (less) \"node_modules/@smwb/ui-styles/less/components/icon/icon.entry.less\";"
25
+ },
26
+ "props": {
27
+ "open": {
28
+ "type": "boolean",
29
+ "required": true,
30
+ "description": "Controlled open state of the window."
31
+ },
32
+ "title": {
33
+ "type": "JSX.Element",
34
+ "required": false,
35
+ "description": "Title bar content. When given, the window is labelled by it."
36
+ },
37
+ "headerActions": {
38
+ "type": "JSX.Element",
39
+ "required": false,
40
+ "description": "Extra header controls, rendered before the built-in collapse/close buttons."
41
+ },
42
+ "position": {
43
+ "type": "FloatingWindowPosition",
44
+ "required": false,
45
+ "description": "Controlled top-left position in viewport px."
46
+ },
47
+ "defaultPosition": {
48
+ "type": "FloatingWindowPosition",
49
+ "required": false,
50
+ "description": "Initial position when uncontrolled."
51
+ },
52
+ "onPositionChange": {
53
+ "type": "((position: FloatingWindowPosition) => void) | undefined",
54
+ "required": false,
55
+ "description": "Called on every move frame and on viewport re-clamp, with the clamped position."
56
+ },
57
+ "onMoveEnd": {
58
+ "type": "((position: FloatingWindowPosition) => void) | undefined",
59
+ "required": false,
60
+ "description": "Called once when a move gesture ends — the point at which to persist."
61
+ },
62
+ "size": {
63
+ "type": "FloatingWindowSize",
64
+ "required": false,
65
+ "description": "Controlled size in px."
66
+ },
67
+ "defaultSize": {
68
+ "type": "FloatingWindowSize",
69
+ "required": false,
70
+ "description": "Initial size when uncontrolled."
71
+ },
72
+ "onResize": {
73
+ "type": "((size: FloatingWindowSize) => void) | undefined",
74
+ "required": false,
75
+ "description": "Called on every resize frame and on viewport re-clamp, with the clamped size."
76
+ },
77
+ "onResizeEnd": {
78
+ "type": "((size: FloatingWindowSize) => void) | undefined",
79
+ "required": false,
80
+ "description": "Called once when a resize gesture ends — the point at which to persist."
81
+ },
82
+ "minWidth": {
83
+ "type": "number",
84
+ "required": false,
85
+ "description": "Minimum width in px (default 200)."
86
+ },
87
+ "minHeight": {
88
+ "type": "number",
89
+ "required": false,
90
+ "description": "Minimum height in px (default 120)."
91
+ },
92
+ "maxWidth": {
93
+ "type": "number",
94
+ "required": false,
95
+ "description": "Maximum width in px (default: viewport width)."
96
+ },
97
+ "maxHeight": {
98
+ "type": "number",
99
+ "required": false,
100
+ "description": "Maximum height in px (default: viewport height)."
101
+ },
102
+ "keepVisible": {
103
+ "type": "number",
104
+ "required": false,
105
+ "description": "Px of the window that must stay inside the viewport (default 56)."
106
+ },
107
+ "moveStep": {
108
+ "type": "number",
109
+ "required": false,
110
+ "description": "Step in px for keyboard moving (default 24)."
111
+ },
112
+ "resizeStep": {
113
+ "type": "number",
114
+ "required": false,
115
+ "description": "Step in px for keyboard resizing (default 24)."
116
+ },
117
+ "zIndex": {
118
+ "type": "number",
119
+ "required": false,
120
+ "description": "Inline stacking order. The host owns z-order across several windows."
121
+ },
122
+ "onActivate": {
123
+ "type": "(() => void) | undefined",
124
+ "required": false,
125
+ "description": "Called on pointerdown anywhere in the window, so the host can raise it."
126
+ },
127
+ "collapsed": {
128
+ "type": "boolean",
129
+ "required": false,
130
+ "description": "Shade the window down to its title bar."
131
+ },
132
+ "defaultCollapsed": {
133
+ "type": "boolean",
134
+ "required": false,
135
+ "description": "Initial collapsed state when uncontrolled."
136
+ },
137
+ "onCollapsedChange": {
138
+ "type": "((collapsed: boolean) => void) | undefined",
139
+ "required": false,
140
+ "description": "Callback fired when collapsed state changes."
141
+ },
142
+ "collapsible": {
143
+ "type": "boolean",
144
+ "required": false,
145
+ "description": "Render the built-in collapse toggle (default true)."
146
+ },
147
+ "movable": {
148
+ "type": "boolean",
149
+ "required": false,
150
+ "description": "Allow drag-to-move by the title bar (default true)."
151
+ },
152
+ "resizable": {
153
+ "type": "boolean",
154
+ "required": false,
155
+ "description": "Allow drag-to-resize from the edges and corners (default true)."
156
+ },
157
+ "closeOnEsc": {
158
+ "type": "boolean",
159
+ "required": false,
160
+ "description": "Close on Escape while focus is inside the window (default false)."
161
+ },
162
+ "onClose": {
163
+ "type": "(() => void) | undefined",
164
+ "required": false,
165
+ "description": "Callback fired when the user dismisses the component."
166
+ },
167
+ "moveHandleAriaLabel": {
168
+ "type": "string",
169
+ "required": false,
170
+ "description": "Accessible label for the move handle."
171
+ },
172
+ "resizeHandleAriaLabel": {
173
+ "type": "string",
174
+ "required": false,
175
+ "description": "Accessible label for the resize handle."
176
+ },
177
+ "closeAriaLabel": {
178
+ "type": "string",
179
+ "required": false,
180
+ "description": "Accessible label for the close button."
181
+ },
182
+ "collapseAriaLabel": {
183
+ "type": "string",
184
+ "required": false,
185
+ "description": "Accessible label for the collapse toggle while expanded."
186
+ },
187
+ "expandAriaLabel": {
188
+ "type": "string",
189
+ "required": false,
190
+ "description": "Accessible label for the collapse toggle while collapsed."
191
+ },
192
+ "aria-label": {
193
+ "type": "string",
194
+ "required": false,
195
+ "description": "Accessible label when no visible title is present."
196
+ },
197
+ "ref": {
198
+ "type": "Ref<HTMLDivElement>",
199
+ "required": false,
200
+ "description": "Ref. Optional. Type: Ref<HTMLDivElement>."
201
+ }
202
+ }
203
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smwb/ui-mcp-solid",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "description": "Model Context Protocol server exposing the @smwb/ui-solid (SolidJS) component catalog and customization guide.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -28,8 +28,8 @@
28
28
  "zod": "^4.4.3"
29
29
  },
30
30
  "devDependencies": {
31
- "@smwb/ui-solid": "^0.9.0",
32
- "@smwb/ui-styles": "^1.3.0",
31
+ "@smwb/ui-solid": "^0.10.0",
32
+ "@smwb/ui-styles": "^1.4.0",
33
33
  "glob": "^13.0.6",
34
34
  "typescript": "^6.0.3",
35
35
  "vitest": "^2.1.9"