@pie-element/rubric 3.7.1-next.0 → 3.7.1-next.16

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.
@@ -48,6 +48,43 @@
48
48
  "title": "disabled"
49
49
  }
50
50
  }
51
+ },
52
+ "customPlugins": {
53
+ "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.",
54
+ "type": "array",
55
+ "items": {
56
+ "title": "CustomPlugin",
57
+ "type": "object",
58
+ "properties": {
59
+ "event": {
60
+ "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\"",
61
+ "type": "string",
62
+ "title": "event"
63
+ },
64
+ "iconAlt": {
65
+ "description": "The alt for the custom button icon",
66
+ "type": "string",
67
+ "title": "iconAlt"
68
+ },
69
+ "iconType": {
70
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
71
+ "type": "string",
72
+ "title": "iconType"
73
+ },
74
+ "icon": {
75
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
76
+ "type": "string",
77
+ "title": "icon"
78
+ }
79
+ },
80
+ "required": [
81
+ "event",
82
+ "icon",
83
+ "iconAlt",
84
+ "iconType"
85
+ ]
86
+ },
87
+ "title": "customPlugins"
51
88
  }
52
89
  }
53
90
  },
@@ -225,6 +262,43 @@
225
262
  "title": "disabled"
226
263
  }
227
264
  }
265
+ },
266
+ "customPlugins": {
267
+ "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.",
268
+ "type": "array",
269
+ "items": {
270
+ "title": "CustomPlugin",
271
+ "type": "object",
272
+ "properties": {
273
+ "event": {
274
+ "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\"",
275
+ "type": "string",
276
+ "title": "event"
277
+ },
278
+ "iconAlt": {
279
+ "description": "The alt for the custom button icon",
280
+ "type": "string",
281
+ "title": "iconAlt"
282
+ },
283
+ "iconType": {
284
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
285
+ "type": "string",
286
+ "title": "iconType"
287
+ },
288
+ "icon": {
289
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
290
+ "type": "string",
291
+ "title": "icon"
292
+ }
293
+ },
294
+ "required": [
295
+ "event",
296
+ "icon",
297
+ "iconAlt",
298
+ "iconType"
299
+ ]
300
+ },
301
+ "title": "customPlugins"
228
302
  }
229
303
  }
230
304
  },
@@ -239,6 +313,38 @@
239
313
  }
240
314
  }
241
315
  },
316
+ "CustomPlugin": {
317
+ "title": "CustomPlugin",
318
+ "type": "object",
319
+ "properties": {
320
+ "event": {
321
+ "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\"",
322
+ "type": "string",
323
+ "title": "event"
324
+ },
325
+ "iconAlt": {
326
+ "description": "The alt for the custom button icon",
327
+ "type": "string",
328
+ "title": "iconAlt"
329
+ },
330
+ "iconType": {
331
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
332
+ "type": "string",
333
+ "title": "iconType"
334
+ },
335
+ "icon": {
336
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
337
+ "type": "string",
338
+ "title": "icon"
339
+ }
340
+ },
341
+ "required": [
342
+ "event",
343
+ "icon",
344
+ "iconAlt",
345
+ "iconType"
346
+ ]
347
+ },
242
348
  "ConfigureProp": {
243
349
  "title": "ConfigureProp",
244
350
  "type": "object",
@@ -36,6 +36,35 @@ Properties of the `image` object:
36
36
 
37
37
  Indicates if the plugin is disabled or not
38
38
 
39
+ ## `customPlugins` (array)
40
+
41
+ An array of objects that determine custom plugins.
42
+ 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).
43
+ Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
44
+
45
+ The object is an array with all elements of the type `object`.
46
+
47
+ The array object has the following properties:
48
+
49
+ ### `event` (string, required)
50
+
51
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
52
+ PIE will emit the event prefixed with "PIE-".
53
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
54
+
55
+ ### `iconAlt` (string, required)
56
+
57
+ The alt for the custom button icon
58
+
59
+ ### `iconType` (string, required)
60
+
61
+ The icon type.
62
+ Currently, only "SVG" is supported.
63
+
64
+ ### `icon` (string, required)
65
+
66
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
67
+
39
68
  # `settingsPanelDisabled` (boolean)
40
69
 
41
70
  Indicates if the settings panel is not available
@@ -178,6 +207,35 @@ Properties of the `image` object:
178
207
 
179
208
  Indicates if the plugin is disabled or not
180
209
 
210
+ ### `customPlugins` (array)
211
+
212
+ An array of objects that determine custom plugins.
213
+ 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).
214
+ Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
215
+
216
+ The object is an array with all elements of the type `object`.
217
+
218
+ The array object has the following properties:
219
+
220
+ #### `event` (string, required)
221
+
222
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
223
+ PIE will emit the event prefixed with "PIE-".
224
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
225
+
226
+ #### `iconAlt` (string, required)
227
+
228
+ The alt for the custom button icon
229
+
230
+ #### `iconType` (string, required)
231
+
232
+ The icon type.
233
+ Currently, only "SVG" is supported.
234
+
235
+ #### `icon` (string, required)
236
+
237
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
238
+
181
239
  ## `EditableHtmlButtonConfigure` (object)
182
240
 
183
241
  Properties of the `EditableHtmlButtonConfigure` object:
@@ -186,6 +244,29 @@ Properties of the `EditableHtmlButtonConfigure` object:
186
244
 
187
245
  Indicates if the plugin is disabled or not
188
246
 
247
+ ## `CustomPlugin` (object)
248
+
249
+ Properties of the `CustomPlugin` object:
250
+
251
+ ### `event` (string, required)
252
+
253
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
254
+ PIE will emit the event prefixed with "PIE-".
255
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
256
+
257
+ ### `iconAlt` (string, required)
258
+
259
+ The alt for the custom button icon
260
+
261
+ ### `iconType` (string, required)
262
+
263
+ The icon type.
264
+ Currently, only "SVG" is supported.
265
+
266
+ ### `icon` (string, required)
267
+
268
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
269
+
189
270
  ## `ConfigureProp` (object)
190
271
 
191
272
  Properties of the `ConfigureProp` object:
@@ -106,6 +106,43 @@
106
106
  "title": "disabled"
107
107
  }
108
108
  }
109
+ },
110
+ "customPlugins": {
111
+ "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.",
112
+ "type": "array",
113
+ "items": {
114
+ "title": "CustomPlugin",
115
+ "type": "object",
116
+ "properties": {
117
+ "event": {
118
+ "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\"",
119
+ "type": "string",
120
+ "title": "event"
121
+ },
122
+ "iconAlt": {
123
+ "description": "The alt for the custom button icon",
124
+ "type": "string",
125
+ "title": "iconAlt"
126
+ },
127
+ "iconType": {
128
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
129
+ "type": "string",
130
+ "title": "iconType"
131
+ },
132
+ "icon": {
133
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
134
+ "type": "string",
135
+ "title": "icon"
136
+ }
137
+ },
138
+ "required": [
139
+ "event",
140
+ "icon",
141
+ "iconAlt",
142
+ "iconType"
143
+ ]
144
+ },
145
+ "title": "customPlugins"
109
146
  }
110
147
  }
111
148
  },
@@ -120,6 +157,38 @@
120
157
  }
121
158
  }
122
159
  },
160
+ "CustomPlugin": {
161
+ "title": "CustomPlugin",
162
+ "type": "object",
163
+ "properties": {
164
+ "event": {
165
+ "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\"",
166
+ "type": "string",
167
+ "title": "event"
168
+ },
169
+ "iconAlt": {
170
+ "description": "The alt for the custom button icon",
171
+ "type": "string",
172
+ "title": "iconAlt"
173
+ },
174
+ "iconType": {
175
+ "description": "The icon type.\nCurrently, only \"SVG\" is supported.",
176
+ "type": "string",
177
+ "title": "iconType"
178
+ },
179
+ "icon": {
180
+ "description": "The icon string. Currently, only \"SVG\" is supported, so it needs to be a valid svg.",
181
+ "type": "string",
182
+ "title": "icon"
183
+ }
184
+ },
185
+ "required": [
186
+ "event",
187
+ "icon",
188
+ "iconAlt",
189
+ "iconType"
190
+ ]
191
+ },
123
192
  "ConfigureProp": {
124
193
  "title": "ConfigureProp",
125
194
  "type": "object",
@@ -76,6 +76,35 @@ Properties of the `image` object:
76
76
 
77
77
  Indicates if the plugin is disabled or not
78
78
 
79
+ ### `customPlugins` (array)
80
+
81
+ An array of objects that determine custom plugins.
82
+ 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).
83
+ Example can be found at https://github.com/pie-framework/pie-lib/blob/develop/packages/demo/pages/editable-html.js#L425.
84
+
85
+ The object is an array with all elements of the type `object`.
86
+
87
+ The array object has the following properties:
88
+
89
+ #### `event` (string, required)
90
+
91
+ The name of the custom event. It needs to be valid (only letters, numbers and "_" can be used).
92
+ PIE will emit the event prefixed with "PIE-".
93
+ Eg: event = 'client_custom_event_A' => the emitted event will be "PIE-client_custom_event_A"
94
+
95
+ #### `iconAlt` (string, required)
96
+
97
+ The alt for the custom button icon
98
+
99
+ #### `iconType` (string, required)
100
+
101
+ The icon type.
102
+ Currently, only "SVG" is supported.
103
+
104
+ #### `icon` (string, required)
105
+
106
+ The icon string. Currently, only "SVG" is supported, so it needs to be a valid svg.
107
+
79
108
  ## `EditableHtmlButtonConfigure` (object)
80
109
 
81
110
  Properties of the `EditableHtmlButtonConfigure` object:
@@ -84,6 +113,29 @@ Properties of the `EditableHtmlButtonConfigure` object:
84
113
 
85
114
  Indicates if the plugin is disabled or not
86
115
 
116
+ ## `CustomPlugin` (object)
117
+
118
+ Properties of the `CustomPlugin` object:
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
+
87
139
  ## `ConfigureProp` (object)
88
140
 
89
141
  Properties of the `ConfigureProp` object:
@@ -1,4 +1,4 @@
1
- import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_lodash, _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_debug} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.5.3/module/index.js";
2
2
  import {_dll_pie_lib__pie_toolbox_editable_html, _dll_pie_lib__pie_toolbox_config_ui} 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_react_dom, _dll_classnames, _dll_debug} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.5.2/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_debug} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.5.3/module/index.js";
2
2
  import {_dll_pie_lib__pie_toolbox_render_ui} 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_react_dom, _dll_classnames, _dll_lodash, _dll_pie_lib__pie_toolbox_math_rendering_accessible, _dll_debug} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.5.2/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_lodash, _dll_pie_lib__pie_toolbox_math_rendering_accessible, _dll_debug} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.5.3/module/index.js";
2
2
  import {_dll_pie_lib__pie_toolbox_render_ui} 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-element/rubric",
3
- "version": "3.7.1-next.0+6d8f12130",
3
+ "version": "3.7.1-next.16+44cb8eb36",
4
4
  "main": "lib/index.js",
5
5
  "module": "src/index.js",
6
6
  "description": "Rubric Scoring Interaction",
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "author": "pie framework developers",
17
17
  "license": "ISC",
18
- "gitHead": "6d8f121309d801dbe0346ec33a9eed8af766d392",
18
+ "gitHead": "44cb8eb36e997cd5218007c604c8d94137022f6e",
19
19
  "scripts": {
20
20
  "postpublish": "../../scripts/postpublish"
21
21
  },