@harbour-enterprises/superdoc 0.28.0-next.9 → 0.28.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 (32) hide show
  1. package/dist/chunks/{PdfViewer-DRCcOt2t.es.js → PdfViewer-COOBTu0Z.es.js} +1 -1
  2. package/dist/chunks/{PdfViewer-B13bR8VJ.cjs → PdfViewer-D-d9sxeo.cjs} +1 -1
  3. package/dist/chunks/{index-KRsMbx-o.es.js → index-CeV3gm4O.es.js} +3 -3
  4. package/dist/chunks/{index-DcpSDyC4.cjs → index-lzF76amP.cjs} +3 -3
  5. package/dist/chunks/{super-editor.es-DKQa7RQl.es.js → super-editor.es-CBBT9MkW.es.js} +11 -5
  6. package/dist/chunks/{super-editor.es-BnJV-Q-L.cjs → super-editor.es-CsOCPht5.cjs} +11 -5
  7. package/dist/core/types/index.d.ts.map +1 -1
  8. package/dist/super-editor/ai-writer.es.js +2 -2
  9. package/dist/super-editor/chunks/{converter-kpd0gAZh.js → converter-3mtRTJOI.js} +5 -2
  10. package/dist/super-editor/chunks/{docx-zipper-1SfZh-7P.js → docx-zipper-DIkBRy6i.js} +1 -1
  11. package/dist/super-editor/chunks/{editor-DdEaVosL.js → editor-DakKNLen.js} +9 -17
  12. package/dist/super-editor/chunks/{toolbar-CTt4vWNb.js → toolbar-D4J4zzEp.js} +2 -2
  13. package/dist/super-editor/converter.es.js +1 -1
  14. package/dist/super-editor/docx-zipper.es.js +2 -2
  15. package/dist/super-editor/editor.es.js +3 -3
  16. package/dist/super-editor/file-zipper.es.js +1 -1
  17. package/dist/super-editor/super-editor/src/extensions/structured-content/structured-content-block.d.ts +8 -6
  18. package/dist/super-editor/super-editor/src/extensions/structured-content/structured-content.d.ts +8 -1
  19. package/dist/super-editor/super-editor/src/extensions/structured-content/structuredContentHelpers/getStructuredContentBlockTags.d.ts +11 -4
  20. package/dist/super-editor/super-editor/src/extensions/structured-content/structuredContentHelpers/getStructuredContentInlineTags.d.ts +11 -4
  21. package/dist/super-editor/super-editor/src/extensions/structured-content/structuredContentHelpers/getStructuredContentTablesById.d.ts +8 -4
  22. package/dist/super-editor/super-editor/src/extensions/structured-content/structuredContentHelpers/getStructuredContentTags.d.ts +11 -4
  23. package/dist/super-editor/super-editor/src/extensions/structured-content/structuredContentHelpers/getStructuredContentTagsById.d.ts +12 -5
  24. package/dist/super-editor/super-editor.es.js +6 -6
  25. package/dist/super-editor/toolbar.es.js +2 -2
  26. package/dist/super-editor.cjs +1 -1
  27. package/dist/super-editor.es.js +1 -1
  28. package/dist/superdoc.cjs +2 -2
  29. package/dist/superdoc.es.js +2 -2
  30. package/dist/superdoc.umd.js +12 -6
  31. package/dist/superdoc.umd.js.map +1 -1
  32. package/package.json +1 -1
@@ -40042,6 +40042,9 @@ Please report this to https://github.com/markedjs/marked.`, e) {
40042
40042
  const { node: node2 } = params2.extraParams;
40043
40043
  const { elements, type: type2, attributes } = node2;
40044
40044
  let text2;
40045
+ if (!elements) {
40046
+ return null;
40047
+ }
40045
40048
  if (elements.length === 1) {
40046
40049
  text2 = elements[0].text;
40047
40050
  const xmlSpace = encodedAttrs.xmlSpace ?? elements[0]?.attributes?.["xml:space"];
@@ -40059,7 +40062,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
40059
40062
  marks: []
40060
40063
  };
40061
40064
  };
40062
- const decode$2 = (params2, decodedAttrs = {}) => {
40065
+ const decode$2 = (params2) => {
40063
40066
  const { node: node2, extraParams } = params2;
40064
40067
  if (!node2 || !node2.type) {
40065
40068
  return null;
@@ -43209,7 +43212,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
43209
43212
  static getStoredSuperdocVersion(docx) {
43210
43213
  return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
43211
43214
  }
43212
- static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.27.2") {
43215
+ static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.27.3") {
43213
43216
  return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
43214
43217
  }
43215
43218
  /**
@@ -76705,10 +76708,13 @@ Please report this to https://github.com/markedjs/marked.`, e) {
76705
76708
  }
76706
76709
  });
76707
76710
  if (tr.getMeta("inputType")) {
76708
- newTr.setMeta(tr.getMeta("inputType"));
76711
+ newTr.setMeta("inputType", tr.getMeta("inputType"));
76709
76712
  }
76710
76713
  if (tr.getMeta("uiEvent")) {
76711
- newTr.setMeta(tr.getMeta("uiEvent"));
76714
+ newTr.setMeta("uiEvent", tr.getMeta("uiEvent"));
76715
+ }
76716
+ if (tr.getMeta("addToHistory") !== void 0) {
76717
+ newTr.setMeta("addToHistory", tr.getMeta("addToHistory"));
76712
76718
  }
76713
76719
  if (tr.selectionSet) {
76714
76720
  const deletionMarkSchema = state2.schema.marks[TrackDeleteMarkName];
@@ -79216,7 +79222,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
79216
79222
  * @returns {Object | void} Migration results
79217
79223
  */
79218
79224
  processCollaborationMigrations() {
79219
- console.debug("[checkVersionMigrations] Current editor version", "0.27.2");
79225
+ console.debug("[checkVersionMigrations] Current editor version", "0.27.3");
79220
79226
  if (!this.options.ydoc) return;
79221
79227
  const metaMap = this.options.ydoc.getMap("meta");
79222
79228
  let docVersion = metaMap.get("version");
@@ -134682,7 +134688,7 @@ ${style2}
134682
134688
  this.config.colors = shuffleArray(this.config.colors);
134683
134689
  this.userColorMap = /* @__PURE__ */ new Map();
134684
134690
  this.colorIndex = 0;
134685
- this.version = "0.27.2";
134691
+ this.version = "0.27.3";
134686
134692
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
134687
134693
  this.superdocId = config2.superdocId || v4();
134688
134694
  this.colors = this.config.colors;