@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 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
@@ -2,7 +2,7 @@
2
2
  <!doctype html>
3
3
  <html>
4
4
  <head>
5
- <title>@pie-element/ebsr@10.3.11</title>
5
+ <title>@pie-element/ebsr@10.3.12</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.3.11",
3
+ "version": "10.3.12",
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.3.11</title>
5
+ <title>@pie-element/ebsr@10.3.12</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
@@ -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.12",
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.7",
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": "a765ec82fb15f75b58c3f626c7728470813c89bc",
19
+ "gitHead": "959a39e31af790462a237b9e533f66cee138c1ba",
20
20
  "scripts": {
21
21
  "postpublish": "../../scripts/postpublish"
22
22
  },