@redocly/config 0.15.0 → 0.16.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.
@@ -2484,6 +2484,126 @@ export declare const openapiConfigSchema: {
2484
2484
  readonly reasons: {
2485
2485
  readonly type: "object";
2486
2486
  readonly properties: {
2487
+ readonly like: {
2488
+ readonly type: "object";
2489
+ readonly properties: {
2490
+ readonly hide: {
2491
+ readonly type: "boolean";
2492
+ readonly default: false;
2493
+ };
2494
+ readonly component: {
2495
+ readonly type: "string";
2496
+ readonly enum: readonly ["radio", "checkbox"];
2497
+ readonly default: "checkbox";
2498
+ };
2499
+ readonly label: {
2500
+ readonly type: "string";
2501
+ };
2502
+ readonly items: {
2503
+ readonly type: "array";
2504
+ readonly items: {
2505
+ readonly type: "string";
2506
+ };
2507
+ };
2508
+ };
2509
+ readonly additionalProperties: false;
2510
+ };
2511
+ readonly dislike: {
2512
+ readonly type: "object";
2513
+ readonly properties: {
2514
+ readonly hide: {
2515
+ readonly type: "boolean";
2516
+ readonly default: false;
2517
+ };
2518
+ readonly component: {
2519
+ readonly type: "string";
2520
+ readonly enum: readonly ["radio", "checkbox"];
2521
+ readonly default: "checkbox";
2522
+ };
2523
+ readonly label: {
2524
+ readonly type: "string";
2525
+ };
2526
+ readonly items: {
2527
+ readonly type: "array";
2528
+ readonly items: {
2529
+ readonly type: "string";
2530
+ };
2531
+ };
2532
+ };
2533
+ readonly additionalProperties: false;
2534
+ };
2535
+ readonly satisfied: {
2536
+ readonly type: "object";
2537
+ readonly properties: {
2538
+ readonly hide: {
2539
+ readonly type: "boolean";
2540
+ readonly default: false;
2541
+ };
2542
+ readonly component: {
2543
+ readonly type: "string";
2544
+ readonly enum: readonly ["radio", "checkbox"];
2545
+ readonly default: "checkbox";
2546
+ };
2547
+ readonly label: {
2548
+ readonly type: "string";
2549
+ };
2550
+ readonly items: {
2551
+ readonly type: "array";
2552
+ readonly items: {
2553
+ readonly type: "string";
2554
+ };
2555
+ };
2556
+ };
2557
+ readonly additionalProperties: false;
2558
+ };
2559
+ readonly neutral: {
2560
+ readonly type: "object";
2561
+ readonly properties: {
2562
+ readonly hide: {
2563
+ readonly type: "boolean";
2564
+ readonly default: false;
2565
+ };
2566
+ readonly component: {
2567
+ readonly type: "string";
2568
+ readonly enum: readonly ["radio", "checkbox"];
2569
+ readonly default: "checkbox";
2570
+ };
2571
+ readonly label: {
2572
+ readonly type: "string";
2573
+ };
2574
+ readonly items: {
2575
+ readonly type: "array";
2576
+ readonly items: {
2577
+ readonly type: "string";
2578
+ };
2579
+ };
2580
+ };
2581
+ readonly additionalProperties: false;
2582
+ };
2583
+ readonly dissatisfied: {
2584
+ readonly type: "object";
2585
+ readonly properties: {
2586
+ readonly hide: {
2587
+ readonly type: "boolean";
2588
+ readonly default: false;
2589
+ };
2590
+ readonly component: {
2591
+ readonly type: "string";
2592
+ readonly enum: readonly ["radio", "checkbox"];
2593
+ readonly default: "checkbox";
2594
+ };
2595
+ readonly label: {
2596
+ readonly type: "string";
2597
+ };
2598
+ readonly items: {
2599
+ readonly type: "array";
2600
+ readonly items: {
2601
+ readonly type: "string";
2602
+ };
2603
+ };
2604
+ };
2605
+ readonly additionalProperties: false;
2606
+ };
2487
2607
  readonly hide: {
2488
2608
  readonly type: "boolean";
2489
2609
  readonly default: false;
@@ -1,3 +1,27 @@
1
+ export declare const reasonsSettingsSchema: {
2
+ readonly type: "object";
3
+ readonly properties: {
4
+ readonly hide: {
5
+ readonly type: "boolean";
6
+ readonly default: false;
7
+ };
8
+ readonly component: {
9
+ readonly type: "string";
10
+ readonly enum: readonly ["radio", "checkbox"];
11
+ readonly default: "checkbox";
12
+ };
13
+ readonly label: {
14
+ readonly type: "string";
15
+ };
16
+ readonly items: {
17
+ readonly type: "array";
18
+ readonly items: {
19
+ readonly type: "string";
20
+ };
21
+ };
22
+ };
23
+ readonly additionalProperties: false;
24
+ };
1
25
  export declare const feedbackConfigSchema: {
2
26
  readonly type: "object";
3
27
  readonly properties: {
@@ -43,6 +67,126 @@ export declare const feedbackConfigSchema: {
43
67
  readonly reasons: {
44
68
  readonly type: "object";
45
69
  readonly properties: {
70
+ readonly like: {
71
+ readonly type: "object";
72
+ readonly properties: {
73
+ readonly hide: {
74
+ readonly type: "boolean";
75
+ readonly default: false;
76
+ };
77
+ readonly component: {
78
+ readonly type: "string";
79
+ readonly enum: readonly ["radio", "checkbox"];
80
+ readonly default: "checkbox";
81
+ };
82
+ readonly label: {
83
+ readonly type: "string";
84
+ };
85
+ readonly items: {
86
+ readonly type: "array";
87
+ readonly items: {
88
+ readonly type: "string";
89
+ };
90
+ };
91
+ };
92
+ readonly additionalProperties: false;
93
+ };
94
+ readonly dislike: {
95
+ readonly type: "object";
96
+ readonly properties: {
97
+ readonly hide: {
98
+ readonly type: "boolean";
99
+ readonly default: false;
100
+ };
101
+ readonly component: {
102
+ readonly type: "string";
103
+ readonly enum: readonly ["radio", "checkbox"];
104
+ readonly default: "checkbox";
105
+ };
106
+ readonly label: {
107
+ readonly type: "string";
108
+ };
109
+ readonly items: {
110
+ readonly type: "array";
111
+ readonly items: {
112
+ readonly type: "string";
113
+ };
114
+ };
115
+ };
116
+ readonly additionalProperties: false;
117
+ };
118
+ readonly satisfied: {
119
+ readonly type: "object";
120
+ readonly properties: {
121
+ readonly hide: {
122
+ readonly type: "boolean";
123
+ readonly default: false;
124
+ };
125
+ readonly component: {
126
+ readonly type: "string";
127
+ readonly enum: readonly ["radio", "checkbox"];
128
+ readonly default: "checkbox";
129
+ };
130
+ readonly label: {
131
+ readonly type: "string";
132
+ };
133
+ readonly items: {
134
+ readonly type: "array";
135
+ readonly items: {
136
+ readonly type: "string";
137
+ };
138
+ };
139
+ };
140
+ readonly additionalProperties: false;
141
+ };
142
+ readonly neutral: {
143
+ readonly type: "object";
144
+ readonly properties: {
145
+ readonly hide: {
146
+ readonly type: "boolean";
147
+ readonly default: false;
148
+ };
149
+ readonly component: {
150
+ readonly type: "string";
151
+ readonly enum: readonly ["radio", "checkbox"];
152
+ readonly default: "checkbox";
153
+ };
154
+ readonly label: {
155
+ readonly type: "string";
156
+ };
157
+ readonly items: {
158
+ readonly type: "array";
159
+ readonly items: {
160
+ readonly type: "string";
161
+ };
162
+ };
163
+ };
164
+ readonly additionalProperties: false;
165
+ };
166
+ readonly dissatisfied: {
167
+ readonly type: "object";
168
+ readonly properties: {
169
+ readonly hide: {
170
+ readonly type: "boolean";
171
+ readonly default: false;
172
+ };
173
+ readonly component: {
174
+ readonly type: "string";
175
+ readonly enum: readonly ["radio", "checkbox"];
176
+ readonly default: "checkbox";
177
+ };
178
+ readonly label: {
179
+ readonly type: "string";
180
+ };
181
+ readonly items: {
182
+ readonly type: "array";
183
+ readonly items: {
184
+ readonly type: "string";
185
+ };
186
+ };
187
+ };
188
+ readonly additionalProperties: false;
189
+ };
46
190
  readonly hide: {
47
191
  readonly type: "boolean";
48
192
  readonly default: false;
@@ -1,6 +1,24 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.feedbackConfigSchema = void 0;
3
+ exports.feedbackConfigSchema = exports.reasonsSettingsSchema = void 0;
4
+ const reasonsBaseProperties = {
5
+ hide: {
6
+ type: 'boolean',
7
+ default: false,
8
+ },
9
+ component: {
10
+ type: 'string',
11
+ enum: ['radio', 'checkbox'],
12
+ default: 'checkbox',
13
+ },
14
+ label: { type: 'string' },
15
+ items: { type: 'array', items: { type: 'string' } },
16
+ };
17
+ exports.reasonsSettingsSchema = {
18
+ type: 'object',
19
+ properties: reasonsBaseProperties,
20
+ additionalProperties: false,
21
+ };
4
22
  exports.feedbackConfigSchema = {
5
23
  type: 'object',
6
24
  properties: {
@@ -29,19 +47,7 @@ exports.feedbackConfigSchema = {
29
47
  rightScaleLabel: { type: 'string' },
30
48
  reasons: {
31
49
  type: 'object',
32
- properties: {
33
- hide: {
34
- type: 'boolean',
35
- default: false,
36
- },
37
- component: {
38
- type: 'string',
39
- enum: ['radio', 'checkbox'],
40
- default: 'checkbox',
41
- },
42
- label: { type: 'string' },
43
- items: { type: 'array', items: { type: 'string' } },
44
- },
50
+ properties: Object.assign(Object.assign({}, reasonsBaseProperties), { like: exports.reasonsSettingsSchema, dislike: exports.reasonsSettingsSchema, satisfied: exports.reasonsSettingsSchema, neutral: exports.reasonsSettingsSchema, dissatisfied: exports.reasonsSettingsSchema }),
45
51
  additionalProperties: false,
46
52
  },
47
53
  comment: {
@@ -222,6 +222,126 @@ export declare const graphqlConfigSchema: {
222
222
  readonly reasons: {
223
223
  readonly type: "object";
224
224
  readonly properties: {
225
+ readonly like: {
226
+ readonly type: "object";
227
+ readonly properties: {
228
+ readonly hide: {
229
+ readonly type: "boolean";
230
+ readonly default: false;
231
+ };
232
+ readonly component: {
233
+ readonly type: "string";
234
+ readonly enum: readonly ["radio", "checkbox"];
235
+ readonly default: "checkbox";
236
+ };
237
+ readonly label: {
238
+ readonly type: "string";
239
+ };
240
+ readonly items: {
241
+ readonly type: "array";
242
+ readonly items: {
243
+ readonly type: "string";
244
+ };
245
+ };
246
+ };
247
+ readonly additionalProperties: false;
248
+ };
249
+ readonly dislike: {
250
+ readonly type: "object";
251
+ readonly properties: {
252
+ readonly hide: {
253
+ readonly type: "boolean";
254
+ readonly default: false;
255
+ };
256
+ readonly component: {
257
+ readonly type: "string";
258
+ readonly enum: readonly ["radio", "checkbox"];
259
+ readonly default: "checkbox";
260
+ };
261
+ readonly label: {
262
+ readonly type: "string";
263
+ };
264
+ readonly items: {
265
+ readonly type: "array";
266
+ readonly items: {
267
+ readonly type: "string";
268
+ };
269
+ };
270
+ };
271
+ readonly additionalProperties: false;
272
+ };
273
+ readonly satisfied: {
274
+ readonly type: "object";
275
+ readonly properties: {
276
+ readonly hide: {
277
+ readonly type: "boolean";
278
+ readonly default: false;
279
+ };
280
+ readonly component: {
281
+ readonly type: "string";
282
+ readonly enum: readonly ["radio", "checkbox"];
283
+ readonly default: "checkbox";
284
+ };
285
+ readonly label: {
286
+ readonly type: "string";
287
+ };
288
+ readonly items: {
289
+ readonly type: "array";
290
+ readonly items: {
291
+ readonly type: "string";
292
+ };
293
+ };
294
+ };
295
+ readonly additionalProperties: false;
296
+ };
297
+ readonly neutral: {
298
+ readonly type: "object";
299
+ readonly properties: {
300
+ readonly hide: {
301
+ readonly type: "boolean";
302
+ readonly default: false;
303
+ };
304
+ readonly component: {
305
+ readonly type: "string";
306
+ readonly enum: readonly ["radio", "checkbox"];
307
+ readonly default: "checkbox";
308
+ };
309
+ readonly label: {
310
+ readonly type: "string";
311
+ };
312
+ readonly items: {
313
+ readonly type: "array";
314
+ readonly items: {
315
+ readonly type: "string";
316
+ };
317
+ };
318
+ };
319
+ readonly additionalProperties: false;
320
+ };
321
+ readonly dissatisfied: {
322
+ readonly type: "object";
323
+ readonly properties: {
324
+ readonly hide: {
325
+ readonly type: "boolean";
326
+ readonly default: false;
327
+ };
328
+ readonly component: {
329
+ readonly type: "string";
330
+ readonly enum: readonly ["radio", "checkbox"];
331
+ readonly default: "checkbox";
332
+ };
333
+ readonly label: {
334
+ readonly type: "string";
335
+ };
336
+ readonly items: {
337
+ readonly type: "array";
338
+ readonly items: {
339
+ readonly type: "string";
340
+ };
341
+ };
342
+ };
343
+ readonly additionalProperties: false;
344
+ };
225
345
  readonly hide: {
226
346
  readonly type: "boolean";
227
347
  readonly default: false;
@@ -174,6 +174,8 @@ export interface PageStaticData {
174
174
  }
175
175
  export type UserData = {
176
176
  isAuthenticated: boolean;
177
+ id?: string;
178
+ sub?: string;
177
179
  name: string;
178
180
  email?: string;
179
181
  picture: string;