@redocly/config 0.8.2 → 0.10.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.
@@ -1,643 +1,45 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.productConfigOverrideSchema = exports.productThemeOverrideSchema = exports.closedThemeConfigSchema = exports.themeConfigSchema = exports.catalogSchema = exports.scorecardConfigSchema = exports.catalogFilterSchema = exports.productConfigSchema = exports.googleAnalyticsConfigSchema = exports.productGoogleAnalyticsConfigSchema = exports.gtmAnalyticsConfigSchema = exports.segmentAnalyticsConfigSchema = exports.rudderstackAnalyticsConfigSchema = exports.heapAnalyticsConfigSchema = exports.fullstoryAnalyticsConfigSchema = exports.amplitudeAnalyticsConfigSchema = exports.markdownConfigSchema = void 0;
4
- const redoc_config_schema_1 = require("./redoc-config-schema");
3
+ exports.productConfigOverrideSchema = exports.productThemeOverrideSchema = exports.closedThemeConfigSchema = exports.themeConfigSchema = void 0;
5
4
  const graphql_config_schema_1 = require("./graphql-config-schema");
6
- const reference_docs_config_schema_1 = require("./reference-docs-config-schema");
7
- const logoConfigSchema = {
8
- type: 'object',
9
- properties: {
10
- image: { type: 'string' },
11
- srcSet: { type: 'string' },
12
- altText: { type: 'string' },
13
- link: { type: 'string' },
14
- favicon: { type: 'string' },
15
- },
16
- additionalProperties: false,
17
- };
18
- const hideConfigSchema = {
19
- type: 'object',
20
- properties: {
21
- hide: { type: 'boolean' },
22
- },
23
- additionalProperties: false,
24
- };
25
- const scriptConfigSchema = {
26
- type: 'object',
27
- properties: {
28
- src: { type: 'string' },
29
- async: { type: 'boolean' },
30
- crossorigin: { type: 'string' },
31
- defer: { type: 'boolean' },
32
- fetchpriority: { type: 'string' },
33
- integrity: { type: 'string' },
34
- module: { type: 'boolean' },
35
- nomodule: { type: 'boolean' },
36
- nonce: { type: 'string' },
37
- referrerpolicy: { type: 'string' },
38
- type: { type: 'string' },
39
- },
40
- required: ['src'],
41
- additionalProperties: true,
42
- };
43
- const linksConfigSchema = {
44
- type: 'object',
45
- properties: {
46
- href: { type: 'string' },
47
- as: { type: 'string' },
48
- crossorigin: { type: 'string' },
49
- fetchpriority: { type: 'string' },
50
- hreflang: { type: 'string' },
51
- imagesizes: { type: 'string' },
52
- imagesrcset: { type: 'string' },
53
- integrity: { type: 'string' },
54
- media: { type: 'string' },
55
- prefetch: { type: 'string' },
56
- referrerpolicy: { type: 'string' },
57
- rel: { type: 'string' },
58
- sizes: { type: 'string' },
59
- title: { type: 'string' },
60
- type: { type: 'string' },
61
- },
62
- required: ['href'],
63
- additionalProperties: true,
64
- };
65
- exports.markdownConfigSchema = {
66
- type: 'object',
67
- properties: {
68
- frontMatterKeysToResolve: {
69
- type: 'array',
70
- items: { type: 'string' },
71
- default: ['image', 'links'],
72
- },
73
- partialsFolders: {
74
- type: 'array',
75
- items: { type: 'string' },
76
- default: ['_partials'],
77
- },
78
- lastUpdatedBlock: {
79
- type: 'object',
80
- properties: Object.assign({ format: {
81
- type: 'string',
82
- enum: ['timeago', 'iso', 'long', 'short'],
83
- default: 'timeago',
84
- }, locale: { type: 'string' } }, hideConfigSchema.properties),
85
- additionalProperties: false,
86
- default: {},
87
- },
88
- toc: {
89
- type: 'object',
90
- properties: Object.assign({ header: { type: 'string', default: 'On this page' }, depth: { type: 'integer', default: 3, minimum: 1 } }, hideConfigSchema.properties),
91
- additionalProperties: false,
92
- default: {},
93
- },
94
- editPage: {
95
- type: 'object',
96
- properties: Object.assign({ baseUrl: { type: 'string' } }, hideConfigSchema.properties),
97
- additionalProperties: false,
98
- default: {},
99
- },
100
- },
101
- additionalProperties: false,
102
- default: {},
103
- };
104
- exports.amplitudeAnalyticsConfigSchema = {
105
- type: 'object',
106
- properties: {
107
- includeInDevelopment: { type: 'boolean' },
108
- apiKey: { type: 'string' },
109
- head: { type: 'boolean' },
110
- respectDNT: { type: 'boolean' },
111
- exclude: { type: 'array', items: { type: 'string' } },
112
- outboundClickEventName: { type: 'string' },
113
- pageViewEventName: { type: 'string' },
114
- amplitudeConfig: { type: 'object', additionalProperties: true },
115
- },
116
- additionalProperties: false,
117
- required: ['apiKey'],
118
- };
119
- exports.fullstoryAnalyticsConfigSchema = {
120
- type: 'object',
121
- properties: {
122
- includeInDevelopment: { type: 'boolean' },
123
- orgId: { type: 'string' },
124
- },
125
- additionalProperties: false,
126
- required: ['orgId'],
127
- };
128
- exports.heapAnalyticsConfigSchema = {
129
- type: 'object',
130
- properties: {
131
- includeInDevelopment: { type: 'boolean' },
132
- appId: { type: 'string' },
133
- },
134
- additionalProperties: false,
135
- required: ['appId'],
136
- };
137
- exports.rudderstackAnalyticsConfigSchema = {
138
- type: 'object',
139
- properties: {
140
- includeInDevelopment: { type: 'boolean' },
141
- writeKey: { type: 'string', minLength: 10 },
142
- trackPage: { type: 'boolean' },
143
- dataPlaneUrl: { type: 'string' },
144
- controlPlaneUrl: { type: 'string' },
145
- sdkUrl: { type: 'string' },
146
- loadOptions: { type: 'object', additionalProperties: true },
147
- },
148
- additionalProperties: false,
149
- required: ['writeKey'],
150
- };
151
- exports.segmentAnalyticsConfigSchema = {
152
- type: 'object',
153
- properties: {
154
- includeInDevelopment: { type: 'boolean' },
155
- writeKey: { type: 'string', minLength: 10 },
156
- trackPage: { type: 'boolean' },
157
- includeTitleInPageCall: { type: 'boolean' },
158
- host: { type: 'string' },
159
- },
160
- additionalProperties: false,
161
- required: ['writeKey'],
162
- };
163
- exports.gtmAnalyticsConfigSchema = {
164
- type: 'object',
165
- properties: {
166
- includeInDevelopment: { type: 'boolean' },
167
- trackingId: { type: 'string' },
168
- gtmAuth: { type: 'string' },
169
- gtmPreview: { type: 'string' },
170
- defaultDataLayer: {},
171
- dataLayerName: { type: 'string' },
172
- enableWebVitalsTracking: { type: 'boolean' },
173
- selfHostedOrigin: { type: 'string' },
174
- pageViewEventName: { type: 'string' },
175
- },
176
- additionalProperties: false,
177
- required: ['trackingId'],
178
- };
179
- exports.productGoogleAnalyticsConfigSchema = {
180
- type: 'object',
181
- properties: {
182
- includeInDevelopment: { type: 'boolean' },
183
- trackingId: { type: 'string' },
184
- conversionId: { type: 'string' },
185
- floodlightId: { type: 'string' },
186
- optimizeId: { type: 'string' },
187
- exclude: { type: 'array', items: { type: 'string' } },
188
- },
189
- additionalProperties: false,
190
- required: ['trackingId'],
191
- };
192
- exports.googleAnalyticsConfigSchema = {
193
- type: 'object',
194
- properties: {
195
- includeInDevelopment: { type: 'boolean' },
196
- trackingId: { type: 'string' },
197
- conversionId: { type: 'string' },
198
- floodlightId: { type: 'string' },
199
- head: { type: 'boolean' },
200
- respectDNT: { type: 'boolean' },
201
- exclude: { type: 'array', items: { type: 'string' } },
202
- optimizeId: { type: 'string' },
203
- anonymizeIp: { type: 'boolean' },
204
- cookieExpires: { type: 'number' },
205
- // All enabled tracking configs
206
- trackers: {
207
- type: 'object',
208
- additionalProperties: exports.productGoogleAnalyticsConfigSchema,
209
- },
210
- },
211
- additionalProperties: false,
212
- required: ['trackingId'],
213
- };
214
- const adobeAnalyticsConfigSchema = {
215
- type: 'object',
216
- properties: {
217
- includeInDevelopment: { type: 'boolean' },
218
- scriptUrl: { type: 'string' },
219
- pageViewEventName: { type: 'string' },
220
- },
221
- additionalProperties: false,
222
- required: ['scriptUrl'],
223
- };
224
- const navItemSchema = {
225
- type: 'object',
226
- properties: {
227
- page: { type: 'string' },
228
- directory: { type: 'string' },
229
- disconnect: { type: 'boolean', default: false },
230
- group: { type: 'string' },
231
- label: { type: 'string' },
232
- href: { type: 'string' },
233
- external: { type: 'boolean' },
234
- labelTranslationKey: { type: 'string' },
235
- groupTranslationKey: { type: 'string' },
236
- icon: {
237
- oneOf: [
238
- { type: 'string' },
239
- { type: 'object', properties: { srcSet: { type: 'string' } }, required: ['srcSet'] },
240
- ],
241
- },
242
- separator: { type: 'string' },
243
- separatorLine: { type: 'boolean' },
244
- linePosition: {
245
- type: 'string',
246
- enum: ['top', 'bottom'],
247
- default: 'top',
248
- },
249
- version: { type: 'string' },
250
- menuStyle: { type: 'string', enum: ['drilldown'] },
251
- expanded: { type: 'string', const: 'always' },
252
- selectFirstItemOnExpand: { type: 'boolean' },
253
- flatten: { type: 'boolean' },
254
- linkedSidebars: {
255
- type: 'array',
256
- items: { type: 'string' },
257
- },
258
- // Allow users to eject the navbar and implement additional levels of nesting
259
- items: { type: 'array', items: { type: 'object', additionalProperties: true } },
260
- },
261
- };
262
- const navItemsSchema = {
263
- type: 'array',
264
- items: Object.assign(Object.assign({}, navItemSchema), { properties: Object.assign(Object.assign({}, navItemSchema.properties), { items: { type: 'array', items: navItemSchema } }) }),
265
- };
266
- exports.productConfigSchema = {
267
- type: 'object',
268
- properties: {
269
- name: { type: 'string' },
270
- icon: { type: 'string' },
271
- folder: { type: 'string' },
272
- },
273
- additionalProperties: false,
274
- required: ['name', 'folder'],
275
- };
276
- const suggestedPageSchema = {
277
- type: 'object',
278
- properties: {
279
- page: { type: 'string' },
280
- label: { type: 'string' },
281
- labelTranslationKey: { type: 'string' },
282
- },
283
- required: ['page'],
284
- };
285
- exports.catalogFilterSchema = {
286
- type: 'object',
287
- additionalProperties: false,
288
- required: ['title', 'property'],
289
- properties: {
290
- type: {
291
- type: 'string',
292
- enum: ['select', 'checkboxes', 'date-range'],
293
- default: 'checkboxes',
294
- },
295
- title: { type: 'string' },
296
- titleTranslationKey: { type: 'string' },
297
- property: { type: 'string' },
298
- parentFilter: { type: 'string' },
299
- valuesMapping: { type: 'object', additionalProperties: { type: 'string' } },
300
- missingCategoryName: { type: 'string' },
301
- missingCategoryNameTranslationKey: { type: 'string' },
302
- options: { type: 'array', items: { type: 'string' } },
303
- },
304
- };
305
- exports.scorecardConfigSchema = {
306
- type: 'object',
307
- additionalProperties: true,
308
- required: [],
309
- properties: {
310
- ignoreNonCompliant: { type: 'boolean', default: false },
311
- teamMetadataProperty: {
312
- type: 'object',
313
- properties: {
314
- property: { type: 'string' },
315
- label: { type: 'string' },
316
- default: { type: 'string' },
317
- },
318
- },
319
- levels: {
320
- type: 'array',
321
- items: {
322
- type: 'object',
323
- required: ['name'],
324
- properties: {
325
- name: { type: 'string' },
326
- color: { type: 'string' },
327
- extends: { type: 'array', items: { type: 'string' } },
328
- rules: {
329
- type: 'object',
330
- additionalProperties: {
331
- oneOf: [{ type: 'string' }, { type: 'object' }],
332
- },
333
- },
334
- },
335
- additionalProperties: false,
336
- },
337
- },
338
- targets: {
339
- type: 'array',
340
- items: {
341
- type: 'object',
342
- required: ['where'],
343
- properties: {
344
- minimumLevel: { type: 'string' },
345
- where: {
346
- type: 'object',
347
- required: ['metadata'],
348
- properties: {
349
- metadata: { type: 'object', additionalProperties: { type: 'string' } },
350
- },
351
- additionalProperties: false,
352
- },
353
- },
354
- additionalProperties: false,
355
- },
356
- },
357
- },
358
- };
359
- exports.catalogSchema = {
360
- type: 'object',
361
- additionalProperties: true,
362
- required: ['slug', 'items'],
363
- properties: {
364
- slug: { type: 'string' },
365
- filters: { type: 'array', items: exports.catalogFilterSchema },
366
- groupByFirstFilter: { type: 'boolean' },
367
- filterValuesCasing: {
368
- type: 'string',
369
- enum: ['sentence', 'original', 'lowercase', 'uppercase'],
370
- },
371
- items: navItemsSchema,
372
- requiredPermission: { type: 'string' },
373
- separateVersions: { type: 'boolean' },
374
- title: { type: 'string' },
375
- titleTranslationKey: { type: 'string' },
376
- description: { type: 'string' },
377
- descriptionTranslationKey: { type: 'string' },
378
- },
379
- };
380
- const catalogsConfigSchema = {
381
- type: 'object',
382
- patternProperties: {
383
- '.*': exports.catalogSchema,
384
- },
385
- };
5
+ const feedback_config_schema_1 = require("./feedback-config-schema");
6
+ const ex_theme_config_schemas_1 = require("./ex-theme-config-schemas");
386
7
  exports.themeConfigSchema = {
387
8
  type: 'object',
388
9
  properties: {
10
+ /**
11
+ * @deprecated Should use `plugins` instead
12
+ */
389
13
  imports: {
390
14
  type: 'array',
391
15
  items: { type: 'string' },
392
- default: [],
393
- },
394
- logo: logoConfigSchema,
395
- navbar: {
396
- type: 'object',
397
- properties: Object.assign({ items: navItemsSchema }, hideConfigSchema.properties),
398
- additionalProperties: false,
399
- },
400
- products: {
401
- type: 'object',
402
- additionalProperties: exports.productConfigSchema,
403
- },
404
- footer: {
405
- type: 'object',
406
- properties: Object.assign({ items: navItemsSchema, copyrightText: { type: 'string' }, logo: hideConfigSchema }, hideConfigSchema.properties),
407
- additionalProperties: false,
408
- },
409
- sidebar: {
410
- type: 'object',
411
- properties: Object.assign({ separatorLine: { type: 'boolean' }, linePosition: {
412
- type: 'string',
413
- enum: ['top', 'bottom'],
414
- default: 'bottom',
415
- } }, hideConfigSchema.properties),
416
- additionalProperties: false,
417
- },
418
- scripts: {
419
- type: 'object',
420
- properties: {
421
- head: { type: 'array', items: scriptConfigSchema },
422
- body: { type: 'array', items: scriptConfigSchema },
423
- },
424
- additionalProperties: false,
425
- },
426
- links: { type: 'array', items: linksConfigSchema },
427
- feedback: {
428
- type: 'object',
429
- properties: {
430
- hide: {
431
- type: 'boolean',
432
- default: false,
433
- },
434
- type: {
435
- type: 'string',
436
- enum: ['rating', 'sentiment', 'comment', 'reasons', 'mood', 'scale'],
437
- default: 'sentiment',
438
- },
439
- settings: Object.assign({ type: 'object', properties: {
440
- label: { type: 'string' },
441
- submitText: { type: 'string' },
442
- buttonText: { type: 'string' },
443
- component: {
444
- type: 'string',
445
- enum: ['radio', 'checkbox'],
446
- default: 'checkbox',
447
- },
448
- items: { type: 'array', items: { type: 'string' }, minItems: 1 },
449
- leftScaleLabel: { type: 'string' },
450
- rightScaleLabel: { type: 'string' },
451
- reasons: {
452
- type: 'object',
453
- properties: {
454
- hide: {
455
- type: 'boolean',
456
- default: false,
457
- },
458
- component: {
459
- type: 'string',
460
- enum: ['radio', 'checkbox'],
461
- default: 'checkbox',
462
- },
463
- label: { type: 'string' },
464
- items: { type: 'array', items: { type: 'string' } },
465
- },
466
- additionalProperties: false,
467
- },
468
- comment: {
469
- type: 'object',
470
- properties: {
471
- hide: {
472
- type: 'boolean',
473
- default: false,
474
- },
475
- label: { type: 'string' },
476
- likeLabel: { type: 'string' },
477
- dislikeLabel: { type: 'string' },
478
- satisfiedLabel: { type: 'string' },
479
- neutralLabel: { type: 'string' },
480
- dissatisfiedLabel: { type: 'string' },
481
- },
482
- additionalProperties: false,
483
- },
484
- }, additionalProperties: false }, hideConfigSchema.properties),
485
- },
486
- additionalProperties: false,
487
- default: {},
488
- },
489
- search: {
490
- type: 'object',
491
- properties: Object.assign({ placement: {
492
- type: 'string',
493
- default: 'navbar',
494
- }, shortcuts: {
495
- type: 'array',
496
- items: { type: 'string' },
497
- default: ['/'],
498
- }, suggestedPages: {
499
- type: 'array',
500
- items: suggestedPageSchema,
501
- }, fuzzy: {
502
- type: 'boolean',
503
- default: false,
504
- } }, hideConfigSchema.properties),
505
- additionalProperties: false,
506
- default: {},
507
- },
508
- colorMode: {
509
- type: 'object',
510
- properties: Object.assign({ ignoreDetection: { type: 'boolean' }, modes: {
511
- type: 'array',
512
- items: { type: 'string' },
513
- default: ['light', 'dark'],
514
- } }, hideConfigSchema.properties),
515
- additionalProperties: false,
516
- default: {},
517
- },
518
- navigation: {
519
- type: 'object',
520
- properties: {
521
- nextButton: {
522
- type: 'object',
523
- properties: Object.assign({ text: { type: 'string', default: 'Next page' } }, hideConfigSchema.properties),
524
- additionalProperties: false,
525
- default: {},
526
- },
527
- previousButton: {
528
- type: 'object',
529
- properties: Object.assign({ text: { type: 'string', default: 'Previous page' } }, hideConfigSchema.properties),
530
- additionalProperties: false,
531
- default: {},
532
- },
533
- },
534
- additionalProperties: false,
535
- default: {},
536
16
  },
537
- codeSnippet: {
538
- type: 'object',
539
- properties: {
540
- elementFormat: { type: 'string', default: 'icon' },
541
- copy: {
542
- type: 'object',
543
- properties: Object.assign({}, hideConfigSchema.properties),
544
- additionalProperties: false,
545
- default: { hide: false },
546
- },
547
- report: {
548
- type: 'object',
549
- properties: Object.assign({ tooltipText: { type: 'string' }, buttonText: { type: 'string' }, label: { type: 'string' } }, hideConfigSchema.properties),
550
- additionalProperties: false,
551
- default: { hide: false },
552
- },
553
- expand: {
554
- type: 'object',
555
- properties: Object.assign({}, hideConfigSchema.properties),
556
- additionalProperties: false,
557
- default: { hide: false },
558
- },
559
- collapse: {
560
- type: 'object',
561
- properties: Object.assign({}, hideConfigSchema.properties),
562
- additionalProperties: false,
563
- default: { hide: false },
564
- },
565
- },
566
- additionalProperties: false,
567
- default: {},
568
- },
569
- markdown: exports.markdownConfigSchema,
570
- openapi: Object.assign(Object.assign({}, redoc_config_schema_1.redocConfigSchema), { properties: Object.assign(Object.assign({}, redoc_config_schema_1.redocConfigSchema.properties), reference_docs_config_schema_1.deprecatedRefDocsSchema.properties) }),
17
+ logo: ex_theme_config_schemas_1.logoConfigSchema,
18
+ navbar: ex_theme_config_schemas_1.navbarConfigSchema,
19
+ products: ex_theme_config_schemas_1.productsConfigSchema,
20
+ footer: ex_theme_config_schemas_1.footerConfigSchema,
21
+ sidebar: ex_theme_config_schemas_1.sidebarConfigSchema,
22
+ scripts: ex_theme_config_schemas_1.scriptsConfigSchema,
23
+ links: ex_theme_config_schemas_1.linksConfigSchema,
24
+ feedback: feedback_config_schema_1.feedbackConfigSchema,
25
+ search: ex_theme_config_schemas_1.searchConfigSchema,
26
+ colorMode: ex_theme_config_schemas_1.colorModeConfigSchema,
27
+ navigation: ex_theme_config_schemas_1.navigationConfigSchema,
28
+ codeSnippet: ex_theme_config_schemas_1.codeSnippetConfigSchema,
29
+ markdown: ex_theme_config_schemas_1.markdownConfigSchema,
30
+ openapi: ex_theme_config_schemas_1.openapiConfigSchema,
571
31
  graphql: graphql_config_schema_1.graphqlConfigSchema,
572
- analytics: {
573
- type: 'object',
574
- properties: {
575
- adobe: adobeAnalyticsConfigSchema,
576
- amplitude: exports.amplitudeAnalyticsConfigSchema,
577
- fullstory: exports.fullstoryAnalyticsConfigSchema,
578
- heap: exports.heapAnalyticsConfigSchema,
579
- rudderstack: exports.rudderstackAnalyticsConfigSchema,
580
- segment: exports.segmentAnalyticsConfigSchema,
581
- gtm: exports.gtmAnalyticsConfigSchema,
582
- ga: exports.googleAnalyticsConfigSchema,
583
- },
584
- },
585
- userMenu: {
586
- type: 'object',
587
- properties: Object.assign({ items: {
588
- type: 'array',
589
- items: {
590
- type: 'object',
591
- properties: {
592
- label: { type: 'string' },
593
- external: { type: 'boolean' },
594
- link: { type: 'string' },
595
- separatorLine: { type: 'boolean' },
596
- },
597
- additionalProperties: true,
598
- },
599
- default: [],
600
- }, hideLoginButton: { type: 'boolean' } }, hideConfigSchema.properties),
601
- additionalProperties: false,
602
- default: {},
603
- },
604
- versionPicker: {
605
- type: 'object',
606
- properties: {
607
- hide: { type: 'boolean' },
608
- showForUnversioned: {
609
- type: 'boolean',
610
- },
611
- },
612
- },
613
- breadcrumbs: {
614
- type: 'object',
615
- properties: {
616
- hide: { type: 'boolean' },
617
- prefixItems: {
618
- type: 'array',
619
- items: {
620
- type: 'object',
621
- properties: {
622
- label: { type: 'string' },
623
- labelTranslationKey: { type: 'string' },
624
- page: { type: 'string' },
625
- },
626
- additionalProperties: false,
627
- default: {},
628
- },
629
- },
630
- },
631
- additionalProperties: false,
632
- default: {},
633
- },
634
- catalog: catalogsConfigSchema,
635
- scorecard: exports.scorecardConfigSchema,
32
+ analytics: ex_theme_config_schemas_1.analyticsConfigSchema,
33
+ userMenu: ex_theme_config_schemas_1.userMenuConfigSchema,
34
+ versionPicker: ex_theme_config_schemas_1.versionPickerConfigSchema,
35
+ breadcrumbs: ex_theme_config_schemas_1.breadcrumbsConfigSchema,
36
+ catalog: ex_theme_config_schemas_1.catalogsConfigSchema,
37
+ scorecard: ex_theme_config_schemas_1.scorecardConfigSchema,
636
38
  },
637
39
  additionalProperties: true,
638
- default: {},
639
40
  };
640
41
  exports.closedThemeConfigSchema = Object.assign(Object.assign({}, exports.themeConfigSchema), { additionalProperties: false });
42
+ // TODO: remove
641
43
  exports.productThemeOverrideSchema = {
642
44
  type: 'object',
643
45
  properties: {
@@ -652,7 +54,7 @@ exports.productThemeOverrideSchema = {
652
54
  analytics: {
653
55
  type: 'object',
654
56
  properties: {
655
- ga: exports.productGoogleAnalyticsConfigSchema,
57
+ ga: ex_theme_config_schemas_1.productGoogleAnalyticsConfigSchema,
656
58
  },
657
59
  },
658
60
  },
@@ -662,9 +64,11 @@ exports.productThemeOverrideSchema = {
662
64
  exports.productConfigOverrideSchema = {
663
65
  $id: 'product-config-override',
664
66
  type: 'object',
665
- properties: {
666
- theme: exports.productThemeOverrideSchema,
667
- },
67
+ properties: Object.assign(Object.assign({}, exports.productThemeOverrideSchema.properties), {
68
+ /**
69
+ * @deprecated left for backwards compatibility
70
+ */
71
+ theme: exports.productThemeOverrideSchema }),
668
72
  additionalProperties: false,
669
73
  };
670
74
  //# sourceMappingURL=default-theme-config-schema.js.map