@pie-element/ebsr 10.6.6-next.5 → 10.6.6
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 +11 -0
- package/configure/CHANGELOG.md +11 -0
- package/configure/package.json +3 -3
- package/controller/CHANGELOG.md +11 -0
- package/controller/package.json +2 -2
- package/module/configure.js +2 -2
- package/module/element.js +16 -6
- package/module/manifest.json +2 -2
- package/module/print.js +16 -6
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/ebsr@10.6.5...@pie-element/ebsr@10.6.6) (2025-09-02)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* update pie-lib/pie-toolbox PD-4579, PD-4430 ([277d2a6](https://github.com/pie-framework/pie-elements/commit/277d2a6bad2fc884ab9d980f71774ba9eca8dbb5))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [10.6.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/ebsr@10.6.4...@pie-element/ebsr@10.6.5) (2025-08-15)
|
|
7
18
|
|
|
8
19
|
|
package/configure/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/ebsr-configure@10.5.5...@pie-element/ebsr-configure@10.5.6) (2025-09-02)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* update pie-lib/pie-toolbox PD-4579, PD-4430 ([277d2a6](https://github.com/pie-framework/pie-elements/commit/277d2a6bad2fc884ab9d980f71774ba9eca8dbb5))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [10.5.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/ebsr-configure@10.5.4...@pie-element/ebsr-configure@10.5.5) (2025-08-15)
|
|
7
18
|
|
|
8
19
|
|
package/configure/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/ebsr-configure",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "10.5.
|
|
4
|
+
"version": "10.5.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.
|
|
11
|
+
"@pie-element/multiple-choice": "^9.19.0",
|
|
12
12
|
"@pie-framework/pie-configure-events": "^1.2.0",
|
|
13
|
-
"@pie-lib/pie-toolbox": "2.23.
|
|
13
|
+
"@pie-lib/pie-toolbox": "2.23.3",
|
|
14
14
|
"lodash": "^4.17.15",
|
|
15
15
|
"prop-types": "^15.6.2",
|
|
16
16
|
"react": "^16.8.1",
|
package/controller/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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
|
+
## [8.3.6](https://github.com/pie-framework/pie-elements/compare/@pie-element/ebsr-controller@8.3.5...@pie-element/ebsr-controller@8.3.6) (2025-09-02)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* update pie-lib/pie-toolbox PD-4579, PD-4430 ([277d2a6](https://github.com/pie-framework/pie-elements/commit/277d2a6bad2fc884ab9d980f71774ba9eca8dbb5))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [8.3.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/ebsr-controller@8.3.4...@pie-element/ebsr-controller@8.3.5) (2025-08-15)
|
|
7
18
|
|
|
8
19
|
|
package/controller/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/ebsr-controller",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "8.3.
|
|
4
|
+
"version": "8.3.6",
|
|
5
5
|
"description": "",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@pie-lib/pie-toolbox": "2.23.
|
|
10
|
+
"@pie-lib/pie-toolbox": "2.23.3",
|
|
11
11
|
"lodash": "^4.17.15"
|
|
12
12
|
},
|
|
13
13
|
"author": "",
|
package/module/configure.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {_dll_react, _dll_prop_types, _dll_lodash, _dll_react_dom} from "../../../@pie-lib/pie-toolbox-math-rendering-module@5.5.
|
|
1
|
+
import {_dll_react, _dll_prop_types, _dll_lodash, _dll_react_dom} from "../../../@pie-lib/pie-toolbox-math-rendering-module@5.5.2/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@8.5.
|
|
3
|
+
import {_dll_pie_lib__pie_toolbox_config_ui} from "../../../@pie-lib/pie-toolbox-module@8.5.2/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_debug, _dll_lodash, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@5.5.
|
|
2
|
-
import {_dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_correct_answer_toggle} from "../../../@pie-lib/pie-toolbox-module@8.5.
|
|
1
|
+
import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@5.5.2/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@8.5.2/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;
|
|
@@ -13232,10 +13232,16 @@ function _optionalChain$1(ops) {
|
|
|
13232
13232
|
return value;
|
|
13233
13233
|
}
|
|
13234
13234
|
const log$1 = debug$1('pie-ui:multiple-choice');
|
|
13235
|
-
const isComplete = (session, model, audioComplete) => {
|
|
13235
|
+
const isComplete = (session, model, audioComplete, elementContext) => {
|
|
13236
13236
|
const {autoplayAudioEnabled, completeAudioEnabled} = model || ({});
|
|
13237
13237
|
if (autoplayAudioEnabled && completeAudioEnabled && !audioComplete) {
|
|
13238
|
-
|
|
13238
|
+
if (elementContext) {
|
|
13239
|
+
const audio = elementContext.querySelector('audio');
|
|
13240
|
+
const isInsidePrompt = audio && audio.closest('#preview-prompt');
|
|
13241
|
+
if (audio && isInsidePrompt) {
|
|
13242
|
+
return false;
|
|
13243
|
+
}
|
|
13244
|
+
}
|
|
13239
13245
|
}
|
|
13240
13246
|
if (!session || !session.value) {
|
|
13241
13247
|
return false;
|
|
@@ -13285,10 +13291,10 @@ class MultipleChoice extends HTMLElement {
|
|
|
13285
13291
|
trailing: true
|
|
13286
13292
|
});
|
|
13287
13293
|
this._dispatchResponseChanged = debounce(() => {
|
|
13288
|
-
this.dispatchEvent(new SessionChangedEvent_1(this.tagName.toLowerCase(), isComplete(this._session, this._model, this.audioComplete)));
|
|
13294
|
+
this.dispatchEvent(new SessionChangedEvent_1(this.tagName.toLowerCase(), isComplete(this._session, this._model, this.audioComplete, this)));
|
|
13289
13295
|
});
|
|
13290
13296
|
this._dispatchModelSet = debounce(() => {
|
|
13291
|
-
this.dispatchEvent(new ModelSetEvent_1(this.tagName.toLowerCase(), isComplete(this._session, this._model), this._model !== undefined));
|
|
13297
|
+
this.dispatchEvent(new ModelSetEvent_1(this.tagName.toLowerCase(), isComplete(this._session, this._model, this.audioComplete, this), this._model !== undefined));
|
|
13292
13298
|
}, 50, {
|
|
13293
13299
|
leading: false,
|
|
13294
13300
|
trailing: true
|
|
@@ -13429,6 +13435,10 @@ class MultipleChoice extends HTMLElement {
|
|
|
13429
13435
|
if (!this._model || !this._session) {
|
|
13430
13436
|
return;
|
|
13431
13437
|
}
|
|
13438
|
+
const {mode} = this._model;
|
|
13439
|
+
if (mode !== 'gather') {
|
|
13440
|
+
return;
|
|
13441
|
+
}
|
|
13432
13442
|
const keyToIndex = key => {
|
|
13433
13443
|
const numOffset = key >= '1' && key <= '9' ? key - '1' : key === '0' ? 9 : -1;
|
|
13434
13444
|
const letterOffset = (/^[a-jA-J]$/).test(key) ? key.toLowerCase().charCodeAt(0) - ('a').charCodeAt(0) : -1;
|
package/module/manifest.json
CHANGED
package/module/print.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@5.5.
|
|
2
|
-
import {_dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_correct_answer_toggle} from "../../../@pie-lib/pie-toolbox-module@8.5.
|
|
1
|
+
import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@5.5.2/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@8.5.2/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;
|
|
@@ -13232,10 +13232,16 @@ function _optionalChain(ops) {
|
|
|
13232
13232
|
return value;
|
|
13233
13233
|
}
|
|
13234
13234
|
const log$1 = debug$1('pie-ui:multiple-choice');
|
|
13235
|
-
const isComplete = (session, model, audioComplete) => {
|
|
13235
|
+
const isComplete = (session, model, audioComplete, elementContext) => {
|
|
13236
13236
|
const {autoplayAudioEnabled, completeAudioEnabled} = model || ({});
|
|
13237
13237
|
if (autoplayAudioEnabled && completeAudioEnabled && !audioComplete) {
|
|
13238
|
-
|
|
13238
|
+
if (elementContext) {
|
|
13239
|
+
const audio = elementContext.querySelector('audio');
|
|
13240
|
+
const isInsidePrompt = audio && audio.closest('#preview-prompt');
|
|
13241
|
+
if (audio && isInsidePrompt) {
|
|
13242
|
+
return false;
|
|
13243
|
+
}
|
|
13244
|
+
}
|
|
13239
13245
|
}
|
|
13240
13246
|
if (!session || !session.value) {
|
|
13241
13247
|
return false;
|
|
@@ -13285,10 +13291,10 @@ class MultipleChoice extends HTMLElement {
|
|
|
13285
13291
|
trailing: true
|
|
13286
13292
|
});
|
|
13287
13293
|
this._dispatchResponseChanged = debounce(() => {
|
|
13288
|
-
this.dispatchEvent(new SessionChangedEvent_1(this.tagName.toLowerCase(), isComplete(this._session, this._model, this.audioComplete)));
|
|
13294
|
+
this.dispatchEvent(new SessionChangedEvent_1(this.tagName.toLowerCase(), isComplete(this._session, this._model, this.audioComplete, this)));
|
|
13289
13295
|
});
|
|
13290
13296
|
this._dispatchModelSet = debounce(() => {
|
|
13291
|
-
this.dispatchEvent(new ModelSetEvent_1(this.tagName.toLowerCase(), isComplete(this._session, this._model), this._model !== undefined));
|
|
13297
|
+
this.dispatchEvent(new ModelSetEvent_1(this.tagName.toLowerCase(), isComplete(this._session, this._model, this.audioComplete, this), this._model !== undefined));
|
|
13292
13298
|
}, 50, {
|
|
13293
13299
|
leading: false,
|
|
13294
13300
|
trailing: true
|
|
@@ -13429,6 +13435,10 @@ class MultipleChoice extends HTMLElement {
|
|
|
13429
13435
|
if (!this._model || !this._session) {
|
|
13430
13436
|
return;
|
|
13431
13437
|
}
|
|
13438
|
+
const {mode} = this._model;
|
|
13439
|
+
if (mode !== 'gather') {
|
|
13440
|
+
return;
|
|
13441
|
+
}
|
|
13432
13442
|
const keyToIndex = key => {
|
|
13433
13443
|
const numOffset = key >= '1' && key <= '9' ? key - '1' : key === '0' ? 9 : -1;
|
|
13434
13444
|
const letterOffset = (/^[a-jA-J]$/).test(key) ? key.toLowerCase().charCodeAt(0) - ('a').charCodeAt(0) : -1;
|
package/package.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/ebsr",
|
|
3
|
-
"version": "10.6.6
|
|
3
|
+
"version": "10.6.6",
|
|
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.
|
|
10
|
+
"@pie-element/multiple-choice": "^9.19.0",
|
|
11
11
|
"@pie-framework/pie-player-events": "^0.1.0",
|
|
12
|
-
"@pie-lib/pie-toolbox": "2.23.
|
|
12
|
+
"@pie-lib/pie-toolbox": "2.23.3",
|
|
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": "
|
|
19
|
+
"gitHead": "bef1b851f70ca272ca37ee987d36750f1783781b",
|
|
20
20
|
"scripts": {
|
|
21
21
|
"postpublish": "../../scripts/postpublish"
|
|
22
22
|
},
|