superdoc 1.0.0-beta.70 → 1.0.0-beta.71

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.
Files changed (27) hide show
  1. package/dist/chunks/{PdfViewer-Li0IVylM.cjs → PdfViewer-ByYZWEAY.cjs} +1 -1
  2. package/dist/chunks/{PdfViewer-DSqV0wBl.es.js → PdfViewer-fC8HER9x.es.js} +1 -1
  3. package/dist/chunks/{index-CJCOemVA.cjs → index-C5kk90i2.cjs} +3 -3
  4. package/dist/chunks/{index-DruHtc6s-CPc5HSle.es.js → index-DNdPLYmc-BiqKDIea.es.js} +1 -1
  5. package/dist/chunks/{index-DruHtc6s-CBCtA0Ud.cjs → index-DNdPLYmc-xVZ8rsAB.cjs} +1 -1
  6. package/dist/chunks/{index-atbbnwyB.es.js → index-dVVrZVr-.es.js} +3 -3
  7. package/dist/chunks/{super-editor.es-4JNmJF9G.es.js → super-editor.es-1WGVfjfp.es.js} +113 -7
  8. package/dist/chunks/{super-editor.es-CzBIlSB8.cjs → super-editor.es-DUGFHvw1.cjs} +113 -7
  9. package/dist/super-editor/ai-writer.es.js +2 -2
  10. package/dist/super-editor/chunks/{converter-B4HiY8pI.js → converter-Cd9FToOQ.js} +1 -1
  11. package/dist/super-editor/chunks/{docx-zipper-D7YJSyKT.js → docx-zipper-Dy4WiCTL.js} +1 -1
  12. package/dist/super-editor/chunks/{editor-C9smgNs-.js → editor-DO6-AGUY.js} +111 -5
  13. package/dist/super-editor/chunks/{index-DruHtc6s.js → index-DNdPLYmc.js} +1 -1
  14. package/dist/super-editor/chunks/{toolbar-BuJaDiNO.js → toolbar-Dt8nFoPI.js} +2 -2
  15. package/dist/super-editor/converter.es.js +1 -1
  16. package/dist/super-editor/docx-zipper.es.js +2 -2
  17. package/dist/super-editor/editor.es.js +3 -3
  18. package/dist/super-editor/file-zipper.es.js +1 -1
  19. package/dist/super-editor/super-editor.es.js +9 -9
  20. package/dist/super-editor/toolbar.es.js +2 -2
  21. package/dist/super-editor.cjs +1 -1
  22. package/dist/super-editor.es.js +1 -1
  23. package/dist/superdoc.cjs +2 -2
  24. package/dist/superdoc.es.js +2 -2
  25. package/dist/superdoc.umd.js +115 -9
  26. package/dist/superdoc.umd.js.map +1 -1
  27. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { computed, createElementBlock, openBlock, createElementVNode, createCommentVNode, normalizeClass, normalizeStyle, ref, withKeys, unref, withModifiers, createBlock, toDisplayString, withDirectives, vModelText, nextTick, getCurrentInstance, onMounted, onBeforeUnmount, createVNode, readonly, watch, reactive, onBeforeMount, inject, onActivated, onDeactivated, createTextVNode, Fragment, Comment, defineComponent, provide, h, Teleport, toRef, renderSlot, isVNode, shallowRef, watchEffect, mergeProps, Transition, vShow, cloneVNode, Text, renderList, withCtx } from "vue";
2
- import { p as process$1 } from "./converter-B4HiY8pI.js";
3
- import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-C9smgNs-.js";
2
+ import { p as process$1 } from "./converter-Cd9FToOQ.js";
3
+ import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-DO6-AGUY.js";
4
4
  const sanitizeNumber = (value, defaultNumber) => {
5
5
  let sanitized = value.replace(/[^0-9.]/g, "");
6
6
  sanitized = parseFloat(sanitized);
@@ -1,4 +1,4 @@
1
- import { ac } from "./chunks/converter-B4HiY8pI.js";
1
+ import { ac } from "./chunks/converter-Cd9FToOQ.js";
2
2
  export {
3
3
  ac as SuperConverter
4
4
  };
@@ -1,5 +1,5 @@
1
- import "./chunks/converter-B4HiY8pI.js";
2
- import { D } from "./chunks/docx-zipper-D7YJSyKT.js";
1
+ import "./chunks/converter-Cd9FToOQ.js";
2
+ import { D } from "./chunks/docx-zipper-Dy4WiCTL.js";
3
3
  export {
4
4
  D as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E } from "./chunks/editor-C9smgNs-.js";
2
- import "./chunks/converter-B4HiY8pI.js";
3
- import "./chunks/docx-zipper-D7YJSyKT.js";
1
+ import { E } from "./chunks/editor-DO6-AGUY.js";
2
+ import "./chunks/converter-Cd9FToOQ.js";
3
+ import "./chunks/docx-zipper-Dy4WiCTL.js";
4
4
  export {
5
5
  E as Editor
6
6
  };
@@ -1,4 +1,4 @@
1
- import { J as JSZip } from "./chunks/docx-zipper-D7YJSyKT.js";
1
+ import { J as JSZip } from "./chunks/docx-zipper-Dy4WiCTL.js";
2
2
  async function createZip(blobs, fileNames) {
3
3
  const zip = new JSZip();
4
4
  blobs.forEach((blob, index) => {
@@ -9,14 +9,14 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
9
9
  var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
10
10
  var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
11
11
  var _MARK_TOGGLE_NAMES, _SuperToolbar_instances, initToolbarGroups_fn, _interceptedCommands, makeToolbarItems_fn, initDefaultFonts_fn, updateHighlightColors_fn, deactivateAll_fn, updateToolbarHistory_fn, enrichTrackedChanges_fn, runCommandWithArgumentOnly_fn, syncStickyMarksFromState_fn, restoreStickyMarksIfNeeded_fn, ensureStoredMarksForMarkToggle_fn;
12
- import { aK as getDefaultExportFromCjs, a0 as v4, T as TextSelection$1, v as getMarkRange, aN as vClickOutside, aO as getActiveFormatting, aD as isInTable, O as findParentNode, ar as calculateResolvedParagraphProperties, a7 as twipsToLines, Q as isList, al as parseSizeUnit, a8 as pixelsToTwips, aP as getFileObject, P as PluginKey, a as Plugin } from "./chunks/converter-B4HiY8pI.js";
13
- import { ac, i, a9, aQ } from "./chunks/converter-B4HiY8pI.js";
14
- import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, d as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, e as uploadAndInsertImage, f as collectTrackedChanges, i as isTrackedChangeActionAllowed, y as yUndoPluginKey, h as undoDepth, j as redoDepth, k as getEditorSurfaceElement, l as collectTrackedChangesForContext, s as shouldBypassContextMenu, S as SlashMenuPluginKey, m as generateRulerDefinition, n as clampHandlePosition, o as calculateMarginFromHandle, p as measureCache, q as isHeadless, E as Editor, t as getStarterExtensions, P as PresentationEditor, v as Placeholder, w as getRichTextExtensions, D as DecorationSet, x as Decoration, M as Mark, z as Extension, A as Attribute, N as Node } from "./chunks/editor-C9smgNs-.js";
15
- import { F, I, G, T, B, H, C } from "./chunks/editor-C9smgNs-.js";
12
+ import { aK as getDefaultExportFromCjs, a0 as v4, T as TextSelection$1, v as getMarkRange, aN as vClickOutside, aO as getActiveFormatting, aD as isInTable, O as findParentNode, ar as calculateResolvedParagraphProperties, a7 as twipsToLines, Q as isList, al as parseSizeUnit, a8 as pixelsToTwips, aP as getFileObject, P as PluginKey, a as Plugin } from "./chunks/converter-Cd9FToOQ.js";
13
+ import { ac, i, a9, aQ } from "./chunks/converter-Cd9FToOQ.js";
14
+ import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as getFileOpener, d as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, e as uploadAndInsertImage, f as collectTrackedChanges, i as isTrackedChangeActionAllowed, y as yUndoPluginKey, h as undoDepth, j as redoDepth, k as getEditorSurfaceElement, l as collectTrackedChangesForContext, s as shouldBypassContextMenu, S as SlashMenuPluginKey, m as generateRulerDefinition, n as clampHandlePosition, o as calculateMarginFromHandle, p as measureCache, q as isHeadless, E as Editor, t as getStarterExtensions, P as PresentationEditor, v as Placeholder, w as getRichTextExtensions, D as DecorationSet, x as Decoration, M as Mark, z as Extension, A as Attribute, N as Node } from "./chunks/editor-DO6-AGUY.js";
15
+ import { F, I, G, T, B, H, C } from "./chunks/editor-DO6-AGUY.js";
16
16
  import { ref, onMounted, createElementBlock, openBlock, normalizeClass, unref, Fragment, renderList, createElementVNode, withModifiers, toDisplayString, createCommentVNode, normalizeStyle, computed, watch, withDirectives, withKeys, vModelText, createTextVNode, createVNode, h, createApp, markRaw, nextTick, onBeforeUnmount, defineComponent, reactive, onUnmounted, renderSlot, useCssVars, shallowRef, createBlock, Teleport, withCtx, resolveDynamicComponent, normalizeProps, guardReactiveProps } from "vue";
17
- import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, p as plusIconSvg, a as trashIconSvg, b as borderNoneIconSvg, c as arrowsToDotIconSvg, d as arrowsLeftRightIconSvg, w as wrenchIconSvg, m as magicWandIcon, e as checkIconSvg$1, x as xMarkIconSvg, l as linkIconSvg, f as tableIconSvg, g as scissorsIconSvg, h as copyIconSvg, i as pasteIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-BuJaDiNO.js";
17
+ import { t as toolbarIcons, s as sanitizeNumber, T as Toolbar, p as plusIconSvg, a as trashIconSvg, b as borderNoneIconSvg, c as arrowsToDotIconSvg, d as arrowsLeftRightIconSvg, w as wrenchIconSvg, m as magicWandIcon, e as checkIconSvg$1, x as xMarkIconSvg, l as linkIconSvg, f as tableIconSvg, g as scissorsIconSvg, h as copyIconSvg, i as pasteIconSvg, u as useMessage, N as NSkeleton } from "./chunks/toolbar-Dt8nFoPI.js";
18
18
  import AIWriter from "./ai-writer.es.js";
19
- import { D } from "./chunks/docx-zipper-D7YJSyKT.js";
19
+ import { D } from "./chunks/docx-zipper-Dy4WiCTL.js";
20
20
  import { createZip } from "./file-zipper.es.js";
21
21
  var eventemitter3 = { exports: {} };
22
22
  var hasRequiredEventemitter3;
@@ -4470,7 +4470,7 @@ const _sfc_main$8 = {
4470
4470
  onMounted(() => {
4471
4471
  if (!props.editor) return;
4472
4472
  document.addEventListener("keydown", handleGlobalKeyDown);
4473
- document.addEventListener("mousedown", handleGlobalOutsideClick);
4473
+ document.addEventListener("pointerdown", handleGlobalOutsideClick);
4474
4474
  props.editor.on("update", handleEditorUpdate);
4475
4475
  slashMenuOpenHandler = async (event) => {
4476
4476
  const readOnly = !props.editor?.isEditable;
@@ -4504,7 +4504,7 @@ const _sfc_main$8 = {
4504
4504
  });
4505
4505
  onBeforeUnmount(() => {
4506
4506
  document.removeEventListener("keydown", handleGlobalKeyDown);
4507
- document.removeEventListener("mousedown", handleGlobalOutsideClick);
4507
+ document.removeEventListener("pointerdown", handleGlobalOutsideClick);
4508
4508
  cleanupCustomItems();
4509
4509
  if (props.editor) {
4510
4510
  try {
@@ -4528,7 +4528,7 @@ const _sfc_main$8 = {
4528
4528
  ref: menuRef,
4529
4529
  class: "slash-menu",
4530
4530
  style: normalizeStyle(menuPosition.value),
4531
- onMousedown: _cache[2] || (_cache[2] = withModifiers(() => {
4531
+ onPointerdown: _cache[2] || (_cache[2] = withModifiers(() => {
4532
4532
  }, ["stop"]))
4533
4533
  }, [
4534
4534
  withDirectives(createElementVNode("input", {
@@ -1,6 +1,6 @@
1
1
  import "vue";
2
- import { T } from "./chunks/toolbar-BuJaDiNO.js";
3
- import "./chunks/editor-C9smgNs-.js";
2
+ import { T } from "./chunks/toolbar-Dt8nFoPI.js";
3
+ import "./chunks/editor-DO6-AGUY.js";
4
4
  export {
5
5
  T as default
6
6
  };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const superEditor_es = require("./chunks/super-editor.es-CzBIlSB8.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-DUGFHvw1.cjs");
4
4
  require("./chunks/vue-jWLMl8Ts.cjs");
5
5
  exports.AIWriter = superEditor_es.AIWriter;
6
6
  exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
@@ -1,4 +1,4 @@
1
- import { A, a, _, C, D, E, b, P, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es-4JNmJF9G.es.js";
1
+ import { A, a, _, C, D, E, b, P, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es-1WGVfjfp.es.js";
2
2
  import "./chunks/vue-Dysv_7z5.es.js";
3
3
  export {
4
4
  A as AIWriter,
package/dist/superdoc.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const superEditor_es = require("./chunks/super-editor.es-CzBIlSB8.cjs");
4
- const superdoc = require("./chunks/index-CJCOemVA.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-DUGFHvw1.cjs");
4
+ const superdoc = require("./chunks/index-C5kk90i2.cjs");
5
5
  const blankDocx = require("./chunks/blank-docx-DfW3Eeh2.cjs");
6
6
  exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
7
7
  exports.Editor = superEditor_es.Editor;
@@ -1,5 +1,5 @@
1
- import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-4JNmJF9G.es.js";
2
- import { D, H, P, S as S2, m, l } from "./chunks/index-atbbnwyB.es.js";
1
+ import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-1WGVfjfp.es.js";
2
+ import { D, H, P, S as S2, m, l } from "./chunks/index-dVVrZVr-.es.js";
3
3
  import { B } from "./chunks/blank-docx-ABm6XYAA.es.js";
4
4
  export {
5
5
  a as AnnotatorHelpers,
@@ -42327,7 +42327,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
42327
42327
  static getStoredSuperdocVersion(docx) {
42328
42328
  return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
42329
42329
  }
42330
- static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.0-beta.70") {
42330
+ static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.0-beta.71") {
42331
42331
  return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
42332
42332
  }
42333
42333
  /**
@@ -67373,7 +67373,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
67373
67373
  const shouldSkipNodeView = (editor) => {
67374
67374
  return isHeadless(editor);
67375
67375
  };
67376
- const summaryVersion = "1.0.0-beta.70";
67376
+ const summaryVersion = "1.0.0-beta.71";
67377
67377
  const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
67378
67378
  const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
67379
67379
  function mapAttributes(attrs) {
@@ -68162,7 +68162,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
68162
68162
  { default: remarkStringify2 },
68163
68163
  { default: remarkGfm2 }
68164
68164
  ] = await Promise.all([
68165
- Promise.resolve().then(() => indexDruHtc6s),
68165
+ Promise.resolve().then(() => indexDNdPLYmc),
68166
68166
  Promise.resolve().then(() => indexDRCvimau),
68167
68167
  Promise.resolve().then(() => indexC_x_N6Uh),
68168
68168
  Promise.resolve().then(() => indexD_sWOSiG),
@@ -68367,7 +68367,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
68367
68367
  * Process collaboration migrations
68368
68368
  */
68369
68369
  processCollaborationMigrations() {
68370
- console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.70");
68370
+ console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.71");
68371
68371
  if (!this.options.ydoc) return;
68372
68372
  const metaMap = this.options.ydoc.getMap("meta");
68373
68373
  let docVersion = metaMap.get("version");
@@ -92944,6 +92944,109 @@ ${l}
92944
92944
  const activeEditor = this.getActiveEditor();
92945
92945
  return activeEditor.commands;
92946
92946
  }
92947
+ /**
92948
+ * Get the ProseMirror editor state for the currently active editor (header/footer-aware).
92949
+ *
92950
+ * This property dynamically returns the state from the appropriate editor instance:
92951
+ * - In body mode, returns the main editor's state
92952
+ * - In header/footer mode, returns the active header/footer editor's state
92953
+ *
92954
+ * This enables components like SlashMenu and context menus to access document
92955
+ * state, selection, and schema information in the correct editing context.
92956
+ *
92957
+ * @returns The EditorState for the active editor
92958
+ *
92959
+ * @example
92960
+ * ```typescript
92961
+ * const { selection, doc } = presentationEditor.state;
92962
+ * const selectedText = doc.textBetween(selection.from, selection.to);
92963
+ * ```
92964
+ */
92965
+ get state() {
92966
+ return this.getActiveEditor().state;
92967
+ }
92968
+ /**
92969
+ * Check if the editor is currently editable (header/footer-aware).
92970
+ *
92971
+ * This property checks the editable state of the currently active editor:
92972
+ * - In body mode, returns whether the main editor is editable
92973
+ * - In header/footer mode, returns whether the header/footer editor is editable
92974
+ *
92975
+ * The editor may be non-editable due to:
92976
+ * - Document mode set to 'viewing'
92977
+ * - Explicit `editable: false` option
92978
+ * - Editor not fully initialized
92979
+ *
92980
+ * @returns true if the active editor accepts input, false otherwise
92981
+ *
92982
+ * @example
92983
+ * ```typescript
92984
+ * if (presentationEditor.isEditable) {
92985
+ * presentationEditor.commands.insertText('Hello');
92986
+ * }
92987
+ * ```
92988
+ */
92989
+ get isEditable() {
92990
+ return this.getActiveEditor().isEditable;
92991
+ }
92992
+ /**
92993
+ * Get the editor options for the currently active editor (header/footer-aware).
92994
+ *
92995
+ * This property returns the options object from the appropriate editor instance,
92996
+ * providing access to configuration like document mode, AI settings, and custom
92997
+ * slash menu configuration.
92998
+ *
92999
+ * @returns The options object for the active editor
93000
+ *
93001
+ * @example
93002
+ * ```typescript
93003
+ * const { documentMode, isAiEnabled } = presentationEditor.options;
93004
+ * ```
93005
+ */
93006
+ get options() {
93007
+ return this.getActiveEditor().options;
93008
+ }
93009
+ /**
93010
+ * Dispatch a ProseMirror transaction to the currently active editor (header/footer-aware).
93011
+ *
93012
+ * This method routes transactions to the appropriate editor instance:
93013
+ * - In body mode, dispatches to the main editor
93014
+ * - In header/footer mode, dispatches to the active header/footer editor
93015
+ *
93016
+ * Use this for direct state manipulation when commands are insufficient.
93017
+ * For most use cases, prefer using `commands` or `dispatchInActiveEditor`.
93018
+ *
93019
+ * @param tr - The ProseMirror transaction to dispatch
93020
+ *
93021
+ * @example
93022
+ * ```typescript
93023
+ * const { state } = presentationEditor;
93024
+ * const tr = state.tr.insertText('Hello', state.selection.from);
93025
+ * presentationEditor.dispatch(tr);
93026
+ * ```
93027
+ */
93028
+ dispatch(tr) {
93029
+ const activeEditor = this.getActiveEditor();
93030
+ activeEditor.view?.dispatch(tr);
93031
+ }
93032
+ /**
93033
+ * Focus the editor, routing focus to the appropriate editing surface.
93034
+ *
93035
+ * In PresentationEditor, the actual ProseMirror EditorView is hidden and input
93036
+ * is bridged from the visible layout surface. This method focuses the hidden
93037
+ * editor view to enable keyboard input while the visual focus remains on the
93038
+ * rendered presentation.
93039
+ *
93040
+ * @example
93041
+ * ```typescript
93042
+ * // After closing a modal, restore focus to the editor
93043
+ * presentationEditor.focus();
93044
+ * ```
93045
+ */
93046
+ focus() {
93047
+ const activeEditor = this.getActiveEditor();
93048
+ activeEditor.view?.focus();
93049
+ }
92947
93050
  /**
92948
93051
  * Returns the currently active editor (body or header/footer session).
92949
93052
  *
@@ -97723,6 +97826,9 @@ ${l}
97723
97826
  };
97724
97827
  function getEditorSurfaceElement(editor) {
97725
97828
  if (!editor) return null;
97829
+ if (typeof editor.hitTest === "function" && editor.element instanceof HTMLElement) {
97830
+ return editor.element;
97831
+ }
97726
97832
  return editor.presentationEditor?.element ?? editor.view?.dom ?? editor.options?.element ?? null;
97727
97833
  }
97728
97834
  function getSurfaceRelativePoint(editor, eventLocation = {}) {
@@ -130867,7 +130973,7 @@ ${style2}
130867
130973
  onMounted(() => {
130868
130974
  if (!props.editor) return;
130869
130975
  document.addEventListener("keydown", handleGlobalKeyDown);
130870
- document.addEventListener("mousedown", handleGlobalOutsideClick);
130976
+ document.addEventListener("pointerdown", handleGlobalOutsideClick);
130871
130977
  props.editor.on("update", handleEditorUpdate);
130872
130978
  slashMenuOpenHandler = async (event) => {
130873
130979
  const readOnly = !props.editor?.isEditable;
@@ -130901,7 +131007,7 @@ ${style2}
130901
131007
  });
130902
131008
  onBeforeUnmount(() => {
130903
131009
  document.removeEventListener("keydown", handleGlobalKeyDown);
130904
- document.removeEventListener("mousedown", handleGlobalOutsideClick);
131010
+ document.removeEventListener("pointerdown", handleGlobalOutsideClick);
130905
131011
  cleanupCustomItems();
130906
131012
  if (props.editor) {
130907
131013
  try {
@@ -130925,7 +131031,7 @@ ${style2}
130925
131031
  ref: menuRef,
130926
131032
  class: "slash-menu",
130927
131033
  style: normalizeStyle(menuPosition.value),
130928
- onMousedown: _cache[2] || (_cache[2] = withModifiers(() => {
131034
+ onPointerdown: _cache[2] || (_cache[2] = withModifiers(() => {
130929
131035
  }, ["stop"]))
130930
131036
  }, [
130931
131037
  withDirectives(createBaseVNode("input", {
@@ -150147,7 +150253,7 @@ ${style2}
150147
150253
  this.config.colors = shuffleArray(this.config.colors);
150148
150254
  this.userColorMap = /* @__PURE__ */ new Map();
150149
150255
  this.colorIndex = 0;
150150
- this.version = "1.0.0-beta.70";
150256
+ this.version = "1.0.0-beta.71";
150151
150257
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
150152
150258
  this.superdocId = config2.superdocId || v4();
150153
150259
  this.colors = this.config.colors;
@@ -152619,7 +152725,7 @@ ${style2}
152619
152725
  value && typeof value === "object" && "byteLength" in value && "byteOffset" in value
152620
152726
  );
152621
152727
  }
152622
- const indexDruHtc6s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
152728
+ const indexDNdPLYmc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
152623
152729
  __proto__: null,
152624
152730
  unified
152625
152731
  }, Symbol.toStringTag, { value: "Module" }));