@wistia/vhs 3.0.0-beta.e44cd07a.b6b08c6 → 3.0.0-beta.f872b7d2.82f57f4

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-beta.e44cd07a.b6b08c6
3
+ * @license @wistia/vhs v3.0.0-beta.f872b7d2.82f57f4
4
4
  *
5
5
  * Copyright (c) 2021-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -4070,7 +4070,7 @@ var import_react13 = require("react");
4070
4070
  var import_react12 = require("react");
4071
4071
  var useTimedToggle = (initialValue) => {
4072
4072
  const [value, setValue] = (0, import_react12.useState)(false);
4073
- const timeoutRef = (0, import_react12.useRef)(void 0);
4073
+ const timeoutRef = (0, import_react12.useRef)();
4074
4074
  const initialValueRef = (0, import_react12.useRef)(initialValue);
4075
4075
  const toggleValue = (timeout2) => {
4076
4076
  clearTimeout(timeoutRef.current);
@@ -4143,8 +4143,8 @@ var isEventTargetSupported = (eventTarget) => (
4143
4143
  Boolean(typeof eventTarget === "object" && eventTarget?.addEventListener)
4144
4144
  );
4145
4145
  var useEvent = (eventName, eventHandler, eventTarget = window, eventOptions = {}) => {
4146
- const savedEventHandler = (0, import_react15.useRef)(void 0);
4147
- const savedEventOptions = (0, import_react15.useRef)(void 0);
4146
+ const savedEventHandler = (0, import_react15.useRef)();
4147
+ const savedEventOptions = (0, import_react15.useRef)();
4148
4148
  (0, import_react15.useEffect)(() => {
4149
4149
  savedEventHandler.current = eventHandler;
4150
4150
  }, [eventHandler]);
@@ -4581,7 +4581,7 @@ var usePreventScroll = (locked) => {
4581
4581
  // src/hooks/usePreviousValue/usePreviousValue.ts
4582
4582
  var import_react25 = require("react");
4583
4583
  var usePreviousValue = (value) => {
4584
- const ref = (0, import_react25.useRef)(void 0);
4584
+ const ref = (0, import_react25.useRef)();
4585
4585
  (0, import_react25.useEffect)(() => {
4586
4586
  ref.current = value;
4587
4587
  });
@@ -4678,7 +4678,7 @@ var ModalBaseContent = ({
4678
4678
  const wasJustShown = usePreviousValue(isShown);
4679
4679
  const hide = () => setIsShownAttempted(false);
4680
4680
  const show = (0, import_react28.useCallback)(() => setIsShownAttempted(true), []);
4681
- const toggleButtonRef = (0, import_react28.useRef)(void 0);
4681
+ const toggleButtonRef = (0, import_react28.useRef)();
4682
4682
  const modalEl = document.createElement("div");
4683
4683
  modalEl.classList.add("Modal");
4684
4684
  if ((0, import_type_guards11.isNotUndefined)(className)) {
@@ -7694,7 +7694,7 @@ var import_react43 = require("react");
7694
7694
  var import_react42 = require("react");
7695
7695
  var useTimeoutFunc = (func, timeout2 = 0) => {
7696
7696
  const readyRef = (0, import_react42.useRef)(false);
7697
- const timeoutRef = (0, import_react42.useRef)(void 0);
7697
+ const timeoutRef = (0, import_react42.useRef)();
7698
7698
  const callbackRef = (0, import_react42.useRef)(func);
7699
7699
  const isReady = (0, import_react42.useCallback)(() => readyRef.current, []);
7700
7700
  const set = (0, import_react42.useCallback)(() => {
@@ -11433,7 +11433,7 @@ var Menu2 = (0, import_react56.forwardRef)(
11433
11433
  onClose,
11434
11434
  ...otherProps
11435
11435
  }, ref) => {
11436
- const menuRef = (0, import_react56.useRef)(void 0);
11436
+ const menuRef = (0, import_react56.useRef)();
11437
11437
  const onClickOutsideFn = (0, import_type_guards59.isNotNil)(onClickOutside) ? onClickOutside : () => {
11438
11438
  };
11439
11439
  useOnClickOutside(menuRef, onClickOutsideFn);