@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.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.8d6634f5.054e1be
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2021-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -8923,7 +8923,7 @@ import { styled as styled41 } from "styled-components";
|
|
|
8923
8923
|
import { Editable, withReact, Slate, ReactEditor } from "slate-react";
|
|
8924
8924
|
import { createEditor, Transforms as Transforms5, Element as Element7, Text as Text4 } from "slate";
|
|
8925
8925
|
import { withHistory } from "slate-history";
|
|
8926
|
-
import isHotkey from "is-hotkey";
|
|
8926
|
+
import { isHotkey } from "is-hotkey";
|
|
8927
8927
|
import { isNil as isNil14, isNotNil as isNotNil26, isNonEmptyString as isNonEmptyString11 } from "@wistia/type-guards";
|
|
8928
8928
|
import isEqual2 from "react-fast-compare";
|
|
8929
8929
|
|
|
@@ -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,
|