@waveform-playlist/browser 17.0.0-next.2 → 17.0.0-next.4

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.3", "@waveform-playlist/media-element-playout": "@waveform-playlist/media-element-playout@^12.4.0-next.1", "@waveform-playlist/playout": "@waveform-playlist/playout@^13.0.0-next.1", "@waveform-playlist/recording": "@waveform-playlist/recording@^14.0.0-next.3", 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.1" };
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
  });