@harbour-enterprises/superdoc 0.6.7 → 0.6.8

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.
@@ -52483,8 +52483,8 @@ function importCommentData({ docx }) {
52483
52483
  if (!comments) return;
52484
52484
  const { elements } = comments;
52485
52485
  if (!elements || !elements.length) return;
52486
- const { elements: allComments } = elements[0];
52487
- const extractedComments = allComments?.map((el) => {
52486
+ const { elements: allComments = [] } = elements[0];
52487
+ const extractedComments = allComments.map((el) => {
52488
52488
  const { attributes } = el;
52489
52489
  const commentId = attributes["w:id"];
52490
52490
  const authorName = attributes["w:author"];
@@ -52893,7 +52893,7 @@ const _SuperConverter = class _SuperConverter2 {
52893
52893
  return;
52894
52894
  }
52895
52895
  }
52896
- static updateDocumentVersion(docx = this.convertedXml, version2 = "0.6.7") {
52896
+ static updateDocumentVersion(docx = this.convertedXml, version2 = "0.6.8") {
52897
52897
  const customLocation = "docProps/custom.xml";
52898
52898
  if (!docx[customLocation]) {
52899
52899
  docx[customLocation] = generateCustomXml();
@@ -53134,7 +53134,7 @@ function storeSuperdocVersion(docx) {
53134
53134
  function generateCustomXml() {
53135
53135
  return DEFAULT_CUSTOM_XML;
53136
53136
  }
53137
- function generateSuperdocVersion(version2 = "0.6.7") {
53137
+ function generateSuperdocVersion(version2 = "0.6.8") {
53138
53138
  return {
53139
53139
  type: "element",
53140
53140
  name: "property",
@@ -66956,7 +66956,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
66956
66956
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
66957
66957
  */
66958
66958
  processCollaborationMigrations() {
66959
- console.debug("[checkVersionMigrations] Current editor version", "0.6.7");
66959
+ console.debug("[checkVersionMigrations] Current editor version", "0.6.8");
66960
66960
  if (!this.options.ydoc) return;
66961
66961
  const metaMap = this.options.ydoc.getMap("meta");
66962
66962
  let docVersion = metaMap.get("version");
@@ -87318,4 +87318,4 @@ export {
87318
87318
  helpers as k,
87319
87319
  index as l
87320
87320
  };
87321
- //# sourceMappingURL=super-editor.es-CC0HcZGA.js.map
87321
+ //# sourceMappingURL=super-editor.es-C2Mpe7zw.js.map