@sanity/types 6.16.0 → 6.17.0-next.102
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/lib/index.d.ts +10 -0
- package/package.json +4 -4
package/lib/index.d.ts
CHANGED
|
@@ -815,6 +815,16 @@ interface ArrayOptions<V = unknown> extends SearchConfiguration, BaseSchemaTypeO
|
|
|
815
815
|
* @beta
|
|
816
816
|
*/
|
|
817
817
|
disableActions?: ArrayActionName[];
|
|
818
|
+
/**
|
|
819
|
+
* The number of items to render before the remaining items are collapsed behind a
|
|
820
|
+
* "show all items" toggle. Must be a positive integer, or `false` to always render every item
|
|
821
|
+
* in this array.
|
|
822
|
+
*
|
|
823
|
+
* Overrides the studio-wide `form.arrays.collapseItems` configuration.
|
|
824
|
+
*
|
|
825
|
+
* @beta
|
|
826
|
+
*/
|
|
827
|
+
collapseItemsAfter?: number | false;
|
|
818
828
|
}
|
|
819
829
|
/** @public */
|
|
820
830
|
interface ArrayRule<Value> extends RuleDef<ArrayRule<Value>, Value> {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/types",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.17.0-next.102",
|
|
4
4
|
"description": "Type definitions for common Sanity data structures",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cms",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"./package.json": "./package.json"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@sanity/client": "^8.
|
|
37
|
-
"@sanity/media-library-types": "^1.7.
|
|
36
|
+
"@sanity/client": "^8.7.0",
|
|
37
|
+
"@sanity/media-library-types": "^1.7.1"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@repo/test-config": "6.9.2",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"tsdown": "^0.23.0",
|
|
47
47
|
"typescript": "^7.0.2",
|
|
48
48
|
"vite": "^8.3.0",
|
|
49
|
-
"vitest": "^
|
|
49
|
+
"vitest": "^5.0.1"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"@types/react": "*"
|