@redocly/config 0.39.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 +836 -2
- package/lib/default-theme-config-schema.js +6 -1
- package/lib/entities-catalog-entity-file-schema.d.ts +87 -0
- package/lib/entities-catalog-entity-file-schema.js +9 -0
- package/lib/ex-theme-config-schemas.d.ts +0 -11
- package/lib/ex-theme-config-schemas.js +1 -9
- package/lib/graphql-config-schema.d.ts +52 -0
- package/lib/graphql-config-schema.js +31 -0
- package/lib/product-override-schema.d.ts +104 -0
- package/lib/root-config-schema.d.ts +6281 -1577
- package/lib/root-config-schema.js +28 -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/catalog-entity-types.d.ts +2 -0
- 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 +836 -2
- package/lib-esm/default-theme-config-schema.js +6 -1
- package/lib-esm/entities-catalog-entity-file-schema.d.ts +87 -0
- package/lib-esm/entities-catalog-entity-file-schema.js +9 -0
- package/lib-esm/ex-theme-config-schemas.d.ts +0 -11
- package/lib-esm/ex-theme-config-schemas.js +0 -8
- package/lib-esm/graphql-config-schema.d.ts +52 -0
- package/lib-esm/graphql-config-schema.js +31 -0
- package/lib-esm/product-override-schema.d.ts +104 -0
- package/lib-esm/root-config-schema.d.ts +6281 -1577
- package/lib-esm/root-config-schema.js +28 -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/catalog-entity-types.d.ts +2 -0
- 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,
|
|
@@ -440,7 +462,11 @@ export const redoclyConfigSchema = {
|
|
|
440
462
|
/**
|
|
441
463
|
* @deprecated Should use `catalogClassic` instead
|
|
442
464
|
*/
|
|
443
|
-
catalog: catalogsConfigSchema, entitiesCatalog: entitiesCatalogConfigSchema, catalogClassic: catalogsConfigSchema,
|
|
465
|
+
catalog: catalogsConfigSchema, entitiesCatalog: entitiesCatalogConfigSchema, catalogClassic: catalogsConfigSchema,
|
|
466
|
+
/**
|
|
467
|
+
* @deprecated Should use `scorecardClassic` instead
|
|
468
|
+
*/
|
|
469
|
+
scorecard: scorecardConfigSchema, scorecards: scorecardsConfigSchema, scorecardClassic: scorecardConfigSchema, mcp: mcpConfigSchema, banner: bannersConfigSchema }),
|
|
444
470
|
default: { redirects: {}, seo: seoConfigSchema.default },
|
|
445
471
|
additionalProperties: true,
|
|
446
472
|
};
|