@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.
@@ -12,42 +12,10 @@ 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
-
23
15
  ## `text` (string, required)
24
16
 
25
17
  The content of the passage
26
18
 
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
-
51
19
  # `id` (string, required)
52
20
 
53
21
  Identifier to identify the Pie Element in html markup, Must be unique within a pie item config.
@@ -62,240 +30,6 @@ The html Element tag name
62
30
 
63
31
  The schema defines the following additional types:
64
32
 
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
- ### `required` (boolean)
135
-
136
- Indicates if the item is required and the value cannot be empty
137
-
138
- ### `settings` (boolean)
139
-
140
- Indicates if the item has to be displayed in the Settings Panel
141
-
142
- ### `label` (string)
143
-
144
- Indicates the label for the item that has to be displayed in the Settings Panel
145
-
146
- ## `EditableHtmlConfigureProp` (object)
147
-
148
- Properties of the `EditableHtmlConfigureProp` object:
149
-
150
- ### `math` (object)
151
-
152
- Properties of the `math` object:
153
-
154
- #### `disabled` (boolean)
155
-
156
- Indicates if the plugin is disabled or not
157
-
158
- ### `audio` (object)
159
-
160
- Properties of the `audio` object:
161
-
162
- #### `disabled` (boolean)
163
-
164
- Indicates if the plugin is disabled or not
165
-
166
- ### `video` (object)
167
-
168
- Properties of the `video` object:
169
-
170
- #### `disabled` (boolean)
171
-
172
- Indicates if the plugin is disabled or not
173
-
174
- ### `image` (object)
175
-
176
- Properties of the `image` object:
177
-
178
- #### `disabled` (boolean)
179
-
180
- Indicates if the plugin is disabled or not
181
-
182
- ### `customPlugins` (array)
183
-
184
- An array of objects that determine custom plugins.
185
- 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).
186
- Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
187
-
188
- The object is an array with all elements of the type `object`.
189
-
190
- The array object has the following properties:
191
-
192
- #### `event` (string, required)
193
-
194
- The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
195
- PIE will emit the event prefixed with "PIE-".
196
- Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
197
-
198
- #### `iconAlt` (string, required)
199
-
200
- The alt for the custom button icon
201
-
202
- #### `iconType` (string, required)
203
-
204
- The icon type.
205
- Currently, only "SVG" is supported.
206
-
207
- #### `icon` (string, required)
208
-
209
- The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
210
-
211
- ## `EditableHtmlButtonConfigure` (object)
212
-
213
- Properties of the `EditableHtmlButtonConfigure` object:
214
-
215
- ### `disabled` (boolean)
216
-
217
- Indicates if the plugin is disabled or not
218
-
219
- ## `CustomPlugin` (object)
220
-
221
- Properties of the `CustomPlugin` object:
222
-
223
- ### `event` (string, required)
224
-
225
- The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
226
- PIE will emit the event prefixed with "PIE-".
227
- Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
228
-
229
- ### `iconAlt` (string, required)
230
-
231
- The alt for the custom button icon
232
-
233
- ### `iconType` (string, required)
234
-
235
- The icon type.
236
- Currently, only "SVG" is supported.
237
-
238
- ### `icon` (string, required)
239
-
240
- The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
241
-
242
- ## `ConfigureMaxImageDimensionsProp` (object)
243
-
244
- Properties of the `ConfigureMaxImageDimensionsProp` object:
245
-
246
- ### `teacherInstructions` (number)
247
-
248
- Indicates the max dimension for images in teacher instructions
249
-
250
- ### `prompt` (number)
251
-
252
- Indicates the max dimension for images in prompt - this is also the default dimension for all other input fields if it's not specified
253
-
254
- ### `rationale` (number)
255
-
256
- Indicates the max dimension for images in rationale
257
-
258
- ## `ConfigureMathMLProp` (object)
259
-
260
- Properties of the `ConfigureMathMLProp` object:
261
-
262
- ### `mmlOutput` (number)
263
-
264
- Indicates if model should have mathML output instead of latex
265
-
266
- ### `mmlEditing` (number)
267
-
268
- Indicates if mathML that's already in model should be editable
269
-
270
- ## `ConfigurePropWithEnabled` (object)
271
-
272
- Properties of the `ConfigurePropWithEnabled` object:
273
-
274
- ### `enabled` (boolean)
275
-
276
- Indicates the value of the item if it affects config-ui
277
- (eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)
278
-
279
- ### `settings` (boolean)
280
-
281
- Indicates if the item has to be displayed in the Settings Panel
282
-
283
- ### `label` (string)
284
-
285
- Indicates the label for the item that has to be displayed in the Settings Panel
286
-
287
- ## `ConfigureLanguageOptionsProp` (object)
288
-
289
- Properties of the `ConfigureLanguageOptionsProp` object:
290
-
291
- ### `value` (string, required)
292
-
293
- Value of the language option
294
-
295
- ### `label` (string, required)
296
-
297
- Label of the language option
298
-
299
33
  ## `Passage` (object)
300
34
 
301
35
  Properties of the `Passage` object:
@@ -304,18 +38,6 @@ Properties of the `Passage` object:
304
38
 
305
39
  The title of the passage
306
40
 
307
- ### `subtitle` (string)
308
-
309
- The subtitle of the passage
310
-
311
- ### `author` (string)
312
-
313
- The author of the passage
314
-
315
41
  ### `text` (string, required)
316
42
 
317
- The content of the passage
318
-
319
- ### `teacherInstructions` (string)
320
-
321
- Indicates teacher instructions
43
+ The content of the passage