@octanejs/dnd-kit 0.1.30 → 0.1.31
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/README.md
CHANGED
|
@@ -35,6 +35,12 @@ export function App() @{
|
|
|
35
35
|
|
|
36
36
|
The public entry points mirror `@dnd-kit/react@0.5.0`:
|
|
37
37
|
|
|
38
|
+
Parity evidence is intentionally `recorded-unverified`: the canonical adapter
|
|
39
|
+
source is pinned and vendored, but upstream contains no React-adapter test suite
|
|
40
|
+
at this release and the current differential covers one programmatic manager-action
|
|
41
|
+
drag lifecycle (not keyboard-sensor parity).
|
|
42
|
+
See [`UPSTREAM.md`](./UPSTREAM.md) for the exact boundary and open browser gaps.
|
|
43
|
+
|
|
38
44
|
- `@octanejs/dnd-kit`
|
|
39
45
|
- `@octanejs/dnd-kit/hooks`
|
|
40
46
|
- `@octanejs/dnd-kit/sortable`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octanejs/dnd-kit",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.31",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@dnd-kit/state": "0.5.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"octane": "0.1.
|
|
49
|
+
"octane": "0.1.36"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@dnd-kit/helpers": "0.5.0",
|
|
@@ -54,13 +54,13 @@
|
|
|
54
54
|
"@tsrx/react": "^0.2.56",
|
|
55
55
|
"@vitest/coverage-v8": "4.1.10",
|
|
56
56
|
"esbuild": "^0.28.1",
|
|
57
|
-
"react": "
|
|
58
|
-
"react-dom": "
|
|
57
|
+
"react": "19.2.7",
|
|
58
|
+
"react-dom": "19.2.7",
|
|
59
59
|
"vitest": "^4.1.10",
|
|
60
|
-
"octane": "0.1.
|
|
60
|
+
"octane": "0.1.36"
|
|
61
61
|
},
|
|
62
62
|
"scripts": {
|
|
63
|
-
"test": "vitest run --root ../.. --project dnd-kit --project dnd-kit-differential --project dnd-kit-ssr",
|
|
64
|
-
"test:coverage": "vitest run --root ../.. --project dnd-kit --project dnd-kit-differential --project dnd-kit-ssr --coverage.enabled --coverage.provider=v8 --coverage.include=packages/dnd-kit/src/** --coverage.reporter=text --coverage.thresholds.lines=100 --coverage.thresholds.statements=98 --coverage.thresholds.functions=98 --coverage.thresholds.branches=86"
|
|
63
|
+
"test": "vitest run --root ../.. --project dnd-kit --project dnd-kit-differential --project dnd-kit-parity-audit --project dnd-kit-ssr",
|
|
64
|
+
"test:coverage": "vitest run --root ../.. --project dnd-kit --project dnd-kit-differential --project dnd-kit-parity-audit --project dnd-kit-ssr --coverage.enabled --coverage.provider=v8 --coverage.include=packages/dnd-kit/src/** --coverage.reporter=text --coverage.thresholds.lines=100 --coverage.thresholds.statements=98 --coverage.thresholds.functions=98 --coverage.thresholds.branches=86"
|
|
65
65
|
}
|
|
66
66
|
}
|
|
@@ -64,6 +64,10 @@ export function DragOverlay<T extends Data, U extends Draggable<T>>(props: DragO
|
|
|
64
64
|
|
|
65
65
|
let content: unknown = null;
|
|
66
66
|
if (source && !isDisabled) {
|
|
67
|
+
// OCTANE DIVERGENCE[dnd-kit-drag-overlay-compiled-children][differential:dnd-kit-drag-overlay-compiled-children]
|
|
68
|
+
// Upstream treats every function child as a render prop. Octane compiled
|
|
69
|
+
// children blocks are also functions, so distinguish them with
|
|
70
|
+
// isChildrenBlock and only call plain render props.
|
|
67
71
|
content = typeof children === 'function' && !isChildrenBlock(children)
|
|
68
72
|
? // The typeof/isChildrenBlock guard proves this is the render function,
|
|
69
73
|
// but `object` in DragOverlayChild keeps a bare Function arm in the union.
|
|
@@ -21,6 +21,7 @@ export interface UseSortableInput<T extends Data = Data> extends Omit<
|
|
|
21
21
|
target?: RefOrValue<Element>;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
// OCTANE DIVERGENCE[dnd-kit-sortable-omit-optimistic-sorting][differential:dnd-kit-sortable-omit-optimistic-sorting]
|
|
24
25
|
// The DOM core's other default sortable plugin optimistically reparents only
|
|
25
26
|
// the referenced host Element. Octane keyed items can own a wider marker range,
|
|
26
27
|
// so that move splits the framework-owned range before application state has
|