@contember/react-board-dnd-kit 1.3.0-alpha.12 → 1.3.0-alpha.14
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/dist/development/components/BoardSortable.cjs +68 -0
- package/dist/development/components/BoardSortable.cjs.map +1 -0
- package/dist/development/components/BoardSortable.js +68 -0
- package/dist/development/components/BoardSortable.js.map +1 -0
- package/dist/development/components/BoardSortableActivator.cjs +11 -0
- package/dist/development/components/BoardSortableActivator.cjs.map +1 -0
- package/dist/development/components/BoardSortableActivator.js +11 -0
- package/dist/development/components/BoardSortableActivator.js.map +1 -0
- package/dist/development/components/BoardSortableColumnDragOverlay.cjs +18 -0
- package/dist/development/components/BoardSortableColumnDragOverlay.cjs.map +1 -0
- package/dist/development/components/BoardSortableColumnDragOverlay.js +18 -0
- package/dist/development/components/BoardSortableColumnDragOverlay.js.map +1 -0
- package/dist/development/components/BoardSortableColumnDropIndicator.cjs +16 -0
- package/dist/development/components/BoardSortableColumnDropIndicator.cjs.map +1 -0
- package/dist/development/components/BoardSortableColumnDropIndicator.js +16 -0
- package/dist/development/components/BoardSortableColumnDropIndicator.js.map +1 -0
- package/dist/development/components/BoardSortableEachColumn.cjs +33 -0
- package/dist/development/components/BoardSortableEachColumn.cjs.map +1 -0
- package/dist/development/components/BoardSortableEachColumn.js +33 -0
- package/dist/development/components/BoardSortableEachColumn.js.map +1 -0
- package/dist/development/components/BoardSortableEachItem.cjs +34 -0
- package/dist/development/components/BoardSortableEachItem.cjs.map +1 -0
- package/dist/development/components/BoardSortableEachItem.js +34 -0
- package/dist/development/components/BoardSortableEachItem.js.map +1 -0
- package/dist/development/components/BoardSortableItemDragOverlay.cjs +17 -0
- package/dist/development/components/BoardSortableItemDragOverlay.cjs.map +1 -0
- package/dist/development/components/BoardSortableItemDragOverlay.js +17 -0
- package/dist/development/components/BoardSortableItemDragOverlay.js.map +1 -0
- package/dist/development/components/BoardSortableItemDropIndicator.cjs +15 -0
- package/dist/development/components/BoardSortableItemDropIndicator.cjs.map +1 -0
- package/dist/development/components/BoardSortableItemDropIndicator.js +15 -0
- package/dist/development/components/BoardSortableItemDropIndicator.js.map +1 -0
- package/dist/development/components/BoardSortableNode.cjs +20 -0
- package/dist/development/components/BoardSortableNode.cjs.map +1 -0
- package/dist/development/components/BoardSortableNode.js +20 -0
- package/dist/development/components/BoardSortableNode.js.map +1 -0
- package/dist/development/components/BoardSortableNullColumn.cjs +22 -0
- package/dist/development/components/BoardSortableNullColumn.cjs.map +1 -0
- package/dist/development/components/BoardSortableNullColumn.js +22 -0
- package/dist/development/components/BoardSortableNullColumn.js.map +1 -0
- package/dist/development/contexts.cjs +19 -0
- package/dist/development/contexts.cjs.map +1 -0
- package/dist/development/contexts.js +19 -0
- package/dist/development/contexts.js.map +1 -0
- package/dist/development/index.cjs +27 -19
- package/dist/development/index.cjs.map +1 -1
- package/dist/development/index.js +27 -13
- package/dist/development/index.js.map +1 -1
- package/dist/production/components/BoardSortable.cjs +68 -0
- package/dist/production/components/BoardSortable.cjs.map +1 -0
- package/dist/production/components/BoardSortable.js +68 -0
- package/dist/production/components/BoardSortable.js.map +1 -0
- package/dist/production/components/BoardSortableActivator.cjs +11 -0
- package/dist/production/components/BoardSortableActivator.cjs.map +1 -0
- package/dist/production/components/BoardSortableActivator.js +11 -0
- package/dist/production/components/BoardSortableActivator.js.map +1 -0
- package/dist/production/components/BoardSortableColumnDragOverlay.cjs +18 -0
- package/dist/production/components/BoardSortableColumnDragOverlay.cjs.map +1 -0
- package/dist/production/components/BoardSortableColumnDragOverlay.js +18 -0
- package/dist/production/components/BoardSortableColumnDragOverlay.js.map +1 -0
- package/dist/production/components/BoardSortableColumnDropIndicator.cjs +16 -0
- package/dist/production/components/BoardSortableColumnDropIndicator.cjs.map +1 -0
- package/dist/production/components/BoardSortableColumnDropIndicator.js +16 -0
- package/dist/production/components/BoardSortableColumnDropIndicator.js.map +1 -0
- package/dist/production/components/BoardSortableEachColumn.cjs +33 -0
- package/dist/production/components/BoardSortableEachColumn.cjs.map +1 -0
- package/dist/production/components/BoardSortableEachColumn.js +33 -0
- package/dist/production/components/BoardSortableEachColumn.js.map +1 -0
- package/dist/production/components/BoardSortableEachItem.cjs +34 -0
- package/dist/production/components/BoardSortableEachItem.cjs.map +1 -0
- package/dist/production/components/BoardSortableEachItem.js +34 -0
- package/dist/production/components/BoardSortableEachItem.js.map +1 -0
- package/dist/production/components/BoardSortableItemDragOverlay.cjs +17 -0
- package/dist/production/components/BoardSortableItemDragOverlay.cjs.map +1 -0
- package/dist/production/components/BoardSortableItemDragOverlay.js +17 -0
- package/dist/production/components/BoardSortableItemDragOverlay.js.map +1 -0
- package/dist/production/components/BoardSortableItemDropIndicator.cjs +15 -0
- package/dist/production/components/BoardSortableItemDropIndicator.cjs.map +1 -0
- package/dist/production/components/BoardSortableItemDropIndicator.js +15 -0
- package/dist/production/components/BoardSortableItemDropIndicator.js.map +1 -0
- package/dist/production/components/BoardSortableNode.cjs +20 -0
- package/dist/production/components/BoardSortableNode.cjs.map +1 -0
- package/dist/production/components/BoardSortableNode.js +20 -0
- package/dist/production/components/BoardSortableNode.js.map +1 -0
- package/dist/production/components/BoardSortableNullColumn.cjs +22 -0
- package/dist/production/components/BoardSortableNullColumn.cjs.map +1 -0
- package/dist/production/components/BoardSortableNullColumn.js +22 -0
- package/dist/production/components/BoardSortableNullColumn.js.map +1 -0
- package/dist/production/contexts.cjs +19 -0
- package/dist/production/contexts.cjs.map +1 -0
- package/dist/production/contexts.js +19 -0
- package/dist/production/contexts.js.map +1 -0
- package/dist/production/index.cjs +27 -19
- package/dist/production/index.cjs.map +1 -1
- package/dist/production/index.js +27 -13
- package/dist/production/index.js.map +1 -1
- package/dist/types/components/BoardSortable.d.ts +5 -0
- package/dist/types/components/BoardSortable.d.ts.map +1 -0
- package/dist/types/components/BoardSortableActivator.d.ts +5 -0
- package/dist/types/components/BoardSortableActivator.d.ts.map +1 -0
- package/dist/types/components/BoardSortableColumnDragOverlay.d.ts +5 -0
- package/dist/types/components/BoardSortableColumnDragOverlay.d.ts.map +1 -0
- package/dist/types/components/BoardSortableColumnDropIndicator.d.ts +6 -0
- package/dist/types/components/BoardSortableColumnDropIndicator.d.ts.map +1 -0
- package/dist/types/components/BoardSortableEachColumn.d.ts +10 -0
- package/dist/types/components/BoardSortableEachColumn.d.ts.map +1 -0
- package/dist/types/components/BoardSortableEachItem.d.ts +10 -0
- package/dist/types/components/BoardSortableEachItem.d.ts.map +1 -0
- package/dist/types/components/BoardSortableItemDragOverlay.d.ts +5 -0
- package/dist/types/components/BoardSortableItemDragOverlay.d.ts.map +1 -0
- package/dist/types/components/BoardSortableItemDropIndicator.d.ts +6 -0
- package/dist/types/components/BoardSortableItemDropIndicator.d.ts.map +1 -0
- package/dist/types/components/BoardSortableNode.d.ts +5 -0
- package/dist/types/components/BoardSortableNode.d.ts.map +1 -0
- package/dist/types/components/BoardSortableNullColumn.d.ts +3 -0
- package/dist/types/components/BoardSortableNullColumn.d.ts.map +1 -0
- package/dist/types/components/index.d.ts +11 -0
- package/dist/types/components/index.d.ts.map +1 -0
- package/dist/types/contexts.d.ts +64 -0
- package/dist/types/contexts.d.ts.map +1 -0
- package/dist/types/index.d.ts +2 -14
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +9 -4
- package/src/components/BoardSortable.tsx +109 -0
- package/src/components/BoardSortableActivator.tsx +10 -0
- package/src/components/BoardSortableColumnDragOverlay.tsx +32 -0
- package/src/components/BoardSortableColumnDropIndicator.tsx +25 -0
- package/src/components/BoardSortableEachColumn.tsx +45 -0
- package/src/components/BoardSortableEachItem.tsx +47 -0
- package/src/components/BoardSortableItemDragOverlay.tsx +28 -0
- package/src/components/BoardSortableItemDropIndicator.tsx +21 -0
- package/src/components/BoardSortableNode.tsx +19 -0
- package/src/components/BoardSortableNullColumn.tsx +32 -0
- package/src/components/index.ts +10 -0
- package/src/contexts.ts +18 -0
- package/src/index.ts +2 -23
- package/src/tsconfig.json +4 -1
- package/dist/development/BoardDndKitRenderer.cjs +0 -199
- package/dist/development/BoardDndKitRenderer.cjs.map +0 -1
- package/dist/development/BoardDndKitRenderer.js +0 -199
- package/dist/development/BoardDndKitRenderer.js.map +0 -1
- package/dist/production/BoardDndKitRenderer.cjs +0 -199
- package/dist/production/BoardDndKitRenderer.cjs.map +0 -1
- package/dist/production/BoardDndKitRenderer.js +0 -199
- package/dist/production/BoardDndKitRenderer.js.map +0 -1
- package/dist/types/BoardDndKitRenderer.d.ts +0 -30
- package/dist/types/BoardDndKitRenderer.d.ts.map +0 -1
- package/dist/types/types.d.ts +0 -3
- package/dist/types/types.d.ts.map +0 -1
- package/src/BoardDndKitRenderer.tsx +0 -303
- package/src/types.ts +0 -3
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contember/react-board-dnd-kit",
|
|
3
3
|
"license": "Apache-2.0",
|
|
4
|
-
"version": "1.3.0-alpha.
|
|
4
|
+
"version": "1.3.0-alpha.14",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"main": "./dist/production/index.js",
|
|
@@ -34,10 +34,15 @@
|
|
|
34
34
|
"directory": "packages/react-board-dnd-kit"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@contember/
|
|
38
|
-
"@contember/react-
|
|
37
|
+
"@contember/binding": "1.3.0-alpha.14",
|
|
38
|
+
"@contember/react-binding": "1.3.0-alpha.14",
|
|
39
|
+
"@contember/react-board": "1.3.0-alpha.14",
|
|
40
|
+
"@contember/react-utils": "1.3.0-alpha.14",
|
|
41
|
+
"@contember/utilities": "1.3.0-alpha.14",
|
|
39
42
|
"@dnd-kit/core": "^6.1.0",
|
|
40
|
-
"@dnd-kit/sortable": "^8.0.0"
|
|
43
|
+
"@dnd-kit/sortable": "^8.0.0",
|
|
44
|
+
"@radix-ui/react-portal": "^1.0.4",
|
|
45
|
+
"@radix-ui/react-slot": "^1.0.2"
|
|
41
46
|
},
|
|
42
47
|
"peerDependencies": {
|
|
43
48
|
"react": "^17 || ^18",
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import React, { ReactNode, useCallback, useMemo, useState } from 'react'
|
|
2
|
+
import {
|
|
3
|
+
DndContext,
|
|
4
|
+
DragEndEvent,
|
|
5
|
+
KeyboardSensor,
|
|
6
|
+
MeasuringStrategy,
|
|
7
|
+
MouseSensor,
|
|
8
|
+
TouchSensor,
|
|
9
|
+
UniqueIdentifier,
|
|
10
|
+
useSensor,
|
|
11
|
+
useSensors,
|
|
12
|
+
} from '@dnd-kit/core'
|
|
13
|
+
import { coordinateGetter as multipleContainersCoordinateGetter } from '../internal/multipleContainersKeyboardCoordinates'
|
|
14
|
+
import { BoardColumnNode, BoardItemNode, useBoardColumns, useBoardMethods } from '@contember/react-board'
|
|
15
|
+
import { EntityAccessor } from '@contember/binding'
|
|
16
|
+
import { BoardActiveColumnContext, BoardActiveItemContext } from '../contexts'
|
|
17
|
+
|
|
18
|
+
type BoardIndexItem =
|
|
19
|
+
| {
|
|
20
|
+
type: 'column'
|
|
21
|
+
column: BoardColumnNode
|
|
22
|
+
}
|
|
23
|
+
| {
|
|
24
|
+
type: 'item'
|
|
25
|
+
column: BoardColumnNode
|
|
26
|
+
item: BoardItemNode
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
type BoardIndex = Record<UniqueIdentifier, BoardIndexItem>
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
const useBoardIndex = (columns: BoardColumnNode[]): BoardIndex => {
|
|
33
|
+
return useMemo(() => Object.fromEntries(columns.flatMap((column): [UniqueIdentifier, BoardIndexItem][] => [
|
|
34
|
+
[column.id, { type: 'column', column }],
|
|
35
|
+
...column.items.map((item): [UniqueIdentifier, BoardIndexItem] => [item.id, { type: 'item', column, item }]),
|
|
36
|
+
])), [columns])
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export const BoardSortable = ({ children }: {
|
|
40
|
+
children: ReactNode
|
|
41
|
+
}) => {
|
|
42
|
+
const [activeId, setActiveId] = useState<UniqueIdentifier | null>(null)
|
|
43
|
+
|
|
44
|
+
const columns = useBoardColumns()
|
|
45
|
+
const { moveItem, moveColumn } = useBoardMethods()
|
|
46
|
+
|
|
47
|
+
const boardIndex = useBoardIndex(columns)
|
|
48
|
+
|
|
49
|
+
const activeNode = activeId ? boardIndex[activeId] : undefined
|
|
50
|
+
|
|
51
|
+
const activeItem = useMemo(() => activeNode?.type === 'item' ? ({ ...activeNode.item, column: activeNode.column }) : undefined, [activeNode])
|
|
52
|
+
|
|
53
|
+
const sensors = useSensors(
|
|
54
|
+
useSensor(MouseSensor),
|
|
55
|
+
useSensor(TouchSensor),
|
|
56
|
+
useSensor(KeyboardSensor, {
|
|
57
|
+
coordinateGetter: multipleContainersCoordinateGetter,
|
|
58
|
+
}),
|
|
59
|
+
)
|
|
60
|
+
|
|
61
|
+
const onDragCancel = () => {
|
|
62
|
+
setActiveId(null)
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
const onDragEnd = useCallback(({ active, over }: DragEndEvent) => {
|
|
67
|
+
setActiveId(null)
|
|
68
|
+
|
|
69
|
+
const overItem = over ? boardIndex[over.id] : null
|
|
70
|
+
const activeItem = boardIndex[active.id]
|
|
71
|
+
if (!activeItem) {
|
|
72
|
+
return
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if (activeItem.type === 'column' && activeItem.column.value instanceof EntityAccessor) {
|
|
76
|
+
moveColumn?.(activeItem.column.value, overItem?.column.index ?? columns.length)
|
|
77
|
+
return
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
if (activeItem.type === 'item' && overItem) {
|
|
81
|
+
moveItem?.(activeItem.item.value, overItem.column.value, overItem.type === 'item' ? overItem.item.index : overItem.column.items.length)
|
|
82
|
+
return
|
|
83
|
+
}
|
|
84
|
+
}, [boardIndex, columns.length, moveColumn, moveItem])
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
return (
|
|
88
|
+
<DndContext
|
|
89
|
+
sensors={sensors}
|
|
90
|
+
measuring={{
|
|
91
|
+
droppable: {
|
|
92
|
+
strategy: MeasuringStrategy.Always,
|
|
93
|
+
},
|
|
94
|
+
}}
|
|
95
|
+
onDragStart={({ active }) => {
|
|
96
|
+
setActiveId(active.id)
|
|
97
|
+
}}
|
|
98
|
+
onDragEnd={onDragEnd}
|
|
99
|
+
onDragCancel={onDragCancel}
|
|
100
|
+
>
|
|
101
|
+
<BoardActiveColumnContext.Provider value={activeNode?.type === 'column' ? activeNode.column : undefined}>
|
|
102
|
+
<BoardActiveItemContext.Provider value={activeItem}>
|
|
103
|
+
{children}
|
|
104
|
+
</BoardActiveItemContext.Provider>
|
|
105
|
+
</BoardActiveColumnContext.Provider>
|
|
106
|
+
</DndContext>
|
|
107
|
+
)
|
|
108
|
+
|
|
109
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react'
|
|
2
|
+
import { useBoardSortableNode } from '../contexts'
|
|
3
|
+
import { Slot } from '@radix-ui/react-slot'
|
|
4
|
+
|
|
5
|
+
export const BoardSortableActivator = ({ children }: {
|
|
6
|
+
children: ReactNode
|
|
7
|
+
}) => {
|
|
8
|
+
const { setActivatorNodeRef, listeners } = useBoardSortableNode()
|
|
9
|
+
return <Slot ref={setActivatorNodeRef} {...listeners}>{children}</Slot>
|
|
10
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react'
|
|
2
|
+
import { Portal } from '@radix-ui/react-portal'
|
|
3
|
+
import { DragOverlay } from '@dnd-kit/core'
|
|
4
|
+
import { AccessorTree, Entity, EntityAccessor, useAccessorTreeState } from '@contember/react-binding'
|
|
5
|
+
import { useBoardActiveColumn } from '../contexts'
|
|
6
|
+
import { BoardCurrentColumnContext } from '@contember/react-board'
|
|
7
|
+
|
|
8
|
+
export const BoardSortableColumnDragOverlay = ({ children }: {
|
|
9
|
+
children: ReactNode
|
|
10
|
+
}) => {
|
|
11
|
+
const activeItem = useBoardActiveColumn()
|
|
12
|
+
const accessorTreeState = useAccessorTreeState()
|
|
13
|
+
if (!activeItem) {
|
|
14
|
+
return null
|
|
15
|
+
}
|
|
16
|
+
return (
|
|
17
|
+
<Portal>
|
|
18
|
+
<DragOverlay>
|
|
19
|
+
<BoardCurrentColumnContext.Provider value={activeItem}>
|
|
20
|
+
<AccessorTree state={accessorTreeState}>
|
|
21
|
+
{activeItem.value instanceof EntityAccessor ?
|
|
22
|
+
<Entity accessor={activeItem.value}>
|
|
23
|
+
{children}
|
|
24
|
+
</Entity>
|
|
25
|
+
: children
|
|
26
|
+
}
|
|
27
|
+
</AccessorTree>
|
|
28
|
+
</BoardCurrentColumnContext.Provider>
|
|
29
|
+
</DragOverlay>
|
|
30
|
+
</Portal>
|
|
31
|
+
)
|
|
32
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react'
|
|
2
|
+
import { useBoardSortableNode } from '../contexts'
|
|
3
|
+
|
|
4
|
+
export const BoardSortableColumnDropIndicator = ({ children, position }: {
|
|
5
|
+
children: ReactNode
|
|
6
|
+
position: 'before' | 'after'
|
|
7
|
+
}) => {
|
|
8
|
+
const sortable = useBoardSortableNode()
|
|
9
|
+
|
|
10
|
+
const { isOver, active, data, over } = sortable
|
|
11
|
+
|
|
12
|
+
const activeSortable = active?.data.current?.sortable
|
|
13
|
+
|
|
14
|
+
const overColumnOrItsItem = isOver || (over?.data.current?.type === 'item' && over?.data.current?.column?.id === data?.column?.id)
|
|
15
|
+
const showDropIndicator = data?.column.value !== null
|
|
16
|
+
&& overColumnOrItsItem
|
|
17
|
+
&& active?.data.current?.type === 'column'
|
|
18
|
+
&& active?.data.current?.column?.id !== data?.column?.id
|
|
19
|
+
|
|
20
|
+
const isAfter = data?.sortable.containerId === activeSortable?.containerId && (data?.sortable.index ?? 0) > activeSortable?.index
|
|
21
|
+
|
|
22
|
+
const renderedPosition = isAfter ? 'after' : 'before'
|
|
23
|
+
|
|
24
|
+
return renderedPosition === position && showDropIndicator ? <>{children}</> : null
|
|
25
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ReactNode } from 'react'
|
|
2
|
+
import { BoardEachColumn, useBoardColumns, useBoardCurrentColumn } from '@contember/react-board'
|
|
3
|
+
import { horizontalListSortingStrategy, SortableContext, useSortable } from '@dnd-kit/sortable'
|
|
4
|
+
import { BoardSortableNodeContext } from '../contexts'
|
|
5
|
+
|
|
6
|
+
export const BoardSortableEachColumn = ({ children }: {
|
|
7
|
+
children: ReactNode
|
|
8
|
+
}) => {
|
|
9
|
+
const columns = useBoardColumns()
|
|
10
|
+
|
|
11
|
+
return (
|
|
12
|
+
<SortableContext
|
|
13
|
+
items={columns}
|
|
14
|
+
strategy={horizontalListSortingStrategy}
|
|
15
|
+
>
|
|
16
|
+
<BoardEachColumn>
|
|
17
|
+
<BoardSortableEachColumnInner>
|
|
18
|
+
{children}
|
|
19
|
+
</BoardSortableEachColumnInner>
|
|
20
|
+
</BoardEachColumn>
|
|
21
|
+
|
|
22
|
+
</SortableContext>)
|
|
23
|
+
|
|
24
|
+
}
|
|
25
|
+
BoardSortableEachColumn.staticRender = ({ children }: { children: ReactNode }) => {
|
|
26
|
+
return <BoardEachColumn>{children}</BoardEachColumn>
|
|
27
|
+
}
|
|
28
|
+
const BoardSortableEachColumnInner = ({ children }: {
|
|
29
|
+
children: ReactNode
|
|
30
|
+
}) => {
|
|
31
|
+
const currentColumn = useBoardCurrentColumn()
|
|
32
|
+
const sortableProps = useSortable({
|
|
33
|
+
id: currentColumn.id,
|
|
34
|
+
data: {
|
|
35
|
+
type: 'column',
|
|
36
|
+
column: currentColumn,
|
|
37
|
+
},
|
|
38
|
+
})
|
|
39
|
+
|
|
40
|
+
return (
|
|
41
|
+
<BoardSortableNodeContext.Provider value={sortableProps}>
|
|
42
|
+
{children}
|
|
43
|
+
</BoardSortableNodeContext.Provider>
|
|
44
|
+
)
|
|
45
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { ReactNode } from 'react'
|
|
2
|
+
import { BoardEachItem, useBoardCurrentColumn, useBoardCurrentItem } from '@contember/react-board'
|
|
3
|
+
import { SortableContext, useSortable, verticalListSortingStrategy } from '@dnd-kit/sortable'
|
|
4
|
+
import { BoardSortableNodeContext } from '../contexts'
|
|
5
|
+
|
|
6
|
+
export const BoardSortableEachItem = ({ children }: {
|
|
7
|
+
children: ReactNode
|
|
8
|
+
}) => {
|
|
9
|
+
const currentColumn = useBoardCurrentColumn()
|
|
10
|
+
|
|
11
|
+
return (
|
|
12
|
+
<SortableContext
|
|
13
|
+
items={currentColumn.items}
|
|
14
|
+
strategy={verticalListSortingStrategy}
|
|
15
|
+
>
|
|
16
|
+
<BoardEachItem>
|
|
17
|
+
<BoardSortableEachItemInner>
|
|
18
|
+
{children}
|
|
19
|
+
</BoardSortableEachItemInner>
|
|
20
|
+
</BoardEachItem>
|
|
21
|
+
|
|
22
|
+
</SortableContext>)
|
|
23
|
+
|
|
24
|
+
}
|
|
25
|
+
BoardSortableEachItem.staticRender = ({ children }: { children: ReactNode }) => {
|
|
26
|
+
return <BoardEachItem>{children}</BoardEachItem>
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
const BoardSortableEachItemInner = ({ children }: {
|
|
30
|
+
children: ReactNode
|
|
31
|
+
}) => {
|
|
32
|
+
const currentItem = useBoardCurrentItem()
|
|
33
|
+
const sortableProps = useSortable({
|
|
34
|
+
id: currentItem.id,
|
|
35
|
+
data: {
|
|
36
|
+
type: 'item',
|
|
37
|
+
item: currentItem,
|
|
38
|
+
column: currentItem.column,
|
|
39
|
+
},
|
|
40
|
+
})
|
|
41
|
+
|
|
42
|
+
return (
|
|
43
|
+
<BoardSortableNodeContext.Provider value={sortableProps}>
|
|
44
|
+
{children}
|
|
45
|
+
</BoardSortableNodeContext.Provider>
|
|
46
|
+
)
|
|
47
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react'
|
|
2
|
+
import { Portal } from '@radix-ui/react-portal'
|
|
3
|
+
import { DragOverlay } from '@dnd-kit/core'
|
|
4
|
+
import { AccessorTree, Entity, useAccessorTreeState } from '@contember/react-binding'
|
|
5
|
+
import { BoardActiveItemContext, useBoardActiveItem } from '../contexts'
|
|
6
|
+
|
|
7
|
+
export const BoardSortableItemDragOverlay = ({ children }: {
|
|
8
|
+
children: ReactNode
|
|
9
|
+
}) => {
|
|
10
|
+
const activeItem = useBoardActiveItem()
|
|
11
|
+
const accessorTreeState = useAccessorTreeState()
|
|
12
|
+
if (!activeItem) {
|
|
13
|
+
return null
|
|
14
|
+
}
|
|
15
|
+
return (
|
|
16
|
+
<Portal>
|
|
17
|
+
<DragOverlay>
|
|
18
|
+
<BoardActiveItemContext.Provider value={activeItem}>
|
|
19
|
+
<AccessorTree state={accessorTreeState}>
|
|
20
|
+
<Entity accessor={activeItem.value}>
|
|
21
|
+
{children}
|
|
22
|
+
</Entity>
|
|
23
|
+
</AccessorTree>
|
|
24
|
+
</BoardActiveItemContext.Provider>
|
|
25
|
+
</DragOverlay>
|
|
26
|
+
</Portal>
|
|
27
|
+
)
|
|
28
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react'
|
|
2
|
+
import { useBoardSortableNode } from '../contexts'
|
|
3
|
+
|
|
4
|
+
export const BoardSortableItemDropIndicator = ({ children, position }: {
|
|
5
|
+
children: ReactNode
|
|
6
|
+
position: 'before' | 'after'
|
|
7
|
+
}) => {
|
|
8
|
+
const sortable = useBoardSortableNode()
|
|
9
|
+
|
|
10
|
+
const { isOver, active, data } = sortable
|
|
11
|
+
const showDropIndicator = isOver
|
|
12
|
+
&& active?.data.current?.type === 'item'
|
|
13
|
+
&& active?.data.current?.item?.id !== data?.item?.id
|
|
14
|
+
const activeSortable = active?.data.current?.sortable
|
|
15
|
+
const isAfter = data?.sortable.containerId === activeSortable?.containerId
|
|
16
|
+
&& (data?.sortable.index ?? 0) > activeSortable?.index
|
|
17
|
+
|
|
18
|
+
const renderedPosition = isAfter ? 'after' : 'before'
|
|
19
|
+
|
|
20
|
+
return renderedPosition === position && showDropIndicator ? <>{children}</> : null
|
|
21
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react'
|
|
2
|
+
import { useBoardSortableNode } from '../contexts'
|
|
3
|
+
import { Slot } from '@radix-ui/react-slot'
|
|
4
|
+
import { dataAttribute } from '@contember/utilities'
|
|
5
|
+
|
|
6
|
+
export const BoardSortableNode = ({ children }: {
|
|
7
|
+
children: ReactNode
|
|
8
|
+
}) => {
|
|
9
|
+
const { setNodeRef, isOver, isDragging, active } = useBoardSortableNode()
|
|
10
|
+
return (
|
|
11
|
+
<Slot
|
|
12
|
+
ref={setNodeRef}
|
|
13
|
+
data-sortable-over={dataAttribute(isOver ? active?.data.current?.type : undefined)}
|
|
14
|
+
data-sortable-dragging={dataAttribute(isDragging)}
|
|
15
|
+
>
|
|
16
|
+
{children}
|
|
17
|
+
</Slot>
|
|
18
|
+
)
|
|
19
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ReactNode } from 'react'
|
|
2
|
+
import { BoardNullColumn, BoardNullColumnProps, useBoardCurrentColumn } from '@contember/react-board'
|
|
3
|
+
import { useSortable } from '@dnd-kit/sortable'
|
|
4
|
+
import { BoardSortableNodeContext } from '../contexts'
|
|
5
|
+
|
|
6
|
+
export const BoardSortableNullColumn = ({ children }: BoardNullColumnProps) => {
|
|
7
|
+
return (
|
|
8
|
+
<BoardNullColumn>
|
|
9
|
+
<BoardSortableNullColumnInner>
|
|
10
|
+
{children}
|
|
11
|
+
</BoardSortableNullColumnInner>
|
|
12
|
+
</BoardNullColumn>
|
|
13
|
+
)
|
|
14
|
+
}
|
|
15
|
+
const BoardSortableNullColumnInner = ({ children }: {
|
|
16
|
+
children: ReactNode
|
|
17
|
+
}) => {
|
|
18
|
+
const currentColumn = useBoardCurrentColumn()
|
|
19
|
+
const sortableProps = useSortable({
|
|
20
|
+
id: currentColumn.id,
|
|
21
|
+
data: {
|
|
22
|
+
type: 'column',
|
|
23
|
+
column: currentColumn,
|
|
24
|
+
},
|
|
25
|
+
})
|
|
26
|
+
|
|
27
|
+
return (
|
|
28
|
+
<BoardSortableNodeContext.Provider value={sortableProps}>
|
|
29
|
+
{children}
|
|
30
|
+
</BoardSortableNodeContext.Provider>
|
|
31
|
+
)
|
|
32
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './BoardSortable'
|
|
2
|
+
export * from './BoardSortableColumnDragOverlay'
|
|
3
|
+
export * from './BoardSortableColumnDropIndicator'
|
|
4
|
+
export * from './BoardSortableEachColumn'
|
|
5
|
+
export * from './BoardSortableEachItem'
|
|
6
|
+
export * from './BoardSortableItemDragOverlay'
|
|
7
|
+
export * from './BoardSortableItemDropIndicator'
|
|
8
|
+
export * from './BoardSortableActivator'
|
|
9
|
+
export * from './BoardSortableNode'
|
|
10
|
+
export * from './BoardSortableNullColumn'
|
package/src/contexts.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createContext, createRequiredContext } from '@contember/react-utils'
|
|
2
|
+
import { useSortable } from '@dnd-kit/sortable'
|
|
3
|
+
import { BoardColumnNode, BoardItemNode } from '@contember/react-board'
|
|
4
|
+
|
|
5
|
+
const BoardSortableNodeContext_ = createRequiredContext<ReturnType<typeof useSortable>>('BoardSortableNodeContext')
|
|
6
|
+
/** @internal */
|
|
7
|
+
export const BoardSortableNodeContext = BoardSortableNodeContext_[0]
|
|
8
|
+
export const useBoardSortableNode = BoardSortableNodeContext_[1]
|
|
9
|
+
|
|
10
|
+
const BoardActiveItemContext_ = createContext<BoardItemNode & { column: BoardColumnNode } | undefined>('BoardActiveItemContext', undefined)
|
|
11
|
+
/** @internal */
|
|
12
|
+
export const BoardActiveItemContext = BoardActiveItemContext_[0]
|
|
13
|
+
export const useBoardActiveItem = BoardActiveItemContext_[1]
|
|
14
|
+
|
|
15
|
+
const BoardActiveColumnContext_ = createContext<BoardColumnNode | undefined>('BoardActiveColumnContext', undefined)
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const BoardActiveColumnContext = BoardActiveColumnContext_[0]
|
|
18
|
+
export const useBoardActiveColumn = BoardActiveColumnContext_[1]
|
package/src/index.ts
CHANGED
|
@@ -1,23 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import React, { FunctionComponent, ReactNode } from 'react'
|
|
4
|
-
|
|
5
|
-
export * from './BoardDndKitRenderer'
|
|
6
|
-
export * from './types'
|
|
7
|
-
|
|
8
|
-
export const createBoardDndKit = <ColumnExtraProps extends {}, ItemExtraProps extends {}>({ Column, Item, Wrapper, usePortalProvider }: {
|
|
9
|
-
Wrapper: React.ComponentType<{ children: ReactNode }>
|
|
10
|
-
Column: React.ComponentType<BoardColumnRendererProps & ColumnExtraProps>
|
|
11
|
-
Item: React.ComponentType<BoardItemRendererProps & ItemExtraProps>
|
|
12
|
-
usePortalProvider?: () => Element | null
|
|
13
|
-
}): FunctionComponent<BoardBaseProps<ColumnExtraProps & ItemExtraProps>> => {
|
|
14
|
-
const renderer = createBoardDndKitRenderer({ Column, Item, Wrapper, usePortalProvider })
|
|
15
|
-
|
|
16
|
-
return createBoard<ColumnExtraProps & ItemExtraProps>({
|
|
17
|
-
Renderer: renderer,
|
|
18
|
-
ItemStaticRender: Item as any,
|
|
19
|
-
ColumnStaticRender: Column as any,
|
|
20
|
-
})
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export * from '@contember/react-board'
|
|
1
|
+
export * from './components'
|
|
2
|
+
export * from './contexts'
|
package/src/tsconfig.json
CHANGED
|
@@ -4,7 +4,10 @@
|
|
|
4
4
|
"outDir": "../dist/types"
|
|
5
5
|
},
|
|
6
6
|
"references": [
|
|
7
|
+
{ "path": "../../binding/src" },
|
|
7
8
|
{ "path": "../../react-binding/src" },
|
|
8
|
-
{ "path": "../../react-board/src" }
|
|
9
|
+
{ "path": "../../react-board/src" },
|
|
10
|
+
{ "path": "../../react-utils/src" },
|
|
11
|
+
{ "path": "../../utilities/src" },
|
|
9
12
|
]
|
|
10
13
|
}
|
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
-
const react = require("react");
|
|
5
|
-
const reactDom = require("react-dom");
|
|
6
|
-
const core = require("@dnd-kit/core");
|
|
7
|
-
const sortable = require("@dnd-kit/sortable");
|
|
8
|
-
const multipleContainersKeyboardCoordinates = require("./internal/multipleContainersKeyboardCoordinates.cjs");
|
|
9
|
-
const reactBinding = require("@contember/react-binding");
|
|
10
|
-
const useBoardIndex = (columns) => {
|
|
11
|
-
return react.useMemo(() => Object.fromEntries(columns.flatMap((column) => [
|
|
12
|
-
[column.id, { type: "column", column }],
|
|
13
|
-
...column.items.map((item) => [item.id, { type: "item", column, item }])
|
|
14
|
-
])), [columns]);
|
|
15
|
-
};
|
|
16
|
-
const createBoardDndKitRenderer = ({ Column, Item, Wrapper, usePortalProvider }) => {
|
|
17
|
-
const SortableItem = ({ dragOverlay, value, boardMethods, column, ...props }) => {
|
|
18
|
-
const sortableProps = sortable.useSortable({
|
|
19
|
-
id: value.id,
|
|
20
|
-
data: {
|
|
21
|
-
type: "item",
|
|
22
|
-
item: value,
|
|
23
|
-
column
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
const { isOver, active, data } = sortableProps;
|
|
27
|
-
const showDropIndicator = isOver && active?.data.current?.type === "item";
|
|
28
|
-
const activeSortable = active?.data.current?.sortable;
|
|
29
|
-
const isAfter = data?.sortable.containerId === activeSortable?.containerId && (data?.sortable.index ?? 0) > activeSortable?.index;
|
|
30
|
-
return /* @__PURE__ */ jsxRuntime.jsx(reactBinding.Entity, { accessor: value.value, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
31
|
-
Item,
|
|
32
|
-
{
|
|
33
|
-
value,
|
|
34
|
-
boardMethods,
|
|
35
|
-
dragOverlay,
|
|
36
|
-
sortableProps,
|
|
37
|
-
dropIndicator: showDropIndicator ? isAfter ? "after" : "before" : void 0,
|
|
38
|
-
...props
|
|
39
|
-
}
|
|
40
|
-
) });
|
|
41
|
-
};
|
|
42
|
-
const SortableColumn = ({ children, value, dragOverlay, boardMethods, ...props }) => {
|
|
43
|
-
const sortableProps = sortable.useSortable({
|
|
44
|
-
id: value.id,
|
|
45
|
-
data: {
|
|
46
|
-
type: "column",
|
|
47
|
-
column: value
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
const { active, isOver, over, data } = sortableProps;
|
|
51
|
-
const activeSortable = active?.data.current?.sortable;
|
|
52
|
-
const overColumnOrItsItem = isOver || over?.data.current?.type === "item" && over?.data.current?.column?.id === value?.id;
|
|
53
|
-
const showDropIndicator = value?.value !== null && overColumnOrItsItem && active?.data.current?.type === "column";
|
|
54
|
-
const isAfter = data?.sortable.containerId === activeSortable?.containerId && (data?.sortable.index ?? 0) > activeSortable?.index;
|
|
55
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ColumnEntityWrapper, { value, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
56
|
-
Column,
|
|
57
|
-
{
|
|
58
|
-
value,
|
|
59
|
-
dragOverlay,
|
|
60
|
-
sortableProps,
|
|
61
|
-
boardMethods,
|
|
62
|
-
dropIndicator: showDropIndicator ? isAfter ? "after" : "before" : void 0,
|
|
63
|
-
...props,
|
|
64
|
-
children
|
|
65
|
-
}
|
|
66
|
-
) });
|
|
67
|
-
};
|
|
68
|
-
const ColumnEntityWrapper = ({ value, children }) => {
|
|
69
|
-
if (!(value.value instanceof reactBinding.EntityAccessor)) {
|
|
70
|
-
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
|
|
71
|
-
}
|
|
72
|
-
return /* @__PURE__ */ jsxRuntime.jsx(reactBinding.Entity, { accessor: value.value, children });
|
|
73
|
-
};
|
|
74
|
-
const ContainerDragOverlay = ({ column, boardMethods, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(ColumnEntityWrapper, { value: column, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
75
|
-
Column,
|
|
76
|
-
{
|
|
77
|
-
dragOverlay: true,
|
|
78
|
-
value: column,
|
|
79
|
-
boardMethods,
|
|
80
|
-
...props,
|
|
81
|
-
children: column.items.map((item) => /* @__PURE__ */ jsxRuntime.jsx(reactBinding.Entity, { accessor: item.value, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
82
|
-
Item,
|
|
83
|
-
{
|
|
84
|
-
dragOverlay: true,
|
|
85
|
-
value: item,
|
|
86
|
-
boardMethods,
|
|
87
|
-
...props
|
|
88
|
-
}
|
|
89
|
-
) }, item.id))
|
|
90
|
-
}
|
|
91
|
-
) });
|
|
92
|
-
return ({ columns, moveColumn, moveItem, removeColumn, removeItem, addItem, addColumn, ...extraProps }) => {
|
|
93
|
-
const [activeId, setActiveId] = react.useState(null);
|
|
94
|
-
const boardMethods = react.useMemo(() => ({
|
|
95
|
-
moveColumn,
|
|
96
|
-
moveItem,
|
|
97
|
-
removeColumn,
|
|
98
|
-
removeItem,
|
|
99
|
-
addItem,
|
|
100
|
-
addColumn
|
|
101
|
-
}), [moveColumn, moveItem, removeColumn, removeItem, addItem, addColumn]);
|
|
102
|
-
const boardIndex = useBoardIndex(columns);
|
|
103
|
-
const activeItem = activeId ? boardIndex[activeId] : void 0;
|
|
104
|
-
const sensors = core.useSensors(
|
|
105
|
-
core.useSensor(core.MouseSensor),
|
|
106
|
-
core.useSensor(core.TouchSensor),
|
|
107
|
-
core.useSensor(core.KeyboardSensor, {
|
|
108
|
-
coordinateGetter: multipleContainersKeyboardCoordinates.coordinateGetter
|
|
109
|
-
})
|
|
110
|
-
);
|
|
111
|
-
const onDragCancel = () => {
|
|
112
|
-
setActiveId(null);
|
|
113
|
-
};
|
|
114
|
-
const portal = usePortalProvider ? usePortalProvider() : document.body;
|
|
115
|
-
const onDragEnd = react.useCallback(({ active, over }) => {
|
|
116
|
-
setActiveId(null);
|
|
117
|
-
const overItem = over ? boardIndex[over.id] : null;
|
|
118
|
-
const activeItem2 = boardIndex[active.id];
|
|
119
|
-
if (!activeItem2) {
|
|
120
|
-
return;
|
|
121
|
-
}
|
|
122
|
-
if (activeItem2.type === "column" && activeItem2.column.value instanceof reactBinding.EntityAccessor) {
|
|
123
|
-
console.log(overItem);
|
|
124
|
-
moveColumn?.(activeItem2.column.value, overItem?.column.index ?? columns.length);
|
|
125
|
-
return;
|
|
126
|
-
}
|
|
127
|
-
if (activeItem2.type === "item" && overItem) {
|
|
128
|
-
moveItem?.(activeItem2.item.value, overItem.column.value, overItem.type === "item" ? overItem.item.index : overItem.column.items.length);
|
|
129
|
-
return;
|
|
130
|
-
}
|
|
131
|
-
}, [boardIndex, columns.length, moveColumn, moveItem]);
|
|
132
|
-
const accessorTreeState = reactBinding.useAccessorTreeState();
|
|
133
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
134
|
-
core.DndContext,
|
|
135
|
-
{
|
|
136
|
-
sensors,
|
|
137
|
-
measuring: {
|
|
138
|
-
droppable: {
|
|
139
|
-
strategy: core.MeasuringStrategy.Always
|
|
140
|
-
}
|
|
141
|
-
},
|
|
142
|
-
onDragStart: ({ active }) => {
|
|
143
|
-
setActiveId(active.id);
|
|
144
|
-
},
|
|
145
|
-
onDragEnd,
|
|
146
|
-
onDragCancel,
|
|
147
|
-
children: [
|
|
148
|
-
/* @__PURE__ */ jsxRuntime.jsx(Wrapper, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
149
|
-
sortable.SortableContext,
|
|
150
|
-
{
|
|
151
|
-
items: columns,
|
|
152
|
-
strategy: sortable.horizontalListSortingStrategy,
|
|
153
|
-
children: columns.map((column) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
154
|
-
SortableColumn,
|
|
155
|
-
{
|
|
156
|
-
value: column,
|
|
157
|
-
boardMethods,
|
|
158
|
-
...extraProps,
|
|
159
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(sortable.SortableContext, { items: column.items, strategy: sortable.verticalListSortingStrategy, children: column.items.map((value) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
160
|
-
SortableItem,
|
|
161
|
-
{
|
|
162
|
-
value,
|
|
163
|
-
column,
|
|
164
|
-
boardMethods,
|
|
165
|
-
...extraProps
|
|
166
|
-
},
|
|
167
|
-
value.id
|
|
168
|
-
)) })
|
|
169
|
-
},
|
|
170
|
-
column.id
|
|
171
|
-
))
|
|
172
|
-
}
|
|
173
|
-
) }),
|
|
174
|
-
portal ? reactDom.createPortal(
|
|
175
|
-
/* @__PURE__ */ jsxRuntime.jsx(core.DragOverlay, { children: /* @__PURE__ */ jsxRuntime.jsx(reactBinding.AccessorTree, { state: accessorTreeState, children: activeItem ? activeItem.type === "column" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
176
|
-
ContainerDragOverlay,
|
|
177
|
-
{
|
|
178
|
-
boardMethods,
|
|
179
|
-
column: activeItem.column,
|
|
180
|
-
...extraProps
|
|
181
|
-
}
|
|
182
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(reactBinding.Entity, { accessor: activeItem.item.value, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
183
|
-
Item,
|
|
184
|
-
{
|
|
185
|
-
dragOverlay: true,
|
|
186
|
-
value: activeItem.item,
|
|
187
|
-
boardMethods,
|
|
188
|
-
...extraProps
|
|
189
|
-
}
|
|
190
|
-
) }) : null }) }),
|
|
191
|
-
portal
|
|
192
|
-
) : null
|
|
193
|
-
]
|
|
194
|
-
}
|
|
195
|
-
);
|
|
196
|
-
};
|
|
197
|
-
};
|
|
198
|
-
exports.createBoardDndKitRenderer = createBoardDndKitRenderer;
|
|
199
|
-
//# sourceMappingURL=BoardDndKitRenderer.cjs.map
|