strata-react 1.3.21 → 1.3.22
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/UPGRADING.md +3 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/UPGRADING.md
CHANGED
|
@@ -11,6 +11,9 @@ time. While the version is 0.x, any release may break.
|
|
|
11
11
|
|
|
12
12
|
Every PR that changes what an app sees adds a line here (see `CLAUDE.md`, "Changelog").
|
|
13
13
|
|
|
14
|
+
## 2026-11-25 (seek bar marks past the end)
|
|
15
|
+
- **`SeekBar` (and `MediaPlayer` through it) no longer draws a mark outside 0 to the duration.** A test that found a mark button past the loaded file's end will not find it; pass marks within the file.
|
|
16
|
+
|
|
14
17
|
## 2026-11-25 (CompositionBar, #377)
|
|
15
18
|
- `CompositionBar` no longer crashes a production build when a sixth part has no `colour`: it folds the smallest into "Other" and logs `console.error`. Development and tests still throw. Parts that come from data should pass `other={{ label }}` to fold on purpose; a test that expected the throw under `NODE_ENV=production` now sees the folded bar.
|
|
16
19
|
|
package/dist/index.js
CHANGED
|
@@ -3817,7 +3817,7 @@ function SeekBar({ time, duration: known, onSeek, marks = [], spans = [], onMark
|
|
|
3817
3817
|
className: "absolute top-1/2 h-4 w-px -translate-y-1/2 bg-foreground/60",
|
|
3818
3818
|
style: { left: `${otherTime / duration * 100}%` }
|
|
3819
3819
|
}),
|
|
3820
|
-
duration > 0 && marks.map((m) => /* @__PURE__ */ jsx("button", {
|
|
3820
|
+
duration > 0 && marks.filter((m) => m.time >= 0 && m.time <= duration).map((m) => /* @__PURE__ */ jsx("button", {
|
|
3821
3821
|
type: "button",
|
|
3822
3822
|
tabIndex: -1,
|
|
3823
3823
|
disabled,
|