@portabletext/plugin-typeahead-picker 2.0.0 → 2.0.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.
- package/README.md +7 -8
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -229,14 +229,13 @@ User types `y` → Keyword updates to "joy"
|
|
|
229
229
|
|
|
230
230
|
**delimiter requirements:**
|
|
231
231
|
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
| keyword | delimiter | Example | Works? | Why
|
|
235
|
-
| ------- | --------- | -------- | ------ |
|
|
236
|
-
| `/\S*/` | `:` | `:joy:` | ✅ | `\S` matches `:`,
|
|
237
|
-
| `/\w*/` | `:` | `:joy:` | ✅ |
|
|
238
|
-
| `/\w*/` |
|
|
239
|
-
| `/\w*/` | `##` | `#tag##` | ❌ | First `#` moves cursor past match, picker dismisses |
|
|
232
|
+
Single-character delimiters work regardless of whether the character is included in the keyword pattern. Multi-character delimiters are not supported.
|
|
233
|
+
|
|
234
|
+
| keyword | delimiter | Example | Works? | Why |
|
|
235
|
+
| ------- | --------- | -------- | ------ | --------------------------------------- |
|
|
236
|
+
| `/\S*/` | `:` | `:joy:` | ✅ | `\S` matches `:`, keyword becomes `joy` |
|
|
237
|
+
| `/\w*/` | `:` | `:joy:` | ✅ | `\w` stops at `:`, keyword is `joy` |
|
|
238
|
+
| `/\w*/` | `##` | `#tag##` | ❌ | Multi-char delimiter not supported |
|
|
240
239
|
|
|
241
240
|
### `useTypeaheadPicker(definition)`
|
|
242
241
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@portabletext/plugin-typeahead-picker",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "Generic typeahead picker infrastructure for the Portable Text Editor",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"portabletext",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@xstate/react": "^6.0.0",
|
|
36
36
|
"xstate": "^5.25.0",
|
|
37
37
|
"@portabletext/keyboard-shortcuts": "^2.1.2",
|
|
38
|
-
"@portabletext/plugin-input-rule": "^2.0.
|
|
38
|
+
"@portabletext/plugin-input-rule": "^2.0.17"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@sanity/pkg-utils": "^10.2.1",
|
|
@@ -52,12 +52,12 @@
|
|
|
52
52
|
"typescript": "5.9.3",
|
|
53
53
|
"typescript-eslint": "^8.48.0",
|
|
54
54
|
"vitest": "^4.0.16",
|
|
55
|
-
"@portabletext/editor": "4.3.
|
|
55
|
+
"@portabletext/editor": "^4.3.2",
|
|
56
56
|
"@portabletext/schema": "2.1.1",
|
|
57
57
|
"racejar": "2.0.2"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"@portabletext/editor": "^4.2
|
|
60
|
+
"@portabletext/editor": "^4.3.2",
|
|
61
61
|
"react": "^19.2"
|
|
62
62
|
},
|
|
63
63
|
"engines": {
|