@pie-element/complex-rubric 2.19.5-next.45 → 2.19.5-next.47
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.
- package/controller/package.json +1 -1
- package/module/configure.js +102 -104
- package/module/element.js +102 -104
- package/module/manifest.json +1 -1
- package/module/print.js +102 -104
- package/package.json +4 -4
package/controller/package.json
CHANGED
package/module/configure.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.24.
|
|
1
|
+
import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.24.4/module/index.js";
|
|
2
2
|
import RubricConfigure from '@pie-element/rubric/configure/lib';
|
|
3
3
|
import {_dll_pie_lib__pie_toolbox_editable_html, _dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_config_ui} from "../../../@pie-lib/pie-toolbox-module@4.24.3/module/index.js";
|
|
4
4
|
function _mergeNamespaces(n, m) {
|
|
@@ -42042,7 +42042,7 @@ mathjaxScript.initializeMathJax = mathjaxScript.MathJaxVersion = void 0;
|
|
|
42042
42042
|
var _renderMath = renderMath$1;
|
|
42043
42043
|
var MathJaxVersion = '3.2.2';
|
|
42044
42044
|
mathjaxScript.MathJaxVersion = MathJaxVersion;
|
|
42045
|
-
var initializeMathJax = function initializeMathJax(renderOpts
|
|
42045
|
+
var initializeMathJax = function initializeMathJax(renderOpts) {
|
|
42046
42046
|
if (renderOpts !== null && renderOpts !== void 0 && renderOpts.useSingleDollar) {
|
|
42047
42047
|
console.warn('[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)');
|
|
42048
42048
|
}
|
|
@@ -42065,60 +42065,57 @@ var initializeMathJax = function initializeMathJax(renderOpts, callback) {
|
|
|
42065
42065
|
},
|
|
42066
42066
|
displayMath: [['$$', '$$'], ['\\[', '\\]']]
|
|
42067
42067
|
};
|
|
42068
|
-
window.
|
|
42069
|
-
|
|
42070
|
-
|
|
42071
|
-
|
|
42072
|
-
|
|
42073
|
-
|
|
42074
|
-
|
|
42075
|
-
|
|
42076
|
-
|
|
42077
|
-
|
|
42078
|
-
|
|
42079
|
-
|
|
42080
|
-
|
|
42081
|
-
|
|
42082
|
-
|
|
42083
|
-
|
|
42084
|
-
|
|
42085
|
-
|
|
42086
|
-
|
|
42087
|
-
|
|
42088
|
-
if (callback) {
|
|
42089
|
-
callback();
|
|
42068
|
+
window.mathjaxLoadedP = new Promise(function (resolve) {
|
|
42069
|
+
window.MathJax = {
|
|
42070
|
+
startup: {
|
|
42071
|
+
typeset: false,
|
|
42072
|
+
ready: function ready() {
|
|
42073
|
+
var mathjax = MathJax._.mathjax.mathjax;
|
|
42074
|
+
var STATE = MathJax._.core.MathItem.STATE;
|
|
42075
|
+
var Menu = MathJax._.ui.menu.Menu.Menu;
|
|
42076
|
+
var rerender = Menu.prototype.rerender;
|
|
42077
|
+
Menu.prototype.rerender = function () {
|
|
42078
|
+
var _this = this;
|
|
42079
|
+
var start = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : STATE.TYPESET;
|
|
42080
|
+
mathjax.handleRetriesFor(function () {
|
|
42081
|
+
return rerender.call(_this, start);
|
|
42082
|
+
});
|
|
42083
|
+
};
|
|
42084
|
+
MathJax.startup.defaultReady();
|
|
42085
|
+
var globalObj = (0, _renderMath.getGlobal)();
|
|
42086
|
+
globalObj.instance = MathJax;
|
|
42087
|
+
resolve();
|
|
42090
42088
|
}
|
|
42091
|
-
}
|
|
42092
|
-
},
|
|
42093
|
-
loader: {
|
|
42094
|
-
load: ['input/mml'],
|
|
42095
|
-
preLoad: function preLoad() {}
|
|
42096
|
-
},
|
|
42097
|
-
tex: texConfig,
|
|
42098
|
-
chtml: {
|
|
42099
|
-
fontURL: 'https://unpkg.com/mathjax-full@3.2.2/ts/output/chtml/fonts/tex-woff-v2',
|
|
42100
|
-
displayAlign: 'center'
|
|
42101
|
-
},
|
|
42102
|
-
customKey: '@pie-lib/math-rendering-accessible@1',
|
|
42103
|
-
options: {
|
|
42104
|
-
enableEnrichment: true,
|
|
42105
|
-
sre: {
|
|
42106
|
-
speech: 'deep'
|
|
42107
42089
|
},
|
|
42108
|
-
|
|
42109
|
-
|
|
42110
|
-
|
|
42111
|
-
|
|
42112
|
-
|
|
42090
|
+
loader: {
|
|
42091
|
+
load: ['input/mml']
|
|
42092
|
+
},
|
|
42093
|
+
tex: texConfig,
|
|
42094
|
+
chtml: {
|
|
42095
|
+
fontURL: 'https://unpkg.com/mathjax-full@3.2.2/ts/output/chtml/fonts/tex-woff-v2',
|
|
42096
|
+
displayAlign: 'center'
|
|
42097
|
+
},
|
|
42098
|
+
customKey: '@pie-lib/math-rendering-accessible@1',
|
|
42099
|
+
options: {
|
|
42100
|
+
enableEnrichment: true,
|
|
42101
|
+
sre: {
|
|
42102
|
+
speech: 'deep'
|
|
42103
|
+
},
|
|
42104
|
+
menuOptions: {
|
|
42105
|
+
settings: {
|
|
42106
|
+
assistiveMml: true,
|
|
42107
|
+
collapsible: false,
|
|
42108
|
+
explorer: false
|
|
42109
|
+
}
|
|
42113
42110
|
}
|
|
42114
42111
|
}
|
|
42115
|
-
}
|
|
42116
|
-
|
|
42117
|
-
|
|
42118
|
-
|
|
42119
|
-
|
|
42120
|
-
|
|
42121
|
-
|
|
42112
|
+
};
|
|
42113
|
+
var script = document.createElement('script');
|
|
42114
|
+
script.type = 'text/javascript';
|
|
42115
|
+
script.src = ("https://cdn.jsdelivr.net/npm/mathjax@").concat(MathJaxVersion, "/es5/tex-chtml-full.js");
|
|
42116
|
+
script.async = true;
|
|
42117
|
+
document.body.appendChild(script);
|
|
42118
|
+
});
|
|
42122
42119
|
};
|
|
42123
42120
|
mathjaxScript.initializeMathJax = initializeMathJax;
|
|
42124
42121
|
var normalization$1 = {};
|
|
@@ -101869,36 +101866,11 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
101869
101866
|
fixMathElements(executeOn);
|
|
101870
101867
|
adjustMathMLStyle(executeOn);
|
|
101871
101868
|
var mathJaxCustomKey = getMathJaxCustomKey();
|
|
101872
|
-
|
|
101873
|
-
var mathJaxInstance = getGlobal().instance;
|
|
101874
|
-
if (mathJaxInstance) {
|
|
101875
|
-
mathJaxInstance.texReset();
|
|
101876
|
-
mathJaxInstance.typesetClear();
|
|
101877
|
-
mathJaxInstance.typesetPromise([executeOn]).then(function () {
|
|
101878
|
-
try {
|
|
101879
|
-
removeExcessMjxContainers(executeOn);
|
|
101880
|
-
removePlaceholdersAndRestoreDisplay();
|
|
101881
|
-
var updatedDocument = mathJaxInstance.startup.document;
|
|
101882
|
-
var list = updatedDocument.math.list;
|
|
101883
|
-
for (var item = list.next; (0, _typeof2["default"])(item.data) !== 'symbol'; item = item.next) {
|
|
101884
|
-
var mathMl = toMMl(item.data.root);
|
|
101885
|
-
var parsedMathMl = mathMl.replaceAll('\n', '');
|
|
101886
|
-
item.data.typesetRoot.setAttribute('data-mathml', parsedMathMl);
|
|
101887
|
-
}
|
|
101888
|
-
} catch (e) {
|
|
101889
|
-
console.error('Error post-processing MathJax typesetting:', e.toString());
|
|
101890
|
-
}
|
|
101891
|
-
mathJaxInstance.startup.document.clear();
|
|
101892
|
-
})["catch"](function (error) {
|
|
101893
|
-
console.error('Error in typesetting with MathJax:', error);
|
|
101894
|
-
});
|
|
101895
|
-
}
|
|
101896
|
-
};
|
|
101897
|
-
if ((!window.MathJax || window.MathJax.version !== _mathjaxScript.MathJaxVersion) && !window.mathjaxInitialising || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
|
|
101869
|
+
if ((!window.MathJax || window.MathJax.version !== _mathjaxScript.MathJaxVersion) && !window.mathjaxLoadedP || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
|
|
101898
101870
|
renderOpts = renderOpts || defaultOpts();
|
|
101899
|
-
(0, _mathjaxScript.initializeMathJax)(renderOpts
|
|
101871
|
+
(0, _mathjaxScript.initializeMathJax)(renderOpts);
|
|
101900
101872
|
}
|
|
101901
|
-
if (isString && window.MathJax && window.
|
|
101873
|
+
if (isString && window.MathJax && window.mathjaxLoadedP) {
|
|
101902
101874
|
try {
|
|
101903
101875
|
MathJax.texReset();
|
|
101904
101876
|
MathJax.typesetClear();
|
|
@@ -101913,8 +101885,34 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
101913
101885
|
console.error('Error rendering math:', error.message);
|
|
101914
101886
|
}
|
|
101915
101887
|
}
|
|
101916
|
-
if (window.
|
|
101917
|
-
|
|
101888
|
+
if (window.mathjaxLoadedP) {
|
|
101889
|
+
window.mathjaxLoadedP.then(function () {
|
|
101890
|
+
var mathJaxInstance = getGlobal().instance;
|
|
101891
|
+
if (mathJaxInstance) {
|
|
101892
|
+
mathJaxInstance.texReset();
|
|
101893
|
+
mathJaxInstance.typesetClear();
|
|
101894
|
+
mathJaxInstance.typesetPromise([executeOn]).then(function () {
|
|
101895
|
+
try {
|
|
101896
|
+
removeExcessMjxContainers(executeOn);
|
|
101897
|
+
removePlaceholdersAndRestoreDisplay();
|
|
101898
|
+
var _updatedDocument = mathJaxInstance.startup.document;
|
|
101899
|
+
var _list = _updatedDocument.math.list;
|
|
101900
|
+
for (var _item = _list.next; (0, _typeof2["default"])(_item.data) !== 'symbol'; _item = _item.next) {
|
|
101901
|
+
var _mathMl = toMMl(_item.data.root);
|
|
101902
|
+
var _parsedMathMl = _mathMl.replaceAll('\n', '');
|
|
101903
|
+
_item.data.typesetRoot.setAttribute('data-mathml', _parsedMathMl);
|
|
101904
|
+
}
|
|
101905
|
+
} catch (e) {
|
|
101906
|
+
console.error('Error post-processing MathJax typesetting:', e.toString());
|
|
101907
|
+
}
|
|
101908
|
+
mathJaxInstance.startup.document.clear();
|
|
101909
|
+
})["catch"](function (error) {
|
|
101910
|
+
console.error('Error in typesetting with MathJax:', error);
|
|
101911
|
+
});
|
|
101912
|
+
}
|
|
101913
|
+
})["catch"](function (error) {
|
|
101914
|
+
console.error('Error in initializing MathJax:', error);
|
|
101915
|
+
});
|
|
101918
101916
|
}
|
|
101919
101917
|
};
|
|
101920
101918
|
if (skipWaitForMathRenderingLib) {
|
|
@@ -149379,7 +149377,27 @@ var buildPlugins = function buildPlugins(activePlugins, customPlugins, opts) {
|
|
|
149379
149377
|
if (opts.responseArea && opts.responseArea.type === 'math-templated') {
|
|
149380
149378
|
tablePlugins.push(respAreaPlugin);
|
|
149381
149379
|
}
|
|
149382
|
-
var
|
|
149380
|
+
var builtCustomPlugins = [];
|
|
149381
|
+
customPlugins.forEach(function (customPlugin) {
|
|
149382
|
+
var _ref2 = customPlugin || ({}), event = _ref2.event, icon = _ref2.icon, iconType = _ref2.iconType, iconAlt = _ref2.iconAlt;
|
|
149383
|
+
function isValidEventName(eventName) {
|
|
149384
|
+
if (typeof eventName !== 'string' || eventName.length === 0) {
|
|
149385
|
+
return false;
|
|
149386
|
+
}
|
|
149387
|
+
var regex = /^[a-zA-Z0-9_]+$/;
|
|
149388
|
+
return regex.test(eventName);
|
|
149389
|
+
}
|
|
149390
|
+
if (!isValidEventName(event)) {
|
|
149391
|
+
console.error(("The event name: ").concat(event, " is not a valid event name!"));
|
|
149392
|
+
return;
|
|
149393
|
+
}
|
|
149394
|
+
if (!icon && !iconType && !iconAlt) {
|
|
149395
|
+
console.error('Your custom button requires icon, iconType and iconAlt');
|
|
149396
|
+
return;
|
|
149397
|
+
}
|
|
149398
|
+
builtCustomPlugins.push((0, _customPlugin["default"])('custom-plugin', customPlugin));
|
|
149399
|
+
});
|
|
149400
|
+
return (0, _compact["default"])([addIf('table', (0, _table["default"])(opts.table, (0, _compact["default"])(tablePlugins))), addIf('bold', MarkHotkey({
|
|
149383
149401
|
key: 'b',
|
|
149384
149402
|
type: 'bold',
|
|
149385
149403
|
icon: _react$1e["default"].createElement(_FormatBold["default"], null),
|
|
@@ -149429,27 +149447,7 @@ var buildPlugins = function buildPlugins(activePlugins, customPlugins, opts) {
|
|
|
149429
149447
|
icon: _react$1e["default"].createElement(_FormatListNumbered["default"], null)
|
|
149430
149448
|
})), addIf('redo', UndoRedo('redo')), addIf('undo', UndoRedo('undo')), (0, _toolbar["default"])(opts.toolbar), (0, _slateSoftBreak["default"])({
|
|
149431
149449
|
shift: true
|
|
149432
|
-
}), addIf('responseArea', respAreaPlugin), addIf('html', (0, _html$1["default"])(opts.html))]));
|
|
149433
|
-
customPlugins.forEach(function (customPlugin) {
|
|
149434
|
-
var _ref2 = customPlugin || ({}), event = _ref2.event, icon = _ref2.icon, iconType = _ref2.iconType, iconAlt = _ref2.iconAlt;
|
|
149435
|
-
function isValidEventName(eventName) {
|
|
149436
|
-
if (typeof eventName !== 'string' || eventName.length === 0) {
|
|
149437
|
-
return false;
|
|
149438
|
-
}
|
|
149439
|
-
var regex = /^[a-zA-Z0-9_]+$/;
|
|
149440
|
-
return regex.test(eventName);
|
|
149441
|
-
}
|
|
149442
|
-
if (!isValidEventName(event)) {
|
|
149443
|
-
console.error(("The event name: ").concat(event, " is not a valid event name!"));
|
|
149444
|
-
return;
|
|
149445
|
-
}
|
|
149446
|
-
if (!icon && !iconType && !iconAlt) {
|
|
149447
|
-
console.error('Your custom button requires icon, iconType and iconAlt');
|
|
149448
|
-
return;
|
|
149449
|
-
}
|
|
149450
|
-
builtPlugins.push((0, _customPlugin["default"])('custom-plugin', customPlugin));
|
|
149451
|
-
});
|
|
149452
|
-
return builtPlugins;
|
|
149450
|
+
})], builtCustomPlugins, [addIf('responseArea', respAreaPlugin), addIf('html', (0, _html$1["default"])(opts.html)), EnterHandlingPlugin()]));
|
|
149453
149451
|
};
|
|
149454
149452
|
plugins.buildPlugins = buildPlugins;
|
|
149455
149453
|
var require$$25 = getAugmentedNamespace(slatePlainSerializer_es);
|
package/module/element.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.24.
|
|
1
|
+
import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.24.4/module/index.js";
|
|
2
2
|
import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@4.24.3/module/index.js";
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
m.forEach(function (e) {
|
|
@@ -65368,7 +65368,7 @@ mathjaxScript.initializeMathJax = mathjaxScript.MathJaxVersion = void 0;
|
|
|
65368
65368
|
var _renderMath = renderMath$1;
|
|
65369
65369
|
var MathJaxVersion = '3.2.2';
|
|
65370
65370
|
mathjaxScript.MathJaxVersion = MathJaxVersion;
|
|
65371
|
-
var initializeMathJax = function initializeMathJax(renderOpts
|
|
65371
|
+
var initializeMathJax = function initializeMathJax(renderOpts) {
|
|
65372
65372
|
if (renderOpts !== null && renderOpts !== void 0 && renderOpts.useSingleDollar) {
|
|
65373
65373
|
console.warn('[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)');
|
|
65374
65374
|
}
|
|
@@ -65391,60 +65391,57 @@ var initializeMathJax = function initializeMathJax(renderOpts, callback) {
|
|
|
65391
65391
|
},
|
|
65392
65392
|
displayMath: [['$$', '$$'], ['\\[', '\\]']]
|
|
65393
65393
|
};
|
|
65394
|
-
window.
|
|
65395
|
-
|
|
65396
|
-
|
|
65397
|
-
|
|
65398
|
-
|
|
65399
|
-
|
|
65400
|
-
|
|
65401
|
-
|
|
65402
|
-
|
|
65403
|
-
|
|
65404
|
-
|
|
65405
|
-
|
|
65406
|
-
|
|
65407
|
-
|
|
65408
|
-
|
|
65409
|
-
|
|
65410
|
-
|
|
65411
|
-
|
|
65412
|
-
|
|
65413
|
-
|
|
65414
|
-
if (callback) {
|
|
65415
|
-
callback();
|
|
65394
|
+
window.mathjaxLoadedP = new Promise(function (resolve) {
|
|
65395
|
+
window.MathJax = {
|
|
65396
|
+
startup: {
|
|
65397
|
+
typeset: false,
|
|
65398
|
+
ready: function ready() {
|
|
65399
|
+
var mathjax = MathJax._.mathjax.mathjax;
|
|
65400
|
+
var STATE = MathJax._.core.MathItem.STATE;
|
|
65401
|
+
var Menu = MathJax._.ui.menu.Menu.Menu;
|
|
65402
|
+
var rerender = Menu.prototype.rerender;
|
|
65403
|
+
Menu.prototype.rerender = function () {
|
|
65404
|
+
var _this = this;
|
|
65405
|
+
var start = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : STATE.TYPESET;
|
|
65406
|
+
mathjax.handleRetriesFor(function () {
|
|
65407
|
+
return rerender.call(_this, start);
|
|
65408
|
+
});
|
|
65409
|
+
};
|
|
65410
|
+
MathJax.startup.defaultReady();
|
|
65411
|
+
var globalObj = (0, _renderMath.getGlobal)();
|
|
65412
|
+
globalObj.instance = MathJax;
|
|
65413
|
+
resolve();
|
|
65416
65414
|
}
|
|
65417
|
-
}
|
|
65418
|
-
},
|
|
65419
|
-
loader: {
|
|
65420
|
-
load: ['input/mml'],
|
|
65421
|
-
preLoad: function preLoad() {}
|
|
65422
|
-
},
|
|
65423
|
-
tex: texConfig,
|
|
65424
|
-
chtml: {
|
|
65425
|
-
fontURL: 'https://unpkg.com/mathjax-full@3.2.2/ts/output/chtml/fonts/tex-woff-v2',
|
|
65426
|
-
displayAlign: 'center'
|
|
65427
|
-
},
|
|
65428
|
-
customKey: '@pie-lib/math-rendering-accessible@1',
|
|
65429
|
-
options: {
|
|
65430
|
-
enableEnrichment: true,
|
|
65431
|
-
sre: {
|
|
65432
|
-
speech: 'deep'
|
|
65433
65415
|
},
|
|
65434
|
-
|
|
65435
|
-
|
|
65436
|
-
|
|
65437
|
-
|
|
65438
|
-
|
|
65416
|
+
loader: {
|
|
65417
|
+
load: ['input/mml']
|
|
65418
|
+
},
|
|
65419
|
+
tex: texConfig,
|
|
65420
|
+
chtml: {
|
|
65421
|
+
fontURL: 'https://unpkg.com/mathjax-full@3.2.2/ts/output/chtml/fonts/tex-woff-v2',
|
|
65422
|
+
displayAlign: 'center'
|
|
65423
|
+
},
|
|
65424
|
+
customKey: '@pie-lib/math-rendering-accessible@1',
|
|
65425
|
+
options: {
|
|
65426
|
+
enableEnrichment: true,
|
|
65427
|
+
sre: {
|
|
65428
|
+
speech: 'deep'
|
|
65429
|
+
},
|
|
65430
|
+
menuOptions: {
|
|
65431
|
+
settings: {
|
|
65432
|
+
assistiveMml: true,
|
|
65433
|
+
collapsible: false,
|
|
65434
|
+
explorer: false
|
|
65435
|
+
}
|
|
65439
65436
|
}
|
|
65440
65437
|
}
|
|
65441
|
-
}
|
|
65442
|
-
|
|
65443
|
-
|
|
65444
|
-
|
|
65445
|
-
|
|
65446
|
-
|
|
65447
|
-
|
|
65438
|
+
};
|
|
65439
|
+
var script = document.createElement('script');
|
|
65440
|
+
script.type = 'text/javascript';
|
|
65441
|
+
script.src = ("https://cdn.jsdelivr.net/npm/mathjax@").concat(MathJaxVersion, "/es5/tex-chtml-full.js");
|
|
65442
|
+
script.async = true;
|
|
65443
|
+
document.body.appendChild(script);
|
|
65444
|
+
});
|
|
65448
65445
|
};
|
|
65449
65446
|
mathjaxScript.initializeMathJax = initializeMathJax;
|
|
65450
65447
|
var normalization$1 = {};
|
|
@@ -125130,36 +125127,11 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
125130
125127
|
fixMathElements(executeOn);
|
|
125131
125128
|
adjustMathMLStyle(executeOn);
|
|
125132
125129
|
var mathJaxCustomKey = getMathJaxCustomKey();
|
|
125133
|
-
|
|
125134
|
-
var mathJaxInstance = getGlobal().instance;
|
|
125135
|
-
if (mathJaxInstance) {
|
|
125136
|
-
mathJaxInstance.texReset();
|
|
125137
|
-
mathJaxInstance.typesetClear();
|
|
125138
|
-
mathJaxInstance.typesetPromise([executeOn]).then(function () {
|
|
125139
|
-
try {
|
|
125140
|
-
removeExcessMjxContainers(executeOn);
|
|
125141
|
-
removePlaceholdersAndRestoreDisplay();
|
|
125142
|
-
var updatedDocument = mathJaxInstance.startup.document;
|
|
125143
|
-
var list = updatedDocument.math.list;
|
|
125144
|
-
for (var item = list.next; (0, _typeof2["default"])(item.data) !== 'symbol'; item = item.next) {
|
|
125145
|
-
var mathMl = toMMl(item.data.root);
|
|
125146
|
-
var parsedMathMl = mathMl.replaceAll('\n', '');
|
|
125147
|
-
item.data.typesetRoot.setAttribute('data-mathml', parsedMathMl);
|
|
125148
|
-
}
|
|
125149
|
-
} catch (e) {
|
|
125150
|
-
console.error('Error post-processing MathJax typesetting:', e.toString());
|
|
125151
|
-
}
|
|
125152
|
-
mathJaxInstance.startup.document.clear();
|
|
125153
|
-
})["catch"](function (error) {
|
|
125154
|
-
console.error('Error in typesetting with MathJax:', error);
|
|
125155
|
-
});
|
|
125156
|
-
}
|
|
125157
|
-
};
|
|
125158
|
-
if ((!window.MathJax || window.MathJax.version !== _mathjaxScript.MathJaxVersion) && !window.mathjaxInitialising || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
|
|
125130
|
+
if ((!window.MathJax || window.MathJax.version !== _mathjaxScript.MathJaxVersion) && !window.mathjaxLoadedP || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
|
|
125159
125131
|
renderOpts = renderOpts || defaultOpts();
|
|
125160
|
-
(0, _mathjaxScript.initializeMathJax)(renderOpts
|
|
125132
|
+
(0, _mathjaxScript.initializeMathJax)(renderOpts);
|
|
125161
125133
|
}
|
|
125162
|
-
if (isString && window.MathJax && window.
|
|
125134
|
+
if (isString && window.MathJax && window.mathjaxLoadedP) {
|
|
125163
125135
|
try {
|
|
125164
125136
|
MathJax.texReset();
|
|
125165
125137
|
MathJax.typesetClear();
|
|
@@ -125174,8 +125146,34 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
125174
125146
|
console.error('Error rendering math:', error.message);
|
|
125175
125147
|
}
|
|
125176
125148
|
}
|
|
125177
|
-
if (window.
|
|
125178
|
-
|
|
125149
|
+
if (window.mathjaxLoadedP) {
|
|
125150
|
+
window.mathjaxLoadedP.then(function () {
|
|
125151
|
+
var mathJaxInstance = getGlobal().instance;
|
|
125152
|
+
if (mathJaxInstance) {
|
|
125153
|
+
mathJaxInstance.texReset();
|
|
125154
|
+
mathJaxInstance.typesetClear();
|
|
125155
|
+
mathJaxInstance.typesetPromise([executeOn]).then(function () {
|
|
125156
|
+
try {
|
|
125157
|
+
removeExcessMjxContainers(executeOn);
|
|
125158
|
+
removePlaceholdersAndRestoreDisplay();
|
|
125159
|
+
var _updatedDocument = mathJaxInstance.startup.document;
|
|
125160
|
+
var _list = _updatedDocument.math.list;
|
|
125161
|
+
for (var _item = _list.next; (0, _typeof2["default"])(_item.data) !== 'symbol'; _item = _item.next) {
|
|
125162
|
+
var _mathMl = toMMl(_item.data.root);
|
|
125163
|
+
var _parsedMathMl = _mathMl.replaceAll('\n', '');
|
|
125164
|
+
_item.data.typesetRoot.setAttribute('data-mathml', _parsedMathMl);
|
|
125165
|
+
}
|
|
125166
|
+
} catch (e) {
|
|
125167
|
+
console.error('Error post-processing MathJax typesetting:', e.toString());
|
|
125168
|
+
}
|
|
125169
|
+
mathJaxInstance.startup.document.clear();
|
|
125170
|
+
})["catch"](function (error) {
|
|
125171
|
+
console.error('Error in typesetting with MathJax:', error);
|
|
125172
|
+
});
|
|
125173
|
+
}
|
|
125174
|
+
})["catch"](function (error) {
|
|
125175
|
+
console.error('Error in initializing MathJax:', error);
|
|
125176
|
+
});
|
|
125179
125177
|
}
|
|
125180
125178
|
};
|
|
125181
125179
|
if (skipWaitForMathRenderingLib) {
|
|
@@ -147639,7 +147637,27 @@ var buildPlugins = function buildPlugins(activePlugins, customPlugins, opts) {
|
|
|
147639
147637
|
if (opts.responseArea && opts.responseArea.type === 'math-templated') {
|
|
147640
147638
|
tablePlugins.push(respAreaPlugin);
|
|
147641
147639
|
}
|
|
147642
|
-
var
|
|
147640
|
+
var builtCustomPlugins = [];
|
|
147641
|
+
customPlugins.forEach(function (customPlugin) {
|
|
147642
|
+
var _ref2 = customPlugin || ({}), event = _ref2.event, icon = _ref2.icon, iconType = _ref2.iconType, iconAlt = _ref2.iconAlt;
|
|
147643
|
+
function isValidEventName(eventName) {
|
|
147644
|
+
if (typeof eventName !== 'string' || eventName.length === 0) {
|
|
147645
|
+
return false;
|
|
147646
|
+
}
|
|
147647
|
+
var regex = /^[a-zA-Z0-9_]+$/;
|
|
147648
|
+
return regex.test(eventName);
|
|
147649
|
+
}
|
|
147650
|
+
if (!isValidEventName(event)) {
|
|
147651
|
+
console.error(("The event name: ").concat(event, " is not a valid event name!"));
|
|
147652
|
+
return;
|
|
147653
|
+
}
|
|
147654
|
+
if (!icon && !iconType && !iconAlt) {
|
|
147655
|
+
console.error('Your custom button requires icon, iconType and iconAlt');
|
|
147656
|
+
return;
|
|
147657
|
+
}
|
|
147658
|
+
builtCustomPlugins.push((0, _customPlugin["default"])('custom-plugin', customPlugin));
|
|
147659
|
+
});
|
|
147660
|
+
return (0, _compact["default"])([addIf('table', (0, _table["default"])(opts.table, (0, _compact["default"])(tablePlugins))), addIf('bold', MarkHotkey({
|
|
147643
147661
|
key: 'b',
|
|
147644
147662
|
type: 'bold',
|
|
147645
147663
|
icon: _react$1c["default"].createElement(_FormatBold["default"], null),
|
|
@@ -147689,27 +147707,7 @@ var buildPlugins = function buildPlugins(activePlugins, customPlugins, opts) {
|
|
|
147689
147707
|
icon: _react$1c["default"].createElement(_FormatListNumbered["default"], null)
|
|
147690
147708
|
})), addIf('redo', UndoRedo('redo')), addIf('undo', UndoRedo('undo')), (0, _toolbar["default"])(opts.toolbar), (0, _slateSoftBreak["default"])({
|
|
147691
147709
|
shift: true
|
|
147692
|
-
}), addIf('responseArea', respAreaPlugin), addIf('html', (0, _html$1["default"])(opts.html))]));
|
|
147693
|
-
customPlugins.forEach(function (customPlugin) {
|
|
147694
|
-
var _ref2 = customPlugin || ({}), event = _ref2.event, icon = _ref2.icon, iconType = _ref2.iconType, iconAlt = _ref2.iconAlt;
|
|
147695
|
-
function isValidEventName(eventName) {
|
|
147696
|
-
if (typeof eventName !== 'string' || eventName.length === 0) {
|
|
147697
|
-
return false;
|
|
147698
|
-
}
|
|
147699
|
-
var regex = /^[a-zA-Z0-9_]+$/;
|
|
147700
|
-
return regex.test(eventName);
|
|
147701
|
-
}
|
|
147702
|
-
if (!isValidEventName(event)) {
|
|
147703
|
-
console.error(("The event name: ").concat(event, " is not a valid event name!"));
|
|
147704
|
-
return;
|
|
147705
|
-
}
|
|
147706
|
-
if (!icon && !iconType && !iconAlt) {
|
|
147707
|
-
console.error('Your custom button requires icon, iconType and iconAlt');
|
|
147708
|
-
return;
|
|
147709
|
-
}
|
|
147710
|
-
builtPlugins.push((0, _customPlugin["default"])('custom-plugin', customPlugin));
|
|
147711
|
-
});
|
|
147712
|
-
return builtPlugins;
|
|
147710
|
+
})], builtCustomPlugins, [addIf('responseArea', respAreaPlugin), addIf('html', (0, _html$1["default"])(opts.html)), EnterHandlingPlugin()]));
|
|
147713
147711
|
};
|
|
147714
147712
|
plugins.buildPlugins = buildPlugins;
|
|
147715
147713
|
var require$$25 = getAugmentedNamespace(slatePlainSerializer_es);
|
package/module/manifest.json
CHANGED
package/module/print.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.24.
|
|
1
|
+
import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.24.4/module/index.js";
|
|
2
2
|
import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@4.24.3/module/index.js";
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
m.forEach(function (e) {
|
|
@@ -65368,7 +65368,7 @@ mathjaxScript.initializeMathJax = mathjaxScript.MathJaxVersion = void 0;
|
|
|
65368
65368
|
var _renderMath = renderMath$1;
|
|
65369
65369
|
var MathJaxVersion = '3.2.2';
|
|
65370
65370
|
mathjaxScript.MathJaxVersion = MathJaxVersion;
|
|
65371
|
-
var initializeMathJax = function initializeMathJax(renderOpts
|
|
65371
|
+
var initializeMathJax = function initializeMathJax(renderOpts) {
|
|
65372
65372
|
if (renderOpts !== null && renderOpts !== void 0 && renderOpts.useSingleDollar) {
|
|
65373
65373
|
console.warn('[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)');
|
|
65374
65374
|
}
|
|
@@ -65391,60 +65391,57 @@ var initializeMathJax = function initializeMathJax(renderOpts, callback) {
|
|
|
65391
65391
|
},
|
|
65392
65392
|
displayMath: [['$$', '$$'], ['\\[', '\\]']]
|
|
65393
65393
|
};
|
|
65394
|
-
window.
|
|
65395
|
-
|
|
65396
|
-
|
|
65397
|
-
|
|
65398
|
-
|
|
65399
|
-
|
|
65400
|
-
|
|
65401
|
-
|
|
65402
|
-
|
|
65403
|
-
|
|
65404
|
-
|
|
65405
|
-
|
|
65406
|
-
|
|
65407
|
-
|
|
65408
|
-
|
|
65409
|
-
|
|
65410
|
-
|
|
65411
|
-
|
|
65412
|
-
|
|
65413
|
-
|
|
65414
|
-
if (callback) {
|
|
65415
|
-
callback();
|
|
65394
|
+
window.mathjaxLoadedP = new Promise(function (resolve) {
|
|
65395
|
+
window.MathJax = {
|
|
65396
|
+
startup: {
|
|
65397
|
+
typeset: false,
|
|
65398
|
+
ready: function ready() {
|
|
65399
|
+
var mathjax = MathJax._.mathjax.mathjax;
|
|
65400
|
+
var STATE = MathJax._.core.MathItem.STATE;
|
|
65401
|
+
var Menu = MathJax._.ui.menu.Menu.Menu;
|
|
65402
|
+
var rerender = Menu.prototype.rerender;
|
|
65403
|
+
Menu.prototype.rerender = function () {
|
|
65404
|
+
var _this = this;
|
|
65405
|
+
var start = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : STATE.TYPESET;
|
|
65406
|
+
mathjax.handleRetriesFor(function () {
|
|
65407
|
+
return rerender.call(_this, start);
|
|
65408
|
+
});
|
|
65409
|
+
};
|
|
65410
|
+
MathJax.startup.defaultReady();
|
|
65411
|
+
var globalObj = (0, _renderMath.getGlobal)();
|
|
65412
|
+
globalObj.instance = MathJax;
|
|
65413
|
+
resolve();
|
|
65416
65414
|
}
|
|
65417
|
-
}
|
|
65418
|
-
},
|
|
65419
|
-
loader: {
|
|
65420
|
-
load: ['input/mml'],
|
|
65421
|
-
preLoad: function preLoad() {}
|
|
65422
|
-
},
|
|
65423
|
-
tex: texConfig,
|
|
65424
|
-
chtml: {
|
|
65425
|
-
fontURL: 'https://unpkg.com/mathjax-full@3.2.2/ts/output/chtml/fonts/tex-woff-v2',
|
|
65426
|
-
displayAlign: 'center'
|
|
65427
|
-
},
|
|
65428
|
-
customKey: '@pie-lib/math-rendering-accessible@1',
|
|
65429
|
-
options: {
|
|
65430
|
-
enableEnrichment: true,
|
|
65431
|
-
sre: {
|
|
65432
|
-
speech: 'deep'
|
|
65433
65415
|
},
|
|
65434
|
-
|
|
65435
|
-
|
|
65436
|
-
|
|
65437
|
-
|
|
65438
|
-
|
|
65416
|
+
loader: {
|
|
65417
|
+
load: ['input/mml']
|
|
65418
|
+
},
|
|
65419
|
+
tex: texConfig,
|
|
65420
|
+
chtml: {
|
|
65421
|
+
fontURL: 'https://unpkg.com/mathjax-full@3.2.2/ts/output/chtml/fonts/tex-woff-v2',
|
|
65422
|
+
displayAlign: 'center'
|
|
65423
|
+
},
|
|
65424
|
+
customKey: '@pie-lib/math-rendering-accessible@1',
|
|
65425
|
+
options: {
|
|
65426
|
+
enableEnrichment: true,
|
|
65427
|
+
sre: {
|
|
65428
|
+
speech: 'deep'
|
|
65429
|
+
},
|
|
65430
|
+
menuOptions: {
|
|
65431
|
+
settings: {
|
|
65432
|
+
assistiveMml: true,
|
|
65433
|
+
collapsible: false,
|
|
65434
|
+
explorer: false
|
|
65435
|
+
}
|
|
65439
65436
|
}
|
|
65440
65437
|
}
|
|
65441
|
-
}
|
|
65442
|
-
|
|
65443
|
-
|
|
65444
|
-
|
|
65445
|
-
|
|
65446
|
-
|
|
65447
|
-
|
|
65438
|
+
};
|
|
65439
|
+
var script = document.createElement('script');
|
|
65440
|
+
script.type = 'text/javascript';
|
|
65441
|
+
script.src = ("https://cdn.jsdelivr.net/npm/mathjax@").concat(MathJaxVersion, "/es5/tex-chtml-full.js");
|
|
65442
|
+
script.async = true;
|
|
65443
|
+
document.body.appendChild(script);
|
|
65444
|
+
});
|
|
65448
65445
|
};
|
|
65449
65446
|
mathjaxScript.initializeMathJax = initializeMathJax;
|
|
65450
65447
|
var normalization$1 = {};
|
|
@@ -125130,36 +125127,11 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
125130
125127
|
fixMathElements(executeOn);
|
|
125131
125128
|
adjustMathMLStyle(executeOn);
|
|
125132
125129
|
var mathJaxCustomKey = getMathJaxCustomKey();
|
|
125133
|
-
|
|
125134
|
-
var mathJaxInstance = getGlobal().instance;
|
|
125135
|
-
if (mathJaxInstance) {
|
|
125136
|
-
mathJaxInstance.texReset();
|
|
125137
|
-
mathJaxInstance.typesetClear();
|
|
125138
|
-
mathJaxInstance.typesetPromise([executeOn]).then(function () {
|
|
125139
|
-
try {
|
|
125140
|
-
removeExcessMjxContainers(executeOn);
|
|
125141
|
-
removePlaceholdersAndRestoreDisplay();
|
|
125142
|
-
var updatedDocument = mathJaxInstance.startup.document;
|
|
125143
|
-
var list = updatedDocument.math.list;
|
|
125144
|
-
for (var item = list.next; (0, _typeof2["default"])(item.data) !== 'symbol'; item = item.next) {
|
|
125145
|
-
var mathMl = toMMl(item.data.root);
|
|
125146
|
-
var parsedMathMl = mathMl.replaceAll('\n', '');
|
|
125147
|
-
item.data.typesetRoot.setAttribute('data-mathml', parsedMathMl);
|
|
125148
|
-
}
|
|
125149
|
-
} catch (e) {
|
|
125150
|
-
console.error('Error post-processing MathJax typesetting:', e.toString());
|
|
125151
|
-
}
|
|
125152
|
-
mathJaxInstance.startup.document.clear();
|
|
125153
|
-
})["catch"](function (error) {
|
|
125154
|
-
console.error('Error in typesetting with MathJax:', error);
|
|
125155
|
-
});
|
|
125156
|
-
}
|
|
125157
|
-
};
|
|
125158
|
-
if ((!window.MathJax || window.MathJax.version !== _mathjaxScript.MathJaxVersion) && !window.mathjaxInitialising || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
|
|
125130
|
+
if ((!window.MathJax || window.MathJax.version !== _mathjaxScript.MathJaxVersion) && !window.mathjaxLoadedP || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
|
|
125159
125131
|
renderOpts = renderOpts || defaultOpts();
|
|
125160
|
-
(0, _mathjaxScript.initializeMathJax)(renderOpts
|
|
125132
|
+
(0, _mathjaxScript.initializeMathJax)(renderOpts);
|
|
125161
125133
|
}
|
|
125162
|
-
if (isString && window.MathJax && window.
|
|
125134
|
+
if (isString && window.MathJax && window.mathjaxLoadedP) {
|
|
125163
125135
|
try {
|
|
125164
125136
|
MathJax.texReset();
|
|
125165
125137
|
MathJax.typesetClear();
|
|
@@ -125174,8 +125146,34 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
125174
125146
|
console.error('Error rendering math:', error.message);
|
|
125175
125147
|
}
|
|
125176
125148
|
}
|
|
125177
|
-
if (window.
|
|
125178
|
-
|
|
125149
|
+
if (window.mathjaxLoadedP) {
|
|
125150
|
+
window.mathjaxLoadedP.then(function () {
|
|
125151
|
+
var mathJaxInstance = getGlobal().instance;
|
|
125152
|
+
if (mathJaxInstance) {
|
|
125153
|
+
mathJaxInstance.texReset();
|
|
125154
|
+
mathJaxInstance.typesetClear();
|
|
125155
|
+
mathJaxInstance.typesetPromise([executeOn]).then(function () {
|
|
125156
|
+
try {
|
|
125157
|
+
removeExcessMjxContainers(executeOn);
|
|
125158
|
+
removePlaceholdersAndRestoreDisplay();
|
|
125159
|
+
var _updatedDocument = mathJaxInstance.startup.document;
|
|
125160
|
+
var _list = _updatedDocument.math.list;
|
|
125161
|
+
for (var _item = _list.next; (0, _typeof2["default"])(_item.data) !== 'symbol'; _item = _item.next) {
|
|
125162
|
+
var _mathMl = toMMl(_item.data.root);
|
|
125163
|
+
var _parsedMathMl = _mathMl.replaceAll('\n', '');
|
|
125164
|
+
_item.data.typesetRoot.setAttribute('data-mathml', _parsedMathMl);
|
|
125165
|
+
}
|
|
125166
|
+
} catch (e) {
|
|
125167
|
+
console.error('Error post-processing MathJax typesetting:', e.toString());
|
|
125168
|
+
}
|
|
125169
|
+
mathJaxInstance.startup.document.clear();
|
|
125170
|
+
})["catch"](function (error) {
|
|
125171
|
+
console.error('Error in typesetting with MathJax:', error);
|
|
125172
|
+
});
|
|
125173
|
+
}
|
|
125174
|
+
})["catch"](function (error) {
|
|
125175
|
+
console.error('Error in initializing MathJax:', error);
|
|
125176
|
+
});
|
|
125179
125177
|
}
|
|
125180
125178
|
};
|
|
125181
125179
|
if (skipWaitForMathRenderingLib) {
|
|
@@ -147639,7 +147637,27 @@ var buildPlugins = function buildPlugins(activePlugins, customPlugins, opts) {
|
|
|
147639
147637
|
if (opts.responseArea && opts.responseArea.type === 'math-templated') {
|
|
147640
147638
|
tablePlugins.push(respAreaPlugin);
|
|
147641
147639
|
}
|
|
147642
|
-
var
|
|
147640
|
+
var builtCustomPlugins = [];
|
|
147641
|
+
customPlugins.forEach(function (customPlugin) {
|
|
147642
|
+
var _ref2 = customPlugin || ({}), event = _ref2.event, icon = _ref2.icon, iconType = _ref2.iconType, iconAlt = _ref2.iconAlt;
|
|
147643
|
+
function isValidEventName(eventName) {
|
|
147644
|
+
if (typeof eventName !== 'string' || eventName.length === 0) {
|
|
147645
|
+
return false;
|
|
147646
|
+
}
|
|
147647
|
+
var regex = /^[a-zA-Z0-9_]+$/;
|
|
147648
|
+
return regex.test(eventName);
|
|
147649
|
+
}
|
|
147650
|
+
if (!isValidEventName(event)) {
|
|
147651
|
+
console.error(("The event name: ").concat(event, " is not a valid event name!"));
|
|
147652
|
+
return;
|
|
147653
|
+
}
|
|
147654
|
+
if (!icon && !iconType && !iconAlt) {
|
|
147655
|
+
console.error('Your custom button requires icon, iconType and iconAlt');
|
|
147656
|
+
return;
|
|
147657
|
+
}
|
|
147658
|
+
builtCustomPlugins.push((0, _customPlugin["default"])('custom-plugin', customPlugin));
|
|
147659
|
+
});
|
|
147660
|
+
return (0, _compact["default"])([addIf('table', (0, _table["default"])(opts.table, (0, _compact["default"])(tablePlugins))), addIf('bold', MarkHotkey({
|
|
147643
147661
|
key: 'b',
|
|
147644
147662
|
type: 'bold',
|
|
147645
147663
|
icon: _react$1c["default"].createElement(_FormatBold["default"], null),
|
|
@@ -147689,27 +147707,7 @@ var buildPlugins = function buildPlugins(activePlugins, customPlugins, opts) {
|
|
|
147689
147707
|
icon: _react$1c["default"].createElement(_FormatListNumbered["default"], null)
|
|
147690
147708
|
})), addIf('redo', UndoRedo('redo')), addIf('undo', UndoRedo('undo')), (0, _toolbar["default"])(opts.toolbar), (0, _slateSoftBreak["default"])({
|
|
147691
147709
|
shift: true
|
|
147692
|
-
}), addIf('responseArea', respAreaPlugin), addIf('html', (0, _html$1["default"])(opts.html))]));
|
|
147693
|
-
customPlugins.forEach(function (customPlugin) {
|
|
147694
|
-
var _ref2 = customPlugin || ({}), event = _ref2.event, icon = _ref2.icon, iconType = _ref2.iconType, iconAlt = _ref2.iconAlt;
|
|
147695
|
-
function isValidEventName(eventName) {
|
|
147696
|
-
if (typeof eventName !== 'string' || eventName.length === 0) {
|
|
147697
|
-
return false;
|
|
147698
|
-
}
|
|
147699
|
-
var regex = /^[a-zA-Z0-9_]+$/;
|
|
147700
|
-
return regex.test(eventName);
|
|
147701
|
-
}
|
|
147702
|
-
if (!isValidEventName(event)) {
|
|
147703
|
-
console.error(("The event name: ").concat(event, " is not a valid event name!"));
|
|
147704
|
-
return;
|
|
147705
|
-
}
|
|
147706
|
-
if (!icon && !iconType && !iconAlt) {
|
|
147707
|
-
console.error('Your custom button requires icon, iconType and iconAlt');
|
|
147708
|
-
return;
|
|
147709
|
-
}
|
|
147710
|
-
builtPlugins.push((0, _customPlugin["default"])('custom-plugin', customPlugin));
|
|
147711
|
-
});
|
|
147712
|
-
return builtPlugins;
|
|
147710
|
+
})], builtCustomPlugins, [addIf('responseArea', respAreaPlugin), addIf('html', (0, _html$1["default"])(opts.html)), EnterHandlingPlugin()]));
|
|
147713
147711
|
};
|
|
147714
147712
|
plugins.buildPlugins = buildPlugins;
|
|
147715
147713
|
var require$$25 = getAugmentedNamespace(slatePlainSerializer_es);
|
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/complex-rubric",
|
|
3
3
|
"repository": "pie-framework/pie-elements",
|
|
4
|
-
"version": "2.19.5-next.
|
|
4
|
+
"version": "2.19.5-next.47+68306be02",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@material-ui/core": "^3.9.2",
|
|
10
|
-
"@pie-element/multi-trait-rubric": "^3.19.5-next.
|
|
11
|
-
"@pie-element/rubric": "^3.19.5-next.
|
|
10
|
+
"@pie-element/multi-trait-rubric": "^3.19.5-next.47+68306be02",
|
|
11
|
+
"@pie-element/rubric": "^3.19.5-next.47+68306be02",
|
|
12
12
|
"@pie-framework/pie-player-events": "^0.1.0",
|
|
13
13
|
"classnames": "^2.2.5",
|
|
14
14
|
"debug": "^4.1.1",
|
|
15
15
|
"lodash": "^4.17.11",
|
|
16
16
|
"prop-types": "^15.7.2"
|
|
17
17
|
},
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "68306be02254a6019916637fd9b75427cae1c0ed",
|
|
19
19
|
"scripts": {
|
|
20
20
|
"postpublish": "../../scripts/postpublish"
|
|
21
21
|
},
|