@waveform-playlist/browser 17.0.0-next.1 → 17.0.0-next.10

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/tone.mjs CHANGED
@@ -38,6 +38,9 @@ var __async = (__this, __arguments, generator) => {
38
38
  });
39
39
  };
40
40
 
41
+ // <define:__INSTALL_SPECS__>
42
+ var define_INSTALL_SPECS_default = { "@dawcore/wam": "@dawcore/wam@^0.0.5-next.0", "@dnd-kit/abstract": "@dnd-kit/abstract@^0.5.0", "@dnd-kit/dom": "@dnd-kit/dom@^0.5.0", "@dnd-kit/react": "@dnd-kit/react@^0.5.0", "@waveform-playlist/annotations": "@waveform-playlist/annotations@^14.0.0-next.6", "@waveform-playlist/media-element-playout": "@waveform-playlist/media-element-playout@^12.4.0-next.4", "@waveform-playlist/playout": "@waveform-playlist/playout@^13.0.0-next.4", "@waveform-playlist/recording": "@waveform-playlist/recording@^14.0.0-next.6", react: "react@^19.0.0", "react-dom": "react-dom@^19.0.0", "styled-components": "styled-components@^6.0.0", tone: "tone@^15.0.0", "@waveform-playlist/spectrogram": "@waveform-playlist/spectrogram@^15.0.0-next.4" };
43
+
41
44
  // src/hooks/useAudioEffects.ts
42
45
  import { useRef, useCallback } from "react";
43
46
  import { Analyser } from "tone";
@@ -871,6 +874,18 @@ function createEffectChain(effects) {
871
874
  };
872
875
  }
873
876
 
877
+ // src/utils/installCommand.ts
878
+ var BUILT_SPECS = typeof define_INSTALL_SPECS_default === "undefined" ? {} : define_INSTALL_SPECS_default;
879
+ function formatInstallCommand(specs, names) {
880
+ return "npm install " + names.map((name) => {
881
+ var _a;
882
+ return `"${(_a = specs[name]) != null ? _a : name}"`;
883
+ }).join(" ");
884
+ }
885
+ function installCommand(...names) {
886
+ return formatInstallCommand(BUILT_SPECS, names);
887
+ }
888
+
874
889
  // src/effects/loadWam.ts
875
890
  function loadWamModule() {
876
891
  return __async(this, null, function* () {
@@ -879,7 +894,7 @@ function loadWamModule() {
879
894
  } catch (err) {
880
895
  const detail = err instanceof Error ? err.message : String(err);
881
896
  throw new Error(
882
- "[waveform-playlist] WAM plugin support requires the optional '@dawcore/wam' package.\nInstall it with: npm install @dawcore/wam\nOriginal error: " + detail
897
+ "[waveform-playlist] WAM plugin support requires the optional '@dawcore/wam' package.\nInstall it with: " + installCommand("@dawcore/wam") + "\nOriginal error: " + detail
883
898
  );
884
899
  }
885
900
  });
@@ -1886,7 +1901,8 @@ var PlaylistMixerContext = slot();
1886
1901
  var TrackReorderPreviewContext = slot();
1887
1902
  var TrimPreviewContext = slot();
1888
1903
  var TrimPreviewPeaksContext = slot();
1889
- var RecordingArmContext = slot();
1904
+ var DragGuardContext = slot();
1905
+ var RecordingTrackContext = slot();
1890
1906
  var PlaybackRateContext = slot();
1891
1907
  var MediaElementTrackContext = slot();
1892
1908
  function useSlot(context, hookName, needs) {