@pie-element/passage 2.15.1-next.12 → 2.15.1-next.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.
- package/controller/lib/index.js +8 -54
- package/controller/lib/index.js.map +1 -1
- package/docs/pie-schema.json +1 -377
- package/docs/pie-schema.json.md +1 -279
- package/module/controller.js +2296 -253
- package/module/demo.js +5 -2
- package/package.json +2 -2
- package/configure/lib/defaults.js +0 -139
- package/configure/lib/defaults.js.map +0 -1
- package/configure/lib/design.js +0 -311
- package/configure/lib/design.js.map +0 -1
- package/configure/lib/index.js +0 -138
- package/configure/lib/index.js.map +0 -1
- package/configure/package.json +0 -19
- package/controller/lib/defaults.js +0 -22
- package/controller/lib/defaults.js.map +0 -1
- package/docs/config-schema.json +0 -644
- package/docs/config-schema.json.md +0 -477
- package/module/configure.js +0 -5995
package/controller/lib/index.js
CHANGED
|
@@ -5,73 +5,43 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.createDefaultModel = createDefaultModel;
|
|
9
8
|
exports.model = model;
|
|
10
|
-
exports.validate = exports.normalize = void 0;
|
|
11
9
|
|
|
12
10
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
13
11
|
|
|
14
12
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
15
13
|
|
|
16
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
17
|
-
|
|
18
14
|
var _cloneDeep = _interopRequireDefault(require("lodash/cloneDeep"));
|
|
19
15
|
|
|
20
|
-
var _defaults = _interopRequireDefault(require("./defaults"));
|
|
21
|
-
|
|
22
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
23
|
-
|
|
24
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
25
|
-
|
|
26
|
-
var getContent = function getContent(html) {
|
|
27
|
-
return (html || '').replace(/(<(?!img|iframe)([^>]+)>)/gi, '');
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
function createDefaultModel() {
|
|
31
|
-
var model = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
32
|
-
return new Promise(function (resolve) {
|
|
33
|
-
resolve(_objectSpread(_objectSpread({}, _defaults["default"]), model));
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
var normalize = function normalize(question) {
|
|
38
|
-
return _objectSpread(_objectSpread({}, _defaults["default"]), question);
|
|
39
|
-
};
|
|
40
16
|
/**
|
|
41
17
|
*
|
|
42
18
|
* @param {*} question
|
|
43
19
|
* @param {*} session
|
|
44
20
|
* @param {*} env
|
|
45
21
|
*/
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
exports.normalize = normalize;
|
|
49
|
-
|
|
50
22
|
function model(_x, _x2, _x3) {
|
|
51
23
|
return _model.apply(this, arguments);
|
|
52
24
|
}
|
|
53
25
|
|
|
54
26
|
function _model() {
|
|
55
27
|
_model = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(question, session, env) {
|
|
56
|
-
var _ref, role, mode,
|
|
28
|
+
var _ref, role, mode, response;
|
|
57
29
|
|
|
58
30
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
59
31
|
while (1) {
|
|
60
32
|
switch (_context.prev = _context.next) {
|
|
61
33
|
case 0:
|
|
62
34
|
_ref = env || {}, role = _ref.role, mode = _ref.mode;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
teacherInstructions: null
|
|
66
|
-
});
|
|
35
|
+
response = (0, _cloneDeep["default"])(question);
|
|
36
|
+
response.showTeacherInstructions = role === 'instructor' && (mode === 'view' || mode === 'evaluate'); // if we don't show the teacher instructions don't pass them on
|
|
67
37
|
|
|
68
|
-
if (
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
38
|
+
if (!response.showTeacherInstructions) {
|
|
39
|
+
response.passages.forEach(function (passage) {
|
|
40
|
+
delete passage.teacherInstructions;
|
|
41
|
+
});
|
|
72
42
|
}
|
|
73
43
|
|
|
74
|
-
return _context.abrupt("return",
|
|
44
|
+
return _context.abrupt("return", response);
|
|
75
45
|
|
|
76
46
|
case 5:
|
|
77
47
|
case "end":
|
|
@@ -82,20 +52,4 @@ function _model() {
|
|
|
82
52
|
}));
|
|
83
53
|
return _model.apply(this, arguments);
|
|
84
54
|
}
|
|
85
|
-
|
|
86
|
-
var validate = function validate() {
|
|
87
|
-
var model = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
88
|
-
var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
89
|
-
var errors = {};
|
|
90
|
-
['teacherInstructions', 'title', 'subtitle', 'author', 'text'].forEach(function (field) {
|
|
91
|
-
var _config$field;
|
|
92
|
-
|
|
93
|
-
if ((_config$field = config[field]) !== null && _config$field !== void 0 && _config$field.required && !getContent(model[field])) {
|
|
94
|
-
errors[field] = 'This field is required.';
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
return errors;
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
exports.validate = validate;
|
|
101
55
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.js"],"names":["
|
|
1
|
+
{"version":3,"sources":["../src/index.js"],"names":["model","question","session","env","role","mode","response","showTeacherInstructions","passages","forEach","passage","teacherInstructions"],"mappings":";;;;;;;;;;;;;AAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;SACsBA,K;;;;;yFAAf,iBAAqBC,QAArB,EAA+BC,OAA/B,EAAwCC,GAAxC;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA,mBACkBA,GAAG,IAAI,EADzB,EACGC,IADH,QACGA,IADH,EACSC,IADT,QACSA,IADT;AAECC,YAAAA,QAFD,GAEY,2BAAUL,QAAV,CAFZ;AAILK,YAAAA,QAAQ,CAACC,uBAAT,GAAmCH,IAAI,KAAK,YAAT,KAA0BC,IAAI,KAAK,MAAT,IAAmBA,IAAI,KAAK,UAAtD,CAAnC,CAJK,CAML;;AACA,gBAAI,CAACC,QAAQ,CAACC,uBAAd,EAAuC;AACrCD,cAAAA,QAAQ,CAACE,QAAT,CAAkBC,OAAlB,CAA0B,UAACC,OAAD,EAAa;AACrC,uBAAOA,OAAO,CAACC,mBAAf;AACD,eAFD;AAGD;;AAXI,6CAaEL,QAbF;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,G","sourcesContent":["import cloneDeep from 'lodash/cloneDeep';\n\n/**\n *\n * @param {*} question\n * @param {*} session\n * @param {*} env\n */\nexport async function model(question, session, env) {\n const { role, mode } = env || {};\n const response = cloneDeep(question);\n\n response.showTeacherInstructions = role === 'instructor' && (mode === 'view' || mode === 'evaluate');\n\n // if we don't show the teacher instructions don't pass them on\n if (!response.showTeacherInstructions) {\n response.passages.forEach((passage) => {\n delete passage.teacherInstructions;\n });\n }\n\n return response;\n}\n"],"file":"index.js"}
|
package/docs/pie-schema.json
CHANGED
|
@@ -14,25 +14,10 @@
|
|
|
14
14
|
"type": "string",
|
|
15
15
|
"title": "title"
|
|
16
16
|
},
|
|
17
|
-
"subtitle": {
|
|
18
|
-
"description": "The subtitle of the passage",
|
|
19
|
-
"type": "string",
|
|
20
|
-
"title": "subtitle"
|
|
21
|
-
},
|
|
22
|
-
"author": {
|
|
23
|
-
"description": "The author of the passage",
|
|
24
|
-
"type": "string",
|
|
25
|
-
"title": "author"
|
|
26
|
-
},
|
|
27
17
|
"text": {
|
|
28
18
|
"description": "The content of the passage",
|
|
29
19
|
"type": "string",
|
|
30
20
|
"title": "text"
|
|
31
|
-
},
|
|
32
|
-
"teacherInstructions": {
|
|
33
|
-
"description": "Indicates teacher instructions",
|
|
34
|
-
"type": "string",
|
|
35
|
-
"title": "teacherInstructions"
|
|
36
21
|
}
|
|
37
22
|
},
|
|
38
23
|
"required": [
|
|
@@ -42,31 +27,6 @@
|
|
|
42
27
|
},
|
|
43
28
|
"title": "passages"
|
|
44
29
|
},
|
|
45
|
-
"teacherInstructionsEnabled": {
|
|
46
|
-
"description": "Indicates if Teacher Instructions are enabled",
|
|
47
|
-
"type": "boolean",
|
|
48
|
-
"title": "teacherInstructionsEnabled"
|
|
49
|
-
},
|
|
50
|
-
"titleEnabled": {
|
|
51
|
-
"description": "Indicates if title is enabled",
|
|
52
|
-
"type": "boolean",
|
|
53
|
-
"title": "titleEnabled"
|
|
54
|
-
},
|
|
55
|
-
"subtitleEnabled": {
|
|
56
|
-
"description": "Indicates if subtitle is enabled",
|
|
57
|
-
"type": "boolean",
|
|
58
|
-
"title": "subtitleEnabled"
|
|
59
|
-
},
|
|
60
|
-
"textEnabled": {
|
|
61
|
-
"description": "Indicates if text is enabled",
|
|
62
|
-
"type": "boolean",
|
|
63
|
-
"title": "textEnabled"
|
|
64
|
-
},
|
|
65
|
-
"authorEnabled": {
|
|
66
|
-
"description": "Indicates if author is enabled",
|
|
67
|
-
"type": "boolean",
|
|
68
|
-
"title": "authorEnabled"
|
|
69
|
-
},
|
|
70
30
|
"id": {
|
|
71
31
|
"description": "Identifier to identify the Pie Element in html markup, Must be unique within a pie item config.",
|
|
72
32
|
"type": "string",
|
|
@@ -79,332 +39,11 @@
|
|
|
79
39
|
}
|
|
80
40
|
},
|
|
81
41
|
"required": [
|
|
82
|
-
"authorEnabled",
|
|
83
42
|
"element",
|
|
84
43
|
"id",
|
|
85
|
-
"passages"
|
|
86
|
-
"subtitleEnabled",
|
|
87
|
-
"teacherInstructionsEnabled",
|
|
88
|
-
"textEnabled",
|
|
89
|
-
"titleEnabled"
|
|
44
|
+
"passages"
|
|
90
45
|
],
|
|
91
46
|
"definitions": {
|
|
92
|
-
"EditableHtmlPluginConfigureRequired": {
|
|
93
|
-
"title": "EditableHtmlPluginConfigureRequired",
|
|
94
|
-
"type": "object",
|
|
95
|
-
"properties": {
|
|
96
|
-
"inputConfiguration": {
|
|
97
|
-
"title": "EditableHtmlConfigureProp",
|
|
98
|
-
"type": "object",
|
|
99
|
-
"properties": {
|
|
100
|
-
"math": {
|
|
101
|
-
"title": "EditableHtmlButtonConfigure",
|
|
102
|
-
"type": "object",
|
|
103
|
-
"properties": {
|
|
104
|
-
"disabled": {
|
|
105
|
-
"description": "Indicates if the plugin is disabled or not",
|
|
106
|
-
"type": "boolean",
|
|
107
|
-
"title": "disabled"
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
|
-
"audio": {
|
|
112
|
-
"title": "EditableHtmlButtonConfigure",
|
|
113
|
-
"type": "object",
|
|
114
|
-
"properties": {
|
|
115
|
-
"disabled": {
|
|
116
|
-
"description": "Indicates if the plugin is disabled or not",
|
|
117
|
-
"type": "boolean",
|
|
118
|
-
"title": "disabled"
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
"video": {
|
|
123
|
-
"title": "EditableHtmlButtonConfigure",
|
|
124
|
-
"type": "object",
|
|
125
|
-
"properties": {
|
|
126
|
-
"disabled": {
|
|
127
|
-
"description": "Indicates if the plugin is disabled or not",
|
|
128
|
-
"type": "boolean",
|
|
129
|
-
"title": "disabled"
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
},
|
|
133
|
-
"image": {
|
|
134
|
-
"title": "EditableHtmlButtonConfigure",
|
|
135
|
-
"type": "object",
|
|
136
|
-
"properties": {
|
|
137
|
-
"disabled": {
|
|
138
|
-
"description": "Indicates if the plugin is disabled or not",
|
|
139
|
-
"type": "boolean",
|
|
140
|
-
"title": "disabled"
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
},
|
|
144
|
-
"customPlugins": {
|
|
145
|
-
"description": "An array of objects that determine custom plugins.\nA custom plugin is an object which determines how the button will look like (icon) and the event name that will be triggered when button gets pressed (event).\nExample can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.",
|
|
146
|
-
"type": "array",
|
|
147
|
-
"items": {
|
|
148
|
-
"title": "CustomPlugin",
|
|
149
|
-
"type": "object",
|
|
150
|
-
"properties": {
|
|
151
|
-
"event": {
|
|
152
|
-
"description": "The name of the custom event. It needs to be valid (only letters, numbers and \"_\" can be used).\nPIE will emit the event prefixed with \"PIE-\".\nEg: event = 'client_custom_event_A' => the emitted event will be \"PIE-client_custom_event_A\"",
|
|
153
|
-
"type": "string",
|
|
154
|
-
"title": "event"
|
|
155
|
-
},
|
|
156
|
-
"iconAlt": {
|
|
157
|
-
"description": "The alt for the custom button icon",
|
|
158
|
-
"type": "string",
|
|
159
|
-
"title": "iconAlt"
|
|
160
|
-
},
|
|
161
|
-
"iconType": {
|
|
162
|
-
"description": "The icon type.\nCurrently, only \"SVG\" is supported.",
|
|
163
|
-
"type": "string",
|
|
164
|
-
"title": "iconType"
|
|
165
|
-
},
|
|
166
|
-
"icon": {
|
|
167
|
-
"description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
|
|
168
|
-
"type": "string",
|
|
169
|
-
"title": "icon"
|
|
170
|
-
}
|
|
171
|
-
},
|
|
172
|
-
"required": [
|
|
173
|
-
"event",
|
|
174
|
-
"icon",
|
|
175
|
-
"iconAlt",
|
|
176
|
-
"iconType"
|
|
177
|
-
]
|
|
178
|
-
},
|
|
179
|
-
"title": "customPlugins"
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
},
|
|
183
|
-
"required": {
|
|
184
|
-
"description": "Indicates if the item is required and the value cannot be empty",
|
|
185
|
-
"type": "boolean",
|
|
186
|
-
"title": "required"
|
|
187
|
-
},
|
|
188
|
-
"settings": {
|
|
189
|
-
"description": "Indicates if the item has to be displayed in the Settings Panel",
|
|
190
|
-
"type": "boolean",
|
|
191
|
-
"title": "settings"
|
|
192
|
-
},
|
|
193
|
-
"label": {
|
|
194
|
-
"description": "Indicates the label for the item that has to be displayed in the Settings Panel",
|
|
195
|
-
"type": "string",
|
|
196
|
-
"title": "label"
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
},
|
|
200
|
-
"EditableHtmlConfigureProp": {
|
|
201
|
-
"title": "EditableHtmlConfigureProp",
|
|
202
|
-
"type": "object",
|
|
203
|
-
"properties": {
|
|
204
|
-
"math": {
|
|
205
|
-
"title": "EditableHtmlButtonConfigure",
|
|
206
|
-
"type": "object",
|
|
207
|
-
"properties": {
|
|
208
|
-
"disabled": {
|
|
209
|
-
"description": "Indicates if the plugin is disabled or not",
|
|
210
|
-
"type": "boolean",
|
|
211
|
-
"title": "disabled"
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
},
|
|
215
|
-
"audio": {
|
|
216
|
-
"title": "EditableHtmlButtonConfigure",
|
|
217
|
-
"type": "object",
|
|
218
|
-
"properties": {
|
|
219
|
-
"disabled": {
|
|
220
|
-
"description": "Indicates if the plugin is disabled or not",
|
|
221
|
-
"type": "boolean",
|
|
222
|
-
"title": "disabled"
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
},
|
|
226
|
-
"video": {
|
|
227
|
-
"title": "EditableHtmlButtonConfigure",
|
|
228
|
-
"type": "object",
|
|
229
|
-
"properties": {
|
|
230
|
-
"disabled": {
|
|
231
|
-
"description": "Indicates if the plugin is disabled or not",
|
|
232
|
-
"type": "boolean",
|
|
233
|
-
"title": "disabled"
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
},
|
|
237
|
-
"image": {
|
|
238
|
-
"title": "EditableHtmlButtonConfigure",
|
|
239
|
-
"type": "object",
|
|
240
|
-
"properties": {
|
|
241
|
-
"disabled": {
|
|
242
|
-
"description": "Indicates if the plugin is disabled or not",
|
|
243
|
-
"type": "boolean",
|
|
244
|
-
"title": "disabled"
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
},
|
|
248
|
-
"customPlugins": {
|
|
249
|
-
"description": "An array of objects that determine custom plugins.\nA custom plugin is an object which determines how the button will look like (icon) and the event name that will be triggered when button gets pressed (event).\nExample can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.",
|
|
250
|
-
"type": "array",
|
|
251
|
-
"items": {
|
|
252
|
-
"title": "CustomPlugin",
|
|
253
|
-
"type": "object",
|
|
254
|
-
"properties": {
|
|
255
|
-
"event": {
|
|
256
|
-
"description": "The name of the custom event. It needs to be valid (only letters, numbers and \"_\" can be used).\nPIE will emit the event prefixed with \"PIE-\".\nEg: event = 'client_custom_event_A' => the emitted event will be \"PIE-client_custom_event_A\"",
|
|
257
|
-
"type": "string",
|
|
258
|
-
"title": "event"
|
|
259
|
-
},
|
|
260
|
-
"iconAlt": {
|
|
261
|
-
"description": "The alt for the custom button icon",
|
|
262
|
-
"type": "string",
|
|
263
|
-
"title": "iconAlt"
|
|
264
|
-
},
|
|
265
|
-
"iconType": {
|
|
266
|
-
"description": "The icon type.\nCurrently, only \"SVG\" is supported.",
|
|
267
|
-
"type": "string",
|
|
268
|
-
"title": "iconType"
|
|
269
|
-
},
|
|
270
|
-
"icon": {
|
|
271
|
-
"description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
|
|
272
|
-
"type": "string",
|
|
273
|
-
"title": "icon"
|
|
274
|
-
}
|
|
275
|
-
},
|
|
276
|
-
"required": [
|
|
277
|
-
"event",
|
|
278
|
-
"icon",
|
|
279
|
-
"iconAlt",
|
|
280
|
-
"iconType"
|
|
281
|
-
]
|
|
282
|
-
},
|
|
283
|
-
"title": "customPlugins"
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
},
|
|
287
|
-
"EditableHtmlButtonConfigure": {
|
|
288
|
-
"title": "EditableHtmlButtonConfigure",
|
|
289
|
-
"type": "object",
|
|
290
|
-
"properties": {
|
|
291
|
-
"disabled": {
|
|
292
|
-
"description": "Indicates if the plugin is disabled or not",
|
|
293
|
-
"type": "boolean",
|
|
294
|
-
"title": "disabled"
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
},
|
|
298
|
-
"CustomPlugin": {
|
|
299
|
-
"title": "CustomPlugin",
|
|
300
|
-
"type": "object",
|
|
301
|
-
"properties": {
|
|
302
|
-
"event": {
|
|
303
|
-
"description": "The name of the custom event. It needs to be valid (only letters, numbers and \"_\" can be used).\nPIE will emit the event prefixed with \"PIE-\".\nEg: event = 'client_custom_event_A' => the emitted event will be \"PIE-client_custom_event_A\"",
|
|
304
|
-
"type": "string",
|
|
305
|
-
"title": "event"
|
|
306
|
-
},
|
|
307
|
-
"iconAlt": {
|
|
308
|
-
"description": "The alt for the custom button icon",
|
|
309
|
-
"type": "string",
|
|
310
|
-
"title": "iconAlt"
|
|
311
|
-
},
|
|
312
|
-
"iconType": {
|
|
313
|
-
"description": "The icon type.\nCurrently, only \"SVG\" is supported.",
|
|
314
|
-
"type": "string",
|
|
315
|
-
"title": "iconType"
|
|
316
|
-
},
|
|
317
|
-
"icon": {
|
|
318
|
-
"description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
|
|
319
|
-
"type": "string",
|
|
320
|
-
"title": "icon"
|
|
321
|
-
}
|
|
322
|
-
},
|
|
323
|
-
"required": [
|
|
324
|
-
"event",
|
|
325
|
-
"icon",
|
|
326
|
-
"iconAlt",
|
|
327
|
-
"iconType"
|
|
328
|
-
]
|
|
329
|
-
},
|
|
330
|
-
"ConfigureMaxImageDimensionsProp": {
|
|
331
|
-
"title": "ConfigureMaxImageDimensionsProp",
|
|
332
|
-
"type": "object",
|
|
333
|
-
"properties": {
|
|
334
|
-
"teacherInstructions": {
|
|
335
|
-
"description": "Indicates the max dimension for images in teacher instructions",
|
|
336
|
-
"type": "number",
|
|
337
|
-
"title": "teacherInstructions"
|
|
338
|
-
},
|
|
339
|
-
"prompt": {
|
|
340
|
-
"description": "Indicates the max dimension for images in prompt - this is also the default dimension for all other input fields if it's not specified",
|
|
341
|
-
"type": "number",
|
|
342
|
-
"title": "prompt"
|
|
343
|
-
},
|
|
344
|
-
"rationale": {
|
|
345
|
-
"description": "Indicates the max dimension for images in rationale",
|
|
346
|
-
"type": "number",
|
|
347
|
-
"title": "rationale"
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
},
|
|
351
|
-
"ConfigureMathMLProp": {
|
|
352
|
-
"title": "ConfigureMathMLProp",
|
|
353
|
-
"type": "object",
|
|
354
|
-
"properties": {
|
|
355
|
-
"mmlOutput": {
|
|
356
|
-
"description": "Indicates if model should have mathML output instead of latex",
|
|
357
|
-
"type": "number",
|
|
358
|
-
"title": "mmlOutput"
|
|
359
|
-
},
|
|
360
|
-
"mmlEditing": {
|
|
361
|
-
"description": "Indicates if mathML that's already in model should be editable",
|
|
362
|
-
"type": "number",
|
|
363
|
-
"title": "mmlEditing"
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
},
|
|
367
|
-
"ConfigurePropWithEnabled": {
|
|
368
|
-
"title": "ConfigurePropWithEnabled",
|
|
369
|
-
"type": "object",
|
|
370
|
-
"properties": {
|
|
371
|
-
"enabled": {
|
|
372
|
-
"description": "Indicates the value of the item if it affects config-ui\n(eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)",
|
|
373
|
-
"type": "boolean",
|
|
374
|
-
"title": "enabled"
|
|
375
|
-
},
|
|
376
|
-
"settings": {
|
|
377
|
-
"description": "Indicates if the item has to be displayed in the Settings Panel",
|
|
378
|
-
"type": "boolean",
|
|
379
|
-
"title": "settings"
|
|
380
|
-
},
|
|
381
|
-
"label": {
|
|
382
|
-
"description": "Indicates the label for the item that has to be displayed in the Settings Panel",
|
|
383
|
-
"type": "string",
|
|
384
|
-
"title": "label"
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
},
|
|
388
|
-
"ConfigureLanguageOptionsProp": {
|
|
389
|
-
"title": "ConfigureLanguageOptionsProp",
|
|
390
|
-
"type": "object",
|
|
391
|
-
"properties": {
|
|
392
|
-
"value": {
|
|
393
|
-
"description": "Value of the language option",
|
|
394
|
-
"type": "string",
|
|
395
|
-
"title": "value"
|
|
396
|
-
},
|
|
397
|
-
"label": {
|
|
398
|
-
"description": "Label of the language option",
|
|
399
|
-
"type": "string",
|
|
400
|
-
"title": "label"
|
|
401
|
-
}
|
|
402
|
-
},
|
|
403
|
-
"required": [
|
|
404
|
-
"label",
|
|
405
|
-
"value"
|
|
406
|
-
]
|
|
407
|
-
},
|
|
408
47
|
"Passage": {
|
|
409
48
|
"title": "Passage",
|
|
410
49
|
"type": "object",
|
|
@@ -414,25 +53,10 @@
|
|
|
414
53
|
"type": "string",
|
|
415
54
|
"title": "title"
|
|
416
55
|
},
|
|
417
|
-
"subtitle": {
|
|
418
|
-
"description": "The subtitle of the passage",
|
|
419
|
-
"type": "string",
|
|
420
|
-
"title": "subtitle"
|
|
421
|
-
},
|
|
422
|
-
"author": {
|
|
423
|
-
"description": "The author of the passage",
|
|
424
|
-
"type": "string",
|
|
425
|
-
"title": "author"
|
|
426
|
-
},
|
|
427
56
|
"text": {
|
|
428
57
|
"description": "The content of the passage",
|
|
429
58
|
"type": "string",
|
|
430
59
|
"title": "text"
|
|
431
|
-
},
|
|
432
|
-
"teacherInstructions": {
|
|
433
|
-
"description": "Indicates teacher instructions",
|
|
434
|
-
"type": "string",
|
|
435
|
-
"title": "teacherInstructions"
|
|
436
60
|
}
|
|
437
61
|
},
|
|
438
62
|
"required": [
|