@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.
- package/data/docs/route-manifest.json +1407 -794
- package/data/docs/routes/components-data-display-data-table.json +66 -34
- package/data/docs/routes/components-data-display-draggable-list.json +62 -7
- package/data/docs/routes/components-inputs-checkbox.json +2 -2
- package/data/docs/routes/components-layout-splitter.json +654 -0
- package/data/docs/routes/components-utilities-region.json +265 -0
- package/data/docs/routes/home-getting-started-bundler-plugins.json +248 -0
- package/data/docs/routes/hooks-usedraganddrop.json +310 -0
- package/data/docs/routes/patterns-actions.json +78 -0
- package/data/docs/routes/patterns-dialogs-confirmation-dialog.json +391 -0
- package/data/docs/routes/patterns-dialogs-form-dialog.json +358 -0
- package/data/docs/routes/patterns-dialogs.json +2 -2
- package/data/docs/routes/patterns-pages-public-page-layout.json +371 -0
- package/data/docs/routes/patterns-pages.json +78 -0
- package/data/docs/search-index.json +1 -1
- package/data/docs/types/AccordionContent.json +32 -32
- package/data/docs/types/AccordionHeader.json +102 -102
- package/data/docs/types/AccordionItem.json +28 -28
- package/data/docs/types/AccordionRoot.json +15 -15
- package/data/docs/types/AlertDescription.json +8 -8
- package/data/docs/types/AlertDismissButton.json +89 -89
- package/data/docs/types/AlertTitle.json +8 -8
- package/data/docs/types/Avatar.json +2 -2
- package/data/docs/types/Badge.json +2 -2
- package/data/docs/types/Body.json +6 -6
- package/data/docs/types/Box.json +6 -6
- package/data/docs/types/Button.json +97 -97
- package/data/docs/types/Calendar.json +111 -65
- package/data/docs/types/Caption.json +6 -6
- package/data/docs/types/CardRoot.json +2 -2
- package/data/docs/types/Cell.json +20 -20
- package/data/docs/types/Checkbox.json +99 -99
- package/data/docs/types/Code.json +10 -10
- package/data/docs/types/CollapsibleMotionContent.json +2 -2
- package/data/docs/types/CollapsibleMotionRoot.json +2 -2
- package/data/docs/types/CollapsibleMotionTrigger.json +4 -4
- package/data/docs/types/Column.json +8 -8
- package/data/docs/types/ColumnGroup.json +8 -8
- package/data/docs/types/ColumnHeader.json +18 -18
- package/data/docs/types/ComboBoxListBox.json +80 -80
- package/data/docs/types/ComboBoxOption.json +77 -77
- package/data/docs/types/ComboBoxPopover.json +77 -77
- package/data/docs/types/ComboBoxRoot.json +8 -8
- package/data/docs/types/ComboBoxSection.json +29 -29
- package/data/docs/types/ComboBoxTrigger.json +6 -6
- package/data/docs/types/ConfirmationDialog.json +224 -0
- package/data/docs/types/Content.json +2 -2
- package/data/docs/types/DataTable.json +17 -2
- package/data/docs/types/DataTableBody.json +24 -24
- package/data/docs/types/DataTableHeader.json +31 -31
- package/data/docs/types/DataTableRoot.json +17 -2
- package/data/docs/types/DataTableTable.json +35 -20
- package/data/docs/types/DateInput.json +84 -84
- package/data/docs/types/DatePicker.json +65 -65
- package/data/docs/types/DateRangePicker.json +99 -99
- package/data/docs/types/DateRangePickerField.json +99 -99
- package/data/docs/types/DefaultPageBackLink.json +16 -16
- package/data/docs/types/DefaultPageRoot.json +2 -2
- package/data/docs/types/DialogCloseTrigger.json +87 -87
- package/data/docs/types/DialogTrigger.json +2 -2
- package/data/docs/types/DragAndDropItemData.json +9 -0
- package/data/docs/types/DragAndDropProps.json +9 -0
- package/data/docs/types/DraggableListField.json +159 -70
- package/data/docs/types/DraggableListItem.json +63 -63
- package/data/docs/types/DraggableListRoot.json +159 -70
- package/data/docs/types/DrawerCloseTrigger.json +87 -87
- package/data/docs/types/DrawerTrigger.json +2 -2
- package/data/docs/types/FieldErrors.json +2 -2
- package/data/docs/types/Flex.json +22 -22
- package/data/docs/types/Footer.json +6 -6
- package/data/docs/types/FormDialog.json +198 -0
- package/data/docs/types/FormFieldRoot.json +2 -2
- package/data/docs/types/Grid.json +24 -24
- package/data/docs/types/Group.json +12 -12
- package/data/docs/types/Header.json +6 -6
- package/data/docs/types/Heading.json +8 -8
- package/data/docs/types/Icon.json +4 -4
- package/data/docs/types/IconButton.json +97 -97
- package/data/docs/types/IconToggleButton.json +84 -84
- package/data/docs/types/Image.json +30 -30
- package/data/docs/types/Indicator.json +6 -6
- package/data/docs/types/InlineSvg.json +2 -2
- package/data/docs/types/Item.json +6 -6
- package/data/docs/types/Kbd.json +8 -8
- package/data/docs/types/Link.json +31 -31
- package/data/docs/types/ListIndicator.json +6 -6
- package/data/docs/types/ListItem.json +6 -6
- package/data/docs/types/ListRoot.json +10 -10
- package/data/docs/types/LoadingSpinner.json +2 -2
- package/data/docs/types/MakeElementFocusable.json +19 -19
- package/data/docs/types/MenuItem.json +75 -75
- package/data/docs/types/MenuRoot.json +63 -63
- package/data/docs/types/MenuSection.json +35 -54
- package/data/docs/types/MenuSubmenuTrigger.json +5 -5
- package/data/docs/types/MenuTrigger.json +102 -102
- package/data/docs/types/MultilineTextInput.json +134 -134
- package/data/docs/types/MultilineTextInputField.json +131 -131
- package/data/docs/types/NumberInput.json +100 -100
- package/data/docs/types/NumberInputField.json +95 -95
- package/data/docs/types/PageContentColumn.json +6 -6
- package/data/docs/types/PageContentRoot.json +6 -6
- package/data/docs/types/PasswordInput.json +129 -129
- package/data/docs/types/PasswordInputField.json +129 -129
- package/data/docs/types/ProgressBar.json +14 -14
- package/data/docs/types/PublicPageLayout.json +99 -0
- package/data/docs/types/RadioInputOption.json +64 -64
- package/data/docs/types/RadioInputRoot.json +55 -55
- package/data/docs/types/RangeCalendar.json +90 -71
- package/data/docs/types/Region.json +114 -0
- package/data/docs/types/RegionProvider.json +25 -0
- package/data/docs/types/RegionTarget.json +112 -0
- package/data/docs/types/RichTextInput.json +2 -2
- package/data/docs/types/Root.json +10 -10
- package/data/docs/types/Row.json +6 -6
- package/data/docs/types/SPLITTER_SIZE_TOKENS.json +9 -0
- package/data/docs/types/ScrollArea.json +2 -2
- package/data/docs/types/SearchInput.json +136 -136
- package/data/docs/types/SearchInputField.json +131 -131
- package/data/docs/types/SelectOption.json +66 -66
- package/data/docs/types/SelectOptionGroup.json +22 -22
- package/data/docs/types/SelectOptions.json +74 -74
- package/data/docs/types/SelectRoot.json +102 -102
- package/data/docs/types/Separator.json +4 -4
- package/data/docs/types/SimpleGrid.json +28 -28
- package/data/docs/types/SplitButton.json +12 -12
- package/data/docs/types/Splitter.json +12 -0
- package/data/docs/types/SplitterAside.json +27 -0
- package/data/docs/types/SplitterHandle.json +27 -0
- package/data/docs/types/SplitterMain.json +27 -0
- package/data/docs/types/SplitterRoot.json +271 -0
- package/data/docs/types/SplitterSizeToken.json +9 -0
- package/data/docs/types/Stack.json +2 -2
- package/data/docs/types/StepsNextTrigger.json +2 -2
- package/data/docs/types/StepsPrevTrigger.json +2 -2
- package/data/docs/types/StepsRoot.json +2 -2
- package/data/docs/types/StepsTrigger.json +2 -2
- package/data/docs/types/Switch.json +38 -38
- package/data/docs/types/TabNavItem.json +18 -18
- package/data/docs/types/TabNavRoot.json +2 -2
- package/data/docs/types/TableBody.json +6 -6
- package/data/docs/types/TableCaption.json +6 -6
- package/data/docs/types/TableCell.json +20 -20
- package/data/docs/types/TableColumn.json +8 -8
- package/data/docs/types/TableColumnGroup.json +8 -8
- package/data/docs/types/TableColumnHeader.json +18 -18
- package/data/docs/types/TableFooter.json +6 -6
- package/data/docs/types/TableHeader.json +6 -6
- package/data/docs/types/TableRoot.json +32 -32
- package/data/docs/types/TableRow.json +6 -6
- package/data/docs/types/TableScrollArea.json +6 -6
- package/data/docs/types/TabsTab.json +2 -2
- package/data/docs/types/TagGroupRoot.json +27 -27
- package/data/docs/types/TagGroupTag.json +68 -68
- package/data/docs/types/TagGroupTagList.json +18 -18
- package/data/docs/types/Text.json +8 -8
- package/data/docs/types/TextInput.json +132 -132
- package/data/docs/types/TextInputField.json +129 -129
- package/data/docs/types/TimeInput.json +78 -78
- package/data/docs/types/ToggleButton.json +86 -86
- package/data/docs/types/ToggleButtonGroupButton.json +33 -33
- package/data/docs/types/ToggleButtonGroupRoot.json +20 -20
- package/data/docs/types/Toolbar.json +12 -12
- package/data/docs/types/TooltipContent.json +31 -31
- package/data/docs/types/TooltipRoot.json +18 -18
- package/data/docs/types/Trigger.json +4 -4
- package/data/docs/types/UseDragAndDropOptions.json +9 -0
- package/data/docs/types/VisuallyHidden.json +7 -7
- package/data/docs/types/createArrayHandlers.json +12 -0
- package/data/docs/types/createItemsFromCsvDrop.json +833 -0
- package/data/docs/types/createItemsFromDirectoryDrop.json +833 -0
- package/data/docs/types/createItemsFromFileDrop.json +833 -0
- package/data/docs/types/createItemsFromImageDrop.json +833 -0
- package/data/docs/types/createItemsFromJsonDrop.json +833 -0
- package/data/docs/types/createItemsFromTextDrop.json +12 -0
- package/data/docs/types/createListDataHandlers.json +102 -0
- package/data/docs/types/manifest.json +29 -2
- package/data/docs/types/useDragAndDrop.json +174 -0
- package/data/docs/types/useRegion.json +1052 -0
- package/data/docs/types/useResponsiveSplitterSizes.json +143 -0
- package/package.json +6 -6
|
@@ -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
|
+
}
|
|
@@ -262,13 +262,39 @@
|
|
|
262
262
|
"ModalPageTabNav": "ModalPageTabNav",
|
|
263
263
|
"ModalPageContent": "ModalPageContent",
|
|
264
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",
|
|
265
277
|
"useColorScheme": "useColorScheme",
|
|
266
278
|
"useColorMode": "useColorMode",
|
|
267
279
|
"useColorModeValue": "useColorModeValue",
|
|
268
280
|
"useLocalizedStringFormatter": "useLocalizedStringFormatter",
|
|
269
281
|
"LocalizedStringFormatter": "LocalizedStringFormatter",
|
|
270
|
-
"
|
|
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",
|
|
271
294
|
"FormActionBar": "FormActionBar",
|
|
295
|
+
"ConfirmationDialog": "ConfirmationDialog",
|
|
296
|
+
"InfoDialog": "InfoDialog",
|
|
297
|
+
"FormDialog": "FormDialog",
|
|
272
298
|
"DateRangePickerField": "DateRangePickerField",
|
|
273
299
|
"MoneyInputField": "MoneyInputField",
|
|
274
300
|
"MoneyInputFieldProps": "MoneyInputFieldProps",
|
|
@@ -279,5 +305,6 @@
|
|
|
279
305
|
"SearchInputField": "SearchInputField",
|
|
280
306
|
"PasswordInputField": "PasswordInputField",
|
|
281
307
|
"PasswordInputFieldProps": "PasswordInputFieldProps",
|
|
282
|
-
"TextInputField": "TextInputField"
|
|
308
|
+
"TextInputField": "TextInputField",
|
|
309
|
+
"PublicPageLayout": "PublicPageLayout"
|
|
283
310
|
}
|
|
@@ -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
|
+
}
|