@pie-element/passage 2.15.1-next.3 → 2.16.1-next.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.
@@ -12,10 +12,42 @@ The array object has the following properties:
12
12
 
13
13
  The title of the passage
14
14
 
15
+ ## `subtitle` (string)
16
+
17
+ The subtitle of the passage
18
+
19
+ ## `author` (string)
20
+
21
+ The author of the passage
22
+
15
23
  ## `text` (string, required)
16
24
 
17
25
  The content of the passage
18
26
 
27
+ ## `teacherInstructions` (string)
28
+
29
+ Indicates teacher instructions
30
+
31
+ # `teacherInstructionsEnabled` (boolean, required)
32
+
33
+ Indicates if Teacher Instructions are enabled
34
+
35
+ # `titleEnabled` (boolean, required)
36
+
37
+ Indicates if title is enabled
38
+
39
+ # `subtitleEnabled` (boolean, required)
40
+
41
+ Indicates if subtitle is enabled
42
+
43
+ # `textEnabled` (boolean, required)
44
+
45
+ Indicates if text is enabled
46
+
47
+ # `authorEnabled` (boolean, required)
48
+
49
+ Indicates if author is enabled
50
+
19
51
  # `id` (string, required)
20
52
 
21
53
  Identifier to identify the Pie Element in html markup, Must be unique within a pie item config.
@@ -30,6 +62,272 @@ The html Element tag name
30
62
 
31
63
  The schema defines the following additional types:
32
64
 
65
+ ## `EditableHtmlPluginConfigureRequired` (object)
66
+
67
+ Properties of the `EditableHtmlPluginConfigureRequired` object:
68
+
69
+ ### `inputConfiguration` (object)
70
+
71
+ Properties of the `inputConfiguration` object:
72
+
73
+ #### `math` (object)
74
+
75
+ Properties of the `math` object:
76
+
77
+ ##### `disabled` (boolean)
78
+
79
+ Indicates if the plugin is disabled or not
80
+
81
+ #### `audio` (object)
82
+
83
+ Properties of the `audio` object:
84
+
85
+ ##### `disabled` (boolean)
86
+
87
+ Indicates if the plugin is disabled or not
88
+
89
+ #### `video` (object)
90
+
91
+ Properties of the `video` object:
92
+
93
+ ##### `disabled` (boolean)
94
+
95
+ Indicates if the plugin is disabled or not
96
+
97
+ #### `image` (object)
98
+
99
+ Properties of the `image` object:
100
+
101
+ ##### `disabled` (boolean)
102
+
103
+ Indicates if the plugin is disabled or not
104
+
105
+ #### `customPlugins` (array)
106
+
107
+ An array of objects that determine custom plugins.
108
+ A 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).
109
+ Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
110
+
111
+ The object is an array with all elements of the type `object`.
112
+
113
+ The array object has the following properties:
114
+
115
+ ##### `event` (string, required)
116
+
117
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
118
+ PIE will emit the event prefixed with "PIE-".
119
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
120
+
121
+ ##### `iconAlt` (string, required)
122
+
123
+ The alt for the custom button icon
124
+
125
+ ##### `iconType` (string, required)
126
+
127
+ The icon type.
128
+ Currently, only "SVG" is supported.
129
+
130
+ ##### `icon` (string, required)
131
+
132
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
133
+
134
+ #### `blockquote` (object)
135
+
136
+ Properties of the `blockquote` object:
137
+
138
+ ##### `disabled` (boolean)
139
+
140
+ Indicates if the plugin is disabled or not
141
+
142
+ #### `h3` (object)
143
+
144
+ Properties of the `h3` object:
145
+
146
+ ##### `disabled` (boolean)
147
+
148
+ Indicates if the plugin is disabled or not
149
+
150
+ ### `required` (boolean)
151
+
152
+ Indicates if the item is required and the value cannot be empty
153
+
154
+ ### `settings` (boolean)
155
+
156
+ Indicates if the item has to be displayed in the Settings Panel
157
+
158
+ ### `label` (string)
159
+
160
+ Indicates the label for the item that has to be displayed in the Settings Panel
161
+
162
+ ## `EditableHtmlConfigureProp` (object)
163
+
164
+ Properties of the `EditableHtmlConfigureProp` object:
165
+
166
+ ### `math` (object)
167
+
168
+ Properties of the `math` object:
169
+
170
+ #### `disabled` (boolean)
171
+
172
+ Indicates if the plugin is disabled or not
173
+
174
+ ### `audio` (object)
175
+
176
+ Properties of the `audio` object:
177
+
178
+ #### `disabled` (boolean)
179
+
180
+ Indicates if the plugin is disabled or not
181
+
182
+ ### `video` (object)
183
+
184
+ Properties of the `video` object:
185
+
186
+ #### `disabled` (boolean)
187
+
188
+ Indicates if the plugin is disabled or not
189
+
190
+ ### `image` (object)
191
+
192
+ Properties of the `image` object:
193
+
194
+ #### `disabled` (boolean)
195
+
196
+ Indicates if the plugin is disabled or not
197
+
198
+ ### `customPlugins` (array)
199
+
200
+ An array of objects that determine custom plugins.
201
+ A 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).
202
+ Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
203
+
204
+ The object is an array with all elements of the type `object`.
205
+
206
+ The array object has the following properties:
207
+
208
+ #### `event` (string, required)
209
+
210
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
211
+ PIE will emit the event prefixed with "PIE-".
212
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
213
+
214
+ #### `iconAlt` (string, required)
215
+
216
+ The alt for the custom button icon
217
+
218
+ #### `iconType` (string, required)
219
+
220
+ The icon type.
221
+ Currently, only "SVG" is supported.
222
+
223
+ #### `icon` (string, required)
224
+
225
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
226
+
227
+ ### `blockquote` (object)
228
+
229
+ Properties of the `blockquote` object:
230
+
231
+ #### `disabled` (boolean)
232
+
233
+ Indicates if the plugin is disabled or not
234
+
235
+ ### `h3` (object)
236
+
237
+ Properties of the `h3` object:
238
+
239
+ #### `disabled` (boolean)
240
+
241
+ Indicates if the plugin is disabled or not
242
+
243
+ ## `EditableHtmlButtonConfigure` (object)
244
+
245
+ Properties of the `EditableHtmlButtonConfigure` object:
246
+
247
+ ### `disabled` (boolean)
248
+
249
+ Indicates if the plugin is disabled or not
250
+
251
+ ## `CustomPlugin` (object)
252
+
253
+ Properties of the `CustomPlugin` object:
254
+
255
+ ### `event` (string, required)
256
+
257
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
258
+ PIE will emit the event prefixed with "PIE-".
259
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
260
+
261
+ ### `iconAlt` (string, required)
262
+
263
+ The alt for the custom button icon
264
+
265
+ ### `iconType` (string, required)
266
+
267
+ The icon type.
268
+ Currently, only "SVG" is supported.
269
+
270
+ ### `icon` (string, required)
271
+
272
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
273
+
274
+ ## `ConfigureMaxImageDimensionsProp` (object)
275
+
276
+ Properties of the `ConfigureMaxImageDimensionsProp` object:
277
+
278
+ ### `teacherInstructions` (number)
279
+
280
+ Indicates the max dimension for images in teacher instructions
281
+
282
+ ### `prompt` (number)
283
+
284
+ Indicates the max dimension for images in prompt - this is also the default dimension for all other input fields if it's not specified
285
+
286
+ ### `rationale` (number)
287
+
288
+ Indicates the max dimension for images in rationale
289
+
290
+ ## `ConfigureMathMLProp` (object)
291
+
292
+ Properties of the `ConfigureMathMLProp` object:
293
+
294
+ ### `mmlOutput` (number)
295
+
296
+ Indicates if model should have mathML output instead of latex
297
+
298
+ ### `mmlEditing` (number)
299
+
300
+ Indicates if mathML that's already in model should be editable
301
+
302
+ ## `ConfigurePropWithEnabled` (object)
303
+
304
+ Properties of the `ConfigurePropWithEnabled` object:
305
+
306
+ ### `enabled` (boolean)
307
+
308
+ Indicates the value of the item if it affects config-ui
309
+ (eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)
310
+
311
+ ### `settings` (boolean)
312
+
313
+ Indicates if the item has to be displayed in the Settings Panel
314
+
315
+ ### `label` (string)
316
+
317
+ Indicates the label for the item that has to be displayed in the Settings Panel
318
+
319
+ ## `ConfigureLanguageOptionsProp` (object)
320
+
321
+ Properties of the `ConfigureLanguageOptionsProp` object:
322
+
323
+ ### `value` (string, required)
324
+
325
+ Value of the language option
326
+
327
+ ### `label` (string, required)
328
+
329
+ Label of the language option
330
+
33
331
  ## `Passage` (object)
34
332
 
35
333
  Properties of the `Passage` object:
@@ -38,6 +336,18 @@ Properties of the `Passage` object:
38
336
 
39
337
  The title of the passage
40
338
 
339
+ ### `subtitle` (string)
340
+
341
+ The subtitle of the passage
342
+
343
+ ### `author` (string)
344
+
345
+ The author of the passage
346
+
41
347
  ### `text` (string, required)
42
348
 
43
- The content of the passage
349
+ The content of the passage
350
+
351
+ ### `teacherInstructions` (string)
352
+
353
+ Indicates teacher instructions