@pie-element/explicit-constructed-response 7.6.1-next.0 → 7.6.1

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 CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [7.6.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response@7.6.0...@pie-element/explicit-constructed-response@7.6.1) (2025-07-22)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * update pie-toolbox PD-4885 ([a6d439e](https://github.com/pie-framework/pie-elements/commit/a6d439e49a0082f3d5e8bf46cc73c69d1d0ae311))
12
+
13
+
14
+
15
+
16
+
6
17
  # [7.6.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response@7.5.10...@pie-element/explicit-constructed-response@7.6.0) (2025-07-18)
7
18
 
8
19
 
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [7.5.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@7.5.0...@pie-element/explicit-constructed-response-configure@7.5.1) (2025-07-22)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * update pie-toolbox PD-4885 ([a6d439e](https://github.com/pie-framework/pie-elements/commit/a6d439e49a0082f3d5e8bf46cc73c69d1d0ae311))
12
+
13
+
14
+
15
+
16
+
6
17
  # [7.5.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-configure@7.4.10...@pie-element/explicit-constructed-response-configure@7.5.0) (2025-07-18)
7
18
 
8
19
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-element/explicit-constructed-response-configure",
3
- "version": "7.5.0",
3
+ "version": "7.5.1",
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": "2.22.0",
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",
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [5.3.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-controller@5.3.0...@pie-element/explicit-constructed-response-controller@5.3.1) (2025-07-22)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * update pie-toolbox PD-4885 ([a6d439e](https://github.com/pie-framework/pie-elements/commit/a6d439e49a0082f3d5e8bf46cc73c69d1d0ae311))
12
+
13
+
14
+
15
+
16
+
6
17
  # [5.3.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/explicit-constructed-response-controller@5.2.10...@pie-element/explicit-constructed-response-controller@5.3.0) (2025-07-18)
7
18
 
8
19
 
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@pie-element/explicit-constructed-response-controller",
3
3
  "private": true,
4
- "version": "5.3.0",
4
+ "version": "5.3.1",
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": "2.22.0",
11
+ "@pie-lib/pie-toolbox": "2.22.1",
12
12
  "debug": "^3.1.0",
13
13
  "he": "^1.2.0",
14
14
  "lodash": "^4.17.15",
@@ -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.3.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.3.0/module/index.js";
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.3.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.3.0/module/index.js";
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
- return _this.setState({
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",
@@ -4,11 +4,11 @@
4
4
  "modules": [
5
5
  {
6
6
  "name": "@pie-lib/pie-toolbox-math-rendering-module",
7
- "version": "5.3.0"
7
+ "version": "5.4.0"
8
8
  },
9
9
  {
10
10
  "name": "@pie-lib/pie-toolbox-module",
11
- "version": "8.3.0"
11
+ "version": "8.4.0"
12
12
  }
13
13
  ]
14
14
  }
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.3.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.3.0/module/index.js";
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
- return _this.setState({
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.1-next.0+0ec7c6b8d",
7
+ "version": "7.6.1",
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.0",
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": "0ec7c6b8d1c811b20dbf32671d032f1e5bee1fb6",
25
+ "gitHead": "c48e5fb0f6e2f1509b525936981909c38cdc6f4e",
26
26
  "main": "lib/index.js",
27
27
  "module": "src/index.js",
28
28
  "exports": {