@tinacms/schema-tools 1.6.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.
@@ -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> | FieldGeneric<string, false>) & BaseField & {
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/schema-tools",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "main": "dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "exports": {