@pie-element/math-inline 7.13.1-next.0 → 7.13.1-next.18

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.
@@ -11,7 +11,7 @@
11
11
  "@material-ui/icons": "^3.0.1",
12
12
  "@pie-framework/mathquill": "^1.1.3",
13
13
  "@pie-framework/pie-configure-events": "^1.3.0",
14
- "@pie-lib/pie-toolbox": "1.12.3",
14
+ "@pie-lib/pie-toolbox": "1.13.0",
15
15
  "classnames": "^2.2.5",
16
16
  "debug": "^3.1.0",
17
17
  "prop-types": "^15.6.2",
@@ -10,7 +10,7 @@
10
10
  },
11
11
  "dependencies": {
12
12
  "@pie-framework/math-validation": "^1.2.2",
13
- "@pie-lib/pie-toolbox": "1.12.3",
13
+ "@pie-lib/pie-toolbox": "1.13.0",
14
14
  "debug": "^3.1.0",
15
15
  "lodash": "^4.17.15"
16
16
  },
@@ -50,6 +50,43 @@
50
50
  "title": "disabled"
51
51
  }
52
52
  }
53
+ },
54
+ "customPlugins": {
55
+ "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.",
56
+ "type": "array",
57
+ "items": {
58
+ "title": "CustomPlugin",
59
+ "type": "object",
60
+ "properties": {
61
+ "event": {
62
+ "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\"",
63
+ "type": "string",
64
+ "title": "event"
65
+ },
66
+ "iconAlt": {
67
+ "description": "The alt for the custom button icon",
68
+ "type": "string",
69
+ "title": "iconAlt"
70
+ },
71
+ "iconType": {
72
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
73
+ "type": "string",
74
+ "title": "iconType"
75
+ },
76
+ "icon": {
77
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
78
+ "type": "string",
79
+ "title": "icon"
80
+ }
81
+ },
82
+ "required": [
83
+ "event",
84
+ "icon",
85
+ "iconAlt",
86
+ "iconType"
87
+ ]
88
+ },
89
+ "title": "customPlugins"
53
90
  }
54
91
  }
55
92
  },
@@ -104,6 +141,43 @@
104
141
  "title": "disabled"
105
142
  }
106
143
  }
144
+ },
145
+ "customPlugins": {
146
+ "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.",
147
+ "type": "array",
148
+ "items": {
149
+ "title": "CustomPlugin",
150
+ "type": "object",
151
+ "properties": {
152
+ "event": {
153
+ "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\"",
154
+ "type": "string",
155
+ "title": "event"
156
+ },
157
+ "iconAlt": {
158
+ "description": "The alt for the custom button icon",
159
+ "type": "string",
160
+ "title": "iconAlt"
161
+ },
162
+ "iconType": {
163
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
164
+ "type": "string",
165
+ "title": "iconType"
166
+ },
167
+ "icon": {
168
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
169
+ "type": "string",
170
+ "title": "icon"
171
+ }
172
+ },
173
+ "required": [
174
+ "event",
175
+ "icon",
176
+ "iconAlt",
177
+ "iconType"
178
+ ]
179
+ },
180
+ "title": "customPlugins"
107
181
  }
108
182
  }
109
183
  },
@@ -207,6 +281,43 @@
207
281
  "title": "disabled"
208
282
  }
209
283
  }
284
+ },
285
+ "customPlugins": {
286
+ "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.",
287
+ "type": "array",
288
+ "items": {
289
+ "title": "CustomPlugin",
290
+ "type": "object",
291
+ "properties": {
292
+ "event": {
293
+ "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\"",
294
+ "type": "string",
295
+ "title": "event"
296
+ },
297
+ "iconAlt": {
298
+ "description": "The alt for the custom button icon",
299
+ "type": "string",
300
+ "title": "iconAlt"
301
+ },
302
+ "iconType": {
303
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
304
+ "type": "string",
305
+ "title": "iconType"
306
+ },
307
+ "icon": {
308
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
309
+ "type": "string",
310
+ "title": "icon"
311
+ }
312
+ },
313
+ "required": [
314
+ "event",
315
+ "icon",
316
+ "iconAlt",
317
+ "iconType"
318
+ ]
319
+ },
320
+ "title": "customPlugins"
210
321
  }
211
322
  }
212
323
  },
@@ -331,6 +442,43 @@
331
442
  "title": "disabled"
332
443
  }
333
444
  }
445
+ },
446
+ "customPlugins": {
447
+ "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.",
448
+ "type": "array",
449
+ "items": {
450
+ "title": "CustomPlugin",
451
+ "type": "object",
452
+ "properties": {
453
+ "event": {
454
+ "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\"",
455
+ "type": "string",
456
+ "title": "event"
457
+ },
458
+ "iconAlt": {
459
+ "description": "The alt for the custom button icon",
460
+ "type": "string",
461
+ "title": "iconAlt"
462
+ },
463
+ "iconType": {
464
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
465
+ "type": "string",
466
+ "title": "iconType"
467
+ },
468
+ "icon": {
469
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
470
+ "type": "string",
471
+ "title": "icon"
472
+ }
473
+ },
474
+ "required": [
475
+ "event",
476
+ "icon",
477
+ "iconAlt",
478
+ "iconType"
479
+ ]
480
+ },
481
+ "title": "customPlugins"
334
482
  }
335
483
  }
336
484
  },
@@ -643,6 +791,43 @@
643
791
  "title": "disabled"
644
792
  }
645
793
  }
794
+ },
795
+ "customPlugins": {
796
+ "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.",
797
+ "type": "array",
798
+ "items": {
799
+ "title": "CustomPlugin",
800
+ "type": "object",
801
+ "properties": {
802
+ "event": {
803
+ "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\"",
804
+ "type": "string",
805
+ "title": "event"
806
+ },
807
+ "iconAlt": {
808
+ "description": "The alt for the custom button icon",
809
+ "type": "string",
810
+ "title": "iconAlt"
811
+ },
812
+ "iconType": {
813
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
814
+ "type": "string",
815
+ "title": "iconType"
816
+ },
817
+ "icon": {
818
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
819
+ "type": "string",
820
+ "title": "icon"
821
+ }
822
+ },
823
+ "required": [
824
+ "event",
825
+ "icon",
826
+ "iconAlt",
827
+ "iconType"
828
+ ]
829
+ },
830
+ "title": "customPlugins"
646
831
  }
647
832
  }
648
833
  },
@@ -657,6 +842,38 @@
657
842
  }
658
843
  }
659
844
  },
845
+ "CustomPlugin": {
846
+ "title": "CustomPlugin",
847
+ "type": "object",
848
+ "properties": {
849
+ "event": {
850
+ "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\"",
851
+ "type": "string",
852
+ "title": "event"
853
+ },
854
+ "iconAlt": {
855
+ "description": "The alt for the custom button icon",
856
+ "type": "string",
857
+ "title": "iconAlt"
858
+ },
859
+ "iconType": {
860
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
861
+ "type": "string",
862
+ "title": "iconType"
863
+ },
864
+ "icon": {
865
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
866
+ "type": "string",
867
+ "title": "icon"
868
+ }
869
+ },
870
+ "required": [
871
+ "event",
872
+ "icon",
873
+ "iconAlt",
874
+ "iconType"
875
+ ]
876
+ },
660
877
  "EditableHtmlPluginConfigureRequired": {
661
878
  "title": "EditableHtmlPluginConfigureRequired",
662
879
  "type": "object",
@@ -708,6 +925,43 @@
708
925
  "title": "disabled"
709
926
  }
710
927
  }
928
+ },
929
+ "customPlugins": {
930
+ "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.",
931
+ "type": "array",
932
+ "items": {
933
+ "title": "CustomPlugin",
934
+ "type": "object",
935
+ "properties": {
936
+ "event": {
937
+ "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\"",
938
+ "type": "string",
939
+ "title": "event"
940
+ },
941
+ "iconAlt": {
942
+ "description": "The alt for the custom button icon",
943
+ "type": "string",
944
+ "title": "iconAlt"
945
+ },
946
+ "iconType": {
947
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
948
+ "type": "string",
949
+ "title": "iconType"
950
+ },
951
+ "icon": {
952
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
953
+ "type": "string",
954
+ "title": "icon"
955
+ }
956
+ },
957
+ "required": [
958
+ "event",
959
+ "icon",
960
+ "iconAlt",
961
+ "iconType"
962
+ ]
963
+ },
964
+ "title": "customPlugins"
711
965
  }
712
966
  }
713
967
  },
@@ -38,6 +38,35 @@ Properties of the `image` object:
38
38
 
39
39
  Indicates if the plugin is disabled or not
40
40
 
41
+ ## `customPlugins` (array)
42
+
43
+ An array of objects that determine custom plugins.
44
+ 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).
45
+ Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
46
+
47
+ The object is an array with all elements of the type `object`.
48
+
49
+ The array object has the following properties:
50
+
51
+ ### `event` (string, required)
52
+
53
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
54
+ PIE will emit the event prefixed with "PIE-".
55
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
56
+
57
+ ### `iconAlt` (string, required)
58
+
59
+ The alt for the custom button icon
60
+
61
+ ### `iconType` (string, required)
62
+
63
+ The icon type.
64
+ Currently, only "SVG" is supported.
65
+
66
+ ### `icon` (string, required)
67
+
68
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
69
+
41
70
  # `prompt` (object)
42
71
 
43
72
  Properties of the `prompt` object:
@@ -78,6 +107,35 @@ Properties of the `image` object:
78
107
 
79
108
  Indicates if the plugin is disabled or not
80
109
 
110
+ ### `customPlugins` (array)
111
+
112
+ An array of objects that determine custom plugins.
113
+ 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).
114
+ Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
115
+
116
+ The object is an array with all elements of the type `object`.
117
+
118
+ The array object has the following properties:
119
+
120
+ #### `event` (string, required)
121
+
122
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
123
+ PIE will emit the event prefixed with "PIE-".
124
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
125
+
126
+ #### `iconAlt` (string, required)
127
+
128
+ The alt for the custom button icon
129
+
130
+ #### `iconType` (string, required)
131
+
132
+ The icon type.
133
+ Currently, only "SVG" is supported.
134
+
135
+ #### `icon` (string, required)
136
+
137
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
138
+
81
139
  ## `required` (boolean)
82
140
 
83
141
  Indicates if the item is required and the value cannot be empty
@@ -154,6 +212,35 @@ Properties of the `image` object:
154
212
 
155
213
  Indicates if the plugin is disabled or not
156
214
 
215
+ ### `customPlugins` (array)
216
+
217
+ An array of objects that determine custom plugins.
218
+ 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).
219
+ Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
220
+
221
+ The object is an array with all elements of the type `object`.
222
+
223
+ The array object has the following properties:
224
+
225
+ #### `event` (string, required)
226
+
227
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
228
+ PIE will emit the event prefixed with "PIE-".
229
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
230
+
231
+ #### `iconAlt` (string, required)
232
+
233
+ The alt for the custom button icon
234
+
235
+ #### `iconType` (string, required)
236
+
237
+ The icon type.
238
+ Currently, only "SVG" is supported.
239
+
240
+ #### `icon` (string, required)
241
+
242
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
243
+
157
244
  ## `required` (boolean)
158
245
 
159
246
  Indicates if the item is required and the value cannot be empty
@@ -246,6 +333,35 @@ Properties of the `image` object:
246
333
 
247
334
  Indicates if the plugin is disabled or not
248
335
 
336
+ ### `customPlugins` (array)
337
+
338
+ An array of objects that determine custom plugins.
339
+ 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).
340
+ Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
341
+
342
+ The object is an array with all elements of the type `object`.
343
+
344
+ The array object has the following properties:
345
+
346
+ #### `event` (string, required)
347
+
348
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
349
+ PIE will emit the event prefixed with "PIE-".
350
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
351
+
352
+ #### `iconAlt` (string, required)
353
+
354
+ The alt for the custom button icon
355
+
356
+ #### `iconType` (string, required)
357
+
358
+ The icon type.
359
+ Currently, only "SVG" is supported.
360
+
361
+ #### `icon` (string, required)
362
+
363
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
364
+
249
365
  ## `required` (boolean)
250
366
 
251
367
  Indicates if the item is required and the value cannot be empty
@@ -486,6 +602,35 @@ Properties of the `image` object:
486
602
 
487
603
  Indicates if the plugin is disabled or not
488
604
 
605
+ ### `customPlugins` (array)
606
+
607
+ An array of objects that determine custom plugins.
608
+ 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).
609
+ Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
610
+
611
+ The object is an array with all elements of the type `object`.
612
+
613
+ The array object has the following properties:
614
+
615
+ #### `event` (string, required)
616
+
617
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
618
+ PIE will emit the event prefixed with "PIE-".
619
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
620
+
621
+ #### `iconAlt` (string, required)
622
+
623
+ The alt for the custom button icon
624
+
625
+ #### `iconType` (string, required)
626
+
627
+ The icon type.
628
+ Currently, only "SVG" is supported.
629
+
630
+ #### `icon` (string, required)
631
+
632
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
633
+
489
634
  ## `EditableHtmlButtonConfigure` (object)
490
635
 
491
636
  Properties of the `EditableHtmlButtonConfigure` object:
@@ -494,6 +639,29 @@ Properties of the `EditableHtmlButtonConfigure` object:
494
639
 
495
640
  Indicates if the plugin is disabled or not
496
641
 
642
+ ## `CustomPlugin` (object)
643
+
644
+ Properties of the `CustomPlugin` object:
645
+
646
+ ### `event` (string, required)
647
+
648
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
649
+ PIE will emit the event prefixed with "PIE-".
650
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
651
+
652
+ ### `iconAlt` (string, required)
653
+
654
+ The alt for the custom button icon
655
+
656
+ ### `iconType` (string, required)
657
+
658
+ The icon type.
659
+ Currently, only "SVG" is supported.
660
+
661
+ ### `icon` (string, required)
662
+
663
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
664
+
497
665
  ## `EditableHtmlPluginConfigureRequired` (object)
498
666
 
499
667
  Properties of the `EditableHtmlPluginConfigureRequired` object:
@@ -534,6 +702,35 @@ Properties of the `image` object:
534
702
 
535
703
  Indicates if the plugin is disabled or not
536
704
 
705
+ #### `customPlugins` (array)
706
+
707
+ An array of objects that determine custom plugins.
708
+ 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).
709
+ Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
710
+
711
+ The object is an array with all elements of the type `object`.
712
+
713
+ The array object has the following properties:
714
+
715
+ ##### `event` (string, required)
716
+
717
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
718
+ PIE will emit the event prefixed with "PIE-".
719
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
720
+
721
+ ##### `iconAlt` (string, required)
722
+
723
+ The alt for the custom button icon
724
+
725
+ ##### `iconType` (string, required)
726
+
727
+ The icon type.
728
+ Currently, only "SVG" is supported.
729
+
730
+ ##### `icon` (string, required)
731
+
732
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
733
+
537
734
  ### `required` (boolean)
538
735
 
539
736
  Indicates if the item is required and the value cannot be empty
@@ -543,6 +543,43 @@
543
543
  "title": "disabled"
544
544
  }
545
545
  }
546
+ },
547
+ "customPlugins": {
548
+ "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.",
549
+ "type": "array",
550
+ "items": {
551
+ "title": "CustomPlugin",
552
+ "type": "object",
553
+ "properties": {
554
+ "event": {
555
+ "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\"",
556
+ "type": "string",
557
+ "title": "event"
558
+ },
559
+ "iconAlt": {
560
+ "description": "The alt for the custom button icon",
561
+ "type": "string",
562
+ "title": "iconAlt"
563
+ },
564
+ "iconType": {
565
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
566
+ "type": "string",
567
+ "title": "iconType"
568
+ },
569
+ "icon": {
570
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
571
+ "type": "string",
572
+ "title": "icon"
573
+ }
574
+ },
575
+ "required": [
576
+ "event",
577
+ "icon",
578
+ "iconAlt",
579
+ "iconType"
580
+ ]
581
+ },
582
+ "title": "customPlugins"
546
583
  }
547
584
  }
548
585
  },
@@ -557,6 +594,38 @@
557
594
  }
558
595
  }
559
596
  },
597
+ "CustomPlugin": {
598
+ "title": "CustomPlugin",
599
+ "type": "object",
600
+ "properties": {
601
+ "event": {
602
+ "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\"",
603
+ "type": "string",
604
+ "title": "event"
605
+ },
606
+ "iconAlt": {
607
+ "description": "The alt for the custom button icon",
608
+ "type": "string",
609
+ "title": "iconAlt"
610
+ },
611
+ "iconType": {
612
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
613
+ "type": "string",
614
+ "title": "iconType"
615
+ },
616
+ "icon": {
617
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
618
+ "type": "string",
619
+ "title": "icon"
620
+ }
621
+ },
622
+ "required": [
623
+ "event",
624
+ "icon",
625
+ "iconAlt",
626
+ "iconType"
627
+ ]
628
+ },
560
629
  "EditableHtmlPluginConfigureRequired": {
561
630
  "title": "EditableHtmlPluginConfigureRequired",
562
631
  "type": "object",
@@ -608,6 +677,43 @@
608
677
  "title": "disabled"
609
678
  }
610
679
  }
680
+ },
681
+ "customPlugins": {
682
+ "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.",
683
+ "type": "array",
684
+ "items": {
685
+ "title": "CustomPlugin",
686
+ "type": "object",
687
+ "properties": {
688
+ "event": {
689
+ "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\"",
690
+ "type": "string",
691
+ "title": "event"
692
+ },
693
+ "iconAlt": {
694
+ "description": "The alt for the custom button icon",
695
+ "type": "string",
696
+ "title": "iconAlt"
697
+ },
698
+ "iconType": {
699
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
700
+ "type": "string",
701
+ "title": "iconType"
702
+ },
703
+ "icon": {
704
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
705
+ "type": "string",
706
+ "title": "icon"
707
+ }
708
+ },
709
+ "required": [
710
+ "event",
711
+ "icon",
712
+ "iconAlt",
713
+ "iconType"
714
+ ]
715
+ },
716
+ "title": "customPlugins"
611
717
  }
612
718
  }
613
719
  },
@@ -293,6 +293,35 @@ Properties of the `image` object:
293
293
 
294
294
  Indicates if the plugin is disabled or not
295
295
 
296
+ ### `customPlugins` (array)
297
+
298
+ An array of objects that determine custom plugins.
299
+ 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).
300
+ Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
301
+
302
+ The object is an array with all elements of the type `object`.
303
+
304
+ The array object has the following properties:
305
+
306
+ #### `event` (string, required)
307
+
308
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
309
+ PIE will emit the event prefixed with "PIE-".
310
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
311
+
312
+ #### `iconAlt` (string, required)
313
+
314
+ The alt for the custom button icon
315
+
316
+ #### `iconType` (string, required)
317
+
318
+ The icon type.
319
+ Currently, only "SVG" is supported.
320
+
321
+ #### `icon` (string, required)
322
+
323
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
324
+
296
325
  ## `EditableHtmlButtonConfigure` (object)
297
326
 
298
327
  Properties of the `EditableHtmlButtonConfigure` object:
@@ -301,6 +330,29 @@ Properties of the `EditableHtmlButtonConfigure` object:
301
330
 
302
331
  Indicates if the plugin is disabled or not
303
332
 
333
+ ## `CustomPlugin` (object)
334
+
335
+ Properties of the `CustomPlugin` object:
336
+
337
+ ### `event` (string, required)
338
+
339
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
340
+ PIE will emit the event prefixed with "PIE-".
341
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
342
+
343
+ ### `iconAlt` (string, required)
344
+
345
+ The alt for the custom button icon
346
+
347
+ ### `iconType` (string, required)
348
+
349
+ The icon type.
350
+ Currently, only "SVG" is supported.
351
+
352
+ ### `icon` (string, required)
353
+
354
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
355
+
304
356
  ## `EditableHtmlPluginConfigureRequired` (object)
305
357
 
306
358
  Properties of the `EditableHtmlPluginConfigureRequired` object:
@@ -341,6 +393,35 @@ Properties of the `image` object:
341
393
 
342
394
  Indicates if the plugin is disabled or not
343
395
 
396
+ #### `customPlugins` (array)
397
+
398
+ An array of objects that determine custom plugins.
399
+ 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).
400
+ Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
401
+
402
+ The object is an array with all elements of the type `object`.
403
+
404
+ The array object has the following properties:
405
+
406
+ ##### `event` (string, required)
407
+
408
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
409
+ PIE will emit the event prefixed with "PIE-".
410
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
411
+
412
+ ##### `iconAlt` (string, required)
413
+
414
+ The alt for the custom button icon
415
+
416
+ ##### `iconType` (string, required)
417
+
418
+ The icon type.
419
+ Currently, only "SVG" is supported.
420
+
421
+ ##### `icon` (string, required)
422
+
423
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
424
+
344
425
  ### `required` (boolean)
345
426
 
346
427
  Indicates if the item is required and the value cannot be empty
@@ -1,4 +1,4 @@
1
- import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_lodash, _dll_pie_framework__mathquill, _dll_debug} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.5.2/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_lodash, _dll_pie_framework__mathquill, _dll_debug} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.5.3/module/index.js";
2
2
  import {_dll_pie_lib__pie_toolbox_config_ui, _dll_pie_lib__pie_toolbox_math_toolbar, _dll_pie_lib__pie_toolbox_editable_html} from "../../../@pie-lib/pie-toolbox-module@4.0.0/module/index.js";
3
3
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
4
4
  function getDefaultExportFromCjs(x) {
package/module/element.js CHANGED
@@ -1,4 +1,4 @@
1
- import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_pie_lib__pie_toolbox_math_rendering_accessible, _dll_lodash, _dll_pie_framework__mathquill, _dll_debug} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.5.2/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_pie_lib__pie_toolbox_math_rendering_accessible, _dll_lodash, _dll_pie_framework__mathquill, _dll_debug} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.5.3/module/index.js";
2
2
  import {_dll_pie_lib__pie_toolbox_math_toolbar, _dll_pie_lib__pie_toolbox_math_input, _dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_correct_answer_toggle} from "../../../@pie-lib/pie-toolbox-module@4.0.0/module/index.js";
3
3
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
4
4
  function getDefaultExportFromCjs(x) {
@@ -4,7 +4,7 @@
4
4
  "modules": [
5
5
  {
6
6
  "name": "@pie-lib/pie-toolbox-math-rendering-module",
7
- "version": "1.5.2"
7
+ "version": "1.5.3"
8
8
  },
9
9
  {
10
10
  "name": "@pie-lib/pie-toolbox-module",
package/module/print.js CHANGED
@@ -1,4 +1,4 @@
1
- import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_pie_lib__pie_toolbox_math_rendering_accessible, _dll_lodash, _dll_pie_framework__mathquill, _dll_debug} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.5.2/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_pie_lib__pie_toolbox_math_rendering_accessible, _dll_lodash, _dll_pie_framework__mathquill, _dll_debug} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.5.3/module/index.js";
2
2
  import {_dll_pie_lib__pie_toolbox_math_toolbar, _dll_pie_lib__pie_toolbox_math_input, _dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_correct_answer_toggle} from "../../../@pie-lib/pie-toolbox-module@4.0.0/module/index.js";
3
3
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
4
4
  function getDefaultExportFromCjs(x) {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "repository": "pie-framework/pie-elements",
7
- "version": "7.13.1-next.0+6d8f12130",
7
+ "version": "7.13.1-next.18+867186f22",
8
8
  "main": "lib/index.js",
9
9
  "description": "",
10
10
  "scripts": {
@@ -14,7 +14,7 @@
14
14
  "@material-ui/core": "^3.9.2",
15
15
  "@pie-framework/mathquill": "^1.1.3",
16
16
  "@pie-framework/pie-player-events": "^0.1.0",
17
- "@pie-lib/pie-toolbox": "1.12.3",
17
+ "@pie-lib/pie-toolbox": "1.13.0",
18
18
  "classnames": "^2.2.5",
19
19
  "debug": "^4.1.1",
20
20
  "lodash": "^4.17.10",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "author": "",
26
26
  "license": "ISC",
27
- "gitHead": "6d8f121309d801dbe0346ec33a9eed8af766d392",
27
+ "gitHead": "867186f22b1b891c92a74e63fbf81f86d6485632",
28
28
  "module": "src/index.js",
29
29
  "exports": {
30
30
  ".": "./src/index.js",