@pie-element/ebsr 10.3.12 → 10.3.13-next.2
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 +2 -3
- package/module/index.html +1 -1
- package/module/manifest.json +1 -1
- package/module/print.html +1 -1
- package/module/print.js +2 -3
- package/package.json +3 -3
package/module/element.js
CHANGED
|
@@ -13209,14 +13209,13 @@ class MultipleChoice extends HTMLElement {
|
|
|
13209
13209
|
}
|
|
13210
13210
|
connectedCallback() {
|
|
13211
13211
|
this._rerender();
|
|
13212
|
-
if (this._model && !this._model.autoplayAudioEnabled) {
|
|
13213
|
-
return;
|
|
13214
|
-
}
|
|
13215
13212
|
const observer = new MutationObserver((mutationsList, observer) => {
|
|
13216
13213
|
mutationsList.forEach(mutation => {
|
|
13217
13214
|
if (mutation.type === 'childList') {
|
|
13218
13215
|
const audio = this.querySelector('audio');
|
|
13219
13216
|
const isInsidePrompt = audio && audio.closest('#preview-prompt');
|
|
13217
|
+
if (!this._model) return;
|
|
13218
|
+
if (!this._model.autoplayAudioEnabled) return;
|
|
13220
13219
|
if (audio && !isInsidePrompt) return;
|
|
13221
13220
|
if (!audio) return;
|
|
13222
13221
|
const info = this._createAudioInfoToast();
|
package/module/index.html
CHANGED
package/module/manifest.json
CHANGED
package/module/print.html
CHANGED
package/module/print.js
CHANGED
|
@@ -13209,14 +13209,13 @@ class MultipleChoice extends HTMLElement {
|
|
|
13209
13209
|
}
|
|
13210
13210
|
connectedCallback() {
|
|
13211
13211
|
this._rerender();
|
|
13212
|
-
if (this._model && !this._model.autoplayAudioEnabled) {
|
|
13213
|
-
return;
|
|
13214
|
-
}
|
|
13215
13212
|
const observer = new MutationObserver((mutationsList, observer) => {
|
|
13216
13213
|
mutationsList.forEach(mutation => {
|
|
13217
13214
|
if (mutation.type === 'childList') {
|
|
13218
13215
|
const audio = this.querySelector('audio');
|
|
13219
13216
|
const isInsidePrompt = audio && audio.closest('#preview-prompt');
|
|
13217
|
+
if (!this._model) return;
|
|
13218
|
+
if (!this._model.autoplayAudioEnabled) return;
|
|
13220
13219
|
if (audio && !isInsidePrompt) return;
|
|
13221
13220
|
if (!audio) return;
|
|
13222
13221
|
const info = this._createAudioInfoToast();
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/ebsr",
|
|
3
|
-
"version": "10.3.
|
|
3
|
+
"version": "10.3.13-next.2+959a39e31",
|
|
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.12.
|
|
10
|
+
"@pie-element/multiple-choice": "^9.12.8-next.2+959a39e31",
|
|
11
11
|
"@pie-framework/pie-player-events": "^0.1.0",
|
|
12
12
|
"@pie-lib/pie-toolbox": "2.9.5",
|
|
13
13
|
"classnames": "^2.2.5",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"author": "pie framework developers",
|
|
18
18
|
"license": "ISC",
|
|
19
|
-
"gitHead": "
|
|
19
|
+
"gitHead": "959a39e31af790462a237b9e533f66cee138c1ba",
|
|
20
20
|
"scripts": {
|
|
21
21
|
"postpublish": "../../scripts/postpublish"
|
|
22
22
|
},
|