@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 CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/vhs v3.0.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
- let as = renderAs;
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
- // @ts-expect-error complains about styled-components `as` prop
13485
- /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
13486
- StyledThumb,
13487
- {
13488
- ...restProps,
13489
- "data-testid": `${dataTestId}-thumb-${thumbState.index}`
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
- // @ts-expect-error complains about styled-components `as` prop
13499
- /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
13500
- StyledTrack,
13501
- {
13502
- ...restProps,
13503
- $isFilledTrack: checkIfFilledTrack(trackState),
13504
- "data-testid": `${dataTestId}-track-${trackState.index}`
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,