@tinacms/schema-tools 0.0.0-4753c9b-20241001080459 → 0.0.0-c8b1d84-20241003015733
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 +2 -2
package/dist/types/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ type Meta = {
|
|
|
5
5
|
dirty?: boolean;
|
|
6
6
|
error?: any;
|
|
7
7
|
};
|
|
8
|
+
type FilterValue = string[] | string;
|
|
8
9
|
type Component<Type, List> = (props: {
|
|
9
10
|
field: TinaField & {
|
|
10
11
|
namespace: string[];
|
|
@@ -161,6 +162,7 @@ export type ImageField = (FieldGeneric<string, undefined> | FieldGeneric<string,
|
|
|
161
162
|
type ReferenceFieldOptions = {
|
|
162
163
|
optionComponent?: OptionComponent;
|
|
163
164
|
experimental___filter?: (list: Array<any>, searchQuery: string) => Array<any>;
|
|
165
|
+
collectionFilter?: Record<string, Record<string, FilterValue>> | (() => Record<string, Record<string, FilterValue>>);
|
|
164
166
|
};
|
|
165
167
|
type OptionComponent<P = Record<string, unknown>, S = Document['_sys']> = (props: P, _internalSys: S) => React.ReactNode | Element | undefined;
|
|
166
168
|
export type ReferenceField = (FieldGeneric<string, undefined, ReferenceFieldOptions> | FieldGeneric<string, false, ReferenceFieldOptions>) & BaseField & {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinacms/schema-tools",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-c8b1d84-20241003015733",
|
|
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.5",
|
|
33
33
|
"typescript": "^5.6.2",
|
|
34
34
|
"yup": "^0.32.11",
|
|
35
|
-
"@tinacms/scripts": "
|
|
35
|
+
"@tinacms/scripts": "1.2.3"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"react": ">=16.14.0",
|