@mintlify/validation 0.1.249 → 0.1.250
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/mint-config/schemas/v2/index.d.ts +945 -410
- package/dist/mint-config/schemas/v2/properties/navigation/anchors.d.ts +232 -19
- package/dist/mint-config/schemas/v2/properties/navigation/anchors.js +6 -2
- package/dist/mint-config/schemas/v2/properties/navigation/dropdown.d.ts +160 -19
- package/dist/mint-config/schemas/v2/properties/navigation/dropdown.js +6 -2
- package/dist/mint-config/schemas/v2/properties/navigation/global.d.ts +0 -25
- package/dist/mint-config/schemas/v2/properties/navigation/index.d.ts +364 -110
- package/dist/mint-config/schemas/v2/properties/navigation/languages.d.ts +88 -19
- package/dist/mint-config/schemas/v2/properties/navigation/languages.js +6 -2
- package/dist/mint-config/schemas/v2/properties/navigation/tabs.d.ts +160 -19
- package/dist/mint-config/schemas/v2/properties/navigation/tabs.js +6 -2
- package/dist/mint-config/schemas/v2/properties/navigation/version.d.ts +88 -19
- package/dist/mint-config/schemas/v2/properties/navigation/version.js +6 -2
- package/dist/mint-config/schemas/v2/themes/linden.d.ts +182 -75
- package/dist/mint-config/schemas/v2/themes/maple.d.ts +182 -75
- package/dist/mint-config/schemas/v2/themes/mint.d.ts +182 -75
- package/dist/mint-config/schemas/v2/themes/palm.d.ts +182 -75
- package/dist/mint-config/schemas/v2/themes/reusable/index.d.ts +182 -55
- package/dist/mint-config/schemas/v2/themes/willow.d.ts +182 -75
- package/dist/mint-config/upgrades/updateNavigationToDocsConfig.d.ts +2 -2
- package/dist/mint-config/upgrades/upgradeToDocsConfig.d.ts +2 -2
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -22,7 +22,6 @@ export declare const nonRecursiveAnchorSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
22
22
|
dark?: string | undefined;
|
|
23
23
|
}>>;
|
|
24
24
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
-
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
|
|
26
25
|
}, "strip", z.ZodTypeAny, {
|
|
27
26
|
anchor: string;
|
|
28
27
|
icon?: string | {
|
|
@@ -34,7 +33,6 @@ export declare const nonRecursiveAnchorSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
34
33
|
dark?: string | undefined;
|
|
35
34
|
} | undefined;
|
|
36
35
|
hidden?: boolean | undefined;
|
|
37
|
-
openapi?: string | string[] | undefined;
|
|
38
36
|
}, {
|
|
39
37
|
anchor: string;
|
|
40
38
|
icon?: string | {
|
|
@@ -46,7 +44,6 @@ export declare const nonRecursiveAnchorSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
46
44
|
dark?: string | undefined;
|
|
47
45
|
} | undefined;
|
|
48
46
|
hidden?: boolean | undefined;
|
|
49
|
-
openapi?: string | string[] | undefined;
|
|
50
47
|
}>, z.ZodObject<{
|
|
51
48
|
href: z.ZodString;
|
|
52
49
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -77,7 +74,6 @@ export declare const anchorSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
77
74
|
dark?: string | undefined;
|
|
78
75
|
}>>;
|
|
79
76
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
80
|
-
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
|
|
81
77
|
}, "strip", z.ZodTypeAny, {
|
|
82
78
|
anchor: string;
|
|
83
79
|
icon?: string | {
|
|
@@ -89,7 +85,6 @@ export declare const anchorSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
89
85
|
dark?: string | undefined;
|
|
90
86
|
} | undefined;
|
|
91
87
|
hidden?: boolean | undefined;
|
|
92
|
-
openapi?: string | string[] | undefined;
|
|
93
88
|
}, {
|
|
94
89
|
anchor: string;
|
|
95
90
|
icon?: string | {
|
|
@@ -101,15 +96,13 @@ export declare const anchorSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
101
96
|
dark?: string | undefined;
|
|
102
97
|
} | undefined;
|
|
103
98
|
hidden?: boolean | undefined;
|
|
104
|
-
openapi?: string | string[] | undefined;
|
|
105
99
|
}>, z.ZodUnion<[z.ZodObject<{
|
|
106
100
|
href: z.ZodString;
|
|
107
101
|
}, "strip", z.ZodTypeAny, {
|
|
108
102
|
href: string;
|
|
109
103
|
}, {
|
|
110
104
|
href: string;
|
|
111
|
-
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]
|
|
112
|
-
export declare const decoratedAnchorSchema: z.ZodIntersection<z.ZodObject<{
|
|
105
|
+
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>> | z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
113
106
|
anchor: z.ZodString;
|
|
114
107
|
icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
115
108
|
style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
|
|
@@ -132,7 +125,6 @@ export declare const decoratedAnchorSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
132
125
|
dark?: string | undefined;
|
|
133
126
|
}>>;
|
|
134
127
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
135
|
-
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
|
|
136
128
|
}, "strip", z.ZodTypeAny, {
|
|
137
129
|
anchor: string;
|
|
138
130
|
icon?: string | {
|
|
@@ -144,7 +136,6 @@ export declare const decoratedAnchorSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
144
136
|
dark?: string | undefined;
|
|
145
137
|
} | undefined;
|
|
146
138
|
hidden?: boolean | undefined;
|
|
147
|
-
openapi?: string | string[] | undefined;
|
|
148
139
|
}, {
|
|
149
140
|
anchor: string;
|
|
150
141
|
icon?: string | {
|
|
@@ -156,15 +147,71 @@ export declare const decoratedAnchorSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
156
147
|
dark?: string | undefined;
|
|
157
148
|
} | undefined;
|
|
158
149
|
hidden?: boolean | undefined;
|
|
150
|
+
}>, z.ZodUnion<[z.ZodObject<{
|
|
151
|
+
href: z.ZodString;
|
|
152
|
+
}, "strip", z.ZodTypeAny, {
|
|
153
|
+
href: string;
|
|
154
|
+
}, {
|
|
155
|
+
href: string;
|
|
156
|
+
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
|
|
157
|
+
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
|
|
158
|
+
}, "strip", z.ZodTypeAny, {
|
|
159
|
+
openapi?: string | string[] | undefined;
|
|
160
|
+
}, {
|
|
159
161
|
openapi?: string | string[] | undefined;
|
|
162
|
+
}>>;
|
|
163
|
+
export declare const decoratedAnchorSchema: z.ZodIntersection<z.ZodObject<{
|
|
164
|
+
anchor: z.ZodString;
|
|
165
|
+
icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
166
|
+
style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
|
|
167
|
+
name: z.ZodEffects<z.ZodString, string, string>;
|
|
168
|
+
}, "strip", z.ZodTypeAny, {
|
|
169
|
+
name: string;
|
|
170
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
171
|
+
}, {
|
|
172
|
+
name: string;
|
|
173
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
174
|
+
}>]>>;
|
|
175
|
+
color: z.ZodOptional<z.ZodObject<{
|
|
176
|
+
light: z.ZodOptional<z.ZodString>;
|
|
177
|
+
dark: z.ZodOptional<z.ZodString>;
|
|
178
|
+
}, "strict", z.ZodTypeAny, {
|
|
179
|
+
light?: string | undefined;
|
|
180
|
+
dark?: string | undefined;
|
|
181
|
+
}, {
|
|
182
|
+
light?: string | undefined;
|
|
183
|
+
dark?: string | undefined;
|
|
184
|
+
}>>;
|
|
185
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
186
|
+
}, "strip", z.ZodTypeAny, {
|
|
187
|
+
anchor: string;
|
|
188
|
+
icon?: string | {
|
|
189
|
+
name: string;
|
|
190
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
191
|
+
} | undefined;
|
|
192
|
+
color?: {
|
|
193
|
+
light?: string | undefined;
|
|
194
|
+
dark?: string | undefined;
|
|
195
|
+
} | undefined;
|
|
196
|
+
hidden?: boolean | undefined;
|
|
197
|
+
}, {
|
|
198
|
+
anchor: string;
|
|
199
|
+
icon?: string | {
|
|
200
|
+
name: string;
|
|
201
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
202
|
+
} | undefined;
|
|
203
|
+
color?: {
|
|
204
|
+
light?: string | undefined;
|
|
205
|
+
dark?: string | undefined;
|
|
206
|
+
} | undefined;
|
|
207
|
+
hidden?: boolean | undefined;
|
|
160
208
|
}>, z.ZodUnion<[z.ZodObject<{
|
|
161
209
|
href: z.ZodString;
|
|
162
210
|
}, "strip", z.ZodTypeAny, {
|
|
163
211
|
href: string;
|
|
164
212
|
}, {
|
|
165
213
|
href: string;
|
|
166
|
-
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]
|
|
167
|
-
export declare const anchorsSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
214
|
+
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>> | z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
168
215
|
anchor: z.ZodString;
|
|
169
216
|
icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
170
217
|
style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
|
|
@@ -187,7 +234,6 @@ export declare const anchorsSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
|
187
234
|
dark?: string | undefined;
|
|
188
235
|
}>>;
|
|
189
236
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
190
|
-
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
|
|
191
237
|
}, "strip", z.ZodTypeAny, {
|
|
192
238
|
anchor: string;
|
|
193
239
|
icon?: string | {
|
|
@@ -199,7 +245,6 @@ export declare const anchorsSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
|
199
245
|
dark?: string | undefined;
|
|
200
246
|
} | undefined;
|
|
201
247
|
hidden?: boolean | undefined;
|
|
202
|
-
openapi?: string | string[] | undefined;
|
|
203
248
|
}, {
|
|
204
249
|
anchor: string;
|
|
205
250
|
icon?: string | {
|
|
@@ -211,15 +256,71 @@ export declare const anchorsSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
|
211
256
|
dark?: string | undefined;
|
|
212
257
|
} | undefined;
|
|
213
258
|
hidden?: boolean | undefined;
|
|
259
|
+
}>, z.ZodUnion<[z.ZodObject<{
|
|
260
|
+
href: z.ZodString;
|
|
261
|
+
}, "strip", z.ZodTypeAny, {
|
|
262
|
+
href: string;
|
|
263
|
+
}, {
|
|
264
|
+
href: string;
|
|
265
|
+
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
|
|
266
|
+
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
|
|
267
|
+
}, "strip", z.ZodTypeAny, {
|
|
268
|
+
openapi?: string | string[] | undefined;
|
|
269
|
+
}, {
|
|
214
270
|
openapi?: string | string[] | undefined;
|
|
271
|
+
}>>;
|
|
272
|
+
export declare const anchorsSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
273
|
+
anchor: z.ZodString;
|
|
274
|
+
icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
275
|
+
style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
|
|
276
|
+
name: z.ZodEffects<z.ZodString, string, string>;
|
|
277
|
+
}, "strip", z.ZodTypeAny, {
|
|
278
|
+
name: string;
|
|
279
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
280
|
+
}, {
|
|
281
|
+
name: string;
|
|
282
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
283
|
+
}>]>>;
|
|
284
|
+
color: z.ZodOptional<z.ZodObject<{
|
|
285
|
+
light: z.ZodOptional<z.ZodString>;
|
|
286
|
+
dark: z.ZodOptional<z.ZodString>;
|
|
287
|
+
}, "strict", z.ZodTypeAny, {
|
|
288
|
+
light?: string | undefined;
|
|
289
|
+
dark?: string | undefined;
|
|
290
|
+
}, {
|
|
291
|
+
light?: string | undefined;
|
|
292
|
+
dark?: string | undefined;
|
|
293
|
+
}>>;
|
|
294
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
295
|
+
}, "strip", z.ZodTypeAny, {
|
|
296
|
+
anchor: string;
|
|
297
|
+
icon?: string | {
|
|
298
|
+
name: string;
|
|
299
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
300
|
+
} | undefined;
|
|
301
|
+
color?: {
|
|
302
|
+
light?: string | undefined;
|
|
303
|
+
dark?: string | undefined;
|
|
304
|
+
} | undefined;
|
|
305
|
+
hidden?: boolean | undefined;
|
|
306
|
+
}, {
|
|
307
|
+
anchor: string;
|
|
308
|
+
icon?: string | {
|
|
309
|
+
name: string;
|
|
310
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
311
|
+
} | undefined;
|
|
312
|
+
color?: {
|
|
313
|
+
light?: string | undefined;
|
|
314
|
+
dark?: string | undefined;
|
|
315
|
+
} | undefined;
|
|
316
|
+
hidden?: boolean | undefined;
|
|
215
317
|
}>, z.ZodUnion<[z.ZodObject<{
|
|
216
318
|
href: z.ZodString;
|
|
217
319
|
}, "strip", z.ZodTypeAny, {
|
|
218
320
|
href: string;
|
|
219
321
|
}, {
|
|
220
322
|
href: string;
|
|
221
|
-
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]
|
|
222
|
-
export declare const decoratedAnchorsSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
323
|
+
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>> | z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
223
324
|
anchor: z.ZodString;
|
|
224
325
|
icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
225
326
|
style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
|
|
@@ -242,7 +343,6 @@ export declare const decoratedAnchorsSchema: z.ZodArray<z.ZodIntersection<z.ZodO
|
|
|
242
343
|
dark?: string | undefined;
|
|
243
344
|
}>>;
|
|
244
345
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
245
|
-
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
|
|
246
346
|
}, "strip", z.ZodTypeAny, {
|
|
247
347
|
anchor: string;
|
|
248
348
|
icon?: string | {
|
|
@@ -254,7 +354,6 @@ export declare const decoratedAnchorsSchema: z.ZodArray<z.ZodIntersection<z.ZodO
|
|
|
254
354
|
dark?: string | undefined;
|
|
255
355
|
} | undefined;
|
|
256
356
|
hidden?: boolean | undefined;
|
|
257
|
-
openapi?: string | string[] | undefined;
|
|
258
357
|
}, {
|
|
259
358
|
anchor: string;
|
|
260
359
|
icon?: string | {
|
|
@@ -266,14 +365,128 @@ export declare const decoratedAnchorsSchema: z.ZodArray<z.ZodIntersection<z.ZodO
|
|
|
266
365
|
dark?: string | undefined;
|
|
267
366
|
} | undefined;
|
|
268
367
|
hidden?: boolean | undefined;
|
|
368
|
+
}>, z.ZodUnion<[z.ZodObject<{
|
|
369
|
+
href: z.ZodString;
|
|
370
|
+
}, "strip", z.ZodTypeAny, {
|
|
371
|
+
href: string;
|
|
372
|
+
}, {
|
|
373
|
+
href: string;
|
|
374
|
+
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
|
|
375
|
+
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
|
|
376
|
+
}, "strip", z.ZodTypeAny, {
|
|
377
|
+
openapi?: string | string[] | undefined;
|
|
378
|
+
}, {
|
|
269
379
|
openapi?: string | string[] | undefined;
|
|
380
|
+
}>>, "many">;
|
|
381
|
+
export declare const decoratedAnchorsSchema: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
382
|
+
anchor: z.ZodString;
|
|
383
|
+
icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
384
|
+
style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
|
|
385
|
+
name: z.ZodEffects<z.ZodString, string, string>;
|
|
386
|
+
}, "strip", z.ZodTypeAny, {
|
|
387
|
+
name: string;
|
|
388
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
389
|
+
}, {
|
|
390
|
+
name: string;
|
|
391
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
392
|
+
}>]>>;
|
|
393
|
+
color: z.ZodOptional<z.ZodObject<{
|
|
394
|
+
light: z.ZodOptional<z.ZodString>;
|
|
395
|
+
dark: z.ZodOptional<z.ZodString>;
|
|
396
|
+
}, "strict", z.ZodTypeAny, {
|
|
397
|
+
light?: string | undefined;
|
|
398
|
+
dark?: string | undefined;
|
|
399
|
+
}, {
|
|
400
|
+
light?: string | undefined;
|
|
401
|
+
dark?: string | undefined;
|
|
402
|
+
}>>;
|
|
403
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
404
|
+
}, "strip", z.ZodTypeAny, {
|
|
405
|
+
anchor: string;
|
|
406
|
+
icon?: string | {
|
|
407
|
+
name: string;
|
|
408
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
409
|
+
} | undefined;
|
|
410
|
+
color?: {
|
|
411
|
+
light?: string | undefined;
|
|
412
|
+
dark?: string | undefined;
|
|
413
|
+
} | undefined;
|
|
414
|
+
hidden?: boolean | undefined;
|
|
415
|
+
}, {
|
|
416
|
+
anchor: string;
|
|
417
|
+
icon?: string | {
|
|
418
|
+
name: string;
|
|
419
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
420
|
+
} | undefined;
|
|
421
|
+
color?: {
|
|
422
|
+
light?: string | undefined;
|
|
423
|
+
dark?: string | undefined;
|
|
424
|
+
} | undefined;
|
|
425
|
+
hidden?: boolean | undefined;
|
|
270
426
|
}>, z.ZodUnion<[z.ZodObject<{
|
|
271
427
|
href: z.ZodString;
|
|
272
428
|
}, "strip", z.ZodTypeAny, {
|
|
273
429
|
href: string;
|
|
274
430
|
}, {
|
|
275
431
|
href: string;
|
|
276
|
-
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]
|
|
432
|
+
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>> | z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
433
|
+
anchor: z.ZodString;
|
|
434
|
+
icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
435
|
+
style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
|
|
436
|
+
name: z.ZodEffects<z.ZodString, string, string>;
|
|
437
|
+
}, "strip", z.ZodTypeAny, {
|
|
438
|
+
name: string;
|
|
439
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
440
|
+
}, {
|
|
441
|
+
name: string;
|
|
442
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
443
|
+
}>]>>;
|
|
444
|
+
color: z.ZodOptional<z.ZodObject<{
|
|
445
|
+
light: z.ZodOptional<z.ZodString>;
|
|
446
|
+
dark: z.ZodOptional<z.ZodString>;
|
|
447
|
+
}, "strict", z.ZodTypeAny, {
|
|
448
|
+
light?: string | undefined;
|
|
449
|
+
dark?: string | undefined;
|
|
450
|
+
}, {
|
|
451
|
+
light?: string | undefined;
|
|
452
|
+
dark?: string | undefined;
|
|
453
|
+
}>>;
|
|
454
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
455
|
+
}, "strip", z.ZodTypeAny, {
|
|
456
|
+
anchor: string;
|
|
457
|
+
icon?: string | {
|
|
458
|
+
name: string;
|
|
459
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
460
|
+
} | undefined;
|
|
461
|
+
color?: {
|
|
462
|
+
light?: string | undefined;
|
|
463
|
+
dark?: string | undefined;
|
|
464
|
+
} | undefined;
|
|
465
|
+
hidden?: boolean | undefined;
|
|
466
|
+
}, {
|
|
467
|
+
anchor: string;
|
|
468
|
+
icon?: string | {
|
|
469
|
+
name: string;
|
|
470
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
471
|
+
} | undefined;
|
|
472
|
+
color?: {
|
|
473
|
+
light?: string | undefined;
|
|
474
|
+
dark?: string | undefined;
|
|
475
|
+
} | undefined;
|
|
476
|
+
hidden?: boolean | undefined;
|
|
477
|
+
}>, z.ZodUnion<[z.ZodObject<{
|
|
478
|
+
href: z.ZodString;
|
|
479
|
+
}, "strip", z.ZodTypeAny, {
|
|
480
|
+
href: string;
|
|
481
|
+
}, {
|
|
482
|
+
href: string;
|
|
483
|
+
}>, z.ZodType<any, z.ZodTypeDef, any>, z.ZodType<any, z.ZodTypeDef, any>, ...z.ZodType<any, z.ZodTypeDef, any>[]]>>, z.ZodObject<{
|
|
484
|
+
openapi: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>>;
|
|
485
|
+
}, "strip", z.ZodTypeAny, {
|
|
486
|
+
openapi?: string | string[] | undefined;
|
|
487
|
+
}, {
|
|
488
|
+
openapi?: string | string[] | undefined;
|
|
489
|
+
}>>, "many">;
|
|
277
490
|
export type AnchorsConfig = z.infer<typeof anchorsSchema>;
|
|
278
491
|
export type AnchorConfig = z.infer<typeof anchorSchema>;
|
|
279
492
|
export type DecoratedAnchorsConfig = z.infer<typeof decoratedAnchorsSchema>;
|
|
@@ -10,9 +10,13 @@ const baseAnchorSchema = z.object({
|
|
|
10
10
|
icon: iconSchema.optional(),
|
|
11
11
|
color: colorSchemaWithOptionalLightAndDark.optional(),
|
|
12
12
|
hidden: hiddenSchema.optional(),
|
|
13
|
-
openapi: openApiSchema.optional(),
|
|
14
13
|
});
|
|
15
|
-
const createAnchorSchema = (type) =>
|
|
14
|
+
const createAnchorSchema = (type) => {
|
|
15
|
+
const baseSchema = baseAnchorSchema.and(z.union([z.object({ href: hrefSchema }), ...getDivisionSchemasExcluding('anchors', type)]));
|
|
16
|
+
return type === 'decorated'
|
|
17
|
+
? baseSchema
|
|
18
|
+
: baseSchema.and(z.object({ openapi: openApiSchema.optional() }));
|
|
19
|
+
};
|
|
16
20
|
export const nonRecursiveAnchorSchema = baseAnchorSchema.and(z.object({ href: hrefSchema }));
|
|
17
21
|
export const anchorSchema = createAnchorSchema('default');
|
|
18
22
|
export const decoratedAnchorSchema = createAnchorSchema('decorated');
|