@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.d.mts CHANGED
@@ -436,12 +436,6 @@ interface WamEffectGuiProps {
436
436
  */
437
437
  declare const WamEffectGui: react__default.FC<WamEffectGuiProps>;
438
438
 
439
- /**
440
- * Dynamic loader for the optional '@dawcore/wam' peer (the @dawcore/midi
441
- * loadMidiImpl pattern). Keeps WAM hosting out of the bundle for consumers
442
- * that never use it; `import type` from '@dawcore/wam' elsewhere is fine
443
- * (erased at runtime).
444
- */
445
439
  type WamModule = typeof _dawcore_wam;
446
440
  declare function loadWamModule(): Promise<WamModule>;
447
441
 
package/dist/tone.d.ts CHANGED
@@ -436,12 +436,6 @@ interface WamEffectGuiProps {
436
436
  */
437
437
  declare const WamEffectGui: react__default.FC<WamEffectGuiProps>;
438
438
 
439
- /**
440
- * Dynamic loader for the optional '@dawcore/wam' peer (the @dawcore/midi
441
- * loadMidiImpl pattern). Keeps WAM hosting out of the bundle for consumers
442
- * that never use it; `import type` from '@dawcore/wam' elsewhere is fine
443
- * (erased at runtime).
444
- */
445
439
  type WamModule = typeof _dawcore_wam;
446
440
  declare function loadWamModule(): Promise<WamModule>;
447
441
 
package/dist/tone.js CHANGED
@@ -88,6 +88,9 @@ __export(tone_exports, {
88
88
  });
89
89
  module.exports = __toCommonJS(tone_exports);
90
90
 
91
+ // <define:__INSTALL_SPECS__>
92
+ 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" };
93
+
91
94
  // src/hooks/useAudioEffects.ts
92
95
  var import_react = require("react");
93
96
  var import_tone = require("tone");
@@ -892,6 +895,18 @@ function createEffectChain(effects) {
892
895
  };
893
896
  }
894
897
 
898
+ // src/utils/installCommand.ts
899
+ var BUILT_SPECS = typeof define_INSTALL_SPECS_default === "undefined" ? {} : define_INSTALL_SPECS_default;
900
+ function formatInstallCommand(specs, names) {
901
+ return "npm install " + names.map((name) => {
902
+ var _a;
903
+ return `"${(_a = specs[name]) != null ? _a : name}"`;
904
+ }).join(" ");
905
+ }
906
+ function installCommand(...names) {
907
+ return formatInstallCommand(BUILT_SPECS, names);
908
+ }
909
+
895
910
  // src/effects/loadWam.ts
896
911
  function loadWamModule() {
897
912
  return __async(this, null, function* () {
@@ -900,7 +915,7 @@ function loadWamModule() {
900
915
  } catch (err) {
901
916
  const detail = err instanceof Error ? err.message : String(err);
902
917
  throw new Error(
903
- "[waveform-playlist] WAM plugin support requires the optional '@dawcore/wam' package.\nInstall it with: npm install @dawcore/wam\nOriginal error: " + detail
918
+ "[waveform-playlist] WAM plugin support requires the optional '@dawcore/wam' package.\nInstall it with: " + installCommand("@dawcore/wam") + "\nOriginal error: " + detail
904
919
  );
905
920
  }
906
921
  });