@pie-element/explicit-constructed-response 7.6.1 → 7.6.2-next.2
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/configure/package.json +1 -1
- package/controller/package.json +1 -1
- package/module/configure.js +2 -2
- package/module/element.js +20 -12
- package/module/index.html +1 -1
- package/module/manifest.json +3 -3
- package/module/print.html +1 -1
- package/module/print.js +20 -12
- package/package.json +3 -3
package/configure/package.json
CHANGED
|
@@ -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": "2.22.
|
|
11
|
+
"@pie-lib/pie-toolbox": "2.22.2",
|
|
12
12
|
"classnames": "^2.2.6",
|
|
13
13
|
"debug": "^3.1.0",
|
|
14
14
|
"lodash": "^4.17.15",
|
package/controller/package.json
CHANGED
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@5.4.
|
|
2
|
-
import {_dll_pie_lib__pie_toolbox_editable_html, _dll_pie_lib__pie_toolbox_config_ui} from "../../../@pie-lib/pie-toolbox-module@8.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@5.4.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@8.4.1/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_framework__mathquill, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@5.4.
|
|
2
|
-
import {_dll_pie_lib__pie_toolbox_correct_answer_toggle, _dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@8.4.
|
|
1
|
+
import {_dll_react, _dll_prop_types, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_classnames, _dll_react_dom, _dll_pie_framework__mathquill, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@5.4.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@8.4.1/module/index.js";
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
m.forEach(function (e) {
|
|
5
5
|
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
@@ -155367,7 +155367,7 @@ const {isEqual: require$$20} = _dll_lodash;
|
|
|
155367
155367
|
var _Check = _interopRequireDefault(Check);
|
|
155368
155368
|
var _styles = styles$1I;
|
|
155369
155369
|
var _classnames = _interopRequireDefault(require$$19);
|
|
155370
|
-
|
|
155370
|
+
_interopRequireDefault(require$$20);
|
|
155371
155371
|
var _renderUi = renderUi$1;
|
|
155372
155372
|
var _mathRendering = mathRendering;
|
|
155373
155373
|
function ownKeys(object, enumerableOnly) {
|
|
@@ -155492,19 +155492,27 @@ const {isEqual: require$$20} = _dll_lodash;
|
|
|
155492
155492
|
}
|
|
155493
155493
|
}, {
|
|
155494
155494
|
key: "componentDidUpdate",
|
|
155495
|
-
value: function componentDidUpdate(prevProps) {
|
|
155496
|
-
var
|
|
155497
|
-
|
|
155495
|
+
value: function componentDidUpdate(prevProps, prevState) {
|
|
155496
|
+
var hiddenEl = this.hiddenRef.current;
|
|
155497
|
+
var dropdownJustOpened = !prevState.anchorEl && this.state.anchorEl;
|
|
155498
|
+
if (dropdownJustOpened) {
|
|
155498
155499
|
this.elementRefs.forEach(function (ref) {
|
|
155499
|
-
if (ref)
|
|
155500
|
+
if (!ref) return;
|
|
155501
|
+
var containsLatex = ref.querySelector('[data-latex], [data-raw]');
|
|
155502
|
+
var hasMathJax = ref.querySelector('mjx-container');
|
|
155503
|
+
var mathHandled = ref.querySelector('[data-math-handled="true"]');
|
|
155504
|
+
if (containsLatex && (!mathHandled || !hasMathJax)) {
|
|
155505
|
+
(0, _mathRendering.renderMath)(ref);
|
|
155506
|
+
}
|
|
155500
155507
|
});
|
|
155501
|
-
if (this.hiddenRef.current) {
|
|
155502
|
-
(0, _mathRendering.renderMath)(this.hiddenRef.current);
|
|
155503
|
-
}
|
|
155504
155508
|
}
|
|
155505
|
-
if (
|
|
155506
|
-
var newWidth =
|
|
155509
|
+
if (hiddenEl) {
|
|
155510
|
+
var newWidth = hiddenEl.clientWidth;
|
|
155507
155511
|
if (newWidth !== this.state.menuWidth) {
|
|
155512
|
+
this.elementRefs.forEach(function (ref) {
|
|
155513
|
+
if (ref) (0, _mathRendering.renderMath)(ref);
|
|
155514
|
+
});
|
|
155515
|
+
(0, _mathRendering.renderMath)(hiddenEl);
|
|
155508
155516
|
this.setState({
|
|
155509
155517
|
menuWidth: newWidth
|
|
155510
155518
|
});
|
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@7.6.
|
|
5
|
+
<title>@pie-element/explicit-constructed-response@7.6.1</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": "7.6.
|
|
3
|
+
"version": "7.6.1",
|
|
4
4
|
"modules": [
|
|
5
5
|
{
|
|
6
6
|
"name": "@pie-lib/pie-toolbox-math-rendering-module",
|
|
7
|
-
"version": "5.4.
|
|
7
|
+
"version": "5.4.1"
|
|
8
8
|
},
|
|
9
9
|
{
|
|
10
10
|
"name": "@pie-lib/pie-toolbox-module",
|
|
11
|
-
"version": "8.4.
|
|
11
|
+
"version": "8.4.1"
|
|
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_framework__mathquill, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@5.4.
|
|
2
|
-
import {_dll_pie_lib__pie_toolbox_correct_answer_toggle, _dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@8.4.
|
|
1
|
+
import {_dll_react, _dll_prop_types, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_classnames, _dll_react_dom, _dll_pie_framework__mathquill, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@5.4.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@8.4.1/module/index.js";
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
m.forEach(function (e) {
|
|
5
5
|
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
@@ -155330,7 +155330,7 @@ const {isEqual: require$$20} = _dll_lodash;
|
|
|
155330
155330
|
var _Check = _interopRequireDefault(Check);
|
|
155331
155331
|
var _styles = styles$1I;
|
|
155332
155332
|
var _classnames = _interopRequireDefault(require$$19);
|
|
155333
|
-
|
|
155333
|
+
_interopRequireDefault(require$$20);
|
|
155334
155334
|
var _renderUi = renderUi$1;
|
|
155335
155335
|
var _mathRendering = mathRendering;
|
|
155336
155336
|
function ownKeys(object, enumerableOnly) {
|
|
@@ -155455,19 +155455,27 @@ const {isEqual: require$$20} = _dll_lodash;
|
|
|
155455
155455
|
}
|
|
155456
155456
|
}, {
|
|
155457
155457
|
key: "componentDidUpdate",
|
|
155458
|
-
value: function componentDidUpdate(prevProps) {
|
|
155459
|
-
var
|
|
155460
|
-
|
|
155458
|
+
value: function componentDidUpdate(prevProps, prevState) {
|
|
155459
|
+
var hiddenEl = this.hiddenRef.current;
|
|
155460
|
+
var dropdownJustOpened = !prevState.anchorEl && this.state.anchorEl;
|
|
155461
|
+
if (dropdownJustOpened) {
|
|
155461
155462
|
this.elementRefs.forEach(function (ref) {
|
|
155462
|
-
if (ref)
|
|
155463
|
+
if (!ref) return;
|
|
155464
|
+
var containsLatex = ref.querySelector('[data-latex], [data-raw]');
|
|
155465
|
+
var hasMathJax = ref.querySelector('mjx-container');
|
|
155466
|
+
var mathHandled = ref.querySelector('[data-math-handled="true"]');
|
|
155467
|
+
if (containsLatex && (!mathHandled || !hasMathJax)) {
|
|
155468
|
+
(0, _mathRendering.renderMath)(ref);
|
|
155469
|
+
}
|
|
155463
155470
|
});
|
|
155464
|
-
if (this.hiddenRef.current) {
|
|
155465
|
-
(0, _mathRendering.renderMath)(this.hiddenRef.current);
|
|
155466
|
-
}
|
|
155467
155471
|
}
|
|
155468
|
-
if (
|
|
155469
|
-
var newWidth =
|
|
155472
|
+
if (hiddenEl) {
|
|
155473
|
+
var newWidth = hiddenEl.clientWidth;
|
|
155470
155474
|
if (newWidth !== this.state.menuWidth) {
|
|
155475
|
+
this.elementRefs.forEach(function (ref) {
|
|
155476
|
+
if (ref) (0, _mathRendering.renderMath)(ref);
|
|
155477
|
+
});
|
|
155478
|
+
(0, _mathRendering.renderMath)(hiddenEl);
|
|
155471
155479
|
this.setState({
|
|
155472
155480
|
menuWidth: newWidth
|
|
155473
155481
|
});
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"repository": "pie-framework/pie-elements",
|
|
7
|
-
"version": "7.6.
|
|
7
|
+
"version": "7.6.2-next.2+e70b36cd4",
|
|
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": "2.22.
|
|
15
|
+
"@pie-lib/pie-toolbox": "2.22.2",
|
|
16
16
|
"classnames": "^2.2.5",
|
|
17
17
|
"he": "^1.2.0",
|
|
18
18
|
"lodash": "^4.17.10",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"author": "",
|
|
24
24
|
"license": "ISC",
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "e70b36cd43cb104ec482c564fe6987ac83339c26",
|
|
26
26
|
"main": "lib/index.js",
|
|
27
27
|
"module": "src/index.js",
|
|
28
28
|
"exports": {
|