sanity-plugin-tags-v4 1.0.3 → 1.0.6
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 +25 -5
- package/dist/_chunks/{index-c15a999d.js → index-2165dd09.js} +905 -817
- package/dist/_chunks/index-2165dd09.js.map +1 -0
- package/dist/_chunks/{index-61238766.js → index-8ec314f1.js} +905 -817
- package/dist/_chunks/index-8ec314f1.js.map +1 -0
- package/dist/_chunks/{refractor-f8900171.js → refractor-44595dc0.js} +9 -8
- package/dist/_chunks/refractor-44595dc0.js.map +1 -0
- package/dist/_chunks/{refractor-86048b8b.js → refractor-86932f9e.js} +9 -8
- package/dist/_chunks/refractor-86932f9e.js.map +1 -0
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +22 -21
- package/src/components/ReferenceWarnings.tsx +3 -3
- package/src/components/TagsInput.tsx +53 -27
- package/src/index.ts +2 -1
- package/src/schemas/tag.ts +1 -0
- package/src/schemas/tags.ts +1 -0
- package/src/types.ts +5 -5
- package/src/utils/client.ts +1 -1
- package/src/utils/helpers.ts +5 -5
- package/src/utils/hooks.ts +1 -0
- package/src/utils/mutators.ts +44 -22
- package/src/utils/observables.ts +14 -11
- package/dist/_chunks/index-61238766.js.map +0 -1
- package/dist/_chunks/index-c15a999d.js.map +0 -1
- package/dist/_chunks/refractor-86048b8b.js.map +0 -1
- package/dist/_chunks/refractor-f8900171.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# sanity-
|
|
1
|
+
# sanity-plugin-tags-v4
|
|
2
2
|
|
|
3
|
-
> This is a **Sanity Studio
|
|
3
|
+
> This is a **Sanity Studio v5** plugin with **React 19** support.
|
|
4
4
|
|
|
5
5
|
A multi-tag input for sanity studio. Fully featured with autocomplete capabilities, live updates, predefined tag options, style and component customizability, and much more.
|
|
6
6
|
|
|
@@ -8,8 +8,8 @@ A multi-tag input for sanity studio. Fully featured with autocomplete capabiliti
|
|
|
8
8
|
|
|
9
9
|
## Install
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
Sanity v4: `npm install sanity-plugin-tags-
|
|
11
|
+
Sanity v5 (React 19): `npm install sanity-plugin-tags-v4`
|
|
12
|
+
Sanity v4: `npm install sanity-plugin-tags-v3`
|
|
13
13
|
Sanity v3: `npm install sanity-plugin-tags`
|
|
14
14
|
Sanity v2: `sanity install tags`
|
|
15
15
|
|
|
@@ -258,7 +258,27 @@ If you want to override React Select's components see [Parts](#parts) for more i
|
|
|
258
258
|
|
|
259
259
|
## Develop & test
|
|
260
260
|
|
|
261
|
-
##
|
|
261
|
+
## Requirements
|
|
262
|
+
|
|
263
|
+
- **Node.js**: >= 18
|
|
264
|
+
- **Sanity Studio**: >= v5.5.0
|
|
265
|
+
- **React**: >= 19.0
|
|
266
|
+
- **React DOM**: >= 19.0
|
|
267
|
+
|
|
268
|
+
## Compatibility
|
|
269
|
+
|
|
270
|
+
This plugin is fully compatible with:
|
|
271
|
+
- **Sanity Studio v5** with all its latest features
|
|
272
|
+
- **React 19** including the new improvements and hook optimizations
|
|
273
|
+
- **TypeScript 5.2+** for better type safety
|
|
274
|
+
|
|
275
|
+
## React 19 Features
|
|
276
|
+
|
|
277
|
+
This plugin takes advantage of React 19 improvements:
|
|
278
|
+
- Enhanced hook dependency tracking
|
|
279
|
+
- Improved re-render optimization
|
|
280
|
+
- Better error boundaries
|
|
281
|
+
- Modern async component patterns via observables
|
|
262
282
|
|
|
263
283
|
I love feedback, and any help is appreciated! Feel free to install the plugin, submit an issue, or open a PR.
|
|
264
284
|
|