@arraypress/waveform-player-astro 0.1.3 → 0.3.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 +8 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arraypress/waveform-player-astro",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.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.13.1",
|
|
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,11 @@ const {
|
|
|
141
141
|
showTime,
|
|
142
142
|
showHoverTime,
|
|
143
143
|
showBPM,
|
|
144
|
+
bpm,
|
|
144
145
|
buttonAlign,
|
|
146
|
+
layout,
|
|
147
|
+
buttonStyle,
|
|
148
|
+
buttonSize,
|
|
145
149
|
// Accessibility + error UI
|
|
146
150
|
accessibleSeek,
|
|
147
151
|
seekLabel,
|
|
@@ -262,7 +266,11 @@ setBool('data-show-hover-time', showHoverTime);
|
|
|
262
266
|
// The library's data-attribute parser reads `data-show-bpm` (lowercased
|
|
263
267
|
// `bpm`), NOT `data-show-b-p-m`. Get this wrong and BPM never displays.
|
|
264
268
|
setBool('data-show-bpm', showBPM);
|
|
269
|
+
setNum('data-bpm', bpm);
|
|
265
270
|
setStr('data-button-align', buttonAlign ?? null);
|
|
271
|
+
setStr('data-layout', layout ?? null);
|
|
272
|
+
setStr('data-button-style', buttonStyle ?? null);
|
|
273
|
+
setStr('data-button-size', buttonSize != null ? String(buttonSize) : null);
|
|
266
274
|
|
|
267
275
|
// ─── Accessibility + error UI ────────────────────────────────────────────
|
|
268
276
|
setBool('data-accessible-seek', accessibleSeek);
|