@pie-element/math-templated 2.22.5-next.45 → 2.22.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/configure/package.json +1 -1
- package/controller/package.json +1 -1
- package/module/configure.js +80 -82
- package/module/element.js +84 -84
- package/module/manifest.json +1 -1
- package/module/print.js +84 -84
- package/package.json +3 -3
package/configure/package.json
CHANGED
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} 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} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.24.4/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.24.3/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) {
|
|
@@ -43057,7 +43057,7 @@ mathjaxScript.initializeMathJax = mathjaxScript.MathJaxVersion = void 0;
|
|
|
43057
43057
|
var _renderMath = renderMath$1;
|
|
43058
43058
|
var MathJaxVersion = '3.2.2';
|
|
43059
43059
|
mathjaxScript.MathJaxVersion = MathJaxVersion;
|
|
43060
|
-
var initializeMathJax = function initializeMathJax(renderOpts
|
|
43060
|
+
var initializeMathJax = function initializeMathJax(renderOpts) {
|
|
43061
43061
|
if (renderOpts !== null && renderOpts !== void 0 && renderOpts.useSingleDollar) {
|
|
43062
43062
|
console.warn('[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)');
|
|
43063
43063
|
}
|
|
@@ -43080,60 +43080,57 @@ var initializeMathJax = function initializeMathJax(renderOpts, callback) {
|
|
|
43080
43080
|
},
|
|
43081
43081
|
displayMath: [['$$', '$$'], ['\\[', '\\]']]
|
|
43082
43082
|
};
|
|
43083
|
-
window.
|
|
43084
|
-
|
|
43085
|
-
|
|
43086
|
-
|
|
43087
|
-
|
|
43088
|
-
|
|
43089
|
-
|
|
43090
|
-
|
|
43091
|
-
|
|
43092
|
-
|
|
43093
|
-
|
|
43094
|
-
|
|
43095
|
-
|
|
43096
|
-
|
|
43097
|
-
|
|
43098
|
-
|
|
43099
|
-
|
|
43100
|
-
|
|
43101
|
-
|
|
43102
|
-
|
|
43103
|
-
if (callback) {
|
|
43104
|
-
callback();
|
|
43083
|
+
window.mathjaxLoadedP = new Promise(function (resolve) {
|
|
43084
|
+
window.MathJax = {
|
|
43085
|
+
startup: {
|
|
43086
|
+
typeset: false,
|
|
43087
|
+
ready: function ready() {
|
|
43088
|
+
var mathjax = MathJax._.mathjax.mathjax;
|
|
43089
|
+
var STATE = MathJax._.core.MathItem.STATE;
|
|
43090
|
+
var Menu = MathJax._.ui.menu.Menu.Menu;
|
|
43091
|
+
var rerender = Menu.prototype.rerender;
|
|
43092
|
+
Menu.prototype.rerender = function () {
|
|
43093
|
+
var _this = this;
|
|
43094
|
+
var start = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : STATE.TYPESET;
|
|
43095
|
+
mathjax.handleRetriesFor(function () {
|
|
43096
|
+
return rerender.call(_this, start);
|
|
43097
|
+
});
|
|
43098
|
+
};
|
|
43099
|
+
MathJax.startup.defaultReady();
|
|
43100
|
+
var globalObj = (0, _renderMath.getGlobal)();
|
|
43101
|
+
globalObj.instance = MathJax;
|
|
43102
|
+
resolve();
|
|
43105
43103
|
}
|
|
43106
|
-
}
|
|
43107
|
-
},
|
|
43108
|
-
loader: {
|
|
43109
|
-
load: ['input/mml'],
|
|
43110
|
-
preLoad: function preLoad() {}
|
|
43111
|
-
},
|
|
43112
|
-
tex: texConfig,
|
|
43113
|
-
chtml: {
|
|
43114
|
-
fontURL: 'https://unpkg.com/mathjax-full@3.2.2/ts/output/chtml/fonts/tex-woff-v2',
|
|
43115
|
-
displayAlign: 'center'
|
|
43116
|
-
},
|
|
43117
|
-
customKey: '@pie-lib/math-rendering-accessible@1',
|
|
43118
|
-
options: {
|
|
43119
|
-
enableEnrichment: true,
|
|
43120
|
-
sre: {
|
|
43121
|
-
speech: 'deep'
|
|
43122
43104
|
},
|
|
43123
|
-
|
|
43124
|
-
|
|
43125
|
-
|
|
43126
|
-
|
|
43127
|
-
|
|
43105
|
+
loader: {
|
|
43106
|
+
load: ['input/mml']
|
|
43107
|
+
},
|
|
43108
|
+
tex: texConfig,
|
|
43109
|
+
chtml: {
|
|
43110
|
+
fontURL: 'https://unpkg.com/mathjax-full@3.2.2/ts/output/chtml/fonts/tex-woff-v2',
|
|
43111
|
+
displayAlign: 'center'
|
|
43112
|
+
},
|
|
43113
|
+
customKey: '@pie-lib/math-rendering-accessible@1',
|
|
43114
|
+
options: {
|
|
43115
|
+
enableEnrichment: true,
|
|
43116
|
+
sre: {
|
|
43117
|
+
speech: 'deep'
|
|
43118
|
+
},
|
|
43119
|
+
menuOptions: {
|
|
43120
|
+
settings: {
|
|
43121
|
+
assistiveMml: true,
|
|
43122
|
+
collapsible: false,
|
|
43123
|
+
explorer: false
|
|
43124
|
+
}
|
|
43128
43125
|
}
|
|
43129
43126
|
}
|
|
43130
|
-
}
|
|
43131
|
-
|
|
43132
|
-
|
|
43133
|
-
|
|
43134
|
-
|
|
43135
|
-
|
|
43136
|
-
|
|
43127
|
+
};
|
|
43128
|
+
var script = document.createElement('script');
|
|
43129
|
+
script.type = 'text/javascript';
|
|
43130
|
+
script.src = ("https://cdn.jsdelivr.net/npm/mathjax@").concat(MathJaxVersion, "/es5/tex-chtml-full.js");
|
|
43131
|
+
script.async = true;
|
|
43132
|
+
document.body.appendChild(script);
|
|
43133
|
+
});
|
|
43137
43134
|
};
|
|
43138
43135
|
mathjaxScript.initializeMathJax = initializeMathJax;
|
|
43139
43136
|
var normalization$1 = {};
|
|
@@ -102819,36 +102816,11 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
102819
102816
|
fixMathElements(executeOn);
|
|
102820
102817
|
adjustMathMLStyle(executeOn);
|
|
102821
102818
|
var mathJaxCustomKey = getMathJaxCustomKey();
|
|
102822
|
-
|
|
102823
|
-
var mathJaxInstance = getGlobal().instance;
|
|
102824
|
-
if (mathJaxInstance) {
|
|
102825
|
-
mathJaxInstance.texReset();
|
|
102826
|
-
mathJaxInstance.typesetClear();
|
|
102827
|
-
mathJaxInstance.typesetPromise([executeOn]).then(function () {
|
|
102828
|
-
try {
|
|
102829
|
-
removeExcessMjxContainers(executeOn);
|
|
102830
|
-
removePlaceholdersAndRestoreDisplay();
|
|
102831
|
-
var updatedDocument = mathJaxInstance.startup.document;
|
|
102832
|
-
var list = updatedDocument.math.list;
|
|
102833
|
-
for (var item = list.next; (0, _typeof2["default"])(item.data) !== 'symbol'; item = item.next) {
|
|
102834
|
-
var mathMl = toMMl(item.data.root);
|
|
102835
|
-
var parsedMathMl = mathMl.replaceAll('\n', '');
|
|
102836
|
-
item.data.typesetRoot.setAttribute('data-mathml', parsedMathMl);
|
|
102837
|
-
}
|
|
102838
|
-
} catch (e) {
|
|
102839
|
-
console.error('Error post-processing MathJax typesetting:', e.toString());
|
|
102840
|
-
}
|
|
102841
|
-
mathJaxInstance.startup.document.clear();
|
|
102842
|
-
})["catch"](function (error) {
|
|
102843
|
-
console.error('Error in typesetting with MathJax:', error);
|
|
102844
|
-
});
|
|
102845
|
-
}
|
|
102846
|
-
};
|
|
102847
|
-
if ((!window.MathJax || window.MathJax.version !== _mathjaxScript.MathJaxVersion) && !window.mathjaxInitialising || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
|
|
102819
|
+
if ((!window.MathJax || window.MathJax.version !== _mathjaxScript.MathJaxVersion) && !window.mathjaxLoadedP || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
|
|
102848
102820
|
renderOpts = renderOpts || defaultOpts();
|
|
102849
|
-
(0, _mathjaxScript.initializeMathJax)(renderOpts
|
|
102821
|
+
(0, _mathjaxScript.initializeMathJax)(renderOpts);
|
|
102850
102822
|
}
|
|
102851
|
-
if (isString && window.MathJax && window.
|
|
102823
|
+
if (isString && window.MathJax && window.mathjaxLoadedP) {
|
|
102852
102824
|
try {
|
|
102853
102825
|
MathJax.texReset();
|
|
102854
102826
|
MathJax.typesetClear();
|
|
@@ -102863,8 +102835,34 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
102863
102835
|
console.error('Error rendering math:', error.message);
|
|
102864
102836
|
}
|
|
102865
102837
|
}
|
|
102866
|
-
if (window.
|
|
102867
|
-
|
|
102838
|
+
if (window.mathjaxLoadedP) {
|
|
102839
|
+
window.mathjaxLoadedP.then(function () {
|
|
102840
|
+
var mathJaxInstance = getGlobal().instance;
|
|
102841
|
+
if (mathJaxInstance) {
|
|
102842
|
+
mathJaxInstance.texReset();
|
|
102843
|
+
mathJaxInstance.typesetClear();
|
|
102844
|
+
mathJaxInstance.typesetPromise([executeOn]).then(function () {
|
|
102845
|
+
try {
|
|
102846
|
+
removeExcessMjxContainers(executeOn);
|
|
102847
|
+
removePlaceholdersAndRestoreDisplay();
|
|
102848
|
+
var _updatedDocument = mathJaxInstance.startup.document;
|
|
102849
|
+
var _list = _updatedDocument.math.list;
|
|
102850
|
+
for (var _item = _list.next; (0, _typeof2["default"])(_item.data) !== 'symbol'; _item = _item.next) {
|
|
102851
|
+
var _mathMl = toMMl(_item.data.root);
|
|
102852
|
+
var _parsedMathMl = _mathMl.replaceAll('\n', '');
|
|
102853
|
+
_item.data.typesetRoot.setAttribute('data-mathml', _parsedMathMl);
|
|
102854
|
+
}
|
|
102855
|
+
} catch (e) {
|
|
102856
|
+
console.error('Error post-processing MathJax typesetting:', e.toString());
|
|
102857
|
+
}
|
|
102858
|
+
mathJaxInstance.startup.document.clear();
|
|
102859
|
+
})["catch"](function (error) {
|
|
102860
|
+
console.error('Error in typesetting with MathJax:', error);
|
|
102861
|
+
});
|
|
102862
|
+
}
|
|
102863
|
+
})["catch"](function (error) {
|
|
102864
|
+
console.error('Error in initializing MathJax:', error);
|
|
102865
|
+
});
|
|
102868
102866
|
}
|
|
102869
102867
|
};
|
|
102870
102868
|
if (skipWaitForMathRenderingLib) {
|
package/module/element.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_lib__pie_toolbox_math_rendering_accessible, _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_lib__pie_toolbox_math_rendering_accessible, _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_math_input, _dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_correct_answer_toggle} from "../../../@pie-lib/pie-toolbox-module@4.24.3/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) {
|
|
@@ -21852,7 +21852,7 @@ mathjaxScript.initializeMathJax = mathjaxScript.MathJaxVersion = void 0;
|
|
|
21852
21852
|
var _renderMath = renderMath$2;
|
|
21853
21853
|
var MathJaxVersion = '3.2.2';
|
|
21854
21854
|
mathjaxScript.MathJaxVersion = MathJaxVersion;
|
|
21855
|
-
var initializeMathJax = function initializeMathJax(renderOpts
|
|
21855
|
+
var initializeMathJax = function initializeMathJax(renderOpts) {
|
|
21856
21856
|
if (renderOpts !== null && renderOpts !== void 0 && renderOpts.useSingleDollar) {
|
|
21857
21857
|
console.warn('[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)');
|
|
21858
21858
|
}
|
|
@@ -21875,60 +21875,57 @@ var initializeMathJax = function initializeMathJax(renderOpts, callback) {
|
|
|
21875
21875
|
},
|
|
21876
21876
|
displayMath: [['$$', '$$'], ['\\[', '\\]']]
|
|
21877
21877
|
};
|
|
21878
|
-
window.
|
|
21879
|
-
|
|
21880
|
-
|
|
21881
|
-
|
|
21882
|
-
|
|
21883
|
-
|
|
21884
|
-
|
|
21885
|
-
|
|
21886
|
-
|
|
21887
|
-
|
|
21888
|
-
|
|
21889
|
-
|
|
21890
|
-
|
|
21891
|
-
|
|
21892
|
-
|
|
21893
|
-
|
|
21894
|
-
|
|
21895
|
-
|
|
21896
|
-
|
|
21897
|
-
|
|
21898
|
-
if (callback) {
|
|
21899
|
-
callback();
|
|
21878
|
+
window.mathjaxLoadedP = new Promise(function (resolve) {
|
|
21879
|
+
window.MathJax = {
|
|
21880
|
+
startup: {
|
|
21881
|
+
typeset: false,
|
|
21882
|
+
ready: function ready() {
|
|
21883
|
+
var mathjax = MathJax._.mathjax.mathjax;
|
|
21884
|
+
var STATE = MathJax._.core.MathItem.STATE;
|
|
21885
|
+
var Menu = MathJax._.ui.menu.Menu.Menu;
|
|
21886
|
+
var rerender = Menu.prototype.rerender;
|
|
21887
|
+
Menu.prototype.rerender = function () {
|
|
21888
|
+
var _this = this;
|
|
21889
|
+
var start = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : STATE.TYPESET;
|
|
21890
|
+
mathjax.handleRetriesFor(function () {
|
|
21891
|
+
return rerender.call(_this, start);
|
|
21892
|
+
});
|
|
21893
|
+
};
|
|
21894
|
+
MathJax.startup.defaultReady();
|
|
21895
|
+
var globalObj = (0, _renderMath.getGlobal)();
|
|
21896
|
+
globalObj.instance = MathJax;
|
|
21897
|
+
resolve();
|
|
21900
21898
|
}
|
|
21901
|
-
}
|
|
21902
|
-
},
|
|
21903
|
-
loader: {
|
|
21904
|
-
load: ['input/mml'],
|
|
21905
|
-
preLoad: function preLoad() {}
|
|
21906
|
-
},
|
|
21907
|
-
tex: texConfig,
|
|
21908
|
-
chtml: {
|
|
21909
|
-
fontURL: 'https://unpkg.com/mathjax-full@3.2.2/ts/output/chtml/fonts/tex-woff-v2',
|
|
21910
|
-
displayAlign: 'center'
|
|
21911
|
-
},
|
|
21912
|
-
customKey: '@pie-lib/math-rendering-accessible@1',
|
|
21913
|
-
options: {
|
|
21914
|
-
enableEnrichment: true,
|
|
21915
|
-
sre: {
|
|
21916
|
-
speech: 'deep'
|
|
21917
21899
|
},
|
|
21918
|
-
|
|
21919
|
-
|
|
21920
|
-
|
|
21921
|
-
|
|
21922
|
-
|
|
21900
|
+
loader: {
|
|
21901
|
+
load: ['input/mml']
|
|
21902
|
+
},
|
|
21903
|
+
tex: texConfig,
|
|
21904
|
+
chtml: {
|
|
21905
|
+
fontURL: 'https://unpkg.com/mathjax-full@3.2.2/ts/output/chtml/fonts/tex-woff-v2',
|
|
21906
|
+
displayAlign: 'center'
|
|
21907
|
+
},
|
|
21908
|
+
customKey: '@pie-lib/math-rendering-accessible@1',
|
|
21909
|
+
options: {
|
|
21910
|
+
enableEnrichment: true,
|
|
21911
|
+
sre: {
|
|
21912
|
+
speech: 'deep'
|
|
21913
|
+
},
|
|
21914
|
+
menuOptions: {
|
|
21915
|
+
settings: {
|
|
21916
|
+
assistiveMml: true,
|
|
21917
|
+
collapsible: false,
|
|
21918
|
+
explorer: false
|
|
21919
|
+
}
|
|
21923
21920
|
}
|
|
21924
21921
|
}
|
|
21925
|
-
}
|
|
21926
|
-
|
|
21927
|
-
|
|
21928
|
-
|
|
21929
|
-
|
|
21930
|
-
|
|
21931
|
-
|
|
21922
|
+
};
|
|
21923
|
+
var script = document.createElement('script');
|
|
21924
|
+
script.type = 'text/javascript';
|
|
21925
|
+
script.src = ("https://cdn.jsdelivr.net/npm/mathjax@").concat(MathJaxVersion, "/es5/tex-chtml-full.js");
|
|
21926
|
+
script.async = true;
|
|
21927
|
+
document.body.appendChild(script);
|
|
21928
|
+
});
|
|
21932
21929
|
};
|
|
21933
21930
|
mathjaxScript.initializeMathJax = initializeMathJax;
|
|
21934
21931
|
var normalization$1 = {};
|
|
@@ -81754,36 +81751,11 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
81754
81751
|
fixMathElements(executeOn);
|
|
81755
81752
|
adjustMathMLStyle(executeOn);
|
|
81756
81753
|
var mathJaxCustomKey = getMathJaxCustomKey();
|
|
81757
|
-
|
|
81758
|
-
var mathJaxInstance = getGlobal().instance;
|
|
81759
|
-
if (mathJaxInstance) {
|
|
81760
|
-
mathJaxInstance.texReset();
|
|
81761
|
-
mathJaxInstance.typesetClear();
|
|
81762
|
-
mathJaxInstance.typesetPromise([executeOn]).then(function () {
|
|
81763
|
-
try {
|
|
81764
|
-
removeExcessMjxContainers(executeOn);
|
|
81765
|
-
removePlaceholdersAndRestoreDisplay();
|
|
81766
|
-
var updatedDocument = mathJaxInstance.startup.document;
|
|
81767
|
-
var list = updatedDocument.math.list;
|
|
81768
|
-
for (var item = list.next; (0, _typeof2["default"])(item.data) !== 'symbol'; item = item.next) {
|
|
81769
|
-
var mathMl = toMMl(item.data.root);
|
|
81770
|
-
var parsedMathMl = mathMl.replaceAll('\n', '');
|
|
81771
|
-
item.data.typesetRoot.setAttribute('data-mathml', parsedMathMl);
|
|
81772
|
-
}
|
|
81773
|
-
} catch (e) {
|
|
81774
|
-
console.error('Error post-processing MathJax typesetting:', e.toString());
|
|
81775
|
-
}
|
|
81776
|
-
mathJaxInstance.startup.document.clear();
|
|
81777
|
-
})["catch"](function (error) {
|
|
81778
|
-
console.error('Error in typesetting with MathJax:', error);
|
|
81779
|
-
});
|
|
81780
|
-
}
|
|
81781
|
-
};
|
|
81782
|
-
if ((!window.MathJax || window.MathJax.version !== _mathjaxScript.MathJaxVersion) && !window.mathjaxInitialising || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
|
|
81754
|
+
if ((!window.MathJax || window.MathJax.version !== _mathjaxScript.MathJaxVersion) && !window.mathjaxLoadedP || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
|
|
81783
81755
|
renderOpts = renderOpts || defaultOpts();
|
|
81784
|
-
(0, _mathjaxScript.initializeMathJax)(renderOpts
|
|
81756
|
+
(0, _mathjaxScript.initializeMathJax)(renderOpts);
|
|
81785
81757
|
}
|
|
81786
|
-
if (isString && window.MathJax && window.
|
|
81758
|
+
if (isString && window.MathJax && window.mathjaxLoadedP) {
|
|
81787
81759
|
try {
|
|
81788
81760
|
MathJax.texReset();
|
|
81789
81761
|
MathJax.typesetClear();
|
|
@@ -81798,8 +81770,34 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
81798
81770
|
console.error('Error rendering math:', error.message);
|
|
81799
81771
|
}
|
|
81800
81772
|
}
|
|
81801
|
-
if (window.
|
|
81802
|
-
|
|
81773
|
+
if (window.mathjaxLoadedP) {
|
|
81774
|
+
window.mathjaxLoadedP.then(function () {
|
|
81775
|
+
var mathJaxInstance = getGlobal().instance;
|
|
81776
|
+
if (mathJaxInstance) {
|
|
81777
|
+
mathJaxInstance.texReset();
|
|
81778
|
+
mathJaxInstance.typesetClear();
|
|
81779
|
+
mathJaxInstance.typesetPromise([executeOn]).then(function () {
|
|
81780
|
+
try {
|
|
81781
|
+
removeExcessMjxContainers(executeOn);
|
|
81782
|
+
removePlaceholdersAndRestoreDisplay();
|
|
81783
|
+
var _updatedDocument = mathJaxInstance.startup.document;
|
|
81784
|
+
var _list = _updatedDocument.math.list;
|
|
81785
|
+
for (var _item = _list.next; (0, _typeof2["default"])(_item.data) !== 'symbol'; _item = _item.next) {
|
|
81786
|
+
var _mathMl = toMMl(_item.data.root);
|
|
81787
|
+
var _parsedMathMl = _mathMl.replaceAll('\n', '');
|
|
81788
|
+
_item.data.typesetRoot.setAttribute('data-mathml', _parsedMathMl);
|
|
81789
|
+
}
|
|
81790
|
+
} catch (e) {
|
|
81791
|
+
console.error('Error post-processing MathJax typesetting:', e.toString());
|
|
81792
|
+
}
|
|
81793
|
+
mathJaxInstance.startup.document.clear();
|
|
81794
|
+
})["catch"](function (error) {
|
|
81795
|
+
console.error('Error in typesetting with MathJax:', error);
|
|
81796
|
+
});
|
|
81797
|
+
}
|
|
81798
|
+
})["catch"](function (error) {
|
|
81799
|
+
console.error('Error in initializing MathJax:', error);
|
|
81800
|
+
});
|
|
81803
81801
|
}
|
|
81804
81802
|
};
|
|
81805
81803
|
if (skipWaitForMathRenderingLib) {
|
|
@@ -123891,7 +123889,7 @@ const require$$13 = _dll_react_dom;
|
|
|
123891
123889
|
transform: 'translate(0, 0)'
|
|
123892
123890
|
},
|
|
123893
123891
|
chip: {
|
|
123894
|
-
backgroundColor: _renderUi.color.
|
|
123892
|
+
backgroundColor: _renderUi.color.white(),
|
|
123895
123893
|
border: ("1px solid ").concat(_renderUi.color.text()),
|
|
123896
123894
|
color: _renderUi.color.text(),
|
|
123897
123895
|
alignItems: 'center',
|
|
@@ -123911,7 +123909,9 @@ const require$$13 = _dll_react_dom;
|
|
|
123911
123909
|
padding: '2px 0'
|
|
123912
123910
|
}
|
|
123913
123911
|
},
|
|
123914
|
-
disabled: {
|
|
123912
|
+
disabled: {
|
|
123913
|
+
opacity: 0.6
|
|
123914
|
+
}
|
|
123915
123915
|
};
|
|
123916
123916
|
})(BlankContentComp);
|
|
123917
123917
|
exports.BlankContent = BlankContent;
|
package/module/manifest.json
CHANGED
package/module/print.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_lib__pie_toolbox_math_rendering_accessible, _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_lib__pie_toolbox_math_rendering_accessible, _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_math_input, _dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_correct_answer_toggle} from "../../../@pie-lib/pie-toolbox-module@4.24.3/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) {
|
|
@@ -21815,7 +21815,7 @@ mathjaxScript.initializeMathJax = mathjaxScript.MathJaxVersion = void 0;
|
|
|
21815
21815
|
var _renderMath = renderMath$3;
|
|
21816
21816
|
var MathJaxVersion = '3.2.2';
|
|
21817
21817
|
mathjaxScript.MathJaxVersion = MathJaxVersion;
|
|
21818
|
-
var initializeMathJax = function initializeMathJax(renderOpts
|
|
21818
|
+
var initializeMathJax = function initializeMathJax(renderOpts) {
|
|
21819
21819
|
if (renderOpts !== null && renderOpts !== void 0 && renderOpts.useSingleDollar) {
|
|
21820
21820
|
console.warn('[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)');
|
|
21821
21821
|
}
|
|
@@ -21838,60 +21838,57 @@ var initializeMathJax = function initializeMathJax(renderOpts, callback) {
|
|
|
21838
21838
|
},
|
|
21839
21839
|
displayMath: [['$$', '$$'], ['\\[', '\\]']]
|
|
21840
21840
|
};
|
|
21841
|
-
window.
|
|
21842
|
-
|
|
21843
|
-
|
|
21844
|
-
|
|
21845
|
-
|
|
21846
|
-
|
|
21847
|
-
|
|
21848
|
-
|
|
21849
|
-
|
|
21850
|
-
|
|
21851
|
-
|
|
21852
|
-
|
|
21853
|
-
|
|
21854
|
-
|
|
21855
|
-
|
|
21856
|
-
|
|
21857
|
-
|
|
21858
|
-
|
|
21859
|
-
|
|
21860
|
-
|
|
21861
|
-
if (callback) {
|
|
21862
|
-
callback();
|
|
21841
|
+
window.mathjaxLoadedP = new Promise(function (resolve) {
|
|
21842
|
+
window.MathJax = {
|
|
21843
|
+
startup: {
|
|
21844
|
+
typeset: false,
|
|
21845
|
+
ready: function ready() {
|
|
21846
|
+
var mathjax = MathJax._.mathjax.mathjax;
|
|
21847
|
+
var STATE = MathJax._.core.MathItem.STATE;
|
|
21848
|
+
var Menu = MathJax._.ui.menu.Menu.Menu;
|
|
21849
|
+
var rerender = Menu.prototype.rerender;
|
|
21850
|
+
Menu.prototype.rerender = function () {
|
|
21851
|
+
var _this = this;
|
|
21852
|
+
var start = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : STATE.TYPESET;
|
|
21853
|
+
mathjax.handleRetriesFor(function () {
|
|
21854
|
+
return rerender.call(_this, start);
|
|
21855
|
+
});
|
|
21856
|
+
};
|
|
21857
|
+
MathJax.startup.defaultReady();
|
|
21858
|
+
var globalObj = (0, _renderMath.getGlobal)();
|
|
21859
|
+
globalObj.instance = MathJax;
|
|
21860
|
+
resolve();
|
|
21863
21861
|
}
|
|
21864
|
-
}
|
|
21865
|
-
},
|
|
21866
|
-
loader: {
|
|
21867
|
-
load: ['input/mml'],
|
|
21868
|
-
preLoad: function preLoad() {}
|
|
21869
|
-
},
|
|
21870
|
-
tex: texConfig,
|
|
21871
|
-
chtml: {
|
|
21872
|
-
fontURL: 'https://unpkg.com/mathjax-full@3.2.2/ts/output/chtml/fonts/tex-woff-v2',
|
|
21873
|
-
displayAlign: 'center'
|
|
21874
|
-
},
|
|
21875
|
-
customKey: '@pie-lib/math-rendering-accessible@1',
|
|
21876
|
-
options: {
|
|
21877
|
-
enableEnrichment: true,
|
|
21878
|
-
sre: {
|
|
21879
|
-
speech: 'deep'
|
|
21880
21862
|
},
|
|
21881
|
-
|
|
21882
|
-
|
|
21883
|
-
|
|
21884
|
-
|
|
21885
|
-
|
|
21863
|
+
loader: {
|
|
21864
|
+
load: ['input/mml']
|
|
21865
|
+
},
|
|
21866
|
+
tex: texConfig,
|
|
21867
|
+
chtml: {
|
|
21868
|
+
fontURL: 'https://unpkg.com/mathjax-full@3.2.2/ts/output/chtml/fonts/tex-woff-v2',
|
|
21869
|
+
displayAlign: 'center'
|
|
21870
|
+
},
|
|
21871
|
+
customKey: '@pie-lib/math-rendering-accessible@1',
|
|
21872
|
+
options: {
|
|
21873
|
+
enableEnrichment: true,
|
|
21874
|
+
sre: {
|
|
21875
|
+
speech: 'deep'
|
|
21876
|
+
},
|
|
21877
|
+
menuOptions: {
|
|
21878
|
+
settings: {
|
|
21879
|
+
assistiveMml: true,
|
|
21880
|
+
collapsible: false,
|
|
21881
|
+
explorer: false
|
|
21882
|
+
}
|
|
21886
21883
|
}
|
|
21887
21884
|
}
|
|
21888
|
-
}
|
|
21889
|
-
|
|
21890
|
-
|
|
21891
|
-
|
|
21892
|
-
|
|
21893
|
-
|
|
21894
|
-
|
|
21885
|
+
};
|
|
21886
|
+
var script = document.createElement('script');
|
|
21887
|
+
script.type = 'text/javascript';
|
|
21888
|
+
script.src = ("https://cdn.jsdelivr.net/npm/mathjax@").concat(MathJaxVersion, "/es5/tex-chtml-full.js");
|
|
21889
|
+
script.async = true;
|
|
21890
|
+
document.body.appendChild(script);
|
|
21891
|
+
});
|
|
21895
21892
|
};
|
|
21896
21893
|
mathjaxScript.initializeMathJax = initializeMathJax;
|
|
21897
21894
|
var normalization$1 = {};
|
|
@@ -81717,36 +81714,11 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
81717
81714
|
fixMathElements(executeOn);
|
|
81718
81715
|
adjustMathMLStyle(executeOn);
|
|
81719
81716
|
var mathJaxCustomKey = getMathJaxCustomKey();
|
|
81720
|
-
|
|
81721
|
-
var mathJaxInstance = getGlobal().instance;
|
|
81722
|
-
if (mathJaxInstance) {
|
|
81723
|
-
mathJaxInstance.texReset();
|
|
81724
|
-
mathJaxInstance.typesetClear();
|
|
81725
|
-
mathJaxInstance.typesetPromise([executeOn]).then(function () {
|
|
81726
|
-
try {
|
|
81727
|
-
removeExcessMjxContainers(executeOn);
|
|
81728
|
-
removePlaceholdersAndRestoreDisplay();
|
|
81729
|
-
var updatedDocument = mathJaxInstance.startup.document;
|
|
81730
|
-
var list = updatedDocument.math.list;
|
|
81731
|
-
for (var item = list.next; (0, _typeof2["default"])(item.data) !== 'symbol'; item = item.next) {
|
|
81732
|
-
var mathMl = toMMl(item.data.root);
|
|
81733
|
-
var parsedMathMl = mathMl.replaceAll('\n', '');
|
|
81734
|
-
item.data.typesetRoot.setAttribute('data-mathml', parsedMathMl);
|
|
81735
|
-
}
|
|
81736
|
-
} catch (e) {
|
|
81737
|
-
console.error('Error post-processing MathJax typesetting:', e.toString());
|
|
81738
|
-
}
|
|
81739
|
-
mathJaxInstance.startup.document.clear();
|
|
81740
|
-
})["catch"](function (error) {
|
|
81741
|
-
console.error('Error in typesetting with MathJax:', error);
|
|
81742
|
-
});
|
|
81743
|
-
}
|
|
81744
|
-
};
|
|
81745
|
-
if ((!window.MathJax || window.MathJax.version !== _mathjaxScript.MathJaxVersion) && !window.mathjaxInitialising || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
|
|
81717
|
+
if ((!window.MathJax || window.MathJax.version !== _mathjaxScript.MathJaxVersion) && !window.mathjaxLoadedP || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
|
|
81746
81718
|
renderOpts = renderOpts || defaultOpts();
|
|
81747
|
-
(0, _mathjaxScript.initializeMathJax)(renderOpts
|
|
81719
|
+
(0, _mathjaxScript.initializeMathJax)(renderOpts);
|
|
81748
81720
|
}
|
|
81749
|
-
if (isString && window.MathJax && window.
|
|
81721
|
+
if (isString && window.MathJax && window.mathjaxLoadedP) {
|
|
81750
81722
|
try {
|
|
81751
81723
|
MathJax.texReset();
|
|
81752
81724
|
MathJax.typesetClear();
|
|
@@ -81761,8 +81733,34 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
81761
81733
|
console.error('Error rendering math:', error.message);
|
|
81762
81734
|
}
|
|
81763
81735
|
}
|
|
81764
|
-
if (window.
|
|
81765
|
-
|
|
81736
|
+
if (window.mathjaxLoadedP) {
|
|
81737
|
+
window.mathjaxLoadedP.then(function () {
|
|
81738
|
+
var mathJaxInstance = getGlobal().instance;
|
|
81739
|
+
if (mathJaxInstance) {
|
|
81740
|
+
mathJaxInstance.texReset();
|
|
81741
|
+
mathJaxInstance.typesetClear();
|
|
81742
|
+
mathJaxInstance.typesetPromise([executeOn]).then(function () {
|
|
81743
|
+
try {
|
|
81744
|
+
removeExcessMjxContainers(executeOn);
|
|
81745
|
+
removePlaceholdersAndRestoreDisplay();
|
|
81746
|
+
var _updatedDocument = mathJaxInstance.startup.document;
|
|
81747
|
+
var _list = _updatedDocument.math.list;
|
|
81748
|
+
for (var _item = _list.next; (0, _typeof2["default"])(_item.data) !== 'symbol'; _item = _item.next) {
|
|
81749
|
+
var _mathMl = toMMl(_item.data.root);
|
|
81750
|
+
var _parsedMathMl = _mathMl.replaceAll('\n', '');
|
|
81751
|
+
_item.data.typesetRoot.setAttribute('data-mathml', _parsedMathMl);
|
|
81752
|
+
}
|
|
81753
|
+
} catch (e) {
|
|
81754
|
+
console.error('Error post-processing MathJax typesetting:', e.toString());
|
|
81755
|
+
}
|
|
81756
|
+
mathJaxInstance.startup.document.clear();
|
|
81757
|
+
})["catch"](function (error) {
|
|
81758
|
+
console.error('Error in typesetting with MathJax:', error);
|
|
81759
|
+
});
|
|
81760
|
+
}
|
|
81761
|
+
})["catch"](function (error) {
|
|
81762
|
+
console.error('Error in initializing MathJax:', error);
|
|
81763
|
+
});
|
|
81766
81764
|
}
|
|
81767
81765
|
};
|
|
81768
81766
|
if (skipWaitForMathRenderingLib) {
|
|
@@ -123854,7 +123852,7 @@ const require$$13 = _dll_react_dom;
|
|
|
123854
123852
|
transform: 'translate(0, 0)'
|
|
123855
123853
|
},
|
|
123856
123854
|
chip: {
|
|
123857
|
-
backgroundColor: _renderUi.color.
|
|
123855
|
+
backgroundColor: _renderUi.color.white(),
|
|
123858
123856
|
border: ("1px solid ").concat(_renderUi.color.text()),
|
|
123859
123857
|
color: _renderUi.color.text(),
|
|
123860
123858
|
alignItems: 'center',
|
|
@@ -123874,7 +123872,9 @@ const require$$13 = _dll_react_dom;
|
|
|
123874
123872
|
padding: '2px 0'
|
|
123875
123873
|
}
|
|
123876
123874
|
},
|
|
123877
|
-
disabled: {
|
|
123875
|
+
disabled: {
|
|
123876
|
+
opacity: 0.6
|
|
123877
|
+
}
|
|
123878
123878
|
};
|
|
123879
123879
|
})(BlankContentComp);
|
|
123880
123880
|
exports.BlankContent = BlankContent;
|
package/package.json
CHANGED
|
@@ -4,19 +4,19 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"repository": "pie-framework/pie-elements",
|
|
7
|
-
"version": "2.22.5-next.
|
|
7
|
+
"version": "2.22.5-next.47+68306be02",
|
|
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": "1.
|
|
12
|
+
"@pie-lib/pie-toolbox": "1.32.0",
|
|
13
13
|
"prop-types": "^15.6.1",
|
|
14
14
|
"react": "^16.8.1",
|
|
15
15
|
"react-dom": "^16.8.1"
|
|
16
16
|
},
|
|
17
17
|
"author": "",
|
|
18
18
|
"license": "ISC",
|
|
19
|
-
"gitHead": "
|
|
19
|
+
"gitHead": "68306be02254a6019916637fd9b75427cae1c0ed",
|
|
20
20
|
"scripts": {
|
|
21
21
|
"postpublish": "../../scripts/postpublish"
|
|
22
22
|
},
|