@wistia/vhs 4.0.0-beta.d9e3dd7c.d6acc83 → 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 +9 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +10 -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/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
|
*
|
|
@@ -10207,6 +10207,13 @@ var RichTextEditor = ({
|
|
|
10207
10207
|
}
|
|
10208
10208
|
}
|
|
10209
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]);
|
|
10210
10217
|
return (
|
|
10211
10218
|
// eslint-disable-next-line styled-components-a11y/click-events-have-key-events, styled-components-a11y/no-static-element-interactions
|
|
10212
10219
|
/* @__PURE__ */ (0, import_jsx_runtime183.jsx)(
|
|
@@ -10215,7 +10222,7 @@ var RichTextEditor = ({
|
|
|
10215
10222
|
"data-testid": dataTestId,
|
|
10216
10223
|
disabled,
|
|
10217
10224
|
height,
|
|
10218
|
-
onClick:
|
|
10225
|
+
onClick: handleEditorClick,
|
|
10219
10226
|
children: /* @__PURE__ */ (0, import_jsx_runtime183.jsxs)(
|
|
10220
10227
|
import_slate_react3.Slate,
|
|
10221
10228
|
{
|