@pie-element/ebsr 10.3.1-next.0 → 10.3.1

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 CHANGED
@@ -3,6 +3,14 @@
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.3.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/ebsr@10.3.0...@pie-element/ebsr@10.3.1) (2025-01-29)
7
+
8
+ **Note:** Version bump only for package @pie-element/ebsr
9
+
10
+
11
+
12
+
13
+
6
14
  # [10.3.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/ebsr@10.2.10...@pie-element/ebsr@10.3.0) (2025-01-27)
7
15
 
8
16
 
@@ -3,6 +3,14 @@
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.2.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/ebsr-configure@10.2.0...@pie-element/ebsr-configure@10.2.1) (2025-01-29)
7
+
8
+ **Note:** Version bump only for package @pie-element/ebsr-configure
9
+
10
+
11
+
12
+
13
+
6
14
  # [10.2.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/ebsr-configure@10.1.10...@pie-element/ebsr-configure@10.2.0) (2025-01-27)
7
15
 
8
16
 
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@pie-element/ebsr-configure",
3
3
  "private": true,
4
- "version": "10.2.0",
4
+ "version": "10.2.1",
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.8.0",
11
+ "@pie-element/multiple-choice": "^9.9.0",
12
12
  "@pie-framework/pie-configure-events": "^1.2.0",
13
13
  "@pie-lib/pie-toolbox": "2.8.0",
14
14
  "lodash": "^4.17.15",
package/module/element.js CHANGED
@@ -13177,15 +13177,19 @@ class MultipleChoice extends HTMLElement {
13177
13177
  if (mutation.type === 'childList') {
13178
13178
  const audio = this.querySelector('audio[autoplay]');
13179
13179
  if (!audio) return;
13180
- if (audio.paused && !this.querySelector('#play-audio-info')) {
13181
- const info = this._createAudioInfoToast();
13182
- this.appendChild(info);
13183
- const enableAudio = () => {
13180
+ const info = this._createAudioInfoToast();
13181
+ const enableAudio = () => {
13182
+ if (this.querySelector('#play-audio-info')) {
13184
13183
  audio.play();
13185
13184
  this.removeChild(info);
13186
- document.removeEventListener('click', enableAudio);
13187
- };
13185
+ }
13186
+ document.removeEventListener('click', enableAudio);
13187
+ };
13188
+ if (audio.paused && !this.querySelector('#play-audio-info')) {
13189
+ this.appendChild(info);
13188
13190
  document.addEventListener('click', enableAudio);
13191
+ } else {
13192
+ document.removeEventListener('click', enableAudio);
13189
13193
  }
13190
13194
  const handlePlaying = () => {
13191
13195
  const info = this.querySelector('#play-audio-info');
package/module/print.js CHANGED
@@ -13177,15 +13177,19 @@ class MultipleChoice extends HTMLElement {
13177
13177
  if (mutation.type === 'childList') {
13178
13178
  const audio = this.querySelector('audio[autoplay]');
13179
13179
  if (!audio) return;
13180
- if (audio.paused && !this.querySelector('#play-audio-info')) {
13181
- const info = this._createAudioInfoToast();
13182
- this.appendChild(info);
13183
- const enableAudio = () => {
13180
+ const info = this._createAudioInfoToast();
13181
+ const enableAudio = () => {
13182
+ if (this.querySelector('#play-audio-info')) {
13184
13183
  audio.play();
13185
13184
  this.removeChild(info);
13186
- document.removeEventListener('click', enableAudio);
13187
- };
13185
+ }
13186
+ document.removeEventListener('click', enableAudio);
13187
+ };
13188
+ if (audio.paused && !this.querySelector('#play-audio-info')) {
13189
+ this.appendChild(info);
13188
13190
  document.addEventListener('click', enableAudio);
13191
+ } else {
13192
+ document.removeEventListener('click', enableAudio);
13189
13193
  }
13190
13194
  const handlePlaying = () => {
13191
13195
  const info = this.querySelector('#play-audio-info');
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@pie-element/ebsr",
3
- "version": "10.3.1-next.0+d1334496c",
3
+ "version": "10.3.1",
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.8.1-next.0+d1334496c",
10
+ "@pie-element/multiple-choice": "^9.9.0",
11
11
  "@pie-framework/pie-player-events": "^0.1.0",
12
12
  "@pie-lib/pie-toolbox": "2.8.0",
13
13
  "classnames": "^2.2.5",
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "author": "pie framework developers",
18
18
  "license": "ISC",
19
- "gitHead": "d1334496cda08c2b97633fc2db0a771b6c95ed5b",
19
+ "gitHead": "64773f44eaeb49421dfa615f4482c582393f3c6a",
20
20
  "scripts": {
21
21
  "postpublish": "../../scripts/postpublish"
22
22
  },