@wistia/vhs 3.0.0 → 3.0.1-beta.2845005a.68f1236
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.cjs +19 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +25 -34
- package/dist/index.mjs.map +1 -1
- package/package.json +23 -20
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/vhs v3.0.
|
|
3
|
+
* @license @wistia/vhs v3.0.1-beta.2845005a.68f1236
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2021-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -11075,10 +11075,7 @@ var MenuItem = ({
|
|
|
11075
11075
|
variant = "primary",
|
|
11076
11076
|
...props
|
|
11077
11077
|
}) => {
|
|
11078
|
-
|
|
11079
|
-
if ((0, import_type_guards58.isUndefined)(renderAs)) {
|
|
11080
|
-
as = (0, import_type_guards58.isNotUndefined)(href) ? "a" : "div";
|
|
11081
|
-
}
|
|
11078
|
+
const as = renderAs ?? ((0, import_type_guards58.isNotUndefined)(href) ? "a" : "div");
|
|
11082
11079
|
const targetProp = as === "a" && (0, import_type_guards58.isNonEmptyString)(target) ? { target } : {};
|
|
11083
11080
|
return /* @__PURE__ */ (0, import_jsx_runtime193.jsx)(
|
|
11084
11081
|
import_react_dropdown_menu2.DropdownMenuItem,
|
|
@@ -13479,32 +13476,26 @@ var Slider = ({
|
|
|
13479
13476
|
);
|
|
13480
13477
|
},
|
|
13481
13478
|
renderThumb: (thumbProps, thumbState) => {
|
|
13482
|
-
const { key, ...restProps } = thumbProps;
|
|
13483
|
-
return (
|
|
13484
|
-
|
|
13485
|
-
|
|
13486
|
-
|
|
13487
|
-
{
|
|
13488
|
-
|
|
13489
|
-
|
|
13490
|
-
},
|
|
13491
|
-
key
|
|
13492
|
-
)
|
|
13479
|
+
const { key, as, ...restProps } = thumbProps;
|
|
13480
|
+
return /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
|
|
13481
|
+
StyledThumb,
|
|
13482
|
+
{
|
|
13483
|
+
...restProps,
|
|
13484
|
+
"data-testid": `${dataTestId}-thumb-${thumbState.index}`
|
|
13485
|
+
},
|
|
13486
|
+
key
|
|
13493
13487
|
);
|
|
13494
13488
|
},
|
|
13495
13489
|
renderTrack: (trackProps, trackState) => {
|
|
13496
|
-
const { key, ...restProps } = trackProps;
|
|
13497
|
-
return (
|
|
13498
|
-
|
|
13499
|
-
|
|
13500
|
-
|
|
13501
|
-
|
|
13502
|
-
|
|
13503
|
-
|
|
13504
|
-
|
|
13505
|
-
},
|
|
13506
|
-
key
|
|
13507
|
-
)
|
|
13490
|
+
const { key, as, ...restProps } = trackProps;
|
|
13491
|
+
return /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
|
|
13492
|
+
StyledTrack,
|
|
13493
|
+
{
|
|
13494
|
+
...restProps,
|
|
13495
|
+
$isFilledTrack: checkIfFilledTrack(trackState),
|
|
13496
|
+
"data-testid": `${dataTestId}-track-${trackState.index}`
|
|
13497
|
+
},
|
|
13498
|
+
key
|
|
13508
13499
|
);
|
|
13509
13500
|
},
|
|
13510
13501
|
step,
|