@wistia/vhs 5.0.1 → 5.0.2-beta.03e366fb.00227d2

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 CHANGED
@@ -1,8 +1,8 @@
1
1
 
2
2
  /*
3
- * @license @wistia/vhs v5.0.1
3
+ * @license @wistia/vhs v5.0.2-beta.03e366fb.00227d2
4
4
  *
5
- * Copyright (c) 2021-2025, Wistia, Inc. and its affiliates.
5
+ * Copyright (c) 2021-2026, Wistia, Inc. and its affiliates.
6
6
  *
7
7
  * This source code is unlicensed, all rights reserved.
8
8
  */
@@ -4310,7 +4310,7 @@ var createKeyPredicate = (keyFilter) => {
4310
4310
  if (typeof keyFilter === "string") {
4311
4311
  return (event) => event.key === keyFilter;
4312
4312
  }
4313
- if (keyFilter !== null && keyFilter !== void 0 && Boolean(keyFilter)) {
4313
+ if (keyFilter !== null && keyFilter !== void 0 && keyFilter) {
4314
4314
  return () => true;
4315
4315
  }
4316
4316
  return () => false;
@@ -9460,7 +9460,7 @@ import { Transforms as Transforms3, Element as Element5, Node, Editor, Range, Pa
9460
9460
  import { isNonEmptyString as isNonEmptyString9 } from "@wistia/type-guards";
9461
9461
  var isHashUrl = (urlString) => {
9462
9462
  const urlPattern = /^#.+$/i;
9463
- return Boolean(urlPattern.test(urlString));
9463
+ return urlPattern.test(urlString);
9464
9464
  };
9465
9465
  var isLinkActive = (editor) => {
9466
9466
  const [link] = Editor.nodes(editor, {
@@ -10651,11 +10651,11 @@ var ListComponent = styled49.ul`
10651
10651
  list-style-position: outside;
10652
10652
  margin: ${({ theme: theme2 }) => `0 0 ${theme2.spacing.space01}`};
10653
10653
  padding: ${({ theme: theme2 }) => `0 0 0 ${theme2.spacing.space04}`};
10654
- ${({ variant }) => variant === "unbulleted" && unbulletedStyle};
10655
- ${({ variant }) => variant === "spaces" && spacesStyle};
10656
- ${({ variant }) => variant === "commas" && commasStyle};
10657
- ${({ variant }) => variant === "slashes" && slashesStyle};
10658
- ${({ variant }) => variant === "breadcrumbs" && breadcrumbsStyle};
10654
+ ${({ $variant }) => $variant === "unbulleted" && unbulletedStyle};
10655
+ ${({ $variant }) => $variant === "spaces" && spacesStyle};
10656
+ ${({ $variant }) => $variant === "commas" && commasStyle};
10657
+ ${({ $variant }) => $variant === "slashes" && slashesStyle};
10658
+ ${({ $variant }) => $variant === "breadcrumbs" && breadcrumbsStyle};
10659
10659
 
10660
10660
  > li:last-child {
10661
10661
  margin-bottom: 0;
@@ -10677,8 +10677,8 @@ var renderListComponent = (listItems, variant, { ...otherProps }) => {
10677
10677
  return /* @__PURE__ */ jsx192(
10678
10678
  ListComponent,
10679
10679
  {
10680
+ $variant: variant,
10680
10681
  as: elementType,
10681
- variant,
10682
10682
  ...otherProps,
10683
10683
  children: listItems
10684
10684
  }
@@ -11217,7 +11217,6 @@ var MenuComponent = styled54.div`
11217
11217
  }
11218
11218
  `;
11219
11219
  var dangerousMenuItemStyles2 = css25`
11220
- /* stylelint-disable no-descending-specificity */
11221
11220
  button,
11222
11221
  a {
11223
11222
  &:hover {
@@ -12331,7 +12330,7 @@ var RangeSelectorCalendar = ({
12331
12330
  }, [internalRange, onIsValidChangeDebounced]);
12332
12331
  useEffect22(() => {
12333
12332
  if (isValidRange(range)) {
12334
- let date;
12333
+ let date = void 0;
12335
12334
  if (priorInternalRange && !isEqual3(range.start, priorInternalRange.start)) {
12336
12335
  date = range.start;
12337
12336
  }
@@ -12557,7 +12556,7 @@ import isEqual4 from "react-fast-compare";
12557
12556
  // src/private/components/RangeSelectorInput/utils.ts
12558
12557
  import { isValid as isValid2, getDaysInMonth, getYear, isBefore as isBefore3, isSameDay as isSameDay2, compareAsc as compareAsc2 } from "date-fns";
12559
12558
  import { isNotNil as isNotNil39 } from "@wistia/type-guards";
12560
- var timeout;
12559
+ var timeout = void 0;
12561
12560
  var preventDoubleClick = (event) => {
12562
12561
  const delay = 200;
12563
12562
  if (isNotNil39(timeout)) {
@@ -12802,7 +12801,7 @@ var getNextValue = ({
12802
12801
  return { nextValue, nextKeyCount, shouldApply };
12803
12802
  };
12804
12803
  var getNextSelection = ({ event, currentSelection }) => {
12805
- let nextSelection;
12804
+ let nextSelection = void 0;
12806
12805
  if (isMoveRightChar(event)) {
12807
12806
  nextSelection = getSelectionFromMove(currentSelection, 1, DATE_PART_POSITIONS);
12808
12807
  if (!isEqual4(nextSelection, currentSelection)) {
@@ -13398,10 +13397,11 @@ var Slider = ({
13398
13397
  );
13399
13398
  },
13400
13399
  renderThumb: (thumbProps, thumbState) => {
13401
- const { key, as, ...restProps } = thumbProps;
13400
+ const { key, as, ref, ...restProps } = thumbProps;
13402
13401
  return /* @__PURE__ */ jsx209(
13403
13402
  StyledThumb,
13404
13403
  {
13404
+ ref,
13405
13405
  ...restProps,
13406
13406
  "data-testid": `${dataTestId}-thumb-${thumbState.index}`
13407
13407
  },
@@ -13409,10 +13409,11 @@ var Slider = ({
13409
13409
  );
13410
13410
  },
13411
13411
  renderTrack: (trackProps, trackState) => {
13412
- const { key, as, ...restProps } = trackProps;
13412
+ const { key, as, ref, ...restProps } = trackProps;
13413
13413
  return /* @__PURE__ */ jsx209(
13414
13414
  StyledTrack,
13415
13415
  {
13416
+ ref,
13416
13417
  ...restProps,
13417
13418
  $isFilledTrack: checkIfFilledTrack(trackState),
13418
13419
  "data-testid": `${dataTestId}-track-${trackState.index}`