@waveform-playlist/engine 14.0.0-next.6 → 14.0.0-next.7

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/dist/index.mjs CHANGED
@@ -1179,7 +1179,7 @@ var ArrangementImpl = class {
1179
1179
  }
1180
1180
  /** Be told after every change. See `Arrangement.subscribe`. */
1181
1181
  subscribe(listener) {
1182
- const entry = () => listener();
1182
+ const entry = (change) => listener(change);
1183
1183
  this._subscribers.add(entry);
1184
1184
  return () => {
1185
1185
  this._subscribers.delete(entry);
@@ -1876,9 +1876,10 @@ var ArrangementImpl = class {
1876
1876
  }
1877
1877
  }
1878
1878
  }
1879
+ const info = Object.freeze({ type: next.change.type });
1879
1880
  for (const subscriber of [...this._subscribers]) {
1880
1881
  try {
1881
- subscriber();
1882
+ subscriber(info);
1882
1883
  } catch (error) {
1883
1884
  console.warn("[waveform-playlist] Error in an arrangement subscriber:", error);
1884
1885
  }