@octanejs/dnd-kit 0.1.5 → 0.1.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octanejs/dnd-kit",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "engines": {
@@ -46,18 +46,18 @@
46
46
  "@dnd-kit/state": "0.5.0"
47
47
  },
48
48
  "peerDependencies": {
49
- "octane": "0.1.10"
49
+ "octane": "0.1.12"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@dnd-kit/helpers": "0.5.0",
53
53
  "@dnd-kit/react": "0.5.0",
54
- "@tsrx/react": "^0.2.37",
54
+ "@tsrx/react": "^0.2.44",
55
55
  "@vitest/coverage-v8": "4.1.9",
56
56
  "esbuild": "^0.28.1",
57
57
  "react": "^19.2.0",
58
58
  "react-dom": "^19.2.0",
59
59
  "vitest": "^4.1.9",
60
- "octane": "0.1.10"
60
+ "octane": "0.1.12"
61
61
  },
62
62
  "scripts": {
63
63
  "test": "vitest run --root ../.. --project dnd-kit",
@@ -84,7 +84,7 @@ export function DragDropProvider<T extends Data = Data, U extends Draggable<T> =
84
84
 
85
85
  return createElement(
86
86
  DragDropContext.Provider,
87
- { value: manager as DragDropManager },
87
+ { value: manager as unknown as DragDropManager },
88
88
  createElement(Renderer, { ref: rendererRef }, children),
89
89
  children,
90
90
  );
@@ -7,7 +7,7 @@ export type OctaneRenderer = {
7
7
  trackRendering: (callback: () => void) => void;
8
8
  };
9
9
 
10
- function RendererImpl(props: { children: unknown; ref?: { current: OctaneRenderer | null } }) {
10
+ function RendererImpl(props: { children?: unknown; ref?: { current: OctaneRenderer | null } }) {
11
11
  const [transitionCount, setTransitionCount] = useState(0);
12
12
  const rendering = useRef<Promise<void> | null>(null);
13
13
  const resolver = useRef<(() => void) | null>(null);
@@ -65,7 +65,12 @@ export function DragOverlay<T extends Data, U extends Draggable<T>>(props: DragO
65
65
  let content: unknown = null;
66
66
  if (source && !isDisabled) {
67
67
  content = typeof children === 'function' && !isChildrenBlock(children)
68
- ? createElement(OverlayChildren, { source, children })
68
+ ? // The typeof/isChildrenBlock guard proves this is the render function,
69
+ // but `object` in DragOverlayChild keeps a bare Function arm in the union.
70
+ createElement(OverlayChildren, {
71
+ source,
72
+ children: children as (source: Draggable<Data>) => DragOverlayChild,
73
+ })
69
74
  : children;
70
75
  }
71
76