superdoc 0.31.0-next.7 → 0.31.0-next.9

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 (86) hide show
  1. package/dist/chunks/{PdfViewer-HhmcCtfd.es.js → PdfViewer-ChLbIG8u.es.js} +2 -2
  2. package/dist/chunks/{PdfViewer-C_gVEaJa.cjs → PdfViewer-DGBrTPth.cjs} +2 -2
  3. package/dist/chunks/{eventemitter3-hYlnBzSA.es.js → eventemitter3-BZXKb7j7.es.js} +1 -1
  4. package/dist/chunks/{eventemitter3-DmHNHvFX.cjs → eventemitter3-CFCpOk3d.cjs} +1 -1
  5. package/dist/chunks/{index-Cz10rZ5n.es.js → index-AnYOPAqD.es.js} +6 -6
  6. package/dist/chunks/{index-wLtubQ87.cjs → index-Cypk5knN.cjs} +6 -6
  7. package/dist/chunks/{index-BJ6cOegF-C-oX4LAe.es.js → index-mvOjU9rn-CQ6Y6D-C.es.js} +1 -1
  8. package/dist/chunks/{index-BJ6cOegF-BuvRSNoV.cjs → index-mvOjU9rn-HqKSYwVo.cjs} +1 -1
  9. package/dist/chunks/{jszip-BP2FTbpi.cjs → jszip-B99MTu59.cjs} +1 -1
  10. package/dist/chunks/{jszip-jKrsZoMS.es.js → jszip-Duxs2YMV.es.js} +1 -1
  11. package/dist/chunks/{super-editor.es-Bz-s1Pw4.cjs → super-editor.es-D55QKmsp.cjs} +779 -641
  12. package/dist/chunks/{super-editor.es-C20nShDu.es.js → super-editor.es-_tc99cB9.es.js} +732 -594
  13. package/dist/chunks/{vue-Cwv-wUpm.cjs → vue-ARQSyfaw.cjs} +2401 -2360
  14. package/dist/chunks/{vue-CKmzTNVs.es.js → vue-B5QAf5pA.es.js} +2401 -2360
  15. package/dist/chunks/xml-js-CVyfrKaV.es.js +2 -0
  16. package/dist/chunks/xml-js-DQa4Ye5C.cjs +3 -0
  17. package/dist/images/altText_add.svg +3 -0
  18. package/dist/images/altText_disclaimer.svg +3 -0
  19. package/dist/images/altText_done.svg +3 -0
  20. package/dist/images/altText_spinner.svg +30 -0
  21. package/dist/images/altText_warning.svg +3 -0
  22. package/dist/images/annotation-check.svg +11 -0
  23. package/dist/images/annotation-comment.svg +16 -0
  24. package/dist/images/annotation-help.svg +26 -0
  25. package/dist/images/annotation-insert.svg +10 -0
  26. package/dist/images/annotation-key.svg +11 -0
  27. package/dist/images/annotation-newparagraph.svg +11 -0
  28. package/dist/images/annotation-noicon.svg +7 -0
  29. package/dist/images/annotation-note.svg +42 -0
  30. package/dist/images/annotation-paperclip.svg +6 -0
  31. package/dist/images/annotation-paragraph.svg +16 -0
  32. package/dist/images/annotation-pushpin.svg +7 -0
  33. package/dist/images/cursor-editorFreeHighlight.svg +6 -0
  34. package/dist/images/cursor-editorFreeText.svg +3 -0
  35. package/dist/images/cursor-editorInk.svg +4 -0
  36. package/dist/images/cursor-editorTextHighlight.svg +8 -0
  37. package/dist/images/editor-toolbar-delete.svg +5 -0
  38. package/dist/images/loading-icon.gif +0 -0
  39. package/dist/images/messageBar_closingButton.svg +3 -0
  40. package/dist/images/messageBar_warning.svg +3 -0
  41. package/dist/images/toolbarButton-editorHighlight.svg +6 -0
  42. package/dist/images/toolbarButton-menuArrow.svg +3 -0
  43. package/dist/packages/superdoc/src/core/SuperDoc.d.ts +8 -0
  44. package/dist/packages/superdoc/src/core/SuperDoc.d.ts.map +1 -1
  45. package/dist/packages/superdoc/src/core/types/index.d.ts +8 -0
  46. package/dist/packages/superdoc/src/core/types/index.d.ts.map +1 -1
  47. package/dist/style.css +2 -0
  48. package/dist/super-editor/ai-writer.es.js +2 -2
  49. package/dist/super-editor/chunks/{converter-DVDL6NWz.js → converter-DkFlFcso.js} +313 -294
  50. package/dist/super-editor/chunks/{docx-zipper-4ipmBNSH.js → docx-zipper-BSQJw-fX.js} +1 -1
  51. package/dist/super-editor/chunks/{editor-B8v33PJq.js → editor-bUoNJi-W.js} +155 -36
  52. package/dist/super-editor/chunks/{index-BJ6cOegF.js → index-mvOjU9rn.js} +1 -1
  53. package/dist/super-editor/chunks/{toolbar-CfUofx7k.js → toolbar-CkPV7I8i.js} +2 -2
  54. package/dist/super-editor/converter.es.js +1 -1
  55. package/dist/super-editor/docx-zipper.es.js +2 -2
  56. package/dist/super-editor/editor.es.js +3 -3
  57. package/dist/super-editor/file-zipper.es.js +1 -1
  58. package/dist/super-editor/style.css +2 -0
  59. package/dist/super-editor/super-editor/src/core/Editor.d.ts +9 -0
  60. package/dist/super-editor/super-editor/src/core/Editor.d.ts.map +1 -1
  61. package/dist/super-editor/super-editor/src/core/Node.d.ts +1 -1
  62. package/dist/super-editor/super-editor/src/core/Node.d.ts.map +1 -1
  63. package/dist/super-editor/super-editor/src/core/Schema.d.ts.map +1 -1
  64. package/dist/super-editor/super-editor/src/core/schema-summary.d.ts +4 -0
  65. package/dist/super-editor/super-editor/src/core/schema-summary.d.ts.map +1 -0
  66. package/dist/super-editor/super-editor/src/core/types/EditorSchema.d.ts +35 -0
  67. package/dist/super-editor/super-editor/src/core/types/EditorSchema.d.ts.map +1 -0
  68. package/dist/super-editor/super-editor/src/extensions/ai/ai-marks.d.ts.map +1 -1
  69. package/dist/super-editor/super-editor/src/extensions/ai/ai-nodes.d.ts.map +1 -1
  70. package/dist/super-editor/super-editor/src/extensions/collaboration/collaboration-helpers.d.ts.map +1 -1
  71. package/dist/super-editor/super-editor/src/extensions/mention/mention.d.ts.map +1 -1
  72. package/dist/super-editor/super-editor/src/extensions/paragraph/paragraph.d.ts.map +1 -1
  73. package/dist/super-editor/super-editor/src/extensions/structured-content/document-part-object.d.ts.map +1 -1
  74. package/dist/super-editor/super-editor/src/extensions/track-changes/permission-helpers.d.ts +8 -0
  75. package/dist/super-editor/super-editor/src/extensions/track-changes/permission-helpers.d.ts.map +1 -1
  76. package/dist/super-editor/super-editor.es.js +6 -6
  77. package/dist/super-editor/toolbar.es.js +2 -2
  78. package/dist/super-editor.cjs +2 -2
  79. package/dist/super-editor.es.js +2 -2
  80. package/dist/superdoc.cjs +2 -2
  81. package/dist/superdoc.es.js +2 -2
  82. package/dist/superdoc.umd.js +1120 -942
  83. package/dist/superdoc.umd.js.map +1 -1
  84. package/package.json +1 -1
  85. package/dist/chunks/xml-js-BSDu25I7.cjs +0 -3
  86. package/dist/chunks/xml-js-CBrRls0f.es.js +0 -2
@@ -1,4 +1,4 @@
1
- import { p as process$1, aE as commonjsGlobal, B as Buffer, aF as getDefaultExportFromCjs, aG as getContentTypesFromXml, aH as xmljs } from "./converter-DVDL6NWz.js";
1
+ import { p as process$1, aE as commonjsGlobal, B as Buffer, aF as getDefaultExportFromCjs, aG as getContentTypesFromXml, aH as xmljs } from "./converter-DkFlFcso.js";
2
2
  function commonjsRequire(path) {
3
3
  throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
4
4
  }
@@ -12,8 +12,8 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
12
12
  var _Attribute_static, getGlobalAttributes_fn, getNodeAndMarksAttributes_fn, isElementNode_fn, _Schema_static, createNodesSchema_fn, createMarksSchema_fn, _events, _ExtensionService_instances, setupExtensions_fn, attachEditorEvents_fn, _editor, _stateValidators, _xmlValidators, _requiredNodeTypes, _requiredMarkTypes, _SuperValidator_instances, initializeValidators_fn, collectValidatorRequirements_fn, analyzeDocument_fn, _commandService, _Editor_instances, initContainerElement_fn, init_fn, initRichText_fn, onFocus_fn, checkHeadless_fn, registerCopyHandler_fn, insertNewFileData_fn, getPluginKeyName_fn, createExtensionService_fn, createCommandService_fn, createConverter_fn, initMedia_fn, initFonts_fn, checkFonts_fn, determineUnsupportedFonts_fn, createSchema_fn, generatePmData_fn, createView_fn, onCollaborationReady_fn, initComments_fn, initPagination_fn, dispatchTransaction_fn, handleNodeSelection_fn, prepareDocumentForImport_fn, prepareDocumentForExport_fn, endCollaboration_fn, validateDocumentInit_fn, validateDocumentExport_fn, initDevTools_fn, _DocumentSectionView_instances, init_fn2, addToolTip_fn, _ParagraphNodeView_instances, updateHTMLAttributes_fn, updateListStyles_fn, initList_fn, checkIsList_fn, createMarker_fn, createSeparator_fn, calculateTabSeparatorStyle_fn, calculateMarkerStyle_fn, removeList_fn, getParagraphContext_fn, scheduleAnimation_fn, cancelScheduledAnimation_fn, _FieldAnnotationView_instances, createAnnotation_fn, _AutoPageNumberNodeView_instances, renderDom_fn, scheduleUpdateNodeStyle_fn;
13
13
  import * as Y from "yjs";
14
14
  import { UndoManager, Item as Item$1, ContentType, Text as Text$1, XmlElement, encodeStateAsUpdate } from "yjs";
15
- import { P as PluginKey, a as Plugin, M as Mapping, N as NodeSelection, S as Selection, T as TextSelection, b as Slice, D as DOMSerializer, F as Fragment, c as DOMParser$1, d as Mark$1, e as dropPoint, A as AllSelection, p as process$1, B as Buffer2, f as callOrGet, g as getExtensionConfigField, h as getMarkType, i as getMarksFromSelection, j as getNodeType, k as getSchemaTypeNameByName, l as Schema$1, m as cleanSchemaItem, n as canSplit, o as defaultBlockAt$1, q as liftTarget, r as canJoin, s as joinPoint, t as replaceStep$1, R as ReplaceAroundStep$1, u as isTextSelection, v as getMarkRange, w as isMarkActive, x as isNodeActive, y as deleteProps, z as processContent, C as htmlHandler, E as ReplaceStep, L as ListHelpers, G as updateNumberingProperties, H as changeListLevel, I as findParentNode, J as isList, K as isMacOS, O as isIOS, Q as getSchemaTypeByName, U as inputRulesPlugin, V as TrackDeleteMarkName, W as TrackInsertMarkName, X as v4, Y as TrackFormatMarkName, Z as comments_module_events, _ as findMark, $ as objectIncludes, a0 as AddMarkStep, a1 as RemoveMarkStep, a2 as twipsToLines, a3 as pixelsToTwips, a4 as helpers, a5 as posToDOMRect, a6 as CommandService, a7 as SuperConverter, a8 as createDocument, a9 as createDocFromMarkdown, aa as createDocFromHTML, ab as EditorState, ac as hasSomeParentWithClass, ad as isActive, ae as unflattenListsInHtml, af as parseSizeUnit, ag as minMax, ah as getLineHeightValueString, ai as updateDOMAttributes, aj as findChildren$5, ak as generateRandomSigned32BitIntStrId, al as kebabCase, am as twipsToPixels, an as halfPointToPixels, ao as getUnderlineCssString, ap as findParentNodeClosestToPos, aq as resolveRunProperties, ar as encodeCSSFromRPr, as as docxNumberingHelpers, at as InputRule, au as resolveParagraphProperties, av as eighthPointsToPixels, aw as linesToTwips, ax as convertSizeToCSS, ay as SelectionRange, az as Transform, aA as isInTable$1, aB as generateDocxRandomId, aC as insertNewRelationship, aD as inchesToPixels } from "./converter-DVDL6NWz.js";
16
- import { D as DocxZipper } from "./docx-zipper-4ipmBNSH.js";
15
+ import { P as PluginKey, a as Plugin, M as Mapping, N as NodeSelection, S as Selection, T as TextSelection, b as Slice, D as DOMSerializer, F as Fragment, c as DOMParser$1, d as Mark$1, e as dropPoint, A as AllSelection, p as process$1, B as Buffer2, f as callOrGet, g as getExtensionConfigField, h as getMarkType, i as getMarksFromSelection, j as getNodeType, k as getSchemaTypeNameByName, l as Schema$1, m as cleanSchemaItem, n as canSplit, o as defaultBlockAt$1, q as liftTarget, r as canJoin, s as joinPoint, t as replaceStep$1, R as ReplaceAroundStep$1, u as isTextSelection, v as getMarkRange, w as isMarkActive, x as isNodeActive, y as deleteProps, z as processContent, C as htmlHandler, E as ReplaceStep, L as ListHelpers, G as updateNumberingProperties, H as changeListLevel, I as findParentNode, J as isList, K as isMacOS, O as isIOS, Q as getSchemaTypeByName, U as inputRulesPlugin, V as TrackDeleteMarkName, W as TrackInsertMarkName, X as v4, Y as TrackFormatMarkName, Z as comments_module_events, _ as findMark, $ as objectIncludes, a0 as AddMarkStep, a1 as RemoveMarkStep, a2 as twipsToLines, a3 as pixelsToTwips, a4 as helpers, a5 as posToDOMRect, a6 as CommandService, a7 as SuperConverter, a8 as createDocument, a9 as createDocFromMarkdown, aa as createDocFromHTML, ab as EditorState, ac as hasSomeParentWithClass, ad as isActive, ae as unflattenListsInHtml, af as parseSizeUnit, ag as minMax, ah as getLineHeightValueString, ai as updateDOMAttributes, aj as findChildren$5, ak as generateRandomSigned32BitIntStrId, al as kebabCase, am as twipsToPixels, an as halfPointToPixels, ao as getUnderlineCssString, ap as findParentNodeClosestToPos, aq as resolveRunProperties, ar as encodeCSSFromRPr, as as docxNumberingHelpers, at as InputRule, au as resolveParagraphProperties, av as eighthPointsToPixels, aw as linesToTwips, ax as convertSizeToCSS, ay as SelectionRange, az as Transform, aA as isInTable$1, aB as generateDocxRandomId, aC as insertNewRelationship, aD as inchesToPixels } from "./converter-DkFlFcso.js";
16
+ import { D as DocxZipper } from "./docx-zipper-BSQJw-fX.js";
17
17
  import { ref, computed, createElementBlock, openBlock, withModifiers, Fragment as Fragment$1, renderList, normalizeClass, createCommentVNode, toDisplayString, createElementVNode, createApp } from "vue";
18
18
  var GOOD_LEAF_SIZE = 200;
19
19
  var RopeSequence = function RopeSequence2() {
@@ -8108,6 +8108,7 @@ createNodesSchema_fn = function(nodeExtensions, attributes, editor) {
8108
8108
  code: callOrGet(getExtensionConfigField(extension, "code", context)),
8109
8109
  defining: callOrGet(getExtensionConfigField(extension, "defining", context)),
8110
8110
  isolating: callOrGet(getExtensionConfigField(extension, "isolating", context)),
8111
+ summary: getExtensionConfigField(extension, "summary", context),
8111
8112
  attrs,
8112
8113
  ...additionalNodeFields
8113
8114
  });
@@ -10765,39 +10766,44 @@ const getHighlightColor = ({ activeThreadId, threadId, isInternal, editor }) =>
10765
10766
  return `${color}${alpha}`;
10766
10767
  };
10767
10768
  const updateYdocDocxData = async (editor, ydoc) => {
10768
- ydoc = ydoc || editor.options.ydoc;
10769
- if (!ydoc) return;
10770
- if (!editor || editor.isDestroyed) return;
10771
- const metaMap = ydoc.getMap("meta");
10772
- const docxValue = metaMap.get("docx");
10773
- let docx = [];
10774
- if (Array.isArray(docxValue)) {
10775
- docx = [...docxValue];
10776
- } else if (docxValue && typeof docxValue.toArray === "function") {
10777
- docx = docxValue.toArray();
10778
- } else if (docxValue && typeof docxValue[Symbol.iterator] === "function") {
10779
- docx = Array.from(docxValue);
10780
- }
10781
- if (!docx.length && Array.isArray(editor.options.content)) {
10782
- docx = [...editor.options.content];
10783
- }
10784
- const newXml = await editor.exportDocx({ getUpdatedDocs: true });
10785
- Object.keys(newXml).forEach((key2) => {
10786
- const fileIndex = docx.findIndex((item) => item.name === key2);
10787
- if (fileIndex > -1) {
10788
- docx.splice(fileIndex, 1);
10789
- }
10790
- docx.push({
10791
- name: key2,
10792
- content: newXml[key2]
10769
+ try {
10770
+ ydoc = ydoc || editor?.options?.ydoc;
10771
+ if (!ydoc) return;
10772
+ if (!editor || editor.isDestroyed) return;
10773
+ const metaMap = ydoc.getMap("meta");
10774
+ const docxValue = metaMap.get("docx");
10775
+ let docx = [];
10776
+ if (Array.isArray(docxValue)) {
10777
+ docx = [...docxValue];
10778
+ } else if (docxValue && typeof docxValue.toArray === "function") {
10779
+ docx = docxValue.toArray();
10780
+ } else if (docxValue && typeof docxValue[Symbol.iterator] === "function") {
10781
+ docx = Array.from(docxValue);
10782
+ }
10783
+ if (!docx.length && Array.isArray(editor.options.content)) {
10784
+ docx = [...editor.options.content];
10785
+ }
10786
+ const newXml = await editor.exportDocx({ getUpdatedDocs: true });
10787
+ if (!newXml || typeof newXml !== "object") return;
10788
+ Object.keys(newXml).forEach((key2) => {
10789
+ const fileIndex = docx.findIndex((item) => item.name === key2);
10790
+ if (fileIndex > -1) {
10791
+ docx.splice(fileIndex, 1);
10792
+ }
10793
+ docx.push({
10794
+ name: key2,
10795
+ content: newXml[key2]
10796
+ });
10793
10797
  });
10794
- });
10795
- ydoc.transact(
10796
- () => {
10797
- metaMap.set("docx", docx);
10798
- },
10799
- { event: "docx-update", user: editor.options.user }
10800
- );
10798
+ ydoc.transact(
10799
+ () => {
10800
+ metaMap.set("docx", docx);
10801
+ },
10802
+ { event: "docx-update", user: editor.options.user }
10803
+ );
10804
+ } catch (error) {
10805
+ console.warn("[collaboration] Failed to update Ydoc docx data", error);
10806
+ }
10801
10807
  };
10802
10808
  const STYLE_ISOLATION_CLASS = "sd-editor-scoped";
10803
10809
  const applyStyleIsolationClass = (target) => {
@@ -13496,6 +13502,66 @@ const getLevel = (node) => {
13496
13502
  const lvl = node.getAttribute("data-level");
13497
13503
  return lvl ? parseInt(lvl, 10) : 0;
13498
13504
  };
13505
+ const summaryVersion = "0.31.0-next.9";
13506
+ const nodeKeys = [
13507
+ "group",
13508
+ "content",
13509
+ "marks",
13510
+ "inline",
13511
+ "atom",
13512
+ "defining",
13513
+ "code",
13514
+ "tableRole",
13515
+ "summary"
13516
+ ];
13517
+ const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
13518
+ function mapAttributes(attrs) {
13519
+ if (!attrs) return {};
13520
+ return Object.fromEntries(
13521
+ Object.entries(attrs).map(([name, attrSpec]) => {
13522
+ const defaultValue = attrSpec?.default;
13523
+ return [
13524
+ name,
13525
+ {
13526
+ default: defaultValue ?? null,
13527
+ required: defaultValue === void 0
13528
+ }
13529
+ ];
13530
+ })
13531
+ );
13532
+ }
13533
+ function pickSpecFields(spec, keys2) {
13534
+ return Object.fromEntries(keys2.map((key2) => [key2, spec[key2]]).filter(([, value]) => value !== void 0));
13535
+ }
13536
+ function buildSchemaSummary(schema, schemaVersion) {
13537
+ if (!schema || typeof schema !== "object") {
13538
+ throw new Error("Invalid schema: schema must be a valid ProseMirror Schema object.");
13539
+ }
13540
+ const resolvedSchemaVersion = schemaVersion || "current";
13541
+ const nodes = [];
13542
+ schema.spec.nodes.forEach((name, spec) => {
13543
+ nodes.push({
13544
+ name,
13545
+ attrs: mapAttributes(spec.attrs),
13546
+ ...pickSpecFields(spec, nodeKeys)
13547
+ });
13548
+ });
13549
+ const marks = [];
13550
+ schema.spec.marks.forEach((name, spec) => {
13551
+ marks.push({
13552
+ name,
13553
+ attrs: mapAttributes(spec.attrs),
13554
+ ...pickSpecFields(spec, markKeys)
13555
+ });
13556
+ });
13557
+ return {
13558
+ version: summaryVersion,
13559
+ schemaVersion: resolvedSchemaVersion,
13560
+ topNode: schema.topNodeType?.name,
13561
+ nodes,
13562
+ marks
13563
+ };
13564
+ }
13499
13565
  const _Editor = class _Editor extends EventEmitter {
13500
13566
  /**
13501
13567
  * Create a new Editor instance
@@ -13879,6 +13945,53 @@ const _Editor = class _Editor extends EventEmitter {
13879
13945
  console.warn("updateDocumentVersion is deprecated, use setDocumentVersion instead");
13880
13946
  return _Editor.setDocumentVersion(doc2, version2);
13881
13947
  }
13948
+ /**
13949
+ * Generates a schema summary for the current runtime schema.
13950
+ */
13951
+ async getSchemaSummaryJSON() {
13952
+ if (!this.schema) {
13953
+ throw new Error("Schema is not initialized.");
13954
+ }
13955
+ const schemaVersion = this.converter?.getSuperdocVersion?.() || "current";
13956
+ const suppressedNames = new Set(
13957
+ (this.extensionService?.extensions || []).filter((ext) => {
13958
+ const config = ext?.config;
13959
+ const suppressFlag = config?.excludeFromSummaryJSON;
13960
+ return Boolean(suppressFlag);
13961
+ }).map((ext) => ext.name)
13962
+ );
13963
+ const summary = buildSchemaSummary(this.schema, schemaVersion);
13964
+ if (!suppressedNames.size) {
13965
+ return summary;
13966
+ }
13967
+ return {
13968
+ ...summary,
13969
+ nodes: summary.nodes.filter((node) => !suppressedNames.has(node.name)),
13970
+ marks: summary.marks.filter((mark) => !suppressedNames.has(mark.name))
13971
+ };
13972
+ }
13973
+ /**
13974
+ * Validates a ProseMirror JSON document against the current schema.
13975
+ */
13976
+ validateJSON(doc2) {
13977
+ if (!this.schema) {
13978
+ throw new Error("Schema is not initialized.");
13979
+ }
13980
+ const topNodeName = this.schema.topNodeType?.name || "doc";
13981
+ const normalizedDoc = Array.isArray(doc2) ? { type: topNodeName, content: doc2 } : doc2 && typeof doc2 === "object" && doc2.type ? doc2.type === topNodeName || doc2.type === "doc" ? doc2 : { type: topNodeName, content: [doc2] } : (() => {
13982
+ throw new Error("Invalid document shape: expected a node object or an array of node objects.");
13983
+ })();
13984
+ try {
13985
+ return this.schema.nodeFromJSON(normalizedDoc);
13986
+ } catch (error) {
13987
+ const detail = error instanceof Error ? error.message : String(error);
13988
+ const validationError = new Error(`Invalid document for current schema: ${detail}`);
13989
+ if (error instanceof Error) {
13990
+ validationError.cause = error;
13991
+ }
13992
+ throw validationError;
13993
+ }
13994
+ }
13882
13995
  /**
13883
13996
  * Creates all node views.
13884
13997
  */
@@ -14109,7 +14222,7 @@ const _Editor = class _Editor extends EventEmitter {
14109
14222
  { default: remarkStringify },
14110
14223
  { default: remarkGfm }
14111
14224
  ] = await Promise.all([
14112
- import("./index-BJ6cOegF.js"),
14225
+ import("./index-mvOjU9rn.js"),
14113
14226
  import("./index-DRCvimau.js"),
14114
14227
  import("./index-C_x_N6Uh.js"),
14115
14228
  import("./index-D_sWOSiG.js"),
@@ -14310,7 +14423,7 @@ const _Editor = class _Editor extends EventEmitter {
14310
14423
  * Process collaboration migrations
14311
14424
  */
14312
14425
  processCollaborationMigrations() {
14313
- console.debug("[checkVersionMigrations] Current editor version", "0.31.0-next.7");
14426
+ console.debug("[checkVersionMigrations] Current editor version", "0.31.0-next.9");
14314
14427
  if (!this.options.ydoc) return;
14315
14428
  const metaMap = this.options.ydoc.getMap("meta");
14316
14429
  let docVersion = metaMap.get("version");
@@ -16011,6 +16124,7 @@ const AiMark = Mark.create({
16011
16124
  name: AiMarkName,
16012
16125
  group: "ai",
16013
16126
  inclusive: false,
16127
+ excludeFromSummaryJSON: true,
16014
16128
  addOptions() {
16015
16129
  return {
16016
16130
  htmlAttributes: { class: "sd-ai-highlight" }
@@ -16037,6 +16151,7 @@ const AiAnimationMark = Mark.create({
16037
16151
  inclusive: false,
16038
16152
  spanning: false,
16039
16153
  excludes: AiAnimationMarkName,
16154
+ excludeFromSummaryJSON: true,
16040
16155
  addOptions() {
16041
16156
  return {
16042
16157
  htmlAttributes: {}
@@ -16068,6 +16183,7 @@ const AiAnimationMark = Mark.create({
16068
16183
  const dotsLoader = "data:image/svg+xml,%3csvg%20fill='hsla(278,%2077.40%25,%2020.80%25,%200.65)'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='4'%20cy='12'%20r='0'%3e%3canimate%20begin='0;spinner_z0Or.end'%20attributeName='r'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='0;3'%20fill='freeze'/%3e%3canimate%20begin='spinner_OLMs.end'%20attributeName='cx'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='4;12'%20fill='freeze'/%3e%3canimate%20begin='spinner_UHR2.end'%20attributeName='cx'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='12;20'%20fill='freeze'/%3e%3canimate%20id='spinner_lo66'%20begin='spinner_Aguh.end'%20attributeName='r'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='3;0'%20fill='freeze'/%3e%3canimate%20id='spinner_z0Or'%20begin='spinner_lo66.end'%20attributeName='cx'%20dur='0.001s'%20values='20;4'%20fill='freeze'/%3e%3c/circle%3e%3ccircle%20cx='4'%20cy='12'%20r='3'%3e%3canimate%20begin='0;spinner_z0Or.end'%20attributeName='cx'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='4;12'%20fill='freeze'/%3e%3canimate%20begin='spinner_OLMs.end'%20attributeName='cx'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='12;20'%20fill='freeze'/%3e%3canimate%20id='spinner_JsnR'%20begin='spinner_UHR2.end'%20attributeName='r'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='3;0'%20fill='freeze'/%3e%3canimate%20id='spinner_Aguh'%20begin='spinner_JsnR.end'%20attributeName='cx'%20dur='0.001s'%20values='20;4'%20fill='freeze'/%3e%3canimate%20begin='spinner_Aguh.end'%20attributeName='r'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='0;3'%20fill='freeze'/%3e%3c/circle%3e%3ccircle%20cx='12'%20cy='12'%20r='3'%3e%3canimate%20begin='0;spinner_z0Or.end'%20attributeName='cx'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='12;20'%20fill='freeze'/%3e%3canimate%20id='spinner_hSjk'%20begin='spinner_OLMs.end'%20attributeName='r'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='3;0'%20fill='freeze'/%3e%3canimate%20id='spinner_UHR2'%20begin='spinner_hSjk.end'%20attributeName='cx'%20dur='0.001s'%20values='20;4'%20fill='freeze'/%3e%3canimate%20begin='spinner_UHR2.end'%20attributeName='r'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='0;3'%20fill='freeze'/%3e%3canimate%20begin='spinner_Aguh.end'%20attributeName='cx'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='4;12'%20fill='freeze'/%3e%3c/circle%3e%3ccircle%20cx='20'%20cy='12'%20r='3'%3e%3canimate%20id='spinner_4v5M'%20begin='0;spinner_z0Or.end'%20attributeName='r'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='3;0'%20fill='freeze'/%3e%3canimate%20id='spinner_OLMs'%20begin='spinner_4v5M.end'%20attributeName='cx'%20dur='0.001s'%20values='20;4'%20fill='freeze'/%3e%3canimate%20begin='spinner_OLMs.end'%20attributeName='r'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='0;3'%20fill='freeze'/%3e%3canimate%20begin='spinner_UHR2.end'%20attributeName='cx'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='4;12'%20fill='freeze'/%3e%3canimate%20begin='spinner_Aguh.end'%20attributeName='cx'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='12;20'%20fill='freeze'/%3e%3c/circle%3e%3c/svg%3e";
16069
16184
  const AiLoaderNode = Node$1.create({
16070
16185
  name: AiLoaderNodeName,
16186
+ excludeFromSummaryJSON: true,
16071
16187
  group: "inline",
16072
16188
  inline: true,
16073
16189
  atom: true,
@@ -17655,6 +17771,7 @@ const DocumentPartObject = Node$1.create({
17655
17771
  group: "block",
17656
17772
  content: "block*",
17657
17773
  isolating: true,
17774
+ excludeFromSummaryJSON: true,
17658
17775
  addOptions() {
17659
17776
  return {
17660
17777
  htmlAttributes: {
@@ -19796,6 +19913,7 @@ const Paragraph = OxmlNode.create({
19796
19913
  group: "block",
19797
19914
  content: "inline*",
19798
19915
  inline: false,
19916
+ summary: "The paragraph node mirrors MS Word w:p paragraphs, and also represents lists in the schema.",
19799
19917
  addOptions() {
19800
19918
  return {
19801
19919
  headingLevels: [1, 2, 3, 4, 5, 6],
@@ -27309,6 +27427,7 @@ const Mention = Node$1.create({
27309
27427
  group: "inline",
27310
27428
  inline: true,
27311
27429
  selectable: false,
27430
+ excludeFromSummaryJSON: true,
27312
27431
  atom: true,
27313
27432
  addOptions() {
27314
27433
  return {
@@ -1,4 +1,4 @@
1
- import { aF as getDefaultExportFromCjs } from "./converter-DVDL6NWz.js";
1
+ import { aF as getDefaultExportFromCjs } from "./converter-DkFlFcso.js";
2
2
  import { V as VFile } from "./index-CvBqQJbG.js";
3
3
  function bail(error) {
4
4
  if (error) {
@@ -1,6 +1,6 @@
1
1
  import { computed, createElementBlock, openBlock, createElementVNode, createCommentVNode, normalizeClass, normalizeStyle, ref, withKeys, unref, withModifiers, createBlock, toDisplayString, withDirectives, vModelText, nextTick, getCurrentInstance, createVNode, readonly, watch, onMounted, onBeforeUnmount, 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-DVDL6NWz.js";
3
- import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-B8v33PJq.js";
2
+ import { p as process$1 } from "./converter-DkFlFcso.js";
3
+ import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-bUoNJi-W.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 { a7 } from "./chunks/converter-DVDL6NWz.js";
1
+ import { a7 } from "./chunks/converter-DkFlFcso.js";
2
2
  export {
3
3
  a7 as SuperConverter
4
4
  };
@@ -1,5 +1,5 @@
1
- import "./chunks/converter-DVDL6NWz.js";
2
- import { D } from "./chunks/docx-zipper-4ipmBNSH.js";
1
+ import "./chunks/converter-DkFlFcso.js";
2
+ import { D } from "./chunks/docx-zipper-BSQJw-fX.js";
3
3
  export {
4
4
  D as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E } from "./chunks/editor-B8v33PJq.js";
2
- import "./chunks/converter-DVDL6NWz.js";
3
- import "./chunks/docx-zipper-4ipmBNSH.js";
1
+ import { E } from "./chunks/editor-bUoNJi-W.js";
2
+ import "./chunks/converter-DkFlFcso.js";
3
+ import "./chunks/docx-zipper-BSQJw-fX.js";
4
4
  export {
5
5
  E as Editor
6
6
  };
@@ -1,4 +1,4 @@
1
- import { J as JSZip } from "./chunks/docx-zipper-4ipmBNSH.js";
1
+ import { J as JSZip } from "./chunks/docx-zipper-BSQJw-fX.js";
2
2
  async function createZip(blobs, fileNames) {
3
3
  const zip = new JSZip();
4
4
  blobs.forEach((blob, index) => {
@@ -466,6 +466,8 @@ a {
466
466
  */
467
467
  .ProseMirror {
468
468
  position: relative;
469
+ /* We use "all: revert" to isolate the editor content from external stylesheets. This makes the "contenteditable" not editable on Safari devices. So we need to keep this. */
470
+ -webkit-user-modify: read-write-plaintext-only;
469
471
  }
470
472
  .ProseMirror {
471
473
  word-wrap: break-word;
@@ -4,6 +4,7 @@ import type { EditorOptions, User, FieldValue, DocxFileEntry } from './types/Edi
4
4
  import type { EditorHelpers, ExtensionStorage, ProseMirrorJSON, PageStyles, Toolbar } from './types/EditorTypes.js';
5
5
  import type { ChainableCommandObject, CanObject, EditorCommands } from './types/ChainedCommands.js';
6
6
  import type { EditorEventMap, Comment } from './types/EditorEvents.js';
7
+ import type { SchemaSummaryJSON } from './types/EditorSchema.js';
7
8
  import { EditorView } from 'prosemirror-view';
8
9
  import { EventEmitter } from './EventEmitter.js';
9
10
  import { ExtensionService } from './ExtensionService.js';
@@ -184,6 +185,14 @@ export declare class Editor extends EventEmitter<EditorEventMap> {
184
185
  * @deprecated use setDocumentVersion instead
185
186
  */
186
187
  static updateDocumentVersion(doc: DocxFileEntry[], version: string): string;
188
+ /**
189
+ * Generates a schema summary for the current runtime schema.
190
+ */
191
+ getSchemaSummaryJSON(): Promise<SchemaSummaryJSON>;
192
+ /**
193
+ * Validates a ProseMirror JSON document against the current schema.
194
+ */
195
+ validateJSON(doc: ProseMirrorJSON | ProseMirrorJSON[]): PmNode;
187
196
  /**
188
197
  * Creates all node views.
189
198
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../../../src/core/Editor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAe,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE1E,OAAO,KAAK,EAAiB,IAAI,IAAI,MAAM,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC/E,OAAO,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,UAAU,EAA8B,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC1H,OAAO,KAAK,EACV,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,UAAU,EAEV,OAAO,EACR,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,sBAAsB,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACpG,OAAO,KAAK,EAAE,cAAc,EAAwB,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAG7F,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAI9C,OAAO,EAA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AAI;IAMhE;;;;OAIG;IACG,sBAAsB,CAAC,gBAAgB,GAAE,UAAU,EAAO,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;IAMxF;;OAEG;IACH,QAAQ,CAAC,gBAAgB,GAAE,UAAU,EAAO,EAAE,SAAS,GAAE,MAAM,EAAO,EAAE,iBAAiB,GAAE,OAAe,GAAG,IAAI;IAkBjH;;;OAGG;IACH,kBAAkB,CAAC,gBAAgB,GAAE,UAAU,EAAO,EAAE,SAAS,GAAE,MAAM,EAAO,GAAG,IAAI;IAKvF;;OAEG;IACH,YAAY,IAAI,IAAI;CAmCrB"}
@@ -1,7 +1,7 @@
1
1
  import type { MaybeGetter } from './utilities/callOrGet.js';
2
2
  import type { NodeType, ParseRule, DOMOutputSpec } from 'prosemirror-model';
3
3
  import type { Plugin } from 'prosemirror-state';
4
- import type { InputRule } from 'prosemirror-inputrules';
4
+ import type { InputRule } from './InputRule.js';
5
5
  import type { NodeView } from 'prosemirror-view';
6
6
  import type { Editor } from './Editor.js';
7
7
  import type { Command } from './types/ChainedCommands.js';
@@ -1 +1 @@
1
- {"version":3,"file":"Node.d.ts","sourceRoot":"","sources":["../../../../src/core/Node.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC5E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;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M,EAAE,KAAK,CAAC;IAE/D,IAAI,EAAE,QAAQ,GAAG,MAAM,CAAU;IAEjC,IAAI,EAAE,MAAM,CAAU;IAEtB,OAAO,EAAE,OAAO,CAAC;IAEjB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAE1B,IAAI,EAAE,OAAO,GAAG,SAAS,CAAC;IAE1B,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAE3B,OAAO,EAAE,OAAO,CAAC;IAEjB,MAAM,EAAE,UAAU,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;gBAEzB,MAAM,EAAE,UAAU,CAAC,OAAO,EAAE,OAAO,CAAC;IA4BhD;;;;OAIG;IACH,MAAM,CAAC,MAAM,CACX,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EACzD,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EACzD,MAAM,EAAE,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;CAGxC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/core/Schema.js"],"names":[],"mappings":"AAMA;;GAEG;AACH;IACE;;;;;OAKG;IACH,wFASC;IAED;;;;;;OAMG;IACH;;MA0EC;IAED;;;;;;OAMG;IACH;;MA6CC;CACF;mCAnKkC,mBAAmB"}
1
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/core/Schema.js"],"names":[],"mappings":"AAMA;;GAEG;AACH;IACE;;;;;OAKG;IACH,wFASC;IAED;;;;;;OAMG;IACH;;MA2EC;IAED;;;;;;OAMG;IACH;;MA6CC;CACF;mCApKkC,mBAAmB"}
@@ -0,0 +1,4 @@
1
+ import type { Schema } from 'prosemirror-model';
2
+ import type { SchemaSummaryJSON } from './types/EditorSchema.js';
3
+ export declare function buildSchemaSummary(schema: Schema, schemaVersion?: string): SchemaSummaryJSON;
4
+ //# sourceMappingURL=schema-summary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-summary.d.ts","sourceRoot":"","sources":["../../../../src/core/schema-summary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EAAE,iBAAiB,EAA0B,MAAM,yBAAyB,CAAC;AAkDzF,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,GAAG,iBAAiB,CAgC5F"}
@@ -0,0 +1,35 @@
1
+ import type { AttributeValue } from '../Attribute.js';
2
+ export type SchemaSummaryAttribute = {
3
+ default: AttributeValue;
4
+ required: boolean;
5
+ };
6
+ export type SchemaSummaryNode = {
7
+ name: string;
8
+ attrs: Record<string, SchemaSummaryAttribute>;
9
+ group?: string;
10
+ content?: string;
11
+ marks?: string;
12
+ inline?: boolean;
13
+ atom?: boolean;
14
+ defining?: boolean;
15
+ code?: boolean;
16
+ tableRole?: string;
17
+ summary?: string;
18
+ };
19
+ export type SchemaSummaryMark = {
20
+ name: string;
21
+ attrs: Record<string, SchemaSummaryAttribute>;
22
+ group?: string;
23
+ inclusive?: boolean;
24
+ excludes?: string;
25
+ spanning?: boolean;
26
+ code?: boolean;
27
+ };
28
+ export type SchemaSummaryJSON = {
29
+ version: string;
30
+ schemaVersion: string;
31
+ topNode?: string;
32
+ nodes: SchemaSummaryNode[];
33
+ marks: SchemaSummaryMark[];
34
+ };
35
+ //# sourceMappingURL=EditorSchema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditorSchema.d.ts","sourceRoot":"","sources":["../../../../../src/core/types/EditorSchema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEtD,MAAM,MAAM,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B,gBAAgB"}
1
+ {"version":3,"file":"ai-marks.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/ai/ai-marks.js"],"names":[],"mappings":"AAGA;;;;0BA+BG;AAEH;;0BAyCG;qBA7E6B,gBAAgB"}
@@ -1 +1 @@
1
- {"version":3,"file":"ai-nodes.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/ai/ai-nodes.js"],"names":[],"mappings":"AAIA;;;;;;0BAyCG;qBA7C6B,gBAAgB"}
1
+ {"version":3,"file":"ai-nodes.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/ai/ai-nodes.js"],"names":[],"mappings":"AAIA;;;;;;0BA2CG;qBA/C6B,gBAAgB"}
@@ -1 +1 @@
1
- {"version":3,"file":"collaboration-helpers.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/collaboration/collaboration-helpers.js"],"names":[],"mappings":"AAMO,2CAHI,MAAM,cACJ,OAAO,CAAC,IAAI,CAAC,CA0CzB"}
1
+ {"version":3,"file":"collaboration-helpers.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/collaboration/collaboration-helpers.js"],"names":[],"mappings":"AAMO,2CAHI,MAAM,cACJ,OAAO,CAAC,IAAI,CAAC,CA+CzB"}
@@ -1 +1 @@
1
- {"version":3,"file":"mention.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/mention/mention.js"],"names":[],"mappings":"AAEA;;;;;GAKG;AAEH;;;;;;GAMG;AAEH;;;;GAIG;AACH;;;;;0BAgDG;;;;;;;;;qBAtE6B,gBAAgB"}
1
+ {"version":3,"file":"mention.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/mention/mention.js"],"names":[],"mappings":"AAEA;;;;;GAKG;AAEH;;;;;;GAMG;AAEH;;;;GAIG;AACH;;;;;0BAkDG;;;;;;;;;qBAxE6B,gBAAgB"}
@@ -1 +1 @@
1
- {"version":3,"file":"paragraph.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/paragraph/paragraph.js"],"names":[],"mappings":"AA+BA;;;;;;GAMG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH;;;;GAIG;AACH,+EAmgBG;;;;;;;;;yBA3kBiC,gBAAgB"}
1
+ {"version":3,"file":"paragraph.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/paragraph/paragraph.js"],"names":[],"mappings":"AA+BA;;;;;;GAMG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH;;;;GAIG;AACH,+EAqgBG;;;;;;;;;yBA7kBiC,gBAAgB"}
@@ -1 +1 @@
1
- {"version":3,"file":"document-part-object.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/structured-content/document-part-object.js"],"names":[],"mappings":"AAGA;;;;;0BA6CG;qBA/C6B,gBAAgB"}
1
+ {"version":3,"file":"document-part-object.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/structured-content/document-part-object.js"],"names":[],"mappings":"AAGA;;;;;0BA8CG;qBAhD6B,gBAAgB"}
@@ -111,6 +111,14 @@ export function isTrackedChangeActionAllowed({ editor, action, trackedChanges }:
111
111
  setEditable(editable?: boolean, emitUpdate?: boolean): void;
112
112
  registerPlugin(plugin: any, handlePlugins: any): void;
113
113
  unregisterPlugin(nameOrPluginKey: any): void;
114
+ getSchemaSummaryJSON(): Promise<{
115
+ version: string;
116
+ schemaVersion: any;
117
+ topNode: any;
118
+ nodes: any[];
119
+ marks: any[];
120
+ }>;
121
+ validateJSON(doc2: any): any;
114
122
  createNodeViews(): void;
115
123
  getMaxContentSize(): {
116
124
  width?: undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"permission-helpers.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/track-changes/permission-helpers.js"],"names":[],"mappings":"AAgDO,2DALJ;IAAwD,KAAK,EAArD,OAAO,mBAAmB,EAAE,WAAW;IACxB,IAAI,EAAnB,MAAM;IACS,EAAE,EAAjB,MAAM;CACd,GAAU,KAAK,KAAQ,CAkBzB;AA+BM,iFALJ;IAAmE,MAAM,EAAjE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAAkD;IACxB,MAAM,EAAhC,QAAQ,GAAC,QAAQ;IACK,cAAc,EAApC,KAAK,KAAQ;CACrB,GAAU,OAAO,CAkCnB;AAWM,iFALJ;IAAwD,KAAK,EAArD,OAAO,mBAAmB,EAAE,WAAW;IACnB,GAAG,EAAvB,MAAM,GAAC,IAAI;IACS,eAAe,EAAnC,MAAM,GAAC,IAAI;CACnB,GAAU,KAAK,KAAQ,CAOzB"}
1
+ {"version":3,"file":"permission-helpers.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/track-changes/permission-helpers.js"],"names":[],"mappings":"AAgDO,2DALJ;IAAwD,KAAK,EAArD,OAAO,mBAAmB,EAAE,WAAW;IACxB,IAAI,EAAnB,MAAM;IACS,EAAE,EAAjB,MAAM;CACd,GAAU,KAAK,KAAQ,CAkBzB;AA+BM,iFALJ;IAAmE,MAAM,EAAjE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAAkD;IACxB,MAAM,EAAhC,QAAQ,GAAC,QAAQ;IACK,cAAc,EAApC,KAAK,KAAQ;CACrB,GAAU,OAAO,CAkCnB;AAWM,iFALJ;IAAwD,KAAK,EAArD,OAAO,mBAAmB,EAAE,WAAW;IACnB,GAAG,EAAvB,MAAM,GAAC,IAAI;IACS,eAAe,EAAnC,MAAM,GAAC,IAAI;CACnB,GAAU,KAAK,KAAQ,CAOzB"}
@@ -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 _SuperToolbar_instances, initToolbarGroups_fn, _interceptedCommands, makeToolbarItems_fn, initDefaultFonts_fn, updateHighlightColors_fn, deactivateAll_fn, updateToolbarHistory_fn, enrichTrackedChanges_fn, runCommandWithArgumentOnly_fn;
12
- import { aF as getDefaultExportFromCjs, X as v4, T as TextSelection$1, v as getMarkRange, aI as vClickOutside, aJ as getActiveFormatting, aA as isInTable, I as findParentNode, J as isList, aK as readFromClipboard, aL as handleClipboardPaste, aM as getFileObject, aN as translator, aO as translator$1, aP as translator$2, aQ as translator$3, aR as translator$4, aS as translator$5, aT as translator$6, aU as translator$7, aV as translator$8, aW as translator$9, aX as translator$a, aY as translator$b, aZ as translator$c, a_ as translator$d, a$ as translator$e, b0 as commentRangeEndTranslator, b1 as commentRangeStartTranslator, b2 as translator$f, b3 as translator$g, b4 as translator$h, b5 as translator$i, b6 as translator$j, b7 as translator$k, b8 as translator$l, b9 as translator$m, ba as translator$n, bb as translator$o, bc as translator$p, bd as translator$q, be as translator$r, bf as translator$s, bg as translator$t, bh as translator$u, bi as translator$v, bj as translator$w, bk as translator$x, bl as translator$y, bm as translator$z, bn as translator$A, bo as translator$B, bp as translator$C, bq as translator$D, br as translator$E, bs as translator$F, bt as translator$G, bu as translator$H, bv as translator$I, bw as translator$J, bx as translator$K, by as translator$L, bz as translator$M, bA as translator$N, bB as translator$O, bC as translator$P, bD as translator$Q, bE as translator$R, bF as translator$S, bG as translator$T, bH as translator$U, bI as translator$V, bJ as translator$W, bK as translator$X, bL as translator$Y, bM as translator$Z, bN as translator$_, bO as translator$$, bP as translator$10, bQ as translator$11, bR as translator$12, bS as translator$13, bT as translator$14, bU as translator$15, bV as translator$16, bW as translator$17, bX as translator$18, bY as translator$19, bZ as translator$1a, b_ as translator$1b, b$ as translator$1c, c0 as translator$1d, c1 as translator$1e, c2 as translator$1f, c3 as translator$1g, c4 as translator$1h, c5 as translator$1i, c6 as translator$1j, P as PluginKey, a as Plugin } from "./chunks/converter-DVDL6NWz.js";
13
- import { a7, i, a4 } from "./chunks/converter-DVDL6NWz.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 collectTrackedChangesForContext, s as shouldBypassContextMenu, S as SlashMenuPluginKey, l as isHeadless, E as Editor, m as getStarterExtensions, P as Placeholder, n as getRichTextExtensions, D as DecorationSet, o as Decoration, M as Mark, p as Extension, A as Attribute, N as Node } from "./chunks/editor-B8v33PJq.js";
15
- import { v, C, w, T, q, x, t } from "./chunks/editor-B8v33PJq.js";
12
+ import { aF as getDefaultExportFromCjs, X as v4, T as TextSelection$1, v as getMarkRange, aI as vClickOutside, aJ as getActiveFormatting, aA as isInTable, I as findParentNode, J as isList, aK as readFromClipboard, aL as handleClipboardPaste, aM as getFileObject, aN as translator, aO as translator$1, aP as translator$2, aQ as translator$3, aR as translator$4, aS as translator$5, aT as translator$6, aU as translator$7, aV as translator$8, aW as translator$9, aX as translator$a, aY as translator$b, aZ as translator$c, a_ as translator$d, a$ as translator$e, b0 as commentRangeEndTranslator, b1 as commentRangeStartTranslator, b2 as translator$f, b3 as translator$g, b4 as translator$h, b5 as translator$i, b6 as translator$j, b7 as translator$k, b8 as translator$l, b9 as translator$m, ba as translator$n, bb as translator$o, bc as translator$p, bd as translator$q, be as translator$r, bf as translator$s, bg as translator$t, bh as translator$u, bi as translator$v, bj as translator$w, bk as translator$x, bl as translator$y, bm as translator$z, bn as translator$A, bo as translator$B, bp as translator$C, bq as translator$D, br as translator$E, bs as translator$F, bt as translator$G, bu as translator$H, bv as translator$I, bw as translator$J, bx as translator$K, by as translator$L, bz as translator$M, bA as translator$N, bB as translator$O, bC as translator$P, bD as translator$Q, bE as translator$R, bF as translator$S, bG as translator$T, bH as translator$U, bI as translator$V, bJ as translator$W, bK as translator$X, bL as translator$Y, bM as translator$Z, bN as translator$_, bO as translator$$, bP as translator$10, bQ as translator$11, bR as translator$12, bS as translator$13, bT as translator$14, bU as translator$15, bV as translator$16, bW as translator$17, bX as translator$18, bY as translator$19, bZ as translator$1a, b_ as translator$1b, b$ as translator$1c, c0 as translator$1d, c1 as translator$1e, c2 as translator$1f, c3 as translator$1g, c4 as translator$1h, c5 as translator$1i, c6 as translator$1j, P as PluginKey, a as Plugin } from "./chunks/converter-DkFlFcso.js";
13
+ import { a7, i, a4 } from "./chunks/converter-DkFlFcso.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 collectTrackedChangesForContext, s as shouldBypassContextMenu, S as SlashMenuPluginKey, l as isHeadless, E as Editor, m as getStarterExtensions, P as Placeholder, n as getRichTextExtensions, D as DecorationSet, o as Decoration, M as Mark, p as Extension, A as Attribute, N as Node } from "./chunks/editor-bUoNJi-W.js";
15
+ import { v, C, w, T, q, x, t } from "./chunks/editor-bUoNJi-W.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, shallowRef, createBlock, 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-CfUofx7k.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-CkPV7I8i.js";
18
18
  import AIWriter from "./ai-writer.es.js";
19
- import { D } from "./chunks/docx-zipper-4ipmBNSH.js";
19
+ import { D } from "./chunks/docx-zipper-BSQJw-fX.js";
20
20
  import { createZip } from "./file-zipper.es.js";
21
21
  var eventemitter3 = { exports: {} };
22
22
  var hasRequiredEventemitter3;
@@ -1,6 +1,6 @@
1
1
  import "vue";
2
- import { T } from "./chunks/toolbar-CfUofx7k.js";
3
- import "./chunks/editor-B8v33PJq.js";
2
+ import { T } from "./chunks/toolbar-CkPV7I8i.js";
3
+ import "./chunks/editor-bUoNJi-W.js";
4
4
  export {
5
5
  T as default
6
6
  };
@@ -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-Bz-s1Pw4.cjs");
4
- require("./chunks/vue-Cwv-wUpm.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-D55QKmsp.cjs");
4
+ require("./chunks/vue-ARQSyfaw.cjs");
5
5
  exports.AIWriter = superEditor_es.AIWriter;
6
6
  exports.AnnotatorHelpers = superEditor_es.AnnotatorHelpers;
7
7
  exports.BasicUpload = superEditor_es._sfc_main$4;