@pie-element/ebsr 10.5.7-next.2 → 10.5.7-next.23

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.
@@ -10,7 +10,7 @@
10
10
  "@material-ui/core": "^3.9.2",
11
11
  "@pie-element/multiple-choice": "^9.16.0",
12
12
  "@pie-framework/pie-configure-events": "^1.2.0",
13
- "@pie-lib/pie-toolbox": "2.16.0",
13
+ "@pie-lib/pie-toolbox": "2.17.5",
14
14
  "lodash": "^4.17.15",
15
15
  "prop-types": "^15.6.2",
16
16
  "react": "^16.8.1",
@@ -7,7 +7,7 @@
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
8
8
  },
9
9
  "dependencies": {
10
- "@pie-lib/pie-toolbox": "2.16.0",
10
+ "@pie-lib/pie-toolbox": "2.17.5",
11
11
  "lodash": "^4.17.15"
12
12
  },
13
13
  "author": "",
@@ -1,6 +1,6 @@
1
- import {_dll_react, _dll_prop_types, _dll_lodash, _dll_react_dom} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.9.0/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.5/module/index.js";
2
2
  import MultipleChoiceConfigure from '@pie-element/multiple-choice/configure/lib';
3
- import {_dll_pie_lib__pie_toolbox_config_ui} from "../../../@pie-lib/pie-toolbox-module@6.2.0/module/index.js";
3
+ import {_dll_pie_lib__pie_toolbox_config_ui} from "../../../@pie-lib/pie-toolbox-module@7.0.3/module/index.js";
4
4
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
5
5
  function getDefaultExportFromCjs(x) {
6
6
  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_classnames, _dll_react_dom, _dll_lodash, _dll_debug, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.9.0/module/index.js";
2
- import {_dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_correct_answer_toggle} from "../../../@pie-lib/pie-toolbox-module@6.2.0/module/index.js";
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.5/module/index.js";
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.3/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;
@@ -12434,14 +12434,15 @@ class ChoiceInput extends React$4.Component {
12434
12434
  onChange: this.onToggleChoice,
12435
12435
  'aria-describedby': this.descId
12436
12436
  };
12437
+ const hasMathOrImage = typeof label === 'string' && (label.includes('<math') || label.includes('\\(') || label.includes('\\[') || label.includes('<img') || label.includes('data-latex') || label.includes('data-raw') || label.includes('<mjx-container'));
12437
12438
  const control = isSelectionButtonBelow ? React$4.createElement('span', {
12438
12439
  className: classes.belowSelectionComponent,
12439
12440
  __self: this,
12440
12441
  __source: {
12441
12442
  fileName: _jsxFileName$3,
12442
- lineNumber: 280
12443
+ lineNumber: 290
12443
12444
  }
12444
- }, screenReaderLabel, React$4.createElement(Tag, {
12445
+ }, hasMathOrImage && screenReaderLabel, React$4.createElement(Tag, {
12445
12446
  ...tagProps,
12446
12447
  style: {
12447
12448
  padding: 0
@@ -12449,14 +12450,14 @@ class ChoiceInput extends React$4.Component {
12449
12450
  __self: this,
12450
12451
  __source: {
12451
12452
  fileName: _jsxFileName$3,
12452
- lineNumber: 282
12453
+ lineNumber: 292
12453
12454
  }
12454
- }), displayKey ? `${displayKey}.` : '') : React$4.createElement(React$4.Fragment, null, screenReaderLabel, React$4.createElement(Tag, {
12455
+ }), displayKey ? `${displayKey}.` : '') : React$4.createElement(React$4.Fragment, null, hasMathOrImage && screenReaderLabel, React$4.createElement(Tag, {
12455
12456
  ...tagProps,
12456
12457
  __self: this,
12457
12458
  __source: {
12458
12459
  fileName: _jsxFileName$3,
12459
- lineNumber: 288
12460
+ lineNumber: 298
12460
12461
  }
12461
12462
  }));
12462
12463
  return React$4.createElement('div', {
@@ -12464,28 +12465,28 @@ class ChoiceInput extends React$4.Component {
12464
12465
  __self: this,
12465
12466
  __source: {
12466
12467
  fileName: _jsxFileName$3,
12467
- lineNumber: 293
12468
+ lineNumber: 303
12468
12469
  }
12469
12470
  }, React$4.createElement('div', {
12470
12471
  className: classes.row,
12471
12472
  __self: this,
12472
12473
  __source: {
12473
12474
  fileName: _jsxFileName$3,
12474
- lineNumber: 294
12475
+ lineNumber: 304
12475
12476
  }
12476
12477
  }, !hideTick && isEvaluateMode && React$4.createElement(FeedbackTick$1, {
12477
12478
  correctness: correctness,
12478
12479
  __self: this,
12479
12480
  __source: {
12480
12481
  fileName: _jsxFileName$3,
12481
- lineNumber: 295
12482
+ lineNumber: 305
12482
12483
  }
12483
12484
  }), React$4.createElement('div', {
12484
12485
  className: classNames$2(holderClassNames, 'checkbox-holder'),
12485
12486
  __self: this,
12486
12487
  __source: {
12487
12488
  fileName: _jsxFileName$3,
12488
- lineNumber: 296
12489
+ lineNumber: 306
12489
12490
  }
12490
12491
  }, React$4.createElement(StyledFormControlLabel, {
12491
12492
  label: choicelabel,
@@ -12496,7 +12497,7 @@ class ChoiceInput extends React$4.Component {
12496
12497
  __self: this,
12497
12498
  __source: {
12498
12499
  fileName: _jsxFileName$3,
12499
- lineNumber: 297
12500
+ lineNumber: 307
12500
12501
  }
12501
12502
  }))), rationale && React$4.createElement(PreviewPrompt$1, {
12502
12503
  className: "rationale",
@@ -12505,7 +12506,7 @@ class ChoiceInput extends React$4.Component {
12505
12506
  __self: this,
12506
12507
  __source: {
12507
12508
  fileName: _jsxFileName$3,
12508
- lineNumber: 306
12509
+ lineNumber: 316
12509
12510
  }
12510
12511
  }), React$4.createElement(Feedback, {
12511
12512
  feedback: feedback,
@@ -12513,7 +12514,7 @@ class ChoiceInput extends React$4.Component {
12513
12514
  __self: this,
12514
12515
  __source: {
12515
12516
  fileName: _jsxFileName$3,
12516
- lineNumber: 307
12517
+ lineNumber: 317
12517
12518
  }
12518
12519
  }));
12519
12520
  }
@@ -4,11 +4,11 @@
4
4
  "modules": [
5
5
  {
6
6
  "name": "@pie-lib/pie-toolbox-math-rendering-module",
7
- "version": "3.9.0"
7
+ "version": "4.1.5"
8
8
  },
9
9
  {
10
10
  "name": "@pie-lib/pie-toolbox-module",
11
- "version": "6.2.0"
11
+ "version": "7.0.3"
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_lodash, _dll_debug, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.9.0/module/index.js";
2
- import {_dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_correct_answer_toggle} from "../../../@pie-lib/pie-toolbox-module@6.2.0/module/index.js";
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.5/module/index.js";
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.3/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;
@@ -12397,14 +12397,15 @@ class ChoiceInput extends React$4.Component {
12397
12397
  onChange: this.onToggleChoice,
12398
12398
  'aria-describedby': this.descId
12399
12399
  };
12400
+ const hasMathOrImage = typeof label === 'string' && (label.includes('<math') || label.includes('\\(') || label.includes('\\[') || label.includes('<img') || label.includes('data-latex') || label.includes('data-raw') || label.includes('<mjx-container'));
12400
12401
  const control = isSelectionButtonBelow ? React$4.createElement('span', {
12401
12402
  className: classes.belowSelectionComponent,
12402
12403
  __self: this,
12403
12404
  __source: {
12404
12405
  fileName: _jsxFileName$3,
12405
- lineNumber: 280
12406
+ lineNumber: 290
12406
12407
  }
12407
- }, screenReaderLabel, React$4.createElement(Tag, {
12408
+ }, hasMathOrImage && screenReaderLabel, React$4.createElement(Tag, {
12408
12409
  ...tagProps,
12409
12410
  style: {
12410
12411
  padding: 0
@@ -12412,14 +12413,14 @@ class ChoiceInput extends React$4.Component {
12412
12413
  __self: this,
12413
12414
  __source: {
12414
12415
  fileName: _jsxFileName$3,
12415
- lineNumber: 282
12416
+ lineNumber: 292
12416
12417
  }
12417
- }), displayKey ? `${displayKey}.` : '') : React$4.createElement(React$4.Fragment, null, screenReaderLabel, React$4.createElement(Tag, {
12418
+ }), displayKey ? `${displayKey}.` : '') : React$4.createElement(React$4.Fragment, null, hasMathOrImage && screenReaderLabel, React$4.createElement(Tag, {
12418
12419
  ...tagProps,
12419
12420
  __self: this,
12420
12421
  __source: {
12421
12422
  fileName: _jsxFileName$3,
12422
- lineNumber: 288
12423
+ lineNumber: 298
12423
12424
  }
12424
12425
  }));
12425
12426
  return React$4.createElement('div', {
@@ -12427,28 +12428,28 @@ class ChoiceInput extends React$4.Component {
12427
12428
  __self: this,
12428
12429
  __source: {
12429
12430
  fileName: _jsxFileName$3,
12430
- lineNumber: 293
12431
+ lineNumber: 303
12431
12432
  }
12432
12433
  }, React$4.createElement('div', {
12433
12434
  className: classes.row,
12434
12435
  __self: this,
12435
12436
  __source: {
12436
12437
  fileName: _jsxFileName$3,
12437
- lineNumber: 294
12438
+ lineNumber: 304
12438
12439
  }
12439
12440
  }, !hideTick && isEvaluateMode && React$4.createElement(FeedbackTick$1, {
12440
12441
  correctness: correctness,
12441
12442
  __self: this,
12442
12443
  __source: {
12443
12444
  fileName: _jsxFileName$3,
12444
- lineNumber: 295
12445
+ lineNumber: 305
12445
12446
  }
12446
12447
  }), React$4.createElement('div', {
12447
12448
  className: classNames$2(holderClassNames, 'checkbox-holder'),
12448
12449
  __self: this,
12449
12450
  __source: {
12450
12451
  fileName: _jsxFileName$3,
12451
- lineNumber: 296
12452
+ lineNumber: 306
12452
12453
  }
12453
12454
  }, React$4.createElement(StyledFormControlLabel, {
12454
12455
  label: choicelabel,
@@ -12459,7 +12460,7 @@ class ChoiceInput extends React$4.Component {
12459
12460
  __self: this,
12460
12461
  __source: {
12461
12462
  fileName: _jsxFileName$3,
12462
- lineNumber: 297
12463
+ lineNumber: 307
12463
12464
  }
12464
12465
  }))), rationale && React$4.createElement(PreviewPrompt$1, {
12465
12466
  className: "rationale",
@@ -12468,7 +12469,7 @@ class ChoiceInput extends React$4.Component {
12468
12469
  __self: this,
12469
12470
  __source: {
12470
12471
  fileName: _jsxFileName$3,
12471
- lineNumber: 306
12472
+ lineNumber: 316
12472
12473
  }
12473
12474
  }), React$4.createElement(Feedback, {
12474
12475
  feedback: feedback,
@@ -12476,7 +12477,7 @@ class ChoiceInput extends React$4.Component {
12476
12477
  __self: this,
12477
12478
  __source: {
12478
12479
  fileName: _jsxFileName$3,
12479
- lineNumber: 307
12480
+ lineNumber: 317
12480
12481
  }
12481
12482
  }));
12482
12483
  }
package/package.json CHANGED
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "name": "@pie-element/ebsr",
3
- "version": "10.5.7-next.2+21ecb8bdd",
3
+ "version": "10.5.7-next.23+a4f149acd",
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.1-next.2+21ecb8bdd",
10
+ "@pie-element/multiple-choice": "^9.16.1-next.23+a4f149acd",
11
11
  "@pie-framework/pie-player-events": "^0.1.0",
12
- "@pie-lib/pie-toolbox": "2.16.0",
12
+ "@pie-lib/pie-toolbox": "2.17.5",
13
13
  "classnames": "^2.2.5",
14
14
  "debug": "^4.1.1",
15
15
  "lodash": "^4.17.11"
16
16
  },
17
17
  "author": "pie framework developers",
18
18
  "license": "ISC",
19
- "gitHead": "21ecb8bdd2ac0d202c57aeed447dda1541723cda",
19
+ "gitHead": "a4f149acd5cd9b387b8b2bd51e348be1ea7c1201",
20
20
  "scripts": {
21
21
  "postpublish": "../../scripts/postpublish"
22
22
  },