@arraypress/waveform-player-astro 0.1.3 → 0.2.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/package.json +2 -2
- package/src/WaveformPlayer.astro +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arraypress/waveform-player-astro",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Astro component wrapper for @arraypress/waveform-player — typed props for every option, lazy-mount support, framework-idiomatic ergonomics.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"typecheck": "tsc --noEmit"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"@arraypress/waveform-player": "^1.
|
|
74
|
+
"@arraypress/waveform-player": "^1.12.0",
|
|
75
75
|
"astro": "^7.0.3",
|
|
76
76
|
"typescript": "^6.0.3",
|
|
77
77
|
"vitest": "^4.1.9"
|
package/src/WaveformPlayer.astro
CHANGED
|
@@ -141,7 +141,10 @@ const {
|
|
|
141
141
|
showTime,
|
|
142
142
|
showHoverTime,
|
|
143
143
|
showBPM,
|
|
144
|
+
bpm,
|
|
144
145
|
buttonAlign,
|
|
146
|
+
layout,
|
|
147
|
+
buttonStyle,
|
|
145
148
|
// Accessibility + error UI
|
|
146
149
|
accessibleSeek,
|
|
147
150
|
seekLabel,
|
|
@@ -262,7 +265,10 @@ setBool('data-show-hover-time', showHoverTime);
|
|
|
262
265
|
// The library's data-attribute parser reads `data-show-bpm` (lowercased
|
|
263
266
|
// `bpm`), NOT `data-show-b-p-m`. Get this wrong and BPM never displays.
|
|
264
267
|
setBool('data-show-bpm', showBPM);
|
|
268
|
+
setNum('data-bpm', bpm);
|
|
265
269
|
setStr('data-button-align', buttonAlign ?? null);
|
|
270
|
+
setStr('data-layout', layout ?? null);
|
|
271
|
+
setStr('data-button-style', buttonStyle ?? null);
|
|
266
272
|
|
|
267
273
|
// ─── Accessibility + error UI ────────────────────────────────────────────
|
|
268
274
|
setBool('data-accessible-seek', accessibleSeek);
|