@wistia/ui 0.15.13-beta.a8953353.4dacd3e → 0.15.13

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/ui v0.15.13-beta.a8953353.4dacd3e
3
+ * @license @wistia/ui v0.15.13
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -13039,7 +13039,6 @@ var Combobox2 = ({
13039
13039
  // src/components/ContextMenu/ContextMenu.tsx
13040
13040
  var import_type_guards43 = require("@wistia/type-guards");
13041
13041
  var import_react61 = require("react");
13042
- var import_react_dom = require("react-dom");
13043
13042
 
13044
13043
  // src/components/Menu/Menu.tsx
13045
13044
  var import_react_dropdown_menu = require("@radix-ui/react-dropdown-menu");
@@ -13729,10 +13728,7 @@ var ContextMenu = ({
13729
13728
  return () => null;
13730
13729
  }, [position, triggerRef]);
13731
13730
  const isOpen = (0, import_type_guards43.isNotNil)(position) || isRightClicked;
13732
- if (!isOpen) {
13733
- return null;
13734
- }
13735
- const menu = /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(
13731
+ return isOpen ? /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(
13736
13732
  Menu,
13737
13733
  {
13738
13734
  isOpen,
@@ -13760,11 +13756,7 @@ var ContextMenu = ({
13760
13756
  ),
13761
13757
  children
13762
13758
  }
13763
- );
13764
- if ((0, import_type_guards43.isNotNil)(triggerRef)) {
13765
- return (0, import_react_dom.createPortal)(menu, document.body);
13766
- }
13767
- return menu;
13759
+ ) : null;
13768
13760
  };
13769
13761
 
13770
13762
  // src/components/DataCards/DataCard.tsx