@checksub_team/peaks_timeline 1.13.4 → 1.13.5

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": "@checksub_team/peaks_timeline",
3
- "version": "1.13.4",
3
+ "version": "1.13.5",
4
4
  "description": "JavaScript UI component for displaying audio waveforms",
5
5
  "main": "./peaks.js",
6
6
  "types": "./peaks.js.d.ts",
package/peaks.js CHANGED
@@ -19256,7 +19256,7 @@ module.exports = function (Utils) {
19256
19256
  validateSource(peaks, opts, 'add()');
19257
19257
  this._peaks = peaks;
19258
19258
  this._id = id;
19259
- this._originId = originId;
19259
+ this._originId = originId || id;
19260
19260
  this._elementId = elementId;
19261
19261
  this._title = opts.title;
19262
19262
  this._url = opts.url;
@@ -20649,7 +20649,7 @@ module.exports = function (Source, Utils) {
20649
20649
  });
20650
20650
  var newSource = this._add([{
20651
20651
  id: Utils.createUuidv4(),
20652
- originId: sourceToCut.id,
20652
+ originId: sourceToCut.originId,
20653
20653
  elementId: sourceToCut.elementId,
20654
20654
  title: sourceToCut.title,
20655
20655
  url: sourceToCut.url,
package/src/source.js CHANGED
@@ -400,7 +400,7 @@ define([
400
400
 
401
401
  this._peaks = peaks;
402
402
  this._id = id;
403
- this._originId = originId;
403
+ this._originId = originId || id;
404
404
  this._elementId = elementId;
405
405
  this._title = opts.title;
406
406
  this._url = opts.url;
@@ -64,7 +64,7 @@ define([
64
64
  // Create the copy (cut)
65
65
  var newSource = this._add([{
66
66
  id: Utils.createUuidv4(),
67
- originId: sourceToCut.id,
67
+ originId: sourceToCut.originId,
68
68
  elementId: sourceToCut.elementId,
69
69
  title: sourceToCut.title,
70
70
  url: sourceToCut.url,