@wistia/vhs 4.0.0-beta.bf36d29b.c00afb5 → 4.0.0-beta.cfb66734.5d7766b

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 CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/vhs v4.0.0-beta.bf36d29b.c00afb5
3
+ * @license @wistia/vhs v4.0.0-beta.cfb66734.5d7766b
4
4
  *
5
5
  * Copyright (c) 2021-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -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
- try {
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,