@commercetools/nimbus-mcp 2.11.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 (194) hide show
  1. package/data/docs/route-manifest.json +1421 -605
  2. package/data/docs/routes/components-data-display-card.json +71 -5
  3. package/data/docs/routes/components-data-display-data-table.json +66 -34
  4. package/data/docs/routes/components-data-display-draggable-list.json +62 -7
  5. package/data/docs/routes/components-feedback-toast.json +1 -1
  6. package/data/docs/routes/components-inputs-checkbox.json +2 -2
  7. package/data/docs/routes/components-layout-defaultpage.json +4 -4
  8. package/data/docs/routes/components-layout-modalpage.json +4 -4
  9. package/data/docs/routes/components-layout-scrollarea.json +3 -3
  10. package/data/docs/routes/components-layout-splitter.json +654 -0
  11. package/data/docs/routes/components-media-avatar.json +24 -2
  12. package/data/docs/routes/components-utilities-region.json +265 -0
  13. package/data/docs/routes/home-getting-started-bundler-plugins.json +248 -0
  14. package/data/docs/routes/hooks-usedraganddrop.json +310 -0
  15. package/data/docs/routes/patterns-actions-form-action-bar.json +412 -0
  16. package/data/docs/routes/patterns-actions.json +78 -0
  17. package/data/docs/routes/patterns-dialogs-confirmation-dialog.json +391 -0
  18. package/data/docs/routes/patterns-dialogs-form-dialog.json +358 -0
  19. package/data/docs/routes/patterns-dialogs-info-dialog.json +315 -0
  20. package/data/docs/routes/patterns-dialogs.json +78 -0
  21. package/data/docs/routes/patterns-pages-public-page-layout.json +371 -0
  22. package/data/docs/routes/patterns-pages.json +78 -0
  23. package/data/docs/search-index.json +1 -1
  24. package/data/docs/types/AccordionContent.json +32 -32
  25. package/data/docs/types/AccordionHeader.json +102 -102
  26. package/data/docs/types/AccordionItem.json +28 -28
  27. package/data/docs/types/AccordionRoot.json +15 -15
  28. package/data/docs/types/AlertDescription.json +8 -8
  29. package/data/docs/types/AlertDismissButton.json +89 -89
  30. package/data/docs/types/AlertTitle.json +8 -8
  31. package/data/docs/types/Avatar.json +8 -8
  32. package/data/docs/types/Badge.json +2 -2
  33. package/data/docs/types/Body.json +6 -6
  34. package/data/docs/types/Box.json +6 -6
  35. package/data/docs/types/Button.json +97 -97
  36. package/data/docs/types/Calendar.json +111 -65
  37. package/data/docs/types/Caption.json +6 -6
  38. package/data/docs/types/Card.json +1 -1
  39. package/data/docs/types/{CardContent.json → CardBody.json} +2 -2
  40. package/data/docs/types/CardFooter.json +27 -0
  41. package/data/docs/types/CardRoot.json +18 -48
  42. package/data/docs/types/Cell.json +20 -20
  43. package/data/docs/types/Checkbox.json +99 -99
  44. package/data/docs/types/Code.json +10 -10
  45. package/data/docs/types/CollapsibleMotionContent.json +2 -2
  46. package/data/docs/types/CollapsibleMotionRoot.json +2 -2
  47. package/data/docs/types/CollapsibleMotionTrigger.json +4 -4
  48. package/data/docs/types/Column.json +8 -8
  49. package/data/docs/types/ColumnGroup.json +8 -8
  50. package/data/docs/types/ColumnHeader.json +18 -18
  51. package/data/docs/types/ComboBoxListBox.json +80 -80
  52. package/data/docs/types/ComboBoxOption.json +77 -77
  53. package/data/docs/types/ComboBoxPopover.json +77 -77
  54. package/data/docs/types/ComboBoxRoot.json +8 -8
  55. package/data/docs/types/ComboBoxSection.json +29 -29
  56. package/data/docs/types/ComboBoxTrigger.json +6 -6
  57. package/data/docs/types/ConfirmationDialog.json +224 -0
  58. package/data/docs/types/Content.json +2 -2
  59. package/data/docs/types/DataTable.json +17 -2
  60. package/data/docs/types/DataTableBody.json +24 -24
  61. package/data/docs/types/DataTableHeader.json +31 -31
  62. package/data/docs/types/DataTableRoot.json +17 -2
  63. package/data/docs/types/DataTableTable.json +35 -20
  64. package/data/docs/types/DateInput.json +84 -84
  65. package/data/docs/types/DatePicker.json +65 -65
  66. package/data/docs/types/DateRangePicker.json +99 -99
  67. package/data/docs/types/DateRangePickerField.json +99 -99
  68. package/data/docs/types/DefaultPageBackLink.json +16 -16
  69. package/data/docs/types/DefaultPageRoot.json +2 -2
  70. package/data/docs/types/DialogCloseTrigger.json +87 -87
  71. package/data/docs/types/DialogTrigger.json +2 -2
  72. package/data/docs/types/DragAndDropItemData.json +9 -0
  73. package/data/docs/types/DragAndDropProps.json +9 -0
  74. package/data/docs/types/DraggableListField.json +159 -70
  75. package/data/docs/types/DraggableListItem.json +63 -63
  76. package/data/docs/types/DraggableListRoot.json +159 -70
  77. package/data/docs/types/DrawerCloseTrigger.json +87 -87
  78. package/data/docs/types/DrawerTrigger.json +2 -2
  79. package/data/docs/types/FieldErrors.json +2 -2
  80. package/data/docs/types/Flex.json +22 -22
  81. package/data/docs/types/Footer.json +6 -6
  82. package/data/docs/types/FormActionBar.json +200 -0
  83. package/data/docs/types/FormDialog.json +198 -0
  84. package/data/docs/types/FormFieldRoot.json +2 -2
  85. package/data/docs/types/Grid.json +24 -24
  86. package/data/docs/types/Group.json +12 -12
  87. package/data/docs/types/Header.json +6 -6
  88. package/data/docs/types/Heading.json +8 -8
  89. package/data/docs/types/Icon.json +4 -4
  90. package/data/docs/types/IconButton.json +97 -97
  91. package/data/docs/types/IconToggleButton.json +84 -84
  92. package/data/docs/types/Image.json +30 -30
  93. package/data/docs/types/Indicator.json +6 -6
  94. package/data/docs/types/InfoDialog.json +104 -0
  95. package/data/docs/types/InlineSvg.json +2 -2
  96. package/data/docs/types/Item.json +6 -6
  97. package/data/docs/types/Kbd.json +8 -8
  98. package/data/docs/types/Link.json +31 -31
  99. package/data/docs/types/ListIndicator.json +6 -6
  100. package/data/docs/types/ListItem.json +6 -6
  101. package/data/docs/types/ListRoot.json +10 -10
  102. package/data/docs/types/LoadingSpinner.json +2 -2
  103. package/data/docs/types/MakeElementFocusable.json +19 -19
  104. package/data/docs/types/MenuItem.json +75 -75
  105. package/data/docs/types/MenuRoot.json +63 -63
  106. package/data/docs/types/MenuSection.json +35 -54
  107. package/data/docs/types/MenuSubmenuTrigger.json +5 -5
  108. package/data/docs/types/MenuTrigger.json +102 -102
  109. package/data/docs/types/MultilineTextInput.json +134 -134
  110. package/data/docs/types/MultilineTextInputField.json +131 -131
  111. package/data/docs/types/NumberInput.json +100 -100
  112. package/data/docs/types/NumberInputField.json +95 -95
  113. package/data/docs/types/PageContentColumn.json +6 -6
  114. package/data/docs/types/PageContentRoot.json +6 -6
  115. package/data/docs/types/PasswordInput.json +129 -129
  116. package/data/docs/types/PasswordInputField.json +129 -129
  117. package/data/docs/types/ProgressBar.json +14 -14
  118. package/data/docs/types/PublicPageLayout.json +99 -0
  119. package/data/docs/types/RadioInputOption.json +64 -64
  120. package/data/docs/types/RadioInputRoot.json +55 -55
  121. package/data/docs/types/RangeCalendar.json +90 -71
  122. package/data/docs/types/Region.json +114 -0
  123. package/data/docs/types/RegionProvider.json +25 -0
  124. package/data/docs/types/RegionTarget.json +112 -0
  125. package/data/docs/types/RichTextInput.json +2 -2
  126. package/data/docs/types/Root.json +10 -10
  127. package/data/docs/types/Row.json +6 -6
  128. package/data/docs/types/SPLITTER_SIZE_TOKENS.json +9 -0
  129. package/data/docs/types/ScrollArea.json +6 -6
  130. package/data/docs/types/SearchInput.json +136 -136
  131. package/data/docs/types/SearchInputField.json +131 -131
  132. package/data/docs/types/SelectOption.json +66 -66
  133. package/data/docs/types/SelectOptionGroup.json +22 -22
  134. package/data/docs/types/SelectOptions.json +74 -74
  135. package/data/docs/types/SelectRoot.json +102 -102
  136. package/data/docs/types/Separator.json +4 -4
  137. package/data/docs/types/SimpleGrid.json +28 -28
  138. package/data/docs/types/SplitButton.json +12 -12
  139. package/data/docs/types/Splitter.json +12 -0
  140. package/data/docs/types/SplitterAside.json +27 -0
  141. package/data/docs/types/SplitterHandle.json +27 -0
  142. package/data/docs/types/SplitterMain.json +27 -0
  143. package/data/docs/types/SplitterRoot.json +271 -0
  144. package/data/docs/types/SplitterSizeToken.json +9 -0
  145. package/data/docs/types/Stack.json +2 -2
  146. package/data/docs/types/StepsNextTrigger.json +2 -2
  147. package/data/docs/types/StepsPrevTrigger.json +2 -2
  148. package/data/docs/types/StepsRoot.json +2 -2
  149. package/data/docs/types/StepsTrigger.json +2 -2
  150. package/data/docs/types/Switch.json +38 -38
  151. package/data/docs/types/TabNavItem.json +18 -18
  152. package/data/docs/types/TabNavRoot.json +2 -2
  153. package/data/docs/types/TableBody.json +6 -6
  154. package/data/docs/types/TableCaption.json +6 -6
  155. package/data/docs/types/TableCell.json +20 -20
  156. package/data/docs/types/TableColumn.json +8 -8
  157. package/data/docs/types/TableColumnGroup.json +8 -8
  158. package/data/docs/types/TableColumnHeader.json +18 -18
  159. package/data/docs/types/TableFooter.json +6 -6
  160. package/data/docs/types/TableHeader.json +6 -6
  161. package/data/docs/types/TableRoot.json +32 -32
  162. package/data/docs/types/TableRow.json +6 -6
  163. package/data/docs/types/TableScrollArea.json +6 -6
  164. package/data/docs/types/TabsTab.json +2 -2
  165. package/data/docs/types/TagGroupRoot.json +27 -27
  166. package/data/docs/types/TagGroupTag.json +68 -68
  167. package/data/docs/types/TagGroupTagList.json +18 -18
  168. package/data/docs/types/Text.json +8 -8
  169. package/data/docs/types/TextInput.json +132 -132
  170. package/data/docs/types/TextInputField.json +129 -129
  171. package/data/docs/types/TimeInput.json +78 -78
  172. package/data/docs/types/ToggleButton.json +86 -86
  173. package/data/docs/types/ToggleButtonGroupButton.json +33 -33
  174. package/data/docs/types/ToggleButtonGroupRoot.json +20 -20
  175. package/data/docs/types/Toolbar.json +12 -12
  176. package/data/docs/types/TooltipContent.json +31 -31
  177. package/data/docs/types/TooltipRoot.json +18 -18
  178. package/data/docs/types/Trigger.json +4 -4
  179. package/data/docs/types/UseDragAndDropOptions.json +9 -0
  180. package/data/docs/types/VisuallyHidden.json +7 -7
  181. package/data/docs/types/createArrayHandlers.json +12 -0
  182. package/data/docs/types/createItemsFromCsvDrop.json +833 -0
  183. package/data/docs/types/createItemsFromDirectoryDrop.json +833 -0
  184. package/data/docs/types/createItemsFromFileDrop.json +833 -0
  185. package/data/docs/types/createItemsFromImageDrop.json +833 -0
  186. package/data/docs/types/createItemsFromJsonDrop.json +833 -0
  187. package/data/docs/types/createItemsFromTextDrop.json +12 -0
  188. package/data/docs/types/createListDataHandlers.json +102 -0
  189. package/data/docs/types/manifest.json +32 -2
  190. package/data/docs/types/toast.json +0 -15
  191. package/data/docs/types/useDragAndDrop.json +174 -0
  192. package/data/docs/types/useRegion.json +1052 -0
  193. package/data/docs/types/useResponsiveSplitterSizes.json +143 -0
  194. package/package.json +7 -7
@@ -0,0 +1,12 @@
1
+ {
2
+ "tags": {
3
+ "param": "items - Raw drop items\ntype - The text MIME type to extract.",
4
+ "default": "\"text/plain\""
5
+ },
6
+ "filePath": "/home/runner/work/nimbus/nimbus/packages/nimbus/src/index.ts",
7
+ "description": "Extracts plain text items from a drop.\nItems whose `types` set does not include `type` are silently skipped.",
8
+ "displayName": "createItemsFromTextDrop",
9
+ "methods": [],
10
+ "props": {},
11
+ "supportsStyleProps": false
12
+ }
@@ -0,0 +1,102 @@
1
+ {
2
+ "tags": {
3
+ "example": "```tsx\nconst list = useListData({ initialItems, getKey });\nconst { dragAndDropHooks } = useDragAndDrop({\n ...createListDataHandlers(list),\n});\n```"
4
+ },
5
+ "filePath": "/home/runner/work/nimbus/nimbus/packages/nimbus/src/index.ts",
6
+ "description": "Creates state mutation callbacks for use with React Aria's `useListData`.\nSpread the result into `useDragAndDrop` options.",
7
+ "displayName": "createListDataHandlers",
8
+ "methods": [],
9
+ "props": {
10
+ "insertBefore": {
11
+ "defaultValue": null,
12
+ "description": "",
13
+ "name": "insertBefore",
14
+ "declarations": [
15
+ {
16
+ "fileName": "nimbus/packages/nimbus/src/hooks/use-drag-and-drop/state-handlers.ts",
17
+ "name": "TypeLiteral"
18
+ }
19
+ ],
20
+ "required": true,
21
+ "type": {
22
+ "name": "(key: Key, ...items: T[]) => void"
23
+ }
24
+ },
25
+ "insertAfter": {
26
+ "defaultValue": null,
27
+ "description": "",
28
+ "name": "insertAfter",
29
+ "declarations": [
30
+ {
31
+ "fileName": "nimbus/packages/nimbus/src/hooks/use-drag-and-drop/state-handlers.ts",
32
+ "name": "TypeLiteral"
33
+ }
34
+ ],
35
+ "required": true,
36
+ "type": {
37
+ "name": "(key: Key, ...items: T[]) => void"
38
+ }
39
+ },
40
+ "append": {
41
+ "defaultValue": null,
42
+ "description": "",
43
+ "name": "append",
44
+ "declarations": [
45
+ {
46
+ "fileName": "nimbus/packages/nimbus/src/hooks/use-drag-and-drop/state-handlers.ts",
47
+ "name": "TypeLiteral"
48
+ }
49
+ ],
50
+ "required": true,
51
+ "type": {
52
+ "name": "(...items: T[]) => void"
53
+ }
54
+ },
55
+ "moveBefore": {
56
+ "defaultValue": null,
57
+ "description": "",
58
+ "name": "moveBefore",
59
+ "declarations": [
60
+ {
61
+ "fileName": "nimbus/packages/nimbus/src/hooks/use-drag-and-drop/state-handlers.ts",
62
+ "name": "TypeLiteral"
63
+ }
64
+ ],
65
+ "required": true,
66
+ "type": {
67
+ "name": "(key: Key, keys: Set<Key>) => void"
68
+ }
69
+ },
70
+ "moveAfter": {
71
+ "defaultValue": null,
72
+ "description": "",
73
+ "name": "moveAfter",
74
+ "declarations": [
75
+ {
76
+ "fileName": "nimbus/packages/nimbus/src/hooks/use-drag-and-drop/state-handlers.ts",
77
+ "name": "TypeLiteral"
78
+ }
79
+ ],
80
+ "required": true,
81
+ "type": {
82
+ "name": "(key: Key, keys: Set<Key>) => void"
83
+ }
84
+ },
85
+ "remove": {
86
+ "defaultValue": null,
87
+ "description": "",
88
+ "name": "remove",
89
+ "declarations": [
90
+ {
91
+ "fileName": "nimbus/packages/nimbus/src/hooks/use-drag-and-drop/state-handlers.ts",
92
+ "name": "TypeLiteral"
93
+ }
94
+ ],
95
+ "required": true,
96
+ "type": {
97
+ "name": "(...keys: Key[]) => void"
98
+ }
99
+ }
100
+ },
101
+ "supportsStyleProps": false
102
+ }
@@ -140,7 +140,8 @@
140
140
  "Card": "Card",
141
141
  "CardRoot": "CardRoot",
142
142
  "CardHeader": "CardHeader",
143
- "CardContent": "CardContent",
143
+ "CardBody": "CardBody",
144
+ "CardFooter": "CardFooter",
144
145
  "FormFieldRoot": "FormFieldRoot",
145
146
  "FormFieldLabel": "FormFieldLabel",
146
147
  "FormFieldInput": "FormFieldInput",
@@ -261,11 +262,39 @@
261
262
  "ModalPageTabNav": "ModalPageTabNav",
262
263
  "ModalPageContent": "ModalPageContent",
263
264
  "ModalPageFooter": "ModalPageFooter",
265
+ "useRegion": "useRegion",
266
+ "Region": "Region",
267
+ "RegionTarget": "RegionTarget",
268
+ "RegionProvider": "RegionProvider",
269
+ "useResponsiveSplitterSizes": "useResponsiveSplitterSizes",
270
+ "SPLITTER_SIZE_TOKENS": "SPLITTER_SIZE_TOKENS",
271
+ "SplitterSizeToken": "SplitterSizeToken",
272
+ "Splitter": "Splitter",
273
+ "SplitterRoot": "SplitterRoot",
274
+ "SplitterAside": "SplitterAside",
275
+ "SplitterMain": "SplitterMain",
276
+ "SplitterHandle": "SplitterHandle",
264
277
  "useColorScheme": "useColorScheme",
265
278
  "useColorMode": "useColorMode",
266
279
  "useColorModeValue": "useColorModeValue",
267
280
  "useLocalizedStringFormatter": "useLocalizedStringFormatter",
268
281
  "LocalizedStringFormatter": "LocalizedStringFormatter",
282
+ "useDragAndDrop": "useDragAndDrop",
283
+ "DragAndDropProps": "DragAndDropProps",
284
+ "DragAndDropItemData": "DragAndDropItemData",
285
+ "UseDragAndDropOptions": "UseDragAndDropOptions",
286
+ "createItemsFromTextDrop": "createItemsFromTextDrop",
287
+ "createItemsFromFileDrop": "createItemsFromFileDrop",
288
+ "createItemsFromDirectoryDrop": "createItemsFromDirectoryDrop",
289
+ "createItemsFromJsonDrop": "createItemsFromJsonDrop",
290
+ "createItemsFromImageDrop": "createItemsFromImageDrop",
291
+ "createItemsFromCsvDrop": "createItemsFromCsvDrop",
292
+ "createListDataHandlers": "createListDataHandlers",
293
+ "createArrayHandlers": "createArrayHandlers",
294
+ "FormActionBar": "FormActionBar",
295
+ "ConfirmationDialog": "ConfirmationDialog",
296
+ "InfoDialog": "InfoDialog",
297
+ "FormDialog": "FormDialog",
269
298
  "DateRangePickerField": "DateRangePickerField",
270
299
  "MoneyInputField": "MoneyInputField",
271
300
  "MoneyInputFieldProps": "MoneyInputFieldProps",
@@ -276,5 +305,6 @@
276
305
  "SearchInputField": "SearchInputField",
277
306
  "PasswordInputField": "PasswordInputField",
278
307
  "PasswordInputFieldProps": "PasswordInputFieldProps",
279
- "TextInputField": "TextInputField"
308
+ "TextInputField": "TextInputField",
309
+ "PublicPageLayout": "PublicPageLayout"
280
310
  }
@@ -187,21 +187,6 @@
187
187
  "name": "boolean"
188
188
  }
189
189
  },
190
- "pauseOnInteraction": {
191
- "defaultValue": null,
192
- "description": "Pause auto-dismiss on hover/focus (default: true)",
193
- "name": "pauseOnInteraction",
194
- "declarations": [
195
- {
196
- "fileName": "nimbus/packages/nimbus/src/components/toast/toast.types.ts",
197
- "name": "TypeLiteral"
198
- }
199
- ],
200
- "required": false,
201
- "type": {
202
- "name": "boolean"
203
- }
204
- },
205
190
  "aria-live": {
206
191
  "defaultValue": null,
207
192
  "description": "Override the default `aria-live` politeness level.\nBy default, `error` toasts use `\"assertive\"` and all others use `\"polite\"`.",
@@ -0,0 +1,174 @@
1
+ {
2
+ "tags": {},
3
+ "filePath": "/home/runner/work/nimbus/nimbus/packages/nimbus/src/index.ts",
4
+ "description": "Shared drag-and-drop hook for Nimbus collection components.\n\nWraps React Aria's `useDragAndDrop` with namespace isolation, external drop\nsupport, outgoing format serialization, and auto-keying. Returns\n`{ dragAndDropHooks }` to pass to any React Aria collection component.",
5
+ "displayName": "useDragAndDrop",
6
+ "methods": [],
7
+ "props": {
8
+ "dragNamespace": {
9
+ "defaultValue": null,
10
+ "description": "Isolate drag-and-drop to collections sharing the same namespace.\nWhen set, only collections with a matching `dragNamespace` can exchange items.",
11
+ "name": "dragNamespace",
12
+ "declarations": [
13
+ {
14
+ "fileName": "nimbus/packages/nimbus/src/hooks/use-drag-and-drop/use-drag-and-drop.types.ts",
15
+ "name": "TypeLiteral"
16
+ }
17
+ ],
18
+ "required": false,
19
+ "type": {
20
+ "name": "string"
21
+ }
22
+ },
23
+ "onExternalDrop": {
24
+ "defaultValue": null,
25
+ "description": "Convert external drops (text, files, directories) into collection items.\nWhen provided, the collection accepts drops of the types specified in `acceptExternalTypes`.",
26
+ "name": "onExternalDrop",
27
+ "declarations": [
28
+ {
29
+ "fileName": "nimbus/packages/nimbus/src/hooks/use-drag-and-drop/use-drag-and-drop.types.ts",
30
+ "name": "TypeLiteral"
31
+ }
32
+ ],
33
+ "required": false,
34
+ "type": {
35
+ "name": "((items: DropItem[]) => T[] | Promise<T[]>)"
36
+ }
37
+ },
38
+ "acceptExternalTypes": {
39
+ "defaultValue": null,
40
+ "description": "Drag types to accept from external sources.\nSupports MIME types (`\"text/plain\"`), custom strings, or `DIRECTORY_DRAG_TYPE` (symbol).\nOnly effective when `onExternalDrop` is provided.",
41
+ "name": "acceptExternalTypes",
42
+ "declarations": [
43
+ {
44
+ "fileName": "nimbus/packages/nimbus/src/hooks/use-drag-and-drop/use-drag-and-drop.types.ts",
45
+ "name": "TypeLiteral"
46
+ }
47
+ ],
48
+ "required": false,
49
+ "type": {
50
+ "name": "(string | symbol)[]"
51
+ }
52
+ },
53
+ "externalDropOperation": {
54
+ "defaultValue": {
55
+ "value": "\"copy\""
56
+ },
57
+ "description": "Drop operation for items from external sources.\nInternal reorders always use `\"move\"`. Returns `\"cancel\"` when the\nsource does not include this operation in its `allowedOperations`.",
58
+ "name": "externalDropOperation",
59
+ "declarations": [
60
+ {
61
+ "fileName": "nimbus/packages/nimbus/src/hooks/use-drag-and-drop/use-drag-and-drop.types.ts",
62
+ "name": "TypeLiteral"
63
+ }
64
+ ],
65
+ "required": false,
66
+ "type": {
67
+ "name": "enum",
68
+ "raw": "\"link\" | \"copy\" | \"move\"",
69
+ "value": [
70
+ {
71
+ "value": "\"link\""
72
+ },
73
+ {
74
+ "value": "\"copy\""
75
+ },
76
+ {
77
+ "value": "\"move\""
78
+ }
79
+ ]
80
+ }
81
+ },
82
+ "serializeDragItem": {
83
+ "defaultValue": null,
84
+ "description": "Additional format representations for outgoing drags.\nEach key/value pair is added alongside the internal format when items are dragged out.",
85
+ "name": "serializeDragItem",
86
+ "declarations": [
87
+ {
88
+ "fileName": "nimbus/packages/nimbus/src/hooks/use-drag-and-drop/use-drag-and-drop.types.ts",
89
+ "name": "TypeLiteral"
90
+ }
91
+ ],
92
+ "required": false,
93
+ "type": {
94
+ "name": "((item: T) => Record<string, string>)"
95
+ }
96
+ },
97
+ "dataFormatBase": {
98
+ "defaultValue": null,
99
+ "description": "Override the base data format string used for internal serialization.\nDefaults to `\"nimbus-collection-item\"`. DraggableList passes its own\nvalue for backward compatibility.",
100
+ "name": "dataFormatBase",
101
+ "declarations": [
102
+ {
103
+ "fileName": "nimbus/packages/nimbus/src/hooks/use-drag-and-drop/use-drag-and-drop.types.ts",
104
+ "name": "TypeLiteral"
105
+ }
106
+ ],
107
+ "required": false,
108
+ "type": {
109
+ "name": "string"
110
+ }
111
+ },
112
+ "onInsertItems": {
113
+ "defaultValue": null,
114
+ "description": "Insert items at a target position (before/after an existing item).",
115
+ "name": "onInsertItems",
116
+ "declarations": [
117
+ {
118
+ "fileName": "nimbus/packages/nimbus/src/hooks/use-drag-and-drop/use-drag-and-drop.types.ts",
119
+ "name": "TypeLiteral"
120
+ }
121
+ ],
122
+ "required": false,
123
+ "type": {
124
+ "name": "((items: T[], target: ItemDropTarget) => void)"
125
+ }
126
+ },
127
+ "onAppendItems": {
128
+ "defaultValue": null,
129
+ "description": "Append items (drop on root / empty collection).",
130
+ "name": "onAppendItems",
131
+ "declarations": [
132
+ {
133
+ "fileName": "nimbus/packages/nimbus/src/hooks/use-drag-and-drop/use-drag-and-drop.types.ts",
134
+ "name": "TypeLiteral"
135
+ }
136
+ ],
137
+ "required": false,
138
+ "type": {
139
+ "name": "((items: T[]) => void)"
140
+ }
141
+ },
142
+ "onReorder": {
143
+ "defaultValue": null,
144
+ "description": "Reorder items within the collection.",
145
+ "name": "onReorder",
146
+ "declarations": [
147
+ {
148
+ "fileName": "nimbus/packages/nimbus/src/hooks/use-drag-and-drop/use-drag-and-drop.types.ts",
149
+ "name": "TypeLiteral"
150
+ }
151
+ ],
152
+ "required": false,
153
+ "type": {
154
+ "name": "((keys: Set<Key>, target: ItemDropTarget) => void)"
155
+ }
156
+ },
157
+ "onRemoveItems": {
158
+ "defaultValue": null,
159
+ "description": "Remove items from this collection after a successful external move.",
160
+ "name": "onRemoveItems",
161
+ "declarations": [
162
+ {
163
+ "fileName": "nimbus/packages/nimbus/src/hooks/use-drag-and-drop/use-drag-and-drop.types.ts",
164
+ "name": "TypeLiteral"
165
+ }
166
+ ],
167
+ "required": false,
168
+ "type": {
169
+ "name": "((keys: Set<Key>) => void)"
170
+ }
171
+ }
172
+ },
173
+ "supportsStyleProps": false
174
+ }