@arraypress/waveform-player 1.23.0 → 1.24.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arraypress/waveform-player",
3
- "version": "1.23.0",
3
+ "version": "1.24.0",
4
4
  "description": "Lightweight, customizable audio player with waveform visualization",
5
5
  "type": "module",
6
6
  "types": "./index.d.ts",
package/src/js/core.js CHANGED
@@ -1150,6 +1150,7 @@ export class WaveformPlayer {
1150
1150
  this.setLoading(true);
1151
1151
  this.progress = 0;
1152
1152
  this.hasError = false;
1153
+ this.container.classList.remove('waveform-is-placeholder');
1153
1154
 
1154
1155
  // In external mode we don't own an <audio> element — skip
1155
1156
  // src assignment + metadata-wait, but still generate the
@@ -1202,6 +1203,7 @@ export class WaveformPlayer {
1202
1203
  } catch (error) {
1203
1204
  console.warn('[WaveformPlayer] Using placeholder waveform:', error);
1204
1205
  this.waveformData = generatePlaceholderWaveform(this.options.samples);
1206
+ this.container.classList.add('waveform-is-placeholder');
1205
1207
  }
1206
1208
  }
1207
1209