@pie-element/complex-rubric 2.10.2 → 2.10.3
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/CHANGELOG.md +11 -0
- package/configure/CHANGELOG.md +8 -0
- package/configure/package.json +3 -3
- package/controller/CHANGELOG.md +11 -0
- package/controller/package.json +2 -2
- package/module/configure.js +26 -3
- package/module/element.js +26 -3
- package/module/index.html +1 -1
- package/module/manifest.json +2 -2
- package/module/print.html +1 -1
- package/module/print.js +26 -3
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.10.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric@2.10.2...@pie-element/complex-rubric@2.10.3) (2024-05-07)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* update pie-lib/pie-toolbox PD-3731 ([2b5d6c9](https://github.com/pie-framework/pie-elements/commit/2b5d6c932280981a0fd636bcb30d7fbc181ac311))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [2.10.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric@2.10.1...@pie-element/complex-rubric@2.10.2) (2024-05-03)
|
|
7
18
|
|
|
8
19
|
|
package/configure/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.2.18](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-configure@2.2.17...@pie-element/complex-rubric-configure@2.2.18) (2024-05-07)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @pie-element/complex-rubric-configure
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [2.2.17](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-configure@2.2.16...@pie-element/complex-rubric-configure@2.2.17) (2024-05-03)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @pie-element/complex-rubric-configure
|
package/configure/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/complex-rubric-configure",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "2.2.
|
|
4
|
+
"version": "2.2.18",
|
|
5
5
|
"description": "Complex Rubric authoring view",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"module": "src/index.js",
|
|
8
8
|
"author": "Pie Framework Authors",
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@material-ui/core": "^3.9.2",
|
|
11
|
-
"@pie-element/multi-trait-rubric": "^3.10.
|
|
12
|
-
"@pie-element/rubric": "^3.10.
|
|
11
|
+
"@pie-element/multi-trait-rubric": "^3.10.3",
|
|
12
|
+
"@pie-element/rubric": "^3.10.3",
|
|
13
13
|
"@pie-framework/pie-configure-events": "^1.3.0",
|
|
14
14
|
"@pie-lib/config-ui": "^11.9.25-next.0",
|
|
15
15
|
"@pie-lib/editable-html": "^11.1.2-next.0",
|
package/controller/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.9.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-controller@2.9.2...@pie-element/complex-rubric-controller@2.9.3) (2024-05-07)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* update pie-lib/pie-toolbox PD-3731 ([2b5d6c9](https://github.com/pie-framework/pie-elements/commit/2b5d6c932280981a0fd636bcb30d7fbc181ac311))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [2.9.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-controller@2.9.1...@pie-element/complex-rubric-controller@2.9.2) (2024-05-03)
|
|
7
18
|
|
|
8
19
|
|
package/controller/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/complex-rubric-controller",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "2.9.
|
|
4
|
+
"version": "2.9.3",
|
|
5
5
|
"description": "",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@pie-lib/pie-toolbox": "1.17.
|
|
10
|
+
"@pie-lib/pie-toolbox": "1.17.3",
|
|
11
11
|
"lodash": "^4.17.15"
|
|
12
12
|
},
|
|
13
13
|
"author": "",
|
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.10.
|
|
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.10.2/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.12.0/module/index.js";
|
|
4
4
|
function _mergeNamespaces(n, m) {
|
|
@@ -95250,10 +95250,13 @@ const require$$12$r = _dll_debug;
|
|
|
95250
95250
|
var renderMath = function renderMath(el, renderOpts) {
|
|
95251
95251
|
var _getGlobal$instance, _getGlobal$instance2;
|
|
95252
95252
|
if (window && window.MathJax && window.MathJax.customKey && window.MathJax.customKey == '@pie-lib/math-rendering-accessible@1') {
|
|
95253
|
+
console.log('RETURN FROM OLD MATH RENDERING, MATH RENDERING ACCESSIBLE WAS FOUND');
|
|
95253
95254
|
return;
|
|
95254
95255
|
}
|
|
95256
|
+
console.log('we are in old math rendering');
|
|
95255
95257
|
var isString = typeof el === 'string';
|
|
95256
95258
|
var executeOn = document.body;
|
|
95259
|
+
console.log(isString, 'is string in old math rendering');
|
|
95257
95260
|
if (isString) {
|
|
95258
95261
|
var div = document.createElement('div');
|
|
95259
95262
|
div.innerHTML = el;
|
|
@@ -95266,11 +95269,14 @@ const require$$12$r = _dll_debug;
|
|
|
95266
95269
|
var updatedDocument = html.findMath().compile().getMetrics().typeset().updateDocument();
|
|
95267
95270
|
var list = updatedDocument.math.list;
|
|
95268
95271
|
var item = list.next;
|
|
95272
|
+
console.log(item, 'item in old math rendering');
|
|
95269
95273
|
if (!item) {
|
|
95274
|
+
console.log("return '' in old math rendering");
|
|
95270
95275
|
return '';
|
|
95271
95276
|
}
|
|
95272
95277
|
var mathMl = toMMl(item.data.root);
|
|
95273
95278
|
var parsedMathMl = mathMl.replaceAll('\n', '');
|
|
95279
|
+
console.log(parsedMathMl, 'parsedMathMl in old math rendering');
|
|
95274
95280
|
return parsedMathMl;
|
|
95275
95281
|
}
|
|
95276
95282
|
if (!getGlobal().instance) {
|
|
@@ -95280,11 +95286,14 @@ const require$$12$r = _dll_debug;
|
|
|
95280
95286
|
log('el is undefined');
|
|
95281
95287
|
return;
|
|
95282
95288
|
}
|
|
95289
|
+
console.log(el, 'element in old math rendering');
|
|
95283
95290
|
if (el instanceof Element && (_getGlobal$instance = getGlobal().instance) !== null && _getGlobal$instance !== void 0 && _getGlobal$instance.Typeset) {
|
|
95291
|
+
console.log('Typeset element in old math rendering');
|
|
95284
95292
|
getGlobal().instance.Typeset(el);
|
|
95285
95293
|
} else if (el.length && (_getGlobal$instance2 = getGlobal().instance) !== null && _getGlobal$instance2 !== void 0 && _getGlobal$instance2.Typeset) {
|
|
95286
95294
|
var _getGlobal$instance3;
|
|
95287
95295
|
var arr = Array.from(el);
|
|
95296
|
+
console.log(arr, 'Typeset arr in old math rendering');
|
|
95288
95297
|
(_getGlobal$instance3 = getGlobal().instance).Typeset.apply(_getGlobal$instance3, (0, _toConsumableArray2["default"])(arr));
|
|
95289
95298
|
}
|
|
95290
95299
|
};
|
|
@@ -104255,7 +104264,10 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
104255
104264
|
return ((_window = window) === null || _window === void 0 ? void 0 : (_window$MathJax = _window.MathJax) === null || _window$MathJax === void 0 ? void 0 : _window$MathJax.customKey) || ((_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$MathJax = _window2.MathJax) === null || _window2$MathJax === void 0 ? void 0 : (_window2$MathJax$conf = _window2$MathJax.config) === null || _window2$MathJax$conf === void 0 ? void 0 : _window2$MathJax$conf.customKey);
|
|
104256
104265
|
};
|
|
104257
104266
|
var renderMath = function renderMath(el, renderOpts) {
|
|
104267
|
+
console.log("I'm in math rendering accessible");
|
|
104258
104268
|
var isString = typeof el === 'string';
|
|
104269
|
+
console.log('IS STRING', isString);
|
|
104270
|
+
console.log('renderOpts', renderOpts);
|
|
104259
104271
|
var executeOn = document.body;
|
|
104260
104272
|
if (isString) {
|
|
104261
104273
|
var div = document.createElement('div');
|
|
@@ -104263,16 +104275,19 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
104263
104275
|
executeOn = div;
|
|
104264
104276
|
}
|
|
104265
104277
|
var _ref = renderOpts || ({}), skipWaitForMathRenderingLib = _ref.skipWaitForMathRenderingLib;
|
|
104278
|
+
console.log(skipWaitForMathRenderingLib, 'skipWaitForMathRenderingLib');
|
|
104266
104279
|
var renderMathAccessible = function renderMathAccessible() {
|
|
104267
104280
|
fixMathElements(executeOn);
|
|
104268
104281
|
adjustMathMLStyle(executeOn);
|
|
104269
104282
|
var mathJaxCustomKey = getMathJaxCustomKey();
|
|
104270
104283
|
if (!window.MathJax && !window.mathjaxLoadedP || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
|
|
104284
|
+
console.log('INITIALIZE MATHJAX ACCESSIBLE');
|
|
104271
104285
|
renderOpts = renderOpts || defaultOpts();
|
|
104272
104286
|
(0, _mathjaxScript.initializeMathJax)(renderOpts);
|
|
104273
104287
|
}
|
|
104274
104288
|
if (isString && window.MathJax && window.mathjaxLoadedP) {
|
|
104275
104289
|
try {
|
|
104290
|
+
console.log('THE ISSUE MUST BE HERE');
|
|
104276
104291
|
MathJax.texReset();
|
|
104277
104292
|
MathJax.typesetClear();
|
|
104278
104293
|
window.MathJax.typeset([executeOn]);
|
|
@@ -104281,6 +104296,7 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
104281
104296
|
var item = list.next;
|
|
104282
104297
|
var mathMl = toMMl(item.data.root);
|
|
104283
104298
|
var parsedMathMl = mathMl.replaceAll('\n', '');
|
|
104299
|
+
console.log(parsedMathMl, 'parsedMathMl');
|
|
104284
104300
|
return parsedMathMl;
|
|
104285
104301
|
} catch (error) {
|
|
104286
104302
|
console.error('Error rendering math:', error.message);
|
|
@@ -104289,11 +104305,13 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
104289
104305
|
if (window.mathjaxLoadedP) {
|
|
104290
104306
|
window.mathjaxLoadedP.then(function () {
|
|
104291
104307
|
var mathJaxInstance = getGlobal().instance;
|
|
104308
|
+
console.log(mathJaxInstance, 'mathJaxInstance');
|
|
104292
104309
|
if (mathJaxInstance) {
|
|
104293
104310
|
mathJaxInstance.texReset();
|
|
104294
104311
|
mathJaxInstance.typesetClear();
|
|
104295
104312
|
mathJaxInstance.typesetPromise([executeOn]).then(function () {
|
|
104296
104313
|
try {
|
|
104314
|
+
console.log("I'm in typesetPromise???");
|
|
104297
104315
|
removeExcessMjxContainers(executeOn);
|
|
104298
104316
|
removePlaceholdersAndRestoreDisplay();
|
|
104299
104317
|
var _updatedDocument = mathJaxInstance.startup.document;
|
|
@@ -104317,13 +104335,16 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
104317
104335
|
}
|
|
104318
104336
|
};
|
|
104319
104337
|
if (skipWaitForMathRenderingLib) {
|
|
104338
|
+
console.log(skipWaitForMathRenderingLib, 'skipWaitForMathRenderingLib');
|
|
104320
104339
|
return renderMathAccessible();
|
|
104321
104340
|
} else {
|
|
104322
104341
|
if (window.hasOwnProperty(mathRenderingKEY) && window[mathRenderingKEY].instance) {
|
|
104342
|
+
console.log(mathRenderingKEY, 'mathRenderingKEY');
|
|
104323
104343
|
removePlaceholdersAndRestoreDisplay();
|
|
104324
|
-
return mr.renderMath();
|
|
104344
|
+
return mr.renderMath(executeOn, renderOpts);
|
|
104325
104345
|
}
|
|
104326
104346
|
if (window.hasOwnProperty(mathRenderingAccessibleKEY) && window[mathRenderingAccessibleKEY].instance) {
|
|
104347
|
+
console.log(mathRenderingAccessibleKEY, 'mathRenderingAccessibleKEY');
|
|
104327
104348
|
return renderMathAccessible();
|
|
104328
104349
|
}
|
|
104329
104350
|
var waitForMathRenderingLib = function waitForMathRenderingLib(renderMathAccessibleCallback) {
|
|
@@ -104338,14 +104359,16 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
104338
104359
|
if (mathRenderingHasLoaded || hasExceededMaxWait) {
|
|
104339
104360
|
clearInterval(checkIntervalId);
|
|
104340
104361
|
if (mathRenderingHasLoaded) {
|
|
104362
|
+
console.log(mathRenderingHasLoaded, 'mathRenderingHasLoaded');
|
|
104341
104363
|
removePlaceholdersAndRestoreDisplay();
|
|
104342
|
-
return mr.renderMath();
|
|
104364
|
+
return mr.renderMath(executeOn, renderOpts);
|
|
104343
104365
|
}
|
|
104344
104366
|
renderMathAccessibleCallback();
|
|
104345
104367
|
}
|
|
104346
104368
|
};
|
|
104347
104369
|
checkIntervalId = setInterval(checkForLib, 100);
|
|
104348
104370
|
};
|
|
104371
|
+
console.log('waitForMathRenderingLib');
|
|
104349
104372
|
waitForMathRenderingLib(renderMathAccessible);
|
|
104350
104373
|
}
|
|
104351
104374
|
};
|
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.10.
|
|
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.10.2/module/index.js";
|
|
2
2
|
import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@4.12.0/module/index.js";
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
m.forEach(function (e) {
|
|
@@ -117576,10 +117576,13 @@ const require$$12$h = _dll_debug;
|
|
|
117576
117576
|
var renderMath = function renderMath(el, renderOpts) {
|
|
117577
117577
|
var _getGlobal$instance, _getGlobal$instance2;
|
|
117578
117578
|
if (window && window.MathJax && window.MathJax.customKey && window.MathJax.customKey == '@pie-lib/math-rendering-accessible@1') {
|
|
117579
|
+
console.log('RETURN FROM OLD MATH RENDERING, MATH RENDERING ACCESSIBLE WAS FOUND');
|
|
117579
117580
|
return;
|
|
117580
117581
|
}
|
|
117582
|
+
console.log('we are in old math rendering');
|
|
117581
117583
|
var isString = typeof el === 'string';
|
|
117582
117584
|
var executeOn = document.body;
|
|
117585
|
+
console.log(isString, 'is string in old math rendering');
|
|
117583
117586
|
if (isString) {
|
|
117584
117587
|
var div = document.createElement('div');
|
|
117585
117588
|
div.innerHTML = el;
|
|
@@ -117592,11 +117595,14 @@ const require$$12$h = _dll_debug;
|
|
|
117592
117595
|
var updatedDocument = html.findMath().compile().getMetrics().typeset().updateDocument();
|
|
117593
117596
|
var list = updatedDocument.math.list;
|
|
117594
117597
|
var item = list.next;
|
|
117598
|
+
console.log(item, 'item in old math rendering');
|
|
117595
117599
|
if (!item) {
|
|
117600
|
+
console.log("return '' in old math rendering");
|
|
117596
117601
|
return '';
|
|
117597
117602
|
}
|
|
117598
117603
|
var mathMl = toMMl(item.data.root);
|
|
117599
117604
|
var parsedMathMl = mathMl.replaceAll('\n', '');
|
|
117605
|
+
console.log(parsedMathMl, 'parsedMathMl in old math rendering');
|
|
117600
117606
|
return parsedMathMl;
|
|
117601
117607
|
}
|
|
117602
117608
|
if (!getGlobal().instance) {
|
|
@@ -117606,11 +117612,14 @@ const require$$12$h = _dll_debug;
|
|
|
117606
117612
|
log('el is undefined');
|
|
117607
117613
|
return;
|
|
117608
117614
|
}
|
|
117615
|
+
console.log(el, 'element in old math rendering');
|
|
117609
117616
|
if (el instanceof Element && (_getGlobal$instance = getGlobal().instance) !== null && _getGlobal$instance !== void 0 && _getGlobal$instance.Typeset) {
|
|
117617
|
+
console.log('Typeset element in old math rendering');
|
|
117610
117618
|
getGlobal().instance.Typeset(el);
|
|
117611
117619
|
} else if (el.length && (_getGlobal$instance2 = getGlobal().instance) !== null && _getGlobal$instance2 !== void 0 && _getGlobal$instance2.Typeset) {
|
|
117612
117620
|
var _getGlobal$instance3;
|
|
117613
117621
|
var arr = Array.from(el);
|
|
117622
|
+
console.log(arr, 'Typeset arr in old math rendering');
|
|
117614
117623
|
(_getGlobal$instance3 = getGlobal().instance).Typeset.apply(_getGlobal$instance3, (0, _toConsumableArray2["default"])(arr));
|
|
117615
117624
|
}
|
|
117616
117625
|
};
|
|
@@ -126581,7 +126590,10 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
126581
126590
|
return ((_window = window) === null || _window === void 0 ? void 0 : (_window$MathJax = _window.MathJax) === null || _window$MathJax === void 0 ? void 0 : _window$MathJax.customKey) || ((_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$MathJax = _window2.MathJax) === null || _window2$MathJax === void 0 ? void 0 : (_window2$MathJax$conf = _window2$MathJax.config) === null || _window2$MathJax$conf === void 0 ? void 0 : _window2$MathJax$conf.customKey);
|
|
126582
126591
|
};
|
|
126583
126592
|
var renderMath = function renderMath(el, renderOpts) {
|
|
126593
|
+
console.log("I'm in math rendering accessible");
|
|
126584
126594
|
var isString = typeof el === 'string';
|
|
126595
|
+
console.log('IS STRING', isString);
|
|
126596
|
+
console.log('renderOpts', renderOpts);
|
|
126585
126597
|
var executeOn = document.body;
|
|
126586
126598
|
if (isString) {
|
|
126587
126599
|
var div = document.createElement('div');
|
|
@@ -126589,16 +126601,19 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
126589
126601
|
executeOn = div;
|
|
126590
126602
|
}
|
|
126591
126603
|
var _ref = renderOpts || ({}), skipWaitForMathRenderingLib = _ref.skipWaitForMathRenderingLib;
|
|
126604
|
+
console.log(skipWaitForMathRenderingLib, 'skipWaitForMathRenderingLib');
|
|
126592
126605
|
var renderMathAccessible = function renderMathAccessible() {
|
|
126593
126606
|
fixMathElements(executeOn);
|
|
126594
126607
|
adjustMathMLStyle(executeOn);
|
|
126595
126608
|
var mathJaxCustomKey = getMathJaxCustomKey();
|
|
126596
126609
|
if (!window.MathJax && !window.mathjaxLoadedP || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
|
|
126610
|
+
console.log('INITIALIZE MATHJAX ACCESSIBLE');
|
|
126597
126611
|
renderOpts = renderOpts || defaultOpts();
|
|
126598
126612
|
(0, _mathjaxScript.initializeMathJax)(renderOpts);
|
|
126599
126613
|
}
|
|
126600
126614
|
if (isString && window.MathJax && window.mathjaxLoadedP) {
|
|
126601
126615
|
try {
|
|
126616
|
+
console.log('THE ISSUE MUST BE HERE');
|
|
126602
126617
|
MathJax.texReset();
|
|
126603
126618
|
MathJax.typesetClear();
|
|
126604
126619
|
window.MathJax.typeset([executeOn]);
|
|
@@ -126607,6 +126622,7 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
126607
126622
|
var item = list.next;
|
|
126608
126623
|
var mathMl = toMMl(item.data.root);
|
|
126609
126624
|
var parsedMathMl = mathMl.replaceAll('\n', '');
|
|
126625
|
+
console.log(parsedMathMl, 'parsedMathMl');
|
|
126610
126626
|
return parsedMathMl;
|
|
126611
126627
|
} catch (error) {
|
|
126612
126628
|
console.error('Error rendering math:', error.message);
|
|
@@ -126615,11 +126631,13 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
126615
126631
|
if (window.mathjaxLoadedP) {
|
|
126616
126632
|
window.mathjaxLoadedP.then(function () {
|
|
126617
126633
|
var mathJaxInstance = getGlobal().instance;
|
|
126634
|
+
console.log(mathJaxInstance, 'mathJaxInstance');
|
|
126618
126635
|
if (mathJaxInstance) {
|
|
126619
126636
|
mathJaxInstance.texReset();
|
|
126620
126637
|
mathJaxInstance.typesetClear();
|
|
126621
126638
|
mathJaxInstance.typesetPromise([executeOn]).then(function () {
|
|
126622
126639
|
try {
|
|
126640
|
+
console.log("I'm in typesetPromise???");
|
|
126623
126641
|
removeExcessMjxContainers(executeOn);
|
|
126624
126642
|
removePlaceholdersAndRestoreDisplay();
|
|
126625
126643
|
var _updatedDocument = mathJaxInstance.startup.document;
|
|
@@ -126643,13 +126661,16 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
126643
126661
|
}
|
|
126644
126662
|
};
|
|
126645
126663
|
if (skipWaitForMathRenderingLib) {
|
|
126664
|
+
console.log(skipWaitForMathRenderingLib, 'skipWaitForMathRenderingLib');
|
|
126646
126665
|
return renderMathAccessible();
|
|
126647
126666
|
} else {
|
|
126648
126667
|
if (window.hasOwnProperty(mathRenderingKEY) && window[mathRenderingKEY].instance) {
|
|
126668
|
+
console.log(mathRenderingKEY, 'mathRenderingKEY');
|
|
126649
126669
|
removePlaceholdersAndRestoreDisplay();
|
|
126650
|
-
return mr.renderMath();
|
|
126670
|
+
return mr.renderMath(executeOn, renderOpts);
|
|
126651
126671
|
}
|
|
126652
126672
|
if (window.hasOwnProperty(mathRenderingAccessibleKEY) && window[mathRenderingAccessibleKEY].instance) {
|
|
126673
|
+
console.log(mathRenderingAccessibleKEY, 'mathRenderingAccessibleKEY');
|
|
126653
126674
|
return renderMathAccessible();
|
|
126654
126675
|
}
|
|
126655
126676
|
var waitForMathRenderingLib = function waitForMathRenderingLib(renderMathAccessibleCallback) {
|
|
@@ -126664,14 +126685,16 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
126664
126685
|
if (mathRenderingHasLoaded || hasExceededMaxWait) {
|
|
126665
126686
|
clearInterval(checkIntervalId);
|
|
126666
126687
|
if (mathRenderingHasLoaded) {
|
|
126688
|
+
console.log(mathRenderingHasLoaded, 'mathRenderingHasLoaded');
|
|
126667
126689
|
removePlaceholdersAndRestoreDisplay();
|
|
126668
|
-
return mr.renderMath();
|
|
126690
|
+
return mr.renderMath(executeOn, renderOpts);
|
|
126669
126691
|
}
|
|
126670
126692
|
renderMathAccessibleCallback();
|
|
126671
126693
|
}
|
|
126672
126694
|
};
|
|
126673
126695
|
checkIntervalId = setInterval(checkForLib, 100);
|
|
126674
126696
|
};
|
|
126697
|
+
console.log('waitForMathRenderingLib');
|
|
126675
126698
|
waitForMathRenderingLib(renderMathAccessible);
|
|
126676
126699
|
}
|
|
126677
126700
|
};
|
package/module/index.html
CHANGED
package/module/manifest.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/complex-rubric",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.2",
|
|
4
4
|
"modules": [
|
|
5
5
|
{
|
|
6
6
|
"name": "@pie-lib/pie-toolbox-math-rendering-module",
|
|
7
|
-
"version": "1.10.
|
|
7
|
+
"version": "1.10.2"
|
|
8
8
|
},
|
|
9
9
|
{
|
|
10
10
|
"name": "@pie-lib/pie-toolbox-module",
|
package/module/print.html
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.10.
|
|
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.10.2/module/index.js";
|
|
2
2
|
import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@4.12.0/module/index.js";
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
m.forEach(function (e) {
|
|
@@ -117576,10 +117576,13 @@ const require$$12$h = _dll_debug;
|
|
|
117576
117576
|
var renderMath = function renderMath(el, renderOpts) {
|
|
117577
117577
|
var _getGlobal$instance, _getGlobal$instance2;
|
|
117578
117578
|
if (window && window.MathJax && window.MathJax.customKey && window.MathJax.customKey == '@pie-lib/math-rendering-accessible@1') {
|
|
117579
|
+
console.log('RETURN FROM OLD MATH RENDERING, MATH RENDERING ACCESSIBLE WAS FOUND');
|
|
117579
117580
|
return;
|
|
117580
117581
|
}
|
|
117582
|
+
console.log('we are in old math rendering');
|
|
117581
117583
|
var isString = typeof el === 'string';
|
|
117582
117584
|
var executeOn = document.body;
|
|
117585
|
+
console.log(isString, 'is string in old math rendering');
|
|
117583
117586
|
if (isString) {
|
|
117584
117587
|
var div = document.createElement('div');
|
|
117585
117588
|
div.innerHTML = el;
|
|
@@ -117592,11 +117595,14 @@ const require$$12$h = _dll_debug;
|
|
|
117592
117595
|
var updatedDocument = html.findMath().compile().getMetrics().typeset().updateDocument();
|
|
117593
117596
|
var list = updatedDocument.math.list;
|
|
117594
117597
|
var item = list.next;
|
|
117598
|
+
console.log(item, 'item in old math rendering');
|
|
117595
117599
|
if (!item) {
|
|
117600
|
+
console.log("return '' in old math rendering");
|
|
117596
117601
|
return '';
|
|
117597
117602
|
}
|
|
117598
117603
|
var mathMl = toMMl(item.data.root);
|
|
117599
117604
|
var parsedMathMl = mathMl.replaceAll('\n', '');
|
|
117605
|
+
console.log(parsedMathMl, 'parsedMathMl in old math rendering');
|
|
117600
117606
|
return parsedMathMl;
|
|
117601
117607
|
}
|
|
117602
117608
|
if (!getGlobal().instance) {
|
|
@@ -117606,11 +117612,14 @@ const require$$12$h = _dll_debug;
|
|
|
117606
117612
|
log('el is undefined');
|
|
117607
117613
|
return;
|
|
117608
117614
|
}
|
|
117615
|
+
console.log(el, 'element in old math rendering');
|
|
117609
117616
|
if (el instanceof Element && (_getGlobal$instance = getGlobal().instance) !== null && _getGlobal$instance !== void 0 && _getGlobal$instance.Typeset) {
|
|
117617
|
+
console.log('Typeset element in old math rendering');
|
|
117610
117618
|
getGlobal().instance.Typeset(el);
|
|
117611
117619
|
} else if (el.length && (_getGlobal$instance2 = getGlobal().instance) !== null && _getGlobal$instance2 !== void 0 && _getGlobal$instance2.Typeset) {
|
|
117612
117620
|
var _getGlobal$instance3;
|
|
117613
117621
|
var arr = Array.from(el);
|
|
117622
|
+
console.log(arr, 'Typeset arr in old math rendering');
|
|
117614
117623
|
(_getGlobal$instance3 = getGlobal().instance).Typeset.apply(_getGlobal$instance3, (0, _toConsumableArray2["default"])(arr));
|
|
117615
117624
|
}
|
|
117616
117625
|
};
|
|
@@ -126581,7 +126590,10 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
126581
126590
|
return ((_window = window) === null || _window === void 0 ? void 0 : (_window$MathJax = _window.MathJax) === null || _window$MathJax === void 0 ? void 0 : _window$MathJax.customKey) || ((_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$MathJax = _window2.MathJax) === null || _window2$MathJax === void 0 ? void 0 : (_window2$MathJax$conf = _window2$MathJax.config) === null || _window2$MathJax$conf === void 0 ? void 0 : _window2$MathJax$conf.customKey);
|
|
126582
126591
|
};
|
|
126583
126592
|
var renderMath = function renderMath(el, renderOpts) {
|
|
126593
|
+
console.log("I'm in math rendering accessible");
|
|
126584
126594
|
var isString = typeof el === 'string';
|
|
126595
|
+
console.log('IS STRING', isString);
|
|
126596
|
+
console.log('renderOpts', renderOpts);
|
|
126585
126597
|
var executeOn = document.body;
|
|
126586
126598
|
if (isString) {
|
|
126587
126599
|
var div = document.createElement('div');
|
|
@@ -126589,16 +126601,19 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
126589
126601
|
executeOn = div;
|
|
126590
126602
|
}
|
|
126591
126603
|
var _ref = renderOpts || ({}), skipWaitForMathRenderingLib = _ref.skipWaitForMathRenderingLib;
|
|
126604
|
+
console.log(skipWaitForMathRenderingLib, 'skipWaitForMathRenderingLib');
|
|
126592
126605
|
var renderMathAccessible = function renderMathAccessible() {
|
|
126593
126606
|
fixMathElements(executeOn);
|
|
126594
126607
|
adjustMathMLStyle(executeOn);
|
|
126595
126608
|
var mathJaxCustomKey = getMathJaxCustomKey();
|
|
126596
126609
|
if (!window.MathJax && !window.mathjaxLoadedP || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
|
|
126610
|
+
console.log('INITIALIZE MATHJAX ACCESSIBLE');
|
|
126597
126611
|
renderOpts = renderOpts || defaultOpts();
|
|
126598
126612
|
(0, _mathjaxScript.initializeMathJax)(renderOpts);
|
|
126599
126613
|
}
|
|
126600
126614
|
if (isString && window.MathJax && window.mathjaxLoadedP) {
|
|
126601
126615
|
try {
|
|
126616
|
+
console.log('THE ISSUE MUST BE HERE');
|
|
126602
126617
|
MathJax.texReset();
|
|
126603
126618
|
MathJax.typesetClear();
|
|
126604
126619
|
window.MathJax.typeset([executeOn]);
|
|
@@ -126607,6 +126622,7 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
126607
126622
|
var item = list.next;
|
|
126608
126623
|
var mathMl = toMMl(item.data.root);
|
|
126609
126624
|
var parsedMathMl = mathMl.replaceAll('\n', '');
|
|
126625
|
+
console.log(parsedMathMl, 'parsedMathMl');
|
|
126610
126626
|
return parsedMathMl;
|
|
126611
126627
|
} catch (error) {
|
|
126612
126628
|
console.error('Error rendering math:', error.message);
|
|
@@ -126615,11 +126631,13 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
126615
126631
|
if (window.mathjaxLoadedP) {
|
|
126616
126632
|
window.mathjaxLoadedP.then(function () {
|
|
126617
126633
|
var mathJaxInstance = getGlobal().instance;
|
|
126634
|
+
console.log(mathJaxInstance, 'mathJaxInstance');
|
|
126618
126635
|
if (mathJaxInstance) {
|
|
126619
126636
|
mathJaxInstance.texReset();
|
|
126620
126637
|
mathJaxInstance.typesetClear();
|
|
126621
126638
|
mathJaxInstance.typesetPromise([executeOn]).then(function () {
|
|
126622
126639
|
try {
|
|
126640
|
+
console.log("I'm in typesetPromise???");
|
|
126623
126641
|
removeExcessMjxContainers(executeOn);
|
|
126624
126642
|
removePlaceholdersAndRestoreDisplay();
|
|
126625
126643
|
var _updatedDocument = mathJaxInstance.startup.document;
|
|
@@ -126643,13 +126661,16 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
126643
126661
|
}
|
|
126644
126662
|
};
|
|
126645
126663
|
if (skipWaitForMathRenderingLib) {
|
|
126664
|
+
console.log(skipWaitForMathRenderingLib, 'skipWaitForMathRenderingLib');
|
|
126646
126665
|
return renderMathAccessible();
|
|
126647
126666
|
} else {
|
|
126648
126667
|
if (window.hasOwnProperty(mathRenderingKEY) && window[mathRenderingKEY].instance) {
|
|
126668
|
+
console.log(mathRenderingKEY, 'mathRenderingKEY');
|
|
126649
126669
|
removePlaceholdersAndRestoreDisplay();
|
|
126650
|
-
return mr.renderMath();
|
|
126670
|
+
return mr.renderMath(executeOn, renderOpts);
|
|
126651
126671
|
}
|
|
126652
126672
|
if (window.hasOwnProperty(mathRenderingAccessibleKEY) && window[mathRenderingAccessibleKEY].instance) {
|
|
126673
|
+
console.log(mathRenderingAccessibleKEY, 'mathRenderingAccessibleKEY');
|
|
126653
126674
|
return renderMathAccessible();
|
|
126654
126675
|
}
|
|
126655
126676
|
var waitForMathRenderingLib = function waitForMathRenderingLib(renderMathAccessibleCallback) {
|
|
@@ -126664,14 +126685,16 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
126664
126685
|
if (mathRenderingHasLoaded || hasExceededMaxWait) {
|
|
126665
126686
|
clearInterval(checkIntervalId);
|
|
126666
126687
|
if (mathRenderingHasLoaded) {
|
|
126688
|
+
console.log(mathRenderingHasLoaded, 'mathRenderingHasLoaded');
|
|
126667
126689
|
removePlaceholdersAndRestoreDisplay();
|
|
126668
|
-
return mr.renderMath();
|
|
126690
|
+
return mr.renderMath(executeOn, renderOpts);
|
|
126669
126691
|
}
|
|
126670
126692
|
renderMathAccessibleCallback();
|
|
126671
126693
|
}
|
|
126672
126694
|
};
|
|
126673
126695
|
checkIntervalId = setInterval(checkForLib, 100);
|
|
126674
126696
|
};
|
|
126697
|
+
console.log('waitForMathRenderingLib');
|
|
126675
126698
|
waitForMathRenderingLib(renderMathAccessible);
|
|
126676
126699
|
}
|
|
126677
126700
|
};
|
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.10.
|
|
4
|
+
"version": "2.10.3",
|
|
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.10.
|
|
11
|
-
"@pie-element/rubric": "^3.10.
|
|
10
|
+
"@pie-element/multi-trait-rubric": "^3.10.3",
|
|
11
|
+
"@pie-element/rubric": "^3.10.3",
|
|
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": "c05a86593b64b6c7a7d48ff484cfa5a2a3ade3ea",
|
|
19
19
|
"scripts": {
|
|
20
20
|
"postpublish": "../../scripts/postpublish"
|
|
21
21
|
},
|