@pie-element/explicit-constructed-response 6.22.5-next.45 → 6.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 +1 -1
- 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
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"@material-ui/core": "^3.9.2",
|
|
9
9
|
"@material-ui/icons": "^3.0.1",
|
|
10
10
|
"@pie-framework/pie-configure-events": "^1.3.0",
|
|
11
|
-
"@pie-lib/pie-toolbox": "1.
|
|
11
|
+
"@pie-lib/pie-toolbox": "1.32.0",
|
|
12
12
|
"classnames": "^2.2.6",
|
|
13
13
|
"debug": "^3.1.0",
|
|
14
14
|
"lodash": "^4.17.15",
|
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_lodash, _dll_debug} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.24.
|
|
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.24.4/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.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) {
|
package/module/element.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {_dll_react, _dll_prop_types, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_react_dom, _dll_classnames, _dll_pie_lib__pie_toolbox_math_rendering_accessible} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.24.
|
|
1
|
+
import {_dll_react, _dll_prop_types, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_react_dom, _dll_classnames, _dll_pie_lib__pie_toolbox_math_rendering_accessible} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.24.4/module/index.js";
|
|
2
2
|
import {_dll_pie_lib__pie_toolbox_correct_answer_toggle, _dll_pie_lib__pie_toolbox_render_ui} 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) {
|
|
@@ -19156,7 +19156,7 @@ mathjaxScript.initializeMathJax = mathjaxScript.MathJaxVersion = void 0;
|
|
|
19156
19156
|
var _renderMath = renderMath$2;
|
|
19157
19157
|
var MathJaxVersion = '3.2.2';
|
|
19158
19158
|
mathjaxScript.MathJaxVersion = MathJaxVersion;
|
|
19159
|
-
var initializeMathJax = function initializeMathJax(renderOpts
|
|
19159
|
+
var initializeMathJax = function initializeMathJax(renderOpts) {
|
|
19160
19160
|
if (renderOpts !== null && renderOpts !== void 0 && renderOpts.useSingleDollar) {
|
|
19161
19161
|
console.warn('[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)');
|
|
19162
19162
|
}
|
|
@@ -19179,60 +19179,57 @@ var initializeMathJax = function initializeMathJax(renderOpts, callback) {
|
|
|
19179
19179
|
},
|
|
19180
19180
|
displayMath: [['$$', '$$'], ['\\[', '\\]']]
|
|
19181
19181
|
};
|
|
19182
|
-
window.
|
|
19183
|
-
|
|
19184
|
-
|
|
19185
|
-
|
|
19186
|
-
|
|
19187
|
-
|
|
19188
|
-
|
|
19189
|
-
|
|
19190
|
-
|
|
19191
|
-
|
|
19192
|
-
|
|
19193
|
-
|
|
19194
|
-
|
|
19195
|
-
|
|
19196
|
-
|
|
19197
|
-
|
|
19198
|
-
|
|
19199
|
-
|
|
19200
|
-
|
|
19201
|
-
|
|
19202
|
-
if (callback) {
|
|
19203
|
-
callback();
|
|
19182
|
+
window.mathjaxLoadedP = new Promise(function (resolve) {
|
|
19183
|
+
window.MathJax = {
|
|
19184
|
+
startup: {
|
|
19185
|
+
typeset: false,
|
|
19186
|
+
ready: function ready() {
|
|
19187
|
+
var mathjax = MathJax._.mathjax.mathjax;
|
|
19188
|
+
var STATE = MathJax._.core.MathItem.STATE;
|
|
19189
|
+
var Menu = MathJax._.ui.menu.Menu.Menu;
|
|
19190
|
+
var rerender = Menu.prototype.rerender;
|
|
19191
|
+
Menu.prototype.rerender = function () {
|
|
19192
|
+
var _this = this;
|
|
19193
|
+
var start = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : STATE.TYPESET;
|
|
19194
|
+
mathjax.handleRetriesFor(function () {
|
|
19195
|
+
return rerender.call(_this, start);
|
|
19196
|
+
});
|
|
19197
|
+
};
|
|
19198
|
+
MathJax.startup.defaultReady();
|
|
19199
|
+
var globalObj = (0, _renderMath.getGlobal)();
|
|
19200
|
+
globalObj.instance = MathJax;
|
|
19201
|
+
resolve();
|
|
19204
19202
|
}
|
|
19205
|
-
}
|
|
19206
|
-
},
|
|
19207
|
-
loader: {
|
|
19208
|
-
load: ['input/mml'],
|
|
19209
|
-
preLoad: function preLoad() {}
|
|
19210
|
-
},
|
|
19211
|
-
tex: texConfig,
|
|
19212
|
-
chtml: {
|
|
19213
|
-
fontURL: 'https://unpkg.com/mathjax-full@3.2.2/ts/output/chtml/fonts/tex-woff-v2',
|
|
19214
|
-
displayAlign: 'center'
|
|
19215
|
-
},
|
|
19216
|
-
customKey: '@pie-lib/math-rendering-accessible@1',
|
|
19217
|
-
options: {
|
|
19218
|
-
enableEnrichment: true,
|
|
19219
|
-
sre: {
|
|
19220
|
-
speech: 'deep'
|
|
19221
19203
|
},
|
|
19222
|
-
|
|
19223
|
-
|
|
19224
|
-
|
|
19225
|
-
|
|
19226
|
-
|
|
19204
|
+
loader: {
|
|
19205
|
+
load: ['input/mml']
|
|
19206
|
+
},
|
|
19207
|
+
tex: texConfig,
|
|
19208
|
+
chtml: {
|
|
19209
|
+
fontURL: 'https://unpkg.com/mathjax-full@3.2.2/ts/output/chtml/fonts/tex-woff-v2',
|
|
19210
|
+
displayAlign: 'center'
|
|
19211
|
+
},
|
|
19212
|
+
customKey: '@pie-lib/math-rendering-accessible@1',
|
|
19213
|
+
options: {
|
|
19214
|
+
enableEnrichment: true,
|
|
19215
|
+
sre: {
|
|
19216
|
+
speech: 'deep'
|
|
19217
|
+
},
|
|
19218
|
+
menuOptions: {
|
|
19219
|
+
settings: {
|
|
19220
|
+
assistiveMml: true,
|
|
19221
|
+
collapsible: false,
|
|
19222
|
+
explorer: false
|
|
19223
|
+
}
|
|
19227
19224
|
}
|
|
19228
19225
|
}
|
|
19229
|
-
}
|
|
19230
|
-
|
|
19231
|
-
|
|
19232
|
-
|
|
19233
|
-
|
|
19234
|
-
|
|
19235
|
-
|
|
19226
|
+
};
|
|
19227
|
+
var script = document.createElement('script');
|
|
19228
|
+
script.type = 'text/javascript';
|
|
19229
|
+
script.src = ("https://cdn.jsdelivr.net/npm/mathjax@").concat(MathJaxVersion, "/es5/tex-chtml-full.js");
|
|
19230
|
+
script.async = true;
|
|
19231
|
+
document.body.appendChild(script);
|
|
19232
|
+
});
|
|
19236
19233
|
};
|
|
19237
19234
|
mathjaxScript.initializeMathJax = initializeMathJax;
|
|
19238
19235
|
var normalization$1 = {};
|
|
@@ -79058,36 +79055,11 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
79058
79055
|
fixMathElements(executeOn);
|
|
79059
79056
|
adjustMathMLStyle(executeOn);
|
|
79060
79057
|
var mathJaxCustomKey = getMathJaxCustomKey();
|
|
79061
|
-
|
|
79062
|
-
var mathJaxInstance = getGlobal().instance;
|
|
79063
|
-
if (mathJaxInstance) {
|
|
79064
|
-
mathJaxInstance.texReset();
|
|
79065
|
-
mathJaxInstance.typesetClear();
|
|
79066
|
-
mathJaxInstance.typesetPromise([executeOn]).then(function () {
|
|
79067
|
-
try {
|
|
79068
|
-
removeExcessMjxContainers(executeOn);
|
|
79069
|
-
removePlaceholdersAndRestoreDisplay();
|
|
79070
|
-
var updatedDocument = mathJaxInstance.startup.document;
|
|
79071
|
-
var list = updatedDocument.math.list;
|
|
79072
|
-
for (var item = list.next; (0, _typeof2["default"])(item.data) !== 'symbol'; item = item.next) {
|
|
79073
|
-
var mathMl = toMMl(item.data.root);
|
|
79074
|
-
var parsedMathMl = mathMl.replaceAll('\n', '');
|
|
79075
|
-
item.data.typesetRoot.setAttribute('data-mathml', parsedMathMl);
|
|
79076
|
-
}
|
|
79077
|
-
} catch (e) {
|
|
79078
|
-
console.error('Error post-processing MathJax typesetting:', e.toString());
|
|
79079
|
-
}
|
|
79080
|
-
mathJaxInstance.startup.document.clear();
|
|
79081
|
-
})["catch"](function (error) {
|
|
79082
|
-
console.error('Error in typesetting with MathJax:', error);
|
|
79083
|
-
});
|
|
79084
|
-
}
|
|
79085
|
-
};
|
|
79086
|
-
if ((!window.MathJax || window.MathJax.version !== _mathjaxScript.MathJaxVersion) && !window.mathjaxInitialising || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
|
|
79058
|
+
if ((!window.MathJax || window.MathJax.version !== _mathjaxScript.MathJaxVersion) && !window.mathjaxLoadedP || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
|
|
79087
79059
|
renderOpts = renderOpts || defaultOpts();
|
|
79088
|
-
(0, _mathjaxScript.initializeMathJax)(renderOpts
|
|
79060
|
+
(0, _mathjaxScript.initializeMathJax)(renderOpts);
|
|
79089
79061
|
}
|
|
79090
|
-
if (isString && window.MathJax && window.
|
|
79062
|
+
if (isString && window.MathJax && window.mathjaxLoadedP) {
|
|
79091
79063
|
try {
|
|
79092
79064
|
MathJax.texReset();
|
|
79093
79065
|
MathJax.typesetClear();
|
|
@@ -79102,8 +79074,34 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
79102
79074
|
console.error('Error rendering math:', error.message);
|
|
79103
79075
|
}
|
|
79104
79076
|
}
|
|
79105
|
-
if (window.
|
|
79106
|
-
|
|
79077
|
+
if (window.mathjaxLoadedP) {
|
|
79078
|
+
window.mathjaxLoadedP.then(function () {
|
|
79079
|
+
var mathJaxInstance = getGlobal().instance;
|
|
79080
|
+
if (mathJaxInstance) {
|
|
79081
|
+
mathJaxInstance.texReset();
|
|
79082
|
+
mathJaxInstance.typesetClear();
|
|
79083
|
+
mathJaxInstance.typesetPromise([executeOn]).then(function () {
|
|
79084
|
+
try {
|
|
79085
|
+
removeExcessMjxContainers(executeOn);
|
|
79086
|
+
removePlaceholdersAndRestoreDisplay();
|
|
79087
|
+
var _updatedDocument = mathJaxInstance.startup.document;
|
|
79088
|
+
var _list = _updatedDocument.math.list;
|
|
79089
|
+
for (var _item = _list.next; (0, _typeof2["default"])(_item.data) !== 'symbol'; _item = _item.next) {
|
|
79090
|
+
var _mathMl = toMMl(_item.data.root);
|
|
79091
|
+
var _parsedMathMl = _mathMl.replaceAll('\n', '');
|
|
79092
|
+
_item.data.typesetRoot.setAttribute('data-mathml', _parsedMathMl);
|
|
79093
|
+
}
|
|
79094
|
+
} catch (e) {
|
|
79095
|
+
console.error('Error post-processing MathJax typesetting:', e.toString());
|
|
79096
|
+
}
|
|
79097
|
+
mathJaxInstance.startup.document.clear();
|
|
79098
|
+
})["catch"](function (error) {
|
|
79099
|
+
console.error('Error in typesetting with MathJax:', error);
|
|
79100
|
+
});
|
|
79101
|
+
}
|
|
79102
|
+
})["catch"](function (error) {
|
|
79103
|
+
console.error('Error in initializing MathJax:', error);
|
|
79104
|
+
});
|
|
79107
79105
|
}
|
|
79108
79106
|
};
|
|
79109
79107
|
if (skipWaitForMathRenderingLib) {
|
|
@@ -122129,7 +122127,7 @@ const require$$13 = _dll_react_dom;
|
|
|
122129
122127
|
transform: 'translate(0, 0)'
|
|
122130
122128
|
},
|
|
122131
122129
|
chip: {
|
|
122132
|
-
backgroundColor: _renderUi.color.
|
|
122130
|
+
backgroundColor: _renderUi.color.white(),
|
|
122133
122131
|
border: ("1px solid ").concat(_renderUi.color.text()),
|
|
122134
122132
|
color: _renderUi.color.text(),
|
|
122135
122133
|
alignItems: 'center',
|
|
@@ -122149,7 +122147,9 @@ const require$$13 = _dll_react_dom;
|
|
|
122149
122147
|
padding: '2px 0'
|
|
122150
122148
|
}
|
|
122151
122149
|
},
|
|
122152
|
-
disabled: {
|
|
122150
|
+
disabled: {
|
|
122151
|
+
opacity: 0.6
|
|
122152
|
+
}
|
|
122153
122153
|
};
|
|
122154
122154
|
})(BlankContentComp);
|
|
122155
122155
|
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_debug, _dll_lodash, _dll_react_dom_server, _dll_react_dom, _dll_classnames, _dll_pie_lib__pie_toolbox_math_rendering_accessible} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.24.
|
|
1
|
+
import {_dll_react, _dll_prop_types, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_react_dom, _dll_classnames, _dll_pie_lib__pie_toolbox_math_rendering_accessible} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.24.4/module/index.js";
|
|
2
2
|
import {_dll_pie_lib__pie_toolbox_correct_answer_toggle, _dll_pie_lib__pie_toolbox_render_ui} 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) {
|
|
@@ -19119,7 +19119,7 @@ mathjaxScript.initializeMathJax = mathjaxScript.MathJaxVersion = void 0;
|
|
|
19119
19119
|
var _renderMath = renderMath$2;
|
|
19120
19120
|
var MathJaxVersion = '3.2.2';
|
|
19121
19121
|
mathjaxScript.MathJaxVersion = MathJaxVersion;
|
|
19122
|
-
var initializeMathJax = function initializeMathJax(renderOpts
|
|
19122
|
+
var initializeMathJax = function initializeMathJax(renderOpts) {
|
|
19123
19123
|
if (renderOpts !== null && renderOpts !== void 0 && renderOpts.useSingleDollar) {
|
|
19124
19124
|
console.warn('[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)');
|
|
19125
19125
|
}
|
|
@@ -19142,60 +19142,57 @@ var initializeMathJax = function initializeMathJax(renderOpts, callback) {
|
|
|
19142
19142
|
},
|
|
19143
19143
|
displayMath: [['$$', '$$'], ['\\[', '\\]']]
|
|
19144
19144
|
};
|
|
19145
|
-
window.
|
|
19146
|
-
|
|
19147
|
-
|
|
19148
|
-
|
|
19149
|
-
|
|
19150
|
-
|
|
19151
|
-
|
|
19152
|
-
|
|
19153
|
-
|
|
19154
|
-
|
|
19155
|
-
|
|
19156
|
-
|
|
19157
|
-
|
|
19158
|
-
|
|
19159
|
-
|
|
19160
|
-
|
|
19161
|
-
|
|
19162
|
-
|
|
19163
|
-
|
|
19164
|
-
|
|
19165
|
-
if (callback) {
|
|
19166
|
-
callback();
|
|
19145
|
+
window.mathjaxLoadedP = new Promise(function (resolve) {
|
|
19146
|
+
window.MathJax = {
|
|
19147
|
+
startup: {
|
|
19148
|
+
typeset: false,
|
|
19149
|
+
ready: function ready() {
|
|
19150
|
+
var mathjax = MathJax._.mathjax.mathjax;
|
|
19151
|
+
var STATE = MathJax._.core.MathItem.STATE;
|
|
19152
|
+
var Menu = MathJax._.ui.menu.Menu.Menu;
|
|
19153
|
+
var rerender = Menu.prototype.rerender;
|
|
19154
|
+
Menu.prototype.rerender = function () {
|
|
19155
|
+
var _this = this;
|
|
19156
|
+
var start = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : STATE.TYPESET;
|
|
19157
|
+
mathjax.handleRetriesFor(function () {
|
|
19158
|
+
return rerender.call(_this, start);
|
|
19159
|
+
});
|
|
19160
|
+
};
|
|
19161
|
+
MathJax.startup.defaultReady();
|
|
19162
|
+
var globalObj = (0, _renderMath.getGlobal)();
|
|
19163
|
+
globalObj.instance = MathJax;
|
|
19164
|
+
resolve();
|
|
19167
19165
|
}
|
|
19168
|
-
}
|
|
19169
|
-
},
|
|
19170
|
-
loader: {
|
|
19171
|
-
load: ['input/mml'],
|
|
19172
|
-
preLoad: function preLoad() {}
|
|
19173
|
-
},
|
|
19174
|
-
tex: texConfig,
|
|
19175
|
-
chtml: {
|
|
19176
|
-
fontURL: 'https://unpkg.com/mathjax-full@3.2.2/ts/output/chtml/fonts/tex-woff-v2',
|
|
19177
|
-
displayAlign: 'center'
|
|
19178
|
-
},
|
|
19179
|
-
customKey: '@pie-lib/math-rendering-accessible@1',
|
|
19180
|
-
options: {
|
|
19181
|
-
enableEnrichment: true,
|
|
19182
|
-
sre: {
|
|
19183
|
-
speech: 'deep'
|
|
19184
19166
|
},
|
|
19185
|
-
|
|
19186
|
-
|
|
19187
|
-
|
|
19188
|
-
|
|
19189
|
-
|
|
19167
|
+
loader: {
|
|
19168
|
+
load: ['input/mml']
|
|
19169
|
+
},
|
|
19170
|
+
tex: texConfig,
|
|
19171
|
+
chtml: {
|
|
19172
|
+
fontURL: 'https://unpkg.com/mathjax-full@3.2.2/ts/output/chtml/fonts/tex-woff-v2',
|
|
19173
|
+
displayAlign: 'center'
|
|
19174
|
+
},
|
|
19175
|
+
customKey: '@pie-lib/math-rendering-accessible@1',
|
|
19176
|
+
options: {
|
|
19177
|
+
enableEnrichment: true,
|
|
19178
|
+
sre: {
|
|
19179
|
+
speech: 'deep'
|
|
19180
|
+
},
|
|
19181
|
+
menuOptions: {
|
|
19182
|
+
settings: {
|
|
19183
|
+
assistiveMml: true,
|
|
19184
|
+
collapsible: false,
|
|
19185
|
+
explorer: false
|
|
19186
|
+
}
|
|
19190
19187
|
}
|
|
19191
19188
|
}
|
|
19192
|
-
}
|
|
19193
|
-
|
|
19194
|
-
|
|
19195
|
-
|
|
19196
|
-
|
|
19197
|
-
|
|
19198
|
-
|
|
19189
|
+
};
|
|
19190
|
+
var script = document.createElement('script');
|
|
19191
|
+
script.type = 'text/javascript';
|
|
19192
|
+
script.src = ("https://cdn.jsdelivr.net/npm/mathjax@").concat(MathJaxVersion, "/es5/tex-chtml-full.js");
|
|
19193
|
+
script.async = true;
|
|
19194
|
+
document.body.appendChild(script);
|
|
19195
|
+
});
|
|
19199
19196
|
};
|
|
19200
19197
|
mathjaxScript.initializeMathJax = initializeMathJax;
|
|
19201
19198
|
var normalization$1 = {};
|
|
@@ -79021,36 +79018,11 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
79021
79018
|
fixMathElements(executeOn);
|
|
79022
79019
|
adjustMathMLStyle(executeOn);
|
|
79023
79020
|
var mathJaxCustomKey = getMathJaxCustomKey();
|
|
79024
|
-
|
|
79025
|
-
var mathJaxInstance = getGlobal().instance;
|
|
79026
|
-
if (mathJaxInstance) {
|
|
79027
|
-
mathJaxInstance.texReset();
|
|
79028
|
-
mathJaxInstance.typesetClear();
|
|
79029
|
-
mathJaxInstance.typesetPromise([executeOn]).then(function () {
|
|
79030
|
-
try {
|
|
79031
|
-
removeExcessMjxContainers(executeOn);
|
|
79032
|
-
removePlaceholdersAndRestoreDisplay();
|
|
79033
|
-
var updatedDocument = mathJaxInstance.startup.document;
|
|
79034
|
-
var list = updatedDocument.math.list;
|
|
79035
|
-
for (var item = list.next; (0, _typeof2["default"])(item.data) !== 'symbol'; item = item.next) {
|
|
79036
|
-
var mathMl = toMMl(item.data.root);
|
|
79037
|
-
var parsedMathMl = mathMl.replaceAll('\n', '');
|
|
79038
|
-
item.data.typesetRoot.setAttribute('data-mathml', parsedMathMl);
|
|
79039
|
-
}
|
|
79040
|
-
} catch (e) {
|
|
79041
|
-
console.error('Error post-processing MathJax typesetting:', e.toString());
|
|
79042
|
-
}
|
|
79043
|
-
mathJaxInstance.startup.document.clear();
|
|
79044
|
-
})["catch"](function (error) {
|
|
79045
|
-
console.error('Error in typesetting with MathJax:', error);
|
|
79046
|
-
});
|
|
79047
|
-
}
|
|
79048
|
-
};
|
|
79049
|
-
if ((!window.MathJax || window.MathJax.version !== _mathjaxScript.MathJaxVersion) && !window.mathjaxInitialising || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
|
|
79021
|
+
if ((!window.MathJax || window.MathJax.version !== _mathjaxScript.MathJaxVersion) && !window.mathjaxLoadedP || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
|
|
79050
79022
|
renderOpts = renderOpts || defaultOpts();
|
|
79051
|
-
(0, _mathjaxScript.initializeMathJax)(renderOpts
|
|
79023
|
+
(0, _mathjaxScript.initializeMathJax)(renderOpts);
|
|
79052
79024
|
}
|
|
79053
|
-
if (isString && window.MathJax && window.
|
|
79025
|
+
if (isString && window.MathJax && window.mathjaxLoadedP) {
|
|
79054
79026
|
try {
|
|
79055
79027
|
MathJax.texReset();
|
|
79056
79028
|
MathJax.typesetClear();
|
|
@@ -79065,8 +79037,34 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
79065
79037
|
console.error('Error rendering math:', error.message);
|
|
79066
79038
|
}
|
|
79067
79039
|
}
|
|
79068
|
-
if (window.
|
|
79069
|
-
|
|
79040
|
+
if (window.mathjaxLoadedP) {
|
|
79041
|
+
window.mathjaxLoadedP.then(function () {
|
|
79042
|
+
var mathJaxInstance = getGlobal().instance;
|
|
79043
|
+
if (mathJaxInstance) {
|
|
79044
|
+
mathJaxInstance.texReset();
|
|
79045
|
+
mathJaxInstance.typesetClear();
|
|
79046
|
+
mathJaxInstance.typesetPromise([executeOn]).then(function () {
|
|
79047
|
+
try {
|
|
79048
|
+
removeExcessMjxContainers(executeOn);
|
|
79049
|
+
removePlaceholdersAndRestoreDisplay();
|
|
79050
|
+
var _updatedDocument = mathJaxInstance.startup.document;
|
|
79051
|
+
var _list = _updatedDocument.math.list;
|
|
79052
|
+
for (var _item = _list.next; (0, _typeof2["default"])(_item.data) !== 'symbol'; _item = _item.next) {
|
|
79053
|
+
var _mathMl = toMMl(_item.data.root);
|
|
79054
|
+
var _parsedMathMl = _mathMl.replaceAll('\n', '');
|
|
79055
|
+
_item.data.typesetRoot.setAttribute('data-mathml', _parsedMathMl);
|
|
79056
|
+
}
|
|
79057
|
+
} catch (e) {
|
|
79058
|
+
console.error('Error post-processing MathJax typesetting:', e.toString());
|
|
79059
|
+
}
|
|
79060
|
+
mathJaxInstance.startup.document.clear();
|
|
79061
|
+
})["catch"](function (error) {
|
|
79062
|
+
console.error('Error in typesetting with MathJax:', error);
|
|
79063
|
+
});
|
|
79064
|
+
}
|
|
79065
|
+
})["catch"](function (error) {
|
|
79066
|
+
console.error('Error in initializing MathJax:', error);
|
|
79067
|
+
});
|
|
79070
79068
|
}
|
|
79071
79069
|
};
|
|
79072
79070
|
if (skipWaitForMathRenderingLib) {
|
|
@@ -122092,7 +122090,7 @@ const require$$13 = _dll_react_dom;
|
|
|
122092
122090
|
transform: 'translate(0, 0)'
|
|
122093
122091
|
},
|
|
122094
122092
|
chip: {
|
|
122095
|
-
backgroundColor: _renderUi.color.
|
|
122093
|
+
backgroundColor: _renderUi.color.white(),
|
|
122096
122094
|
border: ("1px solid ").concat(_renderUi.color.text()),
|
|
122097
122095
|
color: _renderUi.color.text(),
|
|
122098
122096
|
alignItems: 'center',
|
|
@@ -122112,7 +122110,9 @@ const require$$13 = _dll_react_dom;
|
|
|
122112
122110
|
padding: '2px 0'
|
|
122113
122111
|
}
|
|
122114
122112
|
},
|
|
122115
|
-
disabled: {
|
|
122113
|
+
disabled: {
|
|
122114
|
+
opacity: 0.6
|
|
122115
|
+
}
|
|
122116
122116
|
};
|
|
122117
122117
|
})(BlankContentComp);
|
|
122118
122118
|
exports.BlankContent = BlankContent;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"repository": "pie-framework/pie-elements",
|
|
7
|
-
"version": "6.22.5-next.
|
|
7
|
+
"version": "6.22.5-next.47+68306be02",
|
|
8
8
|
"description": "",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"postpublish": "../../scripts/postpublish"
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@material-ui/core": "^3.9.2",
|
|
14
14
|
"@pie-framework/pie-player-events": "^0.1.0",
|
|
15
|
-
"@pie-lib/pie-toolbox": "1.
|
|
15
|
+
"@pie-lib/pie-toolbox": "1.32.0",
|
|
16
16
|
"classnames": "^2.2.5",
|
|
17
17
|
"lodash": "^4.17.10",
|
|
18
18
|
"prop-types": "^15.6.1",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"author": "",
|
|
23
23
|
"license": "ISC",
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "68306be02254a6019916637fd9b75427cae1c0ed",
|
|
25
25
|
"main": "lib/index.js",
|
|
26
26
|
"module": "src/index.js",
|
|
27
27
|
"exports": {
|