@wistia/ui 0.15.11 → 0.15.12-beta.3ecc0076.d529776
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 +15 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +15 -3
- 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.
|
|
3
|
+
* @license @wistia/ui v0.15.12-beta.3ecc0076.d529776
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -12997,6 +12997,7 @@ 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");
|
|
13000
13001
|
|
|
13001
13002
|
// src/components/Menu/Menu.tsx
|
|
13002
13003
|
var import_react_dropdown_menu = require("@radix-ui/react-dropdown-menu");
|
|
@@ -13686,7 +13687,10 @@ var ContextMenu = ({
|
|
|
13686
13687
|
return () => null;
|
|
13687
13688
|
}, [position, triggerRef]);
|
|
13688
13689
|
const isOpen = (0, import_type_guards42.isNotNil)(position) || isRightClicked;
|
|
13689
|
-
|
|
13690
|
+
if (!isOpen) {
|
|
13691
|
+
return null;
|
|
13692
|
+
}
|
|
13693
|
+
const menu = /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(
|
|
13690
13694
|
Menu,
|
|
13691
13695
|
{
|
|
13692
13696
|
isOpen,
|
|
@@ -13714,7 +13718,11 @@ var ContextMenu = ({
|
|
|
13714
13718
|
),
|
|
13715
13719
|
children
|
|
13716
13720
|
}
|
|
13717
|
-
)
|
|
13721
|
+
);
|
|
13722
|
+
if ((0, import_type_guards42.isNotNil)(triggerRef)) {
|
|
13723
|
+
return (0, import_react_dom.createPortal)(menu, document.body);
|
|
13724
|
+
}
|
|
13725
|
+
return menu;
|
|
13718
13726
|
};
|
|
13719
13727
|
|
|
13720
13728
|
// src/components/DataCards/DataCard.tsx
|
|
@@ -14591,6 +14599,10 @@ var EditableTextInput = (props) => {
|
|
|
14591
14599
|
id,
|
|
14592
14600
|
onBlur: handleBlur2,
|
|
14593
14601
|
onChange: handleChange,
|
|
14602
|
+
onFocus: (event) => {
|
|
14603
|
+
const { length } = event.currentTarget.value;
|
|
14604
|
+
event.currentTarget.setSelectionRange(length, length);
|
|
14605
|
+
},
|
|
14594
14606
|
onKeyDown: handleKeyDown,
|
|
14595
14607
|
placeholder,
|
|
14596
14608
|
type: "multiline",
|