Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@redocly/config

Package Overview
Dependencies
Maintainers
9
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@redocly/config - npm Package Compare versions

Comparing version 0.15.0 to 0.16.0

144

lib-esm/feedback-config-schema.d.ts

@@ -0,1 +1,25 @@

export declare const reasonsSettingsSchema: {
readonly type: "object";
readonly properties: {
readonly hide: {
readonly type: "boolean";
readonly default: false;
};
readonly component: {
readonly type: "string";
readonly enum: readonly ["radio", "checkbox"];
readonly default: "checkbox";
};
readonly label: {
readonly type: "string";
};
readonly items: {
readonly type: "array";
readonly items: {
readonly type: "string";
};
};
};
readonly additionalProperties: false;
};
export declare const feedbackConfigSchema: {

@@ -46,2 +70,122 @@ readonly type: "object";

readonly properties: {
readonly like: {
readonly type: "object";
readonly properties: {
readonly hide: {
readonly type: "boolean";
readonly default: false;
};
readonly component: {
readonly type: "string";
readonly enum: readonly ["radio", "checkbox"];
readonly default: "checkbox";
};
readonly label: {
readonly type: "string";
};
readonly items: {
readonly type: "array";
readonly items: {
readonly type: "string";
};
};
};
readonly additionalProperties: false;
};
readonly dislike: {
readonly type: "object";
readonly properties: {
readonly hide: {
readonly type: "boolean";
readonly default: false;
};
readonly component: {
readonly type: "string";
readonly enum: readonly ["radio", "checkbox"];
readonly default: "checkbox";
};
readonly label: {
readonly type: "string";
};
readonly items: {
readonly type: "array";
readonly items: {
readonly type: "string";
};
};
};
readonly additionalProperties: false;
};
readonly satisfied: {
readonly type: "object";
readonly properties: {
readonly hide: {
readonly type: "boolean";
readonly default: false;
};
readonly component: {
readonly type: "string";
readonly enum: readonly ["radio", "checkbox"];
readonly default: "checkbox";
};
readonly label: {
readonly type: "string";
};
readonly items: {
readonly type: "array";
readonly items: {
readonly type: "string";
};
};
};
readonly additionalProperties: false;
};
readonly neutral: {
readonly type: "object";
readonly properties: {
readonly hide: {
readonly type: "boolean";
readonly default: false;
};
readonly component: {
readonly type: "string";
readonly enum: readonly ["radio", "checkbox"];
readonly default: "checkbox";
};
readonly label: {
readonly type: "string";
};
readonly items: {
readonly type: "array";
readonly items: {
readonly type: "string";
};
};
};
readonly additionalProperties: false;
};
readonly dissatisfied: {
readonly type: "object";
readonly properties: {
readonly hide: {
readonly type: "boolean";
readonly default: false;
};
readonly component: {
readonly type: "string";
readonly enum: readonly ["radio", "checkbox"];
readonly default: "checkbox";
};
readonly label: {
readonly type: "string";
};
readonly items: {
readonly type: "array";
readonly items: {
readonly type: "string";
};
};
};
readonly additionalProperties: false;
};
readonly hide: {

@@ -48,0 +192,0 @@ readonly type: "boolean";

32

lib-esm/feedback-config-schema.js

@@ -0,1 +1,19 @@

const reasonsBaseProperties = {
hide: {
type: 'boolean',
default: false,
},
component: {
type: 'string',
enum: ['radio', 'checkbox'],
default: 'checkbox',
},
label: { type: 'string' },
items: { type: 'array', items: { type: 'string' } },
};
export const reasonsSettingsSchema = {
type: 'object',
properties: reasonsBaseProperties,
additionalProperties: false,
};
export const feedbackConfigSchema = {

@@ -29,15 +47,3 @@ type: 'object',

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' } },
},
properties: Object.assign(Object.assign({}, reasonsBaseProperties), { like: reasonsSettingsSchema, dislike: reasonsSettingsSchema, satisfied: reasonsSettingsSchema, neutral: reasonsSettingsSchema, dissatisfied: reasonsSettingsSchema }),
additionalProperties: false,

@@ -44,0 +50,0 @@ },

@@ -225,2 +225,122 @@ export declare const graphqlConfigSchema: {

readonly properties: {
readonly like: {
readonly type: "object";
readonly properties: {
readonly hide: {
readonly type: "boolean";
readonly default: false;
};
readonly component: {
readonly type: "string";
readonly enum: readonly ["radio", "checkbox"];
readonly default: "checkbox";
};
readonly label: {
readonly type: "string";
};
readonly items: {
readonly type: "array";
readonly items: {
readonly type: "string";
};
};
};
readonly additionalProperties: false;
};
readonly dislike: {
readonly type: "object";
readonly properties: {
readonly hide: {
readonly type: "boolean";
readonly default: false;
};
readonly component: {
readonly type: "string";
readonly enum: readonly ["radio", "checkbox"];
readonly default: "checkbox";
};
readonly label: {
readonly type: "string";
};
readonly items: {
readonly type: "array";
readonly items: {
readonly type: "string";
};
};
};
readonly additionalProperties: false;
};
readonly satisfied: {
readonly type: "object";
readonly properties: {
readonly hide: {
readonly type: "boolean";
readonly default: false;
};
readonly component: {
readonly type: "string";
readonly enum: readonly ["radio", "checkbox"];
readonly default: "checkbox";
};
readonly label: {
readonly type: "string";
};
readonly items: {
readonly type: "array";
readonly items: {
readonly type: "string";
};
};
};
readonly additionalProperties: false;
};
readonly neutral: {
readonly type: "object";
readonly properties: {
readonly hide: {
readonly type: "boolean";
readonly default: false;
};
readonly component: {
readonly type: "string";
readonly enum: readonly ["radio", "checkbox"];
readonly default: "checkbox";
};
readonly label: {
readonly type: "string";
};
readonly items: {
readonly type: "array";
readonly items: {
readonly type: "string";
};
};
};
readonly additionalProperties: false;
};
readonly dissatisfied: {
readonly type: "object";
readonly properties: {
readonly hide: {
readonly type: "boolean";
readonly default: false;
};
readonly component: {
readonly type: "string";
readonly enum: readonly ["radio", "checkbox"];
readonly default: "checkbox";
};
readonly label: {
readonly type: "string";
};
readonly items: {
readonly type: "array";
readonly items: {
readonly type: "string";
};
};
};
readonly additionalProperties: false;
};
readonly hide: {

@@ -227,0 +347,0 @@ readonly type: "boolean";

@@ -177,2 +177,4 @@ import type { Node } from '@markdoc/markdoc/dist/src/types';

isAuthenticated: boolean;
id?: string;
sub?: string;
name: string;

@@ -179,0 +181,0 @@ email?: string;

@@ -61,2 +61,122 @@ export declare const redocConfigSchema: {

readonly properties: {
readonly like: {
readonly type: "object";
readonly properties: {
readonly hide: {
readonly type: "boolean";
readonly default: false;
};
readonly component: {
readonly type: "string";
readonly enum: readonly ["radio", "checkbox"];
readonly default: "checkbox";
};
readonly label: {
readonly type: "string";
};
readonly items: {
readonly type: "array";
readonly items: {
readonly type: "string";
};
};
};
readonly additionalProperties: false;
};
readonly dislike: {
readonly type: "object";
readonly properties: {
readonly hide: {
readonly type: "boolean";
readonly default: false;
};
readonly component: {
readonly type: "string";
readonly enum: readonly ["radio", "checkbox"];
readonly default: "checkbox";
};
readonly label: {
readonly type: "string";
};
readonly items: {
readonly type: "array";
readonly items: {
readonly type: "string";
};
};
};
readonly additionalProperties: false;
};
readonly satisfied: {
readonly type: "object";
readonly properties: {
readonly hide: {
readonly type: "boolean";
readonly default: false;
};
readonly component: {
readonly type: "string";
readonly enum: readonly ["radio", "checkbox"];
readonly default: "checkbox";
};
readonly label: {
readonly type: "string";
};
readonly items: {
readonly type: "array";
readonly items: {
readonly type: "string";
};
};
};
readonly additionalProperties: false;
};
readonly neutral: {
readonly type: "object";
readonly properties: {
readonly hide: {
readonly type: "boolean";
readonly default: false;
};
readonly component: {
readonly type: "string";
readonly enum: readonly ["radio", "checkbox"];
readonly default: "checkbox";
};
readonly label: {
readonly type: "string";
};
readonly items: {
readonly type: "array";
readonly items: {
readonly type: "string";
};
};
};
readonly additionalProperties: false;
};
readonly dissatisfied: {
readonly type: "object";
readonly properties: {
readonly hide: {
readonly type: "boolean";
readonly default: false;
};
readonly component: {
readonly type: "string";
readonly enum: readonly ["radio", "checkbox"];
readonly default: "checkbox";
};
readonly label: {
readonly type: "string";
};
readonly items: {
readonly type: "array";
readonly items: {
readonly type: "string";
};
};
};
readonly additionalProperties: false;
};
readonly hide: {

@@ -63,0 +183,0 @@ readonly type: "boolean";

@@ -8,2 +8,3 @@ import type { FromSchema } from 'json-schema-to-ts';

import type { productConfigSchema, productGoogleAnalyticsConfigSchema, markdownConfigSchema, amplitudeAnalyticsConfigSchema, rudderstackAnalyticsConfigSchema, segmentAnalyticsConfigSchema, gtmAnalyticsConfigSchema, googleAnalyticsConfigSchema, scorecardConfigSchema, catalogFilterSchema, catalogSchema, searchFacetsConfigSchema } from './ex-theme-config-schemas';
import type { reasonsSettingsSchema } from './feedback-config-schema';
/**

@@ -63,2 +64,3 @@ * @deprecated left for backwards compatibility. To be removed in Realm 1.0

export type ProductConfigOverride = FromSchema<typeof productConfigOverrideSchema>;
export type ReasonsSettingsSchema = FromSchema<typeof reasonsSettingsSchema>;
export {};

@@ -0,1 +1,25 @@

export declare const reasonsSettingsSchema: {
readonly type: "object";
readonly properties: {
readonly hide: {
readonly type: "boolean";
readonly default: false;
};
readonly component: {
readonly type: "string";
readonly enum: readonly ["radio", "checkbox"];
readonly default: "checkbox";
};
readonly label: {
readonly type: "string";
};
readonly items: {
readonly type: "array";
readonly items: {
readonly type: "string";
};
};
};
readonly additionalProperties: false;
};
export declare const feedbackConfigSchema: {

@@ -46,2 +70,122 @@ readonly type: "object";

readonly properties: {
readonly like: {
readonly type: "object";
readonly properties: {
readonly hide: {
readonly type: "boolean";
readonly default: false;
};
readonly component: {
readonly type: "string";
readonly enum: readonly ["radio", "checkbox"];
readonly default: "checkbox";
};
readonly label: {
readonly type: "string";
};
readonly items: {
readonly type: "array";
readonly items: {
readonly type: "string";
};
};
};
readonly additionalProperties: false;
};
readonly dislike: {
readonly type: "object";
readonly properties: {
readonly hide: {
readonly type: "boolean";
readonly default: false;
};
readonly component: {
readonly type: "string";
readonly enum: readonly ["radio", "checkbox"];
readonly default: "checkbox";
};
readonly label: {
readonly type: "string";
};
readonly items: {
readonly type: "array";
readonly items: {
readonly type: "string";
};
};
};
readonly additionalProperties: false;
};
readonly satisfied: {
readonly type: "object";
readonly properties: {
readonly hide: {
readonly type: "boolean";
readonly default: false;
};
readonly component: {
readonly type: "string";
readonly enum: readonly ["radio", "checkbox"];
readonly default: "checkbox";
};
readonly label: {
readonly type: "string";
};
readonly items: {
readonly type: "array";
readonly items: {
readonly type: "string";
};
};
};
readonly additionalProperties: false;
};
readonly neutral: {
readonly type: "object";
readonly properties: {
readonly hide: {
readonly type: "boolean";
readonly default: false;
};
readonly component: {
readonly type: "string";
readonly enum: readonly ["radio", "checkbox"];
readonly default: "checkbox";
};
readonly label: {
readonly type: "string";
};
readonly items: {
readonly type: "array";
readonly items: {
readonly type: "string";
};
};
};
readonly additionalProperties: false;
};
readonly dissatisfied: {
readonly type: "object";
readonly properties: {
readonly hide: {
readonly type: "boolean";
readonly default: false;
};
readonly component: {
readonly type: "string";
readonly enum: readonly ["radio", "checkbox"];
readonly default: "checkbox";
};
readonly label: {
readonly type: "string";
};
readonly items: {
readonly type: "array";
readonly items: {
readonly type: "string";
};
};
};
readonly additionalProperties: false;
};
readonly hide: {

@@ -48,0 +192,0 @@ readonly type: "boolean";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.feedbackConfigSchema = void 0;
exports.feedbackConfigSchema = exports.reasonsSettingsSchema = void 0;
const reasonsBaseProperties = {
hide: {
type: 'boolean',
default: false,
},
component: {
type: 'string',
enum: ['radio', 'checkbox'],
default: 'checkbox',
},
label: { type: 'string' },
items: { type: 'array', items: { type: 'string' } },
};
exports.reasonsSettingsSchema = {
type: 'object',
properties: reasonsBaseProperties,
additionalProperties: false,
};
exports.feedbackConfigSchema = {

@@ -32,15 +50,3 @@ type: 'object',

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' } },
},
properties: Object.assign(Object.assign({}, reasonsBaseProperties), { like: exports.reasonsSettingsSchema, dislike: exports.reasonsSettingsSchema, satisfied: exports.reasonsSettingsSchema, neutral: exports.reasonsSettingsSchema, dissatisfied: exports.reasonsSettingsSchema }),
additionalProperties: false,

@@ -47,0 +53,0 @@ },

@@ -225,2 +225,122 @@ export declare const graphqlConfigSchema: {

readonly properties: {
readonly like: {
readonly type: "object";
readonly properties: {
readonly hide: {
readonly type: "boolean";
readonly default: false;
};
readonly component: {
readonly type: "string";
readonly enum: readonly ["radio", "checkbox"];
readonly default: "checkbox";
};
readonly label: {
readonly type: "string";
};
readonly items: {
readonly type: "array";
readonly items: {
readonly type: "string";
};
};
};
readonly additionalProperties: false;
};
readonly dislike: {
readonly type: "object";
readonly properties: {
readonly hide: {
readonly type: "boolean";
readonly default: false;
};
readonly component: {
readonly type: "string";
readonly enum: readonly ["radio", "checkbox"];
readonly default: "checkbox";
};
readonly label: {
readonly type: "string";
};
readonly items: {
readonly type: "array";
readonly items: {
readonly type: "string";
};
};
};
readonly additionalProperties: false;
};
readonly satisfied: {
readonly type: "object";
readonly properties: {
readonly hide: {
readonly type: "boolean";
readonly default: false;
};
readonly component: {
readonly type: "string";
readonly enum: readonly ["radio", "checkbox"];
readonly default: "checkbox";
};
readonly label: {
readonly type: "string";
};
readonly items: {
readonly type: "array";
readonly items: {
readonly type: "string";
};
};
};
readonly additionalProperties: false;
};
readonly neutral: {
readonly type: "object";
readonly properties: {
readonly hide: {
readonly type: "boolean";
readonly default: false;
};
readonly component: {
readonly type: "string";
readonly enum: readonly ["radio", "checkbox"];
readonly default: "checkbox";
};
readonly label: {
readonly type: "string";
};
readonly items: {
readonly type: "array";
readonly items: {
readonly type: "string";
};
};
};
readonly additionalProperties: false;
};
readonly dissatisfied: {
readonly type: "object";
readonly properties: {
readonly hide: {
readonly type: "boolean";
readonly default: false;
};
readonly component: {
readonly type: "string";
readonly enum: readonly ["radio", "checkbox"];
readonly default: "checkbox";
};
readonly label: {
readonly type: "string";
};
readonly items: {
readonly type: "array";
readonly items: {
readonly type: "string";
};
};
};
readonly additionalProperties: false;
};
readonly hide: {

@@ -227,0 +347,0 @@ readonly type: "boolean";

@@ -177,2 +177,4 @@ import type { Node } from '@markdoc/markdoc/dist/src/types';

isAuthenticated: boolean;
id?: string;
sub?: string;
name: string;

@@ -179,0 +181,0 @@ email?: string;

@@ -61,2 +61,122 @@ export declare const redocConfigSchema: {

readonly properties: {
readonly like: {
readonly type: "object";
readonly properties: {
readonly hide: {
readonly type: "boolean";
readonly default: false;
};
readonly component: {
readonly type: "string";
readonly enum: readonly ["radio", "checkbox"];
readonly default: "checkbox";
};
readonly label: {
readonly type: "string";
};
readonly items: {
readonly type: "array";
readonly items: {
readonly type: "string";
};
};
};
readonly additionalProperties: false;
};
readonly dislike: {
readonly type: "object";
readonly properties: {
readonly hide: {
readonly type: "boolean";
readonly default: false;
};
readonly component: {
readonly type: "string";
readonly enum: readonly ["radio", "checkbox"];
readonly default: "checkbox";
};
readonly label: {
readonly type: "string";
};
readonly items: {
readonly type: "array";
readonly items: {
readonly type: "string";
};
};
};
readonly additionalProperties: false;
};
readonly satisfied: {
readonly type: "object";
readonly properties: {
readonly hide: {
readonly type: "boolean";
readonly default: false;
};
readonly component: {
readonly type: "string";
readonly enum: readonly ["radio", "checkbox"];
readonly default: "checkbox";
};
readonly label: {
readonly type: "string";
};
readonly items: {
readonly type: "array";
readonly items: {
readonly type: "string";
};
};
};
readonly additionalProperties: false;
};
readonly neutral: {
readonly type: "object";
readonly properties: {
readonly hide: {
readonly type: "boolean";
readonly default: false;
};
readonly component: {
readonly type: "string";
readonly enum: readonly ["radio", "checkbox"];
readonly default: "checkbox";
};
readonly label: {
readonly type: "string";
};
readonly items: {
readonly type: "array";
readonly items: {
readonly type: "string";
};
};
};
readonly additionalProperties: false;
};
readonly dissatisfied: {
readonly type: "object";
readonly properties: {
readonly hide: {
readonly type: "boolean";
readonly default: false;
};
readonly component: {
readonly type: "string";
readonly enum: readonly ["radio", "checkbox"];
readonly default: "checkbox";
};
readonly label: {
readonly type: "string";
};
readonly items: {
readonly type: "array";
readonly items: {
readonly type: "string";
};
};
};
readonly additionalProperties: false;
};
readonly hide: {

@@ -63,0 +183,0 @@ readonly type: "boolean";

@@ -8,2 +8,3 @@ import type { FromSchema } from 'json-schema-to-ts';

import type { productConfigSchema, productGoogleAnalyticsConfigSchema, markdownConfigSchema, amplitudeAnalyticsConfigSchema, rudderstackAnalyticsConfigSchema, segmentAnalyticsConfigSchema, gtmAnalyticsConfigSchema, googleAnalyticsConfigSchema, scorecardConfigSchema, catalogFilterSchema, catalogSchema, searchFacetsConfigSchema } from './ex-theme-config-schemas';
import type { reasonsSettingsSchema } from './feedback-config-schema';
/**

@@ -63,2 +64,3 @@ * @deprecated left for backwards compatibility. To be removed in Realm 1.0

export type ProductConfigOverride = FromSchema<typeof productConfigOverrideSchema>;
export type ReasonsSettingsSchema = FromSchema<typeof reasonsSettingsSchema>;
export {};
{
"name": "@redocly/config",
"version": "0.15.0",
"version": "0.16.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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc