@redocly/config 0.6.0 → 0.6.2
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/default-theme-config-schema.d.ts +300 -1
- package/lib/default-theme-config-schema.js +2 -1
- package/lib/feedback-config-schema.d.ts +102 -0
- package/lib/feedback-config-schema.js +71 -0
- package/lib/graphql-config-schema.d.ts +303 -0
- package/lib/graphql-config-schema.js +129 -0
- package/lib/graphql-types.d.ts +9 -0
- package/lib/graphql-types.js +3 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -1
- package/lib/redoc-config-schema.js +2 -67
- package/lib/root-config-schema.d.ts +3587 -1837
- package/lib/root-config-schema.js +11 -7
- package/lib/types.d.ts +2 -0
- package/lib-esm/default-theme-config-schema.d.ts +300 -1
- package/lib-esm/default-theme-config-schema.js +2 -1
- package/lib-esm/feedback-config-schema.d.ts +102 -0
- package/lib-esm/feedback-config-schema.js +68 -0
- package/lib-esm/graphql-config-schema.d.ts +303 -0
- package/lib-esm/graphql-config-schema.js +126 -0
- package/lib-esm/graphql-types.d.ts +9 -0
- package/lib-esm/graphql-types.js +2 -0
- package/lib-esm/index.d.ts +1 -1
- package/lib-esm/index.js +1 -1
- package/lib-esm/redoc-config-schema.js +2 -67
- package/lib-esm/root-config-schema.d.ts +3587 -1837
- package/lib-esm/root-config-schema.js +11 -7
- package/lib-esm/types.d.ts +2 -0
- package/package.json +3 -2
- package/CHANGELOG.md +0 -74
- package/README_INTERNAL.md +0 -36
- package/lib/.tsbuildinfo +0 -1
- package/lib/constants.js.map +0 -1
- package/lib/default-theme-config-schema.js.map +0 -1
- package/lib/index.js.map +0 -1
- package/lib/portal-shared-types.js.map +0 -1
- package/lib/redoc-config-schema.js.map +0 -1
- package/lib/redoc-types.js.map +0 -1
- package/lib/remove-property-recursively.js.map +0 -1
- package/lib/reunite-config-schema.js.map +0 -1
- package/lib/root-config-schema.js.map +0 -1
- package/lib/types.js.map +0 -1
- package/lib-esm/.tsbuildinfo +0 -1
- package/lib-esm/constants.js.map +0 -1
- package/lib-esm/default-theme-config-schema.js.map +0 -1
- package/lib-esm/index.js.map +0 -1
- package/lib-esm/portal-shared-types.js.map +0 -1
- package/lib-esm/redoc-config-schema.js.map +0 -1
- package/lib-esm/redoc-types.js.map +0 -1
- package/lib-esm/remove-property-recursively.js.map +0 -1
- package/lib-esm/reunite-config-schema.js.map +0 -1
- package/lib-esm/root-config-schema.js.map +0 -1
- package/lib-esm/types.js.map +0 -1
- package/src/constants.ts +0 -18
- package/src/default-theme-config-schema.ts +0 -757
- package/src/index.ts +0 -14
- package/src/portal-shared-types.ts +0 -330
- package/src/redoc-config-schema.ts +0 -183
- package/src/redoc-types.ts +0 -80
- package/src/remove-property-recursively.ts +0 -39
- package/src/reunite-config-schema.ts +0 -7
- package/src/root-config-schema.ts +0 -404
- package/src/types.ts +0 -86
- package/tsconfig.build.json +0 -12
- package/tsconfig.json +0 -10
- package/tsconfig.lib-esm.json +0 -15
- /package/{LICENSE.md → LICENSE} +0 -0
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
export declare const graphqlConfigSchema: {
|
|
2
|
+
readonly type: "object";
|
|
3
|
+
readonly properties: {
|
|
4
|
+
readonly pagination: {
|
|
5
|
+
readonly type: "string";
|
|
6
|
+
readonly enum: readonly ["none", "section", "item"];
|
|
7
|
+
};
|
|
8
|
+
readonly navigation: {
|
|
9
|
+
readonly type: "object";
|
|
10
|
+
readonly properties: {
|
|
11
|
+
readonly contentPrefix: {
|
|
12
|
+
readonly type: "string";
|
|
13
|
+
};
|
|
14
|
+
readonly menuPrefix: {
|
|
15
|
+
readonly type: "string";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
readonly hidePaginationButtons: {
|
|
20
|
+
readonly type: "boolean";
|
|
21
|
+
};
|
|
22
|
+
readonly menu: {
|
|
23
|
+
readonly type: "object";
|
|
24
|
+
readonly properties: {
|
|
25
|
+
readonly requireExactGroups: {
|
|
26
|
+
readonly type: "boolean";
|
|
27
|
+
};
|
|
28
|
+
readonly groups: {
|
|
29
|
+
readonly type: "array";
|
|
30
|
+
readonly items: {
|
|
31
|
+
readonly type: "object";
|
|
32
|
+
readonly properties: {
|
|
33
|
+
readonly name: {
|
|
34
|
+
readonly type: "string";
|
|
35
|
+
};
|
|
36
|
+
readonly items: {
|
|
37
|
+
readonly type: "object";
|
|
38
|
+
readonly properties: {
|
|
39
|
+
readonly includeByName: {
|
|
40
|
+
readonly type: "array";
|
|
41
|
+
readonly items: {
|
|
42
|
+
readonly type: "string";
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
readonly excludeByName: {
|
|
46
|
+
readonly type: "array";
|
|
47
|
+
readonly items: {
|
|
48
|
+
readonly type: "string";
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
readonly additionalProperties: false;
|
|
53
|
+
};
|
|
54
|
+
readonly queries: {
|
|
55
|
+
readonly type: "object";
|
|
56
|
+
readonly properties: {
|
|
57
|
+
readonly includeByName: {
|
|
58
|
+
readonly type: "array";
|
|
59
|
+
readonly items: {
|
|
60
|
+
readonly type: "string";
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
readonly excludeByName: {
|
|
64
|
+
readonly type: "array";
|
|
65
|
+
readonly items: {
|
|
66
|
+
readonly type: "string";
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
readonly additionalProperties: false;
|
|
71
|
+
};
|
|
72
|
+
readonly mutations: {
|
|
73
|
+
readonly type: "object";
|
|
74
|
+
readonly properties: {
|
|
75
|
+
readonly includeByName: {
|
|
76
|
+
readonly type: "array";
|
|
77
|
+
readonly items: {
|
|
78
|
+
readonly type: "string";
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
readonly excludeByName: {
|
|
82
|
+
readonly type: "array";
|
|
83
|
+
readonly items: {
|
|
84
|
+
readonly type: "string";
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
readonly additionalProperties: false;
|
|
89
|
+
};
|
|
90
|
+
readonly subscriptions: {
|
|
91
|
+
readonly type: "object";
|
|
92
|
+
readonly properties: {
|
|
93
|
+
readonly includeByName: {
|
|
94
|
+
readonly type: "array";
|
|
95
|
+
readonly items: {
|
|
96
|
+
readonly type: "string";
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
readonly excludeByName: {
|
|
100
|
+
readonly type: "array";
|
|
101
|
+
readonly items: {
|
|
102
|
+
readonly type: "string";
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
readonly additionalProperties: false;
|
|
107
|
+
};
|
|
108
|
+
readonly types: {
|
|
109
|
+
readonly type: "object";
|
|
110
|
+
readonly properties: {
|
|
111
|
+
readonly includeByName: {
|
|
112
|
+
readonly type: "array";
|
|
113
|
+
readonly items: {
|
|
114
|
+
readonly type: "string";
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
readonly excludeByName: {
|
|
118
|
+
readonly type: "array";
|
|
119
|
+
readonly items: {
|
|
120
|
+
readonly type: "string";
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
readonly additionalProperties: false;
|
|
125
|
+
};
|
|
126
|
+
readonly directives: {
|
|
127
|
+
readonly type: "object";
|
|
128
|
+
readonly properties: {
|
|
129
|
+
readonly includeByName: {
|
|
130
|
+
readonly type: "array";
|
|
131
|
+
readonly items: {
|
|
132
|
+
readonly type: "string";
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
readonly excludeByName: {
|
|
136
|
+
readonly type: "array";
|
|
137
|
+
readonly items: {
|
|
138
|
+
readonly type: "string";
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
readonly additionalProperties: false;
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
readonly required: readonly ["name"];
|
|
146
|
+
readonly additionalProperties: false;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
readonly otherItemsGroupName: {
|
|
150
|
+
readonly type: "string";
|
|
151
|
+
};
|
|
152
|
+
readonly initialLoadState: {
|
|
153
|
+
readonly type: "string";
|
|
154
|
+
readonly enum: readonly ["all-expanded", "default"];
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
readonly additionalProperties: false;
|
|
158
|
+
};
|
|
159
|
+
readonly sidebar: {
|
|
160
|
+
readonly type: "object";
|
|
161
|
+
readonly properties: {
|
|
162
|
+
readonly hide: {
|
|
163
|
+
readonly type: "boolean";
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
readonly apiLogo: {
|
|
168
|
+
readonly type: "object";
|
|
169
|
+
readonly properties: {
|
|
170
|
+
readonly imageUrl: {
|
|
171
|
+
readonly type: "string";
|
|
172
|
+
};
|
|
173
|
+
readonly href: {
|
|
174
|
+
readonly type: "string";
|
|
175
|
+
};
|
|
176
|
+
readonly altText: {
|
|
177
|
+
readonly type: "string";
|
|
178
|
+
};
|
|
179
|
+
readonly backgroundColor: {
|
|
180
|
+
readonly type: "string";
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
readonly jsonSamplesExpandLevel: {
|
|
185
|
+
readonly type: "number";
|
|
186
|
+
};
|
|
187
|
+
readonly sampleMaxInlineArgs: {
|
|
188
|
+
readonly type: "number";
|
|
189
|
+
};
|
|
190
|
+
readonly licenseKey: {
|
|
191
|
+
readonly type: "string";
|
|
192
|
+
};
|
|
193
|
+
readonly fieldExpandLevel: {
|
|
194
|
+
readonly type: "number";
|
|
195
|
+
};
|
|
196
|
+
readonly baseUrlPath: {
|
|
197
|
+
readonly type: "string";
|
|
198
|
+
};
|
|
199
|
+
readonly feedback: {
|
|
200
|
+
readonly type: "object";
|
|
201
|
+
readonly properties: {
|
|
202
|
+
readonly hide: {
|
|
203
|
+
readonly type: "boolean";
|
|
204
|
+
readonly default: false;
|
|
205
|
+
};
|
|
206
|
+
readonly type: {
|
|
207
|
+
readonly type: "string";
|
|
208
|
+
readonly enum: readonly ["rating", "sentiment", "comment", "reasons", "mood", "scale"];
|
|
209
|
+
readonly default: "sentiment";
|
|
210
|
+
};
|
|
211
|
+
readonly settings: {
|
|
212
|
+
readonly type: "object";
|
|
213
|
+
readonly properties: {
|
|
214
|
+
readonly label: {
|
|
215
|
+
readonly type: "string";
|
|
216
|
+
};
|
|
217
|
+
readonly submitText: {
|
|
218
|
+
readonly type: "string";
|
|
219
|
+
};
|
|
220
|
+
readonly buttonText: {
|
|
221
|
+
readonly type: "string";
|
|
222
|
+
};
|
|
223
|
+
readonly component: {
|
|
224
|
+
readonly type: "string";
|
|
225
|
+
readonly enum: readonly ["radio", "checkbox"];
|
|
226
|
+
readonly default: "checkbox";
|
|
227
|
+
};
|
|
228
|
+
readonly items: {
|
|
229
|
+
readonly type: "array";
|
|
230
|
+
readonly items: {
|
|
231
|
+
readonly type: "string";
|
|
232
|
+
};
|
|
233
|
+
readonly minItems: 1;
|
|
234
|
+
};
|
|
235
|
+
readonly leftScaleLabel: {
|
|
236
|
+
readonly type: "string";
|
|
237
|
+
};
|
|
238
|
+
readonly rightScaleLabel: {
|
|
239
|
+
readonly type: "string";
|
|
240
|
+
};
|
|
241
|
+
readonly reasons: {
|
|
242
|
+
readonly type: "object";
|
|
243
|
+
readonly properties: {
|
|
244
|
+
readonly hide: {
|
|
245
|
+
readonly type: "boolean";
|
|
246
|
+
readonly default: false;
|
|
247
|
+
};
|
|
248
|
+
readonly component: {
|
|
249
|
+
readonly type: "string";
|
|
250
|
+
readonly enum: readonly ["radio", "checkbox"];
|
|
251
|
+
readonly default: "checkbox";
|
|
252
|
+
};
|
|
253
|
+
readonly label: {
|
|
254
|
+
readonly type: "string";
|
|
255
|
+
};
|
|
256
|
+
readonly items: {
|
|
257
|
+
readonly type: "array";
|
|
258
|
+
readonly items: {
|
|
259
|
+
readonly type: "string";
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
readonly additionalProperties: false;
|
|
264
|
+
};
|
|
265
|
+
readonly comment: {
|
|
266
|
+
readonly type: "object";
|
|
267
|
+
readonly properties: {
|
|
268
|
+
readonly hide: {
|
|
269
|
+
readonly type: "boolean";
|
|
270
|
+
readonly default: false;
|
|
271
|
+
};
|
|
272
|
+
readonly label: {
|
|
273
|
+
readonly type: "string";
|
|
274
|
+
};
|
|
275
|
+
readonly likeLabel: {
|
|
276
|
+
readonly type: "string";
|
|
277
|
+
};
|
|
278
|
+
readonly dislikeLabel: {
|
|
279
|
+
readonly type: "string";
|
|
280
|
+
};
|
|
281
|
+
readonly satisfiedLabel: {
|
|
282
|
+
readonly type: "string";
|
|
283
|
+
};
|
|
284
|
+
readonly neutralLabel: {
|
|
285
|
+
readonly type: "string";
|
|
286
|
+
};
|
|
287
|
+
readonly dissatisfiedLabel: {
|
|
288
|
+
readonly type: "string";
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
readonly additionalProperties: false;
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
readonly additionalProperties: false;
|
|
295
|
+
};
|
|
296
|
+
};
|
|
297
|
+
readonly additionalProperties: false;
|
|
298
|
+
readonly default: null;
|
|
299
|
+
readonly nullable: true;
|
|
300
|
+
};
|
|
301
|
+
};
|
|
302
|
+
readonly additionalProperties: false;
|
|
303
|
+
};
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { feedbackConfigSchema } from './feedback-config-schema';
|
|
2
|
+
const typeGroupConfig = {
|
|
3
|
+
type: 'object',
|
|
4
|
+
properties: {
|
|
5
|
+
includeByName: {
|
|
6
|
+
type: 'array',
|
|
7
|
+
items: {
|
|
8
|
+
type: 'string',
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
excludeByName: {
|
|
12
|
+
type: 'array',
|
|
13
|
+
items: {
|
|
14
|
+
type: 'string',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
additionalProperties: false,
|
|
19
|
+
};
|
|
20
|
+
const menuGroupConfig = {
|
|
21
|
+
type: 'object',
|
|
22
|
+
properties: {
|
|
23
|
+
name: {
|
|
24
|
+
type: 'string',
|
|
25
|
+
},
|
|
26
|
+
items: typeGroupConfig,
|
|
27
|
+
queries: typeGroupConfig,
|
|
28
|
+
mutations: typeGroupConfig,
|
|
29
|
+
subscriptions: typeGroupConfig,
|
|
30
|
+
types: typeGroupConfig,
|
|
31
|
+
directives: typeGroupConfig,
|
|
32
|
+
},
|
|
33
|
+
required: ['name'],
|
|
34
|
+
additionalProperties: false,
|
|
35
|
+
};
|
|
36
|
+
const menuGroupingConfig = {
|
|
37
|
+
type: 'object',
|
|
38
|
+
properties: {
|
|
39
|
+
requireExactGroups: {
|
|
40
|
+
type: 'boolean',
|
|
41
|
+
},
|
|
42
|
+
groups: {
|
|
43
|
+
type: 'array',
|
|
44
|
+
items: menuGroupConfig,
|
|
45
|
+
},
|
|
46
|
+
otherItemsGroupName: {
|
|
47
|
+
type: 'string',
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
required: ['requireExactGroups', 'groups', 'otherItemsGroupName'],
|
|
51
|
+
additionalProperties: false,
|
|
52
|
+
};
|
|
53
|
+
export const graphqlConfigSchema = {
|
|
54
|
+
type: 'object',
|
|
55
|
+
properties: {
|
|
56
|
+
pagination: {
|
|
57
|
+
type: 'string',
|
|
58
|
+
enum: ['none', 'section', 'item'],
|
|
59
|
+
},
|
|
60
|
+
navigation: {
|
|
61
|
+
type: 'object',
|
|
62
|
+
properties: {
|
|
63
|
+
contentPrefix: {
|
|
64
|
+
type: 'string',
|
|
65
|
+
},
|
|
66
|
+
menuPrefix: {
|
|
67
|
+
type: 'string',
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
hidePaginationButtons: {
|
|
72
|
+
type: 'boolean',
|
|
73
|
+
},
|
|
74
|
+
menu: {
|
|
75
|
+
type: 'object',
|
|
76
|
+
properties: Object.assign({ initialLoadState: {
|
|
77
|
+
type: 'string',
|
|
78
|
+
enum: ['all-expanded', 'default'],
|
|
79
|
+
} }, menuGroupingConfig.properties),
|
|
80
|
+
additionalProperties: false,
|
|
81
|
+
},
|
|
82
|
+
sidebar: {
|
|
83
|
+
type: 'object',
|
|
84
|
+
properties: {
|
|
85
|
+
hide: {
|
|
86
|
+
type: 'boolean',
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
apiLogo: {
|
|
91
|
+
type: 'object',
|
|
92
|
+
properties: {
|
|
93
|
+
imageUrl: {
|
|
94
|
+
type: 'string',
|
|
95
|
+
},
|
|
96
|
+
href: {
|
|
97
|
+
type: 'string',
|
|
98
|
+
},
|
|
99
|
+
altText: {
|
|
100
|
+
type: 'string',
|
|
101
|
+
},
|
|
102
|
+
backgroundColor: {
|
|
103
|
+
type: 'string',
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
jsonSamplesExpandLevel: {
|
|
108
|
+
type: 'number',
|
|
109
|
+
},
|
|
110
|
+
sampleMaxInlineArgs: {
|
|
111
|
+
type: 'number',
|
|
112
|
+
},
|
|
113
|
+
licenseKey: {
|
|
114
|
+
type: 'string',
|
|
115
|
+
},
|
|
116
|
+
fieldExpandLevel: {
|
|
117
|
+
type: 'number',
|
|
118
|
+
},
|
|
119
|
+
baseUrlPath: {
|
|
120
|
+
type: 'string',
|
|
121
|
+
},
|
|
122
|
+
feedback: feedbackConfigSchema,
|
|
123
|
+
},
|
|
124
|
+
additionalProperties: false,
|
|
125
|
+
};
|
|
126
|
+
//# sourceMappingURL=graphql-config-schema.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { FromSchema } from 'json-schema-to-ts';
|
|
2
|
+
import type { Location } from 'react-router-dom';
|
|
3
|
+
import type { graphqlConfigSchema } from './graphql-config-schema';
|
|
4
|
+
export type GraphQLConfigTypes = FromSchema<typeof graphqlConfigSchema> & {
|
|
5
|
+
markdown?: {
|
|
6
|
+
parser: (md: string) => string;
|
|
7
|
+
};
|
|
8
|
+
onLocationChange?: (location: Partial<Location>) => void;
|
|
9
|
+
};
|
package/lib-esm/index.d.ts
CHANGED
|
@@ -2,4 +2,4 @@ export { rbacConfigSchema, rootRedoclyConfigSchema } from './root-config-schema'
|
|
|
2
2
|
export { productThemeOverrideSchema, productConfigOverrideSchema, } from './default-theme-config-schema';
|
|
3
3
|
export * from './types';
|
|
4
4
|
export * from './portal-shared-types';
|
|
5
|
-
export { ApigeeDevOnboardingIntegrationAuthType, AuthProviderType, LayoutVariant, REDOCLY_TEAMS_RBAC, REDOCLY_ROUTE_RBAC, } from './constants';
|
|
5
|
+
export { ApigeeDevOnboardingIntegrationAuthType, AuthProviderType, DEFAULT_TEAM_CLAIM_NAME, LayoutVariant, REDOCLY_TEAMS_RBAC, REDOCLY_ROUTE_RBAC, } from './constants';
|
package/lib-esm/index.js
CHANGED
|
@@ -2,5 +2,5 @@ export { rbacConfigSchema, rootRedoclyConfigSchema } from './root-config-schema'
|
|
|
2
2
|
export { productThemeOverrideSchema, productConfigOverrideSchema, } from './default-theme-config-schema';
|
|
3
3
|
export * from './types';
|
|
4
4
|
export * from './portal-shared-types';
|
|
5
|
-
export { ApigeeDevOnboardingIntegrationAuthType, AuthProviderType, LayoutVariant, REDOCLY_TEAMS_RBAC, REDOCLY_ROUTE_RBAC, } from './constants';
|
|
5
|
+
export { ApigeeDevOnboardingIntegrationAuthType, AuthProviderType, DEFAULT_TEAM_CLAIM_NAME, LayoutVariant, REDOCLY_TEAMS_RBAC, REDOCLY_ROUTE_RBAC, } from './constants';
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { feedbackConfigSchema } from './feedback-config-schema';
|
|
1
2
|
const codeSamplesConfigSchema = {
|
|
2
3
|
type: 'object',
|
|
3
4
|
properties: {
|
|
@@ -69,73 +70,7 @@ export const redocConfigSchema = {
|
|
|
69
70
|
hideLoading: { type: 'boolean' },
|
|
70
71
|
disableRouter: { type: 'boolean' },
|
|
71
72
|
hideSidebar: { type: 'boolean' },
|
|
72
|
-
feedback:
|
|
73
|
-
type: 'object',
|
|
74
|
-
properties: {
|
|
75
|
-
hide: {
|
|
76
|
-
type: 'boolean',
|
|
77
|
-
default: false,
|
|
78
|
-
},
|
|
79
|
-
type: {
|
|
80
|
-
type: 'string',
|
|
81
|
-
enum: ['rating', 'sentiment', 'comment', 'reasons', 'mood', 'scale'],
|
|
82
|
-
default: 'sentiment',
|
|
83
|
-
},
|
|
84
|
-
settings: {
|
|
85
|
-
type: 'object',
|
|
86
|
-
properties: {
|
|
87
|
-
label: { type: 'string' },
|
|
88
|
-
submitText: { type: 'string' },
|
|
89
|
-
buttonText: { type: 'string' },
|
|
90
|
-
component: {
|
|
91
|
-
type: 'string',
|
|
92
|
-
enum: ['radio', 'checkbox'],
|
|
93
|
-
default: 'checkbox',
|
|
94
|
-
},
|
|
95
|
-
items: { type: 'array', items: { type: 'string' }, minItems: 1 },
|
|
96
|
-
leftScaleLabel: { type: 'string' },
|
|
97
|
-
rightScaleLabel: { type: 'string' },
|
|
98
|
-
reasons: {
|
|
99
|
-
type: 'object',
|
|
100
|
-
properties: {
|
|
101
|
-
hide: {
|
|
102
|
-
type: 'boolean',
|
|
103
|
-
default: false,
|
|
104
|
-
},
|
|
105
|
-
component: {
|
|
106
|
-
type: 'string',
|
|
107
|
-
enum: ['radio', 'checkbox'],
|
|
108
|
-
default: 'checkbox',
|
|
109
|
-
},
|
|
110
|
-
label: { type: 'string' },
|
|
111
|
-
items: { type: 'array', items: { type: 'string' } },
|
|
112
|
-
},
|
|
113
|
-
additionalProperties: false,
|
|
114
|
-
},
|
|
115
|
-
comment: {
|
|
116
|
-
type: 'object',
|
|
117
|
-
properties: {
|
|
118
|
-
hide: {
|
|
119
|
-
type: 'boolean',
|
|
120
|
-
default: false,
|
|
121
|
-
},
|
|
122
|
-
label: { type: 'string' },
|
|
123
|
-
likeLabel: { type: 'string' },
|
|
124
|
-
dislikeLabel: { type: 'string' },
|
|
125
|
-
satisfiedLabel: { type: 'string' },
|
|
126
|
-
neutralLabel: { type: 'string' },
|
|
127
|
-
dissatisfiedLabel: { type: 'string' },
|
|
128
|
-
},
|
|
129
|
-
additionalProperties: false,
|
|
130
|
-
},
|
|
131
|
-
},
|
|
132
|
-
additionalProperties: false,
|
|
133
|
-
},
|
|
134
|
-
},
|
|
135
|
-
additionalProperties: false,
|
|
136
|
-
default: null,
|
|
137
|
-
nullable: true,
|
|
138
|
-
},
|
|
73
|
+
feedback: feedbackConfigSchema,
|
|
139
74
|
hideReplay: { type: 'boolean' },
|
|
140
75
|
oAuth2RedirectURI: { type: 'string', nullable: true },
|
|
141
76
|
corsProxyUrl: { type: 'string' },
|