@pie-element/ebsr 10.5.8-next.12 → 10.5.8-next.16

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.
@@ -1,4 +1,4 @@
1
- import {_dll_react, _dll_prop_types, _dll_lodash, _dll_react_dom} from "../../../@pie-lib/pie-toolbox-math-rendering-module@4.1.6/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_lodash, _dll_react_dom} from "../../../@pie-lib/pie-toolbox-math-rendering-module@4.1.7/module/index.js";
2
2
  import MultipleChoiceConfigure from '@pie-element/multiple-choice/configure/lib';
3
3
  import {_dll_pie_lib__pie_toolbox_config_ui} from "../../../@pie-lib/pie-toolbox-module@7.0.4/module/index.js";
4
4
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
package/module/element.js CHANGED
@@ -1,4 +1,4 @@
1
- import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_lodash, _dll_debug, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@4.1.6/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@4.1.7/module/index.js";
2
2
  import {_dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_correct_answer_toggle} from "../../../@pie-lib/pie-toolbox-module@7.0.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) {
@@ -13085,16 +13085,13 @@ const Root = props => React$1.createElement(styles$b.MuiThemeProvider, {
13085
13085
  lineNumber: 59
13086
13086
  }
13087
13087
  }));
13088
- const {concat: concat} = _dll_lodash;
13089
- const {uniq: uniq} = _dll_lodash;
13090
- const {without: without} = _dll_lodash;
13091
13088
  function updateSessionValue(session, choiceMode, data) {
13092
13089
  session.value = session.value || [];
13093
13090
  if (choiceMode === 'checkbox') {
13094
13091
  if (data.selected) {
13095
- session.value = uniq(concat(session.value, [data.value]));
13092
+ session.value = Array.from(new Set([...session.value, data.value]));
13096
13093
  } else {
13097
- session.value = without(session.value, data.value);
13094
+ session.value = session.value.filter(v => v !== data.value);
13098
13095
  }
13099
13096
  }
13100
13097
  if (choiceMode === 'radio') {
@@ -4,7 +4,7 @@
4
4
  "modules": [
5
5
  {
6
6
  "name": "@pie-lib/pie-toolbox-math-rendering-module",
7
- "version": "4.1.6"
7
+ "version": "4.1.7"
8
8
  },
9
9
  {
10
10
  "name": "@pie-lib/pie-toolbox-module",
package/module/print.js CHANGED
@@ -1,4 +1,4 @@
1
- import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_lodash, _dll_debug, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@4.1.6/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@4.1.7/module/index.js";
2
2
  import {_dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_correct_answer_toggle} from "../../../@pie-lib/pie-toolbox-module@7.0.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) {
@@ -13085,16 +13085,13 @@ class SessionChangedEvent extends CustomEvent {
13085
13085
  }
13086
13086
  SessionChangedEvent.TYPE = 'session-changed';
13087
13087
  var SessionChangedEvent_1 = lib.SessionChangedEvent = SessionChangedEvent;
13088
- const {concat: concat} = _dll_lodash;
13089
- const {uniq: uniq} = _dll_lodash;
13090
- const {without: without} = _dll_lodash;
13091
13088
  function updateSessionValue(session, choiceMode, data) {
13092
13089
  session.value = session.value || [];
13093
13090
  if (choiceMode === 'checkbox') {
13094
13091
  if (data.selected) {
13095
- session.value = uniq(concat(session.value, [data.value]));
13092
+ session.value = Array.from(new Set([...session.value, data.value]));
13096
13093
  } else {
13097
- session.value = without(session.value, data.value);
13094
+ session.value = session.value.filter(v => v !== data.value);
13098
13095
  }
13099
13096
  }
13100
13097
  if (choiceMode === 'radio') {
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@pie-element/ebsr",
3
- "version": "10.5.8-next.12+3a2f4abdc",
3
+ "version": "10.5.8-next.16+1be136c5c",
4
4
  "description": "",
5
5
  "repository": "pie-framework/pie-elements",
6
6
  "publishConfig": {
7
7
  "access": "public"
8
8
  },
9
9
  "dependencies": {
10
- "@pie-element/multiple-choice": "^9.16.2-next.12+3a2f4abdc",
10
+ "@pie-element/multiple-choice": "^9.16.2-next.16+1be136c5c",
11
11
  "@pie-framework/pie-player-events": "^0.1.0",
12
12
  "@pie-lib/pie-toolbox": "2.17.6",
13
13
  "classnames": "^2.2.5",
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "author": "pie framework developers",
18
18
  "license": "ISC",
19
- "gitHead": "3a2f4abdc1bf44b59c6d911da42f20dcffa25a8f",
19
+ "gitHead": "1be136c5c419b152b075091675790a8ab677e180",
20
20
  "scripts": {
21
21
  "postpublish": "../../scripts/postpublish"
22
22
  },