@wistia/vhs 5.0.0 → 5.0.1-beta.07d11e71.bd1a251

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.07d11e71.bd1a251
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
  `;
@@ -11212,7 +11217,6 @@ var MenuComponent = styled54.div`
11212
11217
  }
11213
11218
  `;
11214
11219
  var dangerousMenuItemStyles2 = css25`
11215
- /* stylelint-disable no-descending-specificity */
11216
11220
  button,
11217
11221
  a {
11218
11222
  &:hover {
@@ -12326,7 +12330,7 @@ var RangeSelectorCalendar = ({
12326
12330
  }, [internalRange, onIsValidChangeDebounced]);
12327
12331
  useEffect22(() => {
12328
12332
  if (isValidRange(range)) {
12329
- let date;
12333
+ let date = void 0;
12330
12334
  if (priorInternalRange && !isEqual3(range.start, priorInternalRange.start)) {
12331
12335
  date = range.start;
12332
12336
  }
@@ -12552,7 +12556,7 @@ import isEqual4 from "react-fast-compare";
12552
12556
  // src/private/components/RangeSelectorInput/utils.ts
12553
12557
  import { isValid as isValid2, getDaysInMonth, getYear, isBefore as isBefore3, isSameDay as isSameDay2, compareAsc as compareAsc2 } from "date-fns";
12554
12558
  import { isNotNil as isNotNil39 } from "@wistia/type-guards";
12555
- var timeout;
12559
+ var timeout = void 0;
12556
12560
  var preventDoubleClick = (event) => {
12557
12561
  const delay = 200;
12558
12562
  if (isNotNil39(timeout)) {
@@ -12797,7 +12801,7 @@ var getNextValue = ({
12797
12801
  return { nextValue, nextKeyCount, shouldApply };
12798
12802
  };
12799
12803
  var getNextSelection = ({ event, currentSelection }) => {
12800
- let nextSelection;
12804
+ let nextSelection = void 0;
12801
12805
  if (isMoveRightChar(event)) {
12802
12806
  nextSelection = getSelectionFromMove(currentSelection, 1, DATE_PART_POSITIONS);
12803
12807
  if (!isEqual4(nextSelection, currentSelection)) {
@@ -13393,10 +13397,11 @@ var Slider = ({
13393
13397
  );
13394
13398
  },
13395
13399
  renderThumb: (thumbProps, thumbState) => {
13396
- const { key, as, ...restProps } = thumbProps;
13400
+ const { key, as, ref, ...restProps } = thumbProps;
13397
13401
  return /* @__PURE__ */ jsx209(
13398
13402
  StyledThumb,
13399
13403
  {
13404
+ ref,
13400
13405
  ...restProps,
13401
13406
  "data-testid": `${dataTestId}-thumb-${thumbState.index}`
13402
13407
  },
@@ -13404,10 +13409,11 @@ var Slider = ({
13404
13409
  );
13405
13410
  },
13406
13411
  renderTrack: (trackProps, trackState) => {
13407
- const { key, as, ...restProps } = trackProps;
13412
+ const { key, as, ref, ...restProps } = trackProps;
13408
13413
  return /* @__PURE__ */ jsx209(
13409
13414
  StyledTrack,
13410
13415
  {
13416
+ ref,
13411
13417
  ...restProps,
13412
13418
  $isFilledTrack: checkIfFilledTrack(trackState),
13413
13419
  "data-testid": `${dataTestId}-track-${trackState.index}`
@@ -13872,6 +13878,9 @@ var WistiaLogo = ({
13872
13878
  return href !== void 0 ? /* @__PURE__ */ jsx214("a", { href, children: Logo }) : Logo;
13873
13879
  };
13874
13880
  WistiaLogo.displayName = "WistiaLogo_VHS";
13881
+
13882
+ // src/index.ts
13883
+ console.log("hello world");
13875
13884
  export {
13876
13885
  ActionModal,
13877
13886
  Avatar,