@redocly/config 0.40.0 → 0.41.0
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/lib/default-theme-config-schema.d.ts +537 -7
- package/lib/default-theme-config-schema.js +2 -1
- package/lib/ex-theme-config-schemas.d.ts +0 -11
- package/lib/ex-theme-config-schemas.js +1 -9
- package/lib/root-config-schema.d.ts +2645 -136
- package/lib/root-config-schema.js +24 -2
- package/lib/scorecards-config-schema.d.ts +1079 -0
- package/lib/scorecards-config-schema.js +240 -0
- package/lib/types/api-functions-types.d.ts +2 -2
- package/lib/types/config-types.d.ts +5 -2
- package/lib/types/portal-shared-types.d.ts +1 -1
- package/lib-esm/default-theme-config-schema.d.ts +537 -7
- package/lib-esm/default-theme-config-schema.js +2 -1
- package/lib-esm/ex-theme-config-schemas.d.ts +0 -11
- package/lib-esm/ex-theme-config-schemas.js +0 -8
- package/lib-esm/root-config-schema.d.ts +2645 -136
- package/lib-esm/root-config-schema.js +24 -2
- package/lib-esm/scorecards-config-schema.d.ts +1079 -0
- package/lib-esm/scorecards-config-schema.js +237 -0
- package/lib-esm/types/api-functions-types.d.ts +2 -2
- package/lib-esm/types/config-types.d.ts +5 -2
- package/lib-esm/types/portal-shared-types.d.ts +1 -1
- package/package.json +2 -2
|
@@ -4,8 +4,9 @@ import { feedbackConfigSchema } from './feedback-config-schema';
|
|
|
4
4
|
import { graphqlConfigSchema } from './graphql-config-schema';
|
|
5
5
|
import { removePropertyRecursively } from './remove-property-recursively';
|
|
6
6
|
import { reuniteConfigSchema } from './reunite-config-schema';
|
|
7
|
-
import { analyticsConfigSchema, breadcrumbsConfigSchema, catalogsConfigSchema, codeSnippetConfigSchema, colorModeConfigSchema, footerConfigSchema, linksConfigSchema, logoConfigSchema, markdownConfigSchema, navbarConfigSchema, navigationConfigSchema, openapiConfigSchema, productsConfigSchema, scorecardConfigSchema,
|
|
7
|
+
import { analyticsConfigSchema, breadcrumbsConfigSchema, catalogsConfigSchema, codeSnippetConfigSchema, colorModeConfigSchema, footerConfigSchema, linksConfigSchema, logoConfigSchema, markdownConfigSchema, navbarConfigSchema, navigationConfigSchema, openapiConfigSchema, productsConfigSchema, scorecardConfigSchema, scriptsConfigSchema, searchConfigSchema, aiAssistantSchema, sidebarConfigSchema, userMenuConfigSchema, versionPickerConfigSchema, } from './ex-theme-config-schemas';
|
|
8
8
|
import { entitiesCatalogConfigSchema } from './entities-catalog-config-schema';
|
|
9
|
+
import { scorecardsConfigSchema } from './scorecards-config-schema';
|
|
9
10
|
import { ruleSchemas, preprocessorSchemas, decoratorsSchemas } from './common';
|
|
10
11
|
export const oidcIssuerMetadataSchema = {
|
|
11
12
|
type: 'object',
|
|
@@ -95,6 +96,27 @@ export const redirectsConfigSchema = {
|
|
|
95
96
|
additionalProperties: redirectConfigSchema,
|
|
96
97
|
default: {},
|
|
97
98
|
};
|
|
99
|
+
export const bannerColorSchema = {
|
|
100
|
+
type: 'string',
|
|
101
|
+
enum: ['info', 'success', 'warning', 'error'],
|
|
102
|
+
default: 'info',
|
|
103
|
+
};
|
|
104
|
+
export const bannerConfigSchema = {
|
|
105
|
+
type: 'object',
|
|
106
|
+
properties: {
|
|
107
|
+
content: { type: 'string' },
|
|
108
|
+
dismissible: { type: 'boolean', default: false },
|
|
109
|
+
target: { type: 'string' },
|
|
110
|
+
color: bannerColorSchema,
|
|
111
|
+
},
|
|
112
|
+
required: ['content'],
|
|
113
|
+
additionalProperties: false,
|
|
114
|
+
};
|
|
115
|
+
export const bannersConfigSchema = {
|
|
116
|
+
type: 'array',
|
|
117
|
+
items: bannerConfigSchema,
|
|
118
|
+
default: [],
|
|
119
|
+
};
|
|
98
120
|
export const apiConfigSchema = {
|
|
99
121
|
type: 'object',
|
|
100
122
|
properties: Object.assign(Object.assign(Object.assign(Object.assign({ root: { type: 'string' }, output: { type: 'string', pattern: '(.ya?ml|.json)$' }, rbac: { type: 'object', additionalProperties: true }, openapi: openapiConfigSchema, graphql: graphqlConfigSchema,
|
|
@@ -444,7 +466,7 @@ export const redoclyConfigSchema = {
|
|
|
444
466
|
/**
|
|
445
467
|
* @deprecated Should use `scorecardClassic` instead
|
|
446
468
|
*/
|
|
447
|
-
scorecard: scorecardConfigSchema, scorecards: scorecardsConfigSchema, scorecardClassic: scorecardConfigSchema, mcp: mcpConfigSchema }),
|
|
469
|
+
scorecard: scorecardConfigSchema, scorecards: scorecardsConfigSchema, scorecardClassic: scorecardConfigSchema, mcp: mcpConfigSchema, banner: bannersConfigSchema }),
|
|
448
470
|
default: { redirects: {}, seo: seoConfigSchema.default },
|
|
449
471
|
additionalProperties: true,
|
|
450
472
|
};
|