@iloveagents/foundry-web-primitives 0.1.0 → 0.1.1

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 (2) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/package.json +1 -1
package/CHANGELOG.md ADDED
@@ -0,0 +1,24 @@
1
+ # @iloveagents/foundry-web-primitives
2
+
3
+ ## 0.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 689d3e9: feat(sidebar): distinct file-drop affordance for nav containers
8
+
9
+ `useNavItemDnd` now exposes `isFileDragOver` separately from `isDragOver`
10
+ so consuming nav items can render a prominent file-drop visual (dashed
11
+ primary outline + soft primary background + Upload icon) when the user
12
+ is dragging native files over the container. Previously file drags
13
+ shared the same subtle ring as entity-move drags, so users couldn't
14
+ tell that a folder accepted external files. Applies to all five nav-
15
+ item shapes (action-row leaf, button leaf, `NestedFolderItem`,
16
+ `CollapsibleNavItem` with children/actions, `NavLink` fallthrough) and
17
+ updates `ContainerDropZone` for visual parity.
18
+
19
+ Also fixes a related regression: the capture-phase
20
+ `onDragEnterCapture` / `onDragOverCapture` handlers were calling
21
+ `e.stopPropagation()`, which short-circuits React's synthetic dispatch
22
+ and prevented the bubble-phase `onDragEnter` (where state actually
23
+ mutates) from running. Removed — `preventDefault()` alone is enough to
24
+ mark the element as droppable.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iloveagents/foundry-web-primitives",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "type": "module",
6
6
  "types": "./src/index.ts",