@pie-element/math-templated 3.4.5-next.8 → 3.4.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 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
+ ## [3.4.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-templated@3.4.4...@pie-element/math-templated@3.4.5) (2025-02-27)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * update pie-lib/pie-toolbox PD-4820, PD-4766 ([7ccdb40](https://github.com/pie-framework/pie-elements/commit/7ccdb405614f1c310efe530d97c46fe324c0a669))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [3.4.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-templated@3.4.3...@pie-element/math-templated@3.4.4) (2025-02-19)
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
+ ## [2.3.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-templated-configure@2.3.4...@pie-element/math-templated-configure@2.3.5) (2025-02-27)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * update pie-lib/pie-toolbox PD-4820, PD-4766 ([7ccdb40](https://github.com/pie-framework/pie-elements/commit/7ccdb405614f1c310efe530d97c46fe324c0a669))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [2.3.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-templated-configure@2.3.3...@pie-element/math-templated-configure@2.3.4) (2025-02-19)
7
18
 
8
19
 
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@pie-element/math-templated-configure",
3
3
  "private": true,
4
- "version": "2.3.4",
4
+ "version": "2.3.5",
5
5
  "description": "",
6
6
  "main": "lib/index.js",
7
7
  "module": "src/index.js",
8
8
  "dependencies": {
9
9
  "@material-ui/core": "^3.9.2",
10
10
  "@pie-framework/pie-configure-events": "^1.3.0",
11
- "@pie-lib/pie-toolbox": "2.9.3",
11
+ "@pie-lib/pie-toolbox": "2.9.5",
12
12
  "debug": "^3.1.0",
13
13
  "lodash": "^4.17.15",
14
14
  "prop-types": "^15.6.2",
@@ -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
+ ## [3.1.16](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-templated-controller@3.1.15...@pie-element/math-templated-controller@3.1.16) (2025-02-27)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * update pie-lib/pie-toolbox PD-4820, PD-4766 ([7ccdb40](https://github.com/pie-framework/pie-elements/commit/7ccdb405614f1c310efe530d97c46fe324c0a669))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [3.1.15](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-templated-controller@3.1.14...@pie-element/math-templated-controller@3.1.15) (2025-02-19)
7
18
 
8
19
 
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@pie-element/math-templated-controller",
3
3
  "private": true,
4
- "version": "3.1.15",
4
+ "version": "3.1.16",
5
5
  "description": "",
6
6
  "main": "lib/index.js",
7
7
  "module": "src/index.js",
8
8
  "dependencies": {
9
9
  "@pie-framework/math-validation": "^1.2.3",
10
- "@pie-lib/pie-toolbox": "2.9.3",
10
+ "@pie-lib/pie-toolbox": "2.9.5",
11
11
  "debug": "^3.1.0",
12
12
  "lodash": "^4.17.15"
13
13
  },
@@ -1,5 +1,5 @@
1
- import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.3.3/module/index.js";
2
- import {_dll_pie_lib__pie_toolbox_config_ui, _dll_pie_lib__pie_toolbox_math_toolbar, _dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_editable_html} from "../../../@pie-lib/pie-toolbox-module@5.10.2/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.3.4/module/index.js";
2
+ import {_dll_pie_lib__pie_toolbox_config_ui, _dll_pie_lib__pie_toolbox_math_toolbar, _dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_editable_html} from "../../../@pie-lib/pie-toolbox-module@5.10.4/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;
@@ -22659,16 +22659,20 @@ persistence.compact = compact;
22659
22659
 
22660
22660
  var getShuffledChoices = function getShuffledChoices(choices, session, updateSession, choiceKey) {
22661
22661
  return new Promise(function (resolve) {
22662
+ var _session$data;
22663
+
22662
22664
  log('updateSession type: ', (0, _typeof2["default"])(updateSession));
22663
22665
  log('session: ', session);
22664
- var currentShuffled = compact((session || {}).shuffledValues);
22666
+ var currentShuffled = compact((session === null || session === void 0 ? void 0 : (_session$data = session.data) === null || _session$data === void 0 ? void 0 : _session$data.shuffledValues) || (session === null || session === void 0 ? void 0 : session.shuffledValues) || []);
22665
22667
 
22666
22668
  if (!session) {
22667
22669
  // eslint-disable-next-line quotes
22668
22670
  warn("unable to save shuffled choices because there's no session.");
22669
22671
  resolve(undefined);
22670
22672
  } else if (!(0, _isEmpty["default"])(currentShuffled)) {
22671
- debug('use shuffledValues to sort the choices...', session.shuffledValues);
22673
+ var _session$data2;
22674
+
22675
+ debug('use shuffledValues to sort the choices...', (_session$data2 = session.data) === null || _session$data2 === void 0 ? void 0 : _session$data2.shuffledValues);
22672
22676
  resolve(compact(currentShuffled.map(function (v) {
22673
22677
  return choices.find(function (c) {
22674
22678
  return c[choiceKey] === v;
package/module/element.js CHANGED
@@ -1,5 +1,5 @@
1
- import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.3.3/module/index.js";
2
- import {_dll_pie_lib__pie_toolbox_math_input, _dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_correct_answer_toggle} from "../../../@pie-lib/pie-toolbox-module@5.10.2/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.3.4/module/index.js";
2
+ import {_dll_pie_lib__pie_toolbox_math_input, _dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_correct_answer_toggle} from "../../../@pie-lib/pie-toolbox-module@5.10.4/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) {
@@ -145258,7 +145258,7 @@ const require$$4$1d = _dll_react;
145258
145258
  },
145259
145259
  ica: {
145260
145260
  backgroundColor: _renderUi.color.background(),
145261
- border: ("1px solid ").concat(_renderUi.color.primary()),
145261
+ border: ("1px solid ").concat(_renderUi.color.borderDark()),
145262
145262
  display: 'flex',
145263
145263
  alignItems: 'center',
145264
145264
  justifyContent: 'center',
@@ -4,11 +4,11 @@
4
4
  "modules": [
5
5
  {
6
6
  "name": "@pie-lib/pie-toolbox-math-rendering-module",
7
- "version": "3.3.3"
7
+ "version": "3.3.4"
8
8
  },
9
9
  {
10
10
  "name": "@pie-lib/pie-toolbox-module",
11
- "version": "5.10.2"
11
+ "version": "5.10.4"
12
12
  }
13
13
  ]
14
14
  }
package/module/print.js CHANGED
@@ -1,5 +1,5 @@
1
- import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.3.3/module/index.js";
2
- import {_dll_pie_lib__pie_toolbox_math_input, _dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_correct_answer_toggle} from "../../../@pie-lib/pie-toolbox-module@5.10.2/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.3.4/module/index.js";
2
+ import {_dll_pie_lib__pie_toolbox_math_input, _dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_correct_answer_toggle} from "../../../@pie-lib/pie-toolbox-module@5.10.4/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) {
@@ -145221,7 +145221,7 @@ const require$$4$1d = _dll_react;
145221
145221
  },
145222
145222
  ica: {
145223
145223
  backgroundColor: _renderUi.color.background(),
145224
- border: ("1px solid ").concat(_renderUi.color.primary()),
145224
+ border: ("1px solid ").concat(_renderUi.color.borderDark()),
145225
145225
  display: 'flex',
145226
145226
  alignItems: 'center',
145227
145227
  justifyContent: 'center',
package/package.json CHANGED
@@ -4,19 +4,19 @@
4
4
  "access": "public"
5
5
  },
6
6
  "repository": "pie-framework/pie-elements",
7
- "version": "3.4.5-next.8+09d25588c",
7
+ "version": "3.4.5",
8
8
  "description": "",
9
9
  "dependencies": {
10
10
  "@material-ui/core": "^3.9.2",
11
11
  "@pie-framework/pie-player-events": "^0.1.0",
12
- "@pie-lib/pie-toolbox": "2.9.3",
12
+ "@pie-lib/pie-toolbox": "2.9.5",
13
13
  "prop-types": "^15.6.1",
14
14
  "react": "^16.8.1",
15
15
  "react-dom": "^16.8.1"
16
16
  },
17
17
  "author": "",
18
18
  "license": "ISC",
19
- "gitHead": "09d25588c6db264c5e446dd24fbd0db9cd459a36",
19
+ "gitHead": "a765ec82fb15f75b58c3f626c7728470813c89bc",
20
20
  "scripts": {
21
21
  "postpublish": "../../scripts/postpublish"
22
22
  },