@mintlify/validation 0.1.243 → 0.1.245
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 +124 -20
- package/dist/mint-config/schemas/v2/properties/api.d.ts +18 -0
- package/dist/mint-config/schemas/v2/properties/api.js +13 -0
- package/dist/mint-config/schemas/v2/properties/background.d.ts +3 -3
- package/dist/mint-config/schemas/v2/properties/background.js +2 -2
- package/dist/mint-config/schemas/v2/themes/mint.d.ts +31 -5
- package/dist/mint-config/schemas/v2/themes/prism.d.ts +31 -5
- package/dist/mint-config/schemas/v2/themes/quill.d.ts +31 -5
- package/dist/mint-config/schemas/v2/themes/reusable/index.d.ts +21 -3
- package/dist/mint-config/schemas/v2/themes/venus.d.ts +31 -5
- package/dist/mint-config/upgrades/upgradeToDocsConfig.js +22 -15
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -58,6 +58,16 @@ export declare const prismConfigSchema: z.ZodObject<{
|
|
|
58
58
|
}, {
|
|
59
59
|
languages?: string[] | undefined;
|
|
60
60
|
}>>;
|
|
61
|
+
mdx: z.ZodOptional<z.ZodObject<{
|
|
62
|
+
auth: z.ZodOptional<z.ZodEnum<["bearer", "basic", "key", "cobo"]>>;
|
|
63
|
+
base: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
64
|
+
}, "strip", z.ZodTypeAny, {
|
|
65
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
66
|
+
base?: string | string[] | undefined;
|
|
67
|
+
}, {
|
|
68
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
69
|
+
base?: string | string[] | undefined;
|
|
70
|
+
}>>;
|
|
61
71
|
}, "strip", z.ZodTypeAny, {
|
|
62
72
|
playground?: {
|
|
63
73
|
display: "simple" | "none" | "interactive";
|
|
@@ -66,6 +76,10 @@ export declare const prismConfigSchema: z.ZodObject<{
|
|
|
66
76
|
examples?: {
|
|
67
77
|
languages?: string[] | undefined;
|
|
68
78
|
} | undefined;
|
|
79
|
+
mdx?: {
|
|
80
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
81
|
+
base?: string | string[] | undefined;
|
|
82
|
+
} | undefined;
|
|
69
83
|
}, {
|
|
70
84
|
playground?: {
|
|
71
85
|
display?: "simple" | "none" | "interactive" | undefined;
|
|
@@ -74,6 +88,10 @@ export declare const prismConfigSchema: z.ZodObject<{
|
|
|
74
88
|
examples?: {
|
|
75
89
|
languages?: string[] | undefined;
|
|
76
90
|
} | undefined;
|
|
91
|
+
mdx?: {
|
|
92
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
93
|
+
base?: string | string[] | undefined;
|
|
94
|
+
} | undefined;
|
|
77
95
|
}>>;
|
|
78
96
|
appearance: z.ZodOptional<z.ZodObject<{
|
|
79
97
|
default: z.ZodDefault<z.ZodEnum<["system", "light", "dark"]>>;
|
|
@@ -96,7 +114,7 @@ export declare const prismConfigSchema: z.ZodObject<{
|
|
|
96
114
|
light: string;
|
|
97
115
|
dark: string;
|
|
98
116
|
}>]>>;
|
|
99
|
-
decoration: z.
|
|
117
|
+
decoration: z.ZodOptional<z.ZodEnum<["gradient", "grid", "windows"]>>;
|
|
100
118
|
color: z.ZodOptional<z.ZodObject<{
|
|
101
119
|
light: z.ZodOptional<z.ZodString>;
|
|
102
120
|
dark: z.ZodOptional<z.ZodString>;
|
|
@@ -108,11 +126,11 @@ export declare const prismConfigSchema: z.ZodObject<{
|
|
|
108
126
|
dark?: string | undefined;
|
|
109
127
|
}>>;
|
|
110
128
|
}, "strip", z.ZodTypeAny, {
|
|
111
|
-
decoration: "none" | "gradient" | "grid" | "windows";
|
|
112
129
|
image?: string | {
|
|
113
130
|
light: string;
|
|
114
131
|
dark: string;
|
|
115
132
|
} | undefined;
|
|
133
|
+
decoration?: "gradient" | "grid" | "windows" | undefined;
|
|
116
134
|
color?: {
|
|
117
135
|
light?: string | undefined;
|
|
118
136
|
dark?: string | undefined;
|
|
@@ -122,7 +140,7 @@ export declare const prismConfigSchema: z.ZodObject<{
|
|
|
122
140
|
light: string;
|
|
123
141
|
dark: string;
|
|
124
142
|
} | undefined;
|
|
125
|
-
decoration?: "
|
|
143
|
+
decoration?: "gradient" | "grid" | "windows" | undefined;
|
|
126
144
|
color?: {
|
|
127
145
|
light?: string | undefined;
|
|
128
146
|
dark?: string | undefined;
|
|
@@ -1520,17 +1538,21 @@ export declare const prismConfigSchema: z.ZodObject<{
|
|
|
1520
1538
|
examples?: {
|
|
1521
1539
|
languages?: string[] | undefined;
|
|
1522
1540
|
} | undefined;
|
|
1541
|
+
mdx?: {
|
|
1542
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
1543
|
+
base?: string | string[] | undefined;
|
|
1544
|
+
} | undefined;
|
|
1523
1545
|
} | undefined;
|
|
1524
1546
|
appearance?: {
|
|
1525
1547
|
strict: boolean;
|
|
1526
1548
|
default: "light" | "dark" | "system";
|
|
1527
1549
|
} | undefined;
|
|
1528
1550
|
background?: {
|
|
1529
|
-
decoration: "none" | "gradient" | "grid" | "windows";
|
|
1530
1551
|
image?: string | {
|
|
1531
1552
|
light: string;
|
|
1532
1553
|
dark: string;
|
|
1533
1554
|
} | undefined;
|
|
1555
|
+
decoration?: "gradient" | "grid" | "windows" | undefined;
|
|
1534
1556
|
color?: {
|
|
1535
1557
|
light?: string | undefined;
|
|
1536
1558
|
dark?: string | undefined;
|
|
@@ -1896,6 +1918,10 @@ export declare const prismConfigSchema: z.ZodObject<{
|
|
|
1896
1918
|
examples?: {
|
|
1897
1919
|
languages?: string[] | undefined;
|
|
1898
1920
|
} | undefined;
|
|
1921
|
+
mdx?: {
|
|
1922
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
1923
|
+
base?: string | string[] | undefined;
|
|
1924
|
+
} | undefined;
|
|
1899
1925
|
} | undefined;
|
|
1900
1926
|
appearance?: {
|
|
1901
1927
|
default?: "light" | "dark" | "system" | undefined;
|
|
@@ -1906,7 +1932,7 @@ export declare const prismConfigSchema: z.ZodObject<{
|
|
|
1906
1932
|
light: string;
|
|
1907
1933
|
dark: string;
|
|
1908
1934
|
} | undefined;
|
|
1909
|
-
decoration?: "
|
|
1935
|
+
decoration?: "gradient" | "grid" | "windows" | undefined;
|
|
1910
1936
|
color?: {
|
|
1911
1937
|
light?: string | undefined;
|
|
1912
1938
|
dark?: string | undefined;
|
|
@@ -58,6 +58,16 @@ export declare const quillConfigSchema: z.ZodObject<{
|
|
|
58
58
|
}, {
|
|
59
59
|
languages?: string[] | undefined;
|
|
60
60
|
}>>;
|
|
61
|
+
mdx: z.ZodOptional<z.ZodObject<{
|
|
62
|
+
auth: z.ZodOptional<z.ZodEnum<["bearer", "basic", "key", "cobo"]>>;
|
|
63
|
+
base: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
64
|
+
}, "strip", z.ZodTypeAny, {
|
|
65
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
66
|
+
base?: string | string[] | undefined;
|
|
67
|
+
}, {
|
|
68
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
69
|
+
base?: string | string[] | undefined;
|
|
70
|
+
}>>;
|
|
61
71
|
}, "strip", z.ZodTypeAny, {
|
|
62
72
|
playground?: {
|
|
63
73
|
display: "simple" | "none" | "interactive";
|
|
@@ -66,6 +76,10 @@ export declare const quillConfigSchema: z.ZodObject<{
|
|
|
66
76
|
examples?: {
|
|
67
77
|
languages?: string[] | undefined;
|
|
68
78
|
} | undefined;
|
|
79
|
+
mdx?: {
|
|
80
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
81
|
+
base?: string | string[] | undefined;
|
|
82
|
+
} | undefined;
|
|
69
83
|
}, {
|
|
70
84
|
playground?: {
|
|
71
85
|
display?: "simple" | "none" | "interactive" | undefined;
|
|
@@ -74,6 +88,10 @@ export declare const quillConfigSchema: z.ZodObject<{
|
|
|
74
88
|
examples?: {
|
|
75
89
|
languages?: string[] | undefined;
|
|
76
90
|
} | undefined;
|
|
91
|
+
mdx?: {
|
|
92
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
93
|
+
base?: string | string[] | undefined;
|
|
94
|
+
} | undefined;
|
|
77
95
|
}>>;
|
|
78
96
|
appearance: z.ZodOptional<z.ZodObject<{
|
|
79
97
|
default: z.ZodDefault<z.ZodEnum<["system", "light", "dark"]>>;
|
|
@@ -96,7 +114,7 @@ export declare const quillConfigSchema: z.ZodObject<{
|
|
|
96
114
|
light: string;
|
|
97
115
|
dark: string;
|
|
98
116
|
}>]>>;
|
|
99
|
-
decoration: z.
|
|
117
|
+
decoration: z.ZodOptional<z.ZodEnum<["gradient", "grid", "windows"]>>;
|
|
100
118
|
color: z.ZodOptional<z.ZodObject<{
|
|
101
119
|
light: z.ZodOptional<z.ZodString>;
|
|
102
120
|
dark: z.ZodOptional<z.ZodString>;
|
|
@@ -108,11 +126,11 @@ export declare const quillConfigSchema: z.ZodObject<{
|
|
|
108
126
|
dark?: string | undefined;
|
|
109
127
|
}>>;
|
|
110
128
|
}, "strip", z.ZodTypeAny, {
|
|
111
|
-
decoration: "none" | "gradient" | "grid" | "windows";
|
|
112
129
|
image?: string | {
|
|
113
130
|
light: string;
|
|
114
131
|
dark: string;
|
|
115
132
|
} | undefined;
|
|
133
|
+
decoration?: "gradient" | "grid" | "windows" | undefined;
|
|
116
134
|
color?: {
|
|
117
135
|
light?: string | undefined;
|
|
118
136
|
dark?: string | undefined;
|
|
@@ -122,7 +140,7 @@ export declare const quillConfigSchema: z.ZodObject<{
|
|
|
122
140
|
light: string;
|
|
123
141
|
dark: string;
|
|
124
142
|
} | undefined;
|
|
125
|
-
decoration?: "
|
|
143
|
+
decoration?: "gradient" | "grid" | "windows" | undefined;
|
|
126
144
|
color?: {
|
|
127
145
|
light?: string | undefined;
|
|
128
146
|
dark?: string | undefined;
|
|
@@ -1520,17 +1538,21 @@ export declare const quillConfigSchema: z.ZodObject<{
|
|
|
1520
1538
|
examples?: {
|
|
1521
1539
|
languages?: string[] | undefined;
|
|
1522
1540
|
} | undefined;
|
|
1541
|
+
mdx?: {
|
|
1542
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
1543
|
+
base?: string | string[] | undefined;
|
|
1544
|
+
} | undefined;
|
|
1523
1545
|
} | undefined;
|
|
1524
1546
|
appearance?: {
|
|
1525
1547
|
strict: boolean;
|
|
1526
1548
|
default: "light" | "dark" | "system";
|
|
1527
1549
|
} | undefined;
|
|
1528
1550
|
background?: {
|
|
1529
|
-
decoration: "none" | "gradient" | "grid" | "windows";
|
|
1530
1551
|
image?: string | {
|
|
1531
1552
|
light: string;
|
|
1532
1553
|
dark: string;
|
|
1533
1554
|
} | undefined;
|
|
1555
|
+
decoration?: "gradient" | "grid" | "windows" | undefined;
|
|
1534
1556
|
color?: {
|
|
1535
1557
|
light?: string | undefined;
|
|
1536
1558
|
dark?: string | undefined;
|
|
@@ -1896,6 +1918,10 @@ export declare const quillConfigSchema: z.ZodObject<{
|
|
|
1896
1918
|
examples?: {
|
|
1897
1919
|
languages?: string[] | undefined;
|
|
1898
1920
|
} | undefined;
|
|
1921
|
+
mdx?: {
|
|
1922
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
1923
|
+
base?: string | string[] | undefined;
|
|
1924
|
+
} | undefined;
|
|
1899
1925
|
} | undefined;
|
|
1900
1926
|
appearance?: {
|
|
1901
1927
|
default?: "light" | "dark" | "system" | undefined;
|
|
@@ -1906,7 +1932,7 @@ export declare const quillConfigSchema: z.ZodObject<{
|
|
|
1906
1932
|
light: string;
|
|
1907
1933
|
dark: string;
|
|
1908
1934
|
} | undefined;
|
|
1909
|
-
decoration?: "
|
|
1935
|
+
decoration?: "gradient" | "grid" | "windows" | undefined;
|
|
1910
1936
|
color?: {
|
|
1911
1937
|
light?: string | undefined;
|
|
1912
1938
|
dark?: string | undefined;
|
|
@@ -57,6 +57,16 @@ export declare const standardConfigSchema: {
|
|
|
57
57
|
}, {
|
|
58
58
|
languages?: string[] | undefined;
|
|
59
59
|
}>>;
|
|
60
|
+
mdx: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
61
|
+
auth: import("zod").ZodOptional<import("zod").ZodEnum<["bearer", "basic", "key", "cobo"]>>;
|
|
62
|
+
base: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
|
63
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
64
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
65
|
+
base?: string | string[] | undefined;
|
|
66
|
+
}, {
|
|
67
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
68
|
+
base?: string | string[] | undefined;
|
|
69
|
+
}>>;
|
|
60
70
|
}, "strip", import("zod").ZodTypeAny, {
|
|
61
71
|
playground?: {
|
|
62
72
|
display: "simple" | "none" | "interactive";
|
|
@@ -65,6 +75,10 @@ export declare const standardConfigSchema: {
|
|
|
65
75
|
examples?: {
|
|
66
76
|
languages?: string[] | undefined;
|
|
67
77
|
} | undefined;
|
|
78
|
+
mdx?: {
|
|
79
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
80
|
+
base?: string | string[] | undefined;
|
|
81
|
+
} | undefined;
|
|
68
82
|
}, {
|
|
69
83
|
playground?: {
|
|
70
84
|
display?: "simple" | "none" | "interactive" | undefined;
|
|
@@ -73,6 +87,10 @@ export declare const standardConfigSchema: {
|
|
|
73
87
|
examples?: {
|
|
74
88
|
languages?: string[] | undefined;
|
|
75
89
|
} | undefined;
|
|
90
|
+
mdx?: {
|
|
91
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
92
|
+
base?: string | string[] | undefined;
|
|
93
|
+
} | undefined;
|
|
76
94
|
}>>;
|
|
77
95
|
appearance: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
78
96
|
default: import("zod").ZodDefault<import("zod").ZodEnum<["system", "light", "dark"]>>;
|
|
@@ -95,7 +113,7 @@ export declare const standardConfigSchema: {
|
|
|
95
113
|
light: string;
|
|
96
114
|
dark: string;
|
|
97
115
|
}>]>>;
|
|
98
|
-
decoration: import("zod").
|
|
116
|
+
decoration: import("zod").ZodOptional<import("zod").ZodEnum<["gradient", "grid", "windows"]>>;
|
|
99
117
|
color: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
100
118
|
light: import("zod").ZodOptional<import("zod").ZodString>;
|
|
101
119
|
dark: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -107,11 +125,11 @@ export declare const standardConfigSchema: {
|
|
|
107
125
|
dark?: string | undefined;
|
|
108
126
|
}>>;
|
|
109
127
|
}, "strip", import("zod").ZodTypeAny, {
|
|
110
|
-
decoration: "none" | "gradient" | "grid" | "windows";
|
|
111
128
|
image?: string | {
|
|
112
129
|
light: string;
|
|
113
130
|
dark: string;
|
|
114
131
|
} | undefined;
|
|
132
|
+
decoration?: "gradient" | "grid" | "windows" | undefined;
|
|
115
133
|
color?: {
|
|
116
134
|
light?: string | undefined;
|
|
117
135
|
dark?: string | undefined;
|
|
@@ -121,7 +139,7 @@ export declare const standardConfigSchema: {
|
|
|
121
139
|
light: string;
|
|
122
140
|
dark: string;
|
|
123
141
|
} | undefined;
|
|
124
|
-
decoration?: "
|
|
142
|
+
decoration?: "gradient" | "grid" | "windows" | undefined;
|
|
125
143
|
color?: {
|
|
126
144
|
light?: string | undefined;
|
|
127
145
|
dark?: string | undefined;
|
|
@@ -58,6 +58,16 @@ export declare const venusConfigSchema: z.ZodObject<{
|
|
|
58
58
|
}, {
|
|
59
59
|
languages?: string[] | undefined;
|
|
60
60
|
}>>;
|
|
61
|
+
mdx: z.ZodOptional<z.ZodObject<{
|
|
62
|
+
auth: z.ZodOptional<z.ZodEnum<["bearer", "basic", "key", "cobo"]>>;
|
|
63
|
+
base: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
64
|
+
}, "strip", z.ZodTypeAny, {
|
|
65
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
66
|
+
base?: string | string[] | undefined;
|
|
67
|
+
}, {
|
|
68
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
69
|
+
base?: string | string[] | undefined;
|
|
70
|
+
}>>;
|
|
61
71
|
}, "strip", z.ZodTypeAny, {
|
|
62
72
|
playground?: {
|
|
63
73
|
display: "simple" | "none" | "interactive";
|
|
@@ -66,6 +76,10 @@ export declare const venusConfigSchema: z.ZodObject<{
|
|
|
66
76
|
examples?: {
|
|
67
77
|
languages?: string[] | undefined;
|
|
68
78
|
} | undefined;
|
|
79
|
+
mdx?: {
|
|
80
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
81
|
+
base?: string | string[] | undefined;
|
|
82
|
+
} | undefined;
|
|
69
83
|
}, {
|
|
70
84
|
playground?: {
|
|
71
85
|
display?: "simple" | "none" | "interactive" | undefined;
|
|
@@ -74,6 +88,10 @@ export declare const venusConfigSchema: z.ZodObject<{
|
|
|
74
88
|
examples?: {
|
|
75
89
|
languages?: string[] | undefined;
|
|
76
90
|
} | undefined;
|
|
91
|
+
mdx?: {
|
|
92
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
93
|
+
base?: string | string[] | undefined;
|
|
94
|
+
} | undefined;
|
|
77
95
|
}>>;
|
|
78
96
|
appearance: z.ZodOptional<z.ZodObject<{
|
|
79
97
|
default: z.ZodDefault<z.ZodEnum<["system", "light", "dark"]>>;
|
|
@@ -96,7 +114,7 @@ export declare const venusConfigSchema: z.ZodObject<{
|
|
|
96
114
|
light: string;
|
|
97
115
|
dark: string;
|
|
98
116
|
}>]>>;
|
|
99
|
-
decoration: z.
|
|
117
|
+
decoration: z.ZodOptional<z.ZodEnum<["gradient", "grid", "windows"]>>;
|
|
100
118
|
color: z.ZodOptional<z.ZodObject<{
|
|
101
119
|
light: z.ZodOptional<z.ZodString>;
|
|
102
120
|
dark: z.ZodOptional<z.ZodString>;
|
|
@@ -108,11 +126,11 @@ export declare const venusConfigSchema: z.ZodObject<{
|
|
|
108
126
|
dark?: string | undefined;
|
|
109
127
|
}>>;
|
|
110
128
|
}, "strip", z.ZodTypeAny, {
|
|
111
|
-
decoration: "none" | "gradient" | "grid" | "windows";
|
|
112
129
|
image?: string | {
|
|
113
130
|
light: string;
|
|
114
131
|
dark: string;
|
|
115
132
|
} | undefined;
|
|
133
|
+
decoration?: "gradient" | "grid" | "windows" | undefined;
|
|
116
134
|
color?: {
|
|
117
135
|
light?: string | undefined;
|
|
118
136
|
dark?: string | undefined;
|
|
@@ -122,7 +140,7 @@ export declare const venusConfigSchema: z.ZodObject<{
|
|
|
122
140
|
light: string;
|
|
123
141
|
dark: string;
|
|
124
142
|
} | undefined;
|
|
125
|
-
decoration?: "
|
|
143
|
+
decoration?: "gradient" | "grid" | "windows" | undefined;
|
|
126
144
|
color?: {
|
|
127
145
|
light?: string | undefined;
|
|
128
146
|
dark?: string | undefined;
|
|
@@ -1520,17 +1538,21 @@ export declare const venusConfigSchema: z.ZodObject<{
|
|
|
1520
1538
|
examples?: {
|
|
1521
1539
|
languages?: string[] | undefined;
|
|
1522
1540
|
} | undefined;
|
|
1541
|
+
mdx?: {
|
|
1542
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
1543
|
+
base?: string | string[] | undefined;
|
|
1544
|
+
} | undefined;
|
|
1523
1545
|
} | undefined;
|
|
1524
1546
|
appearance?: {
|
|
1525
1547
|
strict: boolean;
|
|
1526
1548
|
default: "light" | "dark" | "system";
|
|
1527
1549
|
} | undefined;
|
|
1528
1550
|
background?: {
|
|
1529
|
-
decoration: "none" | "gradient" | "grid" | "windows";
|
|
1530
1551
|
image?: string | {
|
|
1531
1552
|
light: string;
|
|
1532
1553
|
dark: string;
|
|
1533
1554
|
} | undefined;
|
|
1555
|
+
decoration?: "gradient" | "grid" | "windows" | undefined;
|
|
1534
1556
|
color?: {
|
|
1535
1557
|
light?: string | undefined;
|
|
1536
1558
|
dark?: string | undefined;
|
|
@@ -1896,6 +1918,10 @@ export declare const venusConfigSchema: z.ZodObject<{
|
|
|
1896
1918
|
examples?: {
|
|
1897
1919
|
languages?: string[] | undefined;
|
|
1898
1920
|
} | undefined;
|
|
1921
|
+
mdx?: {
|
|
1922
|
+
auth?: "key" | "bearer" | "basic" | "cobo" | undefined;
|
|
1923
|
+
base?: string | string[] | undefined;
|
|
1924
|
+
} | undefined;
|
|
1899
1925
|
} | undefined;
|
|
1900
1926
|
appearance?: {
|
|
1901
1927
|
default?: "light" | "dark" | "system" | undefined;
|
|
@@ -1906,7 +1932,7 @@ export declare const venusConfigSchema: z.ZodObject<{
|
|
|
1906
1932
|
light: string;
|
|
1907
1933
|
dark: string;
|
|
1908
1934
|
} | undefined;
|
|
1909
|
-
decoration?: "
|
|
1935
|
+
decoration?: "gradient" | "grid" | "windows" | undefined;
|
|
1910
1936
|
color?: {
|
|
1911
1937
|
light?: string | undefined;
|
|
1912
1938
|
dark?: string | undefined;
|
|
@@ -90,7 +90,7 @@ function updateFooterSocials(config) {
|
|
|
90
90
|
return footerSocials;
|
|
91
91
|
}
|
|
92
92
|
export function upgradeToDocsConfig(config) {
|
|
93
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
|
93
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
|
|
94
94
|
const fonts = updateFont(config);
|
|
95
95
|
const playground = updateApiPlayground(config);
|
|
96
96
|
const rounded = updateRounded(config);
|
|
@@ -110,25 +110,32 @@ export function upgradeToDocsConfig(config) {
|
|
|
110
110
|
}
|
|
111
111
|
: {})), { logo: config.logo }), (playground || ((_c = (_b = (_a = config.api) === null || _a === void 0 ? void 0 : _a.request) === null || _b === void 0 ? void 0 : _b.example) === null || _c === void 0 ? void 0 : _c.languages)
|
|
112
112
|
? {
|
|
113
|
-
api: Object.assign(Object.assign({}, (playground
|
|
113
|
+
api: Object.assign(Object.assign(Object.assign({}, (playground
|
|
114
114
|
? Object.assign({ display: playground.display }, (playground.proxy !== undefined ? { proxy: playground.proxy } : {})) : {})), (((_f = (_e = (_d = config.api) === null || _d === void 0 ? void 0 : _d.request) === null || _e === void 0 ? void 0 : _e.example) === null || _f === void 0 ? void 0 : _f.languages)
|
|
115
115
|
? {
|
|
116
116
|
examples: {
|
|
117
117
|
languages: config.api.request.example.languages,
|
|
118
118
|
},
|
|
119
119
|
}
|
|
120
|
+
: {})), (((_g = config.api) === null || _g === void 0 ? void 0 : _g.baseUrl) || ((_j = (_h = config.api) === null || _h === void 0 ? void 0 : _h.auth) === null || _j === void 0 ? void 0 : _j.method)
|
|
121
|
+
? {
|
|
122
|
+
mdx: {
|
|
123
|
+
base: config.api.baseUrl,
|
|
124
|
+
auth: (_k = config.api.auth) === null || _k === void 0 ? void 0 : _k.method,
|
|
125
|
+
},
|
|
126
|
+
}
|
|
120
127
|
: {})),
|
|
121
128
|
}
|
|
122
129
|
: {})), (config.modeToggle
|
|
123
130
|
? {
|
|
124
131
|
appearance: {
|
|
125
|
-
default: (
|
|
126
|
-
strict: (
|
|
132
|
+
default: (_l = config.modeToggle.default) !== null && _l !== void 0 ? _l : 'system',
|
|
133
|
+
strict: (_m = config.modeToggle.isHidden) !== null && _m !== void 0 ? _m : false,
|
|
127
134
|
},
|
|
128
135
|
}
|
|
129
|
-
: {})), (config.background || config.backgroundImage
|
|
136
|
+
: {})), (config.background || config.backgroundImage || config.colors.background
|
|
130
137
|
? {
|
|
131
|
-
background: Object.assign(Object.assign(Object.assign({}, (config.backgroundImage ? { image: config.backgroundImage } : {})), { decoration: (
|
|
138
|
+
background: Object.assign(Object.assign(Object.assign({}, (config.backgroundImage ? { image: config.backgroundImage } : {})), { decoration: (_o = config.background) === null || _o === void 0 ? void 0 : _o.style }), (config.colors.background
|
|
132
139
|
? {
|
|
133
140
|
color: {
|
|
134
141
|
light: config.colors.background.light,
|
|
@@ -138,7 +145,7 @@ export function upgradeToDocsConfig(config) {
|
|
|
138
145
|
: {})),
|
|
139
146
|
}
|
|
140
147
|
: {})), { topbar: {
|
|
141
|
-
links: (
|
|
148
|
+
links: (_p = config.topbarLinks) === null || _p === void 0 ? void 0 : _p.map((item) => {
|
|
142
149
|
if (item.type === 'link' || item.type === undefined) {
|
|
143
150
|
return {
|
|
144
151
|
label: item.name,
|
|
@@ -153,21 +160,21 @@ export function upgradeToDocsConfig(config) {
|
|
|
153
160
|
}
|
|
154
161
|
}),
|
|
155
162
|
primary: updateTopbarPrimary(config),
|
|
156
|
-
} }), (((
|
|
163
|
+
} }), (((_q = config.search) === null || _q === void 0 ? void 0 : _q.prompt)
|
|
157
164
|
? {
|
|
158
165
|
search: {
|
|
159
166
|
prompt: config.search.prompt,
|
|
160
167
|
},
|
|
161
168
|
}
|
|
162
|
-
: {})), (config.metadata || ((
|
|
169
|
+
: {})), (config.metadata || ((_r = config.seo) === null || _r === void 0 ? void 0 : _r.indexHiddenPages) !== undefined
|
|
163
170
|
? {
|
|
164
|
-
seo: Object.assign(Object.assign({}, (config.metadata ? { metatags: config.metadata } : {})), { indexing: ((
|
|
171
|
+
seo: Object.assign(Object.assign({}, (config.metadata ? { metatags: config.metadata } : {})), { indexing: ((_s = config.seo) === null || _s === void 0 ? void 0 : _s.indexHiddenPages) ? 'navigable' : 'all' }),
|
|
165
172
|
}
|
|
166
173
|
: {})), (config.footer || config.footerSocials
|
|
167
174
|
? {
|
|
168
|
-
footer: Object.assign(Object.assign({}, (((
|
|
175
|
+
footer: Object.assign(Object.assign({}, (((_t = config.footer) === null || _t === void 0 ? void 0 : _t.socials) || config.footerSocials
|
|
169
176
|
? { socials: updateFooterSocials(config) }
|
|
170
|
-
: {})), (((
|
|
177
|
+
: {})), (((_u = config.footer) === null || _u === void 0 ? void 0 : _u.links)
|
|
171
178
|
? {
|
|
172
179
|
links: config.footer.links.map((group) => {
|
|
173
180
|
return {
|
|
@@ -185,19 +192,19 @@ export function upgradeToDocsConfig(config) {
|
|
|
185
192
|
}
|
|
186
193
|
: {})), (config.integrations || config.analytics
|
|
187
194
|
? {
|
|
188
|
-
integrations: Object.assign(Object.assign(Object.assign(Object.assign({}, config.analytics), (((
|
|
195
|
+
integrations: Object.assign(Object.assign(Object.assign(Object.assign({}, config.analytics), (((_v = config.integrations) === null || _v === void 0 ? void 0 : _v.intercom)
|
|
189
196
|
? {
|
|
190
197
|
intercom: {
|
|
191
198
|
appId: config.integrations.intercom,
|
|
192
199
|
},
|
|
193
200
|
}
|
|
194
|
-
: {})), (((
|
|
201
|
+
: {})), (((_w = config.integrations) === null || _w === void 0 ? void 0 : _w.frontchat)
|
|
195
202
|
? {
|
|
196
203
|
frontchat: {
|
|
197
204
|
snippetId: config.integrations.frontchat,
|
|
198
205
|
},
|
|
199
206
|
}
|
|
200
|
-
: {})), (((
|
|
207
|
+
: {})), (((_x = config.integrations) === null || _x === void 0 ? void 0 : _x.osano)
|
|
201
208
|
? {
|
|
202
209
|
osano: {
|
|
203
210
|
scriptSource: config.integrations.osano,
|