@portabletext/plugin-input-rule 0.6.2 → 1.0.0
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 +0 -4
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -2,10 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
> Easily configure Input Rules in the Portable Text Editor
|
|
4
4
|
|
|
5
|
-
> ⚠️ **Note:** `defineInputRule` and other APIs exposed by this plugin are still a work in progress and may change slightly. We are still ironing out some details before we can cut a stable release.
|
|
6
|
-
|
|
7
|
-
Listening for inserted text patterns and performing actions based on them is incredibly common, but it comes with many challenges:
|
|
8
|
-
|
|
9
5
|
1. How do you implement undo functionality correctly?
|
|
10
6
|
2. What about smart undo with <kbd>Backspace</kbd>?
|
|
11
7
|
3. Have you considered `insert.text` events that carry more than one character? (Android, anyone?)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@portabletext/plugin-input-rule",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Easily configure input rules in the Portable Text Editor",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"portabletext",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"@sanity/pkg-utils": "^9.0.3",
|
|
43
43
|
"@types/react": "^19.2.2",
|
|
44
44
|
"@vitejs/plugin-react": "^5.0.4",
|
|
45
|
-
"@vitest/browser": "^4.0.
|
|
46
|
-
"@vitest/browser-playwright": "^4.0.
|
|
45
|
+
"@vitest/browser": "^4.0.8",
|
|
46
|
+
"@vitest/browser-playwright": "^4.0.8",
|
|
47
47
|
"babel-plugin-react-compiler": "1.0.0",
|
|
48
48
|
"eslint": "^9.38.0",
|
|
49
49
|
"eslint-formatter-gha": "^1.6.0",
|
|
@@ -51,13 +51,13 @@
|
|
|
51
51
|
"react": "^19.2.0",
|
|
52
52
|
"typescript": "5.9.3",
|
|
53
53
|
"typescript-eslint": "^8.46.1",
|
|
54
|
-
"vitest": "^4.0.
|
|
55
|
-
"@portabletext/editor": "
|
|
54
|
+
"vitest": "^4.0.8",
|
|
55
|
+
"@portabletext/editor": "3.0.0",
|
|
56
56
|
"@portabletext/schema": "2.0.0",
|
|
57
57
|
"racejar": "2.0.0"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"@portabletext/editor": "^
|
|
60
|
+
"@portabletext/editor": "^3.0.0",
|
|
61
61
|
"react": "^18.3 || ^19"
|
|
62
62
|
},
|
|
63
63
|
"engines": {
|