@tinacms/schema-tools 1.8.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.
@@ -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: (context: {
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/schema-tools",
3
- "version": "1.8.0",
3
+ "version": "1.9.1",
4
4
  "main": "dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "exports": {
@@ -32,7 +32,7 @@
32
32
  "ts-jest": "^29.2.5",
33
33
  "typescript": "^5.7.3",
34
34
  "yup": "^0.32.11",
35
- "@tinacms/scripts": "1.3.5"
35
+ "@tinacms/scripts": "1.4.0"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "react": ">=16.14.0",