@wistia/ui 0.15.11 → 0.15.12-beta.4ccc4307.9870827
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 +8 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.mjs +8 -2
- 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.4ccc4307.9870827
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -13666,7 +13666,8 @@ var ContextMenu = ({
|
|
|
13666
13666
|
triggerRef,
|
|
13667
13667
|
children,
|
|
13668
13668
|
side = "bottom",
|
|
13669
|
-
onRequestClose = () => null
|
|
13669
|
+
onRequestClose = () => null,
|
|
13670
|
+
compact = false
|
|
13670
13671
|
}) => {
|
|
13671
13672
|
const [isRightClicked, setIsRightClicked] = (0, import_react61.useState)(false);
|
|
13672
13673
|
const [menuPosition, setMenuPosition] = (0, import_react61.useState)(position ?? { x: 0, y: 0 });
|
|
@@ -13689,6 +13690,7 @@ var ContextMenu = ({
|
|
|
13689
13690
|
return isOpen ? /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(
|
|
13690
13691
|
Menu,
|
|
13691
13692
|
{
|
|
13693
|
+
compact,
|
|
13692
13694
|
isOpen,
|
|
13693
13695
|
onOpenChange: (next) => {
|
|
13694
13696
|
setIsRightClicked(next);
|
|
@@ -14591,6 +14593,10 @@ var EditableTextInput = (props) => {
|
|
|
14591
14593
|
id,
|
|
14592
14594
|
onBlur: handleBlur2,
|
|
14593
14595
|
onChange: handleChange,
|
|
14596
|
+
onFocus: (event) => {
|
|
14597
|
+
const { length } = event.currentTarget.value;
|
|
14598
|
+
event.currentTarget.setSelectionRange(length, length);
|
|
14599
|
+
},
|
|
14594
14600
|
onKeyDown: handleKeyDown,
|
|
14595
14601
|
placeholder,
|
|
14596
14602
|
type: "multiline",
|