@commercetools/nimbus-mcp 3.0.0 → 3.1.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.
Files changed (180) hide show
  1. package/data/docs/route-manifest.json +1407 -794
  2. package/data/docs/routes/components-data-display-data-table.json +66 -34
  3. package/data/docs/routes/components-data-display-draggable-list.json +62 -7
  4. package/data/docs/routes/components-inputs-checkbox.json +2 -2
  5. package/data/docs/routes/components-layout-splitter.json +654 -0
  6. package/data/docs/routes/components-utilities-region.json +265 -0
  7. package/data/docs/routes/home-getting-started-bundler-plugins.json +248 -0
  8. package/data/docs/routes/hooks-usedraganddrop.json +310 -0
  9. package/data/docs/routes/patterns-actions.json +78 -0
  10. package/data/docs/routes/patterns-dialogs-confirmation-dialog.json +391 -0
  11. package/data/docs/routes/patterns-dialogs-form-dialog.json +358 -0
  12. package/data/docs/routes/patterns-dialogs.json +2 -2
  13. package/data/docs/routes/patterns-pages-public-page-layout.json +371 -0
  14. package/data/docs/routes/patterns-pages.json +78 -0
  15. package/data/docs/search-index.json +1 -1
  16. package/data/docs/types/AccordionContent.json +32 -32
  17. package/data/docs/types/AccordionHeader.json +102 -102
  18. package/data/docs/types/AccordionItem.json +28 -28
  19. package/data/docs/types/AccordionRoot.json +15 -15
  20. package/data/docs/types/AlertDescription.json +8 -8
  21. package/data/docs/types/AlertDismissButton.json +89 -89
  22. package/data/docs/types/AlertTitle.json +8 -8
  23. package/data/docs/types/Avatar.json +2 -2
  24. package/data/docs/types/Badge.json +2 -2
  25. package/data/docs/types/Body.json +6 -6
  26. package/data/docs/types/Box.json +6 -6
  27. package/data/docs/types/Button.json +97 -97
  28. package/data/docs/types/Calendar.json +111 -65
  29. package/data/docs/types/Caption.json +6 -6
  30. package/data/docs/types/CardRoot.json +2 -2
  31. package/data/docs/types/Cell.json +20 -20
  32. package/data/docs/types/Checkbox.json +99 -99
  33. package/data/docs/types/Code.json +10 -10
  34. package/data/docs/types/CollapsibleMotionContent.json +2 -2
  35. package/data/docs/types/CollapsibleMotionRoot.json +2 -2
  36. package/data/docs/types/CollapsibleMotionTrigger.json +4 -4
  37. package/data/docs/types/Column.json +8 -8
  38. package/data/docs/types/ColumnGroup.json +8 -8
  39. package/data/docs/types/ColumnHeader.json +18 -18
  40. package/data/docs/types/ComboBoxListBox.json +80 -80
  41. package/data/docs/types/ComboBoxOption.json +77 -77
  42. package/data/docs/types/ComboBoxPopover.json +77 -77
  43. package/data/docs/types/ComboBoxRoot.json +8 -8
  44. package/data/docs/types/ComboBoxSection.json +29 -29
  45. package/data/docs/types/ComboBoxTrigger.json +6 -6
  46. package/data/docs/types/ConfirmationDialog.json +224 -0
  47. package/data/docs/types/Content.json +2 -2
  48. package/data/docs/types/DataTable.json +17 -2
  49. package/data/docs/types/DataTableBody.json +24 -24
  50. package/data/docs/types/DataTableHeader.json +31 -31
  51. package/data/docs/types/DataTableRoot.json +17 -2
  52. package/data/docs/types/DataTableTable.json +35 -20
  53. package/data/docs/types/DateInput.json +84 -84
  54. package/data/docs/types/DatePicker.json +65 -65
  55. package/data/docs/types/DateRangePicker.json +99 -99
  56. package/data/docs/types/DateRangePickerField.json +99 -99
  57. package/data/docs/types/DefaultPageBackLink.json +16 -16
  58. package/data/docs/types/DefaultPageRoot.json +2 -2
  59. package/data/docs/types/DialogCloseTrigger.json +87 -87
  60. package/data/docs/types/DialogTrigger.json +2 -2
  61. package/data/docs/types/DragAndDropItemData.json +9 -0
  62. package/data/docs/types/DragAndDropProps.json +9 -0
  63. package/data/docs/types/DraggableListField.json +159 -70
  64. package/data/docs/types/DraggableListItem.json +63 -63
  65. package/data/docs/types/DraggableListRoot.json +159 -70
  66. package/data/docs/types/DrawerCloseTrigger.json +87 -87
  67. package/data/docs/types/DrawerTrigger.json +2 -2
  68. package/data/docs/types/FieldErrors.json +2 -2
  69. package/data/docs/types/Flex.json +22 -22
  70. package/data/docs/types/Footer.json +6 -6
  71. package/data/docs/types/FormDialog.json +198 -0
  72. package/data/docs/types/FormFieldRoot.json +2 -2
  73. package/data/docs/types/Grid.json +24 -24
  74. package/data/docs/types/Group.json +12 -12
  75. package/data/docs/types/Header.json +6 -6
  76. package/data/docs/types/Heading.json +8 -8
  77. package/data/docs/types/Icon.json +4 -4
  78. package/data/docs/types/IconButton.json +97 -97
  79. package/data/docs/types/IconToggleButton.json +84 -84
  80. package/data/docs/types/Image.json +30 -30
  81. package/data/docs/types/Indicator.json +6 -6
  82. package/data/docs/types/InlineSvg.json +2 -2
  83. package/data/docs/types/Item.json +6 -6
  84. package/data/docs/types/Kbd.json +8 -8
  85. package/data/docs/types/Link.json +31 -31
  86. package/data/docs/types/ListIndicator.json +6 -6
  87. package/data/docs/types/ListItem.json +6 -6
  88. package/data/docs/types/ListRoot.json +10 -10
  89. package/data/docs/types/LoadingSpinner.json +2 -2
  90. package/data/docs/types/MakeElementFocusable.json +19 -19
  91. package/data/docs/types/MenuItem.json +75 -75
  92. package/data/docs/types/MenuRoot.json +63 -63
  93. package/data/docs/types/MenuSection.json +35 -54
  94. package/data/docs/types/MenuSubmenuTrigger.json +5 -5
  95. package/data/docs/types/MenuTrigger.json +102 -102
  96. package/data/docs/types/MultilineTextInput.json +134 -134
  97. package/data/docs/types/MultilineTextInputField.json +131 -131
  98. package/data/docs/types/NumberInput.json +100 -100
  99. package/data/docs/types/NumberInputField.json +95 -95
  100. package/data/docs/types/PageContentColumn.json +6 -6
  101. package/data/docs/types/PageContentRoot.json +6 -6
  102. package/data/docs/types/PasswordInput.json +129 -129
  103. package/data/docs/types/PasswordInputField.json +129 -129
  104. package/data/docs/types/ProgressBar.json +14 -14
  105. package/data/docs/types/PublicPageLayout.json +99 -0
  106. package/data/docs/types/RadioInputOption.json +64 -64
  107. package/data/docs/types/RadioInputRoot.json +55 -55
  108. package/data/docs/types/RangeCalendar.json +90 -71
  109. package/data/docs/types/Region.json +114 -0
  110. package/data/docs/types/RegionProvider.json +25 -0
  111. package/data/docs/types/RegionTarget.json +112 -0
  112. package/data/docs/types/RichTextInput.json +2 -2
  113. package/data/docs/types/Root.json +10 -10
  114. package/data/docs/types/Row.json +6 -6
  115. package/data/docs/types/SPLITTER_SIZE_TOKENS.json +9 -0
  116. package/data/docs/types/ScrollArea.json +2 -2
  117. package/data/docs/types/SearchInput.json +136 -136
  118. package/data/docs/types/SearchInputField.json +131 -131
  119. package/data/docs/types/SelectOption.json +66 -66
  120. package/data/docs/types/SelectOptionGroup.json +22 -22
  121. package/data/docs/types/SelectOptions.json +74 -74
  122. package/data/docs/types/SelectRoot.json +102 -102
  123. package/data/docs/types/Separator.json +4 -4
  124. package/data/docs/types/SimpleGrid.json +28 -28
  125. package/data/docs/types/SplitButton.json +12 -12
  126. package/data/docs/types/Splitter.json +12 -0
  127. package/data/docs/types/SplitterAside.json +27 -0
  128. package/data/docs/types/SplitterHandle.json +27 -0
  129. package/data/docs/types/SplitterMain.json +27 -0
  130. package/data/docs/types/SplitterRoot.json +271 -0
  131. package/data/docs/types/SplitterSizeToken.json +9 -0
  132. package/data/docs/types/Stack.json +2 -2
  133. package/data/docs/types/StepsNextTrigger.json +2 -2
  134. package/data/docs/types/StepsPrevTrigger.json +2 -2
  135. package/data/docs/types/StepsRoot.json +2 -2
  136. package/data/docs/types/StepsTrigger.json +2 -2
  137. package/data/docs/types/Switch.json +38 -38
  138. package/data/docs/types/TabNavItem.json +18 -18
  139. package/data/docs/types/TabNavRoot.json +2 -2
  140. package/data/docs/types/TableBody.json +6 -6
  141. package/data/docs/types/TableCaption.json +6 -6
  142. package/data/docs/types/TableCell.json +20 -20
  143. package/data/docs/types/TableColumn.json +8 -8
  144. package/data/docs/types/TableColumnGroup.json +8 -8
  145. package/data/docs/types/TableColumnHeader.json +18 -18
  146. package/data/docs/types/TableFooter.json +6 -6
  147. package/data/docs/types/TableHeader.json +6 -6
  148. package/data/docs/types/TableRoot.json +32 -32
  149. package/data/docs/types/TableRow.json +6 -6
  150. package/data/docs/types/TableScrollArea.json +6 -6
  151. package/data/docs/types/TabsTab.json +2 -2
  152. package/data/docs/types/TagGroupRoot.json +27 -27
  153. package/data/docs/types/TagGroupTag.json +68 -68
  154. package/data/docs/types/TagGroupTagList.json +18 -18
  155. package/data/docs/types/Text.json +8 -8
  156. package/data/docs/types/TextInput.json +132 -132
  157. package/data/docs/types/TextInputField.json +129 -129
  158. package/data/docs/types/TimeInput.json +78 -78
  159. package/data/docs/types/ToggleButton.json +86 -86
  160. package/data/docs/types/ToggleButtonGroupButton.json +33 -33
  161. package/data/docs/types/ToggleButtonGroupRoot.json +20 -20
  162. package/data/docs/types/Toolbar.json +12 -12
  163. package/data/docs/types/TooltipContent.json +31 -31
  164. package/data/docs/types/TooltipRoot.json +18 -18
  165. package/data/docs/types/Trigger.json +4 -4
  166. package/data/docs/types/UseDragAndDropOptions.json +9 -0
  167. package/data/docs/types/VisuallyHidden.json +7 -7
  168. package/data/docs/types/createArrayHandlers.json +12 -0
  169. package/data/docs/types/createItemsFromCsvDrop.json +833 -0
  170. package/data/docs/types/createItemsFromDirectoryDrop.json +833 -0
  171. package/data/docs/types/createItemsFromFileDrop.json +833 -0
  172. package/data/docs/types/createItemsFromImageDrop.json +833 -0
  173. package/data/docs/types/createItemsFromJsonDrop.json +833 -0
  174. package/data/docs/types/createItemsFromTextDrop.json +12 -0
  175. package/data/docs/types/createListDataHandlers.json +102 -0
  176. package/data/docs/types/manifest.json +29 -2
  177. package/data/docs/types/useDragAndDrop.json +174 -0
  178. package/data/docs/types/useRegion.json +1052 -0
  179. package/data/docs/types/useResponsiveSplitterSizes.json +143 -0
  180. package/package.json +6 -6
@@ -0,0 +1,143 @@
1
+ {
2
+ "tags": {
3
+ "example": "const { rootProps } = useResponsiveSplitterSizes({\n orientation: \"horizontal\",\n persistKey: \"app:main-splitter\",\n size: { 0: 320, 768: \"30%\" }, // 320px below 768px container width, 30% above\n});\nreturn (\n <Splitter.Root {...rootProps} collapsible>\n <Splitter.Aside>…</Splitter.Aside>\n <Splitter.Handle />\n <Splitter.Main>…</Splitter.Main>\n </Splitter.Root>\n);"
4
+ },
5
+ "filePath": "/home/runner/work/nimbus/nimbus/packages/nimbus/src/index.ts",
6
+ "description": "Translate a pixel-/token-/percent size config — optionally responsive by\ncontainer width — into the percentage `Splitter.Root` consumes, returning\n`rootProps` to spread onto the root.\n\nThe hook is the **pixel/token → percentage translator** the component\ndeliberately omits: `Splitter.Root` stays percentage-native; all pixel math,\ncontainer-width resolution, hook-side clamping, and per-band persistence live\nhere. It drives the component's settle-only controlled `size` channel and\nfeeds the settled value back, so the controlled loop stays closed with no\nsnap-back. A bare `number` is **always pixels**.",
7
+ "displayName": "useResponsiveSplitterSizes",
8
+ "methods": [],
9
+ "props": {
10
+ "orientation": {
11
+ "defaultValue": {
12
+ "value": "\"horizontal\""
13
+ },
14
+ "description": "Splitter orientation — selects the measured axis (width for `\"horizontal\"`,\nheight for `\"vertical\"`) and is forwarded to `Splitter.Root`.",
15
+ "name": "orientation",
16
+ "declarations": [
17
+ {
18
+ "fileName": "nimbus/packages/nimbus/src/components/splitter/splitter.types.ts",
19
+ "name": "TypeLiteral"
20
+ }
21
+ ],
22
+ "required": false,
23
+ "type": {
24
+ "name": "enum",
25
+ "raw": "\"horizontal\" | \"vertical\"",
26
+ "value": [
27
+ {
28
+ "value": "\"horizontal\""
29
+ },
30
+ {
31
+ "value": "\"vertical\""
32
+ }
33
+ ]
34
+ }
35
+ },
36
+ "size": {
37
+ "defaultValue": null,
38
+ "description": "Aside size config (pixels/token/percent, single value or per-threshold map).",
39
+ "name": "size",
40
+ "declarations": [
41
+ {
42
+ "fileName": "nimbus/packages/nimbus/src/components/splitter/splitter.types.ts",
43
+ "name": "TypeLiteral"
44
+ }
45
+ ],
46
+ "required": true,
47
+ "type": {
48
+ "name": "ResponsiveSplitterSizeConfig"
49
+ }
50
+ },
51
+ "minSize": {
52
+ "defaultValue": null,
53
+ "description": "Aside lower bound (pixels/token/percent). Translated to a percentage and forwarded.",
54
+ "name": "minSize",
55
+ "declarations": [
56
+ {
57
+ "fileName": "nimbus/packages/nimbus/src/components/splitter/splitter.types.ts",
58
+ "name": "TypeLiteral"
59
+ }
60
+ ],
61
+ "required": false,
62
+ "type": {
63
+ "name": "ResponsiveSplitterSizeConfig"
64
+ }
65
+ },
66
+ "maxSize": {
67
+ "defaultValue": null,
68
+ "description": "Aside upper bound (pixels/token/percent). Translated to a percentage and forwarded.",
69
+ "name": "maxSize",
70
+ "declarations": [
71
+ {
72
+ "fileName": "nimbus/packages/nimbus/src/components/splitter/splitter.types.ts",
73
+ "name": "TypeLiteral"
74
+ }
75
+ ],
76
+ "required": false,
77
+ "type": {
78
+ "name": "ResponsiveSplitterSizeConfig"
79
+ }
80
+ },
81
+ "collapsedSize": {
82
+ "defaultValue": null,
83
+ "description": "Aside collapsed size (pixels/token/percent). Static config — never persisted.",
84
+ "name": "collapsedSize",
85
+ "declarations": [
86
+ {
87
+ "fileName": "nimbus/packages/nimbus/src/components/splitter/splitter.types.ts",
88
+ "name": "TypeLiteral"
89
+ }
90
+ ],
91
+ "required": false,
92
+ "type": {
93
+ "name": "ResponsiveSplitterSizeConfig"
94
+ }
95
+ },
96
+ "persistKey": {
97
+ "defaultValue": null,
98
+ "description": "Storage key for persistence. When omitted, sizes are not persisted.",
99
+ "name": "persistKey",
100
+ "declarations": [
101
+ {
102
+ "fileName": "nimbus/packages/nimbus/src/components/splitter/splitter.types.ts",
103
+ "name": "TypeLiteral"
104
+ }
105
+ ],
106
+ "required": false,
107
+ "type": {
108
+ "name": "string"
109
+ }
110
+ },
111
+ "storage": {
112
+ "defaultValue": null,
113
+ "description": "Storage adapter. Defaults to a `localStorage` wrapper that never throws.",
114
+ "name": "storage",
115
+ "declarations": [
116
+ {
117
+ "fileName": "nimbus/packages/nimbus/src/components/splitter/splitter.types.ts",
118
+ "name": "TypeLiteral"
119
+ }
120
+ ],
121
+ "required": false,
122
+ "type": {
123
+ "name": "SplitterSizesStorage"
124
+ }
125
+ },
126
+ "onCollapsedChange": {
127
+ "defaultValue": null,
128
+ "description": "Optional passthrough for collapse changes. The hook always wires its own\n`onCollapsedChange` (to suppress persistence while collapsed); this is\ninvoked in addition so consumers can observe collapse too.",
129
+ "name": "onCollapsedChange",
130
+ "declarations": [
131
+ {
132
+ "fileName": "nimbus/packages/nimbus/src/components/splitter/splitter.types.ts",
133
+ "name": "TypeLiteral"
134
+ }
135
+ ],
136
+ "required": false,
137
+ "type": {
138
+ "name": "((collapsed: boolean) => void)"
139
+ }
140
+ }
141
+ },
142
+ "supportsStyleProps": false
143
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools/nimbus-mcp",
3
- "version": "3.0.0",
3
+ "version": "3.1.0",
4
4
  "description": "MCP server for the Nimbus design system",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -29,13 +29,13 @@
29
29
  },
30
30
  "devDependencies": {
31
31
  "@modelcontextprotocol/inspector": "^0.21.2",
32
- "@types/node": "^24.12.2",
32
+ "@types/node": "^24.13.0",
33
33
  "tsup": "^8.5.1",
34
- "tsx": "^4.21.0",
34
+ "tsx": "^4.22.4",
35
35
  "typescript": "~5.9.3",
36
- "@commercetools/nimbus": "^3.0.0",
37
- "@commercetools/nimbus-icons": "^3.0.0",
38
- "@commercetools/nimbus-tokens": "^3.0.0"
36
+ "@commercetools/nimbus": "^3.1.0",
37
+ "@commercetools/nimbus-tokens": "^3.1.0",
38
+ "@commercetools/nimbus-icons": "^3.1.0"
39
39
  },
40
40
  "scripts": {
41
41
  "prebuild": "tsx scripts/prebuild.ts",