@pie-element/explicit-constructed-response 7.6.0 → 7.6.1-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 +17 -9
- package/module/index.html +1 -1
- package/module/manifest.json +3 -3
- package/module/print.html +1 -1
- package/module/print.js +17 -9
- 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.1",
|
|
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.
|
|
2
|
-
import {_dll_pie_lib__pie_toolbox_editable_html, _dll_pie_lib__pie_toolbox_config_ui} from "../../../@pie-lib/pie-toolbox-module@8.
|
|
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.0/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.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_framework__mathquill, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@5.
|
|
2
|
-
import {_dll_pie_lib__pie_toolbox_correct_answer_toggle, _dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@8.
|
|
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.0/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.0/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) {
|
|
@@ -155428,10 +155428,15 @@ const {isEqual: require$$20} = _dll_lodash;
|
|
|
155428
155428
|
});
|
|
155429
155429
|
});
|
|
155430
155430
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "handleClose", function () {
|
|
155431
|
-
|
|
155431
|
+
var value = _this.props.value;
|
|
155432
|
+
_this.setState({
|
|
155432
155433
|
anchorEl: null,
|
|
155433
|
-
previewValue: null
|
|
155434
|
+
previewValue: null,
|
|
155435
|
+
highlightedOptionId: null
|
|
155434
155436
|
});
|
|
155437
|
+
if (!value && _this.previewRef.current) {
|
|
155438
|
+
_this.previewRef.current.innerHTML = '';
|
|
155439
|
+
}
|
|
155435
155440
|
});
|
|
155436
155441
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "handleHighlight", function (index) {
|
|
155437
155442
|
var highlightedOptionId = ("dropdown-option-").concat(_this.props.id, "-").concat(index);
|
|
@@ -155489,6 +155494,14 @@ const {isEqual: require$$20} = _dll_lodash;
|
|
|
155489
155494
|
key: "componentDidUpdate",
|
|
155490
155495
|
value: function componentDidUpdate(prevProps) {
|
|
155491
155496
|
var choices = this.props.choices;
|
|
155497
|
+
if (!(0, _isEqual["default"])(choices, prevProps.choices)) {
|
|
155498
|
+
this.elementRefs.forEach(function (ref) {
|
|
155499
|
+
if (ref) (0, _mathRendering.renderMath)(ref);
|
|
155500
|
+
});
|
|
155501
|
+
if (this.hiddenRef.current) {
|
|
155502
|
+
(0, _mathRendering.renderMath)(this.hiddenRef.current);
|
|
155503
|
+
}
|
|
155504
|
+
}
|
|
155492
155505
|
if (this.hiddenRef.current && !(0, _isEqual["default"])(choices, prevProps.choices)) {
|
|
155493
155506
|
var newWidth = this.hiddenRef.current.clientWidth;
|
|
155494
155507
|
if (newWidth !== this.state.menuWidth) {
|
|
@@ -155497,11 +155510,6 @@ const {isEqual: require$$20} = _dll_lodash;
|
|
|
155497
155510
|
});
|
|
155498
155511
|
}
|
|
155499
155512
|
}
|
|
155500
|
-
if (!(0, _isEqual["default"])(choices, prevProps.choices)) {
|
|
155501
|
-
this.elementRefs.forEach(function (ref) {
|
|
155502
|
-
if (ref) (0, _mathRendering.renderMath)(ref);
|
|
155503
|
-
});
|
|
155504
|
-
}
|
|
155505
155513
|
}
|
|
155506
155514
|
}, {
|
|
155507
155515
|
key: "getLabel",
|
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.
|
|
5
|
+
<title>@pie-element/explicit-constructed-response@7.6.0</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.
|
|
3
|
+
"version": "7.6.0",
|
|
4
4
|
"modules": [
|
|
5
5
|
{
|
|
6
6
|
"name": "@pie-lib/pie-toolbox-math-rendering-module",
|
|
7
|
-
"version": "5.
|
|
7
|
+
"version": "5.4.0"
|
|
8
8
|
},
|
|
9
9
|
{
|
|
10
10
|
"name": "@pie-lib/pie-toolbox-module",
|
|
11
|
-
"version": "8.
|
|
11
|
+
"version": "8.4.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_framework__mathquill, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@5.
|
|
2
|
-
import {_dll_pie_lib__pie_toolbox_correct_answer_toggle, _dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@8.
|
|
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.0/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.0/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) {
|
|
@@ -155391,10 +155391,15 @@ const {isEqual: require$$20} = _dll_lodash;
|
|
|
155391
155391
|
});
|
|
155392
155392
|
});
|
|
155393
155393
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "handleClose", function () {
|
|
155394
|
-
|
|
155394
|
+
var value = _this.props.value;
|
|
155395
|
+
_this.setState({
|
|
155395
155396
|
anchorEl: null,
|
|
155396
|
-
previewValue: null
|
|
155397
|
+
previewValue: null,
|
|
155398
|
+
highlightedOptionId: null
|
|
155397
155399
|
});
|
|
155400
|
+
if (!value && _this.previewRef.current) {
|
|
155401
|
+
_this.previewRef.current.innerHTML = '';
|
|
155402
|
+
}
|
|
155398
155403
|
});
|
|
155399
155404
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "handleHighlight", function (index) {
|
|
155400
155405
|
var highlightedOptionId = ("dropdown-option-").concat(_this.props.id, "-").concat(index);
|
|
@@ -155452,6 +155457,14 @@ const {isEqual: require$$20} = _dll_lodash;
|
|
|
155452
155457
|
key: "componentDidUpdate",
|
|
155453
155458
|
value: function componentDidUpdate(prevProps) {
|
|
155454
155459
|
var choices = this.props.choices;
|
|
155460
|
+
if (!(0, _isEqual["default"])(choices, prevProps.choices)) {
|
|
155461
|
+
this.elementRefs.forEach(function (ref) {
|
|
155462
|
+
if (ref) (0, _mathRendering.renderMath)(ref);
|
|
155463
|
+
});
|
|
155464
|
+
if (this.hiddenRef.current) {
|
|
155465
|
+
(0, _mathRendering.renderMath)(this.hiddenRef.current);
|
|
155466
|
+
}
|
|
155467
|
+
}
|
|
155455
155468
|
if (this.hiddenRef.current && !(0, _isEqual["default"])(choices, prevProps.choices)) {
|
|
155456
155469
|
var newWidth = this.hiddenRef.current.clientWidth;
|
|
155457
155470
|
if (newWidth !== this.state.menuWidth) {
|
|
@@ -155460,11 +155473,6 @@ const {isEqual: require$$20} = _dll_lodash;
|
|
|
155460
155473
|
});
|
|
155461
155474
|
}
|
|
155462
155475
|
}
|
|
155463
|
-
if (!(0, _isEqual["default"])(choices, prevProps.choices)) {
|
|
155464
|
-
this.elementRefs.forEach(function (ref) {
|
|
155465
|
-
if (ref) (0, _mathRendering.renderMath)(ref);
|
|
155466
|
-
});
|
|
155467
|
-
}
|
|
155468
155476
|
}
|
|
155469
155477
|
}, {
|
|
155470
155478
|
key: "getLabel",
|
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.1-next.2+55dc5255c",
|
|
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.1",
|
|
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": "55dc5255ca12c1e7c16b2acfc0ff0b02167a339a",
|
|
26
26
|
"main": "lib/index.js",
|
|
27
27
|
"module": "src/index.js",
|
|
28
28
|
"exports": {
|