@tinacms/schema-tools 1.4.19 → 1.5.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.
- package/dist/types/index.d.ts +2 -0
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -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';
|
|
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
|