@tinacms/schema-tools 0.0.0-c1132cd-20241024060747 → 0.0.0-c19d29e-20251224001156

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.
@@ -1,38 +1,35 @@
1
- /**
2
-
3
- */
4
1
  import { z } from 'zod';
5
2
  export declare const CollectionBaseSchema: z.ZodObject<{
6
3
  label: z.ZodOptional<z.ZodString>;
7
4
  name: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
8
5
  path: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
9
- format: z.ZodOptional<z.ZodEnum<["json", "md", "markdown", "mdx", "toml", "yaml", "yml"]>>;
6
+ format: z.ZodOptional<z.ZodEnum<["mdx", "md", "markdown", "json", "yaml", "yml", "toml"]>>;
10
7
  isAuthCollection: z.ZodOptional<z.ZodBoolean>;
11
8
  isDetached: z.ZodOptional<z.ZodBoolean>;
12
9
  }, "strip", z.ZodTypeAny, {
13
10
  name?: string;
14
11
  label?: string;
15
12
  path?: string;
16
- format?: "markdown" | "mdx" | "json" | "md" | "yaml" | "yml" | "toml";
13
+ format?: "mdx" | "md" | "markdown" | "json" | "yaml" | "yml" | "toml";
17
14
  isDetached?: boolean;
18
15
  isAuthCollection?: boolean;
19
16
  }, {
20
17
  name?: string;
21
18
  label?: string;
22
19
  path?: string;
23
- format?: "markdown" | "mdx" | "json" | "md" | "yaml" | "yml" | "toml";
20
+ format?: "mdx" | "md" | "markdown" | "json" | "yaml" | "yml" | "toml";
24
21
  isDetached?: boolean;
25
22
  isAuthCollection?: boolean;
26
23
  }>;
27
24
  export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
28
- collections: z.ZodArray<z.ZodEffects<z.ZodObject<z.objectUtil.extendShape<{
25
+ collections: z.ZodArray<z.ZodEffects<z.ZodObject<{
29
26
  label: z.ZodOptional<z.ZodString>;
30
27
  name: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
31
28
  path: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
32
- format: z.ZodOptional<z.ZodEnum<["json", "md", "markdown", "mdx", "toml", "yaml", "yml"]>>;
29
+ format: z.ZodOptional<z.ZodEnum<["mdx", "md", "markdown", "json", "yaml", "yml", "toml"]>>;
33
30
  isAuthCollection: z.ZodOptional<z.ZodBoolean>;
34
31
  isDetached: z.ZodOptional<z.ZodBoolean>;
35
- }, {
32
+ } & {
36
33
  fields: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodType<import("..").TinaField, z.ZodTypeDef, import("..").TinaField>, "many">>, import("..").TinaField[], import("..").TinaField[]>, import("..").TinaField[], import("..").TinaField[]>, import("..").TinaField[], import("..").TinaField[]>, import("..").TinaField[], import("..").TinaField[]>;
37
34
  templates: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
38
35
  label: z.ZodString;
@@ -63,7 +60,7 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
63
60
  fields?: import("..").TinaField[];
64
61
  label?: string;
65
62
  }[]>;
66
- }>, "strip", z.ZodTypeAny, {
63
+ }, "strip", z.ZodTypeAny, {
67
64
  name?: string;
68
65
  templates?: {
69
66
  name?: string;
@@ -73,7 +70,7 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
73
70
  fields?: import("..").TinaField[];
74
71
  label?: string;
75
72
  path?: string;
76
- format?: "markdown" | "mdx" | "json" | "md" | "yaml" | "yml" | "toml";
73
+ format?: "mdx" | "md" | "markdown" | "json" | "yaml" | "yml" | "toml";
77
74
  isDetached?: boolean;
78
75
  isAuthCollection?: boolean;
79
76
  }, {
@@ -86,7 +83,7 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
86
83
  fields?: import("..").TinaField[];
87
84
  label?: string;
88
85
  path?: string;
89
- format?: "markdown" | "mdx" | "json" | "md" | "yaml" | "yml" | "toml";
86
+ format?: "mdx" | "md" | "markdown" | "json" | "yaml" | "yml" | "toml";
90
87
  isDetached?: boolean;
91
88
  isAuthCollection?: boolean;
92
89
  }>, {
@@ -99,7 +96,7 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
99
96
  fields?: import("..").TinaField[];
100
97
  label?: string;
101
98
  path?: string;
102
- format?: "markdown" | "mdx" | "json" | "md" | "yaml" | "yml" | "toml";
99
+ format?: "mdx" | "md" | "markdown" | "json" | "yaml" | "yml" | "toml";
103
100
  isDetached?: boolean;
104
101
  isAuthCollection?: boolean;
105
102
  }, {
@@ -112,7 +109,7 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
112
109
  fields?: import("..").TinaField[];
113
110
  label?: string;
114
111
  path?: string;
115
- format?: "markdown" | "mdx" | "json" | "md" | "yaml" | "yml" | "toml";
112
+ format?: "mdx" | "md" | "markdown" | "json" | "yaml" | "yml" | "toml";
116
113
  isDetached?: boolean;
117
114
  isAuthCollection?: boolean;
118
115
  }>, "many">;
@@ -159,14 +156,50 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
159
156
  indexerToken: z.ZodOptional<z.ZodString>;
160
157
  stopwordLanguages: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
161
158
  tokenSplitRegex: z.ZodOptional<z.ZodString>;
159
+ fuzzyEnabled: z.ZodOptional<z.ZodBoolean>;
160
+ fuzzyOptions: z.ZodOptional<z.ZodObject<{
161
+ maxDistance: z.ZodOptional<z.ZodNumber>;
162
+ minSimilarity: z.ZodOptional<z.ZodNumber>;
163
+ maxResults: z.ZodOptional<z.ZodNumber>;
164
+ useTranspositions: z.ZodOptional<z.ZodBoolean>;
165
+ caseSensitive: z.ZodOptional<z.ZodBoolean>;
166
+ }, "strict", z.ZodTypeAny, {
167
+ maxDistance?: number;
168
+ minSimilarity?: number;
169
+ maxResults?: number;
170
+ useTranspositions?: boolean;
171
+ caseSensitive?: boolean;
172
+ }, {
173
+ maxDistance?: number;
174
+ minSimilarity?: number;
175
+ maxResults?: number;
176
+ useTranspositions?: boolean;
177
+ caseSensitive?: boolean;
178
+ }>>;
162
179
  }, "strict", z.ZodTypeAny, {
163
180
  indexerToken?: string;
164
181
  stopwordLanguages?: [string, ...string[]];
165
182
  tokenSplitRegex?: string;
183
+ fuzzyEnabled?: boolean;
184
+ fuzzyOptions?: {
185
+ maxDistance?: number;
186
+ minSimilarity?: number;
187
+ maxResults?: number;
188
+ useTranspositions?: boolean;
189
+ caseSensitive?: boolean;
190
+ };
166
191
  }, {
167
192
  indexerToken?: string;
168
193
  stopwordLanguages?: [string, ...string[]];
169
194
  tokenSplitRegex?: string;
195
+ fuzzyEnabled?: boolean;
196
+ fuzzyOptions?: {
197
+ maxDistance?: number;
198
+ minSimilarity?: number;
199
+ maxResults?: number;
200
+ useTranspositions?: boolean;
201
+ caseSensitive?: boolean;
202
+ };
170
203
  }>>;
171
204
  searchClient: z.ZodOptional<z.ZodAny>;
172
205
  indexBatchSize: z.ZodOptional<z.ZodNumber>;
@@ -177,6 +210,14 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
177
210
  indexerToken?: string;
178
211
  stopwordLanguages?: [string, ...string[]];
179
212
  tokenSplitRegex?: string;
213
+ fuzzyEnabled?: boolean;
214
+ fuzzyOptions?: {
215
+ maxDistance?: number;
216
+ minSimilarity?: number;
217
+ maxResults?: number;
218
+ useTranspositions?: boolean;
219
+ caseSensitive?: boolean;
220
+ };
180
221
  };
181
222
  searchClient?: any;
182
223
  indexBatchSize?: number;
@@ -186,10 +227,41 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
186
227
  indexerToken?: string;
187
228
  stopwordLanguages?: [string, ...string[]];
188
229
  tokenSplitRegex?: string;
230
+ fuzzyEnabled?: boolean;
231
+ fuzzyOptions?: {
232
+ maxDistance?: number;
233
+ minSimilarity?: number;
234
+ maxResults?: number;
235
+ useTranspositions?: boolean;
236
+ caseSensitive?: boolean;
237
+ };
189
238
  };
190
239
  searchClient?: any;
191
240
  indexBatchSize?: number;
192
241
  }>>;
242
+ ui: z.ZodOptional<z.ZodObject<{
243
+ previewUrl: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>>;
244
+ optOutOfUpdateCheck: z.ZodOptional<z.ZodBoolean>;
245
+ regexValidation: z.ZodOptional<z.ZodObject<{
246
+ folderNameRegex: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
247
+ }, "strip", z.ZodTypeAny, {
248
+ folderNameRegex?: string;
249
+ }, {
250
+ folderNameRegex?: string;
251
+ }>>;
252
+ }, "strip", z.ZodTypeAny, {
253
+ previewUrl?: (...args: unknown[]) => unknown;
254
+ optOutOfUpdateCheck?: boolean;
255
+ regexValidation?: {
256
+ folderNameRegex?: string;
257
+ };
258
+ }, {
259
+ previewUrl?: (...args: unknown[]) => unknown;
260
+ optOutOfUpdateCheck?: boolean;
261
+ regexValidation?: {
262
+ folderNameRegex?: string;
263
+ };
264
+ }>>;
193
265
  }, "strip", z.ZodTypeAny, {
194
266
  search?: {
195
267
  maxSearchIndexFieldLength?: number;
@@ -197,10 +269,25 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
197
269
  indexerToken?: string;
198
270
  stopwordLanguages?: [string, ...string[]];
199
271
  tokenSplitRegex?: string;
272
+ fuzzyEnabled?: boolean;
273
+ fuzzyOptions?: {
274
+ maxDistance?: number;
275
+ minSimilarity?: number;
276
+ maxResults?: number;
277
+ useTranspositions?: boolean;
278
+ caseSensitive?: boolean;
279
+ };
200
280
  };
201
281
  searchClient?: any;
202
282
  indexBatchSize?: number;
203
283
  };
284
+ ui?: {
285
+ previewUrl?: (...args: unknown[]) => unknown;
286
+ optOutOfUpdateCheck?: boolean;
287
+ regexValidation?: {
288
+ folderNameRegex?: string;
289
+ };
290
+ };
204
291
  client?: {
205
292
  referenceDepth?: number;
206
293
  };
@@ -219,10 +306,25 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
219
306
  indexerToken?: string;
220
307
  stopwordLanguages?: [string, ...string[]];
221
308
  tokenSplitRegex?: string;
309
+ fuzzyEnabled?: boolean;
310
+ fuzzyOptions?: {
311
+ maxDistance?: number;
312
+ minSimilarity?: number;
313
+ maxResults?: number;
314
+ useTranspositions?: boolean;
315
+ caseSensitive?: boolean;
316
+ };
222
317
  };
223
318
  searchClient?: any;
224
319
  indexBatchSize?: number;
225
320
  };
321
+ ui?: {
322
+ previewUrl?: (...args: unknown[]) => unknown;
323
+ optOutOfUpdateCheck?: boolean;
324
+ regexValidation?: {
325
+ folderNameRegex?: string;
326
+ };
327
+ };
226
328
  client?: {
227
329
  referenceDepth?: number;
228
330
  };
@@ -246,7 +348,7 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
246
348
  fields?: import("..").TinaField[];
247
349
  label?: string;
248
350
  path?: string;
249
- format?: "markdown" | "mdx" | "json" | "md" | "yaml" | "yml" | "toml";
351
+ format?: "mdx" | "md" | "markdown" | "json" | "yaml" | "yml" | "toml";
250
352
  isDetached?: boolean;
251
353
  isAuthCollection?: boolean;
252
354
  }[];
@@ -257,10 +359,25 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
257
359
  indexerToken?: string;
258
360
  stopwordLanguages?: [string, ...string[]];
259
361
  tokenSplitRegex?: string;
362
+ fuzzyEnabled?: boolean;
363
+ fuzzyOptions?: {
364
+ maxDistance?: number;
365
+ minSimilarity?: number;
366
+ maxResults?: number;
367
+ useTranspositions?: boolean;
368
+ caseSensitive?: boolean;
369
+ };
260
370
  };
261
371
  searchClient?: any;
262
372
  indexBatchSize?: number;
263
373
  };
374
+ ui?: {
375
+ previewUrl?: (...args: unknown[]) => unknown;
376
+ optOutOfUpdateCheck?: boolean;
377
+ regexValidation?: {
378
+ folderNameRegex?: string;
379
+ };
380
+ };
264
381
  client?: {
265
382
  referenceDepth?: number;
266
383
  };
@@ -284,7 +401,7 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
284
401
  fields?: import("..").TinaField[];
285
402
  label?: string;
286
403
  path?: string;
287
- format?: "markdown" | "mdx" | "json" | "md" | "yaml" | "yml" | "toml";
404
+ format?: "mdx" | "md" | "markdown" | "json" | "yaml" | "yml" | "toml";
288
405
  isDetached?: boolean;
289
406
  isAuthCollection?: boolean;
290
407
  }[];
@@ -295,10 +412,25 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
295
412
  indexerToken?: string;
296
413
  stopwordLanguages?: [string, ...string[]];
297
414
  tokenSplitRegex?: string;
415
+ fuzzyEnabled?: boolean;
416
+ fuzzyOptions?: {
417
+ maxDistance?: number;
418
+ minSimilarity?: number;
419
+ maxResults?: number;
420
+ useTranspositions?: boolean;
421
+ caseSensitive?: boolean;
422
+ };
298
423
  };
299
424
  searchClient?: any;
300
425
  indexBatchSize?: number;
301
426
  };
427
+ ui?: {
428
+ previewUrl?: (...args: unknown[]) => unknown;
429
+ optOutOfUpdateCheck?: boolean;
430
+ regexValidation?: {
431
+ folderNameRegex?: string;
432
+ };
433
+ };
302
434
  client?: {
303
435
  referenceDepth?: number;
304
436
  };
@@ -322,7 +454,7 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
322
454
  fields?: import("..").TinaField[];
323
455
  label?: string;
324
456
  path?: string;
325
- format?: "markdown" | "mdx" | "json" | "md" | "yaml" | "yml" | "toml";
457
+ format?: "mdx" | "md" | "markdown" | "json" | "yaml" | "yml" | "toml";
326
458
  isDetached?: boolean;
327
459
  isAuthCollection?: boolean;
328
460
  }[];
@@ -333,10 +465,25 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
333
465
  indexerToken?: string;
334
466
  stopwordLanguages?: [string, ...string[]];
335
467
  tokenSplitRegex?: string;
468
+ fuzzyEnabled?: boolean;
469
+ fuzzyOptions?: {
470
+ maxDistance?: number;
471
+ minSimilarity?: number;
472
+ maxResults?: number;
473
+ useTranspositions?: boolean;
474
+ caseSensitive?: boolean;
475
+ };
336
476
  };
337
477
  searchClient?: any;
338
478
  indexBatchSize?: number;
339
479
  };
480
+ ui?: {
481
+ previewUrl?: (...args: unknown[]) => unknown;
482
+ optOutOfUpdateCheck?: boolean;
483
+ regexValidation?: {
484
+ folderNameRegex?: string;
485
+ };
486
+ };
340
487
  client?: {
341
488
  referenceDepth?: number;
342
489
  };
@@ -360,7 +507,7 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
360
507
  fields?: import("..").TinaField[];
361
508
  label?: string;
362
509
  path?: string;
363
- format?: "markdown" | "mdx" | "json" | "md" | "yaml" | "yml" | "toml";
510
+ format?: "mdx" | "md" | "markdown" | "json" | "yaml" | "yml" | "toml";
364
511
  isDetached?: boolean;
365
512
  isAuthCollection?: boolean;
366
513
  }[];
@@ -371,10 +518,25 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
371
518
  indexerToken?: string;
372
519
  stopwordLanguages?: [string, ...string[]];
373
520
  tokenSplitRegex?: string;
521
+ fuzzyEnabled?: boolean;
522
+ fuzzyOptions?: {
523
+ maxDistance?: number;
524
+ minSimilarity?: number;
525
+ maxResults?: number;
526
+ useTranspositions?: boolean;
527
+ caseSensitive?: boolean;
528
+ };
374
529
  };
375
530
  searchClient?: any;
376
531
  indexBatchSize?: number;
377
532
  };
533
+ ui?: {
534
+ previewUrl?: (...args: unknown[]) => unknown;
535
+ optOutOfUpdateCheck?: boolean;
536
+ regexValidation?: {
537
+ folderNameRegex?: string;
538
+ };
539
+ };
378
540
  client?: {
379
541
  referenceDepth?: number;
380
542
  };
@@ -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
  };
@@ -0,0 +1,3 @@
1
+ export declare const duplicateFieldErrorMessage: (fields: string) => string;
2
+ export declare const duplicateTemplateErrorMessage: (templates: string) => string;
3
+ export declare const duplicateCollectionErrorMessage: (collection: string) => string;
package/package.json CHANGED
@@ -1,16 +1,9 @@
1
1
  {
2
2
  "name": "@tinacms/schema-tools",
3
- "version": "0.0.0-c1132cd-20241024060747",
3
+ "type": "module",
4
+ "version": "0.0.0-c19d29e-20251224001156",
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
  ],
@@ -23,20 +16,19 @@
23
16
  ]
24
17
  },
25
18
  "devDependencies": {
26
- "@types/jest": "^29.5.13",
19
+ "@types/jest": "^29.5.14",
27
20
  "@types/micromatch": "^4.0.9",
28
- "@types/react": "^18.3.10",
29
- "@types/yup": "^0.29.14",
21
+ "@types/react": "^18.3.18",
30
22
  "jest": "^29.7.0",
31
23
  "react": "^18.3.1",
32
24
  "ts-jest": "^29.2.5",
33
- "typescript": "^5.6.2",
34
- "yup": "^0.32.11",
35
- "@tinacms/scripts": "1.3.0"
25
+ "typescript": "^5.7.3",
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"
@@ -48,7 +40,7 @@
48
40
  "dependencies": {
49
41
  "picomatch-browser": "2.2.6",
50
42
  "url-pattern": "^1.0.3",
51
- "zod": "^3.23.8"
43
+ "zod": "^3.24.2"
52
44
  },
53
45
  "scripts": {
54
46
  "build": "tinacms-scripts build",