@redocly/theme 0.9.12 → 0.9.14
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.
- package/lib/Markdown/MarkdownWrapper.js +7 -7
- package/lib/Sidebar/FooterWrapper.d.ts +2 -2
- package/lib/Sidebar/FooterWrapper.js +6 -3
- package/lib/Sidebar/SidebarLayout.d.ts +6 -3
- package/lib/Sidebar/SidebarLayout.js +55 -7
- package/lib/Sidebar/index.d.ts +1 -0
- package/lib/Sidebar/index.js +1 -0
- package/lib/SidebarActions/ChangeViewButton.d.ts +8 -0
- package/lib/SidebarActions/ChangeViewButton.js +14 -0
- package/lib/SidebarActions/CollapseSidebarButton.d.ts +7 -0
- package/lib/SidebarActions/CollapseSidebarButton.js +13 -0
- package/lib/SidebarActions/SidebarActions.d.ts +20 -0
- package/lib/SidebarActions/SidebarActions.js +26 -0
- package/lib/SidebarActions/ToggleRightPanelButton.d.ts +7 -0
- package/lib/SidebarActions/ToggleRightPanelButton.js +13 -0
- package/lib/SidebarActions/index.d.ts +1 -0
- package/lib/SidebarActions/index.js +7 -0
- package/lib/SidebarActions/styled.d.ts +17 -0
- package/lib/SidebarActions/styled.js +124 -0
- package/lib/config.d.ts +774 -1814
- package/lib/config.js +271 -213
- package/lib/globalStyle.js +1 -2
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/package.json +6 -7
- package/src/Markdown/MarkdownWrapper.tsx +1 -1
- package/src/Sidebar/FooterWrapper.tsx +7 -4
- package/src/Sidebar/SidebarLayout.tsx +66 -18
- package/src/Sidebar/index.ts +1 -0
- package/src/SidebarActions/ChangeViewButton.tsx +20 -0
- package/src/SidebarActions/CollapseSidebarButton.tsx +21 -0
- package/src/SidebarActions/SidebarActions.tsx +64 -0
- package/src/SidebarActions/ToggleRightPanelButton.tsx +21 -0
- package/src/SidebarActions/index.tsx +1 -0
- package/src/SidebarActions/styled.tsx +157 -0
- package/src/config.ts +334 -222
- package/src/globalStyle.ts +1 -2
- package/src/index.ts +1 -0
package/lib/config.js
CHANGED
|
@@ -1,216 +1,274 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
.
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
3
|
+
exports.themeConfigSchema = void 0;
|
|
4
|
+
const logoConfigSchema = {
|
|
5
|
+
type: 'object',
|
|
6
|
+
properties: {
|
|
7
|
+
image: { type: 'string' },
|
|
8
|
+
altText: { type: 'string' },
|
|
9
|
+
link: { type: 'string' },
|
|
10
|
+
favicon: { type: 'string' },
|
|
11
|
+
},
|
|
12
|
+
additionalProperties: false,
|
|
13
|
+
};
|
|
14
|
+
const hideConfigSchema = {
|
|
15
|
+
type: 'object',
|
|
16
|
+
properties: {
|
|
17
|
+
hide: { type: 'boolean' },
|
|
18
|
+
},
|
|
19
|
+
additionalProperties: false,
|
|
20
|
+
};
|
|
21
|
+
const scriptConfigSchema = {
|
|
22
|
+
type: 'object',
|
|
23
|
+
properties: {
|
|
24
|
+
src: { type: 'string' },
|
|
25
|
+
async: { type: 'boolean' },
|
|
26
|
+
crossorigin: { type: 'string' },
|
|
27
|
+
defer: { type: 'boolean' },
|
|
28
|
+
fetchpriority: { type: 'string' },
|
|
29
|
+
integrity: { type: 'string' },
|
|
30
|
+
module: { type: 'boolean' },
|
|
31
|
+
nomodule: { type: 'boolean' },
|
|
32
|
+
nonce: { type: 'string' },
|
|
33
|
+
referrerpolicy: { type: 'string' },
|
|
34
|
+
type: { type: 'string' },
|
|
35
|
+
},
|
|
36
|
+
required: ['src'],
|
|
37
|
+
additionalProperties: true,
|
|
38
|
+
};
|
|
39
|
+
const linksConfigSchema = {
|
|
40
|
+
type: 'object',
|
|
41
|
+
properties: {
|
|
42
|
+
href: { type: 'string' },
|
|
43
|
+
as: { type: 'string' },
|
|
44
|
+
crossorigin: { type: 'string' },
|
|
45
|
+
fetchpriority: { type: 'string' },
|
|
46
|
+
hreflang: { type: 'string' },
|
|
47
|
+
imagesizes: { type: 'string' },
|
|
48
|
+
imagesrcset: { type: 'string' },
|
|
49
|
+
integrity: { type: 'string' },
|
|
50
|
+
media: { type: 'string' },
|
|
51
|
+
prefetch: { type: 'string' },
|
|
52
|
+
referrerpolicy: { type: 'string' },
|
|
53
|
+
rel: { type: 'string' },
|
|
54
|
+
sizes: { type: 'string' },
|
|
55
|
+
title: { type: 'string' },
|
|
56
|
+
type: { type: 'string' },
|
|
57
|
+
},
|
|
58
|
+
required: ['href'],
|
|
59
|
+
additionalProperties: true,
|
|
60
|
+
};
|
|
61
|
+
const markdownConfigSchema = {
|
|
62
|
+
type: 'object',
|
|
63
|
+
properties: {
|
|
64
|
+
frontMatterKeysToResolve: {
|
|
65
|
+
type: 'array',
|
|
66
|
+
items: { type: 'string' },
|
|
67
|
+
default: ['image', 'links'],
|
|
68
|
+
},
|
|
69
|
+
lastUpdatedBlock: {
|
|
70
|
+
type: 'object',
|
|
71
|
+
properties: Object.assign({ format: {
|
|
72
|
+
type: 'string',
|
|
73
|
+
enum: ['timeago', 'iso', 'long', 'short'],
|
|
74
|
+
default: 'timeago',
|
|
75
|
+
}, locale: { type: 'string', default: 'en-US' } }, hideConfigSchema.properties),
|
|
76
|
+
additionalProperties: false,
|
|
77
|
+
default: {},
|
|
78
|
+
},
|
|
79
|
+
toc: {
|
|
80
|
+
type: 'object',
|
|
81
|
+
properties: Object.assign({ header: { type: 'string', default: 'On this page' }, depth: { type: 'number', default: 3 } }, hideConfigSchema.properties),
|
|
82
|
+
additionalProperties: false,
|
|
83
|
+
default: {},
|
|
84
|
+
},
|
|
85
|
+
editPage: {
|
|
86
|
+
type: 'object',
|
|
87
|
+
properties: Object.assign({ baseUrl: { type: 'string' }, icon: { type: 'string' }, text: { type: 'string', default: 'Edit this page' } }, hideConfigSchema.properties),
|
|
88
|
+
additionalProperties: false,
|
|
89
|
+
default: {},
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
additionalProperties: false,
|
|
93
|
+
default: {},
|
|
94
|
+
};
|
|
95
|
+
const navItemSchema = {
|
|
96
|
+
type: 'object',
|
|
97
|
+
properties: {
|
|
98
|
+
page: { type: 'string' },
|
|
99
|
+
directory: { type: 'string' },
|
|
100
|
+
group: { type: 'string' },
|
|
101
|
+
label: { type: 'string' },
|
|
102
|
+
separator: { type: 'string' },
|
|
103
|
+
separatorLine: { type: 'boolean' },
|
|
104
|
+
version: { type: 'string' },
|
|
105
|
+
menuStyle: { type: 'string', enum: ['drilldown'] },
|
|
106
|
+
expanded: { type: 'string', const: 'always' },
|
|
107
|
+
selectFirstItemOnExpand: { type: 'boolean' },
|
|
108
|
+
flatten: { type: 'boolean' },
|
|
109
|
+
},
|
|
110
|
+
};
|
|
111
|
+
const navItemsSchema = {
|
|
112
|
+
type: 'array',
|
|
113
|
+
items: Object.assign(Object.assign({}, navItemSchema), { properties: Object.assign(Object.assign({}, navItemSchema.properties), { items: { type: 'array', items: navItemSchema } }) }),
|
|
114
|
+
};
|
|
115
|
+
exports.themeConfigSchema = {
|
|
116
|
+
type: 'object',
|
|
117
|
+
properties: {
|
|
118
|
+
imports: {
|
|
119
|
+
type: 'array',
|
|
120
|
+
items: { type: 'string' },
|
|
121
|
+
default: [],
|
|
122
|
+
},
|
|
123
|
+
logo: logoConfigSchema,
|
|
124
|
+
navbar: {
|
|
125
|
+
type: 'object',
|
|
126
|
+
properties: Object.assign({ items: navItemsSchema }, hideConfigSchema.properties),
|
|
127
|
+
additionalProperties: false,
|
|
128
|
+
},
|
|
129
|
+
footer: {
|
|
130
|
+
type: 'object',
|
|
131
|
+
properties: Object.assign({ items: navItemsSchema, copyrightText: { type: 'string' } }, hideConfigSchema.properties),
|
|
132
|
+
additionalProperties: false,
|
|
133
|
+
},
|
|
134
|
+
sidebar: hideConfigSchema,
|
|
135
|
+
scripts: {
|
|
136
|
+
type: 'object',
|
|
137
|
+
properties: {
|
|
138
|
+
head: { type: 'array', items: scriptConfigSchema },
|
|
139
|
+
body: { type: 'array', items: scriptConfigSchema },
|
|
140
|
+
},
|
|
141
|
+
additionalProperties: false,
|
|
142
|
+
},
|
|
143
|
+
links: { type: 'array', items: linksConfigSchema },
|
|
144
|
+
feedback: {
|
|
145
|
+
type: 'object',
|
|
146
|
+
properties: {
|
|
147
|
+
type: {
|
|
148
|
+
type: 'string',
|
|
149
|
+
enum: ['rating', 'sentiment', 'comment', 'reasons'],
|
|
150
|
+
default: 'sentiment',
|
|
151
|
+
},
|
|
152
|
+
settings: Object.assign({ type: 'object', properties: {
|
|
153
|
+
label: { type: 'string' },
|
|
154
|
+
submitText: { type: 'string' },
|
|
155
|
+
max: { type: 'number' },
|
|
156
|
+
buttonText: { type: 'string' },
|
|
157
|
+
multi: { type: 'boolean' },
|
|
158
|
+
items: { type: 'array', items: { type: 'string' }, minItems: 1 },
|
|
159
|
+
reasons: {
|
|
160
|
+
type: 'object',
|
|
161
|
+
properties: {
|
|
162
|
+
enable: { type: 'boolean', default: true },
|
|
163
|
+
multi: { type: 'boolean' },
|
|
164
|
+
label: { type: 'string' },
|
|
165
|
+
items: { type: 'array', items: { type: 'string' } },
|
|
166
|
+
},
|
|
167
|
+
additionalProperties: false,
|
|
168
|
+
},
|
|
169
|
+
comment: {
|
|
170
|
+
type: 'object',
|
|
171
|
+
properties: {
|
|
172
|
+
enable: { type: 'boolean', default: true },
|
|
173
|
+
label: { type: 'string' },
|
|
174
|
+
likeLabel: { type: 'string' },
|
|
175
|
+
dislikeLabel: { type: 'string' },
|
|
176
|
+
},
|
|
177
|
+
additionalProperties: false,
|
|
178
|
+
},
|
|
179
|
+
}, additionalProperties: false }, hideConfigSchema.properties),
|
|
180
|
+
},
|
|
181
|
+
additionalProperties: false,
|
|
182
|
+
default: {},
|
|
183
|
+
},
|
|
184
|
+
search: {
|
|
185
|
+
type: 'object',
|
|
186
|
+
properties: Object.assign({ placement: {
|
|
187
|
+
type: 'string',
|
|
188
|
+
default: 'navbar',
|
|
189
|
+
}, shortcuts: {
|
|
190
|
+
type: 'array',
|
|
191
|
+
items: { type: 'string' },
|
|
192
|
+
default: ['/'],
|
|
193
|
+
} }, hideConfigSchema.properties),
|
|
194
|
+
additionalProperties: false,
|
|
195
|
+
default: {},
|
|
196
|
+
},
|
|
197
|
+
colorMode: {
|
|
198
|
+
type: 'object',
|
|
199
|
+
properties: Object.assign({ ignoreDetection: { type: 'boolean' }, modes: {
|
|
200
|
+
type: 'array',
|
|
201
|
+
items: { type: 'string' },
|
|
202
|
+
default: ['light', 'dark'],
|
|
203
|
+
} }, hideConfigSchema.properties),
|
|
204
|
+
additionalProperties: false,
|
|
205
|
+
default: {},
|
|
206
|
+
},
|
|
207
|
+
navigation: {
|
|
208
|
+
type: 'object',
|
|
209
|
+
properties: {
|
|
210
|
+
nextButton: {
|
|
211
|
+
type: 'object',
|
|
212
|
+
properties: Object.assign({ text: { type: 'string', default: 'Next to {label}' } }, hideConfigSchema.properties),
|
|
213
|
+
additionalProperties: false,
|
|
214
|
+
default: {},
|
|
215
|
+
},
|
|
216
|
+
previousButton: {
|
|
217
|
+
type: 'object',
|
|
218
|
+
properties: Object.assign({ text: { type: 'string', default: 'Back to {label}' } }, hideConfigSchema.properties),
|
|
219
|
+
additionalProperties: false,
|
|
220
|
+
default: {},
|
|
221
|
+
},
|
|
222
|
+
},
|
|
223
|
+
additionalProperties: false,
|
|
224
|
+
default: {},
|
|
225
|
+
},
|
|
226
|
+
codeSnippet: {
|
|
227
|
+
type: 'object',
|
|
228
|
+
properties: {
|
|
229
|
+
copy: {
|
|
230
|
+
type: 'object',
|
|
231
|
+
properties: Object.assign({ buttonText: { type: 'string', default: 'Copy' }, tooltipText: { type: 'string', default: 'Copy to clipboard' }, toasterText: { type: 'string', default: 'Copied!' }, toasterDuration: { type: 'number', default: 1500 } }, hideConfigSchema.properties),
|
|
232
|
+
additionalProperties: false,
|
|
233
|
+
default: {},
|
|
234
|
+
},
|
|
235
|
+
report: {
|
|
236
|
+
type: 'object',
|
|
237
|
+
properties: Object.assign({ tooltipText: { type: 'string', default: 'Report a problem' }, label: { type: 'string' } }, hideConfigSchema.properties),
|
|
238
|
+
additionalProperties: false,
|
|
239
|
+
default: { hide: true },
|
|
240
|
+
},
|
|
241
|
+
},
|
|
242
|
+
additionalProperties: false,
|
|
243
|
+
default: {},
|
|
244
|
+
},
|
|
245
|
+
markdown: markdownConfigSchema,
|
|
246
|
+
openapi: { type: 'object', additionalProperties: true },
|
|
247
|
+
graphql: { type: 'object', additionalProperties: true },
|
|
248
|
+
analytics: {
|
|
249
|
+
type: ['array', 'boolean', 'number', 'object', 'string'],
|
|
250
|
+
},
|
|
251
|
+
userProfile: {
|
|
252
|
+
type: 'object',
|
|
253
|
+
properties: Object.assign({ loginLabel: { type: 'string', default: 'Login' }, logoutLabel: { type: 'string', default: 'Logout' }, menu: {
|
|
254
|
+
type: 'array',
|
|
255
|
+
items: {
|
|
256
|
+
type: 'object',
|
|
257
|
+
properties: {
|
|
258
|
+
label: { type: 'string' },
|
|
259
|
+
external: { type: 'boolean' },
|
|
260
|
+
link: { type: 'string' },
|
|
261
|
+
separatorLine: { type: 'boolean' },
|
|
262
|
+
},
|
|
263
|
+
additionalProperties: true,
|
|
264
|
+
},
|
|
265
|
+
default: [],
|
|
266
|
+
} }, hideConfigSchema.properties),
|
|
267
|
+
additionalProperties: false,
|
|
268
|
+
default: {},
|
|
269
|
+
},
|
|
270
|
+
},
|
|
271
|
+
additionalProperties: true,
|
|
272
|
+
default: {},
|
|
273
|
+
};
|
|
216
274
|
//# sourceMappingURL=config.js.map
|
package/lib/globalStyle.js
CHANGED
|
@@ -1273,8 +1273,7 @@ const apiReferenceDocs = (0, styled_components_1.css) `
|
|
|
1273
1273
|
/**
|
|
1274
1274
|
* @tokens API Reference Schemas Layout
|
|
1275
1275
|
*/
|
|
1276
|
-
|
|
1277
|
-
--layout-controls-top-offset: 20px; // @presenter Spacing
|
|
1276
|
+
--layout-controls-margin: 20px; // @presenter Spacing
|
|
1278
1277
|
--layout-controls-height: 36px; // @presenter Spacing
|
|
1279
1278
|
--layout-controls-width: 36px; // @presenter Spacing
|
|
1280
1279
|
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -40,4 +40,5 @@ __exportStar(require("./config"), exports);
|
|
|
40
40
|
__exportStar(require("./Pages"), exports);
|
|
41
41
|
__exportStar(require("./Markdown"), exports);
|
|
42
42
|
__exportStar(require("./ReferenceDocs"), exports);
|
|
43
|
+
__exportStar(require("./SidebarActions"), exports);
|
|
43
44
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/theme",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.14",
|
|
4
4
|
"description": "Shared UI components lib",
|
|
5
|
+
"keywords": [],
|
|
5
6
|
"author": "team@redocly.com",
|
|
6
7
|
"license": "SEE LICENSE IN LICENSE",
|
|
7
8
|
"main": "lib/index.js",
|
|
@@ -12,7 +13,6 @@
|
|
|
12
13
|
"./config": "./lib/config.js",
|
|
13
14
|
".": "./lib/index.js",
|
|
14
15
|
"./Sidebar/*": "./lib/Sidebar/*.js",
|
|
15
|
-
"./*": "./lib/index.js",
|
|
16
16
|
"./src/": "./src/"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
@@ -22,8 +22,7 @@
|
|
|
22
22
|
"react-dom": "^17.0.2",
|
|
23
23
|
"react-router-dom": "^6.4.4",
|
|
24
24
|
"styled-components": "^5.3.6",
|
|
25
|
-
"styled-system": "^5.1.5"
|
|
26
|
-
"zod": ">=3.19.1"
|
|
25
|
+
"styled-system": "^5.1.5"
|
|
27
26
|
},
|
|
28
27
|
"devDependencies": {
|
|
29
28
|
"@storybook/addon-actions": "^6.5.9",
|
|
@@ -58,11 +57,11 @@
|
|
|
58
57
|
"@typescript-eslint/parser": "^5.23.0",
|
|
59
58
|
"chromatic": "^6.10.2",
|
|
60
59
|
"concurrently": "^7.4.0",
|
|
61
|
-
"esbuild": "^0.15.11",
|
|
62
60
|
"jest": "^29.2.2",
|
|
63
61
|
"jest-environment-jsdom": "^29.2.2",
|
|
64
62
|
"jest-styled-components": "^7.1.1",
|
|
65
63
|
"jest-when": "^3.5.1",
|
|
64
|
+
"json-schema-to-ts": "^2.7.2",
|
|
66
65
|
"lodash.throttle": "^4.1.1",
|
|
67
66
|
"npm-run-all": "^4.1.5",
|
|
68
67
|
"react-refresh": "^0.14.0",
|
|
@@ -77,10 +76,10 @@
|
|
|
77
76
|
"tsc-alias": "^1.8.2",
|
|
78
77
|
"tsconfig-paths-webpack-plugin": "^3.5.2",
|
|
79
78
|
"typescript": "^4.8.4",
|
|
80
|
-
"webpack": "^5.72.0"
|
|
81
|
-
"zod": ">=3.19.1"
|
|
79
|
+
"webpack": "^5.72.0"
|
|
82
80
|
},
|
|
83
81
|
"dependencies": {
|
|
82
|
+
"@redocly/ajv": "^8.11.0",
|
|
84
83
|
"copy-to-clipboard": "^3.3.3",
|
|
85
84
|
"highlight-words-core": "^1.2.2",
|
|
86
85
|
"hotkeys-js": "^3.10.1",
|
|
@@ -2,7 +2,7 @@ import styled, { css } from 'styled-components';
|
|
|
2
2
|
|
|
3
3
|
import type { FlattenSimpleInterpolation } from 'styled-components';
|
|
4
4
|
|
|
5
|
-
import { typography } from '@theme/utils';
|
|
5
|
+
import { typography } from '@theme/utils/theme-helpers';
|
|
6
6
|
|
|
7
7
|
export const baseTable = css`
|
|
8
8
|
table.md {
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
export const FooterWrapper = styled.div<{ collapsed?: boolean }>`
|
|
3
|
+
${({ collapsed }) =>
|
|
4
|
+
collapsed &&
|
|
5
|
+
`
|
|
6
|
+
position: sticky;
|
|
7
|
+
bottom: 0;
|
|
8
|
+
`}
|
|
6
9
|
margin: var(--sidebar-offset-top) 0 var(--sidebar-spacing-unit) var(--sidebar-offset-left);
|
|
7
10
|
padding-top: var(--sidebar-spacing-unit);
|
|
8
11
|
padding-right: var(--sidebar-spacing-unit);
|