@wistia/vhs 5.0.0 → 5.0.1-beta.0b7803bf.436bb68

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.0
3
+ * @license @wistia/vhs v5.0.1-beta.0b7803bf.436bb68
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
  */
@@ -588,7 +588,7 @@ var objectHelpers = { isObject, deepFreeze, merge, selectKeys };
588
588
  var camelCase = (str = "") => (
589
589
  // https://stackoverflow.com/questions/2970525/converting-any-string-into-camel-case
590
590
  str.replace(/(?:^\w|[A-Z]|\b\w|\s+)/g, (match, index) => {
591
- if (+match === 0) {
591
+ if (Number(match) === 0) {
592
592
  return "";
593
593
  }
594
594
  return index === 0 ? match.toLowerCase() : match.toUpperCase();
@@ -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, {
@@ -10730,7 +10730,7 @@ List.displayName = "List_VHS";
10730
10730
  import { DropdownMenuRadioGroup } from "@radix-ui/react-dropdown-menu";
10731
10731
 
10732
10732
  // src/components/Menu/Menu.tsx
10733
- import { styled as styled50, css as css23, keyframes } from "styled-components";
10733
+ import { styled as styled50 } from "styled-components";
10734
10734
  import {
10735
10735
  DropdownMenu,
10736
10736
  DropdownMenuTrigger,
@@ -10738,7 +10738,9 @@ import {
10738
10738
  DropdownMenuContent
10739
10739
  } from "@radix-ui/react-dropdown-menu";
10740
10740
  import { isNotNil as isNotNil30, isNotUndefined as isNotUndefined12 } from "@wistia/type-guards";
10741
- import { jsx as jsx193, jsxs as jsxs34 } from "react/jsx-runtime";
10741
+
10742
+ // src/components/Menu/menuContentCss.ts
10743
+ import { css as css23, keyframes } from "styled-components";
10742
10744
  var gutterWidth = "8px";
10743
10745
  var open = keyframes`
10744
10746
  from {
@@ -10790,6 +10792,9 @@ var menuContentCss = css23`
10790
10792
  margin: ${({ theme: theme2 }) => theme2.spacing.space02} 0;
10791
10793
  }
10792
10794
  `;
10795
+
10796
+ // src/components/Menu/Menu.tsx
10797
+ import { jsx as jsx193, jsxs as jsxs34 } from "react/jsx-runtime";
10793
10798
  var MenuContent = styled50(DropdownMenuContent)`
10794
10799
  ${menuContentCss}
10795
10800
  `;
@@ -12326,7 +12331,7 @@ var RangeSelectorCalendar = ({
12326
12331
  }, [internalRange, onIsValidChangeDebounced]);
12327
12332
  useEffect22(() => {
12328
12333
  if (isValidRange(range)) {
12329
- let date;
12334
+ let date = void 0;
12330
12335
  if (priorInternalRange && !isEqual3(range.start, priorInternalRange.start)) {
12331
12336
  date = range.start;
12332
12337
  }
@@ -12552,7 +12557,7 @@ import isEqual4 from "react-fast-compare";
12552
12557
  // src/private/components/RangeSelectorInput/utils.ts
12553
12558
  import { isValid as isValid2, getDaysInMonth, getYear, isBefore as isBefore3, isSameDay as isSameDay2, compareAsc as compareAsc2 } from "date-fns";
12554
12559
  import { isNotNil as isNotNil39 } from "@wistia/type-guards";
12555
- var timeout;
12560
+ var timeout = void 0;
12556
12561
  var preventDoubleClick = (event) => {
12557
12562
  const delay = 200;
12558
12563
  if (isNotNil39(timeout)) {
@@ -12797,7 +12802,7 @@ var getNextValue = ({
12797
12802
  return { nextValue, nextKeyCount, shouldApply };
12798
12803
  };
12799
12804
  var getNextSelection = ({ event, currentSelection }) => {
12800
- let nextSelection;
12805
+ let nextSelection = void 0;
12801
12806
  if (isMoveRightChar(event)) {
12802
12807
  nextSelection = getSelectionFromMove(currentSelection, 1, DATE_PART_POSITIONS);
12803
12808
  if (!isEqual4(nextSelection, currentSelection)) {