@tinacms/schema-tools 1.5.0 → 1.6.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 -2
- package/package.json +2 -2
package/dist/types/index.d.ts
CHANGED
|
@@ -158,7 +158,17 @@ export declare type DateTimeField = (FieldGeneric<string, undefined, DateFormatP
|
|
|
158
158
|
export declare type ImageField = (FieldGeneric<string, undefined> | FieldGeneric<string, true> | FieldGeneric<string, false>) & BaseField & {
|
|
159
159
|
type: 'image';
|
|
160
160
|
};
|
|
161
|
-
export declare type ReferenceField = (FieldGeneric<string, undefined
|
|
161
|
+
export declare type ReferenceField = (FieldGeneric<string, undefined, {
|
|
162
|
+
optionComponent?: (props: {
|
|
163
|
+
values: Record<string, unknown>;
|
|
164
|
+
_sys: Document['_sys'];
|
|
165
|
+
}) => Element | undefined;
|
|
166
|
+
}> | FieldGeneric<string, false, {
|
|
167
|
+
optionComponent?: (props: {
|
|
168
|
+
values: Record<string, unknown>;
|
|
169
|
+
_sys: Document['_sys'];
|
|
170
|
+
}) => Element | undefined;
|
|
171
|
+
}>) & BaseField & {
|
|
162
172
|
type: 'reference';
|
|
163
173
|
/**
|
|
164
174
|
* The names of the collections this field can use as a reference
|
|
@@ -175,7 +185,7 @@ export declare type ReferenceField = (FieldGeneric<string, undefined> | FieldGen
|
|
|
175
185
|
export declare type PasswordField = (FieldGeneric<string, undefined> | FieldGeneric<string, false>) & BaseField & {
|
|
176
186
|
type: 'password';
|
|
177
187
|
};
|
|
178
|
-
declare type toolbarItemName = 'heading' | 'link' | 'image' | 'quote' | 'ul' | 'ol' | 'code' | 'codeBlock' | 'bold' | 'italic' | 'raw';
|
|
188
|
+
declare type toolbarItemName = 'heading' | 'link' | 'image' | 'quote' | 'ul' | 'ol' | 'code' | 'codeBlock' | 'bold' | 'italic' | 'raw' | 'embed';
|
|
179
189
|
declare type RichTextAst = {
|
|
180
190
|
type: 'root';
|
|
181
191
|
children: Record<string, unknown>[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinacms/schema-tools",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.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.3",
|
|
33
33
|
"typescript": "4.6.4",
|
|
34
34
|
"yup": "^0.32.0",
|
|
35
|
-
"@tinacms/scripts": "1.
|
|
35
|
+
"@tinacms/scripts": "1.2.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"react": ">=16.14.0",
|