@pie-element/select-text 8.11.2-next.6 → 8.11.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 +22 -0
- package/configure/CHANGELOG.md +22 -0
- package/configure/package.json +2 -2
- package/controller/CHANGELOG.md +22 -0
- package/controller/package.json +2 -2
- package/module/configure.js +27 -4
- package/module/element.js +27 -4
- package/module/index.html +1 -1
- package/module/manifest.json +3 -3
- package/module/print.html +1 -1
- package/module/print.js +27 -4
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
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
|
+
## [8.11.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/select-text@8.11.2...@pie-element/select-text@8.11.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
|
+
|
|
17
|
+
## [8.11.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/select-text@8.11.1...@pie-element/select-text@8.11.2) (2024-05-03)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* update pie-lib/pie-toolbox PD-3537, PD-3538, PD-3539, PD-3540,PD-3680 ([d9cb471](https://github.com/pie-framework/pie-elements/commit/d9cb47148a8fec71d5de29f2cf2b92ec7b479470))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
## [8.11.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/select-text@8.11.0...@pie-element/select-text@8.11.1) (2024-04-29)
|
|
7
29
|
|
|
8
30
|
|
package/configure/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
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
|
+
## [7.10.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/select-text-configure@7.10.2...@pie-element/select-text-configure@7.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
|
+
|
|
17
|
+
## [7.10.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/select-text-configure@7.10.1...@pie-element/select-text-configure@7.10.2) (2024-05-03)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* update pie-lib/pie-toolbox PD-3537, PD-3538, PD-3539, PD-3540,PD-3680 ([d9cb471](https://github.com/pie-framework/pie-elements/commit/d9cb47148a8fec71d5de29f2cf2b92ec7b479470))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
## [7.10.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/select-text-configure@7.10.0...@pie-element/select-text-configure@7.10.1) (2024-04-29)
|
|
7
29
|
|
|
8
30
|
|
package/configure/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/select-text-configure",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "7.10.
|
|
4
|
+
"version": "7.10.3",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"module": "src/index.js",
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@material-ui/core": "^3.9.2",
|
|
10
10
|
"@pie-framework/pie-configure-events": "^1.3.0",
|
|
11
|
-
"@pie-lib/pie-toolbox": "1.
|
|
11
|
+
"@pie-lib/pie-toolbox": "1.17.3",
|
|
12
12
|
"debug": "^3.1.0",
|
|
13
13
|
"lodash": "^4.17.15",
|
|
14
14
|
"prop-types": "^15.6.2",
|
package/controller/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
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
|
+
## [5.9.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/select-text-controller@5.9.2...@pie-element/select-text-controller@5.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
|
+
|
|
17
|
+
## [5.9.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/select-text-controller@5.9.1...@pie-element/select-text-controller@5.9.2) (2024-05-03)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* update pie-lib/pie-toolbox PD-3537, PD-3538, PD-3539, PD-3540,PD-3680 ([d9cb471](https://github.com/pie-framework/pie-elements/commit/d9cb47148a8fec71d5de29f2cf2b92ec7b479470))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
## [5.9.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/select-text-controller@5.9.0...@pie-element/select-text-controller@5.9.1) (2024-04-29)
|
|
7
29
|
|
|
8
30
|
|
package/controller/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/select-text-controller",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "5.9.
|
|
4
|
+
"version": "5.9.3",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"module": "src/index.js",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@pie-lib/pie-toolbox": "1.
|
|
9
|
+
"@pie-lib/pie-toolbox": "1.17.3",
|
|
10
10
|
"debug": "^3.1.0",
|
|
11
11
|
"lodash": "^4.17.15"
|
|
12
12
|
},
|
package/module/configure.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_lodash, _dll_debug, _dll_react_dom_server} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.
|
|
2
|
-
import {_dll_pie_lib__pie_toolbox_config_ui, _dll_pie_lib__pie_toolbox_editable_html} from "../../../@pie-lib/pie-toolbox-module@4.
|
|
1
|
+
import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_lodash, _dll_debug, _dll_react_dom_server} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.10.2/module/index.js";
|
|
2
|
+
import {_dll_pie_lib__pie_toolbox_config_ui, _dll_pie_lib__pie_toolbox_editable_html} from "../../../@pie-lib/pie-toolbox-module@4.12.0/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) {
|
|
5
5
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
@@ -94686,10 +94686,13 @@ const require$$12$4 = _dll_debug;
|
|
|
94686
94686
|
var renderMath = function renderMath(el, renderOpts) {
|
|
94687
94687
|
var _getGlobal$instance, _getGlobal$instance2;
|
|
94688
94688
|
if (window && window.MathJax && window.MathJax.customKey && window.MathJax.customKey == '@pie-lib/math-rendering-accessible@1') {
|
|
94689
|
+
console.log('RETURN FROM OLD MATH RENDERING, MATH RENDERING ACCESSIBLE WAS FOUND');
|
|
94689
94690
|
return;
|
|
94690
94691
|
}
|
|
94692
|
+
console.log('we are in old math rendering');
|
|
94691
94693
|
var isString = typeof el === 'string';
|
|
94692
94694
|
var executeOn = document.body;
|
|
94695
|
+
console.log(isString, 'is string in old math rendering');
|
|
94693
94696
|
if (isString) {
|
|
94694
94697
|
var div = document.createElement('div');
|
|
94695
94698
|
div.innerHTML = el;
|
|
@@ -94702,11 +94705,14 @@ const require$$12$4 = _dll_debug;
|
|
|
94702
94705
|
var updatedDocument = html.findMath().compile().getMetrics().typeset().updateDocument();
|
|
94703
94706
|
var list = updatedDocument.math.list;
|
|
94704
94707
|
var item = list.next;
|
|
94708
|
+
console.log(item, 'item in old math rendering');
|
|
94705
94709
|
if (!item) {
|
|
94710
|
+
console.log("return '' in old math rendering");
|
|
94706
94711
|
return '';
|
|
94707
94712
|
}
|
|
94708
94713
|
var mathMl = toMMl(item.data.root);
|
|
94709
94714
|
var parsedMathMl = mathMl.replaceAll('\n', '');
|
|
94715
|
+
console.log(parsedMathMl, 'parsedMathMl in old math rendering');
|
|
94710
94716
|
return parsedMathMl;
|
|
94711
94717
|
}
|
|
94712
94718
|
if (!getGlobal().instance) {
|
|
@@ -94716,11 +94722,14 @@ const require$$12$4 = _dll_debug;
|
|
|
94716
94722
|
log('el is undefined');
|
|
94717
94723
|
return;
|
|
94718
94724
|
}
|
|
94725
|
+
console.log(el, 'element in old math rendering');
|
|
94719
94726
|
if (el instanceof Element && (_getGlobal$instance = getGlobal().instance) !== null && _getGlobal$instance !== void 0 && _getGlobal$instance.Typeset) {
|
|
94727
|
+
console.log('Typeset element in old math rendering');
|
|
94720
94728
|
getGlobal().instance.Typeset(el);
|
|
94721
94729
|
} else if (el.length && (_getGlobal$instance2 = getGlobal().instance) !== null && _getGlobal$instance2 !== void 0 && _getGlobal$instance2.Typeset) {
|
|
94722
94730
|
var _getGlobal$instance3;
|
|
94723
94731
|
var arr = Array.from(el);
|
|
94732
|
+
console.log(arr, 'Typeset arr in old math rendering');
|
|
94724
94733
|
(_getGlobal$instance3 = getGlobal().instance).Typeset.apply(_getGlobal$instance3, (0, _toConsumableArray2["default"])(arr));
|
|
94725
94734
|
}
|
|
94726
94735
|
};
|
|
@@ -103691,7 +103700,10 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
103691
103700
|
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);
|
|
103692
103701
|
};
|
|
103693
103702
|
var renderMath = function renderMath(el, renderOpts) {
|
|
103703
|
+
console.log("I'm in math rendering accessible");
|
|
103694
103704
|
var isString = typeof el === 'string';
|
|
103705
|
+
console.log('IS STRING', isString);
|
|
103706
|
+
console.log('renderOpts', renderOpts);
|
|
103695
103707
|
var executeOn = document.body;
|
|
103696
103708
|
if (isString) {
|
|
103697
103709
|
var div = document.createElement('div');
|
|
@@ -103699,16 +103711,19 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
103699
103711
|
executeOn = div;
|
|
103700
103712
|
}
|
|
103701
103713
|
var _ref = renderOpts || ({}), skipWaitForMathRenderingLib = _ref.skipWaitForMathRenderingLib;
|
|
103714
|
+
console.log(skipWaitForMathRenderingLib, 'skipWaitForMathRenderingLib');
|
|
103702
103715
|
var renderMathAccessible = function renderMathAccessible() {
|
|
103703
103716
|
fixMathElements(executeOn);
|
|
103704
103717
|
adjustMathMLStyle(executeOn);
|
|
103705
103718
|
var mathJaxCustomKey = getMathJaxCustomKey();
|
|
103706
103719
|
if (!window.MathJax && !window.mathjaxLoadedP || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
|
|
103720
|
+
console.log('INITIALIZE MATHJAX ACCESSIBLE');
|
|
103707
103721
|
renderOpts = renderOpts || defaultOpts();
|
|
103708
103722
|
(0, _mathjaxScript.initializeMathJax)(renderOpts);
|
|
103709
103723
|
}
|
|
103710
103724
|
if (isString && window.MathJax && window.mathjaxLoadedP) {
|
|
103711
103725
|
try {
|
|
103726
|
+
console.log('THE ISSUE MUST BE HERE');
|
|
103712
103727
|
MathJax.texReset();
|
|
103713
103728
|
MathJax.typesetClear();
|
|
103714
103729
|
window.MathJax.typeset([executeOn]);
|
|
@@ -103717,6 +103732,7 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
103717
103732
|
var item = list.next;
|
|
103718
103733
|
var mathMl = toMMl(item.data.root);
|
|
103719
103734
|
var parsedMathMl = mathMl.replaceAll('\n', '');
|
|
103735
|
+
console.log(parsedMathMl, 'parsedMathMl');
|
|
103720
103736
|
return parsedMathMl;
|
|
103721
103737
|
} catch (error) {
|
|
103722
103738
|
console.error('Error rendering math:', error.message);
|
|
@@ -103725,11 +103741,13 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
103725
103741
|
if (window.mathjaxLoadedP) {
|
|
103726
103742
|
window.mathjaxLoadedP.then(function () {
|
|
103727
103743
|
var mathJaxInstance = getGlobal().instance;
|
|
103744
|
+
console.log(mathJaxInstance, 'mathJaxInstance');
|
|
103728
103745
|
if (mathJaxInstance) {
|
|
103729
103746
|
mathJaxInstance.texReset();
|
|
103730
103747
|
mathJaxInstance.typesetClear();
|
|
103731
103748
|
mathJaxInstance.typesetPromise([executeOn]).then(function () {
|
|
103732
103749
|
try {
|
|
103750
|
+
console.log("I'm in typesetPromise???");
|
|
103733
103751
|
removeExcessMjxContainers(executeOn);
|
|
103734
103752
|
removePlaceholdersAndRestoreDisplay();
|
|
103735
103753
|
var _updatedDocument = mathJaxInstance.startup.document;
|
|
@@ -103753,13 +103771,16 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
103753
103771
|
}
|
|
103754
103772
|
};
|
|
103755
103773
|
if (skipWaitForMathRenderingLib) {
|
|
103774
|
+
console.log(skipWaitForMathRenderingLib, 'skipWaitForMathRenderingLib');
|
|
103756
103775
|
return renderMathAccessible();
|
|
103757
103776
|
} else {
|
|
103758
103777
|
if (window.hasOwnProperty(mathRenderingKEY) && window[mathRenderingKEY].instance) {
|
|
103778
|
+
console.log(mathRenderingKEY, 'mathRenderingKEY');
|
|
103759
103779
|
removePlaceholdersAndRestoreDisplay();
|
|
103760
|
-
return mr.renderMath();
|
|
103780
|
+
return mr.renderMath(executeOn, renderOpts);
|
|
103761
103781
|
}
|
|
103762
103782
|
if (window.hasOwnProperty(mathRenderingAccessibleKEY) && window[mathRenderingAccessibleKEY].instance) {
|
|
103783
|
+
console.log(mathRenderingAccessibleKEY, 'mathRenderingAccessibleKEY');
|
|
103763
103784
|
return renderMathAccessible();
|
|
103764
103785
|
}
|
|
103765
103786
|
var waitForMathRenderingLib = function waitForMathRenderingLib(renderMathAccessibleCallback) {
|
|
@@ -103774,14 +103795,16 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
103774
103795
|
if (mathRenderingHasLoaded || hasExceededMaxWait) {
|
|
103775
103796
|
clearInterval(checkIntervalId);
|
|
103776
103797
|
if (mathRenderingHasLoaded) {
|
|
103798
|
+
console.log(mathRenderingHasLoaded, 'mathRenderingHasLoaded');
|
|
103777
103799
|
removePlaceholdersAndRestoreDisplay();
|
|
103778
|
-
return mr.renderMath();
|
|
103800
|
+
return mr.renderMath(executeOn, renderOpts);
|
|
103779
103801
|
}
|
|
103780
103802
|
renderMathAccessibleCallback();
|
|
103781
103803
|
}
|
|
103782
103804
|
};
|
|
103783
103805
|
checkIntervalId = setInterval(checkForLib, 100);
|
|
103784
103806
|
};
|
|
103807
|
+
console.log('waitForMathRenderingLib');
|
|
103785
103808
|
waitForMathRenderingLib(renderMathAccessible);
|
|
103786
103809
|
}
|
|
103787
103810
|
};
|
package/module/element.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_lodash, _dll_debug, _dll_react_dom_server, _dll_pie_lib__pie_toolbox_math_rendering_accessible} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.
|
|
2
|
-
import {_dll_pie_lib__pie_toolbox_correct_answer_toggle, _dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@4.
|
|
1
|
+
import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_lodash, _dll_debug, _dll_react_dom_server, _dll_pie_lib__pie_toolbox_math_rendering_accessible} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.10.2/module/index.js";
|
|
2
|
+
import {_dll_pie_lib__pie_toolbox_correct_answer_toggle, _dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@4.12.0/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) {
|
|
5
5
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
@@ -91514,10 +91514,13 @@ const require$$12$2 = _dll_debug;
|
|
|
91514
91514
|
var renderMath = function renderMath(el, renderOpts) {
|
|
91515
91515
|
var _getGlobal$instance, _getGlobal$instance2;
|
|
91516
91516
|
if (window && window.MathJax && window.MathJax.customKey && window.MathJax.customKey == '@pie-lib/math-rendering-accessible@1') {
|
|
91517
|
+
console.log('RETURN FROM OLD MATH RENDERING, MATH RENDERING ACCESSIBLE WAS FOUND');
|
|
91517
91518
|
return;
|
|
91518
91519
|
}
|
|
91520
|
+
console.log('we are in old math rendering');
|
|
91519
91521
|
var isString = typeof el === 'string';
|
|
91520
91522
|
var executeOn = document.body;
|
|
91523
|
+
console.log(isString, 'is string in old math rendering');
|
|
91521
91524
|
if (isString) {
|
|
91522
91525
|
var div = document.createElement('div');
|
|
91523
91526
|
div.innerHTML = el;
|
|
@@ -91530,11 +91533,14 @@ const require$$12$2 = _dll_debug;
|
|
|
91530
91533
|
var updatedDocument = html.findMath().compile().getMetrics().typeset().updateDocument();
|
|
91531
91534
|
var list = updatedDocument.math.list;
|
|
91532
91535
|
var item = list.next;
|
|
91536
|
+
console.log(item, 'item in old math rendering');
|
|
91533
91537
|
if (!item) {
|
|
91538
|
+
console.log("return '' in old math rendering");
|
|
91534
91539
|
return '';
|
|
91535
91540
|
}
|
|
91536
91541
|
var mathMl = toMMl(item.data.root);
|
|
91537
91542
|
var parsedMathMl = mathMl.replaceAll('\n', '');
|
|
91543
|
+
console.log(parsedMathMl, 'parsedMathMl in old math rendering');
|
|
91538
91544
|
return parsedMathMl;
|
|
91539
91545
|
}
|
|
91540
91546
|
if (!getGlobal().instance) {
|
|
@@ -91544,11 +91550,14 @@ const require$$12$2 = _dll_debug;
|
|
|
91544
91550
|
log('el is undefined');
|
|
91545
91551
|
return;
|
|
91546
91552
|
}
|
|
91553
|
+
console.log(el, 'element in old math rendering');
|
|
91547
91554
|
if (el instanceof Element && (_getGlobal$instance = getGlobal().instance) !== null && _getGlobal$instance !== void 0 && _getGlobal$instance.Typeset) {
|
|
91555
|
+
console.log('Typeset element in old math rendering');
|
|
91548
91556
|
getGlobal().instance.Typeset(el);
|
|
91549
91557
|
} else if (el.length && (_getGlobal$instance2 = getGlobal().instance) !== null && _getGlobal$instance2 !== void 0 && _getGlobal$instance2.Typeset) {
|
|
91550
91558
|
var _getGlobal$instance3;
|
|
91551
91559
|
var arr = Array.from(el);
|
|
91560
|
+
console.log(arr, 'Typeset arr in old math rendering');
|
|
91552
91561
|
(_getGlobal$instance3 = getGlobal().instance).Typeset.apply(_getGlobal$instance3, (0, _toConsumableArray2["default"])(arr));
|
|
91553
91562
|
}
|
|
91554
91563
|
};
|
|
@@ -100519,7 +100528,10 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
100519
100528
|
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);
|
|
100520
100529
|
};
|
|
100521
100530
|
var renderMath = function renderMath(el, renderOpts) {
|
|
100531
|
+
console.log("I'm in math rendering accessible");
|
|
100522
100532
|
var isString = typeof el === 'string';
|
|
100533
|
+
console.log('IS STRING', isString);
|
|
100534
|
+
console.log('renderOpts', renderOpts);
|
|
100523
100535
|
var executeOn = document.body;
|
|
100524
100536
|
if (isString) {
|
|
100525
100537
|
var div = document.createElement('div');
|
|
@@ -100527,16 +100539,19 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
100527
100539
|
executeOn = div;
|
|
100528
100540
|
}
|
|
100529
100541
|
var _ref = renderOpts || ({}), skipWaitForMathRenderingLib = _ref.skipWaitForMathRenderingLib;
|
|
100542
|
+
console.log(skipWaitForMathRenderingLib, 'skipWaitForMathRenderingLib');
|
|
100530
100543
|
var renderMathAccessible = function renderMathAccessible() {
|
|
100531
100544
|
fixMathElements(executeOn);
|
|
100532
100545
|
adjustMathMLStyle(executeOn);
|
|
100533
100546
|
var mathJaxCustomKey = getMathJaxCustomKey();
|
|
100534
100547
|
if (!window.MathJax && !window.mathjaxLoadedP || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
|
|
100548
|
+
console.log('INITIALIZE MATHJAX ACCESSIBLE');
|
|
100535
100549
|
renderOpts = renderOpts || defaultOpts();
|
|
100536
100550
|
(0, _mathjaxScript.initializeMathJax)(renderOpts);
|
|
100537
100551
|
}
|
|
100538
100552
|
if (isString && window.MathJax && window.mathjaxLoadedP) {
|
|
100539
100553
|
try {
|
|
100554
|
+
console.log('THE ISSUE MUST BE HERE');
|
|
100540
100555
|
MathJax.texReset();
|
|
100541
100556
|
MathJax.typesetClear();
|
|
100542
100557
|
window.MathJax.typeset([executeOn]);
|
|
@@ -100545,6 +100560,7 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
100545
100560
|
var item = list.next;
|
|
100546
100561
|
var mathMl = toMMl(item.data.root);
|
|
100547
100562
|
var parsedMathMl = mathMl.replaceAll('\n', '');
|
|
100563
|
+
console.log(parsedMathMl, 'parsedMathMl');
|
|
100548
100564
|
return parsedMathMl;
|
|
100549
100565
|
} catch (error) {
|
|
100550
100566
|
console.error('Error rendering math:', error.message);
|
|
@@ -100553,11 +100569,13 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
100553
100569
|
if (window.mathjaxLoadedP) {
|
|
100554
100570
|
window.mathjaxLoadedP.then(function () {
|
|
100555
100571
|
var mathJaxInstance = getGlobal().instance;
|
|
100572
|
+
console.log(mathJaxInstance, 'mathJaxInstance');
|
|
100556
100573
|
if (mathJaxInstance) {
|
|
100557
100574
|
mathJaxInstance.texReset();
|
|
100558
100575
|
mathJaxInstance.typesetClear();
|
|
100559
100576
|
mathJaxInstance.typesetPromise([executeOn]).then(function () {
|
|
100560
100577
|
try {
|
|
100578
|
+
console.log("I'm in typesetPromise???");
|
|
100561
100579
|
removeExcessMjxContainers(executeOn);
|
|
100562
100580
|
removePlaceholdersAndRestoreDisplay();
|
|
100563
100581
|
var _updatedDocument = mathJaxInstance.startup.document;
|
|
@@ -100581,13 +100599,16 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
100581
100599
|
}
|
|
100582
100600
|
};
|
|
100583
100601
|
if (skipWaitForMathRenderingLib) {
|
|
100602
|
+
console.log(skipWaitForMathRenderingLib, 'skipWaitForMathRenderingLib');
|
|
100584
100603
|
return renderMathAccessible();
|
|
100585
100604
|
} else {
|
|
100586
100605
|
if (window.hasOwnProperty(mathRenderingKEY) && window[mathRenderingKEY].instance) {
|
|
100606
|
+
console.log(mathRenderingKEY, 'mathRenderingKEY');
|
|
100587
100607
|
removePlaceholdersAndRestoreDisplay();
|
|
100588
|
-
return mr.renderMath();
|
|
100608
|
+
return mr.renderMath(executeOn, renderOpts);
|
|
100589
100609
|
}
|
|
100590
100610
|
if (window.hasOwnProperty(mathRenderingAccessibleKEY) && window[mathRenderingAccessibleKEY].instance) {
|
|
100611
|
+
console.log(mathRenderingAccessibleKEY, 'mathRenderingAccessibleKEY');
|
|
100591
100612
|
return renderMathAccessible();
|
|
100592
100613
|
}
|
|
100593
100614
|
var waitForMathRenderingLib = function waitForMathRenderingLib(renderMathAccessibleCallback) {
|
|
@@ -100602,14 +100623,16 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
100602
100623
|
if (mathRenderingHasLoaded || hasExceededMaxWait) {
|
|
100603
100624
|
clearInterval(checkIntervalId);
|
|
100604
100625
|
if (mathRenderingHasLoaded) {
|
|
100626
|
+
console.log(mathRenderingHasLoaded, 'mathRenderingHasLoaded');
|
|
100605
100627
|
removePlaceholdersAndRestoreDisplay();
|
|
100606
|
-
return mr.renderMath();
|
|
100628
|
+
return mr.renderMath(executeOn, renderOpts);
|
|
100607
100629
|
}
|
|
100608
100630
|
renderMathAccessibleCallback();
|
|
100609
100631
|
}
|
|
100610
100632
|
};
|
|
100611
100633
|
checkIntervalId = setInterval(checkForLib, 100);
|
|
100612
100634
|
};
|
|
100635
|
+
console.log('waitForMathRenderingLib');
|
|
100613
100636
|
waitForMathRenderingLib(renderMathAccessible);
|
|
100614
100637
|
}
|
|
100615
100638
|
};
|
package/module/index.html
CHANGED
package/module/manifest.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/select-text",
|
|
3
|
-
"version": "8.11.
|
|
3
|
+
"version": "8.11.2",
|
|
4
4
|
"modules": [
|
|
5
5
|
{
|
|
6
6
|
"name": "@pie-lib/pie-toolbox-math-rendering-module",
|
|
7
|
-
"version": "1.
|
|
7
|
+
"version": "1.10.2"
|
|
8
8
|
},
|
|
9
9
|
{
|
|
10
10
|
"name": "@pie-lib/pie-toolbox-module",
|
|
11
|
-
"version": "4.
|
|
11
|
+
"version": "4.12.0"
|
|
12
12
|
}
|
|
13
13
|
]
|
|
14
14
|
}
|
package/module/print.html
CHANGED
package/module/print.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_lodash, _dll_debug, _dll_react_dom_server, _dll_pie_lib__pie_toolbox_math_rendering_accessible} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.
|
|
2
|
-
import {_dll_pie_lib__pie_toolbox_correct_answer_toggle, _dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@4.
|
|
1
|
+
import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_lodash, _dll_debug, _dll_react_dom_server, _dll_pie_lib__pie_toolbox_math_rendering_accessible} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.10.2/module/index.js";
|
|
2
|
+
import {_dll_pie_lib__pie_toolbox_correct_answer_toggle, _dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@4.12.0/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) {
|
|
5
5
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
@@ -91477,10 +91477,13 @@ const require$$12$2 = _dll_debug;
|
|
|
91477
91477
|
var renderMath = function renderMath(el, renderOpts) {
|
|
91478
91478
|
var _getGlobal$instance, _getGlobal$instance2;
|
|
91479
91479
|
if (window && window.MathJax && window.MathJax.customKey && window.MathJax.customKey == '@pie-lib/math-rendering-accessible@1') {
|
|
91480
|
+
console.log('RETURN FROM OLD MATH RENDERING, MATH RENDERING ACCESSIBLE WAS FOUND');
|
|
91480
91481
|
return;
|
|
91481
91482
|
}
|
|
91483
|
+
console.log('we are in old math rendering');
|
|
91482
91484
|
var isString = typeof el === 'string';
|
|
91483
91485
|
var executeOn = document.body;
|
|
91486
|
+
console.log(isString, 'is string in old math rendering');
|
|
91484
91487
|
if (isString) {
|
|
91485
91488
|
var div = document.createElement('div');
|
|
91486
91489
|
div.innerHTML = el;
|
|
@@ -91493,11 +91496,14 @@ const require$$12$2 = _dll_debug;
|
|
|
91493
91496
|
var updatedDocument = html.findMath().compile().getMetrics().typeset().updateDocument();
|
|
91494
91497
|
var list = updatedDocument.math.list;
|
|
91495
91498
|
var item = list.next;
|
|
91499
|
+
console.log(item, 'item in old math rendering');
|
|
91496
91500
|
if (!item) {
|
|
91501
|
+
console.log("return '' in old math rendering");
|
|
91497
91502
|
return '';
|
|
91498
91503
|
}
|
|
91499
91504
|
var mathMl = toMMl(item.data.root);
|
|
91500
91505
|
var parsedMathMl = mathMl.replaceAll('\n', '');
|
|
91506
|
+
console.log(parsedMathMl, 'parsedMathMl in old math rendering');
|
|
91501
91507
|
return parsedMathMl;
|
|
91502
91508
|
}
|
|
91503
91509
|
if (!getGlobal().instance) {
|
|
@@ -91507,11 +91513,14 @@ const require$$12$2 = _dll_debug;
|
|
|
91507
91513
|
log('el is undefined');
|
|
91508
91514
|
return;
|
|
91509
91515
|
}
|
|
91516
|
+
console.log(el, 'element in old math rendering');
|
|
91510
91517
|
if (el instanceof Element && (_getGlobal$instance = getGlobal().instance) !== null && _getGlobal$instance !== void 0 && _getGlobal$instance.Typeset) {
|
|
91518
|
+
console.log('Typeset element in old math rendering');
|
|
91511
91519
|
getGlobal().instance.Typeset(el);
|
|
91512
91520
|
} else if (el.length && (_getGlobal$instance2 = getGlobal().instance) !== null && _getGlobal$instance2 !== void 0 && _getGlobal$instance2.Typeset) {
|
|
91513
91521
|
var _getGlobal$instance3;
|
|
91514
91522
|
var arr = Array.from(el);
|
|
91523
|
+
console.log(arr, 'Typeset arr in old math rendering');
|
|
91515
91524
|
(_getGlobal$instance3 = getGlobal().instance).Typeset.apply(_getGlobal$instance3, (0, _toConsumableArray2["default"])(arr));
|
|
91516
91525
|
}
|
|
91517
91526
|
};
|
|
@@ -100482,7 +100491,10 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
100482
100491
|
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);
|
|
100483
100492
|
};
|
|
100484
100493
|
var renderMath = function renderMath(el, renderOpts) {
|
|
100494
|
+
console.log("I'm in math rendering accessible");
|
|
100485
100495
|
var isString = typeof el === 'string';
|
|
100496
|
+
console.log('IS STRING', isString);
|
|
100497
|
+
console.log('renderOpts', renderOpts);
|
|
100486
100498
|
var executeOn = document.body;
|
|
100487
100499
|
if (isString) {
|
|
100488
100500
|
var div = document.createElement('div');
|
|
@@ -100490,16 +100502,19 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
100490
100502
|
executeOn = div;
|
|
100491
100503
|
}
|
|
100492
100504
|
var _ref = renderOpts || ({}), skipWaitForMathRenderingLib = _ref.skipWaitForMathRenderingLib;
|
|
100505
|
+
console.log(skipWaitForMathRenderingLib, 'skipWaitForMathRenderingLib');
|
|
100493
100506
|
var renderMathAccessible = function renderMathAccessible() {
|
|
100494
100507
|
fixMathElements(executeOn);
|
|
100495
100508
|
adjustMathMLStyle(executeOn);
|
|
100496
100509
|
var mathJaxCustomKey = getMathJaxCustomKey();
|
|
100497
100510
|
if (!window.MathJax && !window.mathjaxLoadedP || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
|
|
100511
|
+
console.log('INITIALIZE MATHJAX ACCESSIBLE');
|
|
100498
100512
|
renderOpts = renderOpts || defaultOpts();
|
|
100499
100513
|
(0, _mathjaxScript.initializeMathJax)(renderOpts);
|
|
100500
100514
|
}
|
|
100501
100515
|
if (isString && window.MathJax && window.mathjaxLoadedP) {
|
|
100502
100516
|
try {
|
|
100517
|
+
console.log('THE ISSUE MUST BE HERE');
|
|
100503
100518
|
MathJax.texReset();
|
|
100504
100519
|
MathJax.typesetClear();
|
|
100505
100520
|
window.MathJax.typeset([executeOn]);
|
|
@@ -100508,6 +100523,7 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
100508
100523
|
var item = list.next;
|
|
100509
100524
|
var mathMl = toMMl(item.data.root);
|
|
100510
100525
|
var parsedMathMl = mathMl.replaceAll('\n', '');
|
|
100526
|
+
console.log(parsedMathMl, 'parsedMathMl');
|
|
100511
100527
|
return parsedMathMl;
|
|
100512
100528
|
} catch (error) {
|
|
100513
100529
|
console.error('Error rendering math:', error.message);
|
|
@@ -100516,11 +100532,13 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
100516
100532
|
if (window.mathjaxLoadedP) {
|
|
100517
100533
|
window.mathjaxLoadedP.then(function () {
|
|
100518
100534
|
var mathJaxInstance = getGlobal().instance;
|
|
100535
|
+
console.log(mathJaxInstance, 'mathJaxInstance');
|
|
100519
100536
|
if (mathJaxInstance) {
|
|
100520
100537
|
mathJaxInstance.texReset();
|
|
100521
100538
|
mathJaxInstance.typesetClear();
|
|
100522
100539
|
mathJaxInstance.typesetPromise([executeOn]).then(function () {
|
|
100523
100540
|
try {
|
|
100541
|
+
console.log("I'm in typesetPromise???");
|
|
100524
100542
|
removeExcessMjxContainers(executeOn);
|
|
100525
100543
|
removePlaceholdersAndRestoreDisplay();
|
|
100526
100544
|
var _updatedDocument = mathJaxInstance.startup.document;
|
|
@@ -100544,13 +100562,16 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
100544
100562
|
}
|
|
100545
100563
|
};
|
|
100546
100564
|
if (skipWaitForMathRenderingLib) {
|
|
100565
|
+
console.log(skipWaitForMathRenderingLib, 'skipWaitForMathRenderingLib');
|
|
100547
100566
|
return renderMathAccessible();
|
|
100548
100567
|
} else {
|
|
100549
100568
|
if (window.hasOwnProperty(mathRenderingKEY) && window[mathRenderingKEY].instance) {
|
|
100569
|
+
console.log(mathRenderingKEY, 'mathRenderingKEY');
|
|
100550
100570
|
removePlaceholdersAndRestoreDisplay();
|
|
100551
|
-
return mr.renderMath();
|
|
100571
|
+
return mr.renderMath(executeOn, renderOpts);
|
|
100552
100572
|
}
|
|
100553
100573
|
if (window.hasOwnProperty(mathRenderingAccessibleKEY) && window[mathRenderingAccessibleKEY].instance) {
|
|
100574
|
+
console.log(mathRenderingAccessibleKEY, 'mathRenderingAccessibleKEY');
|
|
100554
100575
|
return renderMathAccessible();
|
|
100555
100576
|
}
|
|
100556
100577
|
var waitForMathRenderingLib = function waitForMathRenderingLib(renderMathAccessibleCallback) {
|
|
@@ -100565,14 +100586,16 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
100565
100586
|
if (mathRenderingHasLoaded || hasExceededMaxWait) {
|
|
100566
100587
|
clearInterval(checkIntervalId);
|
|
100567
100588
|
if (mathRenderingHasLoaded) {
|
|
100589
|
+
console.log(mathRenderingHasLoaded, 'mathRenderingHasLoaded');
|
|
100568
100590
|
removePlaceholdersAndRestoreDisplay();
|
|
100569
|
-
return mr.renderMath();
|
|
100591
|
+
return mr.renderMath(executeOn, renderOpts);
|
|
100570
100592
|
}
|
|
100571
100593
|
renderMathAccessibleCallback();
|
|
100572
100594
|
}
|
|
100573
100595
|
};
|
|
100574
100596
|
checkIntervalId = setInterval(checkForLib, 100);
|
|
100575
100597
|
};
|
|
100598
|
+
console.log('waitForMathRenderingLib');
|
|
100576
100599
|
waitForMathRenderingLib(renderMathAccessible);
|
|
100577
100600
|
}
|
|
100578
100601
|
};
|
package/package.json
CHANGED
|
@@ -4,19 +4,19 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"repository": "pie-framework/pie-elements",
|
|
7
|
-
"version": "8.11.
|
|
7
|
+
"version": "8.11.3",
|
|
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.17.3",
|
|
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": "c05a86593b64b6c7a7d48ff484cfa5a2a3ade3ea",
|
|
20
20
|
"scripts": {
|
|
21
21
|
"postpublish": "../../scripts/postpublish"
|
|
22
22
|
},
|