@harbour-enterprises/superdoc 0.5.20 → 0.5.21

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.
@@ -52398,7 +52398,7 @@ function importCommentData({ docx }) {
52398
52398
  if (!comments) return;
52399
52399
  const { elements } = comments;
52400
52400
  if (!elements || !elements.length) return;
52401
- const { elements: allComments } = elements[0];
52401
+ const { elements: allComments = [] } = elements[0];
52402
52402
  const extractedComments = allComments.map((el) => {
52403
52403
  const { attributes } = el;
52404
52404
  const commentId = attributes["w:id"];
@@ -52803,7 +52803,7 @@ const _SuperConverter = class _SuperConverter2 {
52803
52803
  return;
52804
52804
  }
52805
52805
  }
52806
- static updateDocumentVersion(docx = this.convertedXml, version2 = "0.5.20") {
52806
+ static updateDocumentVersion(docx = this.convertedXml, version2 = "0.5.21") {
52807
52807
  const customLocation = "docProps/custom.xml";
52808
52808
  if (!docx[customLocation]) {
52809
52809
  docx[customLocation] = generateCustomXml();
@@ -53043,7 +53043,7 @@ function storeSuperdocVersion(docx) {
53043
53043
  function generateCustomXml() {
53044
53044
  return DEFAULT_CUSTOM_XML;
53045
53045
  }
53046
- function generateSuperdocVersion(version2 = "0.5.20") {
53046
+ function generateSuperdocVersion(version2 = "0.5.21") {
53047
53047
  return {
53048
53048
  type: "element",
53049
53049
  name: "property",
@@ -66865,7 +66865,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
66865
66865
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
66866
66866
  */
66867
66867
  processCollaborationMigrations() {
66868
- console.debug("[checkVersionMigrations] Current editor version", "0.5.20");
66868
+ console.debug("[checkVersionMigrations] Current editor version", "0.5.21");
66869
66869
  if (!this.options.ydoc) return;
66870
66870
  const metaMap = this.options.ydoc.getMap("meta");
66871
66871
  let docVersion = metaMap.get("version");
@@ -87126,4 +87126,4 @@ export {
87126
87126
  helpers as k,
87127
87127
  index as l
87128
87128
  };
87129
- //# sourceMappingURL=super-editor.es-5EQNVGTw.js.map
87129
+ //# sourceMappingURL=super-editor.es-Dg-Abq7Q.js.map