@arbidocs/blocks 0.4.110 → 0.4.111
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/{NativeDocxEditor-WODZAURG.cjs → NativeDocxEditor-AQKRZBIU.cjs} +7 -7
- package/dist/{NativeDocxEditor-WODZAURG.cjs.map → NativeDocxEditor-AQKRZBIU.cjs.map} +1 -1
- package/dist/{NativeDocxEditor-4PY4YZYC.js → NativeDocxEditor-IN2HEO5I.js} +3 -3
- package/dist/{NativeDocxEditor-4PY4YZYC.js.map → NativeDocxEditor-IN2HEO5I.js.map} +1 -1
- package/dist/agents/index.cjs +207 -207
- package/dist/agents/index.js +2 -2
- package/dist/calendar/EventEditor.d.ts +1 -1
- package/dist/calendar/draft.d.ts +7 -1
- package/dist/calendar/index.cjs +58 -10
- package/dist/calendar/index.cjs.map +1 -1
- package/dist/calendar/index.d.ts +1 -1
- package/dist/calendar/index.js +56 -11
- package/dist/calendar/index.js.map +1 -1
- package/dist/calendar/types.d.ts +20 -0
- package/dist/calls/CallSidePanel.d.ts +16 -1
- package/dist/calls/ControlBar.d.ts +25 -3
- package/dist/calls/PreJoin.d.ts +6 -2
- package/dist/calls/cards.d.ts +6 -2
- package/dist/calls/index.cjs +1078 -47
- package/dist/calls/index.cjs.map +1 -1
- package/dist/calls/index.d.ts +4 -3
- package/dist/calls/index.js +1067 -51
- package/dist/calls/index.js.map +1 -1
- package/dist/calls/panels.d.ts +11 -0
- package/dist/calls/webinar/ChatPermissionSetting.d.ts +18 -0
- package/dist/calls/webinar/OnStageCheck.d.ts +23 -0
- package/dist/calls/webinar/QAPanel.d.ts +56 -0
- package/dist/calls/webinar/RaiseHandButton.d.ts +14 -0
- package/dist/calls/webinar/WebinarAudiencePanel.d.ts +23 -0
- package/dist/calls/webinar/WebinarViewer.d.ts +39 -0
- package/dist/calls/webinar/WebinarWaiting.d.ts +19 -0
- package/dist/calls/webinar/hooks.d.ts +13 -0
- package/dist/calls/webinar/index.d.ts +14 -0
- package/dist/calls/webinar/live.d.ts +43 -0
- package/dist/calls/webinar/types.d.ts +49 -0
- package/dist/{chunk-GKDWQLVU.js → chunk-2C7TCVQZ.js} +172 -121
- package/dist/chunk-2C7TCVQZ.js.map +1 -0
- package/dist/{chunk-54WBIVHV.cjs → chunk-2WO5L7YT.cjs} +5 -5
- package/dist/{chunk-54WBIVHV.cjs.map → chunk-2WO5L7YT.cjs.map} +1 -1
- package/dist/{chunk-A35KT2II.js → chunk-6Z7DLJU2.js} +3 -3
- package/dist/{chunk-A35KT2II.js.map → chunk-6Z7DLJU2.js.map} +1 -1
- package/dist/{chunk-VZKBI2KJ.cjs → chunk-FXUQZFAN.cjs} +3 -3
- package/dist/{chunk-VZKBI2KJ.cjs.map → chunk-FXUQZFAN.cjs.map} +1 -1
- package/dist/{chunk-SQNAJPNR.js → chunk-GFYGYME3.js} +3 -3
- package/dist/{chunk-SQNAJPNR.js.map → chunk-GFYGYME3.js.map} +1 -1
- package/dist/chunk-GICUGQNN.cjs +76 -0
- package/dist/chunk-GICUGQNN.cjs.map +1 -0
- package/dist/chunk-JJLMCV3T.js +73 -0
- package/dist/chunk-JJLMCV3T.js.map +1 -0
- package/dist/{chunk-W7ZDBPJ3.cjs → chunk-OR4CO743.cjs} +3 -3
- package/dist/{chunk-W7ZDBPJ3.cjs.map → chunk-OR4CO743.cjs.map} +1 -1
- package/dist/{chunk-PEHLUB52.js → chunk-Q6B77ZWZ.js} +3 -3
- package/dist/{chunk-PEHLUB52.js.map → chunk-Q6B77ZWZ.js.map} +1 -1
- package/dist/{chunk-ELDUWTRR.cjs → chunk-TF47ATYS.cjs} +4 -4
- package/dist/{chunk-ELDUWTRR.cjs.map → chunk-TF47ATYS.cjs.map} +1 -1
- package/dist/{chunk-JB32KYAH.js → chunk-WTM65ZNG.js} +3 -3
- package/dist/{chunk-JB32KYAH.js.map → chunk-WTM65ZNG.js.map} +1 -1
- package/dist/{chunk-2NIL2ASF.cjs → chunk-XIGWUDOD.cjs} +170 -119
- package/dist/chunk-XIGWUDOD.cjs.map +1 -0
- package/dist/collaboration/index.cjs +1 -1
- package/dist/collaboration/index.js +1 -1
- package/dist/connect/docx.cjs +6 -6
- package/dist/connect/docx.js +4 -4
- package/dist/connect/index.cjs +31 -31
- package/dist/connect/index.js +7 -7
- package/dist/docx/AgentUndo.d.ts +4 -0
- package/dist/docx/index.cjs +46 -46
- package/dist/docx/index.js +3 -3
- package/dist/files/index.cjs +1 -1
- package/dist/files/index.js +1 -1
- package/dist/index.cjs +332 -332
- package/dist/index.js +6 -6
- package/dist/settings/index.cjs +48 -102
- package/dist/settings/index.cjs.map +1 -1
- package/dist/settings/index.js +10 -70
- package/dist/settings/index.js.map +1 -1
- package/dist/workflow-canvas/index.cjs +9 -9
- package/dist/workflow-canvas/index.js +2 -2
- package/node_modules/@arbidocs/coedit/dist/commands.cjs +179 -9
- package/node_modules/@arbidocs/coedit/dist/commands.cjs.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/commands.d.cts +81 -1
- package/node_modules/@arbidocs/coedit/dist/commands.d.ts +81 -1
- package/node_modules/@arbidocs/coedit/dist/commands.js +173 -11
- package/node_modules/@arbidocs/coedit/dist/commands.js.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/server.cjs +58 -2
- package/node_modules/@arbidocs/coedit/dist/server.cjs.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/server.d.cts +29 -1
- package/node_modules/@arbidocs/coedit/dist/server.d.ts +29 -1
- package/node_modules/@arbidocs/coedit/dist/server.js +58 -3
- package/node_modules/@arbidocs/coedit/dist/server.js.map +1 -1
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +4 -4
- package/dist/chunk-2NIL2ASF.cjs.map +0 -1
- package/dist/chunk-GKDWQLVU.js.map +0 -1
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
var awareness = require('y-protocols/awareness');
|
|
4
4
|
var automation = require('@docx-editor.dev/core/automation');
|
|
5
|
-
var
|
|
5
|
+
var replication = require('@docx-editor.dev/core/collaboration/replication');
|
|
6
6
|
var store = require('@docx-editor.dev/core/store');
|
|
7
|
+
var Y3 = require('yjs');
|
|
7
8
|
var collaboration = require('@docx-editor.dev/core/collaboration');
|
|
8
|
-
var replication = require('@docx-editor.dev/core/collaboration/replication');
|
|
9
9
|
|
|
10
10
|
function _interopNamespace(e) {
|
|
11
11
|
if (e && e.__esModule) return e;
|
|
@@ -1838,6 +1838,61 @@ function openRoomAutomation(options) {
|
|
|
1838
1838
|
throw error;
|
|
1839
1839
|
}
|
|
1840
1840
|
}
|
|
1841
|
+
function openRoomStore(options) {
|
|
1842
|
+
assertRoomFormat(options.doc);
|
|
1843
|
+
const awareness$1 = new awareness.Awareness(options.doc);
|
|
1844
|
+
const session = new DocxCollaborationSession({
|
|
1845
|
+
doc: options.doc,
|
|
1846
|
+
awareness: awareness$1,
|
|
1847
|
+
documentId: options.documentId,
|
|
1848
|
+
identity: options.identity,
|
|
1849
|
+
remoteDelayMs: 0
|
|
1850
|
+
});
|
|
1851
|
+
session.markReady();
|
|
1852
|
+
try {
|
|
1853
|
+
const pkg = materialize(options.doc);
|
|
1854
|
+
const main = pkg.parts.get(pkg.mainDocumentPart);
|
|
1855
|
+
if (!main) throw new MaterializeError("The room has no main document part.");
|
|
1856
|
+
const store$1 = new store.TreePackageStore(pkg, main);
|
|
1857
|
+
const port = replication.createCollaborationDocumentPort(store$1, { documentId: options.documentId });
|
|
1858
|
+
session.attach(port);
|
|
1859
|
+
return {
|
|
1860
|
+
store: store$1,
|
|
1861
|
+
session,
|
|
1862
|
+
transact(build) {
|
|
1863
|
+
const result = store$1.transact({ kind: "body" }, build, {
|
|
1864
|
+
origin: store.ORIGIN_IDS.mutationAgent,
|
|
1865
|
+
actorId: options.identity.actorId,
|
|
1866
|
+
recordsHistory: false
|
|
1867
|
+
});
|
|
1868
|
+
if (result.ok) port.flushPendingJournals();
|
|
1869
|
+
return result;
|
|
1870
|
+
},
|
|
1871
|
+
flush: () => port.flushPendingJournals(),
|
|
1872
|
+
view: () => store.headlessViewOfStore(store$1),
|
|
1873
|
+
imageDecodePort: {
|
|
1874
|
+
async decode(bytes, mime) {
|
|
1875
|
+
const header = store.validateRasterHeader(bytes, mime);
|
|
1876
|
+
if (!header) throw new Error("The image cannot be read.");
|
|
1877
|
+
return {
|
|
1878
|
+
pixelWidth: header.pixelWidth,
|
|
1879
|
+
pixelHeight: header.pixelHeight,
|
|
1880
|
+
dpiX: header.dpiX ?? 96,
|
|
1881
|
+
dpiY: header.dpiY ?? 96
|
|
1882
|
+
};
|
|
1883
|
+
}
|
|
1884
|
+
},
|
|
1885
|
+
dispose() {
|
|
1886
|
+
session.destroy();
|
|
1887
|
+
awareness$1.destroy();
|
|
1888
|
+
}
|
|
1889
|
+
};
|
|
1890
|
+
} catch (error) {
|
|
1891
|
+
session.destroy();
|
|
1892
|
+
awareness$1.destroy();
|
|
1893
|
+
throw error;
|
|
1894
|
+
}
|
|
1895
|
+
}
|
|
1841
1896
|
|
|
1842
1897
|
exports.COLLAB_PROTOCOL = COLLAB_PROTOCOL;
|
|
1843
1898
|
exports.CollaborationCompatibilityError = CollaborationCompatibilityError;
|
|
@@ -1846,6 +1901,7 @@ exports.assertCompatibleVersions = assertCompatibleVersions;
|
|
|
1846
1901
|
exports.assertRoomFormat = assertRoomFormat;
|
|
1847
1902
|
exports.normalizeDocx = normalizeDocx;
|
|
1848
1903
|
exports.openRoomAutomation = openRoomAutomation;
|
|
1904
|
+
exports.openRoomStore = openRoomStore;
|
|
1849
1905
|
exports.readRoom = readRoom;
|
|
1850
1906
|
exports.seedRoom = seedRoom;
|
|
1851
1907
|
//# sourceMappingURL=server.cjs.map
|