@wistia/vhs 5.0.0 → 5.0.1-beta.2b4d95c2.c66d06d

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.2b4d95c2.c66d06d
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
  `;