@tinacms/schema-tools 1.6.4 → 1.6.6
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 -1
- 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[];
|
|
@@ -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 & {
|
|
@@ -180,7 +185,7 @@ export type ReferenceField = (FieldGeneric<string, undefined, ReferenceFieldOpti
|
|
|
180
185
|
export type PasswordField = (FieldGeneric<string, undefined> | FieldGeneric<string, false>) & BaseField & {
|
|
181
186
|
type: 'password';
|
|
182
187
|
};
|
|
183
|
-
type toolbarItemName = 'heading' | 'link' | 'image' | 'quote' | 'ul' | 'ol' | 'code' | 'codeBlock' | 'bold' | 'italic' | 'raw' | 'embed';
|
|
188
|
+
type toolbarItemName = 'heading' | 'link' | 'image' | 'quote' | 'ul' | 'ol' | 'code' | 'codeBlock' | 'bold' | 'italic' | 'raw' | 'embed' | 'mermaid';
|
|
184
189
|
type RichTextAst = {
|
|
185
190
|
type: 'root';
|
|
186
191
|
children: Record<string, unknown>[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinacms/schema-tools",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.6",
|
|
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": "1.
|
|
35
|
+
"@tinacms/scripts": "1.3.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"react": ">=16.14.0",
|