@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.
- package/dist/encoding.cjs +0 -5
- package/dist/encoding.cjs.map +1 -1
- package/dist/encoding.d.cts +5 -5
- package/dist/encoding.d.ts +5 -5
- package/dist/encoding.js +1 -5
- package/dist/encoding.js.map +1 -1
- package/dist/hocuspocus.cjs +1 -5
- package/dist/hocuspocus.cjs.map +1 -1
- package/dist/hocuspocus.js +1 -5
- package/dist/hocuspocus.js.map +1 -1
- package/dist/index.cjs +10 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +9 -6
- package/dist/index.js.map +1 -1
- package/dist/server.cjs +23 -9
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +17 -4
- package/dist/server.d.ts +17 -4
- package/dist/server.js +22 -10
- package/dist/server.js.map +1 -1
- package/dist/versions-ClPpc7Sg.d.cts +21 -0
- package/dist/versions-ClPpc7Sg.d.ts +21 -0
- package/package.json +1 -1
- package/dist/versions-XSYTVmOU.d.cts +0 -8
- package/dist/versions-XSYTVmOU.d.ts +0 -8
package/dist/hocuspocus.js
CHANGED
|
@@ -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 (
|
|
1565
|
+
if (readFormat(this.doc) !== COLLAB_FORMAT) {
|
|
1570
1566
|
this.setStatus("error", "collaboration-format-mismatch", readFormat(this.doc));
|
|
1571
1567
|
return;
|
|
1572
1568
|
}
|