@mintlify/validation 0.1.241 → 0.1.242
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 +160 -160
- package/dist/mint-config/schemas/v2/properties/background.d.ts +10 -10
- package/dist/mint-config/schemas/v2/properties/background.js +2 -2
- package/dist/mint-config/schemas/v2/properties/navigation/anchors.d.ts +10 -10
- package/dist/mint-config/schemas/v2/properties/navigation/anchors.js +2 -2
- package/dist/mint-config/schemas/v2/properties/navigation/global.d.ts +14 -14
- package/dist/mint-config/schemas/v2/properties/navigation/index.d.ts +18 -18
- package/dist/mint-config/schemas/v2/properties/reusable/color.d.ts +7 -7
- package/dist/mint-config/schemas/v2/properties/reusable/color.js +3 -3
- package/dist/mint-config/schemas/v2/themes/mint.d.ts +40 -40
- package/dist/mint-config/schemas/v2/themes/prism.d.ts +40 -40
- package/dist/mint-config/schemas/v2/themes/quill.d.ts +40 -40
- package/dist/mint-config/schemas/v2/themes/reusable/index.d.ts +28 -28
- package/dist/mint-config/schemas/v2/themes/venus.d.ts +40 -40
- package/dist/mint-config/upgrades/upgradeToDocsConfig.js +12 -12
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -111,14 +111,14 @@ export declare const venusConfigSchema: z.ZodObject<{
|
|
|
111
111
|
}>]>>;
|
|
112
112
|
decoration: z.ZodDefault<z.ZodEnum<["gradient", "grid", "windows", "none"]>>;
|
|
113
113
|
color: z.ZodOptional<z.ZodObject<{
|
|
114
|
-
light: z.ZodString
|
|
115
|
-
dark: z.ZodString
|
|
114
|
+
light: z.ZodOptional<z.ZodString>;
|
|
115
|
+
dark: z.ZodOptional<z.ZodString>;
|
|
116
116
|
}, "strict", z.ZodTypeAny, {
|
|
117
|
-
light
|
|
118
|
-
dark
|
|
117
|
+
light?: string | undefined;
|
|
118
|
+
dark?: string | undefined;
|
|
119
119
|
}, {
|
|
120
|
-
light
|
|
121
|
-
dark
|
|
120
|
+
light?: string | undefined;
|
|
121
|
+
dark?: string | undefined;
|
|
122
122
|
}>>;
|
|
123
123
|
}, "strip", z.ZodTypeAny, {
|
|
124
124
|
decoration: "none" | "gradient" | "grid" | "windows";
|
|
@@ -127,8 +127,8 @@ export declare const venusConfigSchema: z.ZodObject<{
|
|
|
127
127
|
dark: string;
|
|
128
128
|
} | undefined;
|
|
129
129
|
color?: {
|
|
130
|
-
light
|
|
131
|
-
dark
|
|
130
|
+
light?: string | undefined;
|
|
131
|
+
dark?: string | undefined;
|
|
132
132
|
} | undefined;
|
|
133
133
|
}, {
|
|
134
134
|
image?: string | {
|
|
@@ -137,8 +137,8 @@ export declare const venusConfigSchema: z.ZodObject<{
|
|
|
137
137
|
} | undefined;
|
|
138
138
|
decoration?: "none" | "gradient" | "grid" | "windows" | undefined;
|
|
139
139
|
color?: {
|
|
140
|
-
light
|
|
141
|
-
dark
|
|
140
|
+
light?: string | undefined;
|
|
141
|
+
dark?: string | undefined;
|
|
142
142
|
} | undefined;
|
|
143
143
|
}>>;
|
|
144
144
|
topbar: z.ZodOptional<z.ZodObject<{
|
|
@@ -609,14 +609,14 @@ export declare const venusConfigSchema: z.ZodObject<{
|
|
|
609
609
|
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
610
610
|
}>]>>;
|
|
611
611
|
color: z.ZodOptional<z.ZodObject<{
|
|
612
|
-
light: z.ZodString
|
|
613
|
-
dark: z.ZodString
|
|
612
|
+
light: z.ZodOptional<z.ZodString>;
|
|
613
|
+
dark: z.ZodOptional<z.ZodString>;
|
|
614
614
|
}, "strict", z.ZodTypeAny, {
|
|
615
|
-
light
|
|
616
|
-
dark
|
|
615
|
+
light?: string | undefined;
|
|
616
|
+
dark?: string | undefined;
|
|
617
617
|
}, {
|
|
618
|
-
light
|
|
619
|
-
dark
|
|
618
|
+
light?: string | undefined;
|
|
619
|
+
dark?: string | undefined;
|
|
620
620
|
}>>;
|
|
621
621
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
622
622
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -626,8 +626,8 @@ export declare const venusConfigSchema: z.ZodObject<{
|
|
|
626
626
|
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
627
627
|
} | undefined;
|
|
628
628
|
color?: {
|
|
629
|
-
light
|
|
630
|
-
dark
|
|
629
|
+
light?: string | undefined;
|
|
630
|
+
dark?: string | undefined;
|
|
631
631
|
} | undefined;
|
|
632
632
|
hidden?: boolean | undefined;
|
|
633
633
|
}, {
|
|
@@ -637,8 +637,8 @@ export declare const venusConfigSchema: z.ZodObject<{
|
|
|
637
637
|
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
638
638
|
} | undefined;
|
|
639
639
|
color?: {
|
|
640
|
-
light
|
|
641
|
-
dark
|
|
640
|
+
light?: string | undefined;
|
|
641
|
+
dark?: string | undefined;
|
|
642
642
|
} | undefined;
|
|
643
643
|
hidden?: boolean | undefined;
|
|
644
644
|
}>, z.ZodObject<{
|
|
@@ -688,8 +688,8 @@ export declare const venusConfigSchema: z.ZodObject<{
|
|
|
688
688
|
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
689
689
|
} | undefined;
|
|
690
690
|
color?: {
|
|
691
|
-
light
|
|
692
|
-
dark
|
|
691
|
+
light?: string | undefined;
|
|
692
|
+
dark?: string | undefined;
|
|
693
693
|
} | undefined;
|
|
694
694
|
hidden?: boolean | undefined;
|
|
695
695
|
} & {
|
|
@@ -735,8 +735,8 @@ export declare const venusConfigSchema: z.ZodObject<{
|
|
|
735
735
|
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
736
736
|
} | undefined;
|
|
737
737
|
color?: {
|
|
738
|
-
light
|
|
739
|
-
dark
|
|
738
|
+
light?: string | undefined;
|
|
739
|
+
dark?: string | undefined;
|
|
740
740
|
} | undefined;
|
|
741
741
|
hidden?: boolean | undefined;
|
|
742
742
|
} & {
|
|
@@ -784,8 +784,8 @@ export declare const venusConfigSchema: z.ZodObject<{
|
|
|
784
784
|
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
785
785
|
} | undefined;
|
|
786
786
|
color?: {
|
|
787
|
-
light
|
|
788
|
-
dark
|
|
787
|
+
light?: string | undefined;
|
|
788
|
+
dark?: string | undefined;
|
|
789
789
|
} | undefined;
|
|
790
790
|
hidden?: boolean | undefined;
|
|
791
791
|
} & {
|
|
@@ -833,8 +833,8 @@ export declare const venusConfigSchema: z.ZodObject<{
|
|
|
833
833
|
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
834
834
|
} | undefined;
|
|
835
835
|
color?: {
|
|
836
|
-
light
|
|
837
|
-
dark
|
|
836
|
+
light?: string | undefined;
|
|
837
|
+
dark?: string | undefined;
|
|
838
838
|
} | undefined;
|
|
839
839
|
hidden?: boolean | undefined;
|
|
840
840
|
} & {
|
|
@@ -1399,8 +1399,8 @@ export declare const venusConfigSchema: z.ZodObject<{
|
|
|
1399
1399
|
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
1400
1400
|
} | undefined;
|
|
1401
1401
|
color?: {
|
|
1402
|
-
light
|
|
1403
|
-
dark
|
|
1402
|
+
light?: string | undefined;
|
|
1403
|
+
dark?: string | undefined;
|
|
1404
1404
|
} | undefined;
|
|
1405
1405
|
hidden?: boolean | undefined;
|
|
1406
1406
|
} & {
|
|
@@ -1505,8 +1505,8 @@ export declare const venusConfigSchema: z.ZodObject<{
|
|
|
1505
1505
|
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
1506
1506
|
} | undefined;
|
|
1507
1507
|
color?: {
|
|
1508
|
-
light
|
|
1509
|
-
dark
|
|
1508
|
+
light?: string | undefined;
|
|
1509
|
+
dark?: string | undefined;
|
|
1510
1510
|
} | undefined;
|
|
1511
1511
|
hidden?: boolean | undefined;
|
|
1512
1512
|
} & {
|
|
@@ -1550,8 +1550,8 @@ export declare const venusConfigSchema: z.ZodObject<{
|
|
|
1550
1550
|
dark: string;
|
|
1551
1551
|
} | undefined;
|
|
1552
1552
|
color?: {
|
|
1553
|
-
light
|
|
1554
|
-
dark
|
|
1553
|
+
light?: string | undefined;
|
|
1554
|
+
dark?: string | undefined;
|
|
1555
1555
|
} | undefined;
|
|
1556
1556
|
} | undefined;
|
|
1557
1557
|
topbar?: {
|
|
@@ -1779,8 +1779,8 @@ export declare const venusConfigSchema: z.ZodObject<{
|
|
|
1779
1779
|
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
1780
1780
|
} | undefined;
|
|
1781
1781
|
color?: {
|
|
1782
|
-
light
|
|
1783
|
-
dark
|
|
1782
|
+
light?: string | undefined;
|
|
1783
|
+
dark?: string | undefined;
|
|
1784
1784
|
} | undefined;
|
|
1785
1785
|
hidden?: boolean | undefined;
|
|
1786
1786
|
} & {
|
|
@@ -1885,8 +1885,8 @@ export declare const venusConfigSchema: z.ZodObject<{
|
|
|
1885
1885
|
style?: "brands" | "duotone" | "light" | "regular" | "sharp-duotone-solid" | "sharp-light" | "sharp-regular" | "sharp-solid" | "sharp-thin" | "solid" | "thin" | undefined;
|
|
1886
1886
|
} | undefined;
|
|
1887
1887
|
color?: {
|
|
1888
|
-
light
|
|
1889
|
-
dark
|
|
1888
|
+
light?: string | undefined;
|
|
1889
|
+
dark?: string | undefined;
|
|
1890
1890
|
} | undefined;
|
|
1891
1891
|
hidden?: boolean | undefined;
|
|
1892
1892
|
} & {
|
|
@@ -1931,8 +1931,8 @@ export declare const venusConfigSchema: z.ZodObject<{
|
|
|
1931
1931
|
} | undefined;
|
|
1932
1932
|
decoration?: "none" | "gradient" | "grid" | "windows" | undefined;
|
|
1933
1933
|
color?: {
|
|
1934
|
-
light
|
|
1935
|
-
dark
|
|
1934
|
+
light?: string | undefined;
|
|
1935
|
+
dark?: string | undefined;
|
|
1936
1936
|
} | undefined;
|
|
1937
1937
|
} | undefined;
|
|
1938
1938
|
topbar?: {
|
|
@@ -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;
|
|
94
94
|
const fonts = updateFont(config);
|
|
95
95
|
const playground = updateApiPlayground(config);
|
|
96
96
|
const rounded = updateRounded(config);
|
|
@@ -131,14 +131,14 @@ export function upgradeToDocsConfig(config) {
|
|
|
131
131
|
background: Object.assign(Object.assign(Object.assign({}, (config.backgroundImage ? { image: config.backgroundImage } : {})), { decoration: (_k = (_j = config.background) === null || _j === void 0 ? void 0 : _j.style) !== null && _k !== void 0 ? _k : 'none' }), (config.colors.background
|
|
132
132
|
? {
|
|
133
133
|
color: {
|
|
134
|
-
light:
|
|
135
|
-
dark:
|
|
134
|
+
light: config.colors.background.light,
|
|
135
|
+
dark: config.colors.background.dark,
|
|
136
136
|
},
|
|
137
137
|
}
|
|
138
138
|
: {})),
|
|
139
139
|
}
|
|
140
140
|
: {})), { topbar: {
|
|
141
|
-
links: (
|
|
141
|
+
links: (_l = config.topbarLinks) === null || _l === void 0 ? void 0 : _l.map((item) => {
|
|
142
142
|
if (item.type === 'link' || item.type === undefined) {
|
|
143
143
|
return {
|
|
144
144
|
label: item.name,
|
|
@@ -169,21 +169,21 @@ export function upgradeToDocsConfig(config) {
|
|
|
169
169
|
}
|
|
170
170
|
: {})),
|
|
171
171
|
}
|
|
172
|
-
: {})), (((
|
|
172
|
+
: {})), (((_m = config.search) === null || _m === void 0 ? void 0 : _m.prompt)
|
|
173
173
|
? {
|
|
174
174
|
search: {
|
|
175
175
|
prompt: config.search.prompt,
|
|
176
176
|
},
|
|
177
177
|
}
|
|
178
|
-
: {})), (config.metadata || ((
|
|
178
|
+
: {})), (config.metadata || ((_o = config.seo) === null || _o === void 0 ? void 0 : _o.indexHiddenPages) !== undefined
|
|
179
179
|
? {
|
|
180
|
-
seo: Object.assign(Object.assign({}, (config.metadata ? { metatags: config.metadata } : {})), { indexing: ((
|
|
180
|
+
seo: Object.assign(Object.assign({}, (config.metadata ? { metatags: config.metadata } : {})), { indexing: ((_p = config.seo) === null || _p === void 0 ? void 0 : _p.indexHiddenPages) ? 'navigable' : 'all' }),
|
|
181
181
|
}
|
|
182
182
|
: {})), (config.footer || config.footerSocials
|
|
183
183
|
? {
|
|
184
|
-
footer: Object.assign(Object.assign({}, (((
|
|
184
|
+
footer: Object.assign(Object.assign({}, (((_q = config.footer) === null || _q === void 0 ? void 0 : _q.socials) || config.footerSocials
|
|
185
185
|
? { socials: updateFooterSocials(config) }
|
|
186
|
-
: {})), (((
|
|
186
|
+
: {})), (((_r = config.footer) === null || _r === void 0 ? void 0 : _r.links)
|
|
187
187
|
? {
|
|
188
188
|
links: config.footer.links.map((group) => {
|
|
189
189
|
return {
|
|
@@ -201,19 +201,19 @@ export function upgradeToDocsConfig(config) {
|
|
|
201
201
|
}
|
|
202
202
|
: {})), (config.integrations || config.analytics
|
|
203
203
|
? {
|
|
204
|
-
integrations: Object.assign(Object.assign(Object.assign(Object.assign({}, config.analytics), (((
|
|
204
|
+
integrations: Object.assign(Object.assign(Object.assign(Object.assign({}, config.analytics), (((_s = config.integrations) === null || _s === void 0 ? void 0 : _s.intercom)
|
|
205
205
|
? {
|
|
206
206
|
intercom: {
|
|
207
207
|
appId: config.integrations.intercom,
|
|
208
208
|
},
|
|
209
209
|
}
|
|
210
|
-
: {})), (((
|
|
210
|
+
: {})), (((_t = config.integrations) === null || _t === void 0 ? void 0 : _t.frontchat)
|
|
211
211
|
? {
|
|
212
212
|
frontchat: {
|
|
213
213
|
snippetId: config.integrations.frontchat,
|
|
214
214
|
},
|
|
215
215
|
}
|
|
216
|
-
: {})), (((
|
|
216
|
+
: {})), (((_u = config.integrations) === null || _u === void 0 ? void 0 : _u.osano)
|
|
217
217
|
? {
|
|
218
218
|
osano: {
|
|
219
219
|
scriptSource: config.integrations.osano,
|