@waveform-playlist/browser 5.3.1 → 5.3.2
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/index.js +4 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +23 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +9 -9
package/dist/index.mjs
CHANGED
|
@@ -7221,10 +7221,10 @@ const Mr = Ee(null), Er = Ee(null), Dr = Ee(null), Tr = Ee(null), bl = ({
|
|
|
7221
7221
|
);
|
|
7222
7222
|
}, $l = ({ className: e, disabled: t }) => {
|
|
7223
7223
|
const { zoomIn: n } = ve(), { canZoomIn: r } = Te();
|
|
7224
|
-
return /* @__PURE__ */ C(Ye, {
|
|
7224
|
+
return /* @__PURE__ */ C(Ye, { onClick: n, disabled: t || !r, className: e, children: "Zoom In" });
|
|
7225
7225
|
}, Ml = ({ className: e, disabled: t }) => {
|
|
7226
7226
|
const { zoomOut: n } = ve(), { canZoomOut: r } = Te();
|
|
7227
|
-
return /* @__PURE__ */ C(Ye, {
|
|
7227
|
+
return /* @__PURE__ */ C(Ye, { onClick: n, disabled: t || !r, className: e, children: "Zoom Out" });
|
|
7228
7228
|
}, El = ({ className: e }) => {
|
|
7229
7229
|
const { masterVolume: t } = Te(), { setMasterVolume: n } = ve();
|
|
7230
7230
|
return /* @__PURE__ */ C(
|
|
@@ -7375,12 +7375,15 @@ const Mr = Ee(null), Er = Ee(null), Dr = Ee(null), Tr = Ee(null), bl = ({
|
|
|
7375
7375
|
children: h
|
|
7376
7376
|
}
|
|
7377
7377
|
);
|
|
7378
|
-
}, Mi = M.div
|
|
7378
|
+
}, Mi = M.div.attrs((e) => ({
|
|
7379
|
+
style: {
|
|
7380
|
+
width: `${e.$width}px`,
|
|
7381
|
+
background: e.$color
|
|
7382
|
+
}
|
|
7383
|
+
}))`
|
|
7379
7384
|
position: absolute;
|
|
7380
7385
|
top: 0;
|
|
7381
7386
|
left: 0;
|
|
7382
|
-
width: ${(e) => e.$width}px;
|
|
7383
|
-
background: ${(e) => e.$color};
|
|
7384
7387
|
height: 100%;
|
|
7385
7388
|
z-index: 100; /* Below sticky controls (z-index: 101) so playhead is hidden when scrolled behind controls */
|
|
7386
7389
|
pointer-events: none;
|
|
@@ -7415,24 +7418,30 @@ const Mr = Ee(null), Er = Ee(null), Dr = Ee(null), Tr = Ee(null), bl = ({
|
|
|
7415
7418
|
}), /* @__PURE__ */ C(Mi, { ref: n, $color: e, $width: u, "data-playhead": !0 });
|
|
7416
7419
|
}, Di = M.div`
|
|
7417
7420
|
position: relative;
|
|
7418
|
-
`, jt = M.div
|
|
7421
|
+
`, jt = M.div.attrs((e) => ({
|
|
7422
|
+
style: {
|
|
7423
|
+
top: `${e.$top}px`,
|
|
7424
|
+
width: `${e.$width}px`,
|
|
7425
|
+
height: `${e.$height}px`,
|
|
7426
|
+
background: e.$color
|
|
7427
|
+
}
|
|
7428
|
+
}))`
|
|
7419
7429
|
position: absolute;
|
|
7420
|
-
top: ${(e) => e.$top}px;
|
|
7421
7430
|
left: 0;
|
|
7422
|
-
width: ${(e) => e.$width}px;
|
|
7423
|
-
height: ${(e) => e.$height}px;
|
|
7424
|
-
background: ${(e) => e.$color};
|
|
7425
7431
|
z-index: 0;
|
|
7426
7432
|
/* Force GPU compositing layer to prevent gradient flickering during scroll */
|
|
7427
7433
|
transform: translateZ(0);
|
|
7428
7434
|
backface-visibility: hidden;
|
|
7429
7435
|
will-change: transform;
|
|
7430
|
-
`, Ti = M.div
|
|
7436
|
+
`, Ti = M.div.attrs((e) => ({
|
|
7437
|
+
style: {
|
|
7438
|
+
top: `${e.$top}px`,
|
|
7439
|
+
height: `${e.$height}px`,
|
|
7440
|
+
background: e.$color
|
|
7441
|
+
}
|
|
7442
|
+
}))`
|
|
7431
7443
|
position: absolute;
|
|
7432
|
-
top: ${(e) => e.$top}px;
|
|
7433
7444
|
left: 0;
|
|
7434
|
-
height: ${(e) => e.$height}px;
|
|
7435
|
-
background: ${(e) => e.$color};
|
|
7436
7445
|
pointer-events: none;
|
|
7437
7446
|
z-index: 1;
|
|
7438
7447
|
will-change: width;
|