@arbidocs/blocks 0.4.108 → 0.4.109

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 (106) hide show
  1. package/dist/{NativeDocxEditor-UAZUKZ77.js → NativeDocxEditor-4PY4YZYC.js} +3 -3
  2. package/dist/{NativeDocxEditor-UAZUKZ77.js.map → NativeDocxEditor-4PY4YZYC.js.map} +1 -1
  3. package/dist/{NativeDocxEditor-YX7B7OFH.cjs → NativeDocxEditor-WODZAURG.cjs} +7 -7
  4. package/dist/{NativeDocxEditor-YX7B7OFH.cjs.map → NativeDocxEditor-WODZAURG.cjs.map} +1 -1
  5. package/dist/agents/index.cjs +207 -207
  6. package/dist/agents/index.js +2 -2
  7. package/dist/chat/index.cjs +124 -124
  8. package/dist/chat/index.js +2 -2
  9. package/dist/{chunk-QT6EGMAJ.cjs → chunk-2NIL2ASF.cjs} +38 -294
  10. package/dist/chunk-2NIL2ASF.cjs.map +1 -0
  11. package/dist/{chunk-TTXK62YI.cjs → chunk-54WBIVHV.cjs} +5 -5
  12. package/dist/{chunk-TTXK62YI.cjs.map → chunk-54WBIVHV.cjs.map} +1 -1
  13. package/dist/{chunk-IXALYQT7.cjs → chunk-C2CWWEHO.cjs} +2 -2
  14. package/dist/chunk-C2CWWEHO.cjs.map +1 -0
  15. package/dist/{chunk-XQKGYGCJ.js → chunk-DQCYCEDR.js} +3 -3
  16. package/dist/{chunk-XQKGYGCJ.js.map → chunk-DQCYCEDR.js.map} +1 -1
  17. package/dist/{chunk-ZYSY4L5L.cjs → chunk-ELDUWTRR.cjs} +4 -4
  18. package/dist/{chunk-ZYSY4L5L.cjs.map → chunk-ELDUWTRR.cjs.map} +1 -1
  19. package/dist/{chunk-3Y6NQIDE.js → chunk-FQX6N5G6.js} +5 -4
  20. package/dist/chunk-FQX6N5G6.js.map +1 -0
  21. package/dist/{chunk-LLFW2T6S.cjs → chunk-GBYY3PIC.cjs} +9 -8
  22. package/dist/chunk-GBYY3PIC.cjs.map +1 -0
  23. package/dist/{chunk-A2MN2ZLX.js → chunk-GKDWQLVU.js} +13 -274
  24. package/dist/chunk-GKDWQLVU.js.map +1 -0
  25. package/dist/{chunk-24ND4S6Y.cjs → chunk-I4XQCE6U.cjs} +5 -5
  26. package/dist/{chunk-24ND4S6Y.cjs.map → chunk-I4XQCE6U.cjs.map} +1 -1
  27. package/dist/{chunk-P2KPDPFF.js → chunk-IXTQYFIF.js} +23 -15
  28. package/dist/chunk-IXTQYFIF.js.map +1 -0
  29. package/dist/{chunk-JQVPGMLU.js → chunk-JB32KYAH.js} +3 -3
  30. package/dist/{chunk-JQVPGMLU.js.map → chunk-JB32KYAH.js.map} +1 -1
  31. package/dist/{chunk-PBS5MFIY.cjs → chunk-JK45LSIH.cjs} +3 -3
  32. package/dist/{chunk-PBS5MFIY.cjs.map → chunk-JK45LSIH.cjs.map} +1 -1
  33. package/dist/{chunk-ZPLG7QYF.js → chunk-N5YEF3LC.js} +2 -2
  34. package/dist/chunk-N5YEF3LC.js.map +1 -0
  35. package/dist/{chunk-EWSEQEPL.js → chunk-NUTLXVPX.js} +3 -2
  36. package/dist/chunk-NUTLXVPX.js.map +1 -0
  37. package/dist/{chunk-MP6FK43E.cjs → chunk-PDRYGPZB.cjs} +3 -2
  38. package/dist/chunk-PDRYGPZB.cjs.map +1 -0
  39. package/dist/{chunk-EGDWNEAG.js → chunk-PEHLUB52.js} +3 -3
  40. package/dist/{chunk-EGDWNEAG.js.map → chunk-PEHLUB52.js.map} +1 -1
  41. package/dist/{chunk-XMBYDLZQ.cjs → chunk-QKWQMOHN.cjs} +4 -4
  42. package/dist/{chunk-XMBYDLZQ.cjs.map → chunk-QKWQMOHN.cjs.map} +1 -1
  43. package/dist/{chunk-DTBSGG36.cjs → chunk-U6MPHCEB.cjs} +24 -16
  44. package/dist/chunk-U6MPHCEB.cjs.map +1 -0
  45. package/dist/{chunk-XQDM6T6C.js → chunk-UABPHZWZ.js} +3 -3
  46. package/dist/{chunk-XQDM6T6C.js.map → chunk-UABPHZWZ.js.map} +1 -1
  47. package/dist/{chunk-S7RHJI5Q.js → chunk-ZSV2NQQP.js} +3 -3
  48. package/dist/{chunk-S7RHJI5Q.js.map → chunk-ZSV2NQQP.js.map} +1 -1
  49. package/dist/citations/index.cjs +10 -10
  50. package/dist/citations/index.js +1 -1
  51. package/dist/collaboration/index.cjs +16 -16
  52. package/dist/collaboration/index.js +2 -2
  53. package/dist/connect/docx.cjs +6 -6
  54. package/dist/connect/docx.js +4 -4
  55. package/dist/connect/index.cjs +37 -37
  56. package/dist/connect/index.js +8 -8
  57. package/dist/databases/index.cjs +2 -2
  58. package/dist/databases/index.js +1 -1
  59. package/dist/docx/definitions/fragment.d.ts +2 -6
  60. package/dist/docx/definitions/port.d.ts +2 -57
  61. package/dist/docx/index.cjs +46 -46
  62. package/dist/docx/index.js +3 -3
  63. package/dist/docx/references/commands.d.ts +3 -31
  64. package/dist/docx/references/numbering.d.ts +3 -47
  65. package/dist/facts/index.cjs +2 -2
  66. package/dist/facts/index.js +1 -1
  67. package/dist/files/GridView.d.ts +4 -1
  68. package/dist/files/TagPassagePanel.d.ts +2 -0
  69. package/dist/files/index.cjs +84 -74
  70. package/dist/files/index.cjs.map +1 -1
  71. package/dist/files/index.js +84 -74
  72. package/dist/files/index.js.map +1 -1
  73. package/dist/index.cjs +422 -422
  74. package/dist/index.js +7 -7
  75. package/dist/settings/FirmPool.d.ts +45 -0
  76. package/dist/settings/index.cjs +97 -0
  77. package/dist/settings/index.cjs.map +1 -1
  78. package/dist/settings/index.d.ts +1 -0
  79. package/dist/settings/index.js +95 -1
  80. package/dist/settings/index.js.map +1 -1
  81. package/dist/studio/index.cjs +3 -3
  82. package/dist/studio/index.js +2 -2
  83. package/dist/workflow-canvas/index.cjs +9 -9
  84. package/dist/workflow-canvas/index.js +2 -2
  85. package/dist/workspaces/index.cjs +1 -1
  86. package/dist/workspaces/index.cjs.map +1 -1
  87. package/dist/workspaces/index.js +1 -1
  88. package/dist/workspaces/index.js.map +1 -1
  89. package/node_modules/@arbidocs/coedit/dist/commands.cjs +356 -0
  90. package/node_modules/@arbidocs/coedit/dist/commands.cjs.map +1 -0
  91. package/node_modules/@arbidocs/coedit/dist/commands.d.cts +235 -0
  92. package/node_modules/@arbidocs/coedit/dist/commands.d.ts +235 -0
  93. package/node_modules/@arbidocs/coedit/dist/commands.js +338 -0
  94. package/node_modules/@arbidocs/coedit/dist/commands.js.map +1 -0
  95. package/node_modules/@arbidocs/coedit/package.json +6 -1
  96. package/package.json +4 -4
  97. package/dist/chunk-3Y6NQIDE.js.map +0 -1
  98. package/dist/chunk-A2MN2ZLX.js.map +0 -1
  99. package/dist/chunk-DTBSGG36.cjs.map +0 -1
  100. package/dist/chunk-EWSEQEPL.js.map +0 -1
  101. package/dist/chunk-IXALYQT7.cjs.map +0 -1
  102. package/dist/chunk-LLFW2T6S.cjs.map +0 -1
  103. package/dist/chunk-MP6FK43E.cjs.map +0 -1
  104. package/dist/chunk-P2KPDPFF.js.map +0 -1
  105. package/dist/chunk-QT6EGMAJ.cjs.map +0 -1
  106. package/dist/chunk-ZPLG7QYF.js.map +0 -1
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
- var chunkTTXK62YI_cjs = require('../chunk-TTXK62YI.cjs');
4
+ var chunk54WBIVHV_cjs = require('../chunk-54WBIVHV.cjs');
5
5
  var chunkS24XEVPS_cjs = require('../chunk-S24XEVPS.cjs');
6
- var chunkQT6EGMAJ_cjs = require('../chunk-QT6EGMAJ.cjs');
6
+ var chunk2NIL2ASF_cjs = require('../chunk-2NIL2ASF.cjs');
7
7
  require('../chunk-5FYU7ZIU.cjs');
8
8
  require('../chunk-2A4MDHJR.cjs');
9
9
  require('../chunk-RC25WMVB.cjs');
@@ -62,7 +62,7 @@ function NativeDocxComparison({
62
62
  if (!documentId)
63
63
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "native-docx-error", role: "status", children: "Comparing Word documents\u2026" });
64
64
  return /* @__PURE__ */ jsxRuntime.jsx(
65
- chunkQT6EGMAJ_cjs.NativeDocxEditor,
65
+ chunk2NIL2ASF_cjs.NativeDocxEditor,
66
66
  {
67
67
  adapter,
68
68
  documentId,
@@ -74,7 +74,7 @@ function NativeDocxComparison({
74
74
 
75
75
  Object.defineProperty(exports, "StreamedWordArtifact", {
76
76
  enumerable: true,
77
- get: function () { return chunkTTXK62YI_cjs.StreamedWordArtifact; }
77
+ get: function () { return chunk54WBIVHV_cjs.StreamedWordArtifact; }
78
78
  });
79
79
  Object.defineProperty(exports, "loadDocxFonts", {
80
80
  enumerable: true,
@@ -82,171 +82,171 @@ Object.defineProperty(exports, "loadDocxFonts", {
82
82
  });
83
83
  Object.defineProperty(exports, "BUILTIN_TEMPLATE_NAME", {
84
84
  enumerable: true,
85
- get: function () { return chunkQT6EGMAJ_cjs.BUILTIN_TEMPLATE_NAME; }
85
+ get: function () { return chunk2NIL2ASF_cjs.BUILTIN_TEMPLATE_NAME; }
86
86
  });
87
87
  Object.defineProperty(exports, "CrossReferenceDialog", {
88
88
  enumerable: true,
89
- get: function () { return chunkQT6EGMAJ_cjs.CrossReferenceDialog; }
89
+ get: function () { return chunk2NIL2ASF_cjs.CrossReferenceDialog; }
90
90
  });
91
91
  Object.defineProperty(exports, "CrossReferencesProvider", {
92
92
  enumerable: true,
93
- get: function () { return chunkQT6EGMAJ_cjs.CrossReferencesProvider; }
93
+ get: function () { return chunk2NIL2ASF_cjs.CrossReferencesProvider; }
94
94
  });
95
95
  Object.defineProperty(exports, "DEFAULT_CROSS_REFERENCES_LABELS", {
96
96
  enumerable: true,
97
- get: function () { return chunkQT6EGMAJ_cjs.DEFAULT_CROSS_REFERENCES_LABELS; }
97
+ get: function () { return chunk2NIL2ASF_cjs.DEFAULT_CROSS_REFERENCES_LABELS; }
98
98
  });
99
99
  Object.defineProperty(exports, "DEFAULT_DEFINED_TERMS_LABELS", {
100
100
  enumerable: true,
101
- get: function () { return chunkQT6EGMAJ_cjs.DEFAULT_DEFINED_TERMS_LABELS; }
101
+ get: function () { return chunk2NIL2ASF_cjs.DEFAULT_DEFINED_TERMS_LABELS; }
102
102
  });
103
103
  Object.defineProperty(exports, "DEFINED_TERM_TRIGGER", {
104
104
  enumerable: true,
105
- get: function () { return chunkQT6EGMAJ_cjs.DEFINED_TERM_TRIGGER; }
105
+ get: function () { return chunk2NIL2ASF_cjs.DEFINED_TERM_TRIGGER; }
106
106
  });
107
107
  Object.defineProperty(exports, "DefinedTermsProvider", {
108
108
  enumerable: true,
109
- get: function () { return chunkQT6EGMAJ_cjs.DefinedTermsProvider; }
109
+ get: function () { return chunk2NIL2ASF_cjs.DefinedTermsProvider; }
110
110
  });
111
111
  Object.defineProperty(exports, "DocxAuthorContext", {
112
112
  enumerable: true,
113
- get: function () { return chunkQT6EGMAJ_cjs.DocxAuthorContext; }
113
+ get: function () { return chunk2NIL2ASF_cjs.DocxAuthorContext; }
114
114
  });
115
115
  Object.defineProperty(exports, "DocxCommentActivity", {
116
116
  enumerable: true,
117
- get: function () { return chunkQT6EGMAJ_cjs.DocxCommentActivity; }
117
+ get: function () { return chunk2NIL2ASF_cjs.DocxCommentActivity; }
118
118
  });
119
119
  Object.defineProperty(exports, "DocxEditorReview", {
120
120
  enumerable: true,
121
- get: function () { return chunkQT6EGMAJ_cjs.DocxEditorReview; }
121
+ get: function () { return chunk2NIL2ASF_cjs.DocxEditorReview; }
122
122
  });
123
123
  Object.defineProperty(exports, "DocxMentions", {
124
124
  enumerable: true,
125
- get: function () { return chunkQT6EGMAJ_cjs.DocxMentions; }
125
+ get: function () { return chunk2NIL2ASF_cjs.DocxMentions; }
126
126
  });
127
127
  Object.defineProperty(exports, "DocxParticipants", {
128
128
  enumerable: true,
129
- get: function () { return chunkQT6EGMAJ_cjs.DocxParticipants; }
129
+ get: function () { return chunk2NIL2ASF_cjs.DocxParticipants; }
130
130
  });
131
131
  Object.defineProperty(exports, "DocxRibbon", {
132
132
  enumerable: true,
133
- get: function () { return chunkQT6EGMAJ_cjs.DocxRibbon; }
133
+ get: function () { return chunk2NIL2ASF_cjs.DocxRibbon; }
134
134
  });
135
135
  Object.defineProperty(exports, "GenerateImageButton", {
136
136
  enumerable: true,
137
- get: function () { return chunkQT6EGMAJ_cjs.GenerateImageButton; }
137
+ get: function () { return chunk2NIL2ASF_cjs.GenerateImageButton; }
138
138
  });
139
139
  Object.defineProperty(exports, "HouseTemplateProvider", {
140
140
  enumerable: true,
141
- get: function () { return chunkQT6EGMAJ_cjs.HouseTemplateProvider; }
141
+ get: function () { return chunk2NIL2ASF_cjs.HouseTemplateProvider; }
142
142
  });
143
143
  Object.defineProperty(exports, "LinkHoverCard", {
144
144
  enumerable: true,
145
- get: function () { return chunkQT6EGMAJ_cjs.LinkHoverCard; }
145
+ get: function () { return chunk2NIL2ASF_cjs.LinkHoverCard; }
146
146
  });
147
147
  Object.defineProperty(exports, "NativeDocxEditor", {
148
148
  enumerable: true,
149
- get: function () { return chunkQT6EGMAJ_cjs.NativeDocxEditor; }
149
+ get: function () { return chunk2NIL2ASF_cjs.NativeDocxEditor; }
150
150
  });
151
151
  Object.defineProperty(exports, "builtinHouseTemplate", {
152
152
  enumerable: true,
153
- get: function () { return chunkQT6EGMAJ_cjs.builtinHouseTemplate; }
153
+ get: function () { return chunk2NIL2ASF_cjs.builtinHouseTemplate; }
154
154
  });
155
155
  Object.defineProperty(exports, "contentPath", {
156
156
  enumerable: true,
157
- get: function () { return chunkQT6EGMAJ_cjs.contentPath; }
157
+ get: function () { return chunk2NIL2ASF_cjs.contentPath; }
158
158
  });
159
159
  Object.defineProperty(exports, "editorPort", {
160
160
  enumerable: true,
161
- get: function () { return chunkQT6EGMAJ_cjs.editorPort; }
161
+ get: function () { return chunk2NIL2ASF_cjs.editorPort; }
162
162
  });
163
163
  Object.defineProperty(exports, "findDefinitionsSection", {
164
164
  enumerable: true,
165
- get: function () { return chunkQT6EGMAJ_cjs.findDefinitionsSection; }
165
+ get: function () { return chunk2NIL2ASF_cjs.findDefinitionsSection; }
166
166
  });
167
167
  Object.defineProperty(exports, "insertCrossReference", {
168
168
  enumerable: true,
169
- get: function () { return chunkQT6EGMAJ_cjs.insertCrossReference; }
169
+ get: function () { return chunk2NIL2ASF_cjs.insertCrossReference; }
170
170
  });
171
171
  Object.defineProperty(exports, "insertDefinedTerm", {
172
172
  enumerable: true,
173
- get: function () { return chunkQT6EGMAJ_cjs.insertDefinedTerm; }
173
+ get: function () { return chunk2NIL2ASF_cjs.insertDefinedTerm; }
174
174
  });
175
175
  Object.defineProperty(exports, "insertDocumentReference", {
176
176
  enumerable: true,
177
- get: function () { return chunkQT6EGMAJ_cjs.insertDocumentReference; }
177
+ get: function () { return chunk2NIL2ASF_cjs.insertDocumentReference; }
178
178
  });
179
179
  Object.defineProperty(exports, "listTargets", {
180
180
  enumerable: true,
181
- get: function () { return chunkQT6EGMAJ_cjs.listTargets; }
181
+ get: function () { return chunk2NIL2ASF_cjs.listTargets; }
182
182
  });
183
183
  Object.defineProperty(exports, "normalizeDocxExport", {
184
184
  enumerable: true,
185
- get: function () { return chunkQT6EGMAJ_cjs.normalizeDocxExport; }
185
+ get: function () { return chunk2NIL2ASF_cjs.normalizeDocxExport; }
186
186
  });
187
187
  Object.defineProperty(exports, "paragraphNumber", {
188
188
  enumerable: true,
189
- get: function () { return chunkQT6EGMAJ_cjs.paragraphNumber; }
189
+ get: function () { return chunk2NIL2ASF_cjs.paragraphNumber; }
190
190
  });
191
191
  Object.defineProperty(exports, "referenceText", {
192
192
  enumerable: true,
193
- get: function () { return chunkQT6EGMAJ_cjs.referenceText; }
193
+ get: function () { return chunk2NIL2ASF_cjs.referenceText; }
194
194
  });
195
195
  Object.defineProperty(exports, "referencesPort", {
196
196
  enumerable: true,
197
- get: function () { return chunkQT6EGMAJ_cjs.referencesPort; }
197
+ get: function () { return chunk2NIL2ASF_cjs.referencesPort; }
198
198
  });
199
199
  Object.defineProperty(exports, "resolveHouseTemplate", {
200
200
  enumerable: true,
201
- get: function () { return chunkQT6EGMAJ_cjs.resolveHouseTemplate; }
201
+ get: function () { return chunk2NIL2ASF_cjs.resolveHouseTemplate; }
202
202
  });
203
203
  Object.defineProperty(exports, "reviewModule", {
204
204
  enumerable: true,
205
- get: function () { return chunkQT6EGMAJ_cjs.reviewModule; }
205
+ get: function () { return chunk2NIL2ASF_cjs.reviewModule; }
206
206
  });
207
207
  Object.defineProperty(exports, "shortTitle", {
208
208
  enumerable: true,
209
- get: function () { return chunkQT6EGMAJ_cjs.shortTitle; }
209
+ get: function () { return chunk2NIL2ASF_cjs.shortTitle; }
210
210
  });
211
211
  Object.defineProperty(exports, "structuralPort", {
212
212
  enumerable: true,
213
- get: function () { return chunkQT6EGMAJ_cjs.structuralPort; }
213
+ get: function () { return chunk2NIL2ASF_cjs.structuralPort; }
214
214
  });
215
215
  Object.defineProperty(exports, "templateFileName", {
216
216
  enumerable: true,
217
- get: function () { return chunkQT6EGMAJ_cjs.templateFileName; }
217
+ get: function () { return chunk2NIL2ASF_cjs.templateFileName; }
218
218
  });
219
219
  Object.defineProperty(exports, "trackedOrNoted", {
220
220
  enumerable: true,
221
- get: function () { return chunkQT6EGMAJ_cjs.trackedOrNoted; }
221
+ get: function () { return chunk2NIL2ASF_cjs.trackedOrNoted; }
222
222
  });
223
223
  Object.defineProperty(exports, "useCrossReferences", {
224
224
  enumerable: true,
225
- get: function () { return chunkQT6EGMAJ_cjs.useCrossReferences; }
225
+ get: function () { return chunk2NIL2ASF_cjs.useCrossReferences; }
226
226
  });
227
227
  Object.defineProperty(exports, "useDefinedTerms", {
228
228
  enumerable: true,
229
- get: function () { return chunkQT6EGMAJ_cjs.useDefinedTerms; }
229
+ get: function () { return chunk2NIL2ASF_cjs.useDefinedTerms; }
230
230
  });
231
231
  Object.defineProperty(exports, "useHouseTemplate", {
232
232
  enumerable: true,
233
- get: function () { return chunkQT6EGMAJ_cjs.useHouseTemplate; }
233
+ get: function () { return chunk2NIL2ASF_cjs.useHouseTemplate; }
234
234
  });
235
235
  Object.defineProperty(exports, "useReview", {
236
236
  enumerable: true,
237
- get: function () { return chunkQT6EGMAJ_cjs.useReview; }
237
+ get: function () { return chunk2NIL2ASF_cjs.useReview; }
238
238
  });
239
239
  Object.defineProperty(exports, "useReviewItem", {
240
240
  enumerable: true,
241
- get: function () { return chunkQT6EGMAJ_cjs.useReviewItem; }
241
+ get: function () { return chunk2NIL2ASF_cjs.useReviewItem; }
242
242
  });
243
243
  Object.defineProperty(exports, "useTrackedOrNoted", {
244
244
  enumerable: true,
245
- get: function () { return chunkQT6EGMAJ_cjs.useTrackedOrNoted; }
245
+ get: function () { return chunk2NIL2ASF_cjs.useTrackedOrNoted; }
246
246
  });
247
247
  Object.defineProperty(exports, "withDirectEditing", {
248
248
  enumerable: true,
249
- get: function () { return chunkQT6EGMAJ_cjs.withDirectEditing; }
249
+ get: function () { return chunk2NIL2ASF_cjs.withDirectEditing; }
250
250
  });
251
251
  Object.defineProperty(exports, "DocxEditor", {
252
252
  enumerable: true,
@@ -1,8 +1,8 @@
1
1
  "use client";
2
- export { StreamedWordArtifact } from '../chunk-JQVPGMLU.js';
2
+ export { StreamedWordArtifact } from '../chunk-JB32KYAH.js';
3
3
  export { loadDocxFonts } from '../chunk-GYAUJ4KT.js';
4
- import { NativeDocxEditor } from '../chunk-A2MN2ZLX.js';
5
- export { BUILTIN_TEMPLATE_NAME, CrossReferenceDialog, CrossReferencesProvider, DEFAULT_CROSS_REFERENCES_LABELS, DEFAULT_DEFINED_TERMS_LABELS, DEFINED_TERM_TRIGGER, DefinedTermsProvider, DocxAuthorContext, DocxCommentActivity, DocxEditorReview, DocxMentions, DocxParticipants, DocxRibbon, GenerateImageButton, HouseTemplateProvider, LinkHoverCard, NativeDocxEditor, builtinHouseTemplate, contentPath, editorPort, findDefinitionsSection, insertCrossReference, insertDefinedTerm, insertDocumentReference, listTargets, normalizeDocxExport, paragraphNumber, referenceText, referencesPort, resolveHouseTemplate, reviewModule, shortTitle, structuralPort, templateFileName, trackedOrNoted, useCrossReferences, useDefinedTerms, useHouseTemplate, useReview, useReviewItem, useTrackedOrNoted, withDirectEditing } from '../chunk-A2MN2ZLX.js';
4
+ import { NativeDocxEditor } from '../chunk-GKDWQLVU.js';
5
+ export { BUILTIN_TEMPLATE_NAME, CrossReferenceDialog, CrossReferencesProvider, DEFAULT_CROSS_REFERENCES_LABELS, DEFAULT_DEFINED_TERMS_LABELS, DEFINED_TERM_TRIGGER, DefinedTermsProvider, DocxAuthorContext, DocxCommentActivity, DocxEditorReview, DocxMentions, DocxParticipants, DocxRibbon, GenerateImageButton, HouseTemplateProvider, LinkHoverCard, NativeDocxEditor, builtinHouseTemplate, contentPath, editorPort, findDefinitionsSection, insertCrossReference, insertDefinedTerm, insertDocumentReference, listTargets, normalizeDocxExport, paragraphNumber, referenceText, referencesPort, resolveHouseTemplate, reviewModule, shortTitle, structuralPort, templateFileName, trackedOrNoted, useCrossReferences, useDefinedTerms, useHouseTemplate, useReview, useReviewItem, useTrackedOrNoted, withDirectEditing } from '../chunk-GKDWQLVU.js';
6
6
  import '../chunk-HFZ45FD3.js';
7
7
  import '../chunk-EPHGD4YV.js';
8
8
  import '../chunk-AF6RDAJF.js';
@@ -11,10 +11,10 @@
11
11
  * address of that document's passage (so it works from Word too), with a screen tip saying so.
12
12
  */
13
13
  import { type DocPoint } from '../definitions/port';
14
- import { type CrossReferenceTarget } from './numbering';
14
+ import { type BrokenReference, type CrossReferenceMode } from '@arbidocs/coedit/commands';
15
+ import type { CrossReferenceTarget } from './numbering';
15
16
  import type { ReferencesPort } from './port';
16
- /** Prefix of Word's hidden cross-reference bookmarks. */
17
- export declare const REF_BOOKMARK_PREFIX = "_Ref";
17
+ export { REF_BOOKMARK_PREFIX, brokenCrossReferences, staleCrossReferences, type BrokenReference, type CrossReferenceMode, type StaleReference, } from '@arbidocs/coedit/commands';
18
18
  /** A new `_Ref` bookmark name: Word's shape (`_Ref` and nine digits), not yet in the document. */
19
19
  export declare function newRefBookmark(taken: ReadonlySet<string>, random?: () => number): string;
20
20
  /**
@@ -29,7 +29,6 @@ export declare const refTooltip: (value: string, mode: CrossReferenceMode) => st
29
29
  * the screen tip Word shows on hover ("Cross-reference to clause 2.2").
30
30
  */
31
31
  export declare function crossReferenceXml(bookmark: string, mode: CrossReferenceMode, value: string): string;
32
- export type CrossReferenceMode = 'number' | 'text';
33
32
  /** The field instruction for a target: its paragraph number, or its text. */
34
33
  export declare const refInstruction: (bookmark: string, mode: CrossReferenceMode) => string;
35
34
  /** What the reference reads in the text. */
@@ -77,33 +76,6 @@ export declare function insertDocumentReference(port: ReferencesPort, reference:
77
76
  url: string;
78
77
  appName?: string;
79
78
  }, caret: DocPoint): void;
80
- /** A `REF` field whose cached result no longer says what its target now is. */
81
- export interface StaleReference {
82
- paragraphId: string;
83
- offset: number;
84
- instruction: string;
85
- /** The current value, or null when the target is gone (the reference is broken). */
86
- value: string | null;
87
- /** The field's cached result (what it last showed). */
88
- cached: string;
89
- bookmark: string;
90
- mode: CrossReferenceMode;
91
- }
92
- /** A cross-reference whose target was deleted: its last text, marked in the Broken style. */
93
- export interface BrokenReference {
94
- paragraphId: string;
95
- offset: number;
96
- text: string;
97
- }
98
- /**
99
- * The cross-references whose cached result is out of date: a clause renumbered, a heading
100
- * reworded. The editor paints a field's live value only while its cached result matches what it
101
- * computes, so a stale cache shows the OLD number after the document is reopened (and Word shows
102
- * the cached result until its fields are updated).
103
- */
104
- export declare function staleCrossReferences(port: ReferencesPort): StaleReference[];
105
- /** The broken cross-references marked in the document, in document order. */
106
- export declare function brokenCrossReferences(port: ReferencesPort): BrokenReference[];
107
79
  export interface RefreshResult {
108
80
  /** References rewritten with their current number or text. */
109
81
  refreshed: number;
@@ -1,49 +1,5 @@
1
1
  /**
2
- * Cross-reference targets: the document's numbered paragraphs (clauses, sub-clauses, numbered
3
- * captions) and its headings, with the number Word's `REF \r` shows for each.
4
- *
5
- * The number is what the editor computes for a `REF … \r` field — and it has to be exactly that,
6
- * because the engine shows a field's live value only while the field's cached result matches what
7
- * it computes (otherwise it keeps the cached text for good). So this mirrors the engine: the
8
- * paragraph's own list level, preceded by each higher level whose number its level text does not
9
- * already show (`%1.%2` already shows level 1; `(%3)` does not show `2.1`), and one trailing
10
- * period dropped (`2.` reads `2`).
2
+ * Cross-reference targets and the number `REF \\r` shows for each: shared with the collaboration
3
+ * service, see `@arbidocs/coedit/commands`.
11
4
  */
12
- import type { DocParagraph } from '../definitions/port';
13
- /** A paragraph's resolved list numbering (the engine's list item). */
14
- export interface ListItemInfo {
15
- numId: string;
16
- ilvl: number;
17
- markerText: string;
18
- numFmt: string;
19
- }
20
- /** A list level's definition: its level text (`%1.%2`) and number format. */
21
- export interface LevelInfo {
22
- lvlText: string;
23
- numFmt: string;
24
- }
25
- export type LevelOf = (numId: string, ilvl: number) => LevelInfo | null;
26
- /**
27
- * The number `REF \r` shows for a paragraph, or null when it is not numbered. `order` is every
28
- * paragraph id in document order (for the markers of the levels above it).
29
- */
30
- export declare function paragraphNumber(order: readonly string[], items: ReadonlyMap<string, ListItemInfo>, levelOf: LevelOf, paragraphId: string): string | null;
31
- /** One place a cross-reference can point at. */
32
- export interface CrossReferenceTarget {
33
- paragraphId: string;
34
- /** A numbered paragraph (clause, sub-clause, caption) or an unnumbered heading. */
35
- kind: 'numbered' | 'heading';
36
- /** What `REF \r` shows (`8.2`), or null for an unnumbered heading. */
37
- number: string | null;
38
- /** The paragraph's list marker as painted (`8.2`, `(a)`), or empty. */
39
- marker: string;
40
- /** The paragraph's text (without its marker). */
41
- text: string;
42
- heading: boolean;
43
- /** Its list level (0 for a top-level clause), or 0 for a heading. */
44
- level: number;
45
- }
46
- /** Every numbered paragraph and every heading, in document order. */
47
- export declare function listTargets(paragraphs: readonly DocParagraph[], items: ReadonlyMap<string, ListItemInfo>, levelOf: LevelOf): CrossReferenceTarget[];
48
- /** Targets whose number or text contains the query (case-insensitive). */
49
- export declare function filterTargets(targets: readonly CrossReferenceTarget[], query: string): CrossReferenceTarget[];
5
+ export { filterTargets, listTargets, paragraphNumber, type CrossReferenceTarget, type LevelInfo, type LevelOf, type ListItemInfo, } from '@arbidocs/coedit/commands';
@@ -12,7 +12,7 @@ var chunk2EI7NCUA_cjs = require('../chunk-2EI7NCUA.cjs');
12
12
  var chunkPPCATBOY_cjs = require('../chunk-PPCATBOY.cjs');
13
13
  require('../chunk-C54XEN5T.cjs');
14
14
  var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
15
- var chunkIXALYQT7_cjs = require('../chunk-IXALYQT7.cjs');
15
+ var chunkC2CWWEHO_cjs = require('../chunk-C2CWWEHO.cjs');
16
16
  require('../chunk-FX3K6LNZ.cjs');
17
17
  var chunkMHVNT4J3_cjs = require('../chunk-MHVNT4J3.cjs');
18
18
  require('../chunk-DES3K4SD.cjs');
@@ -516,7 +516,7 @@ function FactsTable({
516
516
  ]
517
517
  );
518
518
  return /* @__PURE__ */ jsxRuntime.jsx(
519
- chunkIXALYQT7_cjs.GridView,
519
+ chunkC2CWWEHO_cjs.GridView,
520
520
  {
521
521
  testId,
522
522
  items: facts,
@@ -12,7 +12,7 @@ export { DEFAULT_FILTER_INPUT_LABELS as DEFAULT_FACTS_FILTER_INPUT_LABELS, DEFAU
12
12
  import { observeResize } from '../chunk-NPLYHR2E.js';
13
13
  import '../chunk-76JDDMSP.js';
14
14
  import { initials } from '../chunk-OXF2IFXG.js';
15
- import { GridView } from '../chunk-ZPLG7QYF.js';
15
+ import { GridView } from '../chunk-N5YEF3LC.js';
16
16
  import '../chunk-SLSBJRWW.js';
17
17
  import { testIdOr } from '../chunk-7F6CBP3Z.js';
18
18
  import '../chunk-VUNV25KB.js';
@@ -30,6 +30,8 @@ export interface GridViewEmptyState {
30
30
  message?: string;
31
31
  action?: React.ReactNode;
32
32
  }
33
+ /** Grid events GridView binds itself; `gridOptions` may not override them. */
34
+ type GridViewOwnedEvent = 'onGridReady' | 'onFirstDataRendered' | 'onModelUpdated' | 'onSelectionChanged' | 'onCellValueChanged' | 'onRowClicked' | 'onStateUpdated' | 'onColumnVisible';
33
35
  export interface GridViewProps<T> {
34
36
  items: T[];
35
37
  columnDefs: ColDef<T>[];
@@ -38,7 +40,7 @@ export interface GridViewProps<T> {
38
40
  emptyState?: GridViewEmptyState;
39
41
  isLoading?: boolean;
40
42
  loadingMessage?: string;
41
- gridOptions?: Partial<GridOptions<T>>;
43
+ gridOptions?: Partial<Omit<GridOptions<T>, GridViewOwnedEvent>>;
42
44
  onGridReady?: (params: {
43
45
  api: GridApi<T>;
44
46
  }) => void;
@@ -62,3 +64,4 @@ export interface GridViewProps<T> {
62
64
  showEmpty?: boolean;
63
65
  }
64
66
  export declare function GridView<T>({ items, columnDefs, getItemId, selection, emptyState, isLoading, loadingMessage, gridOptions, onGridReady, onCellValueChanged, onRowClick, persistState, gridState, onGridStateChange, initialVisibleColumns, className, height, rowHeight: rowHeightProp, testId, pinnedBottomRowData, pinnedTopRowData, pagination, paginationPageSizeSelector, getRowTestId, getCellTestId, showEmpty, }: GridViewProps<T>): React.JSX.Element;
67
+ export {};
@@ -17,6 +17,8 @@ export interface TagPassagePanelTestIds {
17
17
  root: string;
18
18
  close: string;
19
19
  viewTagged: string;
20
+ /** Prefix of each label's row, `<prefix>-<tag id>`. */
21
+ row: string;
20
22
  }
21
23
  export interface PassageTagRowView {
22
24
  id: string;
@@ -17,7 +17,7 @@ require('../chunk-C54XEN5T.cjs');
17
17
  var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
18
18
  var chunkVLCY46K6_cjs = require('../chunk-VLCY46K6.cjs');
19
19
  var chunkULWRNGGE_cjs = require('../chunk-ULWRNGGE.cjs');
20
- var chunkIXALYQT7_cjs = require('../chunk-IXALYQT7.cjs');
20
+ var chunkC2CWWEHO_cjs = require('../chunk-C2CWWEHO.cjs');
21
21
  require('../chunk-FX3K6LNZ.cjs');
22
22
  var chunkMHVNT4J3_cjs = require('../chunk-MHVNT4J3.cjs');
23
23
  require('../chunk-DES3K4SD.cjs');
@@ -1914,7 +1914,7 @@ var DOCUMENT_GRID_CLASS = "w-full [&_.cell-empty]:text-muted-foreground [&_.ag-r
1914
1914
  function DocumentGrid({
1915
1915
  layout,
1916
1916
  presets,
1917
- GridComponent = chunkIXALYQT7_cjs.GridView,
1917
+ GridComponent = chunkC2CWWEHO_cjs.GridView,
1918
1918
  emptyWorkspace,
1919
1919
  showEmptyWorkspace,
1920
1920
  testId = "documents-grid",
@@ -2618,82 +2618,92 @@ function TagPassagePanel({
2618
2618
  group.tags.map((tag) => {
2619
2619
  const hasNote2 = !!tag.note;
2620
2620
  const isEditing = editingNoteTagId === tag.id;
2621
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "border-b border-border last:border-b-0", children: [
2622
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center transition-colors hover:bg-muted", children: [
2623
- /* @__PURE__ */ jsxRuntime.jsxs(
2624
- "button",
2625
- {
2626
- onClick: () => onToggle(tag.id),
2627
- disabled: isBusy,
2628
- className: "flex flex-1 items-center gap-3 px-4 py-3 disabled:opacity-50 pointer-coarse:min-h-11",
2629
- children: [
2621
+ return /* @__PURE__ */ jsxRuntime.jsxs(
2622
+ "div",
2623
+ {
2624
+ className: "border-b border-border last:border-b-0",
2625
+ "data-testid": chunkMHVNT4J3_cjs.prefixedTestId(testIds?.row, tag.id, {
2626
+ testId: `chunk-tag-row-${tag.id}`
2627
+ }),
2628
+ children: [
2629
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center transition-colors hover:bg-muted", children: [
2630
+ /* @__PURE__ */ jsxRuntime.jsxs(
2631
+ "button",
2632
+ {
2633
+ onClick: () => onToggle(tag.id),
2634
+ disabled: isBusy,
2635
+ className: "flex flex-1 items-center gap-3 px-4 py-3 disabled:opacity-50 pointer-coarse:min-h-11",
2636
+ children: [
2637
+ /* @__PURE__ */ jsxRuntime.jsx(
2638
+ "div",
2639
+ {
2640
+ className: "flex size-5 shrink-0 items-center justify-center rounded border-2",
2641
+ style: {
2642
+ borderColor: tag.color,
2643
+ backgroundColor: tag.isApplied ? tag.color : "transparent"
2644
+ },
2645
+ children: tag.isApplied && /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "size-3 text-white", strokeWidth: 3 })
2646
+ }
2647
+ ),
2648
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
2649
+ tag.badge,
2650
+ hasNote2 && !isEditing && /* @__PURE__ */ jsxRuntime.jsx(lucideReact.StickyNote, { className: "size-3.5 text-muted-foreground" })
2651
+ ] }),
2652
+ isBusy && /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "size-4 shrink-0 animate-spin" })
2653
+ ]
2654
+ }
2655
+ ),
2656
+ tag.isApplied && onViewTagged && /* @__PURE__ */ jsxRuntime.jsx(
2657
+ "button",
2658
+ {
2659
+ onClick: () => onViewTagged(tag.id),
2660
+ className: "mr-3 shrink-0 rounded p-1 hover:bg-muted pointer-coarse:min-h-11 pointer-coarse:min-w-11",
2661
+ title: l.viewTagged,
2662
+ "data-testid": chunkMHVNT4J3_cjs.testIdOr(testIds?.viewTagged, {
2663
+ testId: "view-tagged-chunks-button"
2664
+ }),
2665
+ children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { className: "size-4 text-muted-foreground" })
2666
+ }
2667
+ )
2668
+ ] }),
2669
+ tag.isApplied && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-4 pb-3", children: isEditing ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
2670
+ /* @__PURE__ */ jsxRuntime.jsx(
2671
+ ui.Textarea,
2672
+ {
2673
+ value: noteValue,
2674
+ onChange: (e) => onNoteChange(e.target.value),
2675
+ placeholder: l.notePlaceholder,
2676
+ className: "min-h-[60px] text-sm",
2677
+ autoFocus: true
2678
+ }
2679
+ ),
2680
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-end gap-2", children: [
2681
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { variant: "ghost", size: "sm", onClick: onCancelNote, children: l.cancel }),
2630
2682
  /* @__PURE__ */ jsxRuntime.jsx(
2631
- "div",
2683
+ ui.Button,
2632
2684
  {
2633
- className: "flex size-5 shrink-0 items-center justify-center rounded border-2",
2634
- style: {
2635
- borderColor: tag.color,
2636
- backgroundColor: tag.isApplied ? tag.color : "transparent"
2637
- },
2638
- children: tag.isApplied && /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "size-3 text-white", strokeWidth: 3 })
2685
+ size: "sm",
2686
+ onClick: () => onSaveNote(tag.id),
2687
+ disabled: isBusy,
2688
+ children: l.save
2639
2689
  }
2640
- ),
2641
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
2642
- tag.badge,
2643
- hasNote2 && !isEditing && /* @__PURE__ */ jsxRuntime.jsx(lucideReact.StickyNote, { className: "size-3.5 text-muted-foreground" })
2644
- ] }),
2645
- isBusy && /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "size-4 shrink-0 animate-spin" })
2646
- ]
2647
- }
2648
- ),
2649
- tag.isApplied && onViewTagged && /* @__PURE__ */ jsxRuntime.jsx(
2650
- "button",
2651
- {
2652
- onClick: () => onViewTagged(tag.id),
2653
- className: "mr-3 shrink-0 rounded p-1 hover:bg-muted pointer-coarse:min-h-11 pointer-coarse:min-w-11",
2654
- title: l.viewTagged,
2655
- "data-testid": chunkMHVNT4J3_cjs.testIdOr(testIds?.viewTagged, {
2656
- testId: "view-tagged-chunks-button"
2657
- }),
2658
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { className: "size-4 text-muted-foreground" })
2659
- }
2660
- )
2661
- ] }),
2662
- tag.isApplied && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-4 pb-3", children: isEditing ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
2663
- /* @__PURE__ */ jsxRuntime.jsx(
2664
- ui.Textarea,
2665
- {
2666
- value: noteValue,
2667
- onChange: (e) => onNoteChange(e.target.value),
2668
- placeholder: l.notePlaceholder,
2669
- className: "min-h-[60px] text-sm",
2670
- autoFocus: true
2671
- }
2672
- ),
2673
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-end gap-2", children: [
2674
- /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { variant: "ghost", size: "sm", onClick: onCancelNote, children: l.cancel }),
2675
- /* @__PURE__ */ jsxRuntime.jsx(
2676
- ui.Button,
2690
+ )
2691
+ ] })
2692
+ ] }) : /* @__PURE__ */ jsxRuntime.jsx(
2693
+ "button",
2677
2694
  {
2678
- size: "sm",
2679
- onClick: () => onSaveNote(tag.id),
2680
- disabled: isBusy,
2681
- children: l.save
2695
+ onClick: () => onStartNote(tag.id),
2696
+ className: ui.cn(
2697
+ "w-full rounded-md bg-muted px-2 py-1.5 text-left text-sm pointer-coarse:min-h-11",
2698
+ hasNote2 ? "text-foreground" : "text-muted-foreground"
2699
+ ),
2700
+ children: tag.note || l.addNote
2682
2701
  }
2683
- )
2684
- ] })
2685
- ] }) : /* @__PURE__ */ jsxRuntime.jsx(
2686
- "button",
2687
- {
2688
- onClick: () => onStartNote(tag.id),
2689
- className: ui.cn(
2690
- "w-full rounded-md bg-muted px-2 py-1.5 text-left text-sm pointer-coarse:min-h-11",
2691
- hasNote2 ? "text-foreground" : "text-muted-foreground"
2692
- ),
2693
- children: tag.note || l.addNote
2694
- }
2695
- ) })
2696
- ] }, tag.id);
2702
+ ) })
2703
+ ]
2704
+ },
2705
+ tag.id
2706
+ );
2697
2707
  })
2698
2708
  ] }, group.id)) }) }),
2699
2709
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "border-t border-border p-4", children: /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { variant: "outline", size: "sm", className: "w-full", onClick: onCreate, children: l.createField }) })
@@ -7092,7 +7102,7 @@ Object.defineProperty(exports, "SelectionBarAction", {
7092
7102
  });
7093
7103
  Object.defineProperty(exports, "GridView", {
7094
7104
  enumerable: true,
7095
- get: function () { return chunkIXALYQT7_cjs.GridView; }
7105
+ get: function () { return chunkC2CWWEHO_cjs.GridView; }
7096
7106
  });
7097
7107
  exports.AiReviewDialogView = AiReviewDialogView;
7098
7108
  exports.BulkActionsBar = BulkActionsBar;