@mintlify/validation 0.1.478 → 0.1.480
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 +147 -0
- package/dist/mint-config/schemas/v2/properties/index.d.ts +1 -0
- package/dist/mint-config/schemas/v2/properties/index.js +1 -0
- package/dist/mint-config/schemas/v2/properties/navigation/divisionNav.d.ts +9 -1
- package/dist/mint-config/schemas/v2/properties/navigation/index.d.ts +18 -2
- package/dist/mint-config/schemas/v2/properties/navigation/index.js +3 -0
- package/dist/mint-config/schemas/v2/properties/navigation/products.d.ts +68 -0
- package/dist/mint-config/schemas/v2/properties/navigation/products.js +85 -0
- package/dist/mint-config/schemas/v2/properties/reusable/divisions.d.ts +1 -1
- package/dist/mint-config/schemas/v2/properties/reusable/divisions.js +9 -1
- package/dist/mint-config/schemas/v2/themes/almond.d.ts +21 -0
- package/dist/mint-config/schemas/v2/themes/aspen.d.ts +21 -0
- package/dist/mint-config/schemas/v2/themes/linden.d.ts +21 -0
- package/dist/mint-config/schemas/v2/themes/maple.d.ts +21 -0
- package/dist/mint-config/schemas/v2/themes/mint.d.ts +21 -0
- package/dist/mint-config/schemas/v2/themes/palm.d.ts +21 -0
- package/dist/mint-config/schemas/v2/themes/reusable/index.d.ts +9 -0
- package/dist/mint-config/schemas/v2/themes/willow.d.ts +21 -0
- package/dist/mint-config/validateConfig.d.ts +84 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -317,6 +317,15 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
317
317
|
} | undefined;
|
|
318
318
|
}>>;
|
|
319
319
|
navigation: z.ZodUnion<[z.ZodObject<{
|
|
320
|
+
global: z.ZodOptional<z.ZodType<import("./properties/navigation/divisionNav.js").GlobalNavigation, z.ZodTypeDef, import("./properties/navigation/divisionNav.js").GlobalNavigation>>;
|
|
321
|
+
products: z.ZodArray<z.ZodType<import("./properties/navigation/divisionNav.js").ProductNavigation<"default">, z.ZodTypeDef, import("./properties/navigation/divisionNav.js").ProductNavigation<"default">>, "many">;
|
|
322
|
+
}, "strip", z.ZodTypeAny, {
|
|
323
|
+
products: import("./properties/navigation/divisionNav.js").ProductNavigation<"default">[];
|
|
324
|
+
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
325
|
+
}, {
|
|
326
|
+
products: import("./properties/navigation/divisionNav.js").ProductNavigation<"default">[];
|
|
327
|
+
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
328
|
+
}>, z.ZodObject<{
|
|
320
329
|
global: z.ZodOptional<z.ZodType<import("./properties/navigation/divisionNav.js").GlobalNavigation, z.ZodTypeDef, import("./properties/navigation/divisionNav.js").GlobalNavigation>>;
|
|
321
330
|
languages: z.ZodArray<z.ZodType<import("./properties/navigation/divisionNav.js").LanguageNavigation<"default">, z.ZodTypeDef, import("./properties/navigation/divisionNav.js").LanguageNavigation<"default">>, "many">;
|
|
322
331
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1452,6 +1461,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
1452
1461
|
dark?: string | undefined;
|
|
1453
1462
|
};
|
|
1454
1463
|
navigation: ({
|
|
1464
|
+
products: import("./properties/navigation/divisionNav.js").ProductNavigation<"default">[];
|
|
1465
|
+
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
1466
|
+
} | {
|
|
1455
1467
|
languages: import("./properties/navigation/divisionNav.js").LanguageNavigation<"default">[];
|
|
1456
1468
|
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
1457
1469
|
} | {
|
|
@@ -1526,6 +1538,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
1526
1538
|
pages: any[];
|
|
1527
1539
|
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
1528
1540
|
}) & ({
|
|
1541
|
+
products: import("./properties/navigation/divisionNav.js").ProductNavigation<"default">[];
|
|
1542
|
+
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
1543
|
+
} | {
|
|
1529
1544
|
languages: import("./properties/navigation/divisionNav.js").LanguageNavigation<"default">[];
|
|
1530
1545
|
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
1531
1546
|
} | {
|
|
@@ -1846,6 +1861,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
1846
1861
|
dark?: string | undefined;
|
|
1847
1862
|
};
|
|
1848
1863
|
navigation: ({
|
|
1864
|
+
products: import("./properties/navigation/divisionNav.js").ProductNavigation<"default">[];
|
|
1865
|
+
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
1866
|
+
} | {
|
|
1849
1867
|
languages: import("./properties/navigation/divisionNav.js").LanguageNavigation<"default">[];
|
|
1850
1868
|
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
1851
1869
|
} | {
|
|
@@ -1920,6 +1938,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
1920
1938
|
pages: any[];
|
|
1921
1939
|
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
1922
1940
|
}) & ({
|
|
1941
|
+
products: import("./properties/navigation/divisionNav.js").ProductNavigation<"default">[];
|
|
1942
|
+
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
1943
|
+
} | {
|
|
1923
1944
|
languages: import("./properties/navigation/divisionNav.js").LanguageNavigation<"default">[];
|
|
1924
1945
|
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
1925
1946
|
} | {
|
|
@@ -2547,6 +2568,15 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
2547
2568
|
} | undefined;
|
|
2548
2569
|
}>>;
|
|
2549
2570
|
navigation: z.ZodUnion<[z.ZodObject<{
|
|
2571
|
+
global: z.ZodOptional<z.ZodType<import("./properties/navigation/divisionNav.js").GlobalNavigation, z.ZodTypeDef, import("./properties/navigation/divisionNav.js").GlobalNavigation>>;
|
|
2572
|
+
products: z.ZodArray<z.ZodType<import("./properties/navigation/divisionNav.js").ProductNavigation<"default">, z.ZodTypeDef, import("./properties/navigation/divisionNav.js").ProductNavigation<"default">>, "many">;
|
|
2573
|
+
}, "strip", z.ZodTypeAny, {
|
|
2574
|
+
products: import("./properties/navigation/divisionNav.js").ProductNavigation<"default">[];
|
|
2575
|
+
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
2576
|
+
}, {
|
|
2577
|
+
products: import("./properties/navigation/divisionNav.js").ProductNavigation<"default">[];
|
|
2578
|
+
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
2579
|
+
}>, z.ZodObject<{
|
|
2550
2580
|
global: z.ZodOptional<z.ZodType<import("./properties/navigation/divisionNav.js").GlobalNavigation, z.ZodTypeDef, import("./properties/navigation/divisionNav.js").GlobalNavigation>>;
|
|
2551
2581
|
languages: z.ZodArray<z.ZodType<import("./properties/navigation/divisionNav.js").LanguageNavigation<"default">, z.ZodTypeDef, import("./properties/navigation/divisionNav.js").LanguageNavigation<"default">>, "many">;
|
|
2552
2582
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3682,6 +3712,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
3682
3712
|
dark?: string | undefined;
|
|
3683
3713
|
};
|
|
3684
3714
|
navigation: ({
|
|
3715
|
+
products: import("./properties/navigation/divisionNav.js").ProductNavigation<"default">[];
|
|
3716
|
+
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
3717
|
+
} | {
|
|
3685
3718
|
languages: import("./properties/navigation/divisionNav.js").LanguageNavigation<"default">[];
|
|
3686
3719
|
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
3687
3720
|
} | {
|
|
@@ -3756,6 +3789,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
3756
3789
|
pages: any[];
|
|
3757
3790
|
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
3758
3791
|
}) & ({
|
|
3792
|
+
products: import("./properties/navigation/divisionNav.js").ProductNavigation<"default">[];
|
|
3793
|
+
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
3794
|
+
} | {
|
|
3759
3795
|
languages: import("./properties/navigation/divisionNav.js").LanguageNavigation<"default">[];
|
|
3760
3796
|
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
3761
3797
|
} | {
|
|
@@ -4076,6 +4112,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
4076
4112
|
dark?: string | undefined;
|
|
4077
4113
|
};
|
|
4078
4114
|
navigation: ({
|
|
4115
|
+
products: import("./properties/navigation/divisionNav.js").ProductNavigation<"default">[];
|
|
4116
|
+
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
4117
|
+
} | {
|
|
4079
4118
|
languages: import("./properties/navigation/divisionNav.js").LanguageNavigation<"default">[];
|
|
4080
4119
|
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
4081
4120
|
} | {
|
|
@@ -4150,6 +4189,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
4150
4189
|
pages: any[];
|
|
4151
4190
|
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
4152
4191
|
}) & ({
|
|
4192
|
+
products: import("./properties/navigation/divisionNav.js").ProductNavigation<"default">[];
|
|
4193
|
+
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
4194
|
+
} | {
|
|
4153
4195
|
languages: import("./properties/navigation/divisionNav.js").LanguageNavigation<"default">[];
|
|
4154
4196
|
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
4155
4197
|
} | {
|
|
@@ -4777,6 +4819,15 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
4777
4819
|
} | undefined;
|
|
4778
4820
|
}>>;
|
|
4779
4821
|
navigation: z.ZodUnion<[z.ZodObject<{
|
|
4822
|
+
global: z.ZodOptional<z.ZodType<import("./properties/navigation/divisionNav.js").GlobalNavigation, z.ZodTypeDef, import("./properties/navigation/divisionNav.js").GlobalNavigation>>;
|
|
4823
|
+
products: z.ZodArray<z.ZodType<import("./properties/navigation/divisionNav.js").ProductNavigation<"default">, z.ZodTypeDef, import("./properties/navigation/divisionNav.js").ProductNavigation<"default">>, "many">;
|
|
4824
|
+
}, "strip", z.ZodTypeAny, {
|
|
4825
|
+
products: import("./properties/navigation/divisionNav.js").ProductNavigation<"default">[];
|
|
4826
|
+
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
4827
|
+
}, {
|
|
4828
|
+
products: import("./properties/navigation/divisionNav.js").ProductNavigation<"default">[];
|
|
4829
|
+
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
4830
|
+
}>, z.ZodObject<{
|
|
4780
4831
|
global: z.ZodOptional<z.ZodType<import("./properties/navigation/divisionNav.js").GlobalNavigation, z.ZodTypeDef, import("./properties/navigation/divisionNav.js").GlobalNavigation>>;
|
|
4781
4832
|
languages: z.ZodArray<z.ZodType<import("./properties/navigation/divisionNav.js").LanguageNavigation<"default">, z.ZodTypeDef, import("./properties/navigation/divisionNav.js").LanguageNavigation<"default">>, "many">;
|
|
4782
4833
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5912,6 +5963,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
5912
5963
|
dark?: string | undefined;
|
|
5913
5964
|
};
|
|
5914
5965
|
navigation: ({
|
|
5966
|
+
products: import("./properties/navigation/divisionNav.js").ProductNavigation<"default">[];
|
|
5967
|
+
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
5968
|
+
} | {
|
|
5915
5969
|
languages: import("./properties/navigation/divisionNav.js").LanguageNavigation<"default">[];
|
|
5916
5970
|
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
5917
5971
|
} | {
|
|
@@ -5986,6 +6040,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
5986
6040
|
pages: any[];
|
|
5987
6041
|
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
5988
6042
|
}) & ({
|
|
6043
|
+
products: import("./properties/navigation/divisionNav.js").ProductNavigation<"default">[];
|
|
6044
|
+
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
6045
|
+
} | {
|
|
5989
6046
|
languages: import("./properties/navigation/divisionNav.js").LanguageNavigation<"default">[];
|
|
5990
6047
|
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
5991
6048
|
} | {
|
|
@@ -6306,6 +6363,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
6306
6363
|
dark?: string | undefined;
|
|
6307
6364
|
};
|
|
6308
6365
|
navigation: ({
|
|
6366
|
+
products: import("./properties/navigation/divisionNav.js").ProductNavigation<"default">[];
|
|
6367
|
+
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
6368
|
+
} | {
|
|
6309
6369
|
languages: import("./properties/navigation/divisionNav.js").LanguageNavigation<"default">[];
|
|
6310
6370
|
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
6311
6371
|
} | {
|
|
@@ -6380,6 +6440,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
6380
6440
|
pages: any[];
|
|
6381
6441
|
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
6382
6442
|
}) & ({
|
|
6443
|
+
products: import("./properties/navigation/divisionNav.js").ProductNavigation<"default">[];
|
|
6444
|
+
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
6445
|
+
} | {
|
|
6383
6446
|
languages: import("./properties/navigation/divisionNav.js").LanguageNavigation<"default">[];
|
|
6384
6447
|
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
6385
6448
|
} | {
|
|
@@ -7007,6 +7070,15 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
7007
7070
|
} | undefined;
|
|
7008
7071
|
}>>;
|
|
7009
7072
|
navigation: z.ZodUnion<[z.ZodObject<{
|
|
7073
|
+
global: z.ZodOptional<z.ZodType<import("./properties/navigation/divisionNav.js").GlobalNavigation, z.ZodTypeDef, import("./properties/navigation/divisionNav.js").GlobalNavigation>>;
|
|
7074
|
+
products: z.ZodArray<z.ZodType<import("./properties/navigation/divisionNav.js").ProductNavigation<"default">, z.ZodTypeDef, import("./properties/navigation/divisionNav.js").ProductNavigation<"default">>, "many">;
|
|
7075
|
+
}, "strip", z.ZodTypeAny, {
|
|
7076
|
+
products: import("./properties/navigation/divisionNav.js").ProductNavigation<"default">[];
|
|
7077
|
+
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
7078
|
+
}, {
|
|
7079
|
+
products: import("./properties/navigation/divisionNav.js").ProductNavigation<"default">[];
|
|
7080
|
+
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
7081
|
+
}>, z.ZodObject<{
|
|
7010
7082
|
global: z.ZodOptional<z.ZodType<import("./properties/navigation/divisionNav.js").GlobalNavigation, z.ZodTypeDef, import("./properties/navigation/divisionNav.js").GlobalNavigation>>;
|
|
7011
7083
|
languages: z.ZodArray<z.ZodType<import("./properties/navigation/divisionNav.js").LanguageNavigation<"default">, z.ZodTypeDef, import("./properties/navigation/divisionNav.js").LanguageNavigation<"default">>, "many">;
|
|
7012
7084
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -8142,6 +8214,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
8142
8214
|
dark?: string | undefined;
|
|
8143
8215
|
};
|
|
8144
8216
|
navigation: ({
|
|
8217
|
+
products: import("./properties/navigation/divisionNav.js").ProductNavigation<"default">[];
|
|
8218
|
+
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
8219
|
+
} | {
|
|
8145
8220
|
languages: import("./properties/navigation/divisionNav.js").LanguageNavigation<"default">[];
|
|
8146
8221
|
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
8147
8222
|
} | {
|
|
@@ -8216,6 +8291,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
8216
8291
|
pages: any[];
|
|
8217
8292
|
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
8218
8293
|
}) & ({
|
|
8294
|
+
products: import("./properties/navigation/divisionNav.js").ProductNavigation<"default">[];
|
|
8295
|
+
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
8296
|
+
} | {
|
|
8219
8297
|
languages: import("./properties/navigation/divisionNav.js").LanguageNavigation<"default">[];
|
|
8220
8298
|
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
8221
8299
|
} | {
|
|
@@ -8536,6 +8614,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
8536
8614
|
dark?: string | undefined;
|
|
8537
8615
|
};
|
|
8538
8616
|
navigation: ({
|
|
8617
|
+
products: import("./properties/navigation/divisionNav.js").ProductNavigation<"default">[];
|
|
8618
|
+
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
8619
|
+
} | {
|
|
8539
8620
|
languages: import("./properties/navigation/divisionNav.js").LanguageNavigation<"default">[];
|
|
8540
8621
|
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
8541
8622
|
} | {
|
|
@@ -8610,6 +8691,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
8610
8691
|
pages: any[];
|
|
8611
8692
|
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
8612
8693
|
}) & ({
|
|
8694
|
+
products: import("./properties/navigation/divisionNav.js").ProductNavigation<"default">[];
|
|
8695
|
+
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
8696
|
+
} | {
|
|
8613
8697
|
languages: import("./properties/navigation/divisionNav.js").LanguageNavigation<"default">[];
|
|
8614
8698
|
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
8615
8699
|
} | {
|
|
@@ -9237,6 +9321,15 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
9237
9321
|
} | undefined;
|
|
9238
9322
|
}>>;
|
|
9239
9323
|
navigation: z.ZodUnion<[z.ZodObject<{
|
|
9324
|
+
global: z.ZodOptional<z.ZodType<import("./properties/navigation/divisionNav.js").GlobalNavigation, z.ZodTypeDef, import("./properties/navigation/divisionNav.js").GlobalNavigation>>;
|
|
9325
|
+
products: z.ZodArray<z.ZodType<import("./properties/navigation/divisionNav.js").ProductNavigation<"default">, z.ZodTypeDef, import("./properties/navigation/divisionNav.js").ProductNavigation<"default">>, "many">;
|
|
9326
|
+
}, "strip", z.ZodTypeAny, {
|
|
9327
|
+
products: import("./properties/navigation/divisionNav.js").ProductNavigation<"default">[];
|
|
9328
|
+
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
9329
|
+
}, {
|
|
9330
|
+
products: import("./properties/navigation/divisionNav.js").ProductNavigation<"default">[];
|
|
9331
|
+
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
9332
|
+
}>, z.ZodObject<{
|
|
9240
9333
|
global: z.ZodOptional<z.ZodType<import("./properties/navigation/divisionNav.js").GlobalNavigation, z.ZodTypeDef, import("./properties/navigation/divisionNav.js").GlobalNavigation>>;
|
|
9241
9334
|
languages: z.ZodArray<z.ZodType<import("./properties/navigation/divisionNav.js").LanguageNavigation<"default">, z.ZodTypeDef, import("./properties/navigation/divisionNav.js").LanguageNavigation<"default">>, "many">;
|
|
9242
9335
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -10372,6 +10465,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
10372
10465
|
dark?: string | undefined;
|
|
10373
10466
|
};
|
|
10374
10467
|
navigation: ({
|
|
10468
|
+
products: import("./properties/navigation/divisionNav.js").ProductNavigation<"default">[];
|
|
10469
|
+
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
10470
|
+
} | {
|
|
10375
10471
|
languages: import("./properties/navigation/divisionNav.js").LanguageNavigation<"default">[];
|
|
10376
10472
|
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
10377
10473
|
} | {
|
|
@@ -10446,6 +10542,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
10446
10542
|
pages: any[];
|
|
10447
10543
|
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
10448
10544
|
}) & ({
|
|
10545
|
+
products: import("./properties/navigation/divisionNav.js").ProductNavigation<"default">[];
|
|
10546
|
+
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
10547
|
+
} | {
|
|
10449
10548
|
languages: import("./properties/navigation/divisionNav.js").LanguageNavigation<"default">[];
|
|
10450
10549
|
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
10451
10550
|
} | {
|
|
@@ -10766,6 +10865,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
10766
10865
|
dark?: string | undefined;
|
|
10767
10866
|
};
|
|
10768
10867
|
navigation: ({
|
|
10868
|
+
products: import("./properties/navigation/divisionNav.js").ProductNavigation<"default">[];
|
|
10869
|
+
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
10870
|
+
} | {
|
|
10769
10871
|
languages: import("./properties/navigation/divisionNav.js").LanguageNavigation<"default">[];
|
|
10770
10872
|
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
10771
10873
|
} | {
|
|
@@ -10840,6 +10942,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
10840
10942
|
pages: any[];
|
|
10841
10943
|
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
10842
10944
|
}) & ({
|
|
10945
|
+
products: import("./properties/navigation/divisionNav.js").ProductNavigation<"default">[];
|
|
10946
|
+
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
10947
|
+
} | {
|
|
10843
10948
|
languages: import("./properties/navigation/divisionNav.js").LanguageNavigation<"default">[];
|
|
10844
10949
|
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
10845
10950
|
} | {
|
|
@@ -11467,6 +11572,15 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
11467
11572
|
} | undefined;
|
|
11468
11573
|
}>>;
|
|
11469
11574
|
navigation: z.ZodUnion<[z.ZodObject<{
|
|
11575
|
+
global: z.ZodOptional<z.ZodType<import("./properties/navigation/divisionNav.js").GlobalNavigation, z.ZodTypeDef, import("./properties/navigation/divisionNav.js").GlobalNavigation>>;
|
|
11576
|
+
products: z.ZodArray<z.ZodType<import("./properties/navigation/divisionNav.js").ProductNavigation<"default">, z.ZodTypeDef, import("./properties/navigation/divisionNav.js").ProductNavigation<"default">>, "many">;
|
|
11577
|
+
}, "strip", z.ZodTypeAny, {
|
|
11578
|
+
products: import("./properties/navigation/divisionNav.js").ProductNavigation<"default">[];
|
|
11579
|
+
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
11580
|
+
}, {
|
|
11581
|
+
products: import("./properties/navigation/divisionNav.js").ProductNavigation<"default">[];
|
|
11582
|
+
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
11583
|
+
}>, z.ZodObject<{
|
|
11470
11584
|
global: z.ZodOptional<z.ZodType<import("./properties/navigation/divisionNav.js").GlobalNavigation, z.ZodTypeDef, import("./properties/navigation/divisionNav.js").GlobalNavigation>>;
|
|
11471
11585
|
languages: z.ZodArray<z.ZodType<import("./properties/navigation/divisionNav.js").LanguageNavigation<"default">, z.ZodTypeDef, import("./properties/navigation/divisionNav.js").LanguageNavigation<"default">>, "many">;
|
|
11472
11586
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -12602,6 +12716,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
12602
12716
|
dark?: string | undefined;
|
|
12603
12717
|
};
|
|
12604
12718
|
navigation: ({
|
|
12719
|
+
products: import("./properties/navigation/divisionNav.js").ProductNavigation<"default">[];
|
|
12720
|
+
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
12721
|
+
} | {
|
|
12605
12722
|
languages: import("./properties/navigation/divisionNav.js").LanguageNavigation<"default">[];
|
|
12606
12723
|
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
12607
12724
|
} | {
|
|
@@ -12676,6 +12793,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
12676
12793
|
pages: any[];
|
|
12677
12794
|
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
12678
12795
|
}) & ({
|
|
12796
|
+
products: import("./properties/navigation/divisionNav.js").ProductNavigation<"default">[];
|
|
12797
|
+
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
12798
|
+
} | {
|
|
12679
12799
|
languages: import("./properties/navigation/divisionNav.js").LanguageNavigation<"default">[];
|
|
12680
12800
|
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
12681
12801
|
} | {
|
|
@@ -12996,6 +13116,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
12996
13116
|
dark?: string | undefined;
|
|
12997
13117
|
};
|
|
12998
13118
|
navigation: ({
|
|
13119
|
+
products: import("./properties/navigation/divisionNav.js").ProductNavigation<"default">[];
|
|
13120
|
+
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
13121
|
+
} | {
|
|
12999
13122
|
languages: import("./properties/navigation/divisionNav.js").LanguageNavigation<"default">[];
|
|
13000
13123
|
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
13001
13124
|
} | {
|
|
@@ -13070,6 +13193,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
13070
13193
|
pages: any[];
|
|
13071
13194
|
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
13072
13195
|
}) & ({
|
|
13196
|
+
products: import("./properties/navigation/divisionNav.js").ProductNavigation<"default">[];
|
|
13197
|
+
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
13198
|
+
} | {
|
|
13073
13199
|
languages: import("./properties/navigation/divisionNav.js").LanguageNavigation<"default">[];
|
|
13074
13200
|
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
13075
13201
|
} | {
|
|
@@ -13697,6 +13823,15 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
13697
13823
|
} | undefined;
|
|
13698
13824
|
}>>;
|
|
13699
13825
|
navigation: z.ZodUnion<[z.ZodObject<{
|
|
13826
|
+
global: z.ZodOptional<z.ZodType<import("./properties/navigation/divisionNav.js").GlobalNavigation, z.ZodTypeDef, import("./properties/navigation/divisionNav.js").GlobalNavigation>>;
|
|
13827
|
+
products: z.ZodArray<z.ZodType<import("./properties/navigation/divisionNav.js").ProductNavigation<"default">, z.ZodTypeDef, import("./properties/navigation/divisionNav.js").ProductNavigation<"default">>, "many">;
|
|
13828
|
+
}, "strip", z.ZodTypeAny, {
|
|
13829
|
+
products: import("./properties/navigation/divisionNav.js").ProductNavigation<"default">[];
|
|
13830
|
+
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
13831
|
+
}, {
|
|
13832
|
+
products: import("./properties/navigation/divisionNav.js").ProductNavigation<"default">[];
|
|
13833
|
+
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
13834
|
+
}>, z.ZodObject<{
|
|
13700
13835
|
global: z.ZodOptional<z.ZodType<import("./properties/navigation/divisionNav.js").GlobalNavigation, z.ZodTypeDef, import("./properties/navigation/divisionNav.js").GlobalNavigation>>;
|
|
13701
13836
|
languages: z.ZodArray<z.ZodType<import("./properties/navigation/divisionNav.js").LanguageNavigation<"default">, z.ZodTypeDef, import("./properties/navigation/divisionNav.js").LanguageNavigation<"default">>, "many">;
|
|
13702
13837
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -14832,6 +14967,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
14832
14967
|
dark?: string | undefined;
|
|
14833
14968
|
};
|
|
14834
14969
|
navigation: ({
|
|
14970
|
+
products: import("./properties/navigation/divisionNav.js").ProductNavigation<"default">[];
|
|
14971
|
+
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
14972
|
+
} | {
|
|
14835
14973
|
languages: import("./properties/navigation/divisionNav.js").LanguageNavigation<"default">[];
|
|
14836
14974
|
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
14837
14975
|
} | {
|
|
@@ -14906,6 +15044,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
14906
15044
|
pages: any[];
|
|
14907
15045
|
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
14908
15046
|
}) & ({
|
|
15047
|
+
products: import("./properties/navigation/divisionNav.js").ProductNavigation<"default">[];
|
|
15048
|
+
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
15049
|
+
} | {
|
|
14909
15050
|
languages: import("./properties/navigation/divisionNav.js").LanguageNavigation<"default">[];
|
|
14910
15051
|
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
14911
15052
|
} | {
|
|
@@ -15226,6 +15367,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
15226
15367
|
dark?: string | undefined;
|
|
15227
15368
|
};
|
|
15228
15369
|
navigation: ({
|
|
15370
|
+
products: import("./properties/navigation/divisionNav.js").ProductNavigation<"default">[];
|
|
15371
|
+
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
15372
|
+
} | {
|
|
15229
15373
|
languages: import("./properties/navigation/divisionNav.js").LanguageNavigation<"default">[];
|
|
15230
15374
|
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
15231
15375
|
} | {
|
|
@@ -15300,6 +15444,9 @@ export declare const docsConfigSchema: z.ZodDiscriminatedUnion<"theme", [z.ZodOb
|
|
|
15300
15444
|
pages: any[];
|
|
15301
15445
|
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
15302
15446
|
}) & ({
|
|
15447
|
+
products: import("./properties/navigation/divisionNav.js").ProductNavigation<"default">[];
|
|
15448
|
+
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
15449
|
+
} | {
|
|
15303
15450
|
languages: import("./properties/navigation/divisionNav.js").LanguageNavigation<"default">[];
|
|
15304
15451
|
global?: import("./properties/navigation/divisionNav.js").GlobalNavigation | undefined;
|
|
15305
15452
|
} | {
|
|
@@ -9,6 +9,7 @@ export * from './navigation/tabs.js';
|
|
|
9
9
|
export * from './navigation/version.js';
|
|
10
10
|
export * from './navigation/dropdown.js';
|
|
11
11
|
export * from './navigation/menu.js';
|
|
12
|
+
export * from './navigation/products.js';
|
|
12
13
|
export * from './redirects.js';
|
|
13
14
|
export * from './reusable/index.js';
|
|
14
15
|
export * from './contextual.js';
|
|
@@ -9,6 +9,7 @@ export * from './navigation/tabs.js';
|
|
|
9
9
|
export * from './navigation/version.js';
|
|
10
10
|
export * from './navigation/dropdown.js';
|
|
11
11
|
export * from './navigation/menu.js';
|
|
12
|
+
export * from './navigation/products.js';
|
|
12
13
|
export * from './redirects.js';
|
|
13
14
|
export * from './reusable/index.js';
|
|
14
15
|
export * from './contextual.js';
|
|
@@ -6,6 +6,7 @@ import { GroupsConfig, DecoratedGroupsConfig } from './groups.js';
|
|
|
6
6
|
import { BaseLanguageSchema } from './languages.js';
|
|
7
7
|
import { BaseMenuItemSchema } from './menu.js';
|
|
8
8
|
import { PagesConfig, DecoratedPagesConfig } from './pages.js';
|
|
9
|
+
import { BaseProductSchema } from './products.js';
|
|
9
10
|
import { BaseTabSchema } from './tabs.js';
|
|
10
11
|
import { BaseVersionSchema } from './version.js';
|
|
11
12
|
type NavigationType = 'default' | 'decorated';
|
|
@@ -59,8 +60,9 @@ type ExcludedDivisions = {
|
|
|
59
60
|
versions: 'versions' | 'menu';
|
|
60
61
|
dropdowns: 'dropdowns' | 'menu';
|
|
61
62
|
anchors: 'anchors' | 'menu';
|
|
63
|
+
products: 'products' | 'menu';
|
|
62
64
|
tabs: 'tabs' | 'menu';
|
|
63
|
-
menu: 'languages' | 'versions' | 'dropdowns' | 'anchors' | 'menu';
|
|
65
|
+
menu: 'languages' | 'versions' | 'dropdowns' | 'anchors' | 'menu' | 'products';
|
|
64
66
|
};
|
|
65
67
|
type BaseNavigation<T extends NavigationType, K extends Division> = {
|
|
66
68
|
languages: K extends ExcludedDivisions['languages'] ? never : LanguageNavigation<T>[];
|
|
@@ -70,6 +72,8 @@ type BaseNavigation<T extends NavigationType, K extends Division> = {
|
|
|
70
72
|
dropdowns: K extends ExcludedDivisions['dropdowns'] ? never : DropdownNavigation<T>[];
|
|
71
73
|
} | {
|
|
72
74
|
anchors: K extends ExcludedDivisions['anchors'] ? never : AnchorNavigation<T>[];
|
|
75
|
+
} | {
|
|
76
|
+
products: K extends ExcludedDivisions['products'] ? never : ProductNavigation<T>[];
|
|
73
77
|
} | {
|
|
74
78
|
tabs: K extends ExcludedDivisions['tabs'] ? never : TabNavigation<T>[];
|
|
75
79
|
} | {
|
|
@@ -81,6 +85,7 @@ type BaseNavigation<T extends NavigationType, K extends Division> = {
|
|
|
81
85
|
} | {
|
|
82
86
|
href: string;
|
|
83
87
|
};
|
|
88
|
+
export type ProductNavigation<T extends NavigationType> = BaseProductSchema & (OtherConfigs<T> | (BaseNavigation<T, 'products'> & OtherConfigs<T>));
|
|
84
89
|
export type AnchorNavigation<T extends NavigationType> = BaseAnchorSchema & (OtherConfigs<T> | (BaseNavigation<T, 'anchors'> & OtherConfigs<T>));
|
|
85
90
|
export type LanguageNavigation<T extends NavigationType> = BaseLanguageSchema & (OtherConfigs<T> | (BaseNavigation<T, 'languages'> & OtherConfigs<T>));
|
|
86
91
|
export type VersionNavigation<T extends NavigationType> = BaseVersionSchema & (OtherConfigs<T> | (BaseNavigation<T, 'versions'> & OtherConfigs<T>));
|
|
@@ -103,5 +108,8 @@ export type GlobalNavigation = {
|
|
|
103
108
|
anchors?: (BaseAnchorSchema & {
|
|
104
109
|
href: string;
|
|
105
110
|
})[];
|
|
111
|
+
products?: (BaseProductSchema & {
|
|
112
|
+
href: string;
|
|
113
|
+
})[];
|
|
106
114
|
};
|
|
107
115
|
export {};
|
|
@@ -4,9 +4,19 @@ import { DecoratedDropdownConfig, DropdownConfig } from './dropdown.js';
|
|
|
4
4
|
import { DecoratedGroupConfig, GroupConfig } from './groups.js';
|
|
5
5
|
import { DecoratedLanguageConfig, LanguageConfig } from './languages.js';
|
|
6
6
|
import { DecoratedMenuItemConfig, MenuItemConfig } from './menu.js';
|
|
7
|
+
import { DecoratedProductConfig, ProductConfig } from './products.js';
|
|
7
8
|
import { DecoratedTabConfig, TabConfig } from './tabs.js';
|
|
8
9
|
import { DecoratedVersionConfig, VersionConfig } from './version.js';
|
|
9
10
|
export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
|
|
11
|
+
global: z.ZodOptional<z.ZodType<import("./divisionNav.js").GlobalNavigation, z.ZodTypeDef, import("./divisionNav.js").GlobalNavigation>>;
|
|
12
|
+
products: z.ZodArray<z.ZodType<import("./divisionNav.js").ProductNavigation<"default">, z.ZodTypeDef, import("./divisionNav.js").ProductNavigation<"default">>, "many">;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
products: import("./divisionNav.js").ProductNavigation<"default">[];
|
|
15
|
+
global?: import("./divisionNav.js").GlobalNavigation | undefined;
|
|
16
|
+
}, {
|
|
17
|
+
products: import("./divisionNav.js").ProductNavigation<"default">[];
|
|
18
|
+
global?: import("./divisionNav.js").GlobalNavigation | undefined;
|
|
19
|
+
}>, z.ZodObject<{
|
|
10
20
|
global: z.ZodOptional<z.ZodType<import("./divisionNav.js").GlobalNavigation, z.ZodTypeDef, import("./divisionNav.js").GlobalNavigation>>;
|
|
11
21
|
languages: z.ZodArray<z.ZodType<import("./divisionNav.js").LanguageNavigation<"default">, z.ZodTypeDef, import("./divisionNav.js").LanguageNavigation<"default">>, "many">;
|
|
12
22
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -366,6 +376,12 @@ export declare const navigationSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
366
376
|
global?: import("./divisionNav.js").GlobalNavigation | undefined;
|
|
367
377
|
}>]>;
|
|
368
378
|
export declare const decoratedNavigationSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
379
|
+
products: z.ZodArray<z.ZodType<import("./divisionNav.js").ProductNavigation<"default">, z.ZodTypeDef, import("./divisionNav.js").ProductNavigation<"default">>, "many">;
|
|
380
|
+
}, "strip", z.ZodTypeAny, {
|
|
381
|
+
products: import("./divisionNav.js").ProductNavigation<"default">[];
|
|
382
|
+
}, {
|
|
383
|
+
products: import("./divisionNav.js").ProductNavigation<"default">[];
|
|
384
|
+
}>, z.ZodObject<{
|
|
369
385
|
languages: z.ZodArray<z.ZodType<import("./divisionNav.js").LanguageNavigation<"decorated">, z.ZodTypeDef, import("./divisionNav.js").LanguageNavigation<"decorated">>, "many">;
|
|
370
386
|
}, "strip", z.ZodTypeAny, {
|
|
371
387
|
languages: import("./divisionNav.js").LanguageNavigation<"decorated">[];
|
|
@@ -707,5 +723,5 @@ export declare const decoratedNavigationSchema: z.ZodIntersection<z.ZodUnion<[z.
|
|
|
707
723
|
}>>;
|
|
708
724
|
export type NavigationConfig = z.infer<typeof navigationSchema>;
|
|
709
725
|
export type DecoratedNavigationConfig = z.infer<typeof decoratedNavigationSchema>;
|
|
710
|
-
export type DivisionNavigationType = AnchorConfig | TabConfig | DropdownConfig | VersionConfig | LanguageConfig | MenuItemConfig | GroupConfig;
|
|
711
|
-
export type DecoratedDivisionNavigationType = DecoratedAnchorConfig | DecoratedTabConfig | DecoratedDropdownConfig | DecoratedVersionConfig | DecoratedLanguageConfig | DecoratedMenuItemConfig | DecoratedGroupConfig;
|
|
726
|
+
export type DivisionNavigationType = ProductConfig | AnchorConfig | TabConfig | DropdownConfig | VersionConfig | LanguageConfig | MenuItemConfig | GroupConfig;
|
|
727
|
+
export type DecoratedDivisionNavigationType = DecoratedProductConfig | DecoratedAnchorConfig | DecoratedTabConfig | DecoratedDropdownConfig | DecoratedVersionConfig | DecoratedLanguageConfig | DecoratedMenuItemConfig | DecoratedGroupConfig;
|
|
@@ -5,11 +5,13 @@ import { globalSchema } from './global.js';
|
|
|
5
5
|
import { decoratedGroupsSchema, groupsSchema, } from './groups.js';
|
|
6
6
|
import { decoratedLanguagesSchema, languagesSchema, } from './languages.js';
|
|
7
7
|
import { decoratedPagesSchema, pagesSchema } from './pages.js';
|
|
8
|
+
import { productsSchema } from './products.js';
|
|
8
9
|
import { decoratedTabsSchema, tabsSchema } from './tabs.js';
|
|
9
10
|
import { decoratedVersionsSchema, versionsSchema, } from './version.js';
|
|
10
11
|
const baseNavigationSchema = z.object({ global: globalSchema.optional() });
|
|
11
12
|
export const navigationSchema = z
|
|
12
13
|
.union([
|
|
14
|
+
baseNavigationSchema.extend({ products: productsSchema }),
|
|
13
15
|
baseNavigationSchema.extend({ languages: languagesSchema }),
|
|
14
16
|
baseNavigationSchema.extend({ versions: versionsSchema }),
|
|
15
17
|
baseNavigationSchema.extend({ tabs: tabsSchema }),
|
|
@@ -21,6 +23,7 @@ export const navigationSchema = z
|
|
|
21
23
|
.describe('The navigation structure of the content');
|
|
22
24
|
export const decoratedNavigationSchema = z
|
|
23
25
|
.union([
|
|
26
|
+
z.object({ products: productsSchema }),
|
|
24
27
|
z.object({ languages: decoratedLanguagesSchema }),
|
|
25
28
|
z.object({ versions: decoratedVersionsSchema }),
|
|
26
29
|
z.object({ tabs: decoratedTabsSchema }),
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ProductNavigation } from './divisionNav.js';
|
|
3
|
+
export declare const baseProductSchema: z.ZodObject<{
|
|
4
|
+
product: z.ZodString;
|
|
5
|
+
name: z.ZodOptional<z.ZodString>;
|
|
6
|
+
icon: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
7
|
+
style: z.ZodOptional<z.ZodEnum<["brands", "duotone", "light", "regular", "sharp-duotone-solid", "sharp-light", "sharp-regular", "sharp-solid", "sharp-thin", "solid", "thin"]>>;
|
|
8
|
+
name: z.ZodEffects<z.ZodString, string, string>;
|
|
9
|
+
library: z.ZodOptional<z.ZodEnum<["fontawesome", "lucide"]>>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
name: string;
|
|
12
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
13
|
+
library?: "fontawesome" | "lucide" | undefined;
|
|
14
|
+
}, {
|
|
15
|
+
name: string;
|
|
16
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
17
|
+
library?: "fontawesome" | "lucide" | undefined;
|
|
18
|
+
}>]>>;
|
|
19
|
+
color: z.ZodOptional<z.ZodObject<{
|
|
20
|
+
light: z.ZodOptional<z.ZodString>;
|
|
21
|
+
dark: z.ZodOptional<z.ZodString>;
|
|
22
|
+
}, "strict", z.ZodTypeAny, {
|
|
23
|
+
light?: string | undefined;
|
|
24
|
+
dark?: string | undefined;
|
|
25
|
+
}, {
|
|
26
|
+
light?: string | undefined;
|
|
27
|
+
dark?: string | undefined;
|
|
28
|
+
}>>;
|
|
29
|
+
description: z.ZodOptional<z.ZodString>;
|
|
30
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
product: string;
|
|
33
|
+
name?: string | undefined;
|
|
34
|
+
icon?: string | {
|
|
35
|
+
name: string;
|
|
36
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
37
|
+
library?: "fontawesome" | "lucide" | undefined;
|
|
38
|
+
} | undefined;
|
|
39
|
+
color?: {
|
|
40
|
+
light?: string | undefined;
|
|
41
|
+
dark?: string | undefined;
|
|
42
|
+
} | undefined;
|
|
43
|
+
description?: string | undefined;
|
|
44
|
+
hidden?: boolean | undefined;
|
|
45
|
+
}, {
|
|
46
|
+
product: string;
|
|
47
|
+
name?: string | undefined;
|
|
48
|
+
icon?: string | {
|
|
49
|
+
name: string;
|
|
50
|
+
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
51
|
+
library?: "fontawesome" | "lucide" | undefined;
|
|
52
|
+
} | undefined;
|
|
53
|
+
color?: {
|
|
54
|
+
light?: string | undefined;
|
|
55
|
+
dark?: string | undefined;
|
|
56
|
+
} | undefined;
|
|
57
|
+
description?: string | undefined;
|
|
58
|
+
hidden?: boolean | undefined;
|
|
59
|
+
}>;
|
|
60
|
+
export declare const productSchema: z.ZodType<ProductNavigation<'default'>>;
|
|
61
|
+
export declare const decoratedProductSchema: z.ZodType<ProductNavigation<'decorated'>>;
|
|
62
|
+
export declare const productsSchema: z.ZodArray<z.ZodType<ProductNavigation<"default">, z.ZodTypeDef, ProductNavigation<"default">>, "many">;
|
|
63
|
+
export declare const decoratedProductsSchema: z.ZodArray<z.ZodType<ProductNavigation<"decorated">, z.ZodTypeDef, ProductNavigation<"decorated">>, "many">;
|
|
64
|
+
export type BaseProductSchema = z.infer<typeof baseProductSchema>;
|
|
65
|
+
export type ProductConfig = z.infer<typeof productSchema>;
|
|
66
|
+
export type ProductsConfig = z.infer<typeof productsSchema>;
|
|
67
|
+
export type DecoratedProductConfig = z.infer<typeof decoratedProductSchema>;
|
|
68
|
+
export type DecoratedProductsConfig = z.infer<typeof decoratedProductsSchema>;
|