@tinacms/schema-tools 1.6.1 → 1.6.2
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 +6 -11
- package/package.json +2 -2
package/dist/types/index.d.ts
CHANGED
|
@@ -158,17 +158,12 @@ 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
|
-
|
|
162
|
-
optionComponent?:
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
optionComponent?: (props: {
|
|
168
|
-
values: Record<string, unknown>;
|
|
169
|
-
_sys: Document['_sys'];
|
|
170
|
-
}) => Element | undefined;
|
|
171
|
-
}>) & BaseField & {
|
|
161
|
+
declare type ReferenceFieldOptions = {
|
|
162
|
+
optionComponent?: OptionComponent;
|
|
163
|
+
experimental___filter?: (list: Array<any>, searchQuery: string) => Array<any>;
|
|
164
|
+
};
|
|
165
|
+
declare type OptionComponent<P = Record<string, unknown>, S = Document['_sys']> = (props: P, _internalSys: S) => React.ReactNode | Element | undefined;
|
|
166
|
+
export declare type ReferenceField = (FieldGeneric<string, undefined, ReferenceFieldOptions> | FieldGeneric<string, false, ReferenceFieldOptions>) & BaseField & {
|
|
172
167
|
type: 'reference';
|
|
173
168
|
/**
|
|
174
169
|
* The names of the collections this field can use as a reference
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinacms/schema-tools",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.2",
|
|
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.2.
|
|
35
|
+
"@tinacms/scripts": "1.2.1"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"react": ">=16.14.0",
|