@redocly/config
Advanced tools
Comparing version 0.11.0-rc.2-rc-20240906003422 to 0.11.0
@@ -38,3 +38,3 @@ import { graphqlConfigSchema } from './graphql-config-schema'; | ||
}; | ||
export const closedThemeConfigSchema = Object.assign(Object.assign({}, themeConfigSchema), { additionalProperties: false }); // | ||
export const closedThemeConfigSchema = Object.assign(Object.assign({}, themeConfigSchema), { additionalProperties: false }); | ||
//# sourceMappingURL=default-theme-config-schema.js.map |
@@ -80,19 +80,3 @@ import { redocConfigSchema } from './redoc-config-schema'; | ||
}; | ||
export const searchFacetsConfigSchema = { | ||
type: 'array', | ||
items: { | ||
type: 'object', | ||
required: ['name', 'field', 'type'], | ||
properties: { | ||
isTop: { type: 'boolean' }, | ||
name: { type: 'string' }, | ||
field: { type: 'string' }, | ||
type: { | ||
type: 'string', | ||
enum: ['input', 'multi-select', 'select', 'tags', 'switch', 'radio', 'checkbox'], | ||
}, | ||
}, | ||
}, | ||
}; | ||
const searchSuggestedPageSchema = { | ||
const suggestedPageSchema = { | ||
type: 'object', | ||
@@ -175,8 +159,4 @@ properties: { | ||
type: 'object', | ||
properties: Object.assign({ engine: { | ||
properties: Object.assign({ placement: { | ||
type: 'string', | ||
enum: ['flexsearch', 'typesense'], | ||
default: 'flexsearch', | ||
}, facets: searchFacetsConfigSchema, placement: { | ||
type: 'string', | ||
default: 'navbar', | ||
@@ -189,3 +169,6 @@ }, shortcuts: { | ||
type: 'array', | ||
items: searchSuggestedPageSchema, | ||
items: suggestedPageSchema, | ||
}, fuzzy: { | ||
type: 'boolean', | ||
default: false, | ||
} }, hideConfigSchema.properties), | ||
@@ -524,2 +507,5 @@ additionalProperties: false, | ||
properties: { | ||
/** | ||
* @deprecated Should use `reunite.ignoreLint` instead | ||
*/ | ||
ignoreNonCompliant: { type: 'boolean', default: false }, | ||
@@ -526,0 +512,0 @@ teamMetadataProperty: { |
export declare const reuniteConfigSchema: { | ||
readonly type: "object"; | ||
readonly properties: { | ||
readonly ignoreLint: { | ||
readonly type: "boolean"; | ||
readonly default: false; | ||
}; | ||
readonly ignoreLinkChecker: { | ||
@@ -5,0 +9,0 @@ readonly type: "boolean"; |
export const reuniteConfigSchema = { | ||
type: 'object', | ||
properties: { | ||
ignoreLint: { type: 'boolean', default: false }, | ||
ignoreLinkChecker: { type: 'boolean' }, | ||
@@ -5,0 +6,0 @@ ignoreMarkdocErrors: { type: 'boolean' }, |
@@ -7,3 +7,3 @@ import type { FromSchema } from 'json-schema-to-ts'; | ||
import type { GraphQLConfigTypes } from './graphql-types'; | ||
import type { productConfigSchema, productGoogleAnalyticsConfigSchema, markdownConfigSchema, amplitudeAnalyticsConfigSchema, rudderstackAnalyticsConfigSchema, segmentAnalyticsConfigSchema, gtmAnalyticsConfigSchema, googleAnalyticsConfigSchema, scorecardConfigSchema, catalogFilterSchema, catalogSchema, searchFacetsConfigSchema } from './ex-theme-config-schemas'; | ||
import type { productConfigSchema, productGoogleAnalyticsConfigSchema, markdownConfigSchema, amplitudeAnalyticsConfigSchema, rudderstackAnalyticsConfigSchema, segmentAnalyticsConfigSchema, gtmAnalyticsConfigSchema, googleAnalyticsConfigSchema, scorecardConfigSchema, catalogFilterSchema, catalogSchema } from './ex-theme-config-schemas'; | ||
/** | ||
@@ -28,3 +28,2 @@ * @deprecated left for backwards compatibility. To be removed in Realm 1.0 | ||
export type ScorecardConfig = FromSchema<typeof scorecardConfigSchema>; | ||
export type SearchFacetsConfig = FromSchema<typeof searchFacetsConfigSchema>; | ||
export type RedoclyConfig = Omit<FromSchema<typeof rootRedoclyConfigSchema>, 'theme' | 'apis'> & { | ||
@@ -31,0 +30,0 @@ /** |
@@ -41,3 +41,3 @@ "use strict"; | ||
}; | ||
exports.closedThemeConfigSchema = Object.assign(Object.assign({}, exports.themeConfigSchema), { additionalProperties: false }); // | ||
exports.closedThemeConfigSchema = Object.assign(Object.assign({}, exports.themeConfigSchema), { additionalProperties: false }); | ||
//# sourceMappingURL=default-theme-config-schema.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.scorecardConfigSchema = exports.catalogsConfigSchema = exports.catalogSchema = exports.catalogFilterSchema = exports.breadcrumbsConfigSchema = exports.versionPickerConfigSchema = exports.userMenuConfigSchema = exports.analyticsConfigSchema = exports.googleAnalyticsConfigSchema = exports.productGoogleAnalyticsConfigSchema = exports.gtmAnalyticsConfigSchema = exports.segmentAnalyticsConfigSchema = exports.rudderstackAnalyticsConfigSchema = exports.heapAnalyticsConfigSchema = exports.fullstoryAnalyticsConfigSchema = exports.amplitudeAnalyticsConfigSchema = exports.openapiConfigSchema = exports.markdownConfigSchema = exports.codeSnippetConfigSchema = exports.navigationConfigSchema = exports.colorModeConfigSchema = exports.searchConfigSchema = exports.linksConfigSchema = exports.scriptsConfigSchema = exports.sidebarConfigSchema = exports.footerConfigSchema = exports.productsConfigSchema = exports.navbarConfigSchema = exports.logoConfigSchema = exports.searchFacetsConfigSchema = exports.productConfigSchema = exports.navItemsSchema = void 0; | ||
exports.scorecardConfigSchema = exports.catalogsConfigSchema = exports.catalogSchema = exports.catalogFilterSchema = exports.breadcrumbsConfigSchema = exports.versionPickerConfigSchema = exports.userMenuConfigSchema = exports.analyticsConfigSchema = exports.googleAnalyticsConfigSchema = exports.productGoogleAnalyticsConfigSchema = exports.gtmAnalyticsConfigSchema = exports.segmentAnalyticsConfigSchema = exports.rudderstackAnalyticsConfigSchema = exports.heapAnalyticsConfigSchema = exports.fullstoryAnalyticsConfigSchema = exports.amplitudeAnalyticsConfigSchema = exports.openapiConfigSchema = exports.markdownConfigSchema = exports.codeSnippetConfigSchema = exports.navigationConfigSchema = exports.colorModeConfigSchema = exports.searchConfigSchema = exports.linksConfigSchema = exports.scriptsConfigSchema = exports.sidebarConfigSchema = exports.footerConfigSchema = exports.productsConfigSchema = exports.navbarConfigSchema = exports.logoConfigSchema = exports.productConfigSchema = exports.navItemsSchema = void 0; | ||
const redoc_config_schema_1 = require("./redoc-config-schema"); | ||
@@ -83,19 +83,3 @@ const reference_docs_config_schema_1 = require("./reference-docs-config-schema"); | ||
}; | ||
exports.searchFacetsConfigSchema = { | ||
type: 'array', | ||
items: { | ||
type: 'object', | ||
required: ['name', 'field', 'type'], | ||
properties: { | ||
isTop: { type: 'boolean' }, | ||
name: { type: 'string' }, | ||
field: { type: 'string' }, | ||
type: { | ||
type: 'string', | ||
enum: ['input', 'multi-select', 'select', 'tags', 'switch', 'radio', 'checkbox'], | ||
}, | ||
}, | ||
}, | ||
}; | ||
const searchSuggestedPageSchema = { | ||
const suggestedPageSchema = { | ||
type: 'object', | ||
@@ -178,8 +162,4 @@ properties: { | ||
type: 'object', | ||
properties: Object.assign({ engine: { | ||
properties: Object.assign({ placement: { | ||
type: 'string', | ||
enum: ['flexsearch', 'typesense'], | ||
default: 'flexsearch', | ||
}, facets: exports.searchFacetsConfigSchema, placement: { | ||
type: 'string', | ||
default: 'navbar', | ||
@@ -192,3 +172,6 @@ }, shortcuts: { | ||
type: 'array', | ||
items: searchSuggestedPageSchema, | ||
items: suggestedPageSchema, | ||
}, fuzzy: { | ||
type: 'boolean', | ||
default: false, | ||
} }, hideConfigSchema.properties), | ||
@@ -527,2 +510,5 @@ additionalProperties: false, | ||
properties: { | ||
/** | ||
* @deprecated Should use `reunite.ignoreLint` instead | ||
*/ | ||
ignoreNonCompliant: { type: 'boolean', default: false }, | ||
@@ -529,0 +515,0 @@ teamMetadataProperty: { |
export declare const reuniteConfigSchema: { | ||
readonly type: "object"; | ||
readonly properties: { | ||
readonly ignoreLint: { | ||
readonly type: "boolean"; | ||
readonly default: false; | ||
}; | ||
readonly ignoreLinkChecker: { | ||
@@ -5,0 +9,0 @@ readonly type: "boolean"; |
@@ -7,2 +7,3 @@ "use strict"; | ||
properties: { | ||
ignoreLint: { type: 'boolean', default: false }, | ||
ignoreLinkChecker: { type: 'boolean' }, | ||
@@ -9,0 +10,0 @@ ignoreMarkdocErrors: { type: 'boolean' }, |
@@ -7,3 +7,3 @@ import type { FromSchema } from 'json-schema-to-ts'; | ||
import type { GraphQLConfigTypes } from './graphql-types'; | ||
import type { productConfigSchema, productGoogleAnalyticsConfigSchema, markdownConfigSchema, amplitudeAnalyticsConfigSchema, rudderstackAnalyticsConfigSchema, segmentAnalyticsConfigSchema, gtmAnalyticsConfigSchema, googleAnalyticsConfigSchema, scorecardConfigSchema, catalogFilterSchema, catalogSchema, searchFacetsConfigSchema } from './ex-theme-config-schemas'; | ||
import type { productConfigSchema, productGoogleAnalyticsConfigSchema, markdownConfigSchema, amplitudeAnalyticsConfigSchema, rudderstackAnalyticsConfigSchema, segmentAnalyticsConfigSchema, gtmAnalyticsConfigSchema, googleAnalyticsConfigSchema, scorecardConfigSchema, catalogFilterSchema, catalogSchema } from './ex-theme-config-schemas'; | ||
/** | ||
@@ -28,3 +28,2 @@ * @deprecated left for backwards compatibility. To be removed in Realm 1.0 | ||
export type ScorecardConfig = FromSchema<typeof scorecardConfigSchema>; | ||
export type SearchFacetsConfig = FromSchema<typeof searchFacetsConfigSchema>; | ||
export type RedoclyConfig = Omit<FromSchema<typeof rootRedoclyConfigSchema>, 'theme' | 'apis'> & { | ||
@@ -31,0 +30,0 @@ /** |
{ | ||
"name": "@redocly/config", | ||
"version": "0.11.0-rc.2-rc-20240906003422", | ||
"version": "0.11.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6944627
67
128419