@arbidocs/blocks 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.
Files changed (83) hide show
  1. package/dist/{NativeDocxEditor-AQKRZBIU.cjs → NativeDocxEditor-AQZSUGET.cjs} +8 -8
  2. package/dist/{NativeDocxEditor-AQKRZBIU.cjs.map → NativeDocxEditor-AQZSUGET.cjs.map} +1 -1
  3. package/dist/{NativeDocxEditor-IN2HEO5I.js → NativeDocxEditor-MBCBXYDZ.js} +4 -4
  4. package/dist/{NativeDocxEditor-IN2HEO5I.js.map → NativeDocxEditor-MBCBXYDZ.js.map} +1 -1
  5. package/dist/agents/index.cjs +208 -208
  6. package/dist/agents/index.js +3 -3
  7. package/dist/{chunk-2C7TCVQZ.js → chunk-3OT37I24.js} +30 -297
  8. package/dist/chunk-3OT37I24.js.map +1 -0
  9. package/dist/{chunk-XIGWUDOD.cjs → chunk-ETBB5KMN.cjs} +61 -316
  10. package/dist/chunk-ETBB5KMN.cjs.map +1 -0
  11. package/dist/{chunk-Q6B77ZWZ.js → chunk-GIBRZ54P.js} +3 -3
  12. package/dist/{chunk-Q6B77ZWZ.js.map → chunk-GIBRZ54P.js.map} +1 -1
  13. package/dist/{chunk-2WO5L7YT.cjs → chunk-HF4PAYBM.cjs} +5 -5
  14. package/dist/{chunk-2WO5L7YT.cjs.map → chunk-HF4PAYBM.cjs.map} +1 -1
  15. package/dist/chunk-I2QSDQQV.cjs +126 -0
  16. package/dist/chunk-I2QSDQQV.cjs.map +1 -0
  17. package/dist/chunk-QXMR5YHC.js +80 -0
  18. package/dist/chunk-QXMR5YHC.js.map +1 -0
  19. package/dist/{chunk-TF47ATYS.cjs → chunk-RUFNJRLW.cjs} +4 -4
  20. package/dist/{chunk-TF47ATYS.cjs.map → chunk-RUFNJRLW.cjs.map} +1 -1
  21. package/dist/{chunk-WTM65ZNG.js → chunk-TKJSCHSX.js} +3 -3
  22. package/dist/{chunk-WTM65ZNG.js.map → chunk-TKJSCHSX.js.map} +1 -1
  23. package/dist/{chunk-WPVIOGDG.cjs → chunk-US5ASM4G.cjs} +22 -22
  24. package/dist/{chunk-WPVIOGDG.cjs.map → chunk-US5ASM4G.cjs.map} +1 -1
  25. package/dist/{chunk-CECWAIHL.js → chunk-XFZ7HNPG.js} +3 -3
  26. package/dist/{chunk-CECWAIHL.js.map → chunk-XFZ7HNPG.js.map} +1 -1
  27. package/dist/{chunk-FXUQZFAN.cjs → chunk-Z2NSU7D5.cjs} +4 -4
  28. package/dist/{chunk-FXUQZFAN.cjs.map → chunk-Z2NSU7D5.cjs.map} +1 -1
  29. package/dist/{chunk-6Z7DLJU2.js → chunk-ZP4IFW2E.js} +4 -4
  30. package/dist/{chunk-6Z7DLJU2.js.map → chunk-ZP4IFW2E.js.map} +1 -1
  31. package/dist/collaboration/index.cjs +1 -1
  32. package/dist/collaboration/index.js +1 -1
  33. package/dist/connect/docx.cjs +7 -7
  34. package/dist/connect/docx.js +5 -5
  35. package/dist/connect/index.cjs +16 -16
  36. package/dist/connect/index.js +9 -9
  37. package/dist/docx/definitions/commands.d.ts +3 -52
  38. package/dist/docx/definitions/fragment.d.ts +5 -31
  39. package/dist/docx/definitions/port.d.ts +2 -22
  40. package/dist/docx/index.cjs +47 -47
  41. package/dist/docx/index.js +4 -4
  42. package/dist/docx/references/commands.d.ts +3 -89
  43. package/dist/docx/references/port.d.ts +2 -11
  44. package/dist/facts/index.cjs +1 -1
  45. package/dist/facts/index.js +1 -1
  46. package/dist/files/index.cjs +1 -1
  47. package/dist/files/index.js +1 -1
  48. package/dist/index.cjs +388 -388
  49. package/dist/index.js +10 -10
  50. package/dist/settings/index.cjs +1 -1
  51. package/dist/settings/index.js +1 -1
  52. package/dist/shell/index.cjs +9 -9
  53. package/dist/shell/index.js +1 -1
  54. package/dist/tags/definitions.d.ts +4 -25
  55. package/dist/tags/ooxml.d.ts +1 -19
  56. package/dist/workflow-canvas/index.cjs +10 -10
  57. package/dist/workflow-canvas/index.js +3 -3
  58. package/node_modules/@arbidocs/coedit/dist/commands.cjs +687 -0
  59. package/node_modules/@arbidocs/coedit/dist/commands.cjs.map +1 -1
  60. package/node_modules/@arbidocs/coedit/dist/commands.d.cts +263 -157
  61. package/node_modules/@arbidocs/coedit/dist/commands.d.ts +263 -157
  62. package/node_modules/@arbidocs/coedit/dist/commands.js +646 -2
  63. package/node_modules/@arbidocs/coedit/dist/commands.js.map +1 -1
  64. package/node_modules/@arbidocs/coedit/dist/port-ip7WByvH.d.cts +188 -0
  65. package/node_modules/@arbidocs/coedit/dist/port-ip7WByvH.d.ts +188 -0
  66. package/node_modules/@arbidocs/coedit/dist/server.cjs +675 -65
  67. package/node_modules/@arbidocs/coedit/dist/server.cjs.map +1 -1
  68. package/node_modules/@arbidocs/coedit/dist/server.d.cts +15 -4
  69. package/node_modules/@arbidocs/coedit/dist/server.d.ts +15 -4
  70. package/node_modules/@arbidocs/coedit/dist/server.js +676 -67
  71. package/node_modules/@arbidocs/coedit/dist/server.js.map +1 -1
  72. package/node_modules/@arbidocs/coedit/dist/template.d.cts +3 -17
  73. package/node_modules/@arbidocs/coedit/dist/template.d.ts +3 -17
  74. package/node_modules/@arbidocs/coedit/dist/track-eYC94jTp.d.cts +17 -0
  75. package/node_modules/@arbidocs/coedit/dist/track-eYC94jTp.d.ts +17 -0
  76. package/node_modules/@arbidocs/coedit/package.json +1 -1
  77. package/package.json +4 -4
  78. package/dist/chunk-2A4MDHJR.cjs +0 -198
  79. package/dist/chunk-2A4MDHJR.cjs.map +0 -1
  80. package/dist/chunk-2C7TCVQZ.js.map +0 -1
  81. package/dist/chunk-EPHGD4YV.js +0 -174
  82. package/dist/chunk-EPHGD4YV.js.map +0 -1
  83. package/dist/chunk-XIGWUDOD.cjs.map +0 -1
@@ -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 on the body as the agent (attributed, outside the store's own history), mirrored
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 };
@@ -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 on the body as the agent (attributed, outside the store's own history), mirrored
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 };