@pie-element/explicit-constructed-response 6.12.2-next.6 → 6.12.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 +2 -2
- package/module/element.js +41 -5
- package/module/index.html +1 -1
- package/module/manifest.json +3 -3
- package/module/print.html +1 -1
- package/module/print.js +41 -5
- 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.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
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* add logs PD-3731 ([0785a79](https://github.com/pie-framework/pie-elements/commit/0785a799fde39c01525daf8d95618bfd8ea926a2))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [6.12.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response@6.12.1...@pie-element/explicit-constructed-response@6.12.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
|
## [6.12.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response@6.12.0...@pie-element/explicit-constructed-response@6.12.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
|
+
## [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
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* add logs PD-3731 ([0785a79](https://github.com/pie-framework/pie-elements/commit/0785a799fde39c01525daf8d95618bfd8ea926a2))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [6.11.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@6.11.1...@pie-element/explicit-constructed-response-configure@6.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
|
## [6.11.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@6.11.0...@pie-element/explicit-constructed-response-configure@6.11.1) (2024-04-29)
|
|
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.3",
|
|
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.
|
|
11
|
+
"@pie-lib/pie-toolbox": "1.17.2",
|
|
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.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
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* add logs PD-3731 ([0785a79](https://github.com/pie-framework/pie-elements/commit/0785a799fde39c01525daf8d95618bfd8ea926a2))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [4.10.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-controller@4.10.1...@pie-element/explicit-constructed-response-controller@4.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
|
## [4.10.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-controller@4.10.0...@pie-element/explicit-constructed-response-controller@4.10.1) (2024-04-29)
|
|
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.3",
|
|
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.
|
|
11
|
+
"@pie-lib/pie-toolbox": "1.17.2",
|
|
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,5 +1,5 @@
|
|
|
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.
|
|
2
|
-
import {_dll_pie_lib__pie_toolbox_editable_html, _dll_pie_lib__pie_toolbox_config_ui} from "../../../@pie-lib/pie-toolbox-module@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/module/index.js";
|
|
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) {
|
|
5
5
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
package/module/element.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {_dll_react, _dll_prop_types, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_classnames, _dll_react_dom, _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_debug, _dll_lodash, _dll_react_dom_server, _dll_classnames, _dll_react_dom, _dll_pie_lib__pie_toolbox_math_rendering_accessible} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.10.1/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;
|
|
@@ -70008,10 +70008,13 @@ const require$$12$9 = _dll_debug;
|
|
|
70008
70008
|
var renderMath = function renderMath(el, renderOpts) {
|
|
70009
70009
|
var _getGlobal$instance, _getGlobal$instance2;
|
|
70010
70010
|
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');
|
|
70011
70012
|
return;
|
|
70012
70013
|
}
|
|
70014
|
+
console.log('we are in old math rendering');
|
|
70013
70015
|
var isString = typeof el === 'string';
|
|
70014
70016
|
var executeOn = document.body;
|
|
70017
|
+
console.log(isString, 'is string in old math rendering');
|
|
70015
70018
|
if (isString) {
|
|
70016
70019
|
var div = document.createElement('div');
|
|
70017
70020
|
div.innerHTML = el;
|
|
@@ -70024,11 +70027,14 @@ const require$$12$9 = _dll_debug;
|
|
|
70024
70027
|
var updatedDocument = html.findMath().compile().getMetrics().typeset().updateDocument();
|
|
70025
70028
|
var list = updatedDocument.math.list;
|
|
70026
70029
|
var item = list.next;
|
|
70030
|
+
console.log(item, 'item in old math rendering');
|
|
70027
70031
|
if (!item) {
|
|
70032
|
+
console.log("return '' in old math rendering");
|
|
70028
70033
|
return '';
|
|
70029
70034
|
}
|
|
70030
70035
|
var mathMl = toMMl(item.data.root);
|
|
70031
70036
|
var parsedMathMl = mathMl.replaceAll('\n', '');
|
|
70037
|
+
console.log(parsedMathMl, 'parsedMathMl in old math rendering');
|
|
70032
70038
|
return parsedMathMl;
|
|
70033
70039
|
}
|
|
70034
70040
|
if (!getGlobal().instance) {
|
|
@@ -70038,11 +70044,14 @@ const require$$12$9 = _dll_debug;
|
|
|
70038
70044
|
log('el is undefined');
|
|
70039
70045
|
return;
|
|
70040
70046
|
}
|
|
70047
|
+
console.log(el, 'element in old math rendering');
|
|
70041
70048
|
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');
|
|
70042
70050
|
getGlobal().instance.Typeset(el);
|
|
70043
70051
|
} else if (el.length && (_getGlobal$instance2 = getGlobal().instance) !== null && _getGlobal$instance2 !== void 0 && _getGlobal$instance2.Typeset) {
|
|
70044
70052
|
var _getGlobal$instance3;
|
|
70045
70053
|
var arr = Array.from(el);
|
|
70054
|
+
console.log(arr, 'Typeset arr in old math rendering');
|
|
70046
70055
|
(_getGlobal$instance3 = getGlobal().instance).Typeset.apply(_getGlobal$instance3, (0, _toConsumableArray2["default"])(arr));
|
|
70047
70056
|
}
|
|
70048
70057
|
};
|
|
@@ -79013,7 +79022,10 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
79013
79022
|
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);
|
|
79014
79023
|
};
|
|
79015
79024
|
var renderMath = function renderMath(el, renderOpts) {
|
|
79025
|
+
console.log("I'm in math rendering accessible");
|
|
79016
79026
|
var isString = typeof el === 'string';
|
|
79027
|
+
console.log('IS STRING', isString);
|
|
79028
|
+
console.log('renderOpts', renderOpts);
|
|
79017
79029
|
var executeOn = document.body;
|
|
79018
79030
|
if (isString) {
|
|
79019
79031
|
var div = document.createElement('div');
|
|
@@ -79021,16 +79033,19 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
79021
79033
|
executeOn = div;
|
|
79022
79034
|
}
|
|
79023
79035
|
var _ref = renderOpts || ({}), skipWaitForMathRenderingLib = _ref.skipWaitForMathRenderingLib;
|
|
79036
|
+
console.log(skipWaitForMathRenderingLib, 'skipWaitForMathRenderingLib');
|
|
79024
79037
|
var renderMathAccessible = function renderMathAccessible() {
|
|
79025
79038
|
fixMathElements(executeOn);
|
|
79026
79039
|
adjustMathMLStyle(executeOn);
|
|
79027
79040
|
var mathJaxCustomKey = getMathJaxCustomKey();
|
|
79028
79041
|
if (!window.MathJax && !window.mathjaxLoadedP || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
|
|
79042
|
+
console.log('INITIALIZE MATHJAX ACCESSIBLE');
|
|
79029
79043
|
renderOpts = renderOpts || defaultOpts();
|
|
79030
79044
|
(0, _mathjaxScript.initializeMathJax)(renderOpts);
|
|
79031
79045
|
}
|
|
79032
79046
|
if (isString && window.MathJax && window.mathjaxLoadedP) {
|
|
79033
79047
|
try {
|
|
79048
|
+
console.log('THE ISSUE MUST BE HERE');
|
|
79034
79049
|
MathJax.texReset();
|
|
79035
79050
|
MathJax.typesetClear();
|
|
79036
79051
|
window.MathJax.typeset([executeOn]);
|
|
@@ -79039,6 +79054,7 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
79039
79054
|
var item = list.next;
|
|
79040
79055
|
var mathMl = toMMl(item.data.root);
|
|
79041
79056
|
var parsedMathMl = mathMl.replaceAll('\n', '');
|
|
79057
|
+
console.log(parsedMathMl, 'parsedMathMl');
|
|
79042
79058
|
return parsedMathMl;
|
|
79043
79059
|
} catch (error) {
|
|
79044
79060
|
console.error('Error rendering math:', error.message);
|
|
@@ -79047,11 +79063,13 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
79047
79063
|
if (window.mathjaxLoadedP) {
|
|
79048
79064
|
window.mathjaxLoadedP.then(function () {
|
|
79049
79065
|
var mathJaxInstance = getGlobal().instance;
|
|
79066
|
+
console.log(mathJaxInstance, 'mathJaxInstance');
|
|
79050
79067
|
if (mathJaxInstance) {
|
|
79051
79068
|
mathJaxInstance.texReset();
|
|
79052
79069
|
mathJaxInstance.typesetClear();
|
|
79053
79070
|
mathJaxInstance.typesetPromise([executeOn]).then(function () {
|
|
79054
79071
|
try {
|
|
79072
|
+
console.log("I'm in typesetPromise???");
|
|
79055
79073
|
removeExcessMjxContainers(executeOn);
|
|
79056
79074
|
removePlaceholdersAndRestoreDisplay();
|
|
79057
79075
|
var _updatedDocument = mathJaxInstance.startup.document;
|
|
@@ -79075,13 +79093,16 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
79075
79093
|
}
|
|
79076
79094
|
};
|
|
79077
79095
|
if (skipWaitForMathRenderingLib) {
|
|
79096
|
+
console.log(skipWaitForMathRenderingLib, 'skipWaitForMathRenderingLib');
|
|
79078
79097
|
return renderMathAccessible();
|
|
79079
79098
|
} else {
|
|
79080
79099
|
if (window.hasOwnProperty(mathRenderingKEY) && window[mathRenderingKEY].instance) {
|
|
79100
|
+
console.log(mathRenderingKEY, 'mathRenderingKEY');
|
|
79081
79101
|
removePlaceholdersAndRestoreDisplay();
|
|
79082
79102
|
return mr.renderMath();
|
|
79083
79103
|
}
|
|
79084
79104
|
if (window.hasOwnProperty(mathRenderingAccessibleKEY) && window[mathRenderingAccessibleKEY].instance) {
|
|
79105
|
+
console.log(mathRenderingAccessibleKEY, 'mathRenderingAccessibleKEY');
|
|
79085
79106
|
return renderMathAccessible();
|
|
79086
79107
|
}
|
|
79087
79108
|
var waitForMathRenderingLib = function waitForMathRenderingLib(renderMathAccessibleCallback) {
|
|
@@ -79096,6 +79117,7 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
79096
79117
|
if (mathRenderingHasLoaded || hasExceededMaxWait) {
|
|
79097
79118
|
clearInterval(checkIntervalId);
|
|
79098
79119
|
if (mathRenderingHasLoaded) {
|
|
79120
|
+
console.log(mathRenderingHasLoaded, 'mathRenderingHasLoaded');
|
|
79099
79121
|
removePlaceholdersAndRestoreDisplay();
|
|
79100
79122
|
return mr.renderMath();
|
|
79101
79123
|
}
|
|
@@ -79104,6 +79126,7 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
79104
79126
|
};
|
|
79105
79127
|
checkIntervalId = setInterval(checkForLib, 100);
|
|
79106
79128
|
};
|
|
79129
|
+
console.log('waitForMathRenderingLib');
|
|
79107
79130
|
waitForMathRenderingLib(renderMathAccessible);
|
|
79108
79131
|
}
|
|
79109
79132
|
};
|
|
@@ -84128,7 +84151,7 @@ const require$$4$e = _dll_prop_types;
|
|
|
84128
84151
|
var _propTypes = _interopRequireDefault(require$$4$e);
|
|
84129
84152
|
var _grey = _interopRequireDefault(grey$1);
|
|
84130
84153
|
var PlaceHolder = function PlaceHolder(props) {
|
|
84131
|
-
var children = props.children, classes = props.classes, className = props.className, isOver = props.isOver, type = props.type, grid = props.grid, disabled = props.disabled, choiceBoard = props.choiceBoard;
|
|
84154
|
+
var children = props.children, classes = props.classes, className = props.className, isOver = props.isOver, type = props.type, grid = props.grid, disabled = props.disabled, choiceBoard = props.choiceBoard, isCategorize = props.isCategorize;
|
|
84132
84155
|
var names = (0, _classnames["default"])(classes.placeholder, disabled && classes.disabled, isOver && classes.over, classes[type], className);
|
|
84133
84156
|
var style = {};
|
|
84134
84157
|
if (grid && grid.columns) {
|
|
@@ -84138,9 +84161,10 @@ const require$$4$e = _dll_prop_types;
|
|
|
84138
84161
|
var repeatValue = grid.rowsRepeatValue || '1fr';
|
|
84139
84162
|
style.gridTemplateRows = ("repeat(").concat(grid.rows, ", ").concat(repeatValue, ")");
|
|
84140
84163
|
}
|
|
84164
|
+
var boardStyle = isCategorize ? classes.categorizeBoard : classes.board;
|
|
84141
84165
|
return _react["default"].createElement("div", {
|
|
84142
84166
|
style: style,
|
|
84143
|
-
className: choiceBoard ?
|
|
84167
|
+
className: choiceBoard ? boardStyle : names
|
|
84144
84168
|
}, children);
|
|
84145
84169
|
};
|
|
84146
84170
|
exports.PlaceHolder = PlaceHolder;
|
|
@@ -84157,7 +84181,8 @@ const require$$4$e = _dll_prop_types;
|
|
|
84157
84181
|
isOver: _propTypes["default"].bool,
|
|
84158
84182
|
index: _propTypes["default"].number,
|
|
84159
84183
|
type: _propTypes["default"].string,
|
|
84160
|
-
disabled: _propTypes["default"].bool
|
|
84184
|
+
disabled: _propTypes["default"].bool,
|
|
84185
|
+
isCategorize: _propTypes["default"].bool
|
|
84161
84186
|
};
|
|
84162
84187
|
var styles = function styles(theme) {
|
|
84163
84188
|
return {
|
|
@@ -84191,6 +84216,17 @@ const require$$4$e = _dll_prop_types;
|
|
|
84191
84216
|
justifyContent: 'center',
|
|
84192
84217
|
overflow: 'hidden',
|
|
84193
84218
|
touchAction: 'none'
|
|
84219
|
+
},
|
|
84220
|
+
categorizeBoard: {
|
|
84221
|
+
border: '1px solid #D1D1D1',
|
|
84222
|
+
padding: theme.spacing.unit / 2,
|
|
84223
|
+
display: 'flex',
|
|
84224
|
+
flexWrap: 'wrap',
|
|
84225
|
+
alignItems: 'center',
|
|
84226
|
+
minHeight: '100px',
|
|
84227
|
+
justifyContent: 'center',
|
|
84228
|
+
overflow: 'hidden',
|
|
84229
|
+
touchAction: 'none'
|
|
84194
84230
|
}
|
|
84195
84231
|
};
|
|
84196
84232
|
};
|
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.2</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,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/explicit-constructed-response",
|
|
3
|
-
"version": "6.12.
|
|
3
|
+
"version": "6.12.2",
|
|
4
4
|
"modules": [
|
|
5
5
|
{
|
|
6
6
|
"name": "@pie-lib/pie-toolbox-math-rendering-module",
|
|
7
|
-
"version": "1.
|
|
7
|
+
"version": "1.10.1"
|
|
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_debug, _dll_lodash, _dll_react_dom_server, _dll_classnames, _dll_react_dom, _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_debug, _dll_lodash, _dll_react_dom_server, _dll_classnames, _dll_react_dom, _dll_pie_lib__pie_toolbox_math_rendering_accessible} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.10.1/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;
|
|
@@ -69971,10 +69971,13 @@ const require$$12$9 = _dll_debug;
|
|
|
69971
69971
|
var renderMath = function renderMath(el, renderOpts) {
|
|
69972
69972
|
var _getGlobal$instance, _getGlobal$instance2;
|
|
69973
69973
|
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');
|
|
69974
69975
|
return;
|
|
69975
69976
|
}
|
|
69977
|
+
console.log('we are in old math rendering');
|
|
69976
69978
|
var isString = typeof el === 'string';
|
|
69977
69979
|
var executeOn = document.body;
|
|
69980
|
+
console.log(isString, 'is string in old math rendering');
|
|
69978
69981
|
if (isString) {
|
|
69979
69982
|
var div = document.createElement('div');
|
|
69980
69983
|
div.innerHTML = el;
|
|
@@ -69987,11 +69990,14 @@ const require$$12$9 = _dll_debug;
|
|
|
69987
69990
|
var updatedDocument = html.findMath().compile().getMetrics().typeset().updateDocument();
|
|
69988
69991
|
var list = updatedDocument.math.list;
|
|
69989
69992
|
var item = list.next;
|
|
69993
|
+
console.log(item, 'item in old math rendering');
|
|
69990
69994
|
if (!item) {
|
|
69995
|
+
console.log("return '' in old math rendering");
|
|
69991
69996
|
return '';
|
|
69992
69997
|
}
|
|
69993
69998
|
var mathMl = toMMl(item.data.root);
|
|
69994
69999
|
var parsedMathMl = mathMl.replaceAll('\n', '');
|
|
70000
|
+
console.log(parsedMathMl, 'parsedMathMl in old math rendering');
|
|
69995
70001
|
return parsedMathMl;
|
|
69996
70002
|
}
|
|
69997
70003
|
if (!getGlobal().instance) {
|
|
@@ -70001,11 +70007,14 @@ const require$$12$9 = _dll_debug;
|
|
|
70001
70007
|
log('el is undefined');
|
|
70002
70008
|
return;
|
|
70003
70009
|
}
|
|
70010
|
+
console.log(el, 'element in old math rendering');
|
|
70004
70011
|
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');
|
|
70005
70013
|
getGlobal().instance.Typeset(el);
|
|
70006
70014
|
} else if (el.length && (_getGlobal$instance2 = getGlobal().instance) !== null && _getGlobal$instance2 !== void 0 && _getGlobal$instance2.Typeset) {
|
|
70007
70015
|
var _getGlobal$instance3;
|
|
70008
70016
|
var arr = Array.from(el);
|
|
70017
|
+
console.log(arr, 'Typeset arr in old math rendering');
|
|
70009
70018
|
(_getGlobal$instance3 = getGlobal().instance).Typeset.apply(_getGlobal$instance3, (0, _toConsumableArray2["default"])(arr));
|
|
70010
70019
|
}
|
|
70011
70020
|
};
|
|
@@ -78976,7 +78985,10 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
78976
78985
|
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);
|
|
78977
78986
|
};
|
|
78978
78987
|
var renderMath = function renderMath(el, renderOpts) {
|
|
78988
|
+
console.log("I'm in math rendering accessible");
|
|
78979
78989
|
var isString = typeof el === 'string';
|
|
78990
|
+
console.log('IS STRING', isString);
|
|
78991
|
+
console.log('renderOpts', renderOpts);
|
|
78980
78992
|
var executeOn = document.body;
|
|
78981
78993
|
if (isString) {
|
|
78982
78994
|
var div = document.createElement('div');
|
|
@@ -78984,16 +78996,19 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
78984
78996
|
executeOn = div;
|
|
78985
78997
|
}
|
|
78986
78998
|
var _ref = renderOpts || ({}), skipWaitForMathRenderingLib = _ref.skipWaitForMathRenderingLib;
|
|
78999
|
+
console.log(skipWaitForMathRenderingLib, 'skipWaitForMathRenderingLib');
|
|
78987
79000
|
var renderMathAccessible = function renderMathAccessible() {
|
|
78988
79001
|
fixMathElements(executeOn);
|
|
78989
79002
|
adjustMathMLStyle(executeOn);
|
|
78990
79003
|
var mathJaxCustomKey = getMathJaxCustomKey();
|
|
78991
79004
|
if (!window.MathJax && !window.mathjaxLoadedP || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
|
|
79005
|
+
console.log('INITIALIZE MATHJAX ACCESSIBLE');
|
|
78992
79006
|
renderOpts = renderOpts || defaultOpts();
|
|
78993
79007
|
(0, _mathjaxScript.initializeMathJax)(renderOpts);
|
|
78994
79008
|
}
|
|
78995
79009
|
if (isString && window.MathJax && window.mathjaxLoadedP) {
|
|
78996
79010
|
try {
|
|
79011
|
+
console.log('THE ISSUE MUST BE HERE');
|
|
78997
79012
|
MathJax.texReset();
|
|
78998
79013
|
MathJax.typesetClear();
|
|
78999
79014
|
window.MathJax.typeset([executeOn]);
|
|
@@ -79002,6 +79017,7 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
79002
79017
|
var item = list.next;
|
|
79003
79018
|
var mathMl = toMMl(item.data.root);
|
|
79004
79019
|
var parsedMathMl = mathMl.replaceAll('\n', '');
|
|
79020
|
+
console.log(parsedMathMl, 'parsedMathMl');
|
|
79005
79021
|
return parsedMathMl;
|
|
79006
79022
|
} catch (error) {
|
|
79007
79023
|
console.error('Error rendering math:', error.message);
|
|
@@ -79010,11 +79026,13 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
79010
79026
|
if (window.mathjaxLoadedP) {
|
|
79011
79027
|
window.mathjaxLoadedP.then(function () {
|
|
79012
79028
|
var mathJaxInstance = getGlobal().instance;
|
|
79029
|
+
console.log(mathJaxInstance, 'mathJaxInstance');
|
|
79013
79030
|
if (mathJaxInstance) {
|
|
79014
79031
|
mathJaxInstance.texReset();
|
|
79015
79032
|
mathJaxInstance.typesetClear();
|
|
79016
79033
|
mathJaxInstance.typesetPromise([executeOn]).then(function () {
|
|
79017
79034
|
try {
|
|
79035
|
+
console.log("I'm in typesetPromise???");
|
|
79018
79036
|
removeExcessMjxContainers(executeOn);
|
|
79019
79037
|
removePlaceholdersAndRestoreDisplay();
|
|
79020
79038
|
var _updatedDocument = mathJaxInstance.startup.document;
|
|
@@ -79038,13 +79056,16 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
79038
79056
|
}
|
|
79039
79057
|
};
|
|
79040
79058
|
if (skipWaitForMathRenderingLib) {
|
|
79059
|
+
console.log(skipWaitForMathRenderingLib, 'skipWaitForMathRenderingLib');
|
|
79041
79060
|
return renderMathAccessible();
|
|
79042
79061
|
} else {
|
|
79043
79062
|
if (window.hasOwnProperty(mathRenderingKEY) && window[mathRenderingKEY].instance) {
|
|
79063
|
+
console.log(mathRenderingKEY, 'mathRenderingKEY');
|
|
79044
79064
|
removePlaceholdersAndRestoreDisplay();
|
|
79045
79065
|
return mr.renderMath();
|
|
79046
79066
|
}
|
|
79047
79067
|
if (window.hasOwnProperty(mathRenderingAccessibleKEY) && window[mathRenderingAccessibleKEY].instance) {
|
|
79068
|
+
console.log(mathRenderingAccessibleKEY, 'mathRenderingAccessibleKEY');
|
|
79048
79069
|
return renderMathAccessible();
|
|
79049
79070
|
}
|
|
79050
79071
|
var waitForMathRenderingLib = function waitForMathRenderingLib(renderMathAccessibleCallback) {
|
|
@@ -79059,6 +79080,7 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
79059
79080
|
if (mathRenderingHasLoaded || hasExceededMaxWait) {
|
|
79060
79081
|
clearInterval(checkIntervalId);
|
|
79061
79082
|
if (mathRenderingHasLoaded) {
|
|
79083
|
+
console.log(mathRenderingHasLoaded, 'mathRenderingHasLoaded');
|
|
79062
79084
|
removePlaceholdersAndRestoreDisplay();
|
|
79063
79085
|
return mr.renderMath();
|
|
79064
79086
|
}
|
|
@@ -79067,6 +79089,7 @@ getDefaultExportFromCjs(mathRendering);
|
|
|
79067
79089
|
};
|
|
79068
79090
|
checkIntervalId = setInterval(checkForLib, 100);
|
|
79069
79091
|
};
|
|
79092
|
+
console.log('waitForMathRenderingLib');
|
|
79070
79093
|
waitForMathRenderingLib(renderMathAccessible);
|
|
79071
79094
|
}
|
|
79072
79095
|
};
|
|
@@ -84091,7 +84114,7 @@ const require$$4$e = _dll_prop_types;
|
|
|
84091
84114
|
var _propTypes = _interopRequireDefault(require$$4$e);
|
|
84092
84115
|
var _grey = _interopRequireDefault(grey$1);
|
|
84093
84116
|
var PlaceHolder = function PlaceHolder(props) {
|
|
84094
|
-
var children = props.children, classes = props.classes, className = props.className, isOver = props.isOver, type = props.type, grid = props.grid, disabled = props.disabled, choiceBoard = props.choiceBoard;
|
|
84117
|
+
var children = props.children, classes = props.classes, className = props.className, isOver = props.isOver, type = props.type, grid = props.grid, disabled = props.disabled, choiceBoard = props.choiceBoard, isCategorize = props.isCategorize;
|
|
84095
84118
|
var names = (0, _classnames["default"])(classes.placeholder, disabled && classes.disabled, isOver && classes.over, classes[type], className);
|
|
84096
84119
|
var style = {};
|
|
84097
84120
|
if (grid && grid.columns) {
|
|
@@ -84101,9 +84124,10 @@ const require$$4$e = _dll_prop_types;
|
|
|
84101
84124
|
var repeatValue = grid.rowsRepeatValue || '1fr';
|
|
84102
84125
|
style.gridTemplateRows = ("repeat(").concat(grid.rows, ", ").concat(repeatValue, ")");
|
|
84103
84126
|
}
|
|
84127
|
+
var boardStyle = isCategorize ? classes.categorizeBoard : classes.board;
|
|
84104
84128
|
return _react["default"].createElement("div", {
|
|
84105
84129
|
style: style,
|
|
84106
|
-
className: choiceBoard ?
|
|
84130
|
+
className: choiceBoard ? boardStyle : names
|
|
84107
84131
|
}, children);
|
|
84108
84132
|
};
|
|
84109
84133
|
exports.PlaceHolder = PlaceHolder;
|
|
@@ -84120,7 +84144,8 @@ const require$$4$e = _dll_prop_types;
|
|
|
84120
84144
|
isOver: _propTypes["default"].bool,
|
|
84121
84145
|
index: _propTypes["default"].number,
|
|
84122
84146
|
type: _propTypes["default"].string,
|
|
84123
|
-
disabled: _propTypes["default"].bool
|
|
84147
|
+
disabled: _propTypes["default"].bool,
|
|
84148
|
+
isCategorize: _propTypes["default"].bool
|
|
84124
84149
|
};
|
|
84125
84150
|
var styles = function styles(theme) {
|
|
84126
84151
|
return {
|
|
@@ -84154,6 +84179,17 @@ const require$$4$e = _dll_prop_types;
|
|
|
84154
84179
|
justifyContent: 'center',
|
|
84155
84180
|
overflow: 'hidden',
|
|
84156
84181
|
touchAction: 'none'
|
|
84182
|
+
},
|
|
84183
|
+
categorizeBoard: {
|
|
84184
|
+
border: '1px solid #D1D1D1',
|
|
84185
|
+
padding: theme.spacing.unit / 2,
|
|
84186
|
+
display: 'flex',
|
|
84187
|
+
flexWrap: 'wrap',
|
|
84188
|
+
alignItems: 'center',
|
|
84189
|
+
minHeight: '100px',
|
|
84190
|
+
justifyContent: 'center',
|
|
84191
|
+
overflow: 'hidden',
|
|
84192
|
+
touchAction: 'none'
|
|
84157
84193
|
}
|
|
84158
84194
|
};
|
|
84159
84195
|
};
|
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.3",
|
|
8
8
|
"description": "",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"postpublish": "../../scripts/postpublish"
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@material-ui/core": "^3.9.2",
|
|
14
14
|
"@pie-framework/pie-player-events": "^0.1.0",
|
|
15
|
-
"@pie-lib/pie-toolbox": "1.
|
|
15
|
+
"@pie-lib/pie-toolbox": "1.17.2",
|
|
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": "d5a79b236159c8fb46c6e40d346788cdd2b4363d",
|
|
25
25
|
"main": "lib/index.js",
|
|
26
26
|
"module": "src/index.js",
|
|
27
27
|
"exports": {
|