@tinacms/schema-tools 1.9.0 → 1.9.1
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/dist/types/index.d.ts +12 -1
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -129,6 +129,11 @@ export type UIField<Type, List extends boolean> = {
|
|
|
129
129
|
type FieldGeneric<Type, List extends boolean | undefined, ExtraFieldUIProps = {}> = List extends true ? {
|
|
130
130
|
list: true;
|
|
131
131
|
ui?: UIField<Type, true> & ExtraFieldUIProps;
|
|
132
|
+
/**
|
|
133
|
+
* Defines where new items will be added in the list.
|
|
134
|
+
* If not specified, defaults to `append`.
|
|
135
|
+
*/
|
|
136
|
+
addItemBehavior?: 'append' | 'prepend';
|
|
132
137
|
} : List extends false ? {
|
|
133
138
|
list?: false;
|
|
134
139
|
ui?: UIField<Type, false> & ExtraFieldUIProps;
|
|
@@ -423,11 +428,17 @@ export interface Config<CMSCallback = undefined, FormifyCallback = undefined, Do
|
|
|
423
428
|
* ```
|
|
424
429
|
* [more info](https://vercel.com/docs/concepts/deployments/generated-urls#url-with-git-branch)
|
|
425
430
|
*/
|
|
426
|
-
previewUrl
|
|
431
|
+
previewUrl?: (context: {
|
|
427
432
|
branch: string;
|
|
428
433
|
}) => {
|
|
429
434
|
url: string;
|
|
430
435
|
};
|
|
436
|
+
/**
|
|
437
|
+
* Opt out of update checks - this will prevent the CMS for checking for new versions
|
|
438
|
+
* If true, the CMS will not check for updates.
|
|
439
|
+
* Defaults to false if not specified.
|
|
440
|
+
*/
|
|
441
|
+
optOutOfUpdateCheck?: boolean;
|
|
431
442
|
};
|
|
432
443
|
/**
|
|
433
444
|
* Configurations for the autogenerated GraphQL HTTP client
|