@redocly/config 0.26.2 → 0.26.3
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/common.d.ts +1 -1
- package/lib/common.js +1 -1
- package/lib/default-theme-config-schema.d.ts +573 -4326
- package/lib/default-theme-config-schema.js +3 -2
- package/lib/entities-catalog-config-schema.d.ts +718 -0
- package/lib/entities-catalog-config-schema.js +84 -0
- package/lib/ex-theme-config-schemas.d.ts +64 -0
- package/lib/ex-theme-config-schemas.js +1 -1
- package/lib/product-override-schema.d.ts +1 -1
- package/lib/root-config-schema.d.ts +3449 -209
- package/lib/root-config-schema.js +2 -1
- package/lib/types/catalog-entity-types.d.ts +29 -0
- package/lib/types/catalog-entity-types.js +3 -0
- package/lib/types/config-types.d.ts +2 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/index.js +1 -0
- package/lib/types/portal-shared-types.d.ts +12 -1
- package/lib-esm/common.d.ts +1 -1
- package/lib-esm/common.js +1 -1
- package/lib-esm/default-theme-config-schema.d.ts +573 -4326
- package/lib-esm/default-theme-config-schema.js +2 -1
- package/lib-esm/entities-catalog-config-schema.d.ts +718 -0
- package/lib-esm/entities-catalog-config-schema.js +81 -0
- package/lib-esm/ex-theme-config-schemas.d.ts +64 -0
- package/lib-esm/ex-theme-config-schemas.js +2 -2
- package/lib-esm/product-override-schema.d.ts +1 -1
- package/lib-esm/root-config-schema.d.ts +3449 -209
- package/lib-esm/root-config-schema.js +2 -1
- package/lib-esm/types/catalog-entity-types.d.ts +29 -0
- package/lib-esm/types/catalog-entity-types.js +2 -0
- package/lib-esm/types/config-types.d.ts +2 -0
- package/lib-esm/types/index.d.ts +1 -0
- package/lib-esm/types/index.js +1 -0
- package/lib-esm/types/portal-shared-types.d.ts +12 -1
- package/package.json +2 -2
|
@@ -5,6 +5,7 @@ import { graphqlConfigSchema } from './graphql-config-schema';
|
|
|
5
5
|
import { removePropertyRecursively } from './remove-property-recursively';
|
|
6
6
|
import { reuniteConfigSchema } from './reunite-config-schema';
|
|
7
7
|
import { analyticsConfigSchema, breadcrumbsConfigSchema, catalogsConfigSchema, codeSnippetConfigSchema, colorModeConfigSchema, footerConfigSchema, linksConfigSchema, logoConfigSchema, markdownConfigSchema, navbarConfigSchema, navigationConfigSchema, openapiConfigSchema, productsConfigSchema, scorecardConfigSchema, scriptsConfigSchema, searchConfigSchema, sidebarConfigSchema, userMenuConfigSchema, versionPickerConfigSchema, } from './ex-theme-config-schemas';
|
|
8
|
+
import { entitiesCatalogConfigSchema } from './entities-catalog-config-schema';
|
|
8
9
|
import { ruleSchemas, preprocessorSchemas, decoratorsSchemas } from './common';
|
|
9
10
|
export const oidcIssuerMetadataSchema = {
|
|
10
11
|
type: 'object',
|
|
@@ -409,7 +410,7 @@ export const redoclyConfigSchema = {
|
|
|
409
410
|
/**
|
|
410
411
|
* @deprecated Should use `catalogClassic` instead
|
|
411
412
|
*/
|
|
412
|
-
catalog: catalogsConfigSchema, catalogClassic: catalogsConfigSchema, scorecard: scorecardConfigSchema }),
|
|
413
|
+
catalog: catalogsConfigSchema, entitiesCatalog: entitiesCatalogConfigSchema, catalogClassic: catalogsConfigSchema, scorecard: scorecardConfigSchema }),
|
|
413
414
|
default: { redirects: {}, seo: seoConfigSchema.default },
|
|
414
415
|
additionalProperties: true,
|
|
415
416
|
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export type CatalogConfigEntityExclude = {
|
|
2
|
+
key: string;
|
|
3
|
+
};
|
|
4
|
+
export type CatalogConfigEntityInclude = {
|
|
5
|
+
type: string;
|
|
6
|
+
};
|
|
7
|
+
export type CatalogConfigEntityFilter = {
|
|
8
|
+
title: string;
|
|
9
|
+
titleTranslationKey?: string;
|
|
10
|
+
parentFilter?: string;
|
|
11
|
+
valuesMapping?: Record<string, string>;
|
|
12
|
+
missingCategoryName?: string;
|
|
13
|
+
missingCategoryNameTranslationKey?: string;
|
|
14
|
+
property: string;
|
|
15
|
+
type?: 'select' | 'checkboxes' | 'date-range';
|
|
16
|
+
options?: string[];
|
|
17
|
+
hide?: boolean;
|
|
18
|
+
label?: string;
|
|
19
|
+
};
|
|
20
|
+
export type CatalogEntityConfig = {
|
|
21
|
+
slug?: string;
|
|
22
|
+
hide?: boolean;
|
|
23
|
+
excludes?: CatalogConfigEntityExclude[];
|
|
24
|
+
includes?: CatalogConfigEntityInclude[];
|
|
25
|
+
filters?: CatalogConfigEntityFilter[];
|
|
26
|
+
titleTranslationKey?: string;
|
|
27
|
+
descriptionTranslationKey?: string;
|
|
28
|
+
catalogSwitcherLabelTranslationKey?: string;
|
|
29
|
+
};
|
|
@@ -7,6 +7,7 @@ import type { GraphQLConfigTypes } from './graphql-types';
|
|
|
7
7
|
import type { productConfigSchema, productGoogleAnalyticsConfigSchema, markdownConfigSchema, amplitudeAnalyticsConfigSchema, rudderstackAnalyticsConfigSchema, segmentAnalyticsConfigSchema, gtmAnalyticsConfigSchema, googleAnalyticsConfigSchema, scorecardConfigSchema, catalogFilterSchema, catalogSchema, searchFacetsConfigSchema } from '../ex-theme-config-schemas';
|
|
8
8
|
import type { reuniteConfigSchema } from '../reunite-config-schema';
|
|
9
9
|
import type { optionalEmailSettings, reasonsSettings } from '../feedback-config-schema';
|
|
10
|
+
import type { entitiesCatalogConfigSchema } from '../entities-catalog-config-schema';
|
|
10
11
|
/**
|
|
11
12
|
* @deprecated left for backwards compatibility. To be removed in Realm 1.0
|
|
12
13
|
*/
|
|
@@ -24,6 +25,7 @@ export type SegmentAnalyticsConfig = FromSchema<typeof segmentAnalyticsConfigSch
|
|
|
24
25
|
export type GtmAnalyticsConfig = FromSchema<typeof gtmAnalyticsConfigSchema>;
|
|
25
26
|
export type GoogleAnalyticsConfig = FromSchema<typeof googleAnalyticsConfigSchema>;
|
|
26
27
|
export type CatalogConfig = FromSchema<typeof catalogSchema>;
|
|
28
|
+
export type EntitiesCatalogConfig = FromSchema<typeof entitiesCatalogConfigSchema>;
|
|
27
29
|
export type CatalogFilterConfig = FromSchema<typeof catalogFilterSchema>;
|
|
28
30
|
export type ReuniteConfig = FromSchema<typeof reuniteConfigSchema>;
|
|
29
31
|
export type ScorecardConfig = FromSchema<typeof scorecardConfigSchema>;
|
package/lib-esm/types/index.d.ts
CHANGED
package/lib-esm/types/index.js
CHANGED
|
@@ -160,7 +160,18 @@ export type PageProps = {
|
|
|
160
160
|
seo?: SeoConfig;
|
|
161
161
|
frontmatter?: Omit<PageProps, 'frontmatter'> & {
|
|
162
162
|
settings?: any;
|
|
163
|
-
} & Partial<UiAccessibleConfig
|
|
163
|
+
} & Partial<UiAccessibleConfig> & {
|
|
164
|
+
navigation?: {
|
|
165
|
+
nextButton?: {
|
|
166
|
+
link?: string;
|
|
167
|
+
label?: string;
|
|
168
|
+
};
|
|
169
|
+
previousButton?: {
|
|
170
|
+
link?: string;
|
|
171
|
+
label?: string;
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
};
|
|
164
175
|
disableAutoScroll?: boolean;
|
|
165
176
|
lastModified?: string | null;
|
|
166
177
|
[k: string]: unknown;
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/config",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib-esm/index.js",
|
|
7
7
|
"types": "./lib/index.d.ts",
|
|
8
8
|
"devDependencies": {
|
|
9
|
-
"@markdoc/markdoc": "0.5.
|
|
9
|
+
"@markdoc/markdoc": "0.5.2",
|
|
10
10
|
"@types/node": "22.15.3",
|
|
11
11
|
"@types/react": "^19.1.4",
|
|
12
12
|
"json-schema-to-ts": "2.7.2",
|