@minicode-dev/chat 0.1.5 → 0.1.7
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/README.md +6 -2
- package/assets/sounds/tanks/big_explosion.mp3 +0 -0
- package/assets/sounds/tanks/big_explosion.ogg +0 -0
- package/assets/sounds/tanks/cannon_fire.mp3 +0 -0
- package/assets/sounds/tanks/cannon_fire.ogg +0 -0
- package/assets/sounds/tanks/defeat.mp3 +0 -0
- package/assets/sounds/tanks/defeat.ogg +0 -0
- package/assets/sounds/tanks/engine_loop.mp3 +0 -0
- package/assets/sounds/tanks/engine_loop.ogg +0 -0
- package/assets/sounds/tanks/engine_start.mp3 +0 -0
- package/assets/sounds/tanks/engine_start.ogg +0 -0
- package/assets/sounds/tanks/projectile_whistle.mp3 +0 -0
- package/assets/sounds/tanks/projectile_whistle.ogg +0 -0
- package/assets/sounds/tanks/tank_destroyed.mp3 +0 -0
- package/assets/sounds/tanks/tank_destroyed.ogg +0 -0
- package/assets/sounds/tanks/tank_hit.mp3 +0 -0
- package/assets/sounds/tanks/tank_hit.ogg +0 -0
- package/assets/sounds/tanks/terrain_impact.mp3 +0 -0
- package/assets/sounds/tanks/terrain_impact.ogg +0 -0
- package/assets/sounds/tanks/tracks_loop.mp3 +0 -0
- package/assets/sounds/tanks/tracks_loop.ogg +0 -0
- package/assets/sounds/tanks/turret_loop.mp3 +0 -0
- package/assets/sounds/tanks/turret_loop.ogg +0 -0
- package/assets/sounds/tanks/victory.mp3 +0 -0
- package/assets/sounds/tanks/victory.ogg +0 -0
- package/dist/chunks/{BattleshipGameCard-CW_A8Nim.js → BattleshipGameCard-CAWHxqJE.js} +307 -306
- package/dist/chunks/{BattleshipGameCard-CW_A8Nim.js.map → BattleshipGameCard-CAWHxqJE.js.map} +1 -1
- package/dist/chunks/{BattleshipPrototype-Duz-S1JE.js → BattleshipPrototype-CmQd5AUO.js} +55 -54
- package/dist/chunks/{BattleshipPrototype-Duz-S1JE.js.map → BattleshipPrototype-CmQd5AUO.js.map} +1 -1
- package/dist/chunks/ChatContext-CUiEAMKK.js +90 -0
- package/dist/chunks/ChatContext-CUiEAMKK.js.map +1 -0
- package/dist/chunks/TanksGameCard-BEnXTz_J.js +1705 -0
- package/dist/chunks/TanksGameCard-BEnXTz_J.js.map +1 -0
- package/dist/chunks/{battleship-DXKuIZ1I.js → board-DXKuIZ1I.js} +1 -1
- package/dist/chunks/board-DXKuIZ1I.js.map +1 -0
- package/dist/chunks/connect4Sounds-BDXQAvU1.js +3199 -0
- package/dist/chunks/connect4Sounds-BDXQAvU1.js.map +1 -0
- package/dist/chunks/core-geo-UJY-tH9L.js +361 -0
- package/dist/chunks/core-geo-UJY-tH9L.js.map +1 -0
- package/dist/chunks/createBattleScene-L4ZRWDED.js +1265 -0
- package/dist/chunks/createBattleScene-L4ZRWDED.js.map +1 -0
- package/dist/chunks/createTankScene-BuliAxwR.js +2150 -0
- package/dist/chunks/createTankScene-BuliAxwR.js.map +1 -0
- package/dist/index.js +3677 -3644
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/index.d.ts +4 -0
- package/package.json +1 -1
- package/dist/chunks/battleship-DXKuIZ1I.js.map +0 -1
- package/dist/chunks/connect4Sounds-Do3nvVFx.js +0 -1847
- package/dist/chunks/connect4Sounds-Do3nvVFx.js.map +0 -1
- package/dist/chunks/createBattleScene-HIAvjixn.js +0 -1621
- package/dist/chunks/createBattleScene-HIAvjixn.js.map +0 -1
package/README.md
CHANGED
|
@@ -230,6 +230,7 @@ const config = {
|
|
|
230
230
|
enabled: true,
|
|
231
231
|
autoPlay: true,
|
|
232
232
|
sound: true,
|
|
233
|
+
backgroundSound: true,
|
|
233
234
|
volume: 0.35,
|
|
234
235
|
cooldownMs: 5000,
|
|
235
236
|
maxAgeMs: 10000,
|
|
@@ -247,7 +248,10 @@ alongside the versioned payload. Set `effects: false` to disable the feature.
|
|
|
247
248
|
Audio requires browser permission to play after a user gesture and respects the chat's
|
|
248
249
|
mute control. Effects stop when closed or when leaving the conversation; motion reduction
|
|
249
250
|
uses a static alternative. History, duplicates and reconnection baselines do not trigger
|
|
250
|
-
automatic playback. Automatic
|
|
251
|
+
automatic playback. Automatic animations require a visible conversation in a visible tab.
|
|
252
|
+
With `backgroundSound` (default `true`), an effect nobody is watching — hidden tab, closed
|
|
253
|
+
chat window or another conversation — still plays its sound, like new-message sounds; returning
|
|
254
|
+
to that conversation within `maxAgeMs` replays it with its animation. Same-origin
|
|
251
255
|
tab deduplication is best effort. Receiving clients use a cooldown and ignore stale events.
|
|
252
256
|
The server should enforce its own authorization and rate limits; browser controls alone
|
|
253
257
|
cannot prevent abusive clients.
|
|
@@ -286,7 +290,7 @@ excluded from npm. Source generators are in `demo/audio-lab/`; see
|
|
|
286
290
|
|
|
287
291
|
New incoming effects automatically animate in the visible conversation by default;
|
|
288
292
|
manual replay is still available. The default cooldown is 5 seconds. Window focus is
|
|
289
|
-
not required
|
|
293
|
+
not required; hidden tabs only play the sound (see `backgroundSound`) and old messages do not replay effects. A new permitted
|
|
290
294
|
effect can replace the animation currently playing. Confetti fills the panel with
|
|
291
295
|
220 colored particles and scales to its height. Reduced-motion preferences remain respected.
|
|
292
296
|
Browsers can still block sound before the recipient interacts with the site; the visual
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|