@wistia/vhs 4.0.0-beta.869ba93f.48341e6 → 4.0.0-beta.8d6634f5.054e1be
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 +5 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +4 -9
- 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.8d6634f5.054e1be
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2021-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -9056,7 +9056,7 @@ var import_styled_components50 = require("styled-components");
|
|
|
9056
9056
|
var import_slate_react3 = require("slate-react");
|
|
9057
9057
|
var import_slate7 = require("slate");
|
|
9058
9058
|
var import_slate_history = require("slate-history");
|
|
9059
|
-
var import_is_hotkey =
|
|
9059
|
+
var import_is_hotkey = require("is-hotkey");
|
|
9060
9060
|
var import_type_guards50 = require("@wistia/type-guards");
|
|
9061
9061
|
var import_react_fast_compare2 = __toESM(require("react-fast-compare"));
|
|
9062
9062
|
|
|
@@ -9622,8 +9622,7 @@ var wrapLink = (editor, url) => {
|
|
|
9622
9622
|
}
|
|
9623
9623
|
};
|
|
9624
9624
|
var withLinks = (editor) => {
|
|
9625
|
-
const { insertText, isInline, normalizeNode } = editor;
|
|
9626
|
-
const { insertData } = editor;
|
|
9625
|
+
const { insertData, insertText, isInline, normalizeNode } = editor;
|
|
9627
9626
|
editor.isInline = (element) => element.type === "link" ? true : isInline(element);
|
|
9628
9627
|
editor.insertText = (text) => {
|
|
9629
9628
|
if (text && isUrl(text)) {
|
|
@@ -10222,11 +10221,7 @@ var RichTextEditor = ({
|
|
|
10222
10221
|
disabled,
|
|
10223
10222
|
height,
|
|
10224
10223
|
onClick: () => {
|
|
10225
|
-
|
|
10226
|
-
import_slate_react3.ReactEditor.focus?.(editor);
|
|
10227
|
-
} catch (error) {
|
|
10228
|
-
console.warn("Could not focus editor:", error);
|
|
10229
|
-
}
|
|
10224
|
+
import_slate_react3.ReactEditor.focus(editor);
|
|
10230
10225
|
},
|
|
10231
10226
|
children: /* @__PURE__ */ (0, import_jsx_runtime183.jsxs)(
|
|
10232
10227
|
import_slate_react3.Slate,
|
|
@@ -10252,7 +10247,7 @@ var RichTextEditor = ({
|
|
|
10252
10247
|
onBlur: handleEditorBlur,
|
|
10253
10248
|
onKeyDown: (event) => {
|
|
10254
10249
|
Object.keys(HOTKEYS).forEach((hotKey) => {
|
|
10255
|
-
if ((0, import_is_hotkey.
|
|
10250
|
+
if ((0, import_is_hotkey.isHotkey)(hotKey, event)) {
|
|
10256
10251
|
event.preventDefault();
|
|
10257
10252
|
toggleMark(editor, HOTKEYS[hotKey]);
|
|
10258
10253
|
}
|