@pie-element/ebsr 10.6.6-next.10 → 10.6.6-next.12

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/module/element.js CHANGED
@@ -13435,6 +13435,10 @@ class MultipleChoice extends HTMLElement {
13435
13435
  if (!this._model || !this._session) {
13436
13436
  return;
13437
13437
  }
13438
+ const {mode} = this._model;
13439
+ if (mode !== 'gather') {
13440
+ return;
13441
+ }
13438
13442
  const keyToIndex = key => {
13439
13443
  const numOffset = key >= '1' && key <= '9' ? key - '1' : key === '0' ? 9 : -1;
13440
13444
  const letterOffset = (/^[a-jA-J]$/).test(key) ? key.toLowerCase().charCodeAt(0) - ('a').charCodeAt(0) : -1;
package/module/print.js CHANGED
@@ -13435,6 +13435,10 @@ class MultipleChoice extends HTMLElement {
13435
13435
  if (!this._model || !this._session) {
13436
13436
  return;
13437
13437
  }
13438
+ const {mode} = this._model;
13439
+ if (mode !== 'gather') {
13440
+ return;
13441
+ }
13438
13442
  const keyToIndex = key => {
13439
13443
  const numOffset = key >= '1' && key <= '9' ? key - '1' : key === '0' ? 9 : -1;
13440
13444
  const letterOffset = (/^[a-jA-J]$/).test(key) ? key.toLowerCase().charCodeAt(0) - ('a').charCodeAt(0) : -1;
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@pie-element/ebsr",
3
- "version": "10.6.6-next.10+45bdaf464",
3
+ "version": "10.6.6-next.12+0b31f66ae",
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.18.6-next.10+45bdaf464",
10
+ "@pie-element/multiple-choice": "^9.18.6-next.12+0b31f66ae",
11
11
  "@pie-framework/pie-player-events": "^0.1.0",
12
12
  "@pie-lib/pie-toolbox": "2.23.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": "45bdaf464b8158778724414130f3fffd63da5390",
19
+ "gitHead": "0b31f66aef7c7bb051b32eb96bf0c20999be943b",
20
20
  "scripts": {
21
21
  "postpublish": "../../scripts/postpublish"
22
22
  },