@wistia/vhs 4.0.0-beta.bf36d29b.c00afb5 → 4.0.0-beta.c4ab6103.8595789
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 +3 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +3 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
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.c4ab6103.8595789
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2021-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -9489,8 +9489,7 @@ var wrapLink = (editor, url) => {
|
|
|
9489
9489
|
}
|
|
9490
9490
|
};
|
|
9491
9491
|
var withLinks = (editor) => {
|
|
9492
|
-
const { insertText, isInline, normalizeNode } = editor;
|
|
9493
|
-
const { insertData } = editor;
|
|
9492
|
+
const { insertData, insertText, isInline, normalizeNode } = editor;
|
|
9494
9493
|
editor.isInline = (element) => element.type === "link" ? true : isInline(element);
|
|
9495
9494
|
editor.insertText = (text) => {
|
|
9496
9495
|
if (text && isUrl(text)) {
|
|
@@ -10089,11 +10088,7 @@ var RichTextEditor = ({
|
|
|
10089
10088
|
disabled,
|
|
10090
10089
|
height,
|
|
10091
10090
|
onClick: () => {
|
|
10092
|
-
|
|
10093
|
-
ReactEditor.focus?.(editor);
|
|
10094
|
-
} catch (error) {
|
|
10095
|
-
console.warn("Could not focus editor:", error);
|
|
10096
|
-
}
|
|
10091
|
+
ReactEditor.focus(editor);
|
|
10097
10092
|
},
|
|
10098
10093
|
children: /* @__PURE__ */ jsxs30(
|
|
10099
10094
|
Slate,
|