@spotify/backstage-plugin-pulse-common 0.7.0 → 0.9.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.
- package/CHANGELOG.md +25 -0
- package/dist/index.cjs.js +15 -15
- package/dist/index.d.ts +160 -26
- package/dist/index.esm.js +15 -15
- package/package.json +5 -4
- package/src/templates/schema/survey-template-schema.json +19 -36
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
},
|
|
80
80
|
"macros": {
|
|
81
81
|
"type": "object",
|
|
82
|
-
"description": "Expression shortcuts. Macros are referred to elsewhere in the survey using the ${
|
|
82
|
+
"description": "Expression shortcuts. Macros are referred to elsewhere in the survey using the ${m:<name>} construct (similar to parameters) and will get lazily in-place replaced. Macros can be recursive and contain references to parameters or answers in the survey.",
|
|
83
83
|
"additionalProperties": {
|
|
84
84
|
"type": "string"
|
|
85
85
|
}
|
|
@@ -165,10 +165,6 @@
|
|
|
165
165
|
"type": "string",
|
|
166
166
|
"description": "The question description, in markdown"
|
|
167
167
|
},
|
|
168
|
-
"text_html": {
|
|
169
|
-
"type": "string",
|
|
170
|
-
"description": "The question description, in HTML"
|
|
171
|
-
},
|
|
172
168
|
"type": {
|
|
173
169
|
"type": "string",
|
|
174
170
|
"enum": [
|
|
@@ -239,7 +235,7 @@
|
|
|
239
235
|
},
|
|
240
236
|
"id": {
|
|
241
237
|
"type": "string",
|
|
242
|
-
"description": "The id of the group.
|
|
238
|
+
"description": "The id of the group."
|
|
243
239
|
},
|
|
244
240
|
"display": {
|
|
245
241
|
"type": "string",
|
|
@@ -253,7 +249,7 @@
|
|
|
253
249
|
"$ref": "#/$defs/randomization"
|
|
254
250
|
}
|
|
255
251
|
},
|
|
256
|
-
"required": ["statements", "display"],
|
|
252
|
+
"required": ["statements", "id", "display"],
|
|
257
253
|
"additionalProperties": false
|
|
258
254
|
}
|
|
259
255
|
},
|
|
@@ -281,7 +277,7 @@
|
|
|
281
277
|
},
|
|
282
278
|
"id": {
|
|
283
279
|
"type": "string",
|
|
284
|
-
"description": "The id of the group.
|
|
280
|
+
"description": "The id of the group."
|
|
285
281
|
},
|
|
286
282
|
"display": {
|
|
287
283
|
"type": "string",
|
|
@@ -295,7 +291,7 @@
|
|
|
295
291
|
"$ref": "#/$defs/randomization"
|
|
296
292
|
}
|
|
297
293
|
},
|
|
298
|
-
"required": ["choices", "display"],
|
|
294
|
+
"required": ["choices", "id", "display"],
|
|
299
295
|
"additionalProperties": false
|
|
300
296
|
}
|
|
301
297
|
},
|
|
@@ -304,35 +300,22 @@
|
|
|
304
300
|
}
|
|
305
301
|
},
|
|
306
302
|
"additionalProperties": false,
|
|
307
|
-
"
|
|
303
|
+
"required": ["text"],
|
|
304
|
+
"oneOf": [
|
|
308
305
|
{
|
|
309
|
-
"
|
|
310
|
-
{
|
|
311
|
-
"required": ["text"]
|
|
312
|
-
},
|
|
313
|
-
{
|
|
314
|
-
"required": ["text_html"]
|
|
315
|
-
}
|
|
316
|
-
]
|
|
306
|
+
"$ref": "#/$defs/question-mc-horizontal"
|
|
317
307
|
},
|
|
318
308
|
{
|
|
319
|
-
"
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
{
|
|
330
|
-
"$ref": "#/$defs/question-text"
|
|
331
|
-
},
|
|
332
|
-
{
|
|
333
|
-
"$ref": "#/$defs/question-description"
|
|
334
|
-
}
|
|
335
|
-
]
|
|
309
|
+
"$ref": "#/$defs/question-mc-vertical"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"$ref": "#/$defs/question-matrix"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"$ref": "#/$defs/question-text"
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"$ref": "#/$defs/question-description"
|
|
336
319
|
}
|
|
337
320
|
]
|
|
338
321
|
},
|
|
@@ -574,7 +557,7 @@
|
|
|
574
557
|
"type": "string",
|
|
575
558
|
"description": "A boolean expression determining if the choice should be displayed"
|
|
576
559
|
},
|
|
577
|
-
"
|
|
560
|
+
"text_input": {
|
|
578
561
|
"type": "string",
|
|
579
562
|
"enum": ["no", "optional", "forced"],
|
|
580
563
|
"description": "If a textbox should appear next to the choice, and if it should be mandatory to fill it in if the choice is selected"
|