@tinacms/schema-tools 0.0.0-c466c52-20250801052040 → 0.0.0-c706b9f-20251222081038

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.
@@ -46,14 +46,50 @@ export declare const tinaConfigZod: z.ZodObject<{
46
46
  indexerToken: z.ZodOptional<z.ZodString>;
47
47
  stopwordLanguages: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
48
48
  tokenSplitRegex: z.ZodOptional<z.ZodString>;
49
+ fuzzyEnabled: z.ZodOptional<z.ZodBoolean>;
50
+ fuzzyOptions: z.ZodOptional<z.ZodObject<{
51
+ maxDistance: z.ZodOptional<z.ZodNumber>;
52
+ minSimilarity: z.ZodOptional<z.ZodNumber>;
53
+ maxResults: z.ZodOptional<z.ZodNumber>;
54
+ useTranspositions: z.ZodOptional<z.ZodBoolean>;
55
+ caseSensitive: z.ZodOptional<z.ZodBoolean>;
56
+ }, "strict", z.ZodTypeAny, {
57
+ maxDistance?: number;
58
+ minSimilarity?: number;
59
+ maxResults?: number;
60
+ useTranspositions?: boolean;
61
+ caseSensitive?: boolean;
62
+ }, {
63
+ maxDistance?: number;
64
+ minSimilarity?: number;
65
+ maxResults?: number;
66
+ useTranspositions?: boolean;
67
+ caseSensitive?: boolean;
68
+ }>>;
49
69
  }, "strict", z.ZodTypeAny, {
50
70
  indexerToken?: string;
51
71
  stopwordLanguages?: [string, ...string[]];
52
72
  tokenSplitRegex?: string;
73
+ fuzzyEnabled?: boolean;
74
+ fuzzyOptions?: {
75
+ maxDistance?: number;
76
+ minSimilarity?: number;
77
+ maxResults?: number;
78
+ useTranspositions?: boolean;
79
+ caseSensitive?: boolean;
80
+ };
53
81
  }, {
54
82
  indexerToken?: string;
55
83
  stopwordLanguages?: [string, ...string[]];
56
84
  tokenSplitRegex?: string;
85
+ fuzzyEnabled?: boolean;
86
+ fuzzyOptions?: {
87
+ maxDistance?: number;
88
+ minSimilarity?: number;
89
+ maxResults?: number;
90
+ useTranspositions?: boolean;
91
+ caseSensitive?: boolean;
92
+ };
57
93
  }>>;
58
94
  searchClient: z.ZodOptional<z.ZodAny>;
59
95
  indexBatchSize: z.ZodOptional<z.ZodNumber>;
@@ -64,6 +100,14 @@ export declare const tinaConfigZod: z.ZodObject<{
64
100
  indexerToken?: string;
65
101
  stopwordLanguages?: [string, ...string[]];
66
102
  tokenSplitRegex?: string;
103
+ fuzzyEnabled?: boolean;
104
+ fuzzyOptions?: {
105
+ maxDistance?: number;
106
+ minSimilarity?: number;
107
+ maxResults?: number;
108
+ useTranspositions?: boolean;
109
+ caseSensitive?: boolean;
110
+ };
67
111
  };
68
112
  searchClient?: any;
69
113
  indexBatchSize?: number;
@@ -73,10 +117,41 @@ export declare const tinaConfigZod: z.ZodObject<{
73
117
  indexerToken?: string;
74
118
  stopwordLanguages?: [string, ...string[]];
75
119
  tokenSplitRegex?: string;
120
+ fuzzyEnabled?: boolean;
121
+ fuzzyOptions?: {
122
+ maxDistance?: number;
123
+ minSimilarity?: number;
124
+ maxResults?: number;
125
+ useTranspositions?: boolean;
126
+ caseSensitive?: boolean;
127
+ };
76
128
  };
77
129
  searchClient?: any;
78
130
  indexBatchSize?: number;
79
131
  }>>;
132
+ ui: z.ZodOptional<z.ZodObject<{
133
+ previewUrl: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>>;
134
+ optOutOfUpdateCheck: z.ZodOptional<z.ZodBoolean>;
135
+ regexValidation: z.ZodOptional<z.ZodObject<{
136
+ folderNameRegex: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
137
+ }, "strip", z.ZodTypeAny, {
138
+ folderNameRegex?: string;
139
+ }, {
140
+ folderNameRegex?: string;
141
+ }>>;
142
+ }, "strip", z.ZodTypeAny, {
143
+ previewUrl?: (...args: unknown[]) => unknown;
144
+ optOutOfUpdateCheck?: boolean;
145
+ regexValidation?: {
146
+ folderNameRegex?: string;
147
+ };
148
+ }, {
149
+ previewUrl?: (...args: unknown[]) => unknown;
150
+ optOutOfUpdateCheck?: boolean;
151
+ regexValidation?: {
152
+ folderNameRegex?: string;
153
+ };
154
+ }>>;
80
155
  }, "strip", z.ZodTypeAny, {
81
156
  search?: {
82
157
  maxSearchIndexFieldLength?: number;
@@ -84,10 +159,25 @@ export declare const tinaConfigZod: z.ZodObject<{
84
159
  indexerToken?: string;
85
160
  stopwordLanguages?: [string, ...string[]];
86
161
  tokenSplitRegex?: string;
162
+ fuzzyEnabled?: boolean;
163
+ fuzzyOptions?: {
164
+ maxDistance?: number;
165
+ minSimilarity?: number;
166
+ maxResults?: number;
167
+ useTranspositions?: boolean;
168
+ caseSensitive?: boolean;
169
+ };
87
170
  };
88
171
  searchClient?: any;
89
172
  indexBatchSize?: number;
90
173
  };
174
+ ui?: {
175
+ previewUrl?: (...args: unknown[]) => unknown;
176
+ optOutOfUpdateCheck?: boolean;
177
+ regexValidation?: {
178
+ folderNameRegex?: string;
179
+ };
180
+ };
91
181
  client?: {
92
182
  referenceDepth?: number;
93
183
  };
@@ -106,10 +196,25 @@ export declare const tinaConfigZod: z.ZodObject<{
106
196
  indexerToken?: string;
107
197
  stopwordLanguages?: [string, ...string[]];
108
198
  tokenSplitRegex?: string;
199
+ fuzzyEnabled?: boolean;
200
+ fuzzyOptions?: {
201
+ maxDistance?: number;
202
+ minSimilarity?: number;
203
+ maxResults?: number;
204
+ useTranspositions?: boolean;
205
+ caseSensitive?: boolean;
206
+ };
109
207
  };
110
208
  searchClient?: any;
111
209
  indexBatchSize?: number;
112
210
  };
211
+ ui?: {
212
+ previewUrl?: (...args: unknown[]) => unknown;
213
+ optOutOfUpdateCheck?: boolean;
214
+ regexValidation?: {
215
+ folderNameRegex?: string;
216
+ };
217
+ };
113
218
  client?: {
114
219
  referenceDepth?: number;
115
220
  };
package/package.json CHANGED
@@ -1,16 +1,9 @@
1
1
  {
2
2
  "name": "@tinacms/schema-tools",
3
- "version": "0.0.0-c466c52-20250801052040",
3
+ "type": "module",
4
+ "version": "0.0.0-c706b9f-20251222081038",
4
5
  "main": "dist/index.js",
5
- "module": "./dist/index.mjs",
6
- "exports": {
7
- ".": {
8
- "types": "./dist/index.d.ts",
9
- "import": "./dist/index.mjs",
10
- "require": "./dist/index.js"
11
- }
12
- },
13
- "typings": "dist/index.d.ts",
6
+ "types": "dist/index.d.ts",
14
7
  "files": [
15
8
  "dist"
16
9
  ],
@@ -26,17 +19,16 @@
26
19
  "@types/jest": "^29.5.14",
27
20
  "@types/micromatch": "^4.0.9",
28
21
  "@types/react": "^18.3.18",
29
- "@types/yup": "^0.29.14",
30
22
  "jest": "^29.7.0",
31
23
  "react": "^18.3.1",
32
24
  "ts-jest": "^29.2.5",
33
25
  "typescript": "^5.7.3",
34
- "yup": "^0.32.11",
35
- "@tinacms/scripts": "1.4.0"
26
+ "yup": "^1.6.1",
27
+ "@tinacms/scripts": "1.4.2"
36
28
  },
37
29
  "peerDependencies": {
38
30
  "react": ">=16.14.0",
39
- "yup": "^0.32.0"
31
+ "yup": "^1.0.0"
40
32
  },
41
33
  "publishConfig": {
42
34
  "registry": "https://registry.npmjs.org"