@arbidocs/coedit 0.4.111 → 0.4.112
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/commands.cjs +687 -0
- package/dist/commands.cjs.map +1 -1
- package/dist/commands.d.cts +263 -157
- package/dist/commands.d.ts +263 -157
- package/dist/commands.js +646 -2
- package/dist/commands.js.map +1 -1
- package/dist/port-ip7WByvH.d.cts +188 -0
- package/dist/port-ip7WByvH.d.ts +188 -0
- package/dist/server.cjs +675 -65
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +15 -4
- package/dist/server.d.ts +15 -4
- package/dist/server.js +676 -67
- package/dist/server.js.map +1 -1
- package/dist/template.d.cts +3 -17
- package/dist/template.d.ts +3 -17
- package/dist/track-eYC94jTp.d.cts +17 -0
- package/dist/track-eYC94jTp.d.ts +17 -0
- package/package.json +1 -1
package/dist/server.d.cts
CHANGED
|
@@ -3,6 +3,8 @@ import { createServerAutomationHost, ServerAutomationHostOptions } from '@docx-e
|
|
|
3
3
|
import * as Y from 'yjs';
|
|
4
4
|
import { CollaborationIdentity } from '@docx-editor.dev/core/collaboration';
|
|
5
5
|
import { TreePackageStore, PackageTransactResult, HeadlessDocumentView, ImageDecodePort } from '@docx-editor.dev/core/store';
|
|
6
|
+
import { R as ReferencesPort } from './port-ip7WByvH.cjs';
|
|
7
|
+
import { R as Revision } from './track-eYC94jTp.cjs';
|
|
6
8
|
import { D as DocxCollaborationSession } from './session-Cf9iu1Vt.cjs';
|
|
7
9
|
export { C as COLLAB_PROTOCOL, D as DOCUMENT_COLLABORATION_VERSIONS } from './versions-DXiFQMA6.cjs';
|
|
8
10
|
import 'y-protocols/awareness';
|
|
@@ -45,10 +47,10 @@ interface RoomStore {
|
|
|
45
47
|
store: TreePackageStore;
|
|
46
48
|
session: DocxCollaborationSession;
|
|
47
49
|
/**
|
|
48
|
-
* One transaction
|
|
49
|
-
* into the room when it commits.
|
|
50
|
+
* One transaction as the agent (attributed, outside the store's own history) on the body, or on
|
|
51
|
+
* another story (a note), mirrored into the room when it commits.
|
|
50
52
|
*/
|
|
51
|
-
transact(build: Parameters<TreePackageStore['transact']>[1]): PackageTransactResult;
|
|
53
|
+
transact(build: Parameters<TreePackageStore['transact']>[1], scope?: Parameters<TreePackageStore['transact']>[0]): PackageTransactResult;
|
|
52
54
|
/** Mirror the store's other committed writes (an image insert) into the room. */
|
|
53
55
|
flush(): void;
|
|
54
56
|
/** The document as the store now holds it, for the shared readers (`@arbidocs/coedit/commands`). */
|
|
@@ -67,5 +69,14 @@ declare function openRoomStore(options: {
|
|
|
67
69
|
documentId: string;
|
|
68
70
|
identity: CollaborationIdentity;
|
|
69
71
|
}): RoomStore;
|
|
72
|
+
/**
|
|
73
|
+
* The defined-term and cross-reference commands' port (`@arbidocs/coedit/commands`) over a room
|
|
74
|
+
* store: the same commands the editor's toolbar runs, landing in the room. A caret is just a
|
|
75
|
+
* position here; pastes are fragment pastes, with a `revision` one tracked insertion by it.
|
|
76
|
+
*/
|
|
77
|
+
declare function roomCommandsPort(room: RoomStore, { revision, actorId }?: {
|
|
78
|
+
revision?: Revision | null;
|
|
79
|
+
actorId?: string;
|
|
80
|
+
}): ReferencesPort;
|
|
70
81
|
|
|
71
|
-
export { CollaborationCompatibilityError, type RoomAutomation, type RoomStore, assertCompatibleVersions, assertRoomFormat, normalizeDocx, openRoomAutomation, openRoomStore, readRoom, seedRoom };
|
|
82
|
+
export { CollaborationCompatibilityError, type RoomAutomation, type RoomStore, assertCompatibleVersions, assertRoomFormat, normalizeDocx, openRoomAutomation, openRoomStore, readRoom, roomCommandsPort, seedRoom };
|
package/dist/server.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ import { createServerAutomationHost, ServerAutomationHostOptions } from '@docx-e
|
|
|
3
3
|
import * as Y from 'yjs';
|
|
4
4
|
import { CollaborationIdentity } from '@docx-editor.dev/core/collaboration';
|
|
5
5
|
import { TreePackageStore, PackageTransactResult, HeadlessDocumentView, ImageDecodePort } from '@docx-editor.dev/core/store';
|
|
6
|
+
import { R as ReferencesPort } from './port-ip7WByvH.js';
|
|
7
|
+
import { R as Revision } from './track-eYC94jTp.js';
|
|
6
8
|
import { D as DocxCollaborationSession } from './session-Cf9iu1Vt.js';
|
|
7
9
|
export { C as COLLAB_PROTOCOL, D as DOCUMENT_COLLABORATION_VERSIONS } from './versions-DXiFQMA6.js';
|
|
8
10
|
import 'y-protocols/awareness';
|
|
@@ -45,10 +47,10 @@ interface RoomStore {
|
|
|
45
47
|
store: TreePackageStore;
|
|
46
48
|
session: DocxCollaborationSession;
|
|
47
49
|
/**
|
|
48
|
-
* One transaction
|
|
49
|
-
* into the room when it commits.
|
|
50
|
+
* One transaction as the agent (attributed, outside the store's own history) on the body, or on
|
|
51
|
+
* another story (a note), mirrored into the room when it commits.
|
|
50
52
|
*/
|
|
51
|
-
transact(build: Parameters<TreePackageStore['transact']>[1]): PackageTransactResult;
|
|
53
|
+
transact(build: Parameters<TreePackageStore['transact']>[1], scope?: Parameters<TreePackageStore['transact']>[0]): PackageTransactResult;
|
|
52
54
|
/** Mirror the store's other committed writes (an image insert) into the room. */
|
|
53
55
|
flush(): void;
|
|
54
56
|
/** The document as the store now holds it, for the shared readers (`@arbidocs/coedit/commands`). */
|
|
@@ -67,5 +69,14 @@ declare function openRoomStore(options: {
|
|
|
67
69
|
documentId: string;
|
|
68
70
|
identity: CollaborationIdentity;
|
|
69
71
|
}): RoomStore;
|
|
72
|
+
/**
|
|
73
|
+
* The defined-term and cross-reference commands' port (`@arbidocs/coedit/commands`) over a room
|
|
74
|
+
* store: the same commands the editor's toolbar runs, landing in the room. A caret is just a
|
|
75
|
+
* position here; pastes are fragment pastes, with a `revision` one tracked insertion by it.
|
|
76
|
+
*/
|
|
77
|
+
declare function roomCommandsPort(room: RoomStore, { revision, actorId }?: {
|
|
78
|
+
revision?: Revision | null;
|
|
79
|
+
actorId?: string;
|
|
80
|
+
}): ReferencesPort;
|
|
70
81
|
|
|
71
|
-
export { CollaborationCompatibilityError, type RoomAutomation, type RoomStore, assertCompatibleVersions, assertRoomFormat, normalizeDocx, openRoomAutomation, openRoomStore, readRoom, seedRoom };
|
|
82
|
+
export { CollaborationCompatibilityError, type RoomAutomation, type RoomStore, assertCompatibleVersions, assertRoomFormat, normalizeDocx, openRoomAutomation, openRoomStore, readRoom, roomCommandsPort, seedRoom };
|