@tinacms/schema-tools 1.4.19 → 1.6.0

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.
@@ -175,6 +175,7 @@ export declare type ReferenceField = (FieldGeneric<string, undefined> | FieldGen
175
175
  export declare type PasswordField = (FieldGeneric<string, undefined> | FieldGeneric<string, false>) & BaseField & {
176
176
  type: 'password';
177
177
  };
178
+ declare type toolbarItemName = 'heading' | 'link' | 'image' | 'quote' | 'ul' | 'ol' | 'code' | 'codeBlock' | 'bold' | 'italic' | 'raw' | 'embed';
178
179
  declare type RichTextAst = {
179
180
  type: 'root';
180
181
  children: Record<string, unknown>[];
@@ -187,6 +188,7 @@ export declare type RichTextField<WithNamespace extends boolean = false> = (Fiel
187
188
  * will be stored as frontmatter
188
189
  */
189
190
  isBody?: boolean;
191
+ toolbarOverride?: toolbarItemName[];
190
192
  templates?: RichTextTemplate<WithNamespace>[];
191
193
  /**
192
194
  * By default, Tina parses markdown with MDX, this is a more strict parser
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/schema-tools",
3
- "version": "1.4.19",
3
+ "version": "1.6.0",
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.3",
33
33
  "typescript": "4.6.4",
34
34
  "yup": "^0.32.0",
35
- "@tinacms/scripts": "1.1.6"
35
+ "@tinacms/scripts": "1.2.0"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "react": ">=16.14.0",