@pie-element/complex-rubric 2.19.5-next.42 → 2.19.5-next.44
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 +38 -33
- package/module/element.js +38 -33
- package/module/print.js +38 -33
- package/package.json +4 -4
package/controller/package.json
CHANGED
package/module/configure.js
CHANGED
|
@@ -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, callback) {
|
|
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
|
}
|
|
@@ -42084,11 +42084,17 @@ var initializeMathJax = function initializeMathJax(renderOpts) {
|
|
|
42084
42084
|
MathJax.startup.defaultReady();
|
|
42085
42085
|
var globalObj = (0, _renderMath.getGlobal)();
|
|
42086
42086
|
globalObj.instance = MathJax;
|
|
42087
|
-
|
|
42087
|
+
window.mathjaxIsInitialised = true;
|
|
42088
|
+
if (callback) {
|
|
42089
|
+
callback();
|
|
42090
|
+
} else {
|
|
42091
|
+
resolve();
|
|
42092
|
+
}
|
|
42088
42093
|
}
|
|
42089
42094
|
},
|
|
42090
42095
|
loader: {
|
|
42091
|
-
load: ['input/mml']
|
|
42096
|
+
load: ['input/mml'],
|
|
42097
|
+
preLoad: function preLoad() {}
|
|
42092
42098
|
},
|
|
42093
42099
|
tex: texConfig,
|
|
42094
42100
|
chtml: {
|
|
@@ -101866,11 +101872,36 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
101866
101872
|
fixMathElements(executeOn);
|
|
101867
101873
|
adjustMathMLStyle(executeOn);
|
|
101868
101874
|
var mathJaxCustomKey = getMathJaxCustomKey();
|
|
101875
|
+
var workingWithMathJax = function workingWithMathJax() {
|
|
101876
|
+
var mathJaxInstance = getGlobal().instance;
|
|
101877
|
+
if (mathJaxInstance) {
|
|
101878
|
+
mathJaxInstance.texReset();
|
|
101879
|
+
mathJaxInstance.typesetClear();
|
|
101880
|
+
mathJaxInstance.typesetPromise([executeOn]).then(function () {
|
|
101881
|
+
try {
|
|
101882
|
+
removeExcessMjxContainers(executeOn);
|
|
101883
|
+
removePlaceholdersAndRestoreDisplay();
|
|
101884
|
+
var updatedDocument = mathJaxInstance.startup.document;
|
|
101885
|
+
var list = updatedDocument.math.list;
|
|
101886
|
+
for (var item = list.next; (0, _typeof2["default"])(item.data) !== 'symbol'; item = item.next) {
|
|
101887
|
+
var mathMl = toMMl(item.data.root);
|
|
101888
|
+
var parsedMathMl = mathMl.replaceAll('\n', '');
|
|
101889
|
+
item.data.typesetRoot.setAttribute('data-mathml', parsedMathMl);
|
|
101890
|
+
}
|
|
101891
|
+
} catch (e) {
|
|
101892
|
+
console.error('Error post-processing MathJax typesetting:', e.toString());
|
|
101893
|
+
}
|
|
101894
|
+
mathJaxInstance.startup.document.clear();
|
|
101895
|
+
})["catch"](function (error) {
|
|
101896
|
+
console.error('Error in typesetting with MathJax:', error);
|
|
101897
|
+
});
|
|
101898
|
+
}
|
|
101899
|
+
};
|
|
101869
101900
|
if ((!window.MathJax || window.MathJax.version !== _mathjaxScript.MathJaxVersion) && !window.mathjaxLoadedP || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
|
|
101870
101901
|
renderOpts = renderOpts || defaultOpts();
|
|
101871
|
-
(0, _mathjaxScript.initializeMathJax)(renderOpts);
|
|
101902
|
+
(0, _mathjaxScript.initializeMathJax)(renderOpts, workingWithMathJax);
|
|
101872
101903
|
}
|
|
101873
|
-
if (isString && window.MathJax && window.
|
|
101904
|
+
if (isString && window.MathJax && window.mathjaxIsInitialised) {
|
|
101874
101905
|
try {
|
|
101875
101906
|
MathJax.texReset();
|
|
101876
101907
|
MathJax.typesetClear();
|
|
@@ -101885,34 +101916,8 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
101885
101916
|
console.error('Error rendering math:', error.message);
|
|
101886
101917
|
}
|
|
101887
101918
|
}
|
|
101888
|
-
if (window.
|
|
101889
|
-
|
|
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
|
-
});
|
|
101919
|
+
if (window.mathjaxIsInitialised) {
|
|
101920
|
+
workingWithMathJax();
|
|
101916
101921
|
}
|
|
101917
101922
|
};
|
|
101918
101923
|
if (skipWaitForMathRenderingLib) {
|
package/module/element.js
CHANGED
|
@@ -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, callback) {
|
|
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
|
}
|
|
@@ -65410,11 +65410,17 @@ var initializeMathJax = function initializeMathJax(renderOpts) {
|
|
|
65410
65410
|
MathJax.startup.defaultReady();
|
|
65411
65411
|
var globalObj = (0, _renderMath.getGlobal)();
|
|
65412
65412
|
globalObj.instance = MathJax;
|
|
65413
|
-
|
|
65413
|
+
window.mathjaxIsInitialised = true;
|
|
65414
|
+
if (callback) {
|
|
65415
|
+
callback();
|
|
65416
|
+
} else {
|
|
65417
|
+
resolve();
|
|
65418
|
+
}
|
|
65414
65419
|
}
|
|
65415
65420
|
},
|
|
65416
65421
|
loader: {
|
|
65417
|
-
load: ['input/mml']
|
|
65422
|
+
load: ['input/mml'],
|
|
65423
|
+
preLoad: function preLoad() {}
|
|
65418
65424
|
},
|
|
65419
65425
|
tex: texConfig,
|
|
65420
65426
|
chtml: {
|
|
@@ -125127,11 +125133,36 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
125127
125133
|
fixMathElements(executeOn);
|
|
125128
125134
|
adjustMathMLStyle(executeOn);
|
|
125129
125135
|
var mathJaxCustomKey = getMathJaxCustomKey();
|
|
125136
|
+
var workingWithMathJax = function workingWithMathJax() {
|
|
125137
|
+
var mathJaxInstance = getGlobal().instance;
|
|
125138
|
+
if (mathJaxInstance) {
|
|
125139
|
+
mathJaxInstance.texReset();
|
|
125140
|
+
mathJaxInstance.typesetClear();
|
|
125141
|
+
mathJaxInstance.typesetPromise([executeOn]).then(function () {
|
|
125142
|
+
try {
|
|
125143
|
+
removeExcessMjxContainers(executeOn);
|
|
125144
|
+
removePlaceholdersAndRestoreDisplay();
|
|
125145
|
+
var updatedDocument = mathJaxInstance.startup.document;
|
|
125146
|
+
var list = updatedDocument.math.list;
|
|
125147
|
+
for (var item = list.next; (0, _typeof2["default"])(item.data) !== 'symbol'; item = item.next) {
|
|
125148
|
+
var mathMl = toMMl(item.data.root);
|
|
125149
|
+
var parsedMathMl = mathMl.replaceAll('\n', '');
|
|
125150
|
+
item.data.typesetRoot.setAttribute('data-mathml', parsedMathMl);
|
|
125151
|
+
}
|
|
125152
|
+
} catch (e) {
|
|
125153
|
+
console.error('Error post-processing MathJax typesetting:', e.toString());
|
|
125154
|
+
}
|
|
125155
|
+
mathJaxInstance.startup.document.clear();
|
|
125156
|
+
})["catch"](function (error) {
|
|
125157
|
+
console.error('Error in typesetting with MathJax:', error);
|
|
125158
|
+
});
|
|
125159
|
+
}
|
|
125160
|
+
};
|
|
125130
125161
|
if ((!window.MathJax || window.MathJax.version !== _mathjaxScript.MathJaxVersion) && !window.mathjaxLoadedP || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
|
|
125131
125162
|
renderOpts = renderOpts || defaultOpts();
|
|
125132
|
-
(0, _mathjaxScript.initializeMathJax)(renderOpts);
|
|
125163
|
+
(0, _mathjaxScript.initializeMathJax)(renderOpts, workingWithMathJax);
|
|
125133
125164
|
}
|
|
125134
|
-
if (isString && window.MathJax && window.
|
|
125165
|
+
if (isString && window.MathJax && window.mathjaxIsInitialised) {
|
|
125135
125166
|
try {
|
|
125136
125167
|
MathJax.texReset();
|
|
125137
125168
|
MathJax.typesetClear();
|
|
@@ -125146,34 +125177,8 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
125146
125177
|
console.error('Error rendering math:', error.message);
|
|
125147
125178
|
}
|
|
125148
125179
|
}
|
|
125149
|
-
if (window.
|
|
125150
|
-
|
|
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
|
-
});
|
|
125180
|
+
if (window.mathjaxIsInitialised) {
|
|
125181
|
+
workingWithMathJax();
|
|
125177
125182
|
}
|
|
125178
125183
|
};
|
|
125179
125184
|
if (skipWaitForMathRenderingLib) {
|
package/module/print.js
CHANGED
|
@@ -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, callback) {
|
|
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
|
}
|
|
@@ -65410,11 +65410,17 @@ var initializeMathJax = function initializeMathJax(renderOpts) {
|
|
|
65410
65410
|
MathJax.startup.defaultReady();
|
|
65411
65411
|
var globalObj = (0, _renderMath.getGlobal)();
|
|
65412
65412
|
globalObj.instance = MathJax;
|
|
65413
|
-
|
|
65413
|
+
window.mathjaxIsInitialised = true;
|
|
65414
|
+
if (callback) {
|
|
65415
|
+
callback();
|
|
65416
|
+
} else {
|
|
65417
|
+
resolve();
|
|
65418
|
+
}
|
|
65414
65419
|
}
|
|
65415
65420
|
},
|
|
65416
65421
|
loader: {
|
|
65417
|
-
load: ['input/mml']
|
|
65422
|
+
load: ['input/mml'],
|
|
65423
|
+
preLoad: function preLoad() {}
|
|
65418
65424
|
},
|
|
65419
65425
|
tex: texConfig,
|
|
65420
65426
|
chtml: {
|
|
@@ -125127,11 +125133,36 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
125127
125133
|
fixMathElements(executeOn);
|
|
125128
125134
|
adjustMathMLStyle(executeOn);
|
|
125129
125135
|
var mathJaxCustomKey = getMathJaxCustomKey();
|
|
125136
|
+
var workingWithMathJax = function workingWithMathJax() {
|
|
125137
|
+
var mathJaxInstance = getGlobal().instance;
|
|
125138
|
+
if (mathJaxInstance) {
|
|
125139
|
+
mathJaxInstance.texReset();
|
|
125140
|
+
mathJaxInstance.typesetClear();
|
|
125141
|
+
mathJaxInstance.typesetPromise([executeOn]).then(function () {
|
|
125142
|
+
try {
|
|
125143
|
+
removeExcessMjxContainers(executeOn);
|
|
125144
|
+
removePlaceholdersAndRestoreDisplay();
|
|
125145
|
+
var updatedDocument = mathJaxInstance.startup.document;
|
|
125146
|
+
var list = updatedDocument.math.list;
|
|
125147
|
+
for (var item = list.next; (0, _typeof2["default"])(item.data) !== 'symbol'; item = item.next) {
|
|
125148
|
+
var mathMl = toMMl(item.data.root);
|
|
125149
|
+
var parsedMathMl = mathMl.replaceAll('\n', '');
|
|
125150
|
+
item.data.typesetRoot.setAttribute('data-mathml', parsedMathMl);
|
|
125151
|
+
}
|
|
125152
|
+
} catch (e) {
|
|
125153
|
+
console.error('Error post-processing MathJax typesetting:', e.toString());
|
|
125154
|
+
}
|
|
125155
|
+
mathJaxInstance.startup.document.clear();
|
|
125156
|
+
})["catch"](function (error) {
|
|
125157
|
+
console.error('Error in typesetting with MathJax:', error);
|
|
125158
|
+
});
|
|
125159
|
+
}
|
|
125160
|
+
};
|
|
125130
125161
|
if ((!window.MathJax || window.MathJax.version !== _mathjaxScript.MathJaxVersion) && !window.mathjaxLoadedP || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
|
|
125131
125162
|
renderOpts = renderOpts || defaultOpts();
|
|
125132
|
-
(0, _mathjaxScript.initializeMathJax)(renderOpts);
|
|
125163
|
+
(0, _mathjaxScript.initializeMathJax)(renderOpts, workingWithMathJax);
|
|
125133
125164
|
}
|
|
125134
|
-
if (isString && window.MathJax && window.
|
|
125165
|
+
if (isString && window.MathJax && window.mathjaxIsInitialised) {
|
|
125135
125166
|
try {
|
|
125136
125167
|
MathJax.texReset();
|
|
125137
125168
|
MathJax.typesetClear();
|
|
@@ -125146,34 +125177,8 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
125146
125177
|
console.error('Error rendering math:', error.message);
|
|
125147
125178
|
}
|
|
125148
125179
|
}
|
|
125149
|
-
if (window.
|
|
125150
|
-
|
|
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
|
-
});
|
|
125180
|
+
if (window.mathjaxIsInitialised) {
|
|
125181
|
+
workingWithMathJax();
|
|
125177
125182
|
}
|
|
125178
125183
|
};
|
|
125179
125184
|
if (skipWaitForMathRenderingLib) {
|
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.44+a2e933cd2",
|
|
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.44+a2e933cd2",
|
|
11
|
+
"@pie-element/rubric": "^3.19.5-next.44+a2e933cd2",
|
|
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": "a2e933cd27bb052046e245672d3e01cb5ba1b518",
|
|
19
19
|
"scripts": {
|
|
20
20
|
"postpublish": "../../scripts/postpublish"
|
|
21
21
|
},
|