@mintlify/validation 0.1.253 → 0.1.255

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.
Files changed (35) hide show
  1. package/dist/mint-config/schemas/v2/index.d.ts +4163 -7618
  2. package/dist/mint-config/schemas/v2/properties/index.d.ts +1 -0
  3. package/dist/mint-config/schemas/v2/properties/index.js +1 -0
  4. package/dist/mint-config/schemas/v2/properties/navigation/anchors.d.ts +12 -455
  5. package/dist/mint-config/schemas/v2/properties/navigation/anchors.js +28 -11
  6. package/dist/mint-config/schemas/v2/properties/navigation/divisionNav.d.ts +56 -0
  7. package/dist/mint-config/schemas/v2/properties/navigation/divisionNav.js +5 -0
  8. package/dist/mint-config/schemas/v2/properties/navigation/dropdown.d.ts +13 -330
  9. package/dist/mint-config/schemas/v2/properties/navigation/dropdown.js +28 -11
  10. package/dist/mint-config/schemas/v2/properties/navigation/groups.d.ts +22 -626
  11. package/dist/mint-config/schemas/v2/properties/navigation/groups.js +15 -13
  12. package/dist/mint-config/schemas/v2/properties/navigation/index.d.ts +258 -1481
  13. package/dist/mint-config/schemas/v2/properties/navigation/index.js +23 -13
  14. package/dist/mint-config/schemas/v2/properties/navigation/languages.d.ts +11 -202
  15. package/dist/mint-config/schemas/v2/properties/navigation/languages.js +33 -11
  16. package/dist/mint-config/schemas/v2/properties/navigation/pages.d.ts +2 -3
  17. package/dist/mint-config/schemas/v2/properties/navigation/pages.js +2 -2
  18. package/dist/mint-config/schemas/v2/properties/navigation/tabs.d.ts +11 -328
  19. package/dist/mint-config/schemas/v2/properties/navigation/tabs.js +28 -11
  20. package/dist/mint-config/schemas/v2/properties/navigation/version.d.ts +12 -203
  21. package/dist/mint-config/schemas/v2/properties/navigation/version.js +28 -11
  22. package/dist/mint-config/schemas/v2/properties/reusable/page.d.ts +3 -0
  23. package/dist/mint-config/schemas/v2/properties/reusable/page.js +1 -0
  24. package/dist/mint-config/schemas/v2/themes/linden.d.ts +253 -944
  25. package/dist/mint-config/schemas/v2/themes/maple.d.ts +253 -944
  26. package/dist/mint-config/schemas/v2/themes/mint.d.ts +253 -944
  27. package/dist/mint-config/schemas/v2/themes/palm.d.ts +253 -944
  28. package/dist/mint-config/schemas/v2/themes/reusable/index.d.ts +143 -730
  29. package/dist/mint-config/schemas/v2/themes/willow.d.ts +253 -944
  30. package/dist/mint-config/upgrades/updateNavigationToDocsConfig.js +14 -8
  31. package/dist/mint-config/validateConfig.d.ts +420 -940
  32. package/dist/tsconfig.build.tsbuildinfo +1 -1
  33. package/package.json +3 -3
  34. package/dist/mint-config/schemas/v2/properties/navigation/divisionSchemas.d.ts +0 -7
  35. package/dist/mint-config/schemas/v2/properties/navigation/divisionSchemas.js +0 -26
@@ -1,127 +1,6 @@
1
1
  import { z } from 'zod';
2
- export declare const nonRecursiveDropdownSchema: z.ZodIntersection<z.ZodObject<{
3
- dropdown: z.ZodString;
4
- icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
5
- style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
6
- name: z.ZodEffects<z.ZodString, string, string>;
7
- }, "strip", z.ZodTypeAny, {
8
- name: string;
9
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
10
- }, {
11
- name: string;
12
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
13
- }>]>>;
14
- hidden: z.ZodOptional<z.ZodBoolean>;
15
- }, "strip", z.ZodTypeAny, {
16
- dropdown: string;
17
- icon?: string | {
18
- name: string;
19
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
20
- } | undefined;
21
- hidden?: boolean | undefined;
22
- }, {
23
- dropdown: string;
24
- icon?: string | {
25
- name: string;
26
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
27
- } | undefined;
28
- hidden?: boolean | undefined;
29
- }>, z.ZodObject<{
30
- href: z.ZodString;
31
- }, "strip", z.ZodTypeAny, {
32
- href: string;
33
- }, {
34
- href: string;
35
- }>>;
36
- export declare const dropdownSchema: z.ZodIntersection<z.ZodObject<{
37
- dropdown: z.ZodString;
38
- icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
39
- style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
40
- name: z.ZodEffects<z.ZodString, string, string>;
41
- }, "strip", z.ZodTypeAny, {
42
- name: string;
43
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
44
- }, {
45
- name: string;
46
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
47
- }>]>>;
48
- hidden: z.ZodOptional<z.ZodBoolean>;
49
- }, "strip", z.ZodTypeAny, {
50
- dropdown: string;
51
- icon?: string | {
52
- name: string;
53
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
54
- } | undefined;
55
- hidden?: boolean | undefined;
56
- }, {
57
- dropdown: string;
58
- icon?: string | {
59
- name: string;
60
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
61
- } | undefined;
62
- hidden?: boolean | undefined;
63
- }>, z.ZodUnion<[z.ZodObject<{
64
- href: z.ZodString;
65
- }, "strip", z.ZodTypeAny, {
66
- href: string;
67
- }, {
68
- href: string;
69
- }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>> | z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
70
- dropdown: z.ZodString;
71
- icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
72
- style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
73
- name: z.ZodEffects<z.ZodString, string, string>;
74
- }, "strip", z.ZodTypeAny, {
75
- name: string;
76
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
77
- }, {
78
- name: string;
79
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
80
- }>]>>;
81
- hidden: z.ZodOptional<z.ZodBoolean>;
82
- }, "strip", z.ZodTypeAny, {
83
- dropdown: string;
84
- icon?: string | {
85
- name: string;
86
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
87
- } | undefined;
88
- hidden?: boolean | undefined;
89
- }, {
90
- dropdown: string;
91
- icon?: string | {
92
- name: string;
93
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
94
- } | undefined;
95
- hidden?: boolean | undefined;
96
- }>, z.ZodUnion<[z.ZodObject<{
97
- href: z.ZodString;
98
- }, "strip", z.ZodTypeAny, {
99
- href: string;
100
- }, {
101
- href: string;
102
- }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
103
- openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
104
- source: z.ZodEffects<z.ZodString, string, string>;
105
- directory: z.ZodOptional<z.ZodString>;
106
- }, "strict", z.ZodTypeAny, {
107
- source: string;
108
- directory?: string | undefined;
109
- }, {
110
- source: string;
111
- directory?: string | undefined;
112
- }>]>>;
113
- }, "strip", z.ZodTypeAny, {
114
- openapi?: string | string[] | {
115
- source: string;
116
- directory?: string | undefined;
117
- } | undefined;
118
- }, {
119
- openapi?: string | string[] | {
120
- source: string;
121
- directory?: string | undefined;
122
- } | undefined;
123
- }>>;
124
- export declare const decoratedDropdownSchema: z.ZodIntersection<z.ZodObject<{
2
+ import { DropdownNavigation } from './divisionNav.js';
3
+ declare const baseDropdownSchema: z.ZodObject<{
125
4
  dropdown: z.ZodString;
126
5
  icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
127
6
  style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
@@ -148,13 +27,11 @@ export declare const decoratedDropdownSchema: z.ZodIntersection<z.ZodObject<{
148
27
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
149
28
  } | undefined;
150
29
  hidden?: boolean | undefined;
151
- }>, z.ZodUnion<[z.ZodObject<{
152
- href: z.ZodString;
153
- }, "strip", z.ZodTypeAny, {
154
- href: string;
155
- }, {
156
- href: string;
157
- }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>> | z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
30
+ }>;
31
+ export type BaseDropdownSchema = z.infer<typeof baseDropdownSchema>;
32
+ export declare const dropdownSchema: z.ZodType<DropdownNavigation<'default'>>;
33
+ export declare const decoratedDropdownSchema: z.ZodType<DropdownNavigation<'decorated'>>;
34
+ export declare const nonRecursiveDropdownSchema: z.ZodIntersection<z.ZodObject<{
158
35
  dropdown: z.ZodString;
159
36
  icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
160
37
  style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
@@ -181,211 +58,17 @@ export declare const decoratedDropdownSchema: z.ZodIntersection<z.ZodObject<{
181
58
  style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
182
59
  } | undefined;
183
60
  hidden?: boolean | undefined;
184
- }>, z.ZodUnion<[z.ZodObject<{
61
+ }>, z.ZodObject<{
185
62
  href: z.ZodString;
186
63
  }, "strip", z.ZodTypeAny, {
187
64
  href: string;
188
65
  }, {
189
66
  href: string;
190
- }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
191
- openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
192
- source: z.ZodEffects<z.ZodString, string, string>;
193
- directory: z.ZodOptional<z.ZodString>;
194
- }, "strict", z.ZodTypeAny, {
195
- source: string;
196
- directory?: string | undefined;
197
- }, {
198
- source: string;
199
- directory?: string | undefined;
200
- }>]>>;
201
- }, "strip", z.ZodTypeAny, {
202
- openapi?: string | string[] | {
203
- source: string;
204
- directory?: string | undefined;
205
- } | undefined;
206
- }, {
207
- openapi?: string | string[] | {
208
- source: string;
209
- directory?: string | undefined;
210
- } | undefined;
211
67
  }>>;
212
- export declare const dropdownsSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
213
- dropdown: z.ZodString;
214
- icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
215
- style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
216
- name: z.ZodEffects<z.ZodString, string, string>;
217
- }, "strip", z.ZodTypeAny, {
218
- name: string;
219
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
220
- }, {
221
- name: string;
222
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
223
- }>]>>;
224
- hidden: z.ZodOptional<z.ZodBoolean>;
225
- }, "strip", z.ZodTypeAny, {
226
- dropdown: string;
227
- icon?: string | {
228
- name: string;
229
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
230
- } | undefined;
231
- hidden?: boolean | undefined;
232
- }, {
233
- dropdown: string;
234
- icon?: string | {
235
- name: string;
236
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
237
- } | undefined;
238
- hidden?: boolean | undefined;
239
- }>, z.ZodUnion<[z.ZodObject<{
240
- href: z.ZodString;
241
- }, "strip", z.ZodTypeAny, {
242
- href: string;
243
- }, {
244
- href: string;
245
- }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>> | z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
246
- dropdown: z.ZodString;
247
- icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
248
- style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
249
- name: z.ZodEffects<z.ZodString, string, string>;
250
- }, "strip", z.ZodTypeAny, {
251
- name: string;
252
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
253
- }, {
254
- name: string;
255
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
256
- }>]>>;
257
- hidden: z.ZodOptional<z.ZodBoolean>;
258
- }, "strip", z.ZodTypeAny, {
259
- dropdown: string;
260
- icon?: string | {
261
- name: string;
262
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
263
- } | undefined;
264
- hidden?: boolean | undefined;
265
- }, {
266
- dropdown: string;
267
- icon?: string | {
268
- name: string;
269
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
270
- } | undefined;
271
- hidden?: boolean | undefined;
272
- }>, z.ZodUnion<[z.ZodObject<{
273
- href: z.ZodString;
274
- }, "strip", z.ZodTypeAny, {
275
- href: string;
276
- }, {
277
- href: string;
278
- }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
279
- openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
280
- source: z.ZodEffects<z.ZodString, string, string>;
281
- directory: z.ZodOptional<z.ZodString>;
282
- }, "strict", z.ZodTypeAny, {
283
- source: string;
284
- directory?: string | undefined;
285
- }, {
286
- source: string;
287
- directory?: string | undefined;
288
- }>]>>;
289
- }, "strip", z.ZodTypeAny, {
290
- openapi?: string | string[] | {
291
- source: string;
292
- directory?: string | undefined;
293
- } | undefined;
294
- }, {
295
- openapi?: string | string[] | {
296
- source: string;
297
- directory?: string | undefined;
298
- } | undefined;
299
- }>>, "many">;
300
- export declare const decoratedDropdownsSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
301
- dropdown: z.ZodString;
302
- icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
303
- style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
304
- name: z.ZodEffects<z.ZodString, string, string>;
305
- }, "strip", z.ZodTypeAny, {
306
- name: string;
307
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
308
- }, {
309
- name: string;
310
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
311
- }>]>>;
312
- hidden: z.ZodOptional<z.ZodBoolean>;
313
- }, "strip", z.ZodTypeAny, {
314
- dropdown: string;
315
- icon?: string | {
316
- name: string;
317
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
318
- } | undefined;
319
- hidden?: boolean | undefined;
320
- }, {
321
- dropdown: string;
322
- icon?: string | {
323
- name: string;
324
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
325
- } | undefined;
326
- hidden?: boolean | undefined;
327
- }>, z.ZodUnion<[z.ZodObject<{
328
- href: z.ZodString;
329
- }, "strip", z.ZodTypeAny, {
330
- href: string;
331
- }, {
332
- href: string;
333
- }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>> | z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
334
- dropdown: z.ZodString;
335
- icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
336
- style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
337
- name: z.ZodEffects<z.ZodString, string, string>;
338
- }, "strip", z.ZodTypeAny, {
339
- name: string;
340
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
341
- }, {
342
- name: string;
343
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
344
- }>]>>;
345
- hidden: z.ZodOptional<z.ZodBoolean>;
346
- }, "strip", z.ZodTypeAny, {
347
- dropdown: string;
348
- icon?: string | {
349
- name: string;
350
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
351
- } | undefined;
352
- hidden?: boolean | undefined;
353
- }, {
354
- dropdown: string;
355
- icon?: string | {
356
- name: string;
357
- style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
358
- } | undefined;
359
- hidden?: boolean | undefined;
360
- }>, z.ZodUnion<[z.ZodObject<{
361
- href: z.ZodString;
362
- }, "strip", z.ZodTypeAny, {
363
- href: string;
364
- }, {
365
- href: string;
366
- }>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
367
- openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, z.ZodObject<{
368
- source: z.ZodEffects<z.ZodString, string, string>;
369
- directory: z.ZodOptional<z.ZodString>;
370
- }, "strict", z.ZodTypeAny, {
371
- source: string;
372
- directory?: string | undefined;
373
- }, {
374
- source: string;
375
- directory?: string | undefined;
376
- }>]>>;
377
- }, "strip", z.ZodTypeAny, {
378
- openapi?: string | string[] | {
379
- source: string;
380
- directory?: string | undefined;
381
- } | undefined;
382
- }, {
383
- openapi?: string | string[] | {
384
- source: string;
385
- directory?: string | undefined;
386
- } | undefined;
387
- }>>, "many">;
388
- export type DropdownsConfig = z.infer<typeof dropdownsSchema>;
68
+ export declare const dropdownsSchema: z.ZodArray<z.ZodType<DropdownNavigation<"default">, z.ZodTypeDef, DropdownNavigation<"default">>, "many">;
69
+ export declare const decoratedDropdownsSchema: z.ZodArray<z.ZodType<DropdownNavigation<"decorated">, z.ZodTypeDef, DropdownNavigation<"decorated">>, "many">;
389
70
  export type DropdownConfig = z.infer<typeof dropdownSchema>;
390
- export type DecoratedDropdownsConfig = z.infer<typeof decoratedDropdownsSchema>;
71
+ export type DropdownsConfig = z.infer<typeof dropdownsSchema>;
391
72
  export type DecoratedDropdownConfig = z.infer<typeof decoratedDropdownSchema>;
73
+ export type DecoratedDropdownsConfig = z.infer<typeof decoratedDropdownsSchema>;
74
+ export {};
@@ -3,24 +3,41 @@ import { hiddenSchema } from '../reusable/hidden.js';
3
3
  import { hrefSchema } from '../reusable/href.js';
4
4
  import { iconSchema } from '../reusable/icon.js';
5
5
  import { openApiSchema } from '../reusable/openapi.js';
6
- import { getDivisionSchemasExcluding, registerDivisionSchema } from './divisionSchemas.js';
6
+ import { anchorsSchema, decoratedAnchorsSchema } from './anchors.js';
7
+ import { decoratedGroupsSchema, groupsSchema } from './groups.js';
8
+ import { decoratedLanguagesSchema, languagesSchema } from './languages.js';
9
+ import { decoratedPagesSchema, pagesSchema } from './pages.js';
10
+ import { decoratedTabsSchema, tabsSchema } from './tabs.js';
11
+ import { decoratedVersionsSchema, versionsSchema } from './version.js';
7
12
  const baseDropdownSchema = z.object({
8
13
  dropdown: z.string().nonempty().describe('The name of the dropdown'),
9
14
  icon: iconSchema.optional(),
10
15
  hidden: hiddenSchema.optional(),
11
16
  });
12
- const createDropdownSchema = (type) => {
13
- const baseSchema = baseDropdownSchema.and(z.union([z.object({ href: hrefSchema }), ...getDivisionSchemasExcluding('dropdowns', type)]));
14
- return type === 'decorated'
15
- ? baseSchema
16
- : baseSchema.and(z.object({ openapi: openApiSchema.optional() }));
17
- };
17
+ export const dropdownSchema = baseDropdownSchema.and(z
18
+ .object({ openapi: openApiSchema })
19
+ .or(z
20
+ .union([
21
+ z.object({ href: hrefSchema }),
22
+ z.lazy(() => z.object({ languages: languagesSchema })),
23
+ z.lazy(() => z.object({ versions: versionsSchema })),
24
+ z.lazy(() => z.object({ tabs: tabsSchema })),
25
+ z.lazy(() => z.object({ anchors: anchorsSchema })),
26
+ z.lazy(() => z.object({ groups: groupsSchema })),
27
+ z.lazy(() => z.object({ pages: pagesSchema })),
28
+ ])
29
+ .and(z.object({ openapi: openApiSchema.optional() }))));
30
+ export const decoratedDropdownSchema = baseDropdownSchema.and(z.union([
31
+ z.object({ href: hrefSchema }),
32
+ z.lazy(() => z.object({ languages: decoratedLanguagesSchema })),
33
+ z.lazy(() => z.object({ versions: decoratedVersionsSchema })),
34
+ z.lazy(() => z.object({ tabs: decoratedTabsSchema })),
35
+ z.lazy(() => z.object({ anchors: decoratedAnchorsSchema })),
36
+ z.lazy(() => z.object({ groups: decoratedGroupsSchema })),
37
+ z.lazy(() => z.object({ pages: decoratedPagesSchema })),
38
+ ]));
18
39
  export const nonRecursiveDropdownSchema = baseDropdownSchema.and(z.object({ href: hrefSchema }));
19
- export const dropdownSchema = createDropdownSchema('default');
20
- export const decoratedDropdownSchema = createDropdownSchema('decorated');
21
40
  export const dropdownsSchema = z.array(dropdownSchema).describe('Organizing by dropdowns');
22
41
  export const decoratedDropdownsSchema = z
23
42
  .array(decoratedDropdownSchema)
24
43
  .describe('Organizing by dropdowns');
25
- registerDivisionSchema('dropdowns', dropdownsSchema, 'default');
26
- registerDivisionSchema('dropdowns', decoratedDropdownsSchema, 'decorated');