@adea-ai/audio 0.114.0 → 0.115.0

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/config.js CHANGED
@@ -1,7 +1,6 @@
1
- //#region src/config.ts
1
+ // src/config.ts
2
2
  /** Optional soundtrack hooks for Adea. */
3
3
  var AUDIO_BASE_URL = "/assets/audio";
4
4
  var MUSIC_DIR = `${AUDIO_BASE_URL}/sounds/music`;
5
5
  var MUSIC_FILES = { silent: "" };
6
- //#endregion
7
6
  export { AUDIO_BASE_URL, MUSIC_DIR, MUSIC_FILES };
@@ -1,5 +1,5 @@
1
1
  import { MUSIC_DIR, MUSIC_FILES } from "./config.js";
2
- //#region src/controller.ts
2
+ // src/controller.ts
3
3
  var MUSIC_MUTE_KEY = "adea:audio:music-muted";
4
4
  var LEGACY_MUTE_KEY = "adea:audio:muted";
5
5
  var DEFAULT_MUSIC_VOLUME = .8;
@@ -121,5 +121,4 @@ var SoundController = class {
121
121
  }
122
122
  };
123
123
  var soundController = new SoundController();
124
- //#endregion
125
124
  export { SoundController, soundController };
@@ -1,4 +1,4 @@
1
- //#region src/scene-music.ts
1
+ // src/scene-music.ts
2
2
  /** Scene route id -> optional track. Deployments can add tracks without changing scene code. */
3
3
  var sceneMusicTracks = {
4
4
  "hq-home": "silent",
@@ -7,5 +7,4 @@ var sceneMusicTracks = {
7
7
  function musicForScene(sceneId) {
8
8
  return sceneMusicTracks[sceneId ?? ""] ?? "silent";
9
9
  }
10
- //#endregion
11
10
  export { musicForScene, sceneMusicTracks };
package/dist/sound.js CHANGED
@@ -4,7 +4,7 @@ import { createComponent, memo } from "solid-js/web";
4
4
  import { Music, Music2 } from "lucide-solid";
5
5
  import { createContext, createEffect, createMemo, createSignal, on, onCleanup, onMount, useContext } from "solid-js";
6
6
  import { ActionButton } from "@adea-ai/ui/components/composites/action-button";
7
- //#region src/sound.tsx
7
+ // src/sound.tsx
8
8
  var SoundContext = createContext(null);
9
9
  function SoundProvider(props) {
10
10
  const [musicMuted, setMusicMuted] = createSignal(false);
@@ -116,5 +116,4 @@ function MusicToggle() {
116
116
  onToggle: () => setUnprovidedMuted(soundController.toggleMusicMute())
117
117
  });
118
118
  }
119
- //#endregion
120
119
  export { MusicToggle, SoundProvider, useOptionalSound, useSceneMusic, useSound };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adea-ai/audio",
3
- "version": "0.114.0",
3
+ "version": "0.115.0",
4
4
  "description": "Optional, lazy music controller and Solid bindings for Adea. Audio is non-blocking so scene loading never waits on sound assets.",
5
5
  "keywords": [
6
6
  "audio",
@@ -39,12 +39,12 @@
39
39
  "typecheck": "bun check -p tsconfig.json"
40
40
  },
41
41
  "dependencies": {
42
- "@adea-ai/ui": "0.149.8",
42
+ "@adea-ai/ui": "0.150.0",
43
43
  "lucide-solid": "^1.65.0",
44
44
  "solid-js": "^1.9.18"
45
45
  },
46
46
  "devDependencies": {
47
- "vite": "^8.3.3",
47
+ "vite": "^8.3.5",
48
48
  "vite-plugin-solid": "^2.11.14"
49
49
  }
50
50
  }