@redocly/config 0.7.0 → 0.8.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.
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.productConfigOverrideSchema = exports.productThemeOverrideSchema = exports.closedThemeConfigSchema = exports.themeConfigSchema = exports.catalogSchema = exports.scorecardConfigSchema = exports.catalogFilterSchema = exports.productConfigSchema = exports.googleAnalyticsConfigSchema = exports.productGoogleAnalyticsConfigSchema = exports.gtmAnalyticsConfigSchema = exports.segmentAnalyticsConfigSchema = exports.rudderstackAnalyticsConfigSchema = exports.heapAnalyticsConfigSchema = exports.fullstoryAnalyticsConfigSchema = exports.amplitudeAnalyticsConfigSchema = exports.markdownConfigSchema = void 0;
4
4
  const redoc_config_schema_1 = require("./redoc-config-schema");
5
5
  const graphql_config_schema_1 = require("./graphql-config-schema");
6
+ const reference_docs_config_schema_1 = require("./reference-docs-config-schema");
6
7
  const logoConfigSchema = {
7
8
  type: 'object',
8
9
  properties: {
@@ -566,7 +567,7 @@ exports.themeConfigSchema = {
566
567
  default: {},
567
568
  },
568
569
  markdown: exports.markdownConfigSchema,
569
- openapi: redoc_config_schema_1.redocConfigSchema,
570
+ openapi: Object.assign(Object.assign({}, redoc_config_schema_1.redocConfigSchema), { properties: Object.assign(Object.assign({}, redoc_config_schema_1.redocConfigSchema.properties), reference_docs_config_schema_1.deprecatedRefDocsSchema.properties) }),
570
571
  graphql: graphql_config_schema_1.graphqlConfigSchema,
571
572
  analytics: {
572
573
  type: 'object',
@@ -659,6 +660,7 @@ exports.productThemeOverrideSchema = {
659
660
  default: {},
660
661
  };
661
662
  exports.productConfigOverrideSchema = {
663
+ $id: 'product-config-override',
662
664
  type: 'object',
663
665
  properties: {
664
666
  theme: exports.productThemeOverrideSchema,
package/lib/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export { rbacConfigSchema, rootRedoclyConfigSchema } from './root-config-schema';
2
2
  export { productThemeOverrideSchema, productConfigOverrideSchema, } from './default-theme-config-schema';
3
+ export { redocConfigSchema } from './redoc-config-schema';
3
4
  export * from './types';
4
5
  export * from './portal-shared-types';
5
6
  export { ApigeeDevOnboardingIntegrationAuthType, AuthProviderType, DEFAULT_TEAM_CLAIM_NAME, LayoutVariant, REDOCLY_TEAMS_RBAC, REDOCLY_ROUTE_RBAC, } from './constants';
package/lib/index.js CHANGED
@@ -14,13 +14,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.REDOCLY_ROUTE_RBAC = exports.REDOCLY_TEAMS_RBAC = exports.LayoutVariant = exports.DEFAULT_TEAM_CLAIM_NAME = exports.AuthProviderType = exports.ApigeeDevOnboardingIntegrationAuthType = exports.productConfigOverrideSchema = exports.productThemeOverrideSchema = exports.rootRedoclyConfigSchema = exports.rbacConfigSchema = void 0;
17
+ exports.REDOCLY_ROUTE_RBAC = exports.REDOCLY_TEAMS_RBAC = exports.LayoutVariant = exports.DEFAULT_TEAM_CLAIM_NAME = exports.AuthProviderType = exports.ApigeeDevOnboardingIntegrationAuthType = exports.redocConfigSchema = exports.productConfigOverrideSchema = exports.productThemeOverrideSchema = exports.rootRedoclyConfigSchema = exports.rbacConfigSchema = void 0;
18
18
  var root_config_schema_1 = require("./root-config-schema");
19
19
  Object.defineProperty(exports, "rbacConfigSchema", { enumerable: true, get: function () { return root_config_schema_1.rbacConfigSchema; } });
20
20
  Object.defineProperty(exports, "rootRedoclyConfigSchema", { enumerable: true, get: function () { return root_config_schema_1.rootRedoclyConfigSchema; } });
21
21
  var default_theme_config_schema_1 = require("./default-theme-config-schema");
22
22
  Object.defineProperty(exports, "productThemeOverrideSchema", { enumerable: true, get: function () { return default_theme_config_schema_1.productThemeOverrideSchema; } });
23
23
  Object.defineProperty(exports, "productConfigOverrideSchema", { enumerable: true, get: function () { return default_theme_config_schema_1.productConfigOverrideSchema; } });
24
+ var redoc_config_schema_1 = require("./redoc-config-schema");
25
+ Object.defineProperty(exports, "redocConfigSchema", { enumerable: true, get: function () { return redoc_config_schema_1.redocConfigSchema; } });
24
26
  __exportStar(require("./types"), exports);
25
27
  __exportStar(require("./portal-shared-types"), exports);
26
28
  var constants_1 = require("./constants");
@@ -231,7 +231,6 @@ export type Version = {
231
231
  link: string;
232
232
  default: boolean;
233
233
  active: boolean;
234
- notExists?: boolean;
235
234
  folderId: string;
236
235
  [REDOCLY_TEAMS_RBAC]?: RbacScopeItems;
237
236
  [REDOCLY_ROUTE_RBAC]?: {