@portabletext/plugin-dnd 1.0.6 → 1.0.8

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/README.md +9 -1
  2. package/package.json +11 -11
package/README.md CHANGED
@@ -1,6 +1,14 @@
1
1
  # `@portabletext/plugin-dnd`
2
2
 
3
- A helper plugin for tracking the drop position during drag and drop.
3
+ > Track the drop position during drag and drop for custom drop indicators
4
+
5
+ ## Installation
6
+
7
+ ```sh
8
+ npm install @portabletext/plugin-dnd
9
+ ```
10
+
11
+ ## Usage
4
12
 
5
13
  When a consumer takes over block rendering through the `defineX` pipeline, the engine renders no drop-indicator chrome: where a dragged block would land is deliberately left to the consumer, since drop indication is pointer-driven UI, not document structure. This plugin tracks the position for you, derived from the editor's public `drag.*` behavior events.
6
14
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@portabletext/plugin-dnd",
3
- "version": "1.0.6",
4
- "description": "A helper plugin for tracking the drop position during drag and drop",
3
+ "version": "1.0.8",
4
+ "description": "Track the drop position during drag and drop for custom drop indicators",
5
5
  "keywords": [
6
6
  "portabletext",
7
7
  "plugin",
@@ -33,25 +33,25 @@
33
33
  ],
34
34
  "devDependencies": {
35
35
  "@sanity/tsconfig": "^2.1.0",
36
- "@types/react": "^19.2.14",
36
+ "@types/react": "^19.2.17",
37
37
  "@types/react-dom": "^19.2.3",
38
38
  "@vitejs/plugin-react": "^5.2.0",
39
- "@vitest/browser": "^4.1.8",
40
- "@vitest/browser-playwright": "^4.1.8",
39
+ "@vitest/browser": "^4.1.9",
40
+ "@vitest/browser-playwright": "^4.1.9",
41
41
  "babel-plugin-react-compiler": "^1.0.0",
42
42
  "eslint": "^9.39.1",
43
43
  "eslint-plugin-react-hooks": "^7.1.1",
44
- "react": "^19.2.5",
44
+ "react": "^19.2.7",
45
45
  "typescript": "5.9.3",
46
46
  "typescript-eslint": "^8.48.0",
47
- "vitest": "^4.1.8",
48
- "@portabletext/editor": "^7.6.2",
49
- "@portabletext/schema": "^2.2.1",
50
- "@portabletext/test": "^1.0.3"
47
+ "vitest": "^4.1.9",
48
+ "@portabletext/editor": "^7.8.0",
49
+ "@portabletext/schema": "^2.2.2",
50
+ "@portabletext/test": "^1.0.4"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "react": "^19.2",
54
- "@portabletext/editor": "^7.6.2"
54
+ "@portabletext/editor": "^7.8.0"
55
55
  },
56
56
  "engines": {
57
57
  "node": ">=20.19 <22 || >=22.12"