@mintlify/validation 0.1.921 → 0.1.923
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/properties/navigation/divisionNav.d.ts +8 -8
- package/dist/mint-config/schemas/v2/properties/navigation/groups.d.ts +908 -4
- package/dist/mint-config/schemas/v2/properties/navigation/index.d.ts +3696 -60
- package/dist/mint-config/schemas/v2/properties/navigation/pages.d.ts +908 -4
- package/dist/mint-config/schemas/v2/properties/packages.js +1 -1
- package/dist/mint-config/schemas/v2/properties/reusable/page.d.ts +2 -0
- package/dist/mint-config/schemas/v2/properties/reusable/page.js +23 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -93,7 +93,7 @@ export const packagesSchema = z
|
|
|
93
93
|
css: z
|
|
94
94
|
.array(cssEntrySchema)
|
|
95
95
|
.optional()
|
|
96
|
-
.describe('Compiled CSS files shipped by your packages to load on
|
|
96
|
+
.describe('Compiled CSS files shipped by your packages to load on pages that use package components, e.g. `@acme/ui/dist/styles.css`'),
|
|
97
97
|
provider: providerPathSchema
|
|
98
98
|
.optional()
|
|
99
99
|
.describe('Path to a snippet that exports a `Provider` component, e.g. `/snippets/provider.jsx`. It wraps every package component.'),
|
|
@@ -644,3 +644,5 @@ export declare const decoratedPageSchema: z.ZodObject<{
|
|
|
644
644
|
}>>;
|
|
645
645
|
}, z.ZodTypeAny, "passthrough">>;
|
|
646
646
|
export type DecoratedPageConfig = z.input<typeof decoratedPageSchema>;
|
|
647
|
+
export declare const CLIENT_NAV_PAGE_FIELDS: readonly ["href", "title", "hidden", "groups", "sidebarTitle", "url", "icon", "iconType", "tag", "api", "openapi", "asyncapi", "graphql", "deprecated", "hideApiMarker", "mode", "playground", "version"];
|
|
648
|
+
export type ClientNavPage = Pick<DecoratedPageConfig, (typeof CLIENT_NAV_PAGE_FIELDS)[number] | 'description'>;
|
|
@@ -70,3 +70,26 @@ export const decoratedPageSchema = z
|
|
|
70
70
|
})
|
|
71
71
|
.passthrough()
|
|
72
72
|
.describe('page metadata tags in the navigation');
|
|
73
|
+
function pageFieldAllowlist(fields) {
|
|
74
|
+
return fields;
|
|
75
|
+
}
|
|
76
|
+
export const CLIENT_NAV_PAGE_FIELDS = pageFieldAllowlist([
|
|
77
|
+
'href',
|
|
78
|
+
'title',
|
|
79
|
+
'hidden',
|
|
80
|
+
'groups',
|
|
81
|
+
'sidebarTitle',
|
|
82
|
+
'url',
|
|
83
|
+
'icon',
|
|
84
|
+
'iconType',
|
|
85
|
+
'tag',
|
|
86
|
+
'api',
|
|
87
|
+
'openapi',
|
|
88
|
+
'asyncapi',
|
|
89
|
+
'graphql',
|
|
90
|
+
'deprecated',
|
|
91
|
+
'hideApiMarker',
|
|
92
|
+
'mode',
|
|
93
|
+
'playground',
|
|
94
|
+
'version',
|
|
95
|
+
]);
|