@redocly/config 0.42.0 → 0.43.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.
|
@@ -53,8 +53,8 @@ export type EntityContactFileSchema = FromSchema<typeof entityContactFileSchema>
|
|
|
53
53
|
export type EntityLinkFileSchema = FromSchema<typeof entityLinkFileSchema>;
|
|
54
54
|
export type EntityRelationFileSchema = FromSchema<typeof entityRelationFileSchema>;
|
|
55
55
|
export type EntityBaseFileSchema = {
|
|
56
|
+
type: string;
|
|
56
57
|
version?: string | null;
|
|
57
|
-
revision?: string;
|
|
58
58
|
key: string;
|
|
59
59
|
title: string;
|
|
60
60
|
summary?: string | null;
|
|
@@ -63,7 +63,6 @@ export type EntityBaseFileSchema = {
|
|
|
63
63
|
contact?: EntityContactFileSchema | null;
|
|
64
64
|
links?: EntityLinkFileSchema[] | null;
|
|
65
65
|
relations?: EntityRelationFileSchema[] | null;
|
|
66
|
-
type: string;
|
|
67
66
|
metadata?: DefaultMetadataSchema | null;
|
|
68
67
|
};
|
|
69
68
|
export type EntityFileSchema = (Omit<EntityBaseFileSchema, 'type'> & {
|
|
@@ -60,6 +60,7 @@ export type ItemBadge = {
|
|
|
60
60
|
name: string;
|
|
61
61
|
color?: string;
|
|
62
62
|
position?: 'before' | 'after';
|
|
63
|
+
icon?: string;
|
|
63
64
|
};
|
|
64
65
|
export type ResolvedNavGroupItem = {
|
|
65
66
|
type: 'group';
|
|
@@ -81,6 +82,7 @@ export type ResolvedNavGroupItem = {
|
|
|
81
82
|
separatorLine?: boolean;
|
|
82
83
|
linePosition?: 'top' | 'bottom';
|
|
83
84
|
routeSlug?: string;
|
|
85
|
+
badges?: ItemBadge[];
|
|
84
86
|
active?: boolean;
|
|
85
87
|
icon?: string;
|
|
86
88
|
srcSet?: string;
|
|
@@ -258,6 +260,7 @@ export type NavItem = {
|
|
|
258
260
|
$ref?: string;
|
|
259
261
|
disconnect?: boolean;
|
|
260
262
|
additionalProps?: Record<string, unknown>;
|
|
263
|
+
badges?: ItemBadge[];
|
|
261
264
|
};
|
|
262
265
|
export interface LogoConfig {
|
|
263
266
|
image?: string;
|
|
@@ -53,8 +53,8 @@ export type EntityContactFileSchema = FromSchema<typeof entityContactFileSchema>
|
|
|
53
53
|
export type EntityLinkFileSchema = FromSchema<typeof entityLinkFileSchema>;
|
|
54
54
|
export type EntityRelationFileSchema = FromSchema<typeof entityRelationFileSchema>;
|
|
55
55
|
export type EntityBaseFileSchema = {
|
|
56
|
+
type: string;
|
|
56
57
|
version?: string | null;
|
|
57
|
-
revision?: string;
|
|
58
58
|
key: string;
|
|
59
59
|
title: string;
|
|
60
60
|
summary?: string | null;
|
|
@@ -63,7 +63,6 @@ export type EntityBaseFileSchema = {
|
|
|
63
63
|
contact?: EntityContactFileSchema | null;
|
|
64
64
|
links?: EntityLinkFileSchema[] | null;
|
|
65
65
|
relations?: EntityRelationFileSchema[] | null;
|
|
66
|
-
type: string;
|
|
67
66
|
metadata?: DefaultMetadataSchema | null;
|
|
68
67
|
};
|
|
69
68
|
export type EntityFileSchema = (Omit<EntityBaseFileSchema, 'type'> & {
|
|
@@ -60,6 +60,7 @@ export type ItemBadge = {
|
|
|
60
60
|
name: string;
|
|
61
61
|
color?: string;
|
|
62
62
|
position?: 'before' | 'after';
|
|
63
|
+
icon?: string;
|
|
63
64
|
};
|
|
64
65
|
export type ResolvedNavGroupItem = {
|
|
65
66
|
type: 'group';
|
|
@@ -81,6 +82,7 @@ export type ResolvedNavGroupItem = {
|
|
|
81
82
|
separatorLine?: boolean;
|
|
82
83
|
linePosition?: 'top' | 'bottom';
|
|
83
84
|
routeSlug?: string;
|
|
85
|
+
badges?: ItemBadge[];
|
|
84
86
|
active?: boolean;
|
|
85
87
|
icon?: string;
|
|
86
88
|
srcSet?: string;
|
|
@@ -258,6 +260,7 @@ export type NavItem = {
|
|
|
258
260
|
$ref?: string;
|
|
259
261
|
disconnect?: boolean;
|
|
260
262
|
additionalProps?: Record<string, unknown>;
|
|
263
|
+
badges?: ItemBadge[];
|
|
261
264
|
};
|
|
262
265
|
export interface LogoConfig {
|
|
263
266
|
image?: string;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.43.0",
|
|
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
9
|
"@markdoc/markdoc": "0.5.2",
|
|
10
|
-
"@redocly/openapi-core": "2.
|
|
10
|
+
"@redocly/openapi-core": "2.17.0",
|
|
11
11
|
"@types/node": "22.18.13",
|
|
12
12
|
"@types/react": "^19.2.7",
|
|
13
13
|
"@vitest/coverage-v8": "4.0.10",
|