@pie-element/explicit-constructed-response 6.12.3 → 6.12.5
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 +1 -1
- package/module/element.js +32 -39
- package/module/index.html +1 -1
- package/module/manifest.json +2 -2
- package/module/print.html +1 -1
- package/module/print.js +32 -39
- 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
|
+
## [6.12.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response@6.12.4...@pie-element/explicit-constructed-response@6.12.5) (2024-05-13)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* update pie-lib/pie-toolbox PD-3650, PD-3651, PD-3621, PD-3620, PD-2127,PD-3709, PD-3726, PD-3191 ([2ef6881](https://github.com/pie-framework/pie-elements/commit/2ef688118b9099c7338cbe88afcdeed228fae11e))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [6.12.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response@6.12.3...@pie-element/explicit-constructed-response@6.12.4) (2024-05-07)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* update pie-lib/pie-toolbox PD-3731 ([2b5d6c9](https://github.com/pie-framework/pie-elements/commit/2b5d6c932280981a0fd636bcb30d7fbc181ac311))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
## [6.12.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response@6.12.2...@pie-element/explicit-constructed-response@6.12.3) (2024-05-07)
|
|
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
|
+
## [6.11.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@6.11.4...@pie-element/explicit-constructed-response-configure@6.11.5) (2024-05-13)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* update pie-lib/pie-toolbox PD-3650, PD-3651, PD-3621, PD-3620, PD-2127,PD-3709, PD-3726, PD-3191 ([2ef6881](https://github.com/pie-framework/pie-elements/commit/2ef688118b9099c7338cbe88afcdeed228fae11e))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [6.11.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@6.11.3...@pie-element/explicit-constructed-response-configure@6.11.4) (2024-05-07)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* update pie-lib/pie-toolbox PD-3731 ([2b5d6c9](https://github.com/pie-framework/pie-elements/commit/2b5d6c932280981a0fd636bcb30d7fbc181ac311))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
## [6.11.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@6.11.2...@pie-element/explicit-constructed-response-configure@6.11.3) (2024-05-07)
|
|
7
29
|
|
|
8
30
|
|
package/configure/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/explicit-constructed-response-configure",
|
|
3
|
-
"version": "6.11.
|
|
3
|
+
"version": "6.11.5",
|
|
4
4
|
"private": true,
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"modue": "src/index.js",
|
|
@@ -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.17.
|
|
11
|
+
"@pie-lib/pie-toolbox": "1.17.4",
|
|
12
12
|
"classnames": "^2.2.6",
|
|
13
13
|
"debug": "^3.1.0",
|
|
14
14
|
"lodash": "^4.17.15",
|
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
|
+
## [4.10.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-controller@4.10.4...@pie-element/explicit-constructed-response-controller@4.10.5) (2024-05-13)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* update pie-lib/pie-toolbox PD-3650, PD-3651, PD-3621, PD-3620, PD-2127,PD-3709, PD-3726, PD-3191 ([2ef6881](https://github.com/pie-framework/pie-elements/commit/2ef688118b9099c7338cbe88afcdeed228fae11e))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [4.10.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-controller@4.10.3...@pie-element/explicit-constructed-response-controller@4.10.4) (2024-05-07)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* update pie-lib/pie-toolbox PD-3731 ([2b5d6c9](https://github.com/pie-framework/pie-elements/commit/2b5d6c932280981a0fd636bcb30d7fbc181ac311))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
## [4.10.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-controller@4.10.2...@pie-element/explicit-constructed-response-controller@4.10.3) (2024-05-07)
|
|
7
29
|
|
|
8
30
|
|
package/controller/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/explicit-constructed-response-controller",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "4.10.
|
|
4
|
+
"version": "4.10.5",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"module": "src/index.js",
|
|
8
8
|
"author": "",
|
|
9
9
|
"license": "ISC",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@pie-lib/pie-toolbox": "1.17.
|
|
11
|
+
"@pie-lib/pie-toolbox": "1.17.4",
|
|
12
12
|
"debug": "^3.1.0",
|
|
13
13
|
"lodash": "^4.17.15",
|
|
14
14
|
"type-of": "^2.0.1"
|
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.10.
|
|
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.10.3/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.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) {
|
package/module/element.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {_dll_react, _dll_prop_types, _dll_debug, _dll_lodash, _dll_react_dom_server,
|
|
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.10.3/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.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) {
|
|
@@ -4713,7 +4713,7 @@ var themeListener = {
|
|
|
4713
4713
|
};
|
|
4714
4714
|
var _default$Z = themeListener;
|
|
4715
4715
|
themeListener$1.default = _default$Z;
|
|
4716
|
-
const require$$9$
|
|
4716
|
+
const require$$9$s = _dll_react;
|
|
4717
4717
|
const require$$10$j = _dll_prop_types;
|
|
4718
4718
|
var _interopRequireWildcard$2 = interopRequireWildcard.exports;
|
|
4719
4719
|
var _interopRequireDefault$15 = interopRequireDefault.exports;
|
|
@@ -4728,7 +4728,7 @@ var _createClass2$p = _interopRequireDefault$15(createClass$2.exports);
|
|
|
4728
4728
|
var _possibleConstructorReturn2$o = _interopRequireDefault$15(possibleConstructorReturn$2.exports);
|
|
4729
4729
|
var _getPrototypeOf2$d = _interopRequireDefault$15(getPrototypeOf$2.exports);
|
|
4730
4730
|
var _inherits2$o = _interopRequireDefault$15(inherits$2.exports);
|
|
4731
|
-
var _react$M = _interopRequireDefault$15(require$$9$
|
|
4731
|
+
var _react$M = _interopRequireDefault$15(require$$9$s);
|
|
4732
4732
|
var _propTypes$A = _interopRequireDefault$15(require$$10$j);
|
|
4733
4733
|
var _warning$b = _interopRequireDefault$15(warning_1);
|
|
4734
4734
|
var _brcast = _interopRequireDefault$15(require$$12$a);
|
|
@@ -5048,7 +5048,7 @@ function getThemeProps(params) {
|
|
|
5048
5048
|
}
|
|
5049
5049
|
var _default$T = getThemeProps;
|
|
5050
5050
|
getThemeProps$1.default = _default$T;
|
|
5051
|
-
const require$$9$
|
|
5051
|
+
const require$$9$r = _dll_react;
|
|
5052
5052
|
const require$$10$i = _dll_prop_types;
|
|
5053
5053
|
var _interopRequireDefault$12 = interopRequireDefault.exports;
|
|
5054
5054
|
Object.defineProperty(withStyles, "__esModule", {
|
|
@@ -5063,7 +5063,7 @@ var _possibleConstructorReturn2$n = _interopRequireDefault$12(possibleConstructo
|
|
|
5063
5063
|
var _getPrototypeOf2$c = _interopRequireDefault$12(getPrototypeOf$2.exports);
|
|
5064
5064
|
var _inherits2$n = _interopRequireDefault$12(inherits$2.exports);
|
|
5065
5065
|
var _objectWithoutProperties2$q = _interopRequireDefault$12(objectWithoutProperties.exports);
|
|
5066
|
-
var _react$L = _interopRequireDefault$12(require$$9$
|
|
5066
|
+
var _react$L = _interopRequireDefault$12(require$$9$r);
|
|
5067
5067
|
var _propTypes$z = _interopRequireDefault$12(require$$10$i);
|
|
5068
5068
|
var _warning$8 = _interopRequireDefault$12(warning_1);
|
|
5069
5069
|
var _hoistNonReactStatics$2 = _interopRequireDefault$12(hoistNonReactStatics_cjs);
|
|
@@ -5314,7 +5314,7 @@ var _default$S = function _default(styles, options) {
|
|
|
5314
5314
|
withStyles.default = _default$S;
|
|
5315
5315
|
var withTheme = {};
|
|
5316
5316
|
const require$$8$o = _dll_react;
|
|
5317
|
-
const require$$9$
|
|
5317
|
+
const require$$9$q = _dll_prop_types;
|
|
5318
5318
|
var _interopRequireDefault$11 = interopRequireDefault.exports;
|
|
5319
5319
|
Object.defineProperty(withTheme, "__esModule", {
|
|
5320
5320
|
value: true
|
|
@@ -5328,7 +5328,7 @@ var _possibleConstructorReturn2$m = _interopRequireDefault$11(possibleConstructo
|
|
|
5328
5328
|
var _getPrototypeOf2$b = _interopRequireDefault$11(getPrototypeOf$2.exports);
|
|
5329
5329
|
var _inherits2$m = _interopRequireDefault$11(inherits$2.exports);
|
|
5330
5330
|
var _react$K = _interopRequireDefault$11(require$$8$o);
|
|
5331
|
-
var _propTypes$y = _interopRequireDefault$11(require$$9$
|
|
5331
|
+
var _propTypes$y = _interopRequireDefault$11(require$$9$q);
|
|
5332
5332
|
var _hoistNonReactStatics$1 = _interopRequireDefault$11(hoistNonReactStatics_cjs);
|
|
5333
5333
|
var _utils$l = require$$7$b;
|
|
5334
5334
|
var _createMuiTheme = _interopRequireDefault$11(createMuiTheme$1);
|
|
@@ -18813,7 +18813,7 @@ var deserialize = function deserialize(s) {
|
|
|
18813
18813
|
});
|
|
18814
18814
|
};
|
|
18815
18815
|
serialization.deserialize = deserialize;
|
|
18816
|
-
const require$$9$
|
|
18816
|
+
const require$$9$p = _dll_react;
|
|
18817
18817
|
const require$$10$h = _dll_prop_types;
|
|
18818
18818
|
const {get: require$$11$9} = _dll_lodash;
|
|
18819
18819
|
(function (exports) {
|
|
@@ -18830,7 +18830,7 @@ const {get: require$$11$9} = _dll_lodash;
|
|
|
18830
18830
|
var _getPrototypeOf2 = _interopRequireDefault(getPrototypeOf$2.exports);
|
|
18831
18831
|
var _defineProperty2 = _interopRequireDefault(defineProperty$4.exports);
|
|
18832
18832
|
var _extends2 = _interopRequireDefault(_extends$7.exports);
|
|
18833
|
-
var _react = _interopRequireDefault(require$$9$
|
|
18833
|
+
var _react = _interopRequireDefault(require$$9$p);
|
|
18834
18834
|
var _propTypes = _interopRequireDefault(require$$10$h);
|
|
18835
18835
|
var _get = _interopRequireDefault(require$$11$9);
|
|
18836
18836
|
var _styles = styles$p;
|
|
@@ -19047,7 +19047,8 @@ var componentize = {};
|
|
|
19047
19047
|
})(componentize);
|
|
19048
19048
|
getDefaultExportFromCjs(componentize);
|
|
19049
19049
|
const require$$7$a = _dll_react;
|
|
19050
|
-
const require$$8$n =
|
|
19050
|
+
const require$$8$n = _dll_react_dom;
|
|
19051
|
+
const require$$9$o = _dll_prop_types;
|
|
19051
19052
|
var _interopRequireDefault$$ = interopRequireDefault.exports;
|
|
19052
19053
|
Object.defineProperty(withMask$1, "__esModule", {
|
|
19053
19054
|
value: true
|
|
@@ -19060,7 +19061,8 @@ var _possibleConstructorReturn2$l = _interopRequireDefault$$(possibleConstructor
|
|
|
19060
19061
|
var _getPrototypeOf2$a = _interopRequireDefault$$(getPrototypeOf$2.exports);
|
|
19061
19062
|
var _defineProperty2$l = _interopRequireDefault$$(defineProperty$4.exports);
|
|
19062
19063
|
var _react$J = _interopRequireDefault$$(require$$7$a);
|
|
19063
|
-
var
|
|
19064
|
+
var _reactDom$9 = _interopRequireDefault$$(require$$8$n);
|
|
19065
|
+
var _propTypes$x = _interopRequireDefault$$(require$$9$o);
|
|
19064
19066
|
var _mask = _interopRequireDefault$$(mask);
|
|
19065
19067
|
var _componentize2 = _interopRequireDefault$$(componentize);
|
|
19066
19068
|
var _serialization = serialization;
|
|
@@ -19104,6 +19106,23 @@ var withMask = function withMask(type, renderChildren) {
|
|
|
19104
19106
|
return _super.apply(this, arguments);
|
|
19105
19107
|
}
|
|
19106
19108
|
(0, _createClass2$m["default"])(WithMask, [{
|
|
19109
|
+
key: "componentDidUpdate",
|
|
19110
|
+
value: function componentDidUpdate(prevProps) {
|
|
19111
|
+
if (this.props.markup !== prevProps.markup) {
|
|
19112
|
+
var domNode = _reactDom$9["default"].findDOMNode(this);
|
|
19113
|
+
var mathElements = domNode && domNode.querySelectorAll('[data-latex][data-math-handled="true"]');
|
|
19114
|
+
(mathElements || []).forEach(function (el) {
|
|
19115
|
+
var mjxContainer = el.querySelector('mjx-container');
|
|
19116
|
+
if (mjxContainer) {
|
|
19117
|
+
el.removeChild(mjxContainer);
|
|
19118
|
+
}
|
|
19119
|
+
var latexCode = el.getAttribute('data-raw');
|
|
19120
|
+
el.innerHTML = latexCode;
|
|
19121
|
+
el.removeAttribute('data-math-handled');
|
|
19122
|
+
});
|
|
19123
|
+
}
|
|
19124
|
+
}
|
|
19125
|
+
}, {
|
|
19107
19126
|
key: "render",
|
|
19108
19127
|
value: function render() {
|
|
19109
19128
|
var _this$props = this.props, markup = _this$props.markup, layout = _this$props.layout, value = _this$props.value, onChange = _this$props.onChange;
|
|
@@ -69945,7 +69964,6 @@ const require$$12$9 = _dll_debug;
|
|
|
69945
69964
|
};
|
|
69946
69965
|
var mmlConfig = {
|
|
69947
69966
|
parseError: function parseError(node) {
|
|
69948
|
-
console.log('error:', node);
|
|
69949
69967
|
this.error(this.adaptor.textContent(node).replace(/\n.*/g, ''));
|
|
69950
69968
|
}
|
|
69951
69969
|
};
|
|
@@ -69958,11 +69976,9 @@ const require$$12$9 = _dll_debug;
|
|
|
69958
69976
|
var customMmlFactory = new _MmlFactory.MmlFactory(_objectSpread(_objectSpread({}, _MmlFactory.MmlFactory.defaultNodes), _mstack.mmlNodes));
|
|
69959
69977
|
var html = _mathjax.mathjax.document(docProvided, {
|
|
69960
69978
|
compileError: function compileError(mj, math, err) {
|
|
69961
|
-
console.log('bad math?:', math);
|
|
69962
69979
|
console.error(err);
|
|
69963
69980
|
},
|
|
69964
69981
|
typesetError: function typesetError(doc, math, err) {
|
|
69965
|
-
console.log('typeset error');
|
|
69966
69982
|
console.error(err);
|
|
69967
69983
|
doc.typesetError(math, err);
|
|
69968
69984
|
},
|
|
@@ -70008,13 +70024,10 @@ const require$$12$9 = _dll_debug;
|
|
|
70008
70024
|
var renderMath = function renderMath(el, renderOpts) {
|
|
70009
70025
|
var _getGlobal$instance, _getGlobal$instance2;
|
|
70010
70026
|
if (window && window.MathJax && window.MathJax.customKey && window.MathJax.customKey == '@pie-lib/math-rendering-accessible@1') {
|
|
70011
|
-
console.log('RETURN FROM OLD MATH RENDERING, MATH RENDERING ACCESSIBLE WAS FOUND');
|
|
70012
70027
|
return;
|
|
70013
70028
|
}
|
|
70014
|
-
console.log('we are in old math rendering');
|
|
70015
70029
|
var isString = typeof el === 'string';
|
|
70016
70030
|
var executeOn = document.body;
|
|
70017
|
-
console.log(isString, 'is string in old math rendering');
|
|
70018
70031
|
if (isString) {
|
|
70019
70032
|
var div = document.createElement('div');
|
|
70020
70033
|
div.innerHTML = el;
|
|
@@ -70027,14 +70040,11 @@ const require$$12$9 = _dll_debug;
|
|
|
70027
70040
|
var updatedDocument = html.findMath().compile().getMetrics().typeset().updateDocument();
|
|
70028
70041
|
var list = updatedDocument.math.list;
|
|
70029
70042
|
var item = list.next;
|
|
70030
|
-
console.log(item, 'item in old math rendering');
|
|
70031
70043
|
if (!item) {
|
|
70032
|
-
console.log("return '' in old math rendering");
|
|
70033
70044
|
return '';
|
|
70034
70045
|
}
|
|
70035
70046
|
var mathMl = toMMl(item.data.root);
|
|
70036
70047
|
var parsedMathMl = mathMl.replaceAll('\n', '');
|
|
70037
|
-
console.log(parsedMathMl, 'parsedMathMl in old math rendering');
|
|
70038
70048
|
return parsedMathMl;
|
|
70039
70049
|
}
|
|
70040
70050
|
if (!getGlobal().instance) {
|
|
@@ -70044,14 +70054,11 @@ const require$$12$9 = _dll_debug;
|
|
|
70044
70054
|
log('el is undefined');
|
|
70045
70055
|
return;
|
|
70046
70056
|
}
|
|
70047
|
-
console.log(el, 'element in old math rendering');
|
|
70048
70057
|
if (el instanceof Element && (_getGlobal$instance = getGlobal().instance) !== null && _getGlobal$instance !== void 0 && _getGlobal$instance.Typeset) {
|
|
70049
|
-
console.log('Typeset element in old math rendering');
|
|
70050
70058
|
getGlobal().instance.Typeset(el);
|
|
70051
70059
|
} else if (el.length && (_getGlobal$instance2 = getGlobal().instance) !== null && _getGlobal$instance2 !== void 0 && _getGlobal$instance2.Typeset) {
|
|
70052
70060
|
var _getGlobal$instance3;
|
|
70053
70061
|
var arr = Array.from(el);
|
|
70054
|
-
console.log(arr, 'Typeset arr in old math rendering');
|
|
70055
70062
|
(_getGlobal$instance3 = getGlobal().instance).Typeset.apply(_getGlobal$instance3, (0, _toConsumableArray2["default"])(arr));
|
|
70056
70063
|
}
|
|
70057
70064
|
};
|
|
@@ -79022,10 +79029,7 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
79022
79029
|
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);
|
|
79023
79030
|
};
|
|
79024
79031
|
var renderMath = function renderMath(el, renderOpts) {
|
|
79025
|
-
console.log("I'm in math rendering accessible");
|
|
79026
79032
|
var isString = typeof el === 'string';
|
|
79027
|
-
console.log('IS STRING', isString);
|
|
79028
|
-
console.log('renderOpts', renderOpts);
|
|
79029
79033
|
var executeOn = document.body;
|
|
79030
79034
|
if (isString) {
|
|
79031
79035
|
var div = document.createElement('div');
|
|
@@ -79033,19 +79037,16 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
79033
79037
|
executeOn = div;
|
|
79034
79038
|
}
|
|
79035
79039
|
var _ref = renderOpts || ({}), skipWaitForMathRenderingLib = _ref.skipWaitForMathRenderingLib;
|
|
79036
|
-
console.log(skipWaitForMathRenderingLib, 'skipWaitForMathRenderingLib');
|
|
79037
79040
|
var renderMathAccessible = function renderMathAccessible() {
|
|
79038
79041
|
fixMathElements(executeOn);
|
|
79039
79042
|
adjustMathMLStyle(executeOn);
|
|
79040
79043
|
var mathJaxCustomKey = getMathJaxCustomKey();
|
|
79041
79044
|
if (!window.MathJax && !window.mathjaxLoadedP || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
|
|
79042
|
-
console.log('INITIALIZE MATHJAX ACCESSIBLE');
|
|
79043
79045
|
renderOpts = renderOpts || defaultOpts();
|
|
79044
79046
|
(0, _mathjaxScript.initializeMathJax)(renderOpts);
|
|
79045
79047
|
}
|
|
79046
79048
|
if (isString && window.MathJax && window.mathjaxLoadedP) {
|
|
79047
79049
|
try {
|
|
79048
|
-
console.log('THE ISSUE MUST BE HERE');
|
|
79049
79050
|
MathJax.texReset();
|
|
79050
79051
|
MathJax.typesetClear();
|
|
79051
79052
|
window.MathJax.typeset([executeOn]);
|
|
@@ -79054,7 +79055,6 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
79054
79055
|
var item = list.next;
|
|
79055
79056
|
var mathMl = toMMl(item.data.root);
|
|
79056
79057
|
var parsedMathMl = mathMl.replaceAll('\n', '');
|
|
79057
|
-
console.log(parsedMathMl, 'parsedMathMl');
|
|
79058
79058
|
return parsedMathMl;
|
|
79059
79059
|
} catch (error) {
|
|
79060
79060
|
console.error('Error rendering math:', error.message);
|
|
@@ -79063,13 +79063,11 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
79063
79063
|
if (window.mathjaxLoadedP) {
|
|
79064
79064
|
window.mathjaxLoadedP.then(function () {
|
|
79065
79065
|
var mathJaxInstance = getGlobal().instance;
|
|
79066
|
-
console.log(mathJaxInstance, 'mathJaxInstance');
|
|
79067
79066
|
if (mathJaxInstance) {
|
|
79068
79067
|
mathJaxInstance.texReset();
|
|
79069
79068
|
mathJaxInstance.typesetClear();
|
|
79070
79069
|
mathJaxInstance.typesetPromise([executeOn]).then(function () {
|
|
79071
79070
|
try {
|
|
79072
|
-
console.log("I'm in typesetPromise???");
|
|
79073
79071
|
removeExcessMjxContainers(executeOn);
|
|
79074
79072
|
removePlaceholdersAndRestoreDisplay();
|
|
79075
79073
|
var _updatedDocument = mathJaxInstance.startup.document;
|
|
@@ -79093,16 +79091,13 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
79093
79091
|
}
|
|
79094
79092
|
};
|
|
79095
79093
|
if (skipWaitForMathRenderingLib) {
|
|
79096
|
-
console.log(skipWaitForMathRenderingLib, 'skipWaitForMathRenderingLib');
|
|
79097
79094
|
return renderMathAccessible();
|
|
79098
79095
|
} else {
|
|
79099
79096
|
if (window.hasOwnProperty(mathRenderingKEY) && window[mathRenderingKEY].instance) {
|
|
79100
|
-
console.log(mathRenderingKEY, 'mathRenderingKEY');
|
|
79101
79097
|
removePlaceholdersAndRestoreDisplay();
|
|
79102
|
-
return mr.renderMath();
|
|
79098
|
+
return mr.renderMath(executeOn, renderOpts);
|
|
79103
79099
|
}
|
|
79104
79100
|
if (window.hasOwnProperty(mathRenderingAccessibleKEY) && window[mathRenderingAccessibleKEY].instance) {
|
|
79105
|
-
console.log(mathRenderingAccessibleKEY, 'mathRenderingAccessibleKEY');
|
|
79106
79101
|
return renderMathAccessible();
|
|
79107
79102
|
}
|
|
79108
79103
|
var waitForMathRenderingLib = function waitForMathRenderingLib(renderMathAccessibleCallback) {
|
|
@@ -79117,16 +79112,14 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
79117
79112
|
if (mathRenderingHasLoaded || hasExceededMaxWait) {
|
|
79118
79113
|
clearInterval(checkIntervalId);
|
|
79119
79114
|
if (mathRenderingHasLoaded) {
|
|
79120
|
-
console.log(mathRenderingHasLoaded, 'mathRenderingHasLoaded');
|
|
79121
79115
|
removePlaceholdersAndRestoreDisplay();
|
|
79122
|
-
return mr.renderMath();
|
|
79116
|
+
return mr.renderMath(executeOn, renderOpts);
|
|
79123
79117
|
}
|
|
79124
79118
|
renderMathAccessibleCallback();
|
|
79125
79119
|
}
|
|
79126
79120
|
};
|
|
79127
79121
|
checkIntervalId = setInterval(checkForLib, 100);
|
|
79128
79122
|
};
|
|
79129
|
-
console.log('waitForMathRenderingLib');
|
|
79130
79123
|
waitForMathRenderingLib(renderMathAccessible);
|
|
79131
79124
|
}
|
|
79132
79125
|
};
|
package/module/index.html
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<!doctype html>
|
|
3
3
|
<html>
|
|
4
4
|
<head>
|
|
5
|
-
<title>@pie-element/explicit-constructed-response@6.12.
|
|
5
|
+
<title>@pie-element/explicit-constructed-response@6.12.4</title>
|
|
6
6
|
<script
|
|
7
7
|
type="module"
|
|
8
8
|
src="https://cdn.jsdelivr.net/npm/@pslb/demo-el@^1.0.0/dist/demo-el/demo-el.esm.js"></script>
|
package/module/manifest.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/explicit-constructed-response",
|
|
3
|
-
"version": "6.12.
|
|
3
|
+
"version": "6.12.4",
|
|
4
4
|
"modules": [
|
|
5
5
|
{
|
|
6
6
|
"name": "@pie-lib/pie-toolbox-math-rendering-module",
|
|
7
|
-
"version": "1.10.
|
|
7
|
+
"version": "1.10.3"
|
|
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_debug, _dll_lodash, _dll_react_dom_server,
|
|
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.10.3/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.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) {
|
|
@@ -4676,7 +4676,7 @@ var themeListener = {
|
|
|
4676
4676
|
};
|
|
4677
4677
|
var _default$Z = themeListener;
|
|
4678
4678
|
themeListener$1.default = _default$Z;
|
|
4679
|
-
const require$$9$
|
|
4679
|
+
const require$$9$s = _dll_react;
|
|
4680
4680
|
const require$$10$j = _dll_prop_types;
|
|
4681
4681
|
var _interopRequireWildcard$2 = interopRequireWildcard.exports;
|
|
4682
4682
|
var _interopRequireDefault$15 = interopRequireDefault.exports;
|
|
@@ -4691,7 +4691,7 @@ var _createClass2$p = _interopRequireDefault$15(createClass$2.exports);
|
|
|
4691
4691
|
var _possibleConstructorReturn2$o = _interopRequireDefault$15(possibleConstructorReturn$2.exports);
|
|
4692
4692
|
var _getPrototypeOf2$d = _interopRequireDefault$15(getPrototypeOf$2.exports);
|
|
4693
4693
|
var _inherits2$o = _interopRequireDefault$15(inherits$2.exports);
|
|
4694
|
-
var _react$M = _interopRequireDefault$15(require$$9$
|
|
4694
|
+
var _react$M = _interopRequireDefault$15(require$$9$s);
|
|
4695
4695
|
var _propTypes$A = _interopRequireDefault$15(require$$10$j);
|
|
4696
4696
|
var _warning$b = _interopRequireDefault$15(warning_1);
|
|
4697
4697
|
var _brcast = _interopRequireDefault$15(require$$12$a);
|
|
@@ -5011,7 +5011,7 @@ function getThemeProps(params) {
|
|
|
5011
5011
|
}
|
|
5012
5012
|
var _default$T = getThemeProps;
|
|
5013
5013
|
getThemeProps$1.default = _default$T;
|
|
5014
|
-
const require$$9$
|
|
5014
|
+
const require$$9$r = _dll_react;
|
|
5015
5015
|
const require$$10$i = _dll_prop_types;
|
|
5016
5016
|
var _interopRequireDefault$12 = interopRequireDefault.exports;
|
|
5017
5017
|
Object.defineProperty(withStyles, "__esModule", {
|
|
@@ -5026,7 +5026,7 @@ var _possibleConstructorReturn2$n = _interopRequireDefault$12(possibleConstructo
|
|
|
5026
5026
|
var _getPrototypeOf2$c = _interopRequireDefault$12(getPrototypeOf$2.exports);
|
|
5027
5027
|
var _inherits2$n = _interopRequireDefault$12(inherits$2.exports);
|
|
5028
5028
|
var _objectWithoutProperties2$q = _interopRequireDefault$12(objectWithoutProperties.exports);
|
|
5029
|
-
var _react$L = _interopRequireDefault$12(require$$9$
|
|
5029
|
+
var _react$L = _interopRequireDefault$12(require$$9$r);
|
|
5030
5030
|
var _propTypes$z = _interopRequireDefault$12(require$$10$i);
|
|
5031
5031
|
var _warning$8 = _interopRequireDefault$12(warning_1);
|
|
5032
5032
|
var _hoistNonReactStatics$2 = _interopRequireDefault$12(hoistNonReactStatics_cjs);
|
|
@@ -5277,7 +5277,7 @@ var _default$S = function _default(styles, options) {
|
|
|
5277
5277
|
withStyles.default = _default$S;
|
|
5278
5278
|
var withTheme = {};
|
|
5279
5279
|
const require$$8$o = _dll_react;
|
|
5280
|
-
const require$$9$
|
|
5280
|
+
const require$$9$q = _dll_prop_types;
|
|
5281
5281
|
var _interopRequireDefault$11 = interopRequireDefault.exports;
|
|
5282
5282
|
Object.defineProperty(withTheme, "__esModule", {
|
|
5283
5283
|
value: true
|
|
@@ -5291,7 +5291,7 @@ var _possibleConstructorReturn2$m = _interopRequireDefault$11(possibleConstructo
|
|
|
5291
5291
|
var _getPrototypeOf2$b = _interopRequireDefault$11(getPrototypeOf$2.exports);
|
|
5292
5292
|
var _inherits2$m = _interopRequireDefault$11(inherits$2.exports);
|
|
5293
5293
|
var _react$K = _interopRequireDefault$11(require$$8$o);
|
|
5294
|
-
var _propTypes$y = _interopRequireDefault$11(require$$9$
|
|
5294
|
+
var _propTypes$y = _interopRequireDefault$11(require$$9$q);
|
|
5295
5295
|
var _hoistNonReactStatics$1 = _interopRequireDefault$11(hoistNonReactStatics_cjs);
|
|
5296
5296
|
var _utils$l = require$$7$b;
|
|
5297
5297
|
var _createMuiTheme = _interopRequireDefault$11(createMuiTheme$1);
|
|
@@ -18776,7 +18776,7 @@ var deserialize = function deserialize(s) {
|
|
|
18776
18776
|
});
|
|
18777
18777
|
};
|
|
18778
18778
|
serialization.deserialize = deserialize;
|
|
18779
|
-
const require$$9$
|
|
18779
|
+
const require$$9$p = _dll_react;
|
|
18780
18780
|
const require$$10$h = _dll_prop_types;
|
|
18781
18781
|
const {get: require$$11$9} = _dll_lodash;
|
|
18782
18782
|
(function (exports) {
|
|
@@ -18793,7 +18793,7 @@ const {get: require$$11$9} = _dll_lodash;
|
|
|
18793
18793
|
var _getPrototypeOf2 = _interopRequireDefault(getPrototypeOf$2.exports);
|
|
18794
18794
|
var _defineProperty2 = _interopRequireDefault(defineProperty$4.exports);
|
|
18795
18795
|
var _extends2 = _interopRequireDefault(_extends$7.exports);
|
|
18796
|
-
var _react = _interopRequireDefault(require$$9$
|
|
18796
|
+
var _react = _interopRequireDefault(require$$9$p);
|
|
18797
18797
|
var _propTypes = _interopRequireDefault(require$$10$h);
|
|
18798
18798
|
var _get = _interopRequireDefault(require$$11$9);
|
|
18799
18799
|
var _styles = styles$p;
|
|
@@ -19010,7 +19010,8 @@ var componentize = {};
|
|
|
19010
19010
|
})(componentize);
|
|
19011
19011
|
getDefaultExportFromCjs(componentize);
|
|
19012
19012
|
const require$$7$a = _dll_react;
|
|
19013
|
-
const require$$8$n =
|
|
19013
|
+
const require$$8$n = _dll_react_dom;
|
|
19014
|
+
const require$$9$o = _dll_prop_types;
|
|
19014
19015
|
var _interopRequireDefault$$ = interopRequireDefault.exports;
|
|
19015
19016
|
Object.defineProperty(withMask$1, "__esModule", {
|
|
19016
19017
|
value: true
|
|
@@ -19023,7 +19024,8 @@ var _possibleConstructorReturn2$l = _interopRequireDefault$$(possibleConstructor
|
|
|
19023
19024
|
var _getPrototypeOf2$a = _interopRequireDefault$$(getPrototypeOf$2.exports);
|
|
19024
19025
|
var _defineProperty2$l = _interopRequireDefault$$(defineProperty$4.exports);
|
|
19025
19026
|
var _react$J = _interopRequireDefault$$(require$$7$a);
|
|
19026
|
-
var
|
|
19027
|
+
var _reactDom$9 = _interopRequireDefault$$(require$$8$n);
|
|
19028
|
+
var _propTypes$x = _interopRequireDefault$$(require$$9$o);
|
|
19027
19029
|
var _mask = _interopRequireDefault$$(mask);
|
|
19028
19030
|
var _componentize2 = _interopRequireDefault$$(componentize);
|
|
19029
19031
|
var _serialization = serialization;
|
|
@@ -19067,6 +19069,23 @@ var withMask = function withMask(type, renderChildren) {
|
|
|
19067
19069
|
return _super.apply(this, arguments);
|
|
19068
19070
|
}
|
|
19069
19071
|
(0, _createClass2$m["default"])(WithMask, [{
|
|
19072
|
+
key: "componentDidUpdate",
|
|
19073
|
+
value: function componentDidUpdate(prevProps) {
|
|
19074
|
+
if (this.props.markup !== prevProps.markup) {
|
|
19075
|
+
var domNode = _reactDom$9["default"].findDOMNode(this);
|
|
19076
|
+
var mathElements = domNode && domNode.querySelectorAll('[data-latex][data-math-handled="true"]');
|
|
19077
|
+
(mathElements || []).forEach(function (el) {
|
|
19078
|
+
var mjxContainer = el.querySelector('mjx-container');
|
|
19079
|
+
if (mjxContainer) {
|
|
19080
|
+
el.removeChild(mjxContainer);
|
|
19081
|
+
}
|
|
19082
|
+
var latexCode = el.getAttribute('data-raw');
|
|
19083
|
+
el.innerHTML = latexCode;
|
|
19084
|
+
el.removeAttribute('data-math-handled');
|
|
19085
|
+
});
|
|
19086
|
+
}
|
|
19087
|
+
}
|
|
19088
|
+
}, {
|
|
19070
19089
|
key: "render",
|
|
19071
19090
|
value: function render() {
|
|
19072
19091
|
var _this$props = this.props, markup = _this$props.markup, layout = _this$props.layout, value = _this$props.value, onChange = _this$props.onChange;
|
|
@@ -69908,7 +69927,6 @@ const require$$12$9 = _dll_debug;
|
|
|
69908
69927
|
};
|
|
69909
69928
|
var mmlConfig = {
|
|
69910
69929
|
parseError: function parseError(node) {
|
|
69911
|
-
console.log('error:', node);
|
|
69912
69930
|
this.error(this.adaptor.textContent(node).replace(/\n.*/g, ''));
|
|
69913
69931
|
}
|
|
69914
69932
|
};
|
|
@@ -69921,11 +69939,9 @@ const require$$12$9 = _dll_debug;
|
|
|
69921
69939
|
var customMmlFactory = new _MmlFactory.MmlFactory(_objectSpread(_objectSpread({}, _MmlFactory.MmlFactory.defaultNodes), _mstack.mmlNodes));
|
|
69922
69940
|
var html = _mathjax.mathjax.document(docProvided, {
|
|
69923
69941
|
compileError: function compileError(mj, math, err) {
|
|
69924
|
-
console.log('bad math?:', math);
|
|
69925
69942
|
console.error(err);
|
|
69926
69943
|
},
|
|
69927
69944
|
typesetError: function typesetError(doc, math, err) {
|
|
69928
|
-
console.log('typeset error');
|
|
69929
69945
|
console.error(err);
|
|
69930
69946
|
doc.typesetError(math, err);
|
|
69931
69947
|
},
|
|
@@ -69971,13 +69987,10 @@ const require$$12$9 = _dll_debug;
|
|
|
69971
69987
|
var renderMath = function renderMath(el, renderOpts) {
|
|
69972
69988
|
var _getGlobal$instance, _getGlobal$instance2;
|
|
69973
69989
|
if (window && window.MathJax && window.MathJax.customKey && window.MathJax.customKey == '@pie-lib/math-rendering-accessible@1') {
|
|
69974
|
-
console.log('RETURN FROM OLD MATH RENDERING, MATH RENDERING ACCESSIBLE WAS FOUND');
|
|
69975
69990
|
return;
|
|
69976
69991
|
}
|
|
69977
|
-
console.log('we are in old math rendering');
|
|
69978
69992
|
var isString = typeof el === 'string';
|
|
69979
69993
|
var executeOn = document.body;
|
|
69980
|
-
console.log(isString, 'is string in old math rendering');
|
|
69981
69994
|
if (isString) {
|
|
69982
69995
|
var div = document.createElement('div');
|
|
69983
69996
|
div.innerHTML = el;
|
|
@@ -69990,14 +70003,11 @@ const require$$12$9 = _dll_debug;
|
|
|
69990
70003
|
var updatedDocument = html.findMath().compile().getMetrics().typeset().updateDocument();
|
|
69991
70004
|
var list = updatedDocument.math.list;
|
|
69992
70005
|
var item = list.next;
|
|
69993
|
-
console.log(item, 'item in old math rendering');
|
|
69994
70006
|
if (!item) {
|
|
69995
|
-
console.log("return '' in old math rendering");
|
|
69996
70007
|
return '';
|
|
69997
70008
|
}
|
|
69998
70009
|
var mathMl = toMMl(item.data.root);
|
|
69999
70010
|
var parsedMathMl = mathMl.replaceAll('\n', '');
|
|
70000
|
-
console.log(parsedMathMl, 'parsedMathMl in old math rendering');
|
|
70001
70011
|
return parsedMathMl;
|
|
70002
70012
|
}
|
|
70003
70013
|
if (!getGlobal().instance) {
|
|
@@ -70007,14 +70017,11 @@ const require$$12$9 = _dll_debug;
|
|
|
70007
70017
|
log('el is undefined');
|
|
70008
70018
|
return;
|
|
70009
70019
|
}
|
|
70010
|
-
console.log(el, 'element in old math rendering');
|
|
70011
70020
|
if (el instanceof Element && (_getGlobal$instance = getGlobal().instance) !== null && _getGlobal$instance !== void 0 && _getGlobal$instance.Typeset) {
|
|
70012
|
-
console.log('Typeset element in old math rendering');
|
|
70013
70021
|
getGlobal().instance.Typeset(el);
|
|
70014
70022
|
} else if (el.length && (_getGlobal$instance2 = getGlobal().instance) !== null && _getGlobal$instance2 !== void 0 && _getGlobal$instance2.Typeset) {
|
|
70015
70023
|
var _getGlobal$instance3;
|
|
70016
70024
|
var arr = Array.from(el);
|
|
70017
|
-
console.log(arr, 'Typeset arr in old math rendering');
|
|
70018
70025
|
(_getGlobal$instance3 = getGlobal().instance).Typeset.apply(_getGlobal$instance3, (0, _toConsumableArray2["default"])(arr));
|
|
70019
70026
|
}
|
|
70020
70027
|
};
|
|
@@ -78985,10 +78992,7 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
78985
78992
|
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);
|
|
78986
78993
|
};
|
|
78987
78994
|
var renderMath = function renderMath(el, renderOpts) {
|
|
78988
|
-
console.log("I'm in math rendering accessible");
|
|
78989
78995
|
var isString = typeof el === 'string';
|
|
78990
|
-
console.log('IS STRING', isString);
|
|
78991
|
-
console.log('renderOpts', renderOpts);
|
|
78992
78996
|
var executeOn = document.body;
|
|
78993
78997
|
if (isString) {
|
|
78994
78998
|
var div = document.createElement('div');
|
|
@@ -78996,19 +79000,16 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
78996
79000
|
executeOn = div;
|
|
78997
79001
|
}
|
|
78998
79002
|
var _ref = renderOpts || ({}), skipWaitForMathRenderingLib = _ref.skipWaitForMathRenderingLib;
|
|
78999
|
-
console.log(skipWaitForMathRenderingLib, 'skipWaitForMathRenderingLib');
|
|
79000
79003
|
var renderMathAccessible = function renderMathAccessible() {
|
|
79001
79004
|
fixMathElements(executeOn);
|
|
79002
79005
|
adjustMathMLStyle(executeOn);
|
|
79003
79006
|
var mathJaxCustomKey = getMathJaxCustomKey();
|
|
79004
79007
|
if (!window.MathJax && !window.mathjaxLoadedP || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
|
|
79005
|
-
console.log('INITIALIZE MATHJAX ACCESSIBLE');
|
|
79006
79008
|
renderOpts = renderOpts || defaultOpts();
|
|
79007
79009
|
(0, _mathjaxScript.initializeMathJax)(renderOpts);
|
|
79008
79010
|
}
|
|
79009
79011
|
if (isString && window.MathJax && window.mathjaxLoadedP) {
|
|
79010
79012
|
try {
|
|
79011
|
-
console.log('THE ISSUE MUST BE HERE');
|
|
79012
79013
|
MathJax.texReset();
|
|
79013
79014
|
MathJax.typesetClear();
|
|
79014
79015
|
window.MathJax.typeset([executeOn]);
|
|
@@ -79017,7 +79018,6 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
79017
79018
|
var item = list.next;
|
|
79018
79019
|
var mathMl = toMMl(item.data.root);
|
|
79019
79020
|
var parsedMathMl = mathMl.replaceAll('\n', '');
|
|
79020
|
-
console.log(parsedMathMl, 'parsedMathMl');
|
|
79021
79021
|
return parsedMathMl;
|
|
79022
79022
|
} catch (error) {
|
|
79023
79023
|
console.error('Error rendering math:', error.message);
|
|
@@ -79026,13 +79026,11 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
79026
79026
|
if (window.mathjaxLoadedP) {
|
|
79027
79027
|
window.mathjaxLoadedP.then(function () {
|
|
79028
79028
|
var mathJaxInstance = getGlobal().instance;
|
|
79029
|
-
console.log(mathJaxInstance, 'mathJaxInstance');
|
|
79030
79029
|
if (mathJaxInstance) {
|
|
79031
79030
|
mathJaxInstance.texReset();
|
|
79032
79031
|
mathJaxInstance.typesetClear();
|
|
79033
79032
|
mathJaxInstance.typesetPromise([executeOn]).then(function () {
|
|
79034
79033
|
try {
|
|
79035
|
-
console.log("I'm in typesetPromise???");
|
|
79036
79034
|
removeExcessMjxContainers(executeOn);
|
|
79037
79035
|
removePlaceholdersAndRestoreDisplay();
|
|
79038
79036
|
var _updatedDocument = mathJaxInstance.startup.document;
|
|
@@ -79056,16 +79054,13 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
79056
79054
|
}
|
|
79057
79055
|
};
|
|
79058
79056
|
if (skipWaitForMathRenderingLib) {
|
|
79059
|
-
console.log(skipWaitForMathRenderingLib, 'skipWaitForMathRenderingLib');
|
|
79060
79057
|
return renderMathAccessible();
|
|
79061
79058
|
} else {
|
|
79062
79059
|
if (window.hasOwnProperty(mathRenderingKEY) && window[mathRenderingKEY].instance) {
|
|
79063
|
-
console.log(mathRenderingKEY, 'mathRenderingKEY');
|
|
79064
79060
|
removePlaceholdersAndRestoreDisplay();
|
|
79065
|
-
return mr.renderMath();
|
|
79061
|
+
return mr.renderMath(executeOn, renderOpts);
|
|
79066
79062
|
}
|
|
79067
79063
|
if (window.hasOwnProperty(mathRenderingAccessibleKEY) && window[mathRenderingAccessibleKEY].instance) {
|
|
79068
|
-
console.log(mathRenderingAccessibleKEY, 'mathRenderingAccessibleKEY');
|
|
79069
79064
|
return renderMathAccessible();
|
|
79070
79065
|
}
|
|
79071
79066
|
var waitForMathRenderingLib = function waitForMathRenderingLib(renderMathAccessibleCallback) {
|
|
@@ -79080,16 +79075,14 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
79080
79075
|
if (mathRenderingHasLoaded || hasExceededMaxWait) {
|
|
79081
79076
|
clearInterval(checkIntervalId);
|
|
79082
79077
|
if (mathRenderingHasLoaded) {
|
|
79083
|
-
console.log(mathRenderingHasLoaded, 'mathRenderingHasLoaded');
|
|
79084
79078
|
removePlaceholdersAndRestoreDisplay();
|
|
79085
|
-
return mr.renderMath();
|
|
79079
|
+
return mr.renderMath(executeOn, renderOpts);
|
|
79086
79080
|
}
|
|
79087
79081
|
renderMathAccessibleCallback();
|
|
79088
79082
|
}
|
|
79089
79083
|
};
|
|
79090
79084
|
checkIntervalId = setInterval(checkForLib, 100);
|
|
79091
79085
|
};
|
|
79092
|
-
console.log('waitForMathRenderingLib');
|
|
79093
79086
|
waitForMathRenderingLib(renderMathAccessible);
|
|
79094
79087
|
}
|
|
79095
79088
|
};
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"repository": "pie-framework/pie-elements",
|
|
7
|
-
"version": "6.12.
|
|
7
|
+
"version": "6.12.5",
|
|
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.17.
|
|
15
|
+
"@pie-lib/pie-toolbox": "1.17.4",
|
|
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": "512624fa52f5c653c74c32fa49c23af8c6d91c99",
|
|
25
25
|
"main": "lib/index.js",
|
|
26
26
|
"module": "src/index.js",
|
|
27
27
|
"exports": {
|