@portabletext/plugin-paste-link 4.0.26 → 4.0.28

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
@@ -42,7 +42,6 @@ Use the `guard` prop to control when the paste link behavior runs. Return `false
42
42
 
43
43
  ```tsx
44
44
  import {getActiveStyle} from '@portabletext/editor/selectors'
45
-
46
45
  ;<PasteLinkPlugin
47
46
  guard={({snapshot}) => {
48
47
  // Skip paste-link on h1 blocks (e.g., document titles)
package/dist/index.d.ts CHANGED
@@ -1,8 +1,6 @@
1
+ import {BehaviorGuard} from '@portabletext/editor/behaviors'
1
2
  import type {EditorContext} from '@portabletext/editor'
2
- import {
3
- BehaviorGuard,
4
- NativeBehaviorEvent,
5
- } from '@portabletext/editor/behaviors'
3
+ import {NativeBehaviorEvent} from '@portabletext/editor/behaviors'
6
4
 
7
5
  /**
8
6
  * Function that converts a pasted URL into a link annotation.
package/package.json CHANGED
@@ -1,64 +1,64 @@
1
1
  {
2
2
  "name": "@portabletext/plugin-paste-link",
3
- "version": "4.0.26",
3
+ "version": "4.0.28",
4
4
  "description": "Allow pasting links in the Portable Text Editor",
5
5
  "keywords": [
6
- "portabletext",
7
- "plugin",
8
- "paste",
6
+ "behaviors",
9
7
  "link",
10
- "url",
11
- "behaviors"
8
+ "paste",
9
+ "plugin",
10
+ "portabletext",
11
+ "url"
12
12
  ],
13
13
  "homepage": "https://portabletext.org",
14
14
  "bugs": {
15
15
  "url": "https://github.com/portabletext/editor/issues"
16
16
  },
17
+ "license": "MIT",
18
+ "author": "Sanity.io <hello@sanity.io>",
17
19
  "repository": {
18
20
  "type": "git",
19
21
  "url": "https://github.com/portabletext/editor.git",
20
22
  "directory": "packages/plugin-paste-link"
21
23
  },
22
- "license": "MIT",
23
- "author": "Sanity.io <hello@sanity.io>",
24
- "sideEffects": false,
24
+ "files": [
25
+ "dist"
26
+ ],
25
27
  "type": "module",
28
+ "sideEffects": false,
29
+ "main": "./dist/index.js",
30
+ "types": "./dist/index.d.ts",
26
31
  "exports": {
27
32
  ".": "./dist/index.js",
28
33
  "./package.json": "./package.json"
29
34
  },
30
- "main": "./dist/index.js",
31
- "types": "./dist/index.d.ts",
32
- "files": [
33
- "dist"
34
- ],
35
+ "publishConfig": {
36
+ "access": "public"
37
+ },
35
38
  "devDependencies": {
36
- "@sanity/pkg-utils": "^10.2.1",
39
+ "@sanity/pkg-utils": "^10.8.2",
37
40
  "@sanity/tsconfig": "^2.1.0",
38
41
  "@types/react": "^19.2.17",
39
42
  "@vitejs/plugin-react": "^5.2.0",
40
43
  "@vitest/browser": "^4.1.9",
41
44
  "@vitest/browser-playwright": "^4.1.9",
42
45
  "babel-plugin-react-compiler": "^1.0.0",
43
- "eslint": "^9.39.1",
46
+ "eslint": "^9.39.4",
44
47
  "eslint-plugin-react-hooks": "^7.1.1",
45
48
  "react": "^19.2.7",
46
- "typescript": "5.9.3",
47
- "typescript-eslint": "^8.48.0",
49
+ "typescript": "6.0.3",
50
+ "typescript-eslint": "^8.62.0",
48
51
  "vitest": "^4.1.9",
49
- "@portabletext/editor": "^7.9.0",
52
+ "@portabletext/editor": "^7.10.1",
50
53
  "racejar": "2.0.9"
51
54
  },
52
55
  "peerDependencies": {
53
56
  "react": "^19.2",
54
- "@portabletext/editor": "^7.9.0"
57
+ "@portabletext/editor": "^7.10.1"
55
58
  },
56
59
  "engines": {
57
60
  "node": ">=20.19 <22 || >=22.12"
58
61
  },
59
- "publishConfig": {
60
- "access": "public"
61
- },
62
62
  "scripts": {
63
63
  "build": "pkg-utils build --strict --check --clean",
64
64
  "check:lint": "biome lint .",