superdoc 0.33.0 → 0.34.0

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 (45) hide show
  1. package/dist/chunks/{PdfViewer-CvEaYTTI.es.js → PdfViewer-QoTBuPvf.es.js} +1 -1
  2. package/dist/chunks/{PdfViewer-DQvzXWoG.cjs → PdfViewer-ucye4VI0.cjs} +1 -1
  3. package/dist/chunks/{index--tOlLMNW.es.js → index-Bt64DU6g.es.js} +3 -3
  4. package/dist/chunks/{index-CIbMY9Bm-Dt4hHnew.es.js → index-UvHeMhoE-5Gu2ghe5.es.js} +1 -1
  5. package/dist/chunks/{index-CIbMY9Bm-DqnTTic6.cjs → index-UvHeMhoE-ukCcgvCU.cjs} +1 -1
  6. package/dist/chunks/{index-Dx306Sib.cjs → index-v2Mq8HRp.cjs} +3 -3
  7. package/dist/chunks/{super-editor.es-CUj_HXIP.cjs → super-editor.es-C-xsuwsj.cjs} +110 -3
  8. package/dist/chunks/{super-editor.es-CNAfYsLL.es.js → super-editor.es-brkQW7ao.es.js} +110 -3
  9. package/dist/packages/superdoc/src/core/SuperDoc.d.ts +2 -0
  10. package/dist/packages/superdoc/src/core/SuperDoc.d.ts.map +1 -1
  11. package/dist/packages/superdoc/src/core/types/index.d.ts +2 -0
  12. package/dist/packages/superdoc/src/core/types/index.d.ts.map +1 -1
  13. package/dist/super-editor/ai-writer.es.js +2 -2
  14. package/dist/super-editor/chunks/{converter-BT3EWHD6.js → converter-D6ElhI07.js} +1 -1
  15. package/dist/super-editor/chunks/{docx-zipper-CmdlRMBW.js → docx-zipper-Ci7V0UkA.js} +1 -1
  16. package/dist/super-editor/chunks/{editor-DTJ6lEWC.js → editor-D82VSNig.js} +111 -4
  17. package/dist/super-editor/chunks/{index-CIbMY9Bm.js → index-UvHeMhoE.js} +1 -1
  18. package/dist/super-editor/chunks/{toolbar-kGgbsteb.js → toolbar-BA72pClQ.js} +2 -2
  19. package/dist/super-editor/converter.es.js +1 -1
  20. package/dist/super-editor/docx-zipper.es.js +2 -2
  21. package/dist/super-editor/editor.es.js +3 -3
  22. package/dist/super-editor/file-zipper.es.js +1 -1
  23. package/dist/super-editor/super-editor/src/core/Editor.d.ts +11 -0
  24. package/dist/super-editor/super-editor/src/core/Editor.d.ts.map +1 -1
  25. package/dist/super-editor/super-editor/src/core/Schema.d.ts.map +1 -1
  26. package/dist/super-editor/super-editor/src/core/schema-summary.d.ts +8 -0
  27. package/dist/super-editor/super-editor/src/core/schema-summary.d.ts.map +1 -0
  28. package/dist/super-editor/super-editor/src/core/types/index.d.ts +8 -0
  29. package/dist/super-editor/super-editor/src/core/types/index.d.ts.map +1 -1
  30. package/dist/super-editor/super-editor/src/extensions/ai/ai-marks.d.ts.map +1 -1
  31. package/dist/super-editor/super-editor/src/extensions/ai/ai-nodes.d.ts.map +1 -1
  32. package/dist/super-editor/super-editor/src/extensions/mention/mention.d.ts.map +1 -1
  33. package/dist/super-editor/super-editor/src/extensions/paragraph/paragraph.d.ts.map +1 -1
  34. package/dist/super-editor/super-editor/src/extensions/structured-content/document-part-object.d.ts.map +1 -1
  35. package/dist/super-editor/super-editor/src/extensions/track-changes/permission-helpers.d.ts +2 -0
  36. package/dist/super-editor/super-editor/src/extensions/track-changes/permission-helpers.d.ts.map +1 -1
  37. package/dist/super-editor/super-editor.es.js +6 -6
  38. package/dist/super-editor/toolbar.es.js +2 -2
  39. package/dist/super-editor.cjs +1 -1
  40. package/dist/super-editor.es.js +1 -1
  41. package/dist/superdoc.cjs +2 -2
  42. package/dist/superdoc.es.js +2 -2
  43. package/dist/superdoc.umd.js +112 -5
  44. package/dist/superdoc.umd.js.map +1 -1
  45. package/package.json +1 -1
@@ -12,8 +12,8 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
12
12
  var _Attribute_static, getGlobalAttributes_fn, getNodeAndMarksAttributes_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, 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, _ListItemNodeView_instances, init_fn3, applyIndentStyling_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 ReplaceStep, E as NodeRange, G as findWrapping, L as ListHelpers, H as findParentNode, I as isMacOS, J as isIOS, K as getSchemaTypeByName, O as inputRulesPlugin, Q as TrackDeleteMarkName, U as TrackInsertMarkName, V as v4, W as TrackFormatMarkName, X as comments_module_events, Y as findMark, Z as objectIncludes, _ as AddMarkStep, $ as RemoveMarkStep, a0 as twipsToLines, a1 as pixelsToTwips, a2 as helpers, a3 as posToDOMRect, a4 as CommandService, a5 as SuperConverter, a6 as createDocument, a7 as createDocFromMarkdown, a8 as createDocFromHTML, a9 as EditorState, aa as hasSomeParentWithClass, ab as isActive, ac as unflattenListsInHtml, ad as parseSizeUnit, ae as minMax, af as getLineHeightValueString, ag as updateDOMAttributes, ah as findChildren$5, ai as htmlHandler, aj as generateRandomSigned32BitIntStrId, ak as InputRule, al as kebabCase, am as findParentNodeClosestToPos, an as getListItemStyleDefinitions, ao as docxNumberingHelpers, ap as parseIndentElement, aq as combineIndents, ar as twipsToPixels, as as PIXELS_PER_INCH, at as SelectionRange, au as Transform, av as isInTable$1, aw as generateDocxRandomId, ax as insertNewRelationship, ay as inchesToPixels } from "./converter-BT3EWHD6.js";
16
- import { D as DocxZipper } from "./docx-zipper-CmdlRMBW.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 ReplaceStep, E as NodeRange, G as findWrapping, L as ListHelpers, H as findParentNode, I as isMacOS, J as isIOS, K as getSchemaTypeByName, O as inputRulesPlugin, Q as TrackDeleteMarkName, U as TrackInsertMarkName, V as v4, W as TrackFormatMarkName, X as comments_module_events, Y as findMark, Z as objectIncludes, _ as AddMarkStep, $ as RemoveMarkStep, a0 as twipsToLines, a1 as pixelsToTwips, a2 as helpers, a3 as posToDOMRect, a4 as CommandService, a5 as SuperConverter, a6 as createDocument, a7 as createDocFromMarkdown, a8 as createDocFromHTML, a9 as EditorState, aa as hasSomeParentWithClass, ab as isActive, ac as unflattenListsInHtml, ad as parseSizeUnit, ae as minMax, af as getLineHeightValueString, ag as updateDOMAttributes, ah as findChildren$5, ai as htmlHandler, aj as generateRandomSigned32BitIntStrId, ak as InputRule, al as kebabCase, am as findParentNodeClosestToPos, an as getListItemStyleDefinitions, ao as docxNumberingHelpers, ap as parseIndentElement, aq as combineIndents, ar as twipsToPixels, as as PIXELS_PER_INCH, at as SelectionRange, au as Transform, av as isInTable$1, aw as generateDocxRandomId, ax as insertNewRelationship, ay as inchesToPixels } from "./converter-D6ElhI07.js";
16
+ import { D as DocxZipper } from "./docx-zipper-Ci7V0UkA.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() {
@@ -8120,6 +8120,7 @@ createNodesSchema_fn = function(nodeExtensions, attributes, editor) {
8120
8120
  code: callOrGet(getExtensionConfigField(extension, "code", context)),
8121
8121
  defining: callOrGet(getExtensionConfigField(extension, "defining", context)),
8122
8122
  isolating: callOrGet(getExtensionConfigField(extension, "isolating", context)),
8123
+ summary: getExtensionConfigField(extension, "summary", context),
8123
8124
  attrs,
8124
8125
  ...additionalNodeFields
8125
8126
  });
@@ -14393,6 +14394,56 @@ const getLevel = (node) => {
14393
14394
  const lvl = node.getAttribute("data-level");
14394
14395
  return lvl ? parseInt(lvl, 10) : 0;
14395
14396
  };
14397
+ const summaryVersion = typeof globalThis.__APP_VERSION__ === "string" && globalThis.__APP_VERSION__ || typeof globalThis.version === "string" && globalThis.version || "0.0.0";
14398
+ const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
14399
+ const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
14400
+ function mapAttributes(attrs) {
14401
+ if (!attrs) return {};
14402
+ return Object.fromEntries(
14403
+ Object.entries(attrs).map(([name, attrSpec]) => {
14404
+ const defaultValue = attrSpec?.default;
14405
+ return [
14406
+ name,
14407
+ {
14408
+ default: defaultValue ?? null,
14409
+ required: defaultValue === void 0
14410
+ }
14411
+ ];
14412
+ })
14413
+ );
14414
+ }
14415
+ function pickSpecFields(spec, keys2) {
14416
+ return Object.fromEntries(keys2.map((key2) => [key2, spec[key2]]).filter(([, value]) => value !== void 0));
14417
+ }
14418
+ function buildSchemaSummary(schema, schemaVersion) {
14419
+ if (!schema || typeof schema !== "object") {
14420
+ throw new Error("Invalid schema: schema must be a valid ProseMirror Schema object.");
14421
+ }
14422
+ const resolvedSchemaVersion = schemaVersion || "current";
14423
+ const nodes = [];
14424
+ schema.spec.nodes.forEach((name, spec) => {
14425
+ nodes.push({
14426
+ name,
14427
+ attrs: mapAttributes(spec.attrs),
14428
+ ...pickSpecFields(spec, nodeKeys)
14429
+ });
14430
+ });
14431
+ const marks = [];
14432
+ schema.spec.marks.forEach((name, spec) => {
14433
+ marks.push({
14434
+ name,
14435
+ attrs: mapAttributes(spec.attrs),
14436
+ ...pickSpecFields(spec, markKeys)
14437
+ });
14438
+ });
14439
+ return {
14440
+ version: summaryVersion,
14441
+ schemaVersion: resolvedSchemaVersion,
14442
+ topNode: schema.topNodeType?.name,
14443
+ nodes,
14444
+ marks
14445
+ };
14446
+ }
14396
14447
  const _Editor = class _Editor extends EventEmitter {
14397
14448
  /**
14398
14449
  * Create a new Editor instance
@@ -14833,6 +14884,56 @@ const _Editor = class _Editor extends EventEmitter {
14833
14884
  console.warn("updateDocumentVersion is deprecated, use setDocumentVersion instead");
14834
14885
  return _Editor.setDocumentVersion(doc2, version2);
14835
14886
  }
14887
+ /**
14888
+ * Generates a schema summary for the current runtime schema.
14889
+ * @returns {Promise<Object>} Schema summary JSON
14890
+ */
14891
+ async getSchemaSummaryJSON() {
14892
+ if (!this.schema) {
14893
+ throw new Error("Schema is not initialized.");
14894
+ }
14895
+ const schemaVersion = this.converter?.getSuperdocVersion?.() || "current";
14896
+ const suppressedNames = new Set(
14897
+ (this.extensionService?.extensions || []).filter((ext) => {
14898
+ const config = ext?.config;
14899
+ const suppressFlag = config?.excludeFromSummaryJSON;
14900
+ return Boolean(suppressFlag);
14901
+ }).map((ext) => ext.name)
14902
+ );
14903
+ const summary = buildSchemaSummary(this.schema, schemaVersion);
14904
+ if (!suppressedNames.size) {
14905
+ return summary;
14906
+ }
14907
+ return {
14908
+ ...summary,
14909
+ nodes: summary.nodes.filter((node) => !suppressedNames.has(node.name)),
14910
+ marks: summary.marks.filter((mark) => !suppressedNames.has(mark.name))
14911
+ };
14912
+ }
14913
+ /**
14914
+ * Validates a ProseMirror JSON document against the current schema.
14915
+ * @param {Object|Object[]} doc - ProseMirror JSON representation of the document
14916
+ * @returns {Object} ProseMirror node
14917
+ */
14918
+ validateJSON(doc2) {
14919
+ if (!this.schema) {
14920
+ throw new Error("Schema is not initialized.");
14921
+ }
14922
+ const topNodeName = this.schema.topNodeType?.name || "doc";
14923
+ 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] } : (() => {
14924
+ throw new Error("Invalid document shape: expected a node object or an array of node objects.");
14925
+ })();
14926
+ try {
14927
+ return this.schema.nodeFromJSON(normalizedDoc);
14928
+ } catch (error) {
14929
+ const detail = error instanceof Error ? error.message : String(error);
14930
+ const validationError = new Error(`Invalid document for current schema: ${detail}`);
14931
+ if (error instanceof Error) {
14932
+ validationError.cause = error;
14933
+ }
14934
+ throw validationError;
14935
+ }
14936
+ }
14836
14937
  /**
14837
14938
  * Creates all node views.
14838
14939
  * @returns {void}
@@ -15081,7 +15182,7 @@ const _Editor = class _Editor extends EventEmitter {
15081
15182
  { default: remarkStringify },
15082
15183
  { default: remarkGfm }
15083
15184
  ] = await Promise.all([
15084
- import("./index-CIbMY9Bm.js"),
15185
+ import("./index-UvHeMhoE.js"),
15085
15186
  import("./index-DRCvimau.js"),
15086
15187
  import("./index-C_x_N6Uh.js"),
15087
15188
  import("./index-D_sWOSiG.js"),
@@ -15299,7 +15400,7 @@ const _Editor = class _Editor extends EventEmitter {
15299
15400
  * @returns {Object | void} Migration results
15300
15401
  */
15301
15402
  processCollaborationMigrations() {
15302
- console.debug("[checkVersionMigrations] Current editor version", "0.33.0");
15403
+ console.debug("[checkVersionMigrations] Current editor version", "0.34.0");
15303
15404
  if (!this.options.ydoc) return;
15304
15405
  const metaMap = this.options.ydoc.getMap("meta");
15305
15406
  let docVersion = metaMap.get("version");
@@ -17034,6 +17135,7 @@ const AiMark = Mark.create({
17034
17135
  name: AiMarkName,
17035
17136
  group: "ai",
17036
17137
  inclusive: false,
17138
+ excludeFromSummaryJSON: true,
17037
17139
  addOptions() {
17038
17140
  return {
17039
17141
  htmlAttributes: { class: "sd-ai-highlight" }
@@ -17060,6 +17162,7 @@ const AiAnimationMark = Mark.create({
17060
17162
  inclusive: false,
17061
17163
  spanning: false,
17062
17164
  excludes: AiAnimationMarkName,
17165
+ excludeFromSummaryJSON: true,
17063
17166
  addOptions() {
17064
17167
  return {
17065
17168
  htmlAttributes: {}
@@ -17091,6 +17194,7 @@ const AiAnimationMark = Mark.create({
17091
17194
  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";
17092
17195
  const AiLoaderNode = Node$1.create({
17093
17196
  name: AiLoaderNodeName,
17197
+ excludeFromSummaryJSON: true,
17094
17198
  group: "inline",
17095
17199
  inline: true,
17096
17200
  atom: true,
@@ -18677,6 +18781,7 @@ const DocumentPartObject = Node$1.create({
18677
18781
  group: "block",
18678
18782
  content: "block*",
18679
18783
  isolating: true,
18784
+ excludeFromSummaryJSON: true,
18680
18785
  addOptions() {
18681
18786
  return {
18682
18787
  htmlAttributes: {
@@ -20871,6 +20976,7 @@ const Paragraph = OxmlNode.create({
20871
20976
  group: "block",
20872
20977
  content: "inline*",
20873
20978
  inline: false,
20979
+ summary: "The paragraph node mirrors MS Word w:p paragraphs, and also represents lists in the schema.",
20874
20980
  addOptions() {
20875
20981
  return {
20876
20982
  headingLevels: [1, 2, 3, 4, 5, 6],
@@ -28462,6 +28568,7 @@ const Mention = Node$1.create({
28462
28568
  group: "inline",
28463
28569
  inline: true,
28464
28570
  selectable: false,
28571
+ excludeFromSummaryJSON: true,
28465
28572
  atom: true,
28466
28573
  addOptions() {
28467
28574
  return {
@@ -1,4 +1,4 @@
1
- import { aA as getDefaultExportFromCjs } from "./converter-BT3EWHD6.js";
1
+ import { aA as getDefaultExportFromCjs } from "./converter-D6ElhI07.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-BT3EWHD6.js";
3
- import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-DTJ6lEWC.js";
2
+ import { p as process$1 } from "./converter-D6ElhI07.js";
3
+ import { _ as _export_sfc, u as useHighContrastMode, g as global$1 } from "./editor-D82VSNig.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 { a5 } from "./chunks/converter-BT3EWHD6.js";
1
+ import { a5 } from "./chunks/converter-D6ElhI07.js";
2
2
  export {
3
3
  a5 as SuperConverter
4
4
  };
@@ -1,5 +1,5 @@
1
- import "./chunks/converter-BT3EWHD6.js";
2
- import { D } from "./chunks/docx-zipper-CmdlRMBW.js";
1
+ import "./chunks/converter-D6ElhI07.js";
2
+ import { D } from "./chunks/docx-zipper-Ci7V0UkA.js";
3
3
  export {
4
4
  D as default
5
5
  };
@@ -1,6 +1,6 @@
1
- import { E } from "./chunks/editor-DTJ6lEWC.js";
2
- import "./chunks/converter-BT3EWHD6.js";
3
- import "./chunks/docx-zipper-CmdlRMBW.js";
1
+ import { E } from "./chunks/editor-D82VSNig.js";
2
+ import "./chunks/converter-D6ElhI07.js";
3
+ import "./chunks/docx-zipper-Ci7V0UkA.js";
4
4
  export {
5
5
  E as Editor
6
6
  };
@@ -1,4 +1,4 @@
1
- import { J as JSZip } from "./chunks/docx-zipper-CmdlRMBW.js";
1
+ import { J as JSZip } from "./chunks/docx-zipper-Ci7V0UkA.js";
2
2
  async function createZip(blobs, fileNames) {
3
3
  const zip = new JSZip();
4
4
  blobs.forEach((blob, index) => {
@@ -378,6 +378,17 @@ export class Editor extends EventEmitter {
378
378
  */
379
379
  unregisterPlugin(nameOrPluginKey: string | any): void;
380
380
  converter: any;
381
+ /**
382
+ * Generates a schema summary for the current runtime schema.
383
+ * @returns {Promise<Object>} Schema summary JSON
384
+ */
385
+ getSchemaSummaryJSON(): Promise<any>;
386
+ /**
387
+ * Validates a ProseMirror JSON document against the current schema.
388
+ * @param {Object|Object[]} doc - ProseMirror JSON representation of the document
389
+ * @returns {Object} ProseMirror node
390
+ */
391
+ validateJSON(doc: any | any[]): any;
381
392
  /**
382
393
  * Creates all node views.
383
394
  * @returns {void}
@@ -1 +1 @@
1
- {"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../../../src/core/Editor.js"],"names":[],"mappings":"AA4CA;;;;GAIG;AAEH;;;;;;;;GAQG;AAEH;;;;;GAKG;AACH;;;;;GAKG;AAEH;;G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;;;;WACN,MAAM;;;;WACN,MAAM,GAAG,IAAI;;;;;;;;;;cASb,WAAW;;;;eACX,MAAM;;;;iBACN,OAAO;;;;mBACP,QAAQ;;;;iBACR,MAAM;;;;cACN,MAAM;;;;WACN,IAAI;;;;YACJ,KAAK,CAAE,IAAI,CAAC;;;;;;;;;;;;;;;;mBAIZ,MAAM;;;;WACN,MAAM;;;;WACN,MAAM;;;;;;;;;;;;iBAGN,IAAI,GAAC,IAAI,GAAC,MAAM;;;;;;;;iBAEhB,MAAM;;;;;;;;eAEN,OAAO;;;;;;;;;;;;;;;;uBAIP,OAAO;;;;wBACP,OAAO;;;;gBACP,OAAO;;;;YACP,MAAM;;;;kBACN,OAAO;;;;iBACP,OAAO;;;;;;;;;;;;uBAGP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAwBP,OAAO;;;;;;;;WAEP,MAAM;;;;eACN,MAAM;;;;cACN,OAAO;;;;yBACP,CAAC,MAAM,EAAE;QAClB,UAAU,EAAE,MAAM,CAAC;QACnB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,OAAO,CAAC,EAAE,MAAS,IAAI,CAAC;QACxB,aAAa,CAAC,EAAE,MAAS,IAAI,CAAC;KACjC,KAAK,OAAO,GAAG,SAAS;;6BA9IG,mBAAmB"}
@@ -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,8 @@
1
+ export function buildSchemaSummary(schema: any, schemaVersion: any): {
2
+ version: any;
3
+ schemaVersion: any;
4
+ topNode: any;
5
+ nodes: any[];
6
+ marks: any[];
7
+ };
8
+ //# sourceMappingURL=schema-summary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-summary.d.ts","sourceRoot":"","sources":["../../../../src/core/schema-summary.js"],"names":[],"mappings":"AA8BA;;;;;;EAgCC"}
@@ -35,6 +35,14 @@ export type EditorNodeConfig = {
35
35
  * The role of the node in a table.
36
36
  */
37
37
  tableRole?: string;
38
+ /**
39
+ * A short human-readable description for schema summaries.
40
+ */
41
+ summary?: string;
42
+ /**
43
+ * Whether to omit this node from schema summaries.
44
+ */
45
+ excludeFromSummaryJSON?: boolean;
38
46
  /**
39
47
  * ProseMirror string for what content this node accepts.
40
48
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/core/types/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAWc,iBAAiB;;;;;;;;;;;;;;;;WAIjB,OAAO,mBAAmB,EAAE,QAAQ;;;;aACpC,OAAO,WAAW,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BA0B3B,gBAAgB,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,iBAAiB,EAAE,MAAM,EAAE,CAAA;CAAE;;;;;uBAMpE,OAAO,SAAS,EAAE,IAAI,GAAG;IACjC,QAAQ,EAAE,MAAM,CAAC;IACrB,QAAY,CAAC,aAAa,EAAE,MAAM,EAAE,CAAC;CAClC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/core/types/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAac,iBAAiB;;;;;;;;;;;;;;;;WAIjB,OAAO,mBAAmB,EAAE,QAAQ;;;;aACpC,OAAO,WAAW,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BA0B3B,gBAAgB,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,iBAAiB,EAAE,MAAM,EAAE,CAAA;CAAE;;;;;uBAMpE,OAAO,SAAS,EAAE,IAAI,GAAG;IACjC,QAAQ,EAAE,MAAM,CAAC;IACrB,QAAY,CAAC,aAAa,EAAE,MAAM,EAAE,CAAC;CAClC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ai-marks.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/ai/ai-marks.js"],"names":[],"mappings":"AAGA,0BA6BG;AAEH,mCAuCG;qBAzE6B,gBAAgB"}
1
+ {"version":3,"file":"ai-marks.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/ai/ai-marks.js"],"names":[],"mappings":"AAGA,0BA+BG;AAEH,mCAyCG;qBA7E6B,gBAAgB"}
@@ -1 +1 @@
1
- {"version":3,"file":"ai-nodes.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/ai/ai-nodes.js"],"names":[],"mappings":"AAIA,gCAyCG;qBA7C6B,gBAAgB"}
1
+ {"version":3,"file":"ai-nodes.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/ai/ai-nodes.js"],"names":[],"mappings":"AAIA,gCA2CG;qBA/C6B,gBAAgB"}
@@ -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,2BAgDG;;;;;;;;;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,2BAkDG;;;;;;;;;qBAxE6B,gBAAgB"}
@@ -1 +1 @@
1
- {"version":3,"file":"paragraph.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/paragraph/paragraph.js"],"names":[],"mappings":"AAMA;;;;;;GAMG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH;;;;GAIG;AACH,iCA8TG;;;;;;;;;yBA7WiC,gBAAgB"}
1
+ {"version":3,"file":"paragraph.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/paragraph/paragraph.js"],"names":[],"mappings":"AAMA;;;;;;GAMG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH;;;;GAIG;AACH,iCAgUG;;;;;;;;;yBA/WiC,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,sCA6CG;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,sCA8CG;qBAhD6B,gBAAgB"}
@@ -32,6 +32,8 @@ export function isTrackedChangeActionAllowed({ editor, action, trackedChanges }:
32
32
  setEditable(editable?: boolean, emitUpdate?: boolean): void;
33
33
  registerPlugin(plugin: any, handlePlugins: any): void;
34
34
  unregisterPlugin(nameOrPluginKey: string | any): void;
35
+ getSchemaSummaryJSON(): Promise<any>;
36
+ validateJSON(doc2: any): any;
35
37
  createNodeViews(): void;
36
38
  getMaxContentSize(): any;
37
39
  updateEditorStyles(element: any, proseMirror: any, hasPaginationEnabled?: boolean): void;
@@ -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;;;;;;;;;;;;0BAsDu19f,aAAa;;;;2BAAgoB,IAAI;;;;;;;6BAAwmI,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCAA4jb,aAAa;0BAA/6uB,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;iDAA06lC,UAAU;kDAAuV,UAAU,aAA+E,UAAU;oCAAgZ,UAAU;;;;;;;;;KAtD196hB;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;;;;;;;;;;;;0BAsDgghgB,aAAa;;;;2BAAgoB,IAAI;;;;;;;6BAAwmI,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCAA8if,aAAa;0BAAj6yB,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;iDAA45pC,UAAU;kDAAuV,UAAU,aAA+E,UAAU;oCAAgZ,UAAU;;;;;;;;;KAtDrniiB;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 { aA as getDefaultExportFromCjs, V as v4, T as TextSelection$1, v as getMarkRange, aD as vClickOutside, aE as getActiveFormatting, av as isInTable, aF as readFromClipboard, aG as handleClipboardPaste, aH as getFileObject, aI as runPropertyTranslators, aJ as translator, aK as translator$1, aL as translator$2, aM as translator$3, aN as translator$4, aO as translator$5, aP as translator$6, aQ as translator$7, aR as translator$8, aS as translator$9, aT as translator$a, aU as translator$b, aV as translator$c, aW as translator$d, aX as translator$e, aY as commentRangeEndTranslator, aZ as commentRangeStartTranslator, a_ as translator$f, a$ as translator$g, b0 as translator$h, b1 as translator$i, b2 as translator$j, b3 as translator$k, b4 as translator$l, b5 as translator$m, b6 as translator$n, b7 as translator$o, b8 as translator$p, b9 as translator$q, ba as translator$r, bb as translator$s, bc as translator$t, bd as translator$u, be as translator$v, bf as translator$w, bg as translator$x, bh as translator$y, bi as translator$z, bj as translator$A, bk as translator$B, bl as translator$C, bm as translator$D, bn as translator$E, bo as translator$F, bp as translator$G, bq as translator$H, br as translator$I, bs as translator$J, bt as translator$K, bu as translator$L, bv as translator$M, bw as translator$N, bx as translator$O, by as translator$P, bz as translator$Q, bA as translator$R, bB as translator$S, bC as translator$T, bD as translator$U, bE as translator$V, bF as translator$W, bG as translator$X, bH as translator$Y, bI as translator$Z, bJ as translator$_, bK as translator$$, bL as translator$10, bM as translator$11, bN as translator$12, bO as translator$13, bP as translator$14, bQ as translator$15, bR as translator$16, bS as translator$17, bT as translator$18, bU as translator$19, bV as translator$1a, bW as translator$1b, bX as translator$1c, bY as translator$1d, bZ as translator$1e, b_ as translator$1f, b$ as translator$1g, c0 as translator$1h, P as PluginKey, a as Plugin } from "./chunks/converter-BT3EWHD6.js";
13
- import { a5, i, a2 } from "./chunks/converter-BT3EWHD6.js";
14
- import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as collectTargetListItemPositions, d as getFileOpener, e as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, f as uploadAndInsertImage, h as collectTrackedChanges, i as isTrackedChangeActionAllowed, y as yUndoPluginKey, j as undoDepth, k as redoDepth, l as collectTrackedChangesForContext, s as shouldBypassContextMenu, S as SlashMenuPluginKey, m as isHeadless, E as Editor, n as getStarterExtensions, P as Placeholder, o as getRichTextExtensions, D as DecorationSet, p as Decoration, M as Mark, q as Extension, A as Attribute, N as Node } from "./chunks/editor-DTJ6lEWC.js";
15
- import { w, C, x, T, t, z, v } from "./chunks/editor-DTJ6lEWC.js";
12
+ import { aA as getDefaultExportFromCjs, V as v4, T as TextSelection$1, v as getMarkRange, aD as vClickOutside, aE as getActiveFormatting, av as isInTable, aF as readFromClipboard, aG as handleClipboardPaste, aH as getFileObject, aI as runPropertyTranslators, aJ as translator, aK as translator$1, aL as translator$2, aM as translator$3, aN as translator$4, aO as translator$5, aP as translator$6, aQ as translator$7, aR as translator$8, aS as translator$9, aT as translator$a, aU as translator$b, aV as translator$c, aW as translator$d, aX as translator$e, aY as commentRangeEndTranslator, aZ as commentRangeStartTranslator, a_ as translator$f, a$ as translator$g, b0 as translator$h, b1 as translator$i, b2 as translator$j, b3 as translator$k, b4 as translator$l, b5 as translator$m, b6 as translator$n, b7 as translator$o, b8 as translator$p, b9 as translator$q, ba as translator$r, bb as translator$s, bc as translator$t, bd as translator$u, be as translator$v, bf as translator$w, bg as translator$x, bh as translator$y, bi as translator$z, bj as translator$A, bk as translator$B, bl as translator$C, bm as translator$D, bn as translator$E, bo as translator$F, bp as translator$G, bq as translator$H, br as translator$I, bs as translator$J, bt as translator$K, bu as translator$L, bv as translator$M, bw as translator$N, bx as translator$O, by as translator$P, bz as translator$Q, bA as translator$R, bB as translator$S, bC as translator$T, bD as translator$U, bE as translator$V, bF as translator$W, bG as translator$X, bH as translator$Y, bI as translator$Z, bJ as translator$_, bK as translator$$, bL as translator$10, bM as translator$11, bN as translator$12, bO as translator$13, bP as translator$14, bQ as translator$15, bR as translator$16, bS as translator$17, bT as translator$18, bU as translator$19, bV as translator$1a, bW as translator$1b, bX as translator$1c, bY as translator$1d, bZ as translator$1e, b_ as translator$1f, b$ as translator$1g, c0 as translator$1h, P as PluginKey, a as Plugin } from "./chunks/converter-D6ElhI07.js";
13
+ import { a5, i, a2 } from "./chunks/converter-D6ElhI07.js";
14
+ import { _ as _export_sfc, u as useHighContrastMode, a as getQuickFormatList, b as generateLinkedStyleString, c as collectTargetListItemPositions, d as getFileOpener, e as checkAndProcessImage, r as replaceSelectionWithImagePlaceholder, f as uploadAndInsertImage, h as collectTrackedChanges, i as isTrackedChangeActionAllowed, y as yUndoPluginKey, j as undoDepth, k as redoDepth, l as collectTrackedChangesForContext, s as shouldBypassContextMenu, S as SlashMenuPluginKey, m as isHeadless, E as Editor, n as getStarterExtensions, P as Placeholder, o as getRichTextExtensions, D as DecorationSet, p as Decoration, M as Mark, q as Extension, A as Attribute, N as Node } from "./chunks/editor-D82VSNig.js";
15
+ import { w, C, x, T, t, z, v } from "./chunks/editor-D82VSNig.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-kGgbsteb.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-BA72pClQ.js";
18
18
  import AIWriter from "./ai-writer.es.js";
19
- import { D } from "./chunks/docx-zipper-CmdlRMBW.js";
19
+ import { D } from "./chunks/docx-zipper-Ci7V0UkA.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-kGgbsteb.js";
3
- import "./chunks/editor-DTJ6lEWC.js";
2
+ import { T } from "./chunks/toolbar-BA72pClQ.js";
3
+ import "./chunks/editor-D82VSNig.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-CUj_HXIP.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-C-xsuwsj.cjs");
4
4
  require("./chunks/vue-Cwv-wUpm.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, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es-CNAfYsLL.es.js";
1
+ import { A, a, _, C, D, E, b, S, c, d, e, f, g, T, h, i, j, k, l, m, n, o, p, r, q } from "./chunks/super-editor.es-brkQW7ao.es.js";
2
2
  import "./chunks/vue-CKmzTNVs.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-CUj_HXIP.cjs");
4
- const superdoc = require("./chunks/index-Dx306Sib.cjs");
3
+ const superEditor_es = require("./chunks/super-editor.es-C-xsuwsj.cjs");
4
+ const superdoc = require("./chunks/index-v2Mq8HRp.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-CNAfYsLL.es.js";
2
- import { D, H, P, S as S2, m, l } from "./chunks/index--tOlLMNW.es.js";
1
+ import { a, E, b, S, d, i, j, n, r, p, q } from "./chunks/super-editor.es-brkQW7ao.es.js";
2
+ import { D, H, P, S as S2, m, l } from "./chunks/index-Bt64DU6g.es.js";
3
3
  import { B } from "./chunks/blank-docx-ABm6XYAA.es.js";
4
4
  export {
5
5
  a as AnnotatorHelpers,