@tinacms/schema-tools 0.0.0-be4681c-20250619070932 → 0.0.0-bebaba8-20251211002320

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.
@@ -13,7 +13,7 @@ export declare const resolveForm: ({ collection, basename, template, schema, }:
13
13
  fields: {
14
14
  [key: string]: unknown;
15
15
  name: string;
16
- component: NonNullable<import("../types/index").TinaField<true>["ui"]>["component"];
16
+ component: NonNullable<import("..").TinaField<true>["ui"]>["component"];
17
17
  type: string;
18
18
  }[];
19
19
  };
@@ -125,10 +125,35 @@ export type UIField<Type, List extends boolean> = {
125
125
  * @deprecated use `defaultItem` at the collection level instead
126
126
  */
127
127
  defaultValue?: List extends true ? Type[] : Type;
128
+ /**
129
+ * The color format for the color picker component.
130
+ * Can be 'hex' or 'rgb'.
131
+ */
132
+ colorFormat?: 'hex' | 'rgb';
133
+ /**
134
+ * The widget style for the color picker component.
135
+ * Can be 'sketch' or 'block'.
136
+ */
137
+ widget?: 'sketch' | 'block';
138
+ /**
139
+ * The width of the color picker component.
140
+ * Accepts CSS width values (e.g., '350px').
141
+ */
142
+ width?: string;
143
+ /**
144
+ * Preset colors for the color picker component.
145
+ * An array of color strings (e.g., ['#D0021B', '#F5A623']).
146
+ */
147
+ colors?: string[];
128
148
  };
129
149
  type FieldGeneric<Type, List extends boolean | undefined, ExtraFieldUIProps = {}> = List extends true ? {
130
150
  list: true;
131
151
  ui?: UIField<Type, true> & ExtraFieldUIProps;
152
+ /**
153
+ * Defines where new items will be added in the list.
154
+ * If not specified, defaults to `append`.
155
+ */
156
+ addItemBehavior?: 'append' | 'prepend';
132
157
  } : List extends false ? {
133
158
  list?: false;
134
159
  ui?: UIField<Type, false> & ExtraFieldUIProps;
@@ -168,14 +193,24 @@ type DateFormatProps = {
168
193
  * dateFormat: 'YYYY MM DD'
169
194
  * ```
170
195
  */
171
- dateFormat?: string;
172
- timeFormat?: string;
196
+ dateFormat?: string | boolean;
197
+ timeFormat?: string | boolean;
173
198
  };
174
199
  export type DateTimeField = (FieldGeneric<string, undefined, DateFormatProps> | FieldGeneric<string, true, DateFormatProps> | FieldGeneric<string, false, DateFormatProps>) & BaseField & {
175
200
  type: 'datetime';
176
201
  };
177
202
  export type ImageField = (FieldGeneric<string, undefined> | FieldGeneric<string, true> | FieldGeneric<string, false>) & BaseField & {
178
203
  type: 'image';
204
+ /**
205
+ * A function that returns the upload directory path based on the form values.
206
+ * This is used to organize uploaded images into specific folders.
207
+ *
208
+ * @example
209
+ * ```ts
210
+ * uploadDir: (formValues) => `uploads/${formValues.category}`
211
+ * ```
212
+ */
213
+ uploadDir?: (formValues: Record<string, any>) => string;
179
214
  };
180
215
  type ReferenceFieldOptions = {
181
216
  optionComponent?: OptionComponent;
@@ -386,7 +421,7 @@ export interface Config<CMSCallback = undefined, FormifyCallback = undefined, Do
386
421
  /**
387
422
  * The Schema is used to define the shape of the content.
388
423
  *
389
- * https://tina.io/docs/reference/schema/
424
+ * https://tina.io/docs/r/the-config-file/
390
425
  */
391
426
  schema: Schema;
392
427
  /**
@@ -423,11 +458,27 @@ export interface Config<CMSCallback = undefined, FormifyCallback = undefined, Do
423
458
  * ```
424
459
  * [more info](https://vercel.com/docs/concepts/deployments/generated-urls#url-with-git-branch)
425
460
  */
426
- previewUrl: (context: {
461
+ previewUrl?: (context: {
427
462
  branch: string;
428
463
  }) => {
429
464
  url: string;
430
465
  };
466
+ /**
467
+ * Opt out of update checks - this will prevent the CMS for checking for new versions
468
+ * If true, the CMS will not check for updates.
469
+ * Defaults to false if not specified.
470
+ */
471
+ optOutOfUpdateCheck?: boolean;
472
+ /**
473
+ * Regular expression pattern that folder names must match when creating new folders.
474
+ * Only applies to newly created folders, not existing ones.
475
+ *
476
+ * @example "^[a-z0-9-]+$" - allows lowercase letters, numbers, and hyphens only
477
+ * @example "^[A-Za-z0-9_-]+$" - allows letters, numbers, underscores, and hyphens
478
+ */
479
+ regexValidation?: {
480
+ folderNameRegex?: string;
481
+ };
431
482
  };
432
483
  /**
433
484
  * Configurations for the autogenerated GraphQL HTTP client
@@ -507,7 +558,7 @@ export interface Config<CMSCallback = undefined, FormifyCallback = undefined, Do
507
558
  } | {
508
559
  /**
509
560
  * Use Git-backed assets for media, these values will
510
- * [Learn more](https://tina.io/docs/reference/media/repo-based/)
561
+ * [Learn more](https://tina.io/docs/r/repo-based-media/)
511
562
  */
512
563
  tina: {
513
564
  /**
@@ -527,6 +578,54 @@ export interface Config<CMSCallback = undefined, FormifyCallback = undefined, Do
527
578
  loadCustomStore?: never;
528
579
  accept?: string | string[];
529
580
  };
581
+ /**
582
+ * Configuration for repository-related UI features.
583
+ *
584
+ * This allows you to configure how the CMS displays repository information
585
+ * and generates links to view file history in your Git provider (e.g., GitHub, GitLab).
586
+ *
587
+ * @example
588
+ *
589
+ * repoProvider: {
590
+ * defaultBranchName: 'main',
591
+ * historyUrl: ({ relativePath, branch }) => ({
592
+ * url: `https://github.com/owner/repo/commits/${branch}/${relativePath}`
593
+ * })
594
+ * }
595
+ * */
596
+ repoProvider?: {
597
+ /**
598
+ * The default branch name to use when in local mode or when no branch is specified.
599
+ * When not in local mode, TinaCMS will use the branch selected in the editor.
600
+ *
601
+ * This is typically your main/master branch name (e.g., "main", "master").
602
+ */
603
+ defaultBranchName?: string;
604
+ /**
605
+ * A function that generates a URL to view the commit history for a specific file.
606
+ *
607
+ * This URL is used to link to your Git provider's history view (e.g., GitHub's commits page).
608
+ * The function receives the file's relative path and current branch, and should return
609
+ * a URL object with the full URL to the history page.
610
+ *
611
+ * @param context - Context object containing file and branch information
612
+ * @param context.relativePath - The relative path of the file from the repository root
613
+ * @param context.branch - The current branch name
614
+ * @returns An object with a `url` property containing the full URL to the history page
615
+ *
616
+ * @example
617
+ *s
618
+ * historyUrl: ({ relativePath, branch }) => ({
619
+ * url: `https://github.com/tinacms/tinacms/commits/${branch}/examples/next-2024/${relativePath}`
620
+ * })
621
+ * */
622
+ historyUrl?: (context: {
623
+ relativePath: string;
624
+ branch: string;
625
+ }) => {
626
+ url: string;
627
+ };
628
+ };
530
629
  search?: ({
531
630
  /**
532
631
  * An instance of a search client like Algolia
@@ -582,7 +681,7 @@ export interface Schema<WithNamespace extends boolean = false> {
582
681
  /**
583
682
  * Collections represent a type of content (EX, blog post, page, author, etc). We recommend using singular naming in a collection (Ex: use post and not posts).
584
683
  *
585
- * https://tina.io/docs/reference/collections/
684
+ * https://tina.io/docs/r/content-modelling-collections/
586
685
  */
587
686
  collections: Collection<WithNamespace>[];
588
687
  /**
@@ -621,7 +720,7 @@ type TemplateCollection<WithNamespace extends boolean = false> = {
621
720
  /**
622
721
  * In most cases, just using fields is enough, however templates can be used when there are multiple variants of the same collection or object. For example in a "page" collection there might be a need for a marketing page template and a content page template, both under the collection "page".
623
722
  *
624
- * https://tina.io/docs/reference/templates/
723
+ * https://tina.io/docs/r/content-modelling-templates/
625
724
  */
626
725
  templates: Template<WithNamespace>[];
627
726
  fields?: undefined;
@@ -630,7 +729,7 @@ type FieldCollection<WithNamespace extends boolean = false> = {
630
729
  /**
631
730
  * Fields define the shape of the content and the user input.
632
731
  *
633
- * https://tina.io/docs/reference/fields/
732
+ * https://tina.io/docs/r/string-fields/
634
733
  */
635
734
  fields: TinaField<WithNamespace>[];
636
735
  templates?: undefined;
@@ -687,6 +786,7 @@ export interface UICollection<Form = any, CMS = any, TinaForm = any> {
687
786
  allowedActions?: {
688
787
  create?: boolean;
689
788
  delete?: boolean;
789
+ createFolder?: boolean;
690
790
  createNestedFolder?: boolean;
691
791
  };
692
792
  /**
@@ -30,44 +30,44 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
30
30
  isAuthCollection: z.ZodOptional<z.ZodBoolean>;
31
31
  isDetached: z.ZodOptional<z.ZodBoolean>;
32
32
  }, {
33
- fields: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodType<import("../types/index").TinaField, z.ZodTypeDef, import("../types/index").TinaField>, "many">>, import("../types/index").TinaField[], import("../types/index").TinaField[]>, import("../types/index").TinaField[], import("../types/index").TinaField[]>, import("../types/index").TinaField[], import("../types/index").TinaField[]>, import("../types/index").TinaField[], import("../types/index").TinaField[]>;
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[]>;
34
34
  templates: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
35
35
  label: z.ZodString;
36
36
  name: z.ZodEffects<z.ZodString, string, string>;
37
- fields: z.ZodArray<z.ZodType<import("../types/index").TinaField, z.ZodTypeDef, import("../types/index").TinaField>, "many">;
37
+ fields: z.ZodArray<z.ZodType<import("..").TinaField, z.ZodTypeDef, import("..").TinaField>, "many">;
38
38
  }, "strip", z.ZodTypeAny, {
39
39
  name?: string;
40
- fields?: import("../types/index").TinaField[];
40
+ fields?: import("..").TinaField[];
41
41
  label?: string;
42
42
  }, {
43
43
  name?: string;
44
- fields?: import("../types/index").TinaField[];
44
+ fields?: import("..").TinaField[];
45
45
  label?: string;
46
46
  }>, {
47
47
  name?: string;
48
- fields?: import("../types/index").TinaField[];
48
+ fields?: import("..").TinaField[];
49
49
  label?: string;
50
50
  }, {
51
51
  name?: string;
52
- fields?: import("../types/index").TinaField[];
52
+ fields?: import("..").TinaField[];
53
53
  label?: string;
54
54
  }>, "many">>, {
55
55
  name?: string;
56
- fields?: import("../types/index").TinaField[];
56
+ fields?: import("..").TinaField[];
57
57
  label?: string;
58
58
  }[], {
59
59
  name?: string;
60
- fields?: import("../types/index").TinaField[];
60
+ fields?: import("..").TinaField[];
61
61
  label?: string;
62
62
  }[]>;
63
63
  }>, "strip", z.ZodTypeAny, {
64
64
  name?: string;
65
65
  templates?: {
66
66
  name?: string;
67
- fields?: import("../types/index").TinaField[];
67
+ fields?: import("..").TinaField[];
68
68
  label?: string;
69
69
  }[];
70
- fields?: import("../types/index").TinaField[];
70
+ fields?: import("..").TinaField[];
71
71
  label?: string;
72
72
  path?: string;
73
73
  format?: "mdx" | "md" | "markdown" | "json" | "yaml" | "yml" | "toml";
@@ -77,10 +77,10 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
77
77
  name?: string;
78
78
  templates?: {
79
79
  name?: string;
80
- fields?: import("../types/index").TinaField[];
80
+ fields?: import("..").TinaField[];
81
81
  label?: string;
82
82
  }[];
83
- fields?: import("../types/index").TinaField[];
83
+ fields?: import("..").TinaField[];
84
84
  label?: string;
85
85
  path?: string;
86
86
  format?: "mdx" | "md" | "markdown" | "json" | "yaml" | "yml" | "toml";
@@ -90,10 +90,10 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
90
90
  name?: string;
91
91
  templates?: {
92
92
  name?: string;
93
- fields?: import("../types/index").TinaField[];
93
+ fields?: import("..").TinaField[];
94
94
  label?: string;
95
95
  }[];
96
- fields?: import("../types/index").TinaField[];
96
+ fields?: import("..").TinaField[];
97
97
  label?: string;
98
98
  path?: string;
99
99
  format?: "mdx" | "md" | "markdown" | "json" | "yaml" | "yml" | "toml";
@@ -103,10 +103,10 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
103
103
  name?: string;
104
104
  templates?: {
105
105
  name?: string;
106
- fields?: import("../types/index").TinaField[];
106
+ fields?: import("..").TinaField[];
107
107
  label?: string;
108
108
  }[];
109
- fields?: import("../types/index").TinaField[];
109
+ fields?: import("..").TinaField[];
110
110
  label?: string;
111
111
  path?: string;
112
112
  format?: "mdx" | "md" | "markdown" | "json" | "yaml" | "yml" | "toml";
@@ -187,6 +187,29 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
187
187
  searchClient?: any;
188
188
  indexBatchSize?: number;
189
189
  }>>;
190
+ ui: z.ZodOptional<z.ZodObject<{
191
+ previewUrl: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>>;
192
+ optOutOfUpdateCheck: z.ZodOptional<z.ZodBoolean>;
193
+ regexValidation: z.ZodOptional<z.ZodObject<{
194
+ folderNameRegex: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
195
+ }, "strip", z.ZodTypeAny, {
196
+ folderNameRegex?: string;
197
+ }, {
198
+ folderNameRegex?: string;
199
+ }>>;
200
+ }, "strip", z.ZodTypeAny, {
201
+ previewUrl?: (...args: unknown[]) => unknown;
202
+ optOutOfUpdateCheck?: boolean;
203
+ regexValidation?: {
204
+ folderNameRegex?: string;
205
+ };
206
+ }, {
207
+ previewUrl?: (...args: unknown[]) => unknown;
208
+ optOutOfUpdateCheck?: boolean;
209
+ regexValidation?: {
210
+ folderNameRegex?: string;
211
+ };
212
+ }>>;
190
213
  }, "strip", z.ZodTypeAny, {
191
214
  search?: {
192
215
  maxSearchIndexFieldLength?: number;
@@ -198,6 +221,13 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
198
221
  searchClient?: any;
199
222
  indexBatchSize?: number;
200
223
  };
224
+ ui?: {
225
+ previewUrl?: (...args: unknown[]) => unknown;
226
+ optOutOfUpdateCheck?: boolean;
227
+ regexValidation?: {
228
+ folderNameRegex?: string;
229
+ };
230
+ };
201
231
  client?: {
202
232
  referenceDepth?: number;
203
233
  };
@@ -220,6 +250,13 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
220
250
  searchClient?: any;
221
251
  indexBatchSize?: number;
222
252
  };
253
+ ui?: {
254
+ previewUrl?: (...args: unknown[]) => unknown;
255
+ optOutOfUpdateCheck?: boolean;
256
+ regexValidation?: {
257
+ folderNameRegex?: string;
258
+ };
259
+ };
223
260
  client?: {
224
261
  referenceDepth?: number;
225
262
  };
@@ -237,10 +274,10 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
237
274
  name?: string;
238
275
  templates?: {
239
276
  name?: string;
240
- fields?: import("../types/index").TinaField[];
277
+ fields?: import("..").TinaField[];
241
278
  label?: string;
242
279
  }[];
243
- fields?: import("../types/index").TinaField[];
280
+ fields?: import("..").TinaField[];
244
281
  label?: string;
245
282
  path?: string;
246
283
  format?: "mdx" | "md" | "markdown" | "json" | "yaml" | "yml" | "toml";
@@ -258,6 +295,13 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
258
295
  searchClient?: any;
259
296
  indexBatchSize?: number;
260
297
  };
298
+ ui?: {
299
+ previewUrl?: (...args: unknown[]) => unknown;
300
+ optOutOfUpdateCheck?: boolean;
301
+ regexValidation?: {
302
+ folderNameRegex?: string;
303
+ };
304
+ };
261
305
  client?: {
262
306
  referenceDepth?: number;
263
307
  };
@@ -275,10 +319,10 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
275
319
  name?: string;
276
320
  templates?: {
277
321
  name?: string;
278
- fields?: import("../types/index").TinaField[];
322
+ fields?: import("..").TinaField[];
279
323
  label?: string;
280
324
  }[];
281
- fields?: import("../types/index").TinaField[];
325
+ fields?: import("..").TinaField[];
282
326
  label?: string;
283
327
  path?: string;
284
328
  format?: "mdx" | "md" | "markdown" | "json" | "yaml" | "yml" | "toml";
@@ -296,6 +340,13 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
296
340
  searchClient?: any;
297
341
  indexBatchSize?: number;
298
342
  };
343
+ ui?: {
344
+ previewUrl?: (...args: unknown[]) => unknown;
345
+ optOutOfUpdateCheck?: boolean;
346
+ regexValidation?: {
347
+ folderNameRegex?: string;
348
+ };
349
+ };
299
350
  client?: {
300
351
  referenceDepth?: number;
301
352
  };
@@ -313,10 +364,10 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
313
364
  name?: string;
314
365
  templates?: {
315
366
  name?: string;
316
- fields?: import("../types/index").TinaField[];
367
+ fields?: import("..").TinaField[];
317
368
  label?: string;
318
369
  }[];
319
- fields?: import("../types/index").TinaField[];
370
+ fields?: import("..").TinaField[];
320
371
  label?: string;
321
372
  path?: string;
322
373
  format?: "mdx" | "md" | "markdown" | "json" | "yaml" | "yml" | "toml";
@@ -334,6 +385,13 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
334
385
  searchClient?: any;
335
386
  indexBatchSize?: number;
336
387
  };
388
+ ui?: {
389
+ previewUrl?: (...args: unknown[]) => unknown;
390
+ optOutOfUpdateCheck?: boolean;
391
+ regexValidation?: {
392
+ folderNameRegex?: string;
393
+ };
394
+ };
337
395
  client?: {
338
396
  referenceDepth?: number;
339
397
  };
@@ -351,10 +409,10 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
351
409
  name?: string;
352
410
  templates?: {
353
411
  name?: string;
354
- fields?: import("../types/index").TinaField[];
412
+ fields?: import("..").TinaField[];
355
413
  label?: string;
356
414
  }[];
357
- fields?: import("../types/index").TinaField[];
415
+ fields?: import("..").TinaField[];
358
416
  label?: string;
359
417
  path?: string;
360
418
  format?: "mdx" | "md" | "markdown" | "json" | "yaml" | "yml" | "toml";
@@ -372,6 +430,13 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
372
430
  searchClient?: any;
373
431
  indexBatchSize?: number;
374
432
  };
433
+ ui?: {
434
+ previewUrl?: (...args: unknown[]) => unknown;
435
+ optOutOfUpdateCheck?: boolean;
436
+ regexValidation?: {
437
+ folderNameRegex?: string;
438
+ };
439
+ };
375
440
  client?: {
376
441
  referenceDepth?: number;
377
442
  };
@@ -77,6 +77,29 @@ export declare const tinaConfigZod: z.ZodObject<{
77
77
  searchClient?: any;
78
78
  indexBatchSize?: number;
79
79
  }>>;
80
+ ui: z.ZodOptional<z.ZodObject<{
81
+ previewUrl: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>>;
82
+ optOutOfUpdateCheck: z.ZodOptional<z.ZodBoolean>;
83
+ regexValidation: z.ZodOptional<z.ZodObject<{
84
+ folderNameRegex: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
85
+ }, "strip", z.ZodTypeAny, {
86
+ folderNameRegex?: string;
87
+ }, {
88
+ folderNameRegex?: string;
89
+ }>>;
90
+ }, "strip", z.ZodTypeAny, {
91
+ previewUrl?: (...args: unknown[]) => unknown;
92
+ optOutOfUpdateCheck?: boolean;
93
+ regexValidation?: {
94
+ folderNameRegex?: string;
95
+ };
96
+ }, {
97
+ previewUrl?: (...args: unknown[]) => unknown;
98
+ optOutOfUpdateCheck?: boolean;
99
+ regexValidation?: {
100
+ folderNameRegex?: string;
101
+ };
102
+ }>>;
80
103
  }, "strip", z.ZodTypeAny, {
81
104
  search?: {
82
105
  maxSearchIndexFieldLength?: number;
@@ -88,6 +111,13 @@ export declare const tinaConfigZod: z.ZodObject<{
88
111
  searchClient?: any;
89
112
  indexBatchSize?: number;
90
113
  };
114
+ ui?: {
115
+ previewUrl?: (...args: unknown[]) => unknown;
116
+ optOutOfUpdateCheck?: boolean;
117
+ regexValidation?: {
118
+ folderNameRegex?: string;
119
+ };
120
+ };
91
121
  client?: {
92
122
  referenceDepth?: number;
93
123
  };
@@ -110,6 +140,13 @@ export declare const tinaConfigZod: z.ZodObject<{
110
140
  searchClient?: any;
111
141
  indexBatchSize?: number;
112
142
  };
143
+ ui?: {
144
+ previewUrl?: (...args: unknown[]) => unknown;
145
+ optOutOfUpdateCheck?: boolean;
146
+ regexValidation?: {
147
+ folderNameRegex?: string;
148
+ };
149
+ };
113
150
  client?: {
114
151
  referenceDepth?: number;
115
152
  };
package/package.json CHANGED
@@ -1,16 +1,9 @@
1
1
  {
2
2
  "name": "@tinacms/schema-tools",
3
- "version": "0.0.0-be4681c-20250619070932",
3
+ "type": "module",
4
+ "version": "0.0.0-bebaba8-20251211002320",
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.3.5"
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"