@wistia/ui 0.15.11-beta.f489c1c2.ebd328f → 0.15.11
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 +4 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +4 -6
- 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.11
|
|
3
|
+
* @license @wistia/ui v0.15.11
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -14244,7 +14244,8 @@ var EditableHeading = ({
|
|
|
14244
14244
|
onBlur: handleFinishEditing,
|
|
14245
14245
|
onChange: (event) => setValue(event.target.value),
|
|
14246
14246
|
onFocus: (event) => {
|
|
14247
|
-
event.currentTarget.
|
|
14247
|
+
const { length } = event.currentTarget.value;
|
|
14248
|
+
event.currentTarget.setSelectionRange(length, length);
|
|
14248
14249
|
},
|
|
14249
14250
|
onKeyDown: handleKeyDown,
|
|
14250
14251
|
type: "multiline",
|
|
@@ -14487,9 +14488,9 @@ var EditableTextDisplay = makePolymorphic(
|
|
|
14487
14488
|
);
|
|
14488
14489
|
|
|
14489
14490
|
// src/components/EditableText/EditableTextInput.tsx
|
|
14490
|
-
var import_type_guards46 = require("@wistia/type-guards");
|
|
14491
14491
|
var import_react66 = require("react");
|
|
14492
14492
|
var import_styled_components84 = __toESM(require("styled-components"));
|
|
14493
|
+
var import_type_guards46 = require("@wistia/type-guards");
|
|
14493
14494
|
var import_jsx_runtime279 = require("react/jsx-runtime");
|
|
14494
14495
|
var StyledInput2 = (0, import_styled_components84.default)(Input)`
|
|
14495
14496
|
&& {
|
|
@@ -14590,9 +14591,6 @@ var EditableTextInput = (props) => {
|
|
|
14590
14591
|
id,
|
|
14591
14592
|
onBlur: handleBlur2,
|
|
14592
14593
|
onChange: handleChange,
|
|
14593
|
-
onFocus: (event) => {
|
|
14594
|
-
event.currentTarget.select();
|
|
14595
|
-
},
|
|
14596
14594
|
onKeyDown: handleKeyDown,
|
|
14597
14595
|
placeholder,
|
|
14598
14596
|
type: "multiline",
|