@tinacms/schema-tools 1.6.3 → 1.6.5
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 +5 -0
- package/package.json +10 -10
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[];
|
|
@@ -160,7 +161,11 @@ export type ImageField = (FieldGeneric<string, undefined> | FieldGeneric<string,
|
|
|
160
161
|
};
|
|
161
162
|
type ReferenceFieldOptions = {
|
|
162
163
|
optionComponent?: OptionComponent;
|
|
164
|
+
/**
|
|
165
|
+
* @deprecated use `collectionFilter` instead as experimental___Filter will be removed in a future release
|
|
166
|
+
*/
|
|
163
167
|
experimental___filter?: (list: Array<any>, searchQuery: string) => Array<any>;
|
|
168
|
+
collectionFilter?: Record<string, Record<string, FilterValue>> | (() => Record<string, Record<string, FilterValue>>);
|
|
164
169
|
};
|
|
165
170
|
type OptionComponent<P = Record<string, unknown>, S = Document['_sys']> = (props: P, _internalSys: S) => React.ReactNode | Element | undefined;
|
|
166
171
|
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": "1.6.
|
|
3
|
+
"version": "1.6.5",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"exports": {
|
|
@@ -23,16 +23,16 @@
|
|
|
23
23
|
]
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@types/jest": "^29.5.
|
|
27
|
-
"@types/micromatch": "^4.0.
|
|
28
|
-
"@types/react": "^18.3.
|
|
29
|
-
"@types/yup": "^0.29.
|
|
30
|
-
"jest": "^29.
|
|
26
|
+
"@types/jest": "^29.5.13",
|
|
27
|
+
"@types/micromatch": "^4.0.9",
|
|
28
|
+
"@types/react": "^18.3.10",
|
|
29
|
+
"@types/yup": "^0.29.14",
|
|
30
|
+
"jest": "^29.7.0",
|
|
31
31
|
"react": "^18.3.1",
|
|
32
|
-
"ts-jest": "^29.2.
|
|
32
|
+
"ts-jest": "^29.2.5",
|
|
33
33
|
"typescript": "^5.6.2",
|
|
34
|
-
"yup": "^0.32.
|
|
35
|
-
"@tinacms/scripts": "1.2.
|
|
34
|
+
"yup": "^0.32.11",
|
|
35
|
+
"@tinacms/scripts": "1.2.3"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"react": ">=16.14.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"picomatch-browser": "2.2.6",
|
|
50
50
|
"url-pattern": "^1.0.3",
|
|
51
|
-
"zod": "^3.
|
|
51
|
+
"zod": "^3.23.8"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"build": "tinacms-scripts build",
|