@iloveagents/foundry-web-primitives 0.1.0 → 0.1.2

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