@pie-element/ebsr 10.1.2 → 10.1.4-next.0

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,14 @@
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
+ ## [10.1.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/ebsr@10.1.2...@pie-element/ebsr@10.1.3) (2024-10-16)
7
+
8
+ **Note:** Version bump only for package @pie-element/ebsr
9
+
10
+
11
+
12
+
13
+
6
14
  ## [10.1.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/ebsr@10.1.1...@pie-element/ebsr@10.1.2) (2024-10-15)
7
15
 
8
16
 
@@ -3,6 +3,14 @@
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
+ ## [10.0.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/ebsr-configure@10.0.5...@pie-element/ebsr-configure@10.0.6) (2024-10-16)
7
+
8
+ **Note:** Version bump only for package @pie-element/ebsr-configure
9
+
10
+
11
+
12
+
13
+
6
14
  ## [10.0.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/ebsr-configure@10.0.4...@pie-element/ebsr-configure@10.0.5) (2024-10-15)
7
15
 
8
16
 
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@pie-element/ebsr-configure",
3
3
  "private": true,
4
- "version": "10.0.5",
4
+ "version": "10.0.6",
5
5
  "description": "",
6
6
  "main": "lib/index.js",
7
7
  "module": "src/index.js",
8
8
  "author": "",
9
9
  "dependencies": {
10
10
  "@material-ui/core": "^3.9.2",
11
- "@pie-element/multiple-choice": "^9.2.2",
11
+ "@pie-element/multiple-choice": "^9.2.3",
12
12
  "@pie-framework/pie-configure-events": "^1.2.0",
13
13
  "@pie-lib/pie-toolbox": "2.0.13",
14
14
  "lodash": "^4.17.15",
package/module/element.js CHANGED
@@ -9428,7 +9428,9 @@ class MultipleChoice$1 extends React$2.Component {
9428
9428
  this.setState({
9429
9429
  showCorrect: !this.state.showCorrect
9430
9430
  }, () => {
9431
- this.props.onShowCorrectToggle();
9431
+ if (this.props.onShowCorrectToggle) {
9432
+ this.props.onShowCorrectToggle();
9433
+ }
9432
9434
  });
9433
9435
  }
9434
9436
  };
@@ -9438,14 +9440,18 @@ class MultipleChoice$1 extends React$2.Component {
9438
9440
  this.setState({
9439
9441
  showCorrect: false
9440
9442
  }, () => {
9441
- this.props.onShowCorrectToggle();
9443
+ if (this.props.onShowCorrectToggle) {
9444
+ this.props.onShowCorrectToggle();
9445
+ }
9442
9446
  });
9443
9447
  }
9444
9448
  if (nextProps.alwaysShowCorrect && this.state.showCorrect !== true) {
9445
9449
  this.setState({
9446
9450
  showCorrect: true
9447
9451
  }, () => {
9448
- this.props.onShowCorrectToggle();
9452
+ if (this.props.onShowCorrectToggle) {
9453
+ this.props.onShowCorrectToggle();
9454
+ }
9449
9455
  });
9450
9456
  }
9451
9457
  }
@@ -9499,14 +9505,14 @@ class MultipleChoice$1 extends React$2.Component {
9499
9505
  __self: this,
9500
9506
  __source: {
9501
9507
  fileName: _jsxFileName$1,
9502
- lineNumber: 202
9508
+ lineNumber: 208
9503
9509
  }
9504
9510
  }, "Multiple Choice Question") : React$2.createElement('h2', {
9505
9511
  className: classes.srOnly,
9506
9512
  __self: this,
9507
9513
  __source: {
9508
9514
  fileName: _jsxFileName$1,
9509
- lineNumber: 204
9515
+ lineNumber: 210
9510
9516
  }
9511
9517
  }, "Multiple Select Question");
9512
9518
  }
@@ -9526,7 +9532,7 @@ class MultipleChoice$1 extends React$2.Component {
9526
9532
  __self: this,
9527
9533
  __source: {
9528
9534
  fileName: _jsxFileName$1,
9529
- lineNumber: 232
9535
+ lineNumber: 238
9530
9536
  }
9531
9537
  });
9532
9538
  return React$2.createElement('div', {
@@ -9534,21 +9540,21 @@ class MultipleChoice$1 extends React$2.Component {
9534
9540
  __self: this,
9535
9541
  __source: {
9536
9542
  fileName: _jsxFileName$1,
9537
- lineNumber: 241
9543
+ lineNumber: 247
9538
9544
  }
9539
9545
  }, partLabel && React$2.createElement('h3', {
9540
9546
  className: classes.partLabel,
9541
9547
  __self: this,
9542
9548
  __source: {
9543
9549
  fileName: _jsxFileName$1,
9544
- lineNumber: 242
9550
+ lineNumber: 248
9545
9551
  }
9546
9552
  }, partLabel), this.renderHeading(), teacherInstructions && React$2.createElement('div', {
9547
9553
  className: classes.teacherInstructions,
9548
9554
  __self: this,
9549
9555
  __source: {
9550
9556
  fileName: _jsxFileName$1,
9551
- lineNumber: 247
9557
+ lineNumber: 253
9552
9558
  }
9553
9559
  }, !animationsDisabled ? React$2.createElement(Collapsible, {
9554
9560
  labels: {
@@ -9558,14 +9564,14 @@ class MultipleChoice$1 extends React$2.Component {
9558
9564
  __self: this,
9559
9565
  __source: {
9560
9566
  fileName: _jsxFileName$1,
9561
- lineNumber: 249
9567
+ lineNumber: 255
9562
9568
  }
9563
9569
  }, teacherInstructionsDiv) : teacherInstructionsDiv), React$2.createElement('fieldset', {
9564
9570
  className: classes.fieldset,
9565
9571
  __self: this,
9566
9572
  __source: {
9567
9573
  fileName: _jsxFileName$1,
9568
- lineNumber: 263
9574
+ lineNumber: 269
9569
9575
  }
9570
9576
  }, React$2.createElement(PreviewPrompt, {
9571
9577
  className: "prompt",
@@ -9575,7 +9581,7 @@ class MultipleChoice$1 extends React$2.Component {
9575
9581
  __self: this,
9576
9582
  __source: {
9577
9583
  fileName: _jsxFileName$1,
9578
- lineNumber: 264
9584
+ lineNumber: 270
9579
9585
  }
9580
9586
  }), !alwaysShowCorrect && React$2.createElement(CorrectAnswerToggle, {
9581
9587
  show: showCorrectAnswerToggle,
@@ -9585,7 +9591,7 @@ class MultipleChoice$1 extends React$2.Component {
9585
9591
  __self: this,
9586
9592
  __source: {
9587
9593
  fileName: _jsxFileName$1,
9588
- lineNumber: 267
9594
+ lineNumber: 273
9589
9595
  }
9590
9596
  }), React$2.createElement('div', {
9591
9597
  className: classNames({
@@ -9596,7 +9602,7 @@ class MultipleChoice$1 extends React$2.Component {
9596
9602
  __self: this,
9597
9603
  __source: {
9598
9604
  fileName: _jsxFileName$1,
9599
- lineNumber: 275
9605
+ lineNumber: 281
9600
9606
  }
9601
9607
  }, choices.map((choice, index) => React$2.createElement(StyledChoice, {
9602
9608
  choicesLayout: this.props.choicesLayout,
@@ -9618,7 +9624,7 @@ class MultipleChoice$1 extends React$2.Component {
9618
9624
  __self: this,
9619
9625
  __source: {
9620
9626
  fileName: _jsxFileName$1,
9621
- lineNumber: 283
9627
+ lineNumber: 289
9622
9628
  }
9623
9629
  })))));
9624
9630
  }
package/module/index.html CHANGED
@@ -2,7 +2,7 @@
2
2
  <!doctype html>
3
3
  <html>
4
4
  <head>
5
- <title>@pie-element/ebsr@10.1.1</title>
5
+ <title>@pie-element/ebsr@10.1.3</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>
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-element/ebsr",
3
- "version": "10.1.1",
3
+ "version": "10.1.3",
4
4
  "modules": [
5
5
  {
6
6
  "name": "@pie-lib/pie-toolbox-math-rendering-module",
package/module/print.html CHANGED
@@ -2,7 +2,7 @@
2
2
  <!doctype html>
3
3
  <html>
4
4
  <head>
5
- <title>@pie-element/ebsr@10.1.1</title>
5
+ <title>@pie-element/ebsr@10.1.3</title>
6
6
  <link
7
7
  href="https://fonts.googleapis.com/css?family=Roboto&display=swap"
8
8
  rel="stylesheet"
package/module/print.js CHANGED
@@ -9391,7 +9391,9 @@ class MultipleChoice$1 extends React$2.Component {
9391
9391
  this.setState({
9392
9392
  showCorrect: !this.state.showCorrect
9393
9393
  }, () => {
9394
- this.props.onShowCorrectToggle();
9394
+ if (this.props.onShowCorrectToggle) {
9395
+ this.props.onShowCorrectToggle();
9396
+ }
9395
9397
  });
9396
9398
  }
9397
9399
  };
@@ -9401,14 +9403,18 @@ class MultipleChoice$1 extends React$2.Component {
9401
9403
  this.setState({
9402
9404
  showCorrect: false
9403
9405
  }, () => {
9404
- this.props.onShowCorrectToggle();
9406
+ if (this.props.onShowCorrectToggle) {
9407
+ this.props.onShowCorrectToggle();
9408
+ }
9405
9409
  });
9406
9410
  }
9407
9411
  if (nextProps.alwaysShowCorrect && this.state.showCorrect !== true) {
9408
9412
  this.setState({
9409
9413
  showCorrect: true
9410
9414
  }, () => {
9411
- this.props.onShowCorrectToggle();
9415
+ if (this.props.onShowCorrectToggle) {
9416
+ this.props.onShowCorrectToggle();
9417
+ }
9412
9418
  });
9413
9419
  }
9414
9420
  }
@@ -9462,14 +9468,14 @@ class MultipleChoice$1 extends React$2.Component {
9462
9468
  __self: this,
9463
9469
  __source: {
9464
9470
  fileName: _jsxFileName$1,
9465
- lineNumber: 202
9471
+ lineNumber: 208
9466
9472
  }
9467
9473
  }, "Multiple Choice Question") : React$2.createElement('h2', {
9468
9474
  className: classes.srOnly,
9469
9475
  __self: this,
9470
9476
  __source: {
9471
9477
  fileName: _jsxFileName$1,
9472
- lineNumber: 204
9478
+ lineNumber: 210
9473
9479
  }
9474
9480
  }, "Multiple Select Question");
9475
9481
  }
@@ -9489,7 +9495,7 @@ class MultipleChoice$1 extends React$2.Component {
9489
9495
  __self: this,
9490
9496
  __source: {
9491
9497
  fileName: _jsxFileName$1,
9492
- lineNumber: 232
9498
+ lineNumber: 238
9493
9499
  }
9494
9500
  });
9495
9501
  return React$2.createElement('div', {
@@ -9497,21 +9503,21 @@ class MultipleChoice$1 extends React$2.Component {
9497
9503
  __self: this,
9498
9504
  __source: {
9499
9505
  fileName: _jsxFileName$1,
9500
- lineNumber: 241
9506
+ lineNumber: 247
9501
9507
  }
9502
9508
  }, partLabel && React$2.createElement('h3', {
9503
9509
  className: classes.partLabel,
9504
9510
  __self: this,
9505
9511
  __source: {
9506
9512
  fileName: _jsxFileName$1,
9507
- lineNumber: 242
9513
+ lineNumber: 248
9508
9514
  }
9509
9515
  }, partLabel), this.renderHeading(), teacherInstructions && React$2.createElement('div', {
9510
9516
  className: classes.teacherInstructions,
9511
9517
  __self: this,
9512
9518
  __source: {
9513
9519
  fileName: _jsxFileName$1,
9514
- lineNumber: 247
9520
+ lineNumber: 253
9515
9521
  }
9516
9522
  }, !animationsDisabled ? React$2.createElement(Collapsible, {
9517
9523
  labels: {
@@ -9521,14 +9527,14 @@ class MultipleChoice$1 extends React$2.Component {
9521
9527
  __self: this,
9522
9528
  __source: {
9523
9529
  fileName: _jsxFileName$1,
9524
- lineNumber: 249
9530
+ lineNumber: 255
9525
9531
  }
9526
9532
  }, teacherInstructionsDiv) : teacherInstructionsDiv), React$2.createElement('fieldset', {
9527
9533
  className: classes.fieldset,
9528
9534
  __self: this,
9529
9535
  __source: {
9530
9536
  fileName: _jsxFileName$1,
9531
- lineNumber: 263
9537
+ lineNumber: 269
9532
9538
  }
9533
9539
  }, React$2.createElement(PreviewPrompt, {
9534
9540
  className: "prompt",
@@ -9538,7 +9544,7 @@ class MultipleChoice$1 extends React$2.Component {
9538
9544
  __self: this,
9539
9545
  __source: {
9540
9546
  fileName: _jsxFileName$1,
9541
- lineNumber: 264
9547
+ lineNumber: 270
9542
9548
  }
9543
9549
  }), !alwaysShowCorrect && React$2.createElement(CorrectAnswerToggle, {
9544
9550
  show: showCorrectAnswerToggle,
@@ -9548,7 +9554,7 @@ class MultipleChoice$1 extends React$2.Component {
9548
9554
  __self: this,
9549
9555
  __source: {
9550
9556
  fileName: _jsxFileName$1,
9551
- lineNumber: 267
9557
+ lineNumber: 273
9552
9558
  }
9553
9559
  }), React$2.createElement('div', {
9554
9560
  className: classNames({
@@ -9559,7 +9565,7 @@ class MultipleChoice$1 extends React$2.Component {
9559
9565
  __self: this,
9560
9566
  __source: {
9561
9567
  fileName: _jsxFileName$1,
9562
- lineNumber: 275
9568
+ lineNumber: 281
9563
9569
  }
9564
9570
  }, choices.map((choice, index) => React$2.createElement(StyledChoice, {
9565
9571
  choicesLayout: this.props.choicesLayout,
@@ -9581,7 +9587,7 @@ class MultipleChoice$1 extends React$2.Component {
9581
9587
  __self: this,
9582
9588
  __source: {
9583
9589
  fileName: _jsxFileName$1,
9584
- lineNumber: 283
9590
+ lineNumber: 289
9585
9591
  }
9586
9592
  })))));
9587
9593
  }
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@pie-element/ebsr",
3
- "version": "10.1.2",
3
+ "version": "10.1.4-next.0+fd40c3bf7",
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.2.2",
10
+ "@pie-element/multiple-choice": "^9.2.4-next.0+fd40c3bf7",
11
11
  "@pie-framework/pie-player-events": "^0.1.0",
12
12
  "@pie-lib/pie-toolbox": "2.0.13",
13
13
  "classnames": "^2.2.5",
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "author": "pie framework developers",
18
18
  "license": "ISC",
19
- "gitHead": "55af78558b81f2cd421eaac78eb3e652e3523697",
19
+ "gitHead": "fd40c3bf7d958748aff1fa0444c6625beb5f922e",
20
20
  "scripts": {
21
21
  "postpublish": "../../scripts/postpublish"
22
22
  },