@arbidocs/coedit 0.5.30 → 0.5.31

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.
@@ -519,10 +519,6 @@ function serializeLive(el, scope) {
519
519
 
520
520
  // src/encoding.ts
521
521
  var COLLAB_FORMAT = "arbi-docx/2";
522
- var READABLE_FORMATS = /* @__PURE__ */ new Set(["arbi-docx/1", COLLAB_FORMAT]);
523
- function isReadableFormat(format) {
524
- return format !== void 0 && READABLE_FORMATS.has(format);
525
- }
526
522
  function isBootstrapped(doc) {
527
523
  return doc.getMap("meta").get("format") !== void 0;
528
524
  }
@@ -1566,7 +1562,7 @@ var DocxCollaborationSession = class {
1566
1562
  this.setStatus("error", "not-initialized");
1567
1563
  return;
1568
1564
  }
1569
- if (!isReadableFormat(readFormat(this.doc))) {
1565
+ if (readFormat(this.doc) !== COLLAB_FORMAT) {
1570
1566
  this.setStatus("error", "collaboration-format-mismatch", readFormat(this.doc));
1571
1567
  return;
1572
1568
  }