@wistia/ui 0.15.12-beta.3ecc0076.d529776 → 0.15.12-beta.92147bae.2ac7d78
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 +3 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +3 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.15.12-beta.
|
|
3
|
+
* @license @wistia/ui v0.15.12-beta.92147bae.2ac7d78
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -12997,7 +12997,6 @@ var Combobox2 = ({
|
|
|
12997
12997
|
// src/components/ContextMenu/ContextMenu.tsx
|
|
12998
12998
|
var import_type_guards42 = require("@wistia/type-guards");
|
|
12999
12999
|
var import_react61 = require("react");
|
|
13000
|
-
var import_react_dom = require("react-dom");
|
|
13001
13000
|
|
|
13002
13001
|
// src/components/Menu/Menu.tsx
|
|
13003
13002
|
var import_react_dropdown_menu = require("@radix-ui/react-dropdown-menu");
|
|
@@ -13687,10 +13686,7 @@ var ContextMenu = ({
|
|
|
13687
13686
|
return () => null;
|
|
13688
13687
|
}, [position, triggerRef]);
|
|
13689
13688
|
const isOpen = (0, import_type_guards42.isNotNil)(position) || isRightClicked;
|
|
13690
|
-
|
|
13691
|
-
return null;
|
|
13692
|
-
}
|
|
13693
|
-
const menu = /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(
|
|
13689
|
+
return isOpen ? /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(
|
|
13694
13690
|
Menu,
|
|
13695
13691
|
{
|
|
13696
13692
|
isOpen,
|
|
@@ -13718,11 +13714,7 @@ var ContextMenu = ({
|
|
|
13718
13714
|
),
|
|
13719
13715
|
children
|
|
13720
13716
|
}
|
|
13721
|
-
);
|
|
13722
|
-
if ((0, import_type_guards42.isNotNil)(triggerRef)) {
|
|
13723
|
-
return (0, import_react_dom.createPortal)(menu, document.body);
|
|
13724
|
-
}
|
|
13725
|
-
return menu;
|
|
13717
|
+
) : null;
|
|
13726
13718
|
};
|
|
13727
13719
|
|
|
13728
13720
|
// src/components/DataCards/DataCard.tsx
|