@redocly/theme 0.6.0 → 0.6.2-beta.3

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.
Files changed (42) hide show
  1. package/README.md +1 -1
  2. package/lib/ColorModeSwitcher/ColorModeSwitcher.js +1 -1
  3. package/lib/Footer/Footer.d.ts +6 -3
  4. package/lib/Footer/Footer.js +3 -3
  5. package/lib/PageNavigation/NextButton.d.ts +2 -0
  6. package/lib/PageNavigation/{NextPageLink.js → NextButton.js} +7 -7
  7. package/lib/PageNavigation/PageNavigation.js +5 -5
  8. package/lib/PageNavigation/PreviousButton.d.ts +2 -0
  9. package/lib/PageNavigation/{PreviousPageLink.js → PreviousButton.js} +7 -7
  10. package/lib/PageNavigation/index.d.ts +2 -2
  11. package/lib/PageNavigation/index.js +2 -2
  12. package/lib/Sidebar/ArrowBack.js +2 -2
  13. package/lib/Sidebar/SidebarLayout.d.ts +5 -1
  14. package/lib/Sidebar/SidebarLayout.js +26 -1
  15. package/lib/Sidebar/types/NavItem.d.ts +1 -1
  16. package/lib/TableOfContent/TableOfContent.js +14 -19
  17. package/lib/TableOfContent/utils.d.ts +1 -1
  18. package/lib/TableOfContent/utils.js +2 -2
  19. package/lib/config.d.ts +342 -72
  20. package/lib/config.js +61 -17
  21. package/lib/globalStyle.js +1 -1
  22. package/lib/mocks/hooks/index.js +4 -5
  23. package/package.json +3 -3
  24. package/src/ColorModeSwitcher/ColorModeSwitcher.tsx +1 -1
  25. package/src/Footer/Footer.tsx +8 -5
  26. package/src/PageNavigation/{NextPageLink.tsx → NextButton.tsx} +4 -4
  27. package/src/PageNavigation/PageNavigation.tsx +5 -5
  28. package/src/PageNavigation/{PreviousPageLink.tsx → PreviousButton.tsx} +4 -4
  29. package/src/PageNavigation/index.ts +2 -2
  30. package/src/Sidebar/ArrowBack.tsx +2 -2
  31. package/src/Sidebar/SidebarLayout.tsx +38 -1
  32. package/src/Sidebar/types/NavItem.ts +1 -1
  33. package/src/TableOfContent/TableOfContent.tsx +24 -32
  34. package/src/TableOfContent/utils.ts +2 -2
  35. package/src/config.ts +73 -24
  36. package/src/globalStyle.ts +1 -1
  37. package/src/mocks/hooks/index.ts +4 -5
  38. package/src/settings.yaml +2 -2
  39. package/src/types/portal/src/shared/constants.d.ts +0 -1
  40. package/src/types/portal/src/shared/types/nav.d.ts +1 -2
  41. package/lib/PageNavigation/NextPageLink.d.ts +0 -2
  42. package/lib/PageNavigation/PreviousPageLink.d.ts +0 -2
package/lib/config.d.ts CHANGED
@@ -17,19 +17,30 @@ export declare const ThemeConfig: z.ZodDefault<z.ZodObject<{
17
17
  link?: string | undefined;
18
18
  favicon?: string | undefined;
19
19
  }>>;
20
- navbar: z.ZodOptional<z.ZodObject<{
20
+ navbar: z.ZodOptional<z.ZodObject<z.extendShape<{
21
+ items: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
22
+ }, {
21
23
  hide: z.ZodOptional<z.ZodBoolean>;
22
- }, "strict", z.ZodTypeAny, {
24
+ }>, "strict", z.ZodTypeAny, {
23
25
  hide?: boolean | undefined;
26
+ items?: any[] | undefined;
24
27
  }, {
25
28
  hide?: boolean | undefined;
29
+ items?: any[] | undefined;
26
30
  }>>;
27
- footer: z.ZodOptional<z.ZodObject<{
31
+ footer: z.ZodOptional<z.ZodObject<z.extendShape<{
32
+ items: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
33
+ copyrightText: z.ZodOptional<z.ZodString>;
34
+ }, {
28
35
  hide: z.ZodOptional<z.ZodBoolean>;
29
- }, "strict", z.ZodTypeAny, {
36
+ }>, "strict", z.ZodTypeAny, {
30
37
  hide?: boolean | undefined;
38
+ items?: any[] | undefined;
39
+ copyrightText?: string | undefined;
31
40
  }, {
32
41
  hide?: boolean | undefined;
42
+ items?: any[] | undefined;
43
+ copyrightText?: string | undefined;
33
44
  }>>;
34
45
  sidebar: z.ZodOptional<z.ZodObject<{
35
46
  hide: z.ZodOptional<z.ZodBoolean>;
@@ -38,11 +49,185 @@ export declare const ThemeConfig: z.ZodDefault<z.ZodObject<{
38
49
  }, {
39
50
  hide?: boolean | undefined;
40
51
  }>>;
41
- navbarItems: z.ZodOptional<z.ZodAny>;
42
- footerItems: z.ZodOptional<z.ZodAny>;
43
- scripts: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodString]>>]>, "many">>;
44
- postBodyScripts: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodString]>>]>, "many">>;
45
- styles: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodString]>>]>, "many">>;
52
+ scripts: z.ZodOptional<z.ZodObject<{
53
+ head: z.ZodOptional<z.ZodArray<z.ZodObject<{
54
+ src: z.ZodString;
55
+ async: z.ZodOptional<z.ZodBoolean>;
56
+ crossorigin: z.ZodOptional<z.ZodString>;
57
+ defer: z.ZodOptional<z.ZodBoolean>;
58
+ fetchpriority: z.ZodOptional<z.ZodString>;
59
+ integrity: z.ZodOptional<z.ZodString>;
60
+ module: z.ZodOptional<z.ZodBoolean>;
61
+ nomodule: z.ZodOptional<z.ZodBoolean>;
62
+ nonce: z.ZodOptional<z.ZodString>;
63
+ referrerpolicy: z.ZodOptional<z.ZodString>;
64
+ type: z.ZodOptional<z.ZodString>;
65
+ }, "passthrough", z.ZodTypeAny, {
66
+ async?: boolean | undefined;
67
+ type?: string | undefined;
68
+ crossorigin?: string | undefined;
69
+ defer?: boolean | undefined;
70
+ fetchpriority?: string | undefined;
71
+ integrity?: string | undefined;
72
+ module?: boolean | undefined;
73
+ nomodule?: boolean | undefined;
74
+ nonce?: string | undefined;
75
+ referrerpolicy?: string | undefined;
76
+ src: string;
77
+ }, {
78
+ async?: boolean | undefined;
79
+ type?: string | undefined;
80
+ crossorigin?: string | undefined;
81
+ defer?: boolean | undefined;
82
+ fetchpriority?: string | undefined;
83
+ integrity?: string | undefined;
84
+ module?: boolean | undefined;
85
+ nomodule?: boolean | undefined;
86
+ nonce?: string | undefined;
87
+ referrerpolicy?: string | undefined;
88
+ src: string;
89
+ }>, "many">>;
90
+ body: z.ZodOptional<z.ZodArray<z.ZodObject<{
91
+ src: z.ZodString;
92
+ async: z.ZodOptional<z.ZodBoolean>;
93
+ crossorigin: z.ZodOptional<z.ZodString>;
94
+ defer: z.ZodOptional<z.ZodBoolean>;
95
+ fetchpriority: z.ZodOptional<z.ZodString>;
96
+ integrity: z.ZodOptional<z.ZodString>;
97
+ module: z.ZodOptional<z.ZodBoolean>;
98
+ nomodule: z.ZodOptional<z.ZodBoolean>;
99
+ nonce: z.ZodOptional<z.ZodString>;
100
+ referrerpolicy: z.ZodOptional<z.ZodString>;
101
+ type: z.ZodOptional<z.ZodString>;
102
+ }, "passthrough", z.ZodTypeAny, {
103
+ async?: boolean | undefined;
104
+ type?: string | undefined;
105
+ crossorigin?: string | undefined;
106
+ defer?: boolean | undefined;
107
+ fetchpriority?: string | undefined;
108
+ integrity?: string | undefined;
109
+ module?: boolean | undefined;
110
+ nomodule?: boolean | undefined;
111
+ nonce?: string | undefined;
112
+ referrerpolicy?: string | undefined;
113
+ src: string;
114
+ }, {
115
+ async?: boolean | undefined;
116
+ type?: string | undefined;
117
+ crossorigin?: string | undefined;
118
+ defer?: boolean | undefined;
119
+ fetchpriority?: string | undefined;
120
+ integrity?: string | undefined;
121
+ module?: boolean | undefined;
122
+ nomodule?: boolean | undefined;
123
+ nonce?: string | undefined;
124
+ referrerpolicy?: string | undefined;
125
+ src: string;
126
+ }>, "many">>;
127
+ }, "strip", z.ZodTypeAny, {
128
+ head?: {
129
+ async?: boolean | undefined;
130
+ type?: string | undefined;
131
+ crossorigin?: string | undefined;
132
+ defer?: boolean | undefined;
133
+ fetchpriority?: string | undefined;
134
+ integrity?: string | undefined;
135
+ module?: boolean | undefined;
136
+ nomodule?: boolean | undefined;
137
+ nonce?: string | undefined;
138
+ referrerpolicy?: string | undefined;
139
+ src: string;
140
+ }[] | undefined;
141
+ body?: {
142
+ async?: boolean | undefined;
143
+ type?: string | undefined;
144
+ crossorigin?: string | undefined;
145
+ defer?: boolean | undefined;
146
+ fetchpriority?: string | undefined;
147
+ integrity?: string | undefined;
148
+ module?: boolean | undefined;
149
+ nomodule?: boolean | undefined;
150
+ nonce?: string | undefined;
151
+ referrerpolicy?: string | undefined;
152
+ src: string;
153
+ }[] | undefined;
154
+ }, {
155
+ head?: {
156
+ async?: boolean | undefined;
157
+ type?: string | undefined;
158
+ crossorigin?: string | undefined;
159
+ defer?: boolean | undefined;
160
+ fetchpriority?: string | undefined;
161
+ integrity?: string | undefined;
162
+ module?: boolean | undefined;
163
+ nomodule?: boolean | undefined;
164
+ nonce?: string | undefined;
165
+ referrerpolicy?: string | undefined;
166
+ src: string;
167
+ }[] | undefined;
168
+ body?: {
169
+ async?: boolean | undefined;
170
+ type?: string | undefined;
171
+ crossorigin?: string | undefined;
172
+ defer?: boolean | undefined;
173
+ fetchpriority?: string | undefined;
174
+ integrity?: string | undefined;
175
+ module?: boolean | undefined;
176
+ nomodule?: boolean | undefined;
177
+ nonce?: string | undefined;
178
+ referrerpolicy?: string | undefined;
179
+ src: string;
180
+ }[] | undefined;
181
+ }>>;
182
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
183
+ href: z.ZodString;
184
+ as: z.ZodOptional<z.ZodString>;
185
+ crossorigin: z.ZodOptional<z.ZodString>;
186
+ fetchpriority: z.ZodOptional<z.ZodString>;
187
+ hreflang: z.ZodOptional<z.ZodString>;
188
+ imagesizes: z.ZodOptional<z.ZodString>;
189
+ imagesrcset: z.ZodOptional<z.ZodString>;
190
+ integrity: z.ZodOptional<z.ZodString>;
191
+ media: z.ZodOptional<z.ZodString>;
192
+ prefetch: z.ZodOptional<z.ZodString>;
193
+ referrerpolicy: z.ZodOptional<z.ZodString>;
194
+ rel: z.ZodOptional<z.ZodString>;
195
+ sizes: z.ZodOptional<z.ZodString>;
196
+ title: z.ZodOptional<z.ZodString>;
197
+ type: z.ZodOptional<z.ZodString>;
198
+ }, "passthrough", z.ZodTypeAny, {
199
+ type?: string | undefined;
200
+ crossorigin?: string | undefined;
201
+ fetchpriority?: string | undefined;
202
+ integrity?: string | undefined;
203
+ referrerpolicy?: string | undefined;
204
+ as?: string | undefined;
205
+ hreflang?: string | undefined;
206
+ imagesizes?: string | undefined;
207
+ imagesrcset?: string | undefined;
208
+ media?: string | undefined;
209
+ prefetch?: string | undefined;
210
+ rel?: string | undefined;
211
+ sizes?: string | undefined;
212
+ title?: string | undefined;
213
+ href: string;
214
+ }, {
215
+ type?: string | undefined;
216
+ crossorigin?: string | undefined;
217
+ fetchpriority?: string | undefined;
218
+ integrity?: string | undefined;
219
+ referrerpolicy?: string | undefined;
220
+ as?: string | undefined;
221
+ hreflang?: string | undefined;
222
+ imagesizes?: string | undefined;
223
+ imagesrcset?: string | undefined;
224
+ media?: string | undefined;
225
+ prefetch?: string | undefined;
226
+ rel?: string | undefined;
227
+ sizes?: string | undefined;
228
+ title?: string | undefined;
229
+ href: string;
230
+ }>, "many">>;
46
231
  search: z.ZodOptional<z.ZodDefault<z.ZodObject<z.extendShape<{
47
232
  placement: z.ZodOptional<z.ZodDefault<z.ZodString>>;
48
233
  }, {
@@ -55,66 +240,63 @@ export declare const ThemeConfig: z.ZodDefault<z.ZodObject<{
55
240
  placement?: string | undefined;
56
241
  }>>>;
57
242
  colorMode: z.ZodDefault<z.ZodOptional<z.ZodObject<z.extendShape<{
58
- disableDetect: z.ZodOptional<z.ZodBoolean>;
59
- default: z.ZodOptional<z.ZodString>;
243
+ ignoreDetection: z.ZodOptional<z.ZodBoolean>;
60
244
  modes: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
61
245
  }, {
62
246
  hide: z.ZodOptional<z.ZodBoolean>;
63
247
  }>, "strict", z.ZodTypeAny, {
64
248
  hide?: boolean | undefined;
65
- disableDetect?: boolean | undefined;
66
- default?: string | undefined;
249
+ ignoreDetection?: boolean | undefined;
67
250
  modes?: string[] | undefined;
68
251
  }, {
69
252
  hide?: boolean | undefined;
70
- disableDetect?: boolean | undefined;
71
- default?: string | undefined;
253
+ ignoreDetection?: boolean | undefined;
72
254
  modes?: string[] | undefined;
73
255
  }>>>;
74
256
  navigation: z.ZodDefault<z.ZodOptional<z.ZodObject<{
75
- nextPageLink: z.ZodDefault<z.ZodOptional<z.ZodObject<z.extendShape<{
76
- label: z.ZodDefault<z.ZodString>;
257
+ nextButton: z.ZodDefault<z.ZodOptional<z.ZodObject<z.extendShape<{
258
+ text: z.ZodDefault<z.ZodString>;
77
259
  }, {
78
260
  hide: z.ZodOptional<z.ZodBoolean>;
79
261
  }>, "strip", z.ZodTypeAny, {
80
262
  hide?: boolean | undefined;
81
- label: string;
263
+ text: string;
82
264
  }, {
83
265
  hide?: boolean | undefined;
84
- label?: string | undefined;
266
+ text?: string | undefined;
85
267
  }>>>;
86
- prevPageLink: z.ZodDefault<z.ZodOptional<z.ZodObject<z.extendShape<{
87
- label: z.ZodDefault<z.ZodString>;
268
+ previousButton: z.ZodDefault<z.ZodOptional<z.ZodObject<z.extendShape<{
269
+ text: z.ZodDefault<z.ZodString>;
88
270
  }, {
89
271
  hide: z.ZodOptional<z.ZodBoolean>;
90
272
  }>, "strip", z.ZodTypeAny, {
91
273
  hide?: boolean | undefined;
92
- label: string;
274
+ text: string;
93
275
  }, {
94
276
  hide?: boolean | undefined;
95
- label?: string | undefined;
277
+ text?: string | undefined;
96
278
  }>>>;
97
279
  }, "strict", z.ZodTypeAny, {
98
- nextPageLink: {
280
+ nextButton: {
99
281
  hide?: boolean | undefined;
100
- label: string;
282
+ text: string;
101
283
  };
102
- prevPageLink: {
284
+ previousButton: {
103
285
  hide?: boolean | undefined;
104
- label: string;
286
+ text: string;
105
287
  };
106
288
  }, {
107
- nextPageLink?: {
289
+ nextButton?: {
108
290
  hide?: boolean | undefined;
109
- label?: string | undefined;
291
+ text?: string | undefined;
110
292
  } | undefined;
111
- prevPageLink?: {
293
+ previousButton?: {
112
294
  hide?: boolean | undefined;
113
- label?: string | undefined;
295
+ text?: string | undefined;
114
296
  } | undefined;
115
297
  }>>>;
116
298
  markdown: z.ZodOptional<z.ZodDefault<z.ZodObject<{
117
- frontmatterKeysToResolve: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
299
+ frontMatterKeysToResolve: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
118
300
  lastUpdatedBlock: z.ZodOptional<z.ZodDefault<z.ZodObject<z.extendShape<{
119
301
  format: z.ZodOptional<z.ZodDefault<z.ZodEnum<["timeago", "iso", "long", "short"]>>>;
120
302
  locale: z.ZodOptional<z.ZodDefault<z.ZodString>>;
@@ -131,17 +313,17 @@ export declare const ThemeConfig: z.ZodDefault<z.ZodObject<{
131
313
  }>>>;
132
314
  toc: z.ZodDefault<z.ZodOptional<z.ZodObject<z.extendShape<{
133
315
  header: z.ZodOptional<z.ZodDefault<z.ZodString>>;
134
- maxDepth: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
316
+ depth: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
135
317
  }, {
136
318
  hide: z.ZodOptional<z.ZodBoolean>;
137
319
  }>, "strip", z.ZodTypeAny, {
138
320
  hide?: boolean | undefined;
139
321
  header?: string | undefined;
140
- maxDepth?: number | undefined;
322
+ depth?: number | undefined;
141
323
  }, {
142
324
  hide?: boolean | undefined;
143
325
  header?: string | undefined;
144
- maxDepth?: number | undefined;
326
+ depth?: number | undefined;
145
327
  }>>>;
146
328
  editPage: z.ZodOptional<z.ZodDefault<z.ZodObject<z.extendShape<{
147
329
  baseUrl: z.ZodOptional<z.ZodString>;
@@ -156,9 +338,9 @@ export declare const ThemeConfig: z.ZodDefault<z.ZodObject<{
156
338
  text: string;
157
339
  }, {
158
340
  hide?: boolean | undefined;
341
+ text?: string | undefined;
159
342
  baseUrl?: string | undefined;
160
343
  icon?: string | undefined;
161
- text?: string | undefined;
162
344
  }>>>;
163
345
  copyCodeSnippet: z.ZodDefault<z.ZodOptional<z.ZodObject<z.extendShape<{
164
346
  buttonText: z.ZodOptional<z.ZodDefault<z.ZodString>>;
@@ -181,7 +363,7 @@ export declare const ThemeConfig: z.ZodDefault<z.ZodObject<{
181
363
  toasterDuration?: number | undefined;
182
364
  }>>>;
183
365
  }, "strict", z.ZodTypeAny, {
184
- frontmatterKeysToResolve?: string[] | undefined;
366
+ frontMatterKeysToResolve?: string[] | undefined;
185
367
  lastUpdatedBlock?: {
186
368
  hide?: boolean | undefined;
187
369
  format?: "timeago" | "iso" | "long" | "short" | undefined;
@@ -196,7 +378,7 @@ export declare const ThemeConfig: z.ZodDefault<z.ZodObject<{
196
378
  toc: {
197
379
  hide?: boolean | undefined;
198
380
  header?: string | undefined;
199
- maxDepth?: number | undefined;
381
+ depth?: number | undefined;
200
382
  };
201
383
  copyCodeSnippet: {
202
384
  hide?: boolean | undefined;
@@ -206,7 +388,7 @@ export declare const ThemeConfig: z.ZodDefault<z.ZodObject<{
206
388
  toasterDuration?: number | undefined;
207
389
  };
208
390
  }, {
209
- frontmatterKeysToResolve?: string[] | undefined;
391
+ frontMatterKeysToResolve?: string[] | undefined;
210
392
  lastUpdatedBlock?: {
211
393
  hide?: boolean | undefined;
212
394
  format?: "timeago" | "iso" | "long" | "short" | undefined;
@@ -215,13 +397,13 @@ export declare const ThemeConfig: z.ZodDefault<z.ZodObject<{
215
397
  toc?: {
216
398
  hide?: boolean | undefined;
217
399
  header?: string | undefined;
218
- maxDepth?: number | undefined;
400
+ depth?: number | undefined;
219
401
  } | undefined;
220
402
  editPage?: {
221
403
  hide?: boolean | undefined;
404
+ text?: string | undefined;
222
405
  baseUrl?: string | undefined;
223
406
  icon?: string | undefined;
224
- text?: string | undefined;
225
407
  } | undefined;
226
408
  copyCodeSnippet?: {
227
409
  hide?: boolean | undefined;
@@ -243,24 +425,67 @@ export declare const ThemeConfig: z.ZodDefault<z.ZodObject<{
243
425
  } | undefined;
244
426
  navbar?: {
245
427
  hide?: boolean | undefined;
428
+ items?: any[] | undefined;
246
429
  } | undefined;
247
430
  footer?: {
248
431
  hide?: boolean | undefined;
432
+ items?: any[] | undefined;
433
+ copyrightText?: string | undefined;
249
434
  } | undefined;
250
435
  sidebar?: {
251
436
  hide?: boolean | undefined;
252
437
  } | undefined;
253
- navbarItems?: any;
254
- footerItems?: any;
255
- scripts?: (string | Record<string, string | boolean>)[] | undefined;
256
- postBodyScripts?: (string | Record<string, string | boolean>)[] | undefined;
257
- styles?: (string | Record<string, string | boolean>)[] | undefined;
438
+ scripts?: {
439
+ head?: {
440
+ async?: boolean | undefined;
441
+ type?: string | undefined;
442
+ crossorigin?: string | undefined;
443
+ defer?: boolean | undefined;
444
+ fetchpriority?: string | undefined;
445
+ integrity?: string | undefined;
446
+ module?: boolean | undefined;
447
+ nomodule?: boolean | undefined;
448
+ nonce?: string | undefined;
449
+ referrerpolicy?: string | undefined;
450
+ src: string;
451
+ }[] | undefined;
452
+ body?: {
453
+ async?: boolean | undefined;
454
+ type?: string | undefined;
455
+ crossorigin?: string | undefined;
456
+ defer?: boolean | undefined;
457
+ fetchpriority?: string | undefined;
458
+ integrity?: string | undefined;
459
+ module?: boolean | undefined;
460
+ nomodule?: boolean | undefined;
461
+ nonce?: string | undefined;
462
+ referrerpolicy?: string | undefined;
463
+ src: string;
464
+ }[] | undefined;
465
+ } | undefined;
466
+ links?: {
467
+ type?: string | undefined;
468
+ crossorigin?: string | undefined;
469
+ fetchpriority?: string | undefined;
470
+ integrity?: string | undefined;
471
+ referrerpolicy?: string | undefined;
472
+ as?: string | undefined;
473
+ hreflang?: string | undefined;
474
+ imagesizes?: string | undefined;
475
+ imagesrcset?: string | undefined;
476
+ media?: string | undefined;
477
+ prefetch?: string | undefined;
478
+ rel?: string | undefined;
479
+ sizes?: string | undefined;
480
+ title?: string | undefined;
481
+ href: string;
482
+ }[] | undefined;
258
483
  search?: {
259
484
  hide?: boolean | undefined;
260
485
  placement?: string | undefined;
261
486
  } | undefined;
262
487
  markdown?: {
263
- frontmatterKeysToResolve?: string[] | undefined;
488
+ frontMatterKeysToResolve?: string[] | undefined;
264
489
  lastUpdatedBlock?: {
265
490
  hide?: boolean | undefined;
266
491
  format?: "timeago" | "iso" | "long" | "short" | undefined;
@@ -275,7 +500,7 @@ export declare const ThemeConfig: z.ZodDefault<z.ZodObject<{
275
500
  toc: {
276
501
  hide?: boolean | undefined;
277
502
  header?: string | undefined;
278
- maxDepth?: number | undefined;
503
+ depth?: number | undefined;
279
504
  };
280
505
  copyCodeSnippet: {
281
506
  hide?: boolean | undefined;
@@ -289,18 +514,17 @@ export declare const ThemeConfig: z.ZodDefault<z.ZodObject<{
289
514
  graphql?: {} | undefined;
290
515
  colorMode: {
291
516
  hide?: boolean | undefined;
292
- disableDetect?: boolean | undefined;
293
- default?: string | undefined;
517
+ ignoreDetection?: boolean | undefined;
294
518
  modes?: string[] | undefined;
295
519
  };
296
520
  navigation: {
297
- nextPageLink: {
521
+ nextButton: {
298
522
  hide?: boolean | undefined;
299
- label: string;
523
+ text: string;
300
524
  };
301
- prevPageLink: {
525
+ previousButton: {
302
526
  hide?: boolean | undefined;
303
- label: string;
527
+ text: string;
304
528
  };
305
529
  };
306
530
  }, {
@@ -313,40 +537,82 @@ export declare const ThemeConfig: z.ZodDefault<z.ZodObject<{
313
537
  } | undefined;
314
538
  navbar?: {
315
539
  hide?: boolean | undefined;
540
+ items?: any[] | undefined;
316
541
  } | undefined;
317
542
  footer?: {
318
543
  hide?: boolean | undefined;
544
+ items?: any[] | undefined;
545
+ copyrightText?: string | undefined;
319
546
  } | undefined;
320
547
  sidebar?: {
321
548
  hide?: boolean | undefined;
322
549
  } | undefined;
323
- navbarItems?: any;
324
- footerItems?: any;
325
- scripts?: (string | Record<string, string | boolean>)[] | undefined;
326
- postBodyScripts?: (string | Record<string, string | boolean>)[] | undefined;
327
- styles?: (string | Record<string, string | boolean>)[] | undefined;
550
+ scripts?: {
551
+ head?: {
552
+ async?: boolean | undefined;
553
+ type?: string | undefined;
554
+ crossorigin?: string | undefined;
555
+ defer?: boolean | undefined;
556
+ fetchpriority?: string | undefined;
557
+ integrity?: string | undefined;
558
+ module?: boolean | undefined;
559
+ nomodule?: boolean | undefined;
560
+ nonce?: string | undefined;
561
+ referrerpolicy?: string | undefined;
562
+ src: string;
563
+ }[] | undefined;
564
+ body?: {
565
+ async?: boolean | undefined;
566
+ type?: string | undefined;
567
+ crossorigin?: string | undefined;
568
+ defer?: boolean | undefined;
569
+ fetchpriority?: string | undefined;
570
+ integrity?: string | undefined;
571
+ module?: boolean | undefined;
572
+ nomodule?: boolean | undefined;
573
+ nonce?: string | undefined;
574
+ referrerpolicy?: string | undefined;
575
+ src: string;
576
+ }[] | undefined;
577
+ } | undefined;
578
+ links?: {
579
+ type?: string | undefined;
580
+ crossorigin?: string | undefined;
581
+ fetchpriority?: string | undefined;
582
+ integrity?: string | undefined;
583
+ referrerpolicy?: string | undefined;
584
+ as?: string | undefined;
585
+ hreflang?: string | undefined;
586
+ imagesizes?: string | undefined;
587
+ imagesrcset?: string | undefined;
588
+ media?: string | undefined;
589
+ prefetch?: string | undefined;
590
+ rel?: string | undefined;
591
+ sizes?: string | undefined;
592
+ title?: string | undefined;
593
+ href: string;
594
+ }[] | undefined;
328
595
  search?: {
329
596
  hide?: boolean | undefined;
330
597
  placement?: string | undefined;
331
598
  } | undefined;
332
599
  colorMode?: {
333
600
  hide?: boolean | undefined;
334
- disableDetect?: boolean | undefined;
335
- default?: string | undefined;
601
+ ignoreDetection?: boolean | undefined;
336
602
  modes?: string[] | undefined;
337
603
  } | undefined;
338
604
  navigation?: {
339
- nextPageLink?: {
605
+ nextButton?: {
340
606
  hide?: boolean | undefined;
341
- label?: string | undefined;
607
+ text?: string | undefined;
342
608
  } | undefined;
343
- prevPageLink?: {
609
+ previousButton?: {
344
610
  hide?: boolean | undefined;
345
- label?: string | undefined;
611
+ text?: string | undefined;
346
612
  } | undefined;
347
613
  } | undefined;
348
614
  markdown?: {
349
- frontmatterKeysToResolve?: string[] | undefined;
615
+ frontMatterKeysToResolve?: string[] | undefined;
350
616
  lastUpdatedBlock?: {
351
617
  hide?: boolean | undefined;
352
618
  format?: "timeago" | "iso" | "long" | "short" | undefined;
@@ -355,13 +621,13 @@ export declare const ThemeConfig: z.ZodDefault<z.ZodObject<{
355
621
  toc?: {
356
622
  hide?: boolean | undefined;
357
623
  header?: string | undefined;
358
- maxDepth?: number | undefined;
624
+ depth?: number | undefined;
359
625
  } | undefined;
360
626
  editPage?: {
361
627
  hide?: boolean | undefined;
628
+ text?: string | undefined;
362
629
  baseUrl?: string | undefined;
363
630
  icon?: string | undefined;
364
- text?: string | undefined;
365
631
  } | undefined;
366
632
  copyCodeSnippet?: {
367
633
  hide?: boolean | undefined;
@@ -375,11 +641,15 @@ export declare const ThemeConfig: z.ZodDefault<z.ZodObject<{
375
641
  graphql?: {} | undefined;
376
642
  }>>;
377
643
  export declare type ThemeConfig = z.infer<typeof ThemeConfig>;
378
- export declare type ThemeUIConfig = Omit<ThemeConfig, 'navbarItems' | 'footerItems' | 'styles' | 'scripts' | 'postBodyScripts'> & {
379
- navbarItems?: any;
380
- footerItems?: any;
644
+ export declare type ThemeUIConfig = Omit<ThemeConfig, 'navbar' | 'footer' | 'links' | 'scripts'> & {
645
+ navbar?: any;
646
+ footer?: any;
381
647
  auth?: {
382
- idpIds?: string[];
648
+ idpsInfo?: {
649
+ idpId: string;
650
+ type: string;
651
+ title: string | undefined;
652
+ }[];
383
653
  devLogin?: boolean;
384
654
  };
385
655
  };