@pie-element/fraction-model 2.0.2-next.9 → 2.1.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.
@@ -78,9 +78,555 @@ The html Element tag name
78
78
 
79
79
  The schema defines the following additional types:
80
80
 
81
+ ## `EditableHtmlConfigureProp` (object)
82
+
83
+ Properties of the `EditableHtmlConfigureProp` object:
84
+
85
+ ### `math` (object)
86
+
87
+ Properties of the `math` object:
88
+
89
+ #### `disabled` (boolean)
90
+
91
+ Indicates if the plugin is disabled or not
92
+
93
+ ### `audio` (object)
94
+
95
+ Properties of the `audio` object:
96
+
97
+ #### `disabled` (boolean)
98
+
99
+ Indicates if the plugin is disabled or not
100
+
101
+ ### `video` (object)
102
+
103
+ Properties of the `video` object:
104
+
105
+ #### `disabled` (boolean)
106
+
107
+ Indicates if the plugin is disabled or not
108
+
109
+ ### `image` (object)
110
+
111
+ Properties of the `image` object:
112
+
113
+ #### `disabled` (boolean)
114
+
115
+ Indicates if the plugin is disabled or not
116
+
117
+ ### `customPlugins` (array)
118
+
119
+ An array of objects that determine custom plugins.
120
+ 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).
121
+ Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
122
+
123
+ The object is an array with all elements of the type `object`.
124
+
125
+ The array object has the following properties:
126
+
127
+ #### `event` (string, required)
128
+
129
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
130
+ PIE will emit the event prefixed with "PIE-".
131
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
132
+
133
+ #### `iconAlt` (string, required)
134
+
135
+ The alt for the custom button icon
136
+
137
+ #### `iconType` (string, required)
138
+
139
+ The icon type.
140
+ Currently, only "SVG" is supported.
141
+
142
+ #### `icon` (string, required)
143
+
144
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
145
+
146
+ ### `blockquote` (object)
147
+
148
+ Properties of the `blockquote` object:
149
+
150
+ #### `disabled` (boolean)
151
+
152
+ Indicates if the plugin is disabled or not
153
+
154
+ ### `h3` (object)
155
+
156
+ Properties of the `h3` object:
157
+
158
+ #### `disabled` (boolean)
159
+
160
+ Indicates if the plugin is disabled or not
161
+
162
+ ### `characters` (object)
163
+
164
+ Properties of the `characters` object:
165
+
166
+ #### `disabled` (boolean)
167
+
168
+ Indicates if the plugin is disabled or not
169
+
170
+ ### `bold` (object)
171
+
172
+ Properties of the `bold` object:
173
+
174
+ #### `disabled` (boolean)
175
+
176
+ Indicates if the plugin is disabled or not
177
+
178
+ ### `html` (object)
179
+
180
+ Properties of the `html` object:
181
+
182
+ #### `disabled` (boolean)
183
+
184
+ Indicates if the plugin is disabled or not
185
+
186
+ ### `italic` (object)
187
+
188
+ Properties of the `italic` object:
189
+
190
+ #### `disabled` (boolean)
191
+
192
+ Indicates if the plugin is disabled or not
193
+
194
+ ### `ol_list` (object)
195
+
196
+ Properties of the `ol_list` object:
197
+
198
+ #### `disabled` (boolean)
199
+
200
+ Indicates if the plugin is disabled or not
201
+
202
+ ### `redo` (object)
203
+
204
+ Properties of the `redo` object:
205
+
206
+ #### `disabled` (boolean)
207
+
208
+ Indicates if the plugin is disabled or not
209
+
210
+ ### `strikethrough` (object)
211
+
212
+ Properties of the `strikethrough` object:
213
+
214
+ #### `disabled` (boolean)
215
+
216
+ Indicates if the plugin is disabled or not
217
+
218
+ ### `sub` (object)
219
+
220
+ Properties of the `sub` object:
221
+
222
+ #### `disabled` (boolean)
223
+
224
+ Indicates if the plugin is disabled or not
225
+
226
+ ### `sup` (object)
227
+
228
+ Properties of the `sup` object:
229
+
230
+ #### `disabled` (boolean)
231
+
232
+ Indicates if the plugin is disabled or not
233
+
234
+ ### `table` (object)
235
+
236
+ Properties of the `table` object:
237
+
238
+ #### `disabled` (boolean)
239
+
240
+ Indicates if the plugin is disabled or not
241
+
242
+ ### `ul_list` (object)
243
+
244
+ Properties of the `ul_list` object:
245
+
246
+ #### `disabled` (boolean)
247
+
248
+ Indicates if the plugin is disabled or not
249
+
250
+ ### `underline` (object)
251
+
252
+ Properties of the `underline` object:
253
+
254
+ #### `disabled` (boolean)
255
+
256
+ Indicates if the plugin is disabled or not
257
+
258
+ ### `undo` (object)
259
+
260
+ Properties of the `undo` object:
261
+
262
+ #### `disabled` (boolean)
263
+
264
+ Indicates if the plugin is disabled or not
265
+
266
+ ## `EditableHtmlButtonConfigure` (object)
267
+
268
+ Properties of the `EditableHtmlButtonConfigure` object:
269
+
270
+ ### `disabled` (boolean)
271
+
272
+ Indicates if the plugin is disabled or not
273
+
274
+ ## `CustomPlugin` (object)
275
+
276
+ Properties of the `CustomPlugin` object:
277
+
278
+ ### `event` (string, required)
279
+
280
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
281
+ PIE will emit the event prefixed with "PIE-".
282
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
283
+
284
+ ### `iconAlt` (string, required)
285
+
286
+ The alt for the custom button icon
287
+
288
+ ### `iconType` (string, required)
289
+
290
+ The icon type.
291
+ Currently, only "SVG" is supported.
292
+
293
+ ### `icon` (string, required)
294
+
295
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
296
+
297
+ ## `EditableHtmlPluginConfigure` (object)
298
+
299
+ Properties of the `EditableHtmlPluginConfigure` object:
300
+
301
+ ### `inputConfiguration` (object)
302
+
303
+ Properties of the `inputConfiguration` object:
304
+
305
+ #### `math` (object)
306
+
307
+ Properties of the `math` object:
308
+
309
+ ##### `disabled` (boolean)
310
+
311
+ Indicates if the plugin is disabled or not
312
+
313
+ #### `audio` (object)
314
+
315
+ Properties of the `audio` object:
316
+
317
+ ##### `disabled` (boolean)
318
+
319
+ Indicates if the plugin is disabled or not
320
+
321
+ #### `video` (object)
322
+
323
+ Properties of the `video` object:
324
+
325
+ ##### `disabled` (boolean)
326
+
327
+ Indicates if the plugin is disabled or not
328
+
329
+ #### `image` (object)
330
+
331
+ Properties of the `image` object:
332
+
333
+ ##### `disabled` (boolean)
334
+
335
+ Indicates if the plugin is disabled or not
336
+
337
+ #### `customPlugins` (array)
338
+
339
+ An array of objects that determine custom plugins.
340
+ 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).
341
+ Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
342
+
343
+ The object is an array with all elements of the type `object`.
344
+
345
+ The array object has the following properties:
346
+
347
+ ##### `event` (string, required)
348
+
349
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
350
+ PIE will emit the event prefixed with "PIE-".
351
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
352
+
353
+ ##### `iconAlt` (string, required)
354
+
355
+ The alt for the custom button icon
356
+
357
+ ##### `iconType` (string, required)
358
+
359
+ The icon type.
360
+ Currently, only "SVG" is supported.
361
+
362
+ ##### `icon` (string, required)
363
+
364
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
365
+
366
+ #### `blockquote` (object)
367
+
368
+ Properties of the `blockquote` object:
369
+
370
+ ##### `disabled` (boolean)
371
+
372
+ Indicates if the plugin is disabled or not
373
+
374
+ #### `h3` (object)
375
+
376
+ Properties of the `h3` object:
377
+
378
+ ##### `disabled` (boolean)
379
+
380
+ Indicates if the plugin is disabled or not
381
+
382
+ #### `characters` (object)
383
+
384
+ Properties of the `characters` object:
385
+
386
+ ##### `disabled` (boolean)
387
+
388
+ Indicates if the plugin is disabled or not
389
+
390
+ #### `bold` (object)
391
+
392
+ Properties of the `bold` object:
393
+
394
+ ##### `disabled` (boolean)
395
+
396
+ Indicates if the plugin is disabled or not
397
+
398
+ #### `html` (object)
399
+
400
+ Properties of the `html` object:
401
+
402
+ ##### `disabled` (boolean)
403
+
404
+ Indicates if the plugin is disabled or not
405
+
406
+ #### `italic` (object)
407
+
408
+ Properties of the `italic` object:
409
+
410
+ ##### `disabled` (boolean)
411
+
412
+ Indicates if the plugin is disabled or not
413
+
414
+ #### `ol_list` (object)
415
+
416
+ Properties of the `ol_list` object:
417
+
418
+ ##### `disabled` (boolean)
419
+
420
+ Indicates if the plugin is disabled or not
421
+
422
+ #### `redo` (object)
423
+
424
+ Properties of the `redo` object:
425
+
426
+ ##### `disabled` (boolean)
427
+
428
+ Indicates if the plugin is disabled or not
429
+
430
+ #### `strikethrough` (object)
431
+
432
+ Properties of the `strikethrough` object:
433
+
434
+ ##### `disabled` (boolean)
435
+
436
+ Indicates if the plugin is disabled or not
437
+
438
+ #### `sub` (object)
439
+
440
+ Properties of the `sub` object:
441
+
442
+ ##### `disabled` (boolean)
443
+
444
+ Indicates if the plugin is disabled or not
445
+
446
+ #### `sup` (object)
447
+
448
+ Properties of the `sup` object:
449
+
450
+ ##### `disabled` (boolean)
451
+
452
+ Indicates if the plugin is disabled or not
453
+
454
+ #### `table` (object)
455
+
456
+ Properties of the `table` object:
457
+
458
+ ##### `disabled` (boolean)
459
+
460
+ Indicates if the plugin is disabled or not
461
+
462
+ #### `ul_list` (object)
463
+
464
+ Properties of the `ul_list` object:
465
+
466
+ ##### `disabled` (boolean)
467
+
468
+ Indicates if the plugin is disabled or not
469
+
470
+ #### `underline` (object)
471
+
472
+ Properties of the `underline` object:
473
+
474
+ ##### `disabled` (boolean)
475
+
476
+ Indicates if the plugin is disabled or not
477
+
478
+ #### `undo` (object)
479
+
480
+ Properties of the `undo` object:
481
+
482
+ ##### `disabled` (boolean)
483
+
484
+ Indicates if the plugin is disabled or not
485
+
486
+ ### `settings` (boolean)
487
+
488
+ Indicates if the item has to be displayed in the Settings Panel
489
+
490
+ ### `label` (string)
491
+
492
+ Indicates the label for the item that has to be displayed in the Settings Panel
493
+
494
+ ## `FractionModelOptionsConfigure` (object)
495
+
496
+ Properties of the `FractionModelOptionsConfigure` object:
497
+
498
+ ### `maxOfModel` (object)
499
+
500
+ Properties of the `maxOfModel` object:
501
+
502
+ #### `min` (number)
503
+
504
+ Indicates the min value for number model
505
+
506
+ #### `max` (number)
507
+
508
+ Indicates the max value for number model
509
+
510
+ #### `default` (number)
511
+
512
+ Indicates the default value for number model
513
+
514
+ ### `partsPerModel` (object)
515
+
516
+ Properties of the `partsPerModel` object:
517
+
518
+ #### `min` (number)
519
+
520
+ Indicates the min value for number model
521
+
522
+ #### `max` (number)
523
+
524
+ Indicates the max value for number model
525
+
526
+ #### `default` (number)
527
+
528
+ Indicates the default value for number model
529
+
530
+ ### `modelTypeChoices` (array)
531
+
532
+ Indicates the model types of item
533
+
534
+ The object is an array with all elements of the type `object`.
535
+
536
+ The array object has the following properties:
537
+
538
+ #### `value` (string, required)
539
+
540
+ Indicates the value for model choice
541
+
542
+ #### `label` (string, required)
543
+
544
+ Indicates the label for model choice
545
+
546
+ ## `ModelConfig` (object)
547
+
548
+ Properties of the `ModelConfig` object:
549
+
550
+ ### `min` (number)
551
+
552
+ Indicates the min value for number model
553
+
554
+ ### `max` (number)
555
+
556
+ Indicates the max value for number model
557
+
558
+ ### `default` (number)
559
+
560
+ Indicates the default value for number model
561
+
562
+ ## `ChoiceConfig` (object)
563
+
564
+ Properties of the `ChoiceConfig` object:
565
+
566
+ ### `value` (string, required)
567
+
568
+ Indicates the value for model choice
569
+
570
+ ### `label` (string, required)
571
+
572
+ Indicates the label for model choice
573
+
574
+ ## `ConfigureMathMLProp` (object)
575
+
576
+ Properties of the `ConfigureMathMLProp` object:
577
+
578
+ ### `mmlOutput` (number)
579
+
580
+ Indicates if model should have mathML output instead of latex
581
+
582
+ ### `mmlEditing` (number)
583
+
584
+ Indicates if mathML that's already in model should be editable
585
+
586
+ ## `ConfigurePropWithEnabled` (object)
587
+
588
+ Properties of the `ConfigurePropWithEnabled` object:
589
+
590
+ ### `enabled` (boolean)
591
+
592
+ Indicates the value of the item if it affects config-ui
593
+ (eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)
594
+
595
+ ### `settings` (boolean)
596
+
597
+ Indicates if the item has to be displayed in the Settings Panel
598
+
599
+ ### `label` (string)
600
+
601
+ Indicates the label for the item that has to be displayed in the Settings Panel
602
+
603
+ ## `ConfigureLanguageOptionsProp` (object)
604
+
605
+ Properties of the `ConfigureLanguageOptionsProp` object:
606
+
607
+ ### `value` (string, required)
608
+
609
+ Value of the language option
610
+
611
+ ### `label` (string, required)
612
+
613
+ Label of the language option
614
+
615
+ ## `ConfigureProp` (object)
616
+
617
+ Properties of the `ConfigureProp` object:
618
+
619
+ ### `settings` (boolean)
620
+
621
+ Indicates if the item has to be displayed in the Settings Panel
622
+
623
+ ### `label` (string)
624
+
625
+ Indicates the label for the item that has to be displayed in the Settings Panel
626
+
81
627
  ## `ResponseObject` (object)
82
628
 
83
- Model for the
629
+ Model for the @pie-elements/fraction-model
84
630
 
85
631
  Properties of the `ResponseObject` object:
86
632
 
package/package.json CHANGED
@@ -4,12 +4,12 @@
4
4
  "access": "public"
5
5
  },
6
6
  "repository": "pie-framework/pie-elements",
7
- "version": "2.0.2-next.9+ece6bd005",
7
+ "version": "2.1.0",
8
8
  "description": "",
9
9
  "dependencies": {
10
10
  "@material-ui/core": "^3.9.2",
11
11
  "@pie-framework/pie-player-events": "^0.1.0",
12
- "@pie-lib/pie-toolbox": "2.0.8",
12
+ "@pie-lib/pie-toolbox": "2.0.9",
13
13
  "prop-types": "^15.6.1",
14
14
  "react": "^16.8.1",
15
15
  "react-dom": "^16.8.1",
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "author": "",
19
19
  "license": "ISC",
20
- "gitHead": "ece6bd0052a8f51c5fffc0200829b37557bd7ebb",
20
+ "gitHead": "a1eaccf27273852985c921bc96023e7709e63438",
21
21
  "scripts": {
22
22
  "postpublish": "../../scripts/postpublish"
23
23
  },