@pie-element/ebsr 7.0.18 → 7.0.21

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,14 +1,14 @@
1
1
  {
2
2
  "name": "@pie-element/ebsr",
3
- "version": "7.0.17",
3
+ "version": "7.0.20",
4
4
  "modules": [
5
5
  {
6
6
  "name": "@pie-lib/shared-module",
7
- "version": "^1.4.2"
7
+ "version": "^1.4.10"
8
8
  },
9
9
  {
10
10
  "name": "@pie-lib/math-rendering-module",
11
- "version": "^1.0.27"
11
+ "version": "^1.0.35"
12
12
  }
13
13
  ]
14
14
  }
package/module/print.html CHANGED
@@ -2,7 +2,7 @@
2
2
  <!doctype html>
3
3
  <html>
4
4
  <head>
5
- <title>@pie-element/ebsr@7.0.17</title>
5
+ <title>@pie-element/ebsr@7.0.20</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
@@ -1,5 +1,5 @@
1
- import {_dll_prop_types, _dll_react_dom, _dll_react, _dll_material_ui__core_styles, _dll_pie_lib__render_ui, _dll_material_ui__core, _dll_classnames, _dll_pie_lib__correct_answer_toggle, _dll_lodash, _dll_debug} from "../../../@pie-lib/shared-module@^1.4.2/module/index.js";
2
- import {_dll_pie_lib__math_rendering} from "../../../@pie-lib/math-rendering-module@^1.0.27/module/index.js";
1
+ import {_dll_prop_types, _dll_react_dom, _dll_react, _dll_material_ui__core_styles, _dll_pie_lib__render_ui, _dll_material_ui__core, _dll_classnames, _dll_pie_lib__correct_answer_toggle, _dll_lodash, _dll_debug} from "../../../@pie-lib/shared-module@^1.4.10/module/index.js";
2
+ import {_dll_pie_lib__math_rendering} from "../../../@pie-lib/math-rendering-module@^1.0.35/module/index.js";
3
3
  function getDefaultExportFromCjs(x) {
4
4
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
5
5
  }
@@ -34,8 +34,7 @@ var interopRequireDefault = {
34
34
  "default": obj
35
35
  };
36
36
  }
37
- module.exports = _interopRequireDefault;
38
- (module.exports["default"] = module.exports, module.exports.__esModule = true);
37
+ (module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports);
39
38
  })(interopRequireDefault);
40
39
  getDefaultExportFromCjs(interopRequireDefault.exports);
41
40
  var hasClass = {
@@ -2050,7 +2049,7 @@ const preparePrintModel = (model, opts) => {
2050
2049
  model.teacherInstructions = instr && model.teacherInstructionsEnabled !== false ? model.teacherInstructions : undefined;
2051
2050
  model.showTeacherInstructions = instr;
2052
2051
  model.alwaysShowCorrect = instr;
2053
- model.mode = instr ? 'evaluate' : model.mode;
2052
+ model.mode = instr ? 'evaluate' : 'gather';
2054
2053
  model.disabled = true;
2055
2054
  model.animationsDisabled = true;
2056
2055
  model.lockChoiceOrder = true;
@@ -2119,10 +2118,8 @@ class Ebsr extends HTMLElement {
2119
2118
  }
2120
2119
  setPartModel(part, key) {
2121
2120
  if (this._model && this._model[key]) {
2122
- const {mode} = this._model;
2123
2121
  part.model = {
2124
2122
  ...preparePrintModel(this._model[key], this._options),
2125
- mode,
2126
2123
  keyMode: this._model[key].choicePrefix
2127
2124
  };
2128
2125
  if (!part._session) {
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@pie-element/ebsr",
3
- "version": "7.0.18",
3
+ "version": "7.0.21",
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": "^6.2.4",
10
+ "@pie-element/multiple-choice": "^6.2.7",
11
11
  "@pie-framework/pie-player-events": "^0.1.0",
12
12
  "classnames": "^2.2.5",
13
13
  "debug": "^4.1.1",
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "author": "pie framework developers",
17
17
  "license": "ISC",
18
- "gitHead": "7b61c8a15ceae75e9e6db5d465abfb6d22c34f30",
18
+ "gitHead": "de8f41ecfc06944b7bc890a167f81818d2bf1845",
19
19
  "scripts": {
20
20
  "postpublish": "../../scripts/postpublish"
21
21
  },
package/src/index.js CHANGED
@@ -71,6 +71,10 @@ export default class Ebsr extends HTMLElement {
71
71
  });
72
72
  }
73
73
 
74
+ get session() {
75
+ return this._session;
76
+ }
77
+
74
78
  setPartModel(part, key) {
75
79
  if (this._model && this._model[key]) {
76
80
  const { mode } = this._model;
package/src/print.js CHANGED
@@ -25,7 +25,7 @@ const preparePrintModel = (model, opts) => {
25
25
  model.teacherInstructions = instr && model.teacherInstructionsEnabled !== false ? model.teacherInstructions : undefined;
26
26
  model.showTeacherInstructions = instr;
27
27
  model.alwaysShowCorrect = instr;
28
- model.mode = instr ? 'evaluate' : model.mode;
28
+ model.mode = instr ? 'evaluate' : 'gather';
29
29
 
30
30
  model.disabled = true;
31
31
  model.animationsDisabled = true;
@@ -114,11 +114,9 @@ export default class Ebsr extends HTMLElement {
114
114
 
115
115
  setPartModel(part, key) {
116
116
  if (this._model && this._model[key]) {
117
- const { mode } = this._model;
118
117
 
119
118
  part.model = {
120
119
  ...preparePrintModel(this._model[key], this._options),
121
- mode,
122
120
  keyMode: this._model[key].choicePrefix,
123
121
  };
124
122