@pie-element/ebsr 10.6.9 → 10.6.10

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.6.10](https://github.com/pie-framework/pie-elements/compare/@pie-element/ebsr@10.6.9...@pie-element/ebsr@10.6.10) (2025-09-18)
7
+
8
+ **Note:** Version bump only for package @pie-element/ebsr
9
+
10
+
11
+
12
+
13
+
6
14
  ## [10.6.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/ebsr@10.6.8...@pie-element/ebsr@10.6.9) (2025-09-11)
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.5.10](https://github.com/pie-framework/pie-elements/compare/@pie-element/ebsr-configure@10.5.9...@pie-element/ebsr-configure@10.5.10) (2025-09-18)
7
+
8
+ **Note:** Version bump only for package @pie-element/ebsr-configure
9
+
10
+
11
+
12
+
13
+
6
14
  ## [10.5.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/ebsr-configure@10.5.8...@pie-element/ebsr-configure@10.5.9) (2025-09-11)
7
15
 
8
16
 
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@pie-element/ebsr-configure",
3
3
  "private": true,
4
- "version": "10.5.9",
4
+ "version": "10.5.10",
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.19.3",
11
+ "@pie-element/multiple-choice": "^9.19.4",
12
12
  "@pie-framework/pie-configure-events": "^1.2.0",
13
13
  "@pie-lib/pie-toolbox": "2.25.2",
14
14
  "lodash": "^4.17.15",
package/module/element.js CHANGED
@@ -12896,7 +12896,9 @@ class MultipleChoice$1 extends React$2.Component {
12896
12896
  };
12897
12897
  }
12898
12898
  getChecked(choice) {
12899
- if (this.state.showCorrect) {
12899
+ const isEvaluateMode = this.state.showCorrect && this.props.mode === 'evaluate';
12900
+ const isPrintMode = this.props.alwaysShowCorrect && (!this.props.session || !this.props.session.value || this.props.session.value.length === 0);
12901
+ if (isEvaluateMode || isPrintMode) {
12900
12902
  return choice.correct || false;
12901
12903
  }
12902
12904
  return this.isSelected(choice.value);
@@ -12911,14 +12913,14 @@ class MultipleChoice$1 extends React$2.Component {
12911
12913
  __self: this,
12912
12914
  __source: {
12913
12915
  fileName: _jsxFileName$1,
12914
- lineNumber: 223
12916
+ lineNumber: 228
12915
12917
  }
12916
12918
  }, "Multiple Choice Question") : React$2.createElement('h3', {
12917
12919
  className: classes.srOnly,
12918
12920
  __self: this,
12919
12921
  __source: {
12920
12922
  fileName: _jsxFileName$1,
12921
- lineNumber: 225
12923
+ lineNumber: 230
12922
12924
  }
12923
12925
  }, "Multiple Select Question");
12924
12926
  }
@@ -12953,7 +12955,7 @@ class MultipleChoice$1 extends React$2.Component {
12953
12955
  __self: this,
12954
12956
  __source: {
12955
12957
  fileName: _jsxFileName$1,
12956
- lineNumber: 275
12958
+ lineNumber: 280
12957
12959
  }
12958
12960
  });
12959
12961
  const getMultipleChoiceMinSelectionErrorMessage = () => {
@@ -12981,21 +12983,21 @@ class MultipleChoice$1 extends React$2.Component {
12981
12983
  __self: this,
12982
12984
  __source: {
12983
12985
  fileName: _jsxFileName$1,
12984
- lineNumber: 302
12986
+ lineNumber: 307
12985
12987
  }
12986
12988
  }, partLabel && React$2.createElement('h2', {
12987
12989
  className: classes.partLabel,
12988
12990
  __self: this,
12989
12991
  __source: {
12990
12992
  fileName: _jsxFileName$1,
12991
- lineNumber: 303
12993
+ lineNumber: 308
12992
12994
  }
12993
12995
  }, partLabel), this.renderHeading(), teacherInstructions && React$2.createElement('div', {
12994
12996
  className: classes.teacherInstructions,
12995
12997
  __self: this,
12996
12998
  __source: {
12997
12999
  fileName: _jsxFileName$1,
12998
- lineNumber: 308
13000
+ lineNumber: 313
12999
13001
  }
13000
13002
  }, !animationsDisabled ? React$2.createElement(Collapsible, {
13001
13003
  labels: {
@@ -13005,7 +13007,7 @@ class MultipleChoice$1 extends React$2.Component {
13005
13007
  __self: this,
13006
13008
  __source: {
13007
13009
  fileName: _jsxFileName$1,
13008
- lineNumber: 310
13010
+ lineNumber: 315
13009
13011
  }
13010
13012
  }, teacherInstructionsDiv) : teacherInstructionsDiv), React$2.createElement('fieldset', {
13011
13013
  tabIndex: 0,
@@ -13015,7 +13017,7 @@ class MultipleChoice$1 extends React$2.Component {
13015
13017
  __self: this,
13016
13018
  __source: {
13017
13019
  fileName: _jsxFileName$1,
13018
- lineNumber: 324
13020
+ lineNumber: 329
13019
13021
  }
13020
13022
  }, React$2.createElement(PreviewPrompt, {
13021
13023
  className: "prompt",
@@ -13027,7 +13029,7 @@ class MultipleChoice$1 extends React$2.Component {
13027
13029
  __self: this,
13028
13030
  __source: {
13029
13031
  fileName: _jsxFileName$1,
13030
- lineNumber: 330
13032
+ lineNumber: 335
13031
13033
  }
13032
13034
  }), !alwaysShowCorrect && React$2.createElement(CorrectAnswerToggle, {
13033
13035
  show: showCorrectAnswerToggle,
@@ -13037,7 +13039,7 @@ class MultipleChoice$1 extends React$2.Component {
13037
13039
  __self: this,
13038
13040
  __source: {
13039
13041
  fileName: _jsxFileName$1,
13040
- lineNumber: 340
13042
+ lineNumber: 345
13041
13043
  }
13042
13044
  }), React$2.createElement('div', {
13043
13045
  className: classNames({
@@ -13048,7 +13050,7 @@ class MultipleChoice$1 extends React$2.Component {
13048
13050
  __self: this,
13049
13051
  __source: {
13050
13052
  fileName: _jsxFileName$1,
13051
- lineNumber: 348
13053
+ lineNumber: 353
13052
13054
  }
13053
13055
  }, choices.map((choice, index) => React$2.createElement(StyledChoice, {
13054
13056
  autoFocusRef: index === 0 ? this.firstInputRef : null,
@@ -13073,21 +13075,21 @@ class MultipleChoice$1 extends React$2.Component {
13073
13075
  __self: this,
13074
13076
  __source: {
13075
13077
  fileName: _jsxFileName$1,
13076
- lineNumber: 356
13078
+ lineNumber: 361
13077
13079
  }
13078
13080
  })))), choiceMode === 'checkbox' && selections < minSelections && React$2.createElement('div', {
13079
13081
  className: classes.errorText,
13080
13082
  __self: this,
13081
13083
  __source: {
13082
13084
  fileName: _jsxFileName$1,
13083
- lineNumber: 382
13085
+ lineNumber: 387
13084
13086
  }
13085
13087
  }, getMultipleChoiceMinSelectionErrorMessage()), choiceMode === 'checkbox' && maxSelectionsErrorState && React$2.createElement('div', {
13086
13088
  className: classes.errorText,
13087
13089
  __self: this,
13088
13090
  __source: {
13089
13091
  fileName: _jsxFileName$1,
13090
- lineNumber: 385
13092
+ lineNumber: 390
13091
13093
  }
13092
13094
  }, translator.t(`translation:multipleChoice:maxSelections_${maxSelections === 1 ? 'one' : 'other'}`, {
13093
13095
  lng: language,
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.6.8</title>
5
+ <title>@pie-element/ebsr@10.6.9</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.6.8",
3
+ "version": "10.6.9",
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.6.8</title>
5
+ <title>@pie-element/ebsr@10.6.9</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
@@ -12859,7 +12859,9 @@ class MultipleChoice$1 extends React$2.Component {
12859
12859
  };
12860
12860
  }
12861
12861
  getChecked(choice) {
12862
- if (this.state.showCorrect) {
12862
+ const isEvaluateMode = this.state.showCorrect && this.props.mode === 'evaluate';
12863
+ const isPrintMode = this.props.alwaysShowCorrect && (!this.props.session || !this.props.session.value || this.props.session.value.length === 0);
12864
+ if (isEvaluateMode || isPrintMode) {
12863
12865
  return choice.correct || false;
12864
12866
  }
12865
12867
  return this.isSelected(choice.value);
@@ -12874,14 +12876,14 @@ class MultipleChoice$1 extends React$2.Component {
12874
12876
  __self: this,
12875
12877
  __source: {
12876
12878
  fileName: _jsxFileName$1,
12877
- lineNumber: 223
12879
+ lineNumber: 228
12878
12880
  }
12879
12881
  }, "Multiple Choice Question") : React$2.createElement('h3', {
12880
12882
  className: classes.srOnly,
12881
12883
  __self: this,
12882
12884
  __source: {
12883
12885
  fileName: _jsxFileName$1,
12884
- lineNumber: 225
12886
+ lineNumber: 230
12885
12887
  }
12886
12888
  }, "Multiple Select Question");
12887
12889
  }
@@ -12916,7 +12918,7 @@ class MultipleChoice$1 extends React$2.Component {
12916
12918
  __self: this,
12917
12919
  __source: {
12918
12920
  fileName: _jsxFileName$1,
12919
- lineNumber: 275
12921
+ lineNumber: 280
12920
12922
  }
12921
12923
  });
12922
12924
  const getMultipleChoiceMinSelectionErrorMessage = () => {
@@ -12944,21 +12946,21 @@ class MultipleChoice$1 extends React$2.Component {
12944
12946
  __self: this,
12945
12947
  __source: {
12946
12948
  fileName: _jsxFileName$1,
12947
- lineNumber: 302
12949
+ lineNumber: 307
12948
12950
  }
12949
12951
  }, partLabel && React$2.createElement('h2', {
12950
12952
  className: classes.partLabel,
12951
12953
  __self: this,
12952
12954
  __source: {
12953
12955
  fileName: _jsxFileName$1,
12954
- lineNumber: 303
12956
+ lineNumber: 308
12955
12957
  }
12956
12958
  }, partLabel), this.renderHeading(), teacherInstructions && React$2.createElement('div', {
12957
12959
  className: classes.teacherInstructions,
12958
12960
  __self: this,
12959
12961
  __source: {
12960
12962
  fileName: _jsxFileName$1,
12961
- lineNumber: 308
12963
+ lineNumber: 313
12962
12964
  }
12963
12965
  }, !animationsDisabled ? React$2.createElement(Collapsible, {
12964
12966
  labels: {
@@ -12968,7 +12970,7 @@ class MultipleChoice$1 extends React$2.Component {
12968
12970
  __self: this,
12969
12971
  __source: {
12970
12972
  fileName: _jsxFileName$1,
12971
- lineNumber: 310
12973
+ lineNumber: 315
12972
12974
  }
12973
12975
  }, teacherInstructionsDiv) : teacherInstructionsDiv), React$2.createElement('fieldset', {
12974
12976
  tabIndex: 0,
@@ -12978,7 +12980,7 @@ class MultipleChoice$1 extends React$2.Component {
12978
12980
  __self: this,
12979
12981
  __source: {
12980
12982
  fileName: _jsxFileName$1,
12981
- lineNumber: 324
12983
+ lineNumber: 329
12982
12984
  }
12983
12985
  }, React$2.createElement(PreviewPrompt, {
12984
12986
  className: "prompt",
@@ -12990,7 +12992,7 @@ class MultipleChoice$1 extends React$2.Component {
12990
12992
  __self: this,
12991
12993
  __source: {
12992
12994
  fileName: _jsxFileName$1,
12993
- lineNumber: 330
12995
+ lineNumber: 335
12994
12996
  }
12995
12997
  }), !alwaysShowCorrect && React$2.createElement(CorrectAnswerToggle, {
12996
12998
  show: showCorrectAnswerToggle,
@@ -13000,7 +13002,7 @@ class MultipleChoice$1 extends React$2.Component {
13000
13002
  __self: this,
13001
13003
  __source: {
13002
13004
  fileName: _jsxFileName$1,
13003
- lineNumber: 340
13005
+ lineNumber: 345
13004
13006
  }
13005
13007
  }), React$2.createElement('div', {
13006
13008
  className: classNames({
@@ -13011,7 +13013,7 @@ class MultipleChoice$1 extends React$2.Component {
13011
13013
  __self: this,
13012
13014
  __source: {
13013
13015
  fileName: _jsxFileName$1,
13014
- lineNumber: 348
13016
+ lineNumber: 353
13015
13017
  }
13016
13018
  }, choices.map((choice, index) => React$2.createElement(StyledChoice, {
13017
13019
  autoFocusRef: index === 0 ? this.firstInputRef : null,
@@ -13036,21 +13038,21 @@ class MultipleChoice$1 extends React$2.Component {
13036
13038
  __self: this,
13037
13039
  __source: {
13038
13040
  fileName: _jsxFileName$1,
13039
- lineNumber: 356
13041
+ lineNumber: 361
13040
13042
  }
13041
13043
  })))), choiceMode === 'checkbox' && selections < minSelections && React$2.createElement('div', {
13042
13044
  className: classes.errorText,
13043
13045
  __self: this,
13044
13046
  __source: {
13045
13047
  fileName: _jsxFileName$1,
13046
- lineNumber: 382
13048
+ lineNumber: 387
13047
13049
  }
13048
13050
  }, getMultipleChoiceMinSelectionErrorMessage()), choiceMode === 'checkbox' && maxSelectionsErrorState && React$2.createElement('div', {
13049
13051
  className: classes.errorText,
13050
13052
  __self: this,
13051
13053
  __source: {
13052
13054
  fileName: _jsxFileName$1,
13053
- lineNumber: 385
13055
+ lineNumber: 390
13054
13056
  }
13055
13057
  }, translator$1.t(`translation:multipleChoice:maxSelections_${maxSelections === 1 ? 'one' : 'other'}`, {
13056
13058
  lng: language,
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@pie-element/ebsr",
3
- "version": "10.6.9",
3
+ "version": "10.6.10",
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.19.3",
10
+ "@pie-element/multiple-choice": "^9.19.4",
11
11
  "@pie-framework/pie-player-events": "^0.1.0",
12
12
  "@pie-lib/pie-toolbox": "2.25.2",
13
13
  "classnames": "^2.2.5",
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "author": "pie framework developers",
18
18
  "license": "ISC",
19
- "gitHead": "c467a0677fd15eec0c1b522a2525e3910d5a79dd",
19
+ "gitHead": "2fbd9065ebb09e10f21d43369168aa65124d335a",
20
20
  "scripts": {
21
21
  "postpublish": "../../scripts/postpublish"
22
22
  },