@arraypress/waveform-player 1.8.0 → 1.9.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.
@@ -1440,6 +1440,7 @@ var WaveformPlayer = class _WaveformPlayer {
1440
1440
  this.artworkEl.src = options.artwork;
1441
1441
  }
1442
1442
  this.options.markers = options.markers || [];
1443
+ this.options.waveform = options.waveform || null;
1443
1444
  await this.load(url);
1444
1445
  if (options.autoplay !== false) {
1445
1446
  this.play()?.catch(() => {
@@ -2178,7 +2179,7 @@ var WaveformPlayer = class _WaveformPlayer {
2178
2179
  };
2179
2180
 
2180
2181
  // src/js/index.js
2181
- WaveformPlayer.utils = { formatTime, extractTitleFromUrl, escapeHtml, isSafeHref };
2182
+ WaveformPlayer.utils = { formatTime, extractTitleFromUrl, escapeHtml, isSafeHref, parseDataAttributes };
2182
2183
  var isBrowser = () => typeof window !== "undefined" && typeof document !== "undefined";
2183
2184
  function autoInit() {
2184
2185
  if (!isBrowser()) return;