@harbour-enterprises/superdoc 0.8.8 → 0.8.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.
@@ -20664,7 +20664,7 @@ const _SuperConverter = class _SuperConverter2 {
20664
20664
  return;
20665
20665
  }
20666
20666
  }
20667
- static updateDocumentVersion(docx = this.convertedXml, version = "0.8.8") {
20667
+ static updateDocumentVersion(docx = this.convertedXml, version = "0.8.9") {
20668
20668
  const customLocation = "docProps/custom.xml";
20669
20669
  if (!docx[customLocation]) {
20670
20670
  docx[customLocation] = generateCustomXml();
@@ -20937,7 +20937,7 @@ function storeSuperdocVersion(docx) {
20937
20937
  function generateCustomXml() {
20938
20938
  return DEFAULT_CUSTOM_XML;
20939
20939
  }
20940
- function generateSuperdocVersion(pid = 2, version = "0.8.8") {
20940
+ function generateSuperdocVersion(pid = 2, version = "0.8.9") {
20941
20941
  return {
20942
20942
  type: "element",
20943
20943
  name: "property",
@@ -34428,12 +34428,23 @@ const updatePosition = ({
34428
34428
  currentBounds,
34429
34429
  node: node2
34430
34430
  }) => {
34431
+ let bounds = {};
34432
+ if (currentBounds instanceof DOMRect) {
34433
+ bounds = {
34434
+ top: currentBounds.top,
34435
+ bottom: currentBounds.bottom,
34436
+ left: currentBounds.left,
34437
+ right: currentBounds.right
34438
+ };
34439
+ } else {
34440
+ bounds = { ...currentBounds };
34441
+ }
34431
34442
  if (!allCommentPositions[threadId]) {
34432
34443
  allCommentPositions[threadId] = {
34433
34444
  threadId,
34434
34445
  start: pos,
34435
34446
  end: pos + node2.nodeSize,
34436
- bounds: { ...currentBounds }
34447
+ bounds
34437
34448
  };
34438
34449
  } else {
34439
34450
  const existing = allCommentPositions[threadId];
@@ -35230,7 +35241,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
35230
35241
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
35231
35242
  */
35232
35243
  processCollaborationMigrations() {
35233
- console.debug("[checkVersionMigrations] Current editor version", "0.8.8");
35244
+ console.debug("[checkVersionMigrations] Current editor version", "0.8.9");
35234
35245
  if (!this.options.ydoc) return;
35235
35246
  const metaMap = this.options.ydoc.getMap("meta");
35236
35247
  let docVersion = metaMap.get("version");
@@ -58773,4 +58784,4 @@ export {
58773
58784
  helpers as m,
58774
58785
  index as n
58775
58786
  };
58776
- //# sourceMappingURL=super-editor.es-Ba_4ysU0.js.map
58787
+ //# sourceMappingURL=super-editor.es-BMGP0OlF.js.map