@redocly/config
Advanced tools
Comparing version 0.0.0-cache-perf-20240625144418 to 0.0.0-cache-perf-20240626070422
import { redocConfigSchema } from './redoc-config-schema'; | ||
import { graphqlConfigSchema } from './graphql-config-schema'; | ||
const logoConfigSchema = { | ||
@@ -566,3 +567,3 @@ type: 'object', | ||
openapi: redocConfigSchema, | ||
graphql: { type: 'object', additionalProperties: true }, | ||
graphql: graphqlConfigSchema, | ||
analytics: { | ||
@@ -569,0 +570,0 @@ type: 'object', |
@@ -5,2 +5,2 @@ export { rbacConfigSchema, rootRedoclyConfigSchema } from './root-config-schema'; | ||
export * from './portal-shared-types'; | ||
export { ApigeeDevOnboardingIntegrationAuthType, AuthProviderType, LayoutVariant, REDOCLY_TEAMS_RBAC, REDOCLY_ROUTE_RBAC, } from './constants'; | ||
export { ApigeeDevOnboardingIntegrationAuthType, AuthProviderType, DEFAULT_TEAM_CLAIM_NAME, LayoutVariant, REDOCLY_TEAMS_RBAC, REDOCLY_ROUTE_RBAC, } from './constants'; |
@@ -5,3 +5,3 @@ export { rbacConfigSchema, rootRedoclyConfigSchema } from './root-config-schema'; | ||
export * from './portal-shared-types'; | ||
export { ApigeeDevOnboardingIntegrationAuthType, AuthProviderType, LayoutVariant, REDOCLY_TEAMS_RBAC, REDOCLY_ROUTE_RBAC, } from './constants'; | ||
export { ApigeeDevOnboardingIntegrationAuthType, AuthProviderType, DEFAULT_TEAM_CLAIM_NAME, LayoutVariant, REDOCLY_TEAMS_RBAC, REDOCLY_ROUTE_RBAC, } from './constants'; | ||
//# sourceMappingURL=index.js.map |
@@ -0,1 +1,2 @@ | ||
import { feedbackConfigSchema } from './feedback-config-schema'; | ||
const codeSamplesConfigSchema = { | ||
@@ -72,69 +73,3 @@ type: 'object', | ||
hideSidebar: { type: 'boolean' }, | ||
feedback: { | ||
type: 'object', | ||
properties: { | ||
hide: { | ||
type: 'boolean', | ||
default: false, | ||
}, | ||
type: { | ||
type: 'string', | ||
enum: ['rating', 'sentiment', 'comment', 'reasons', 'mood', 'scale'], | ||
default: 'sentiment', | ||
}, | ||
settings: { | ||
type: 'object', | ||
properties: { | ||
label: { type: 'string' }, | ||
submitText: { type: 'string' }, | ||
buttonText: { type: 'string' }, | ||
component: { | ||
type: 'string', | ||
enum: ['radio', 'checkbox'], | ||
default: 'checkbox', | ||
}, | ||
items: { type: 'array', items: { type: 'string' }, minItems: 1 }, | ||
leftScaleLabel: { type: 'string' }, | ||
rightScaleLabel: { type: 'string' }, | ||
reasons: { | ||
type: 'object', | ||
properties: { | ||
hide: { | ||
type: 'boolean', | ||
default: false, | ||
}, | ||
component: { | ||
type: 'string', | ||
enum: ['radio', 'checkbox'], | ||
default: 'checkbox', | ||
}, | ||
label: { type: 'string' }, | ||
items: { type: 'array', items: { type: 'string' } }, | ||
}, | ||
additionalProperties: false, | ||
}, | ||
comment: { | ||
type: 'object', | ||
properties: { | ||
hide: { | ||
type: 'boolean', | ||
default: false, | ||
}, | ||
label: { type: 'string' }, | ||
likeLabel: { type: 'string' }, | ||
dislikeLabel: { type: 'string' }, | ||
satisfiedLabel: { type: 'string' }, | ||
neutralLabel: { type: 'string' }, | ||
dissatisfiedLabel: { type: 'string' }, | ||
}, | ||
additionalProperties: false, | ||
}, | ||
}, | ||
additionalProperties: false, | ||
}, | ||
}, | ||
additionalProperties: false, | ||
default: null, | ||
nullable: true, | ||
}, | ||
feedback: feedbackConfigSchema, | ||
hideReplay: { type: 'boolean' }, | ||
@@ -141,0 +76,0 @@ oAuth2RedirectURI: { type: 'string', nullable: true }, |
@@ -115,2 +115,8 @@ import { DEFAULT_TEAM_CLAIM_NAME, AuthProviderType, ApigeeDevOnboardingIntegrationAuthType, } from './constants'; | ||
}; | ||
const rulesSchema = { | ||
type: 'object', | ||
additionalProperties: { | ||
oneOf: [{ type: 'string' }, { type: 'object' }], | ||
}, | ||
}; | ||
export const apiConfigSchema = { | ||
@@ -132,3 +138,3 @@ type: 'object', | ||
metadata: { type: 'object', additionalProperties: true }, | ||
rules: { type: 'object', additionalProperties: true }, | ||
rules: rulesSchema, | ||
decorators: { type: 'object', additionalProperties: true }, | ||
@@ -323,8 +329,5 @@ preprocessors: { type: 'object', additionalProperties: true }, | ||
}, | ||
rules: { | ||
type: 'object', | ||
additionalProperties: { | ||
oneOf: [{ type: 'string' }, { type: 'object' }], | ||
}, | ||
}, | ||
rules: rulesSchema, | ||
decorators: { type: 'object', additionalProperties: true }, | ||
preprocessors: { type: 'object', additionalProperties: true }, | ||
ssoOnPrem: ssoOnPremConfigSchema, | ||
@@ -331,0 +334,0 @@ sso: ssoConfigSchema, |
@@ -5,2 +5,3 @@ import type { FromSchema } from 'json-schema-to-ts'; | ||
import type { RedocConfigTypes } from './redoc-types'; | ||
import type { GraphQLConfigTypes } from './graphql-types'; | ||
/** | ||
@@ -11,2 +12,3 @@ * Theme | ||
export type RedocConfig = RedocConfigTypes; | ||
export type GraphQLConfig = GraphQLConfigTypes; | ||
export type ProductConfig = FromSchema<typeof productConfigSchema>; | ||
@@ -13,0 +15,0 @@ export type ProductGoogleAnalyticsConfig = FromSchema<typeof productGoogleAnalyticsConfigSchema>; |
@@ -5,2 +5,3 @@ "use strict"; | ||
const redoc_config_schema_1 = require("./redoc-config-schema"); | ||
const graphql_config_schema_1 = require("./graphql-config-schema"); | ||
const logoConfigSchema = { | ||
@@ -570,3 +571,3 @@ type: 'object', | ||
openapi: redoc_config_schema_1.redocConfigSchema, | ||
graphql: { type: 'object', additionalProperties: true }, | ||
graphql: graphql_config_schema_1.graphqlConfigSchema, | ||
analytics: { | ||
@@ -573,0 +574,0 @@ type: 'object', |
@@ -5,2 +5,2 @@ export { rbacConfigSchema, rootRedoclyConfigSchema } from './root-config-schema'; | ||
export * from './portal-shared-types'; | ||
export { ApigeeDevOnboardingIntegrationAuthType, AuthProviderType, LayoutVariant, REDOCLY_TEAMS_RBAC, REDOCLY_ROUTE_RBAC, } from './constants'; | ||
export { ApigeeDevOnboardingIntegrationAuthType, AuthProviderType, DEFAULT_TEAM_CLAIM_NAME, LayoutVariant, REDOCLY_TEAMS_RBAC, REDOCLY_ROUTE_RBAC, } from './constants'; |
@@ -17,3 +17,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.REDOCLY_ROUTE_RBAC = exports.REDOCLY_TEAMS_RBAC = exports.LayoutVariant = exports.AuthProviderType = exports.ApigeeDevOnboardingIntegrationAuthType = exports.productConfigOverrideSchema = exports.productThemeOverrideSchema = exports.rootRedoclyConfigSchema = exports.rbacConfigSchema = void 0; | ||
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; | ||
var root_config_schema_1 = require("./root-config-schema"); | ||
@@ -30,2 +30,3 @@ Object.defineProperty(exports, "rbacConfigSchema", { enumerable: true, get: function () { return root_config_schema_1.rbacConfigSchema; } }); | ||
Object.defineProperty(exports, "AuthProviderType", { enumerable: true, get: function () { return constants_1.AuthProviderType; } }); | ||
Object.defineProperty(exports, "DEFAULT_TEAM_CLAIM_NAME", { enumerable: true, get: function () { return constants_1.DEFAULT_TEAM_CLAIM_NAME; } }); | ||
Object.defineProperty(exports, "LayoutVariant", { enumerable: true, get: function () { return constants_1.LayoutVariant; } }); | ||
@@ -32,0 +33,0 @@ Object.defineProperty(exports, "REDOCLY_TEAMS_RBAC", { enumerable: true, get: function () { return constants_1.REDOCLY_TEAMS_RBAC; } }); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.redocConfigSchema = void 0; | ||
const feedback_config_schema_1 = require("./feedback-config-schema"); | ||
const codeSamplesConfigSchema = { | ||
@@ -75,69 +76,3 @@ type: 'object', | ||
hideSidebar: { type: 'boolean' }, | ||
feedback: { | ||
type: 'object', | ||
properties: { | ||
hide: { | ||
type: 'boolean', | ||
default: false, | ||
}, | ||
type: { | ||
type: 'string', | ||
enum: ['rating', 'sentiment', 'comment', 'reasons', 'mood', 'scale'], | ||
default: 'sentiment', | ||
}, | ||
settings: { | ||
type: 'object', | ||
properties: { | ||
label: { type: 'string' }, | ||
submitText: { type: 'string' }, | ||
buttonText: { type: 'string' }, | ||
component: { | ||
type: 'string', | ||
enum: ['radio', 'checkbox'], | ||
default: 'checkbox', | ||
}, | ||
items: { type: 'array', items: { type: 'string' }, minItems: 1 }, | ||
leftScaleLabel: { type: 'string' }, | ||
rightScaleLabel: { type: 'string' }, | ||
reasons: { | ||
type: 'object', | ||
properties: { | ||
hide: { | ||
type: 'boolean', | ||
default: false, | ||
}, | ||
component: { | ||
type: 'string', | ||
enum: ['radio', 'checkbox'], | ||
default: 'checkbox', | ||
}, | ||
label: { type: 'string' }, | ||
items: { type: 'array', items: { type: 'string' } }, | ||
}, | ||
additionalProperties: false, | ||
}, | ||
comment: { | ||
type: 'object', | ||
properties: { | ||
hide: { | ||
type: 'boolean', | ||
default: false, | ||
}, | ||
label: { type: 'string' }, | ||
likeLabel: { type: 'string' }, | ||
dislikeLabel: { type: 'string' }, | ||
satisfiedLabel: { type: 'string' }, | ||
neutralLabel: { type: 'string' }, | ||
dissatisfiedLabel: { type: 'string' }, | ||
}, | ||
additionalProperties: false, | ||
}, | ||
}, | ||
additionalProperties: false, | ||
}, | ||
}, | ||
additionalProperties: false, | ||
default: null, | ||
nullable: true, | ||
}, | ||
feedback: feedback_config_schema_1.feedbackConfigSchema, | ||
hideReplay: { type: 'boolean' }, | ||
@@ -144,0 +79,0 @@ oAuth2RedirectURI: { type: 'string', nullable: true }, |
@@ -118,2 +118,8 @@ "use strict"; | ||
}; | ||
const rulesSchema = { | ||
type: 'object', | ||
additionalProperties: { | ||
oneOf: [{ type: 'string' }, { type: 'object' }], | ||
}, | ||
}; | ||
exports.apiConfigSchema = { | ||
@@ -135,3 +141,3 @@ type: 'object', | ||
metadata: { type: 'object', additionalProperties: true }, | ||
rules: { type: 'object', additionalProperties: true }, | ||
rules: rulesSchema, | ||
decorators: { type: 'object', additionalProperties: true }, | ||
@@ -326,8 +332,5 @@ preprocessors: { type: 'object', additionalProperties: true }, | ||
}, | ||
rules: { | ||
type: 'object', | ||
additionalProperties: { | ||
oneOf: [{ type: 'string' }, { type: 'object' }], | ||
}, | ||
}, | ||
rules: rulesSchema, | ||
decorators: { type: 'object', additionalProperties: true }, | ||
preprocessors: { type: 'object', additionalProperties: true }, | ||
ssoOnPrem: exports.ssoOnPremConfigSchema, | ||
@@ -334,0 +337,0 @@ sso: exports.ssoConfigSchema, |
@@ -5,2 +5,3 @@ import type { FromSchema } from 'json-schema-to-ts'; | ||
import type { RedocConfigTypes } from './redoc-types'; | ||
import type { GraphQLConfigTypes } from './graphql-types'; | ||
/** | ||
@@ -11,2 +12,3 @@ * Theme | ||
export type RedocConfig = RedocConfigTypes; | ||
export type GraphQLConfig = GraphQLConfigTypes; | ||
export type ProductConfig = FromSchema<typeof productConfigSchema>; | ||
@@ -13,0 +15,0 @@ export type ProductGoogleAnalyticsConfig = FromSchema<typeof productGoogleAnalyticsConfigSchema>; |
{ | ||
"name": "@redocly/config", | ||
"version": "0.0.0-cache-perf-20240625144418", | ||
"version": "0.0.0-cache-perf-20240626070422", | ||
"license": "MIT", | ||
@@ -11,2 +11,3 @@ "main": "./lib/index.js", | ||
"@types/react": "18.3.2", | ||
"react-router-dom": "^6.21.1", | ||
"json-schema-to-ts": "2.7.2", | ||
@@ -13,0 +14,0 @@ "rimraf": "5.0.5", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
1808513
36425
0
6
55