@wistia/vhs 4.0.0-beta.d8f9ac3a.4f6efd8 → 4.0.0-beta.f802874f.b96ce51
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 +13 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +14 -5
- 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/vhs v4.0.0-beta.
|
|
3
|
+
* @license @wistia/vhs v4.0.0-beta.f802874f.b96ce51
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2021-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -6755,7 +6755,9 @@ var disabledStyle3 = import_styled_components30.css`
|
|
|
6755
6755
|
var errorHoverStyle = import_styled_components30.css`
|
|
6756
6756
|
border-color: transparent;
|
|
6757
6757
|
`;
|
|
6758
|
-
var errorFocusedStyle = import_styled_components30.css
|
|
6758
|
+
var errorFocusedStyle = import_styled_components30.css`
|
|
6759
|
+
outline: none;
|
|
6760
|
+
`;
|
|
6759
6761
|
var errorStyle = import_styled_components30.css`
|
|
6760
6762
|
background-color: ${({ theme: theme2 }) => theme2.color.error100};
|
|
6761
6763
|
border: 1px solid ${({ theme: theme2 }) => theme2.color.error500};
|
|
@@ -9364,7 +9366,7 @@ var import_slate_react = require("slate-react");
|
|
|
9364
9366
|
var import_styled_components48 = require("styled-components");
|
|
9365
9367
|
var import_jsx_runtime169 = require("react/jsx-runtime");
|
|
9366
9368
|
var Wrapper = import_styled_components48.styled.span`
|
|
9367
|
-
display:
|
|
9369
|
+
display: inline-block;
|
|
9368
9370
|
user-select: none;
|
|
9369
9371
|
`;
|
|
9370
9372
|
var Image = import_styled_components48.styled.img`
|
|
@@ -10205,6 +10207,13 @@ var RichTextEditor = ({
|
|
|
10205
10207
|
}
|
|
10206
10208
|
}
|
|
10207
10209
|
}, [editor]);
|
|
10210
|
+
const handleEditorClick = (0, import_react51.useCallback)(() => {
|
|
10211
|
+
const isEditorFocused = import_slate_react3.ReactEditor.isFocused(editor);
|
|
10212
|
+
if (!isEditorFocused) {
|
|
10213
|
+
import_slate_react3.ReactEditor.focus(editor);
|
|
10214
|
+
import_slate7.Transforms.select(editor, import_slate7.Editor.end(editor, []));
|
|
10215
|
+
}
|
|
10216
|
+
}, [editor]);
|
|
10208
10217
|
return (
|
|
10209
10218
|
// eslint-disable-next-line styled-components-a11y/click-events-have-key-events, styled-components-a11y/no-static-element-interactions
|
|
10210
10219
|
/* @__PURE__ */ (0, import_jsx_runtime183.jsx)(
|
|
@@ -10213,7 +10222,7 @@ var RichTextEditor = ({
|
|
|
10213
10222
|
"data-testid": dataTestId,
|
|
10214
10223
|
disabled,
|
|
10215
10224
|
height,
|
|
10216
|
-
onClick:
|
|
10225
|
+
onClick: handleEditorClick,
|
|
10217
10226
|
children: /* @__PURE__ */ (0, import_jsx_runtime183.jsxs)(
|
|
10218
10227
|
import_slate_react3.Slate,
|
|
10219
10228
|
{
|