sanity-plugin-tags-v4 1.0.2 → 1.0.3
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 +13 -0
- package/dist/_chunks/{index-39ffbf99.js → index-61238766.js} +3 -3
- package/dist/_chunks/{index-39ffbf99.js.map → index-61238766.js.map} +1 -1
- package/dist/_chunks/{index-0d3b6a49.js → index-c15a999d.js} +3 -3
- package/dist/_chunks/{index-0d3b6a49.js.map → index-c15a999d.js.map} +1 -1
- package/dist/_chunks/{refractor-3fc841f1.js → refractor-86048b8b.js} +2 -2
- package/dist/_chunks/{refractor-3fc841f1.js.map → refractor-86048b8b.js.map} +1 -1
- package/dist/_chunks/{refractor-98955a2b.js → refractor-f8900171.js} +2 -2
- package/dist/_chunks/{refractor-98955a2b.js.map → refractor-f8900171.js.map} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +4 -1
- package/src/utils/observables.ts +2 -2
package/README.md
CHANGED
|
@@ -128,6 +128,19 @@ If you already have a sanity schema that contains a tag-like structure and want
|
|
|
128
128
|
}
|
|
129
129
|
```
|
|
130
130
|
|
|
131
|
+
To use the title and slug fields from the referenced schema type, set the custom field mappings:
|
|
132
|
+
```javascript
|
|
133
|
+
{
|
|
134
|
+
// ...
|
|
135
|
+
customLabel: 'title'
|
|
136
|
+
customValue: 'slug'
|
|
137
|
+
// ...
|
|
138
|
+
}
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
The plugin automatically handles slug objects by extracting the `.current` value, so you can use `'slug'` directly.
|
|
142
|
+
|
|
143
|
+
|
|
131
144
|
### includeFromRelated
|
|
132
145
|
|
|
133
146
|
`default: false`
|