@betteroffice/docx 0.0.1 → 0.0.3

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 (165) hide show
  1. package/README.md +19 -0
  2. package/dist/chunk-AEQOEQJ7.mjs +57 -0
  3. package/dist/chunk-AZ52IWB6.mjs +16 -0
  4. package/dist/{chunk-SINEY6ZF.mjs → chunk-B4IR6YP4.mjs} +1 -1
  5. package/dist/chunk-GGEGIQRK.mjs +1 -0
  6. package/dist/chunk-IFT6DUJX.mjs +1 -0
  7. package/dist/chunk-J7LNO6SM.mjs +1 -0
  8. package/dist/{chunk-H3JCIGWK.mjs → chunk-NJHOPXZW.mjs} +1 -1
  9. package/dist/{chunk-KXNZFTTK.mjs → chunk-WBH3SXI6.mjs} +1 -1
  10. package/dist/chunk-WON6K4FY.mjs +1 -0
  11. package/dist/chunk-Y7RUNRU2.mjs +1 -0
  12. package/dist/collaboration/index.d.mts +65 -0
  13. package/dist/collaboration/index.mjs +1 -0
  14. package/dist/{content-sSHuWw49.d.mts → content-MOZ6hKP4.d.mts} +357 -357
  15. package/dist/core.d.mts +148 -341
  16. package/dist/core.mjs +1 -1
  17. package/dist/{displayListQueries-p-ijSzdh.d.mts → displayListQueries-BJlo7Jkz.d.mts} +24 -6
  18. package/dist/docx/index.d.mts +40 -520
  19. package/dist/docx/index.mjs +2 -2
  20. package/dist/editor/index.d.mts +36 -151
  21. package/dist/editor/index.mjs +1 -1
  22. package/dist/{fontLoader-Bx6DK6-2.d.mts → fontLoader-aSewHMKF.d.mts} +65 -63
  23. package/dist/{formatting-DoL7KBSL.d.mts → formatting-D1EPSaJP.d.mts} +1 -1
  24. package/dist/{rustDisplayList-dqunvwxH.d.mts → frameDelta-D965X8yK.d.mts} +3 -274
  25. package/dist/generated/edit/docx_edit_bg.wasm +0 -0
  26. package/dist/generated/layout/docx_layout_bg.wasm +0 -0
  27. package/dist/generated/opc/ooxml_opc_bg.wasm +0 -0
  28. package/dist/generated/parse/docx_parse_bg.wasm +0 -0
  29. package/dist/index-Dx4Z3lkz.d.mts +1010 -0
  30. package/dist/layout/index.d.mts +19 -240
  31. package/dist/layout/index.mjs +1 -1
  32. package/dist/layout/pagination/index.d.mts +10 -58
  33. package/dist/layout/pagination/index.mjs +1 -1
  34. package/dist/layout/render/index.d.mts +11 -11
  35. package/dist/layout/render/index.mjs +1 -1
  36. package/dist/plugin-api/RenderedDomContext.d.mts +9 -9
  37. package/dist/plugin-api/index.d.mts +191 -6
  38. package/dist/plugin-api/resolveItemPositions.d.mts +4 -5
  39. package/dist/rustDisplayList-BRuZBqdL.d.mts +278 -0
  40. package/dist/rustMeasureSource-D1KsQvVC.d.mts +106 -0
  41. package/dist/selectiveSave-CVoajSKE.d.mts +56 -0
  42. package/dist/styles/index.d.mts +4 -39
  43. package/dist/styles/index.mjs +1 -1
  44. package/dist/{styles-VxNcXLdi.d.mts → styles-Dn_o3Vo5.d.mts} +2 -2
  45. package/dist/types/content.d.mts +2 -2
  46. package/dist/types/document.d.mts +40 -14
  47. package/dist/{types-DNrYr6yQ.d.mts → types-BfqUl2h_.d.mts} +3 -71
  48. package/dist/utils/comments.d.mts +2 -2
  49. package/dist/utils/index.d.mts +110 -576
  50. package/dist/utils/index.mjs +1 -84
  51. package/dist/utils/stylePreview.d.mts +2 -2
  52. package/dist/utils/units.d.mts +33 -2
  53. package/dist/wasm-DO3BUV7C.mjs +1 -0
  54. package/dist/wasm-NWXX4H5G.mjs +1 -0
  55. package/dist/wasm-edit.d.mts +14 -5
  56. package/dist/wasm-edit.mjs +1 -1
  57. package/dist/wasm-layout.d.mts +10 -1
  58. package/dist/wasm-layout.mjs +1 -1
  59. package/dist/wasm-opc.mjs +1 -1
  60. package/dist/wasm-parse.mjs +1 -1
  61. package/dist/yrs/index.d.mts +6 -881
  62. package/dist/yrs/index.mjs +1 -1
  63. package/dist/yrs/residentEngineWorker.mjs +1 -1
  64. package/package.json +16 -139
  65. package/dist/Subscribable-DOz6Ohoo.d.mts +0 -33
  66. package/dist/agent/index.d.mts +0 -531
  67. package/dist/agent/index.mjs +0 -1
  68. package/dist/chunk-34K66SY4.mjs +0 -1
  69. package/dist/chunk-4RCISPPE.mjs +0 -1
  70. package/dist/chunk-52GB3Y42.mjs +0 -1
  71. package/dist/chunk-6NEKRDXF.mjs +0 -1
  72. package/dist/chunk-6PW4CWUG.mjs +0 -1
  73. package/dist/chunk-7DEIW7FL.mjs +0 -1
  74. package/dist/chunk-7PCO5I2O.mjs +0 -1
  75. package/dist/chunk-BI3B33LI.mjs +0 -1
  76. package/dist/chunk-BIQWVK5P.mjs +0 -2
  77. package/dist/chunk-CIRN3LZA.mjs +0 -1
  78. package/dist/chunk-DXKG3HQ5.mjs +0 -16
  79. package/dist/chunk-FPZBTOD6.mjs +0 -1
  80. package/dist/chunk-FZIA7OFY.mjs +0 -1
  81. package/dist/chunk-GWKJ2Y4Y.mjs +0 -1
  82. package/dist/chunk-HJGAQIU7.mjs +0 -2
  83. package/dist/chunk-I6KKMUUC.mjs +0 -1
  84. package/dist/chunk-IL5JZJT7.mjs +0 -1
  85. package/dist/chunk-JY6ILTNS.mjs +0 -1
  86. package/dist/chunk-KEE52TT5.mjs +0 -1
  87. package/dist/chunk-KVKLLTDP.mjs +0 -58
  88. package/dist/chunk-L5ISVQ3W.mjs +0 -1
  89. package/dist/chunk-LDUWIM7M.mjs +0 -1
  90. package/dist/chunk-N5Q3YN64.mjs +0 -1
  91. package/dist/chunk-NEWOMDTX.mjs +0 -1
  92. package/dist/chunk-O2QSE2I7.mjs +0 -1
  93. package/dist/chunk-OJOHXQNQ.mjs +0 -1
  94. package/dist/chunk-OMR3TWCD.mjs +0 -2
  95. package/dist/chunk-P3KDV4M2.mjs +0 -1
  96. package/dist/chunk-Q7PO7V73.mjs +0 -1
  97. package/dist/chunk-QOUFE3VX.mjs +0 -1
  98. package/dist/chunk-TYHI7RAD.mjs +0 -1
  99. package/dist/chunk-UIEJWORW.mjs +0 -1
  100. package/dist/chunk-VAOUFAUH.mjs +0 -1
  101. package/dist/chunk-VBOTMRXV.mjs +0 -1
  102. package/dist/chunk-VCER63GQ.mjs +0 -1
  103. package/dist/chunk-WAUF2UC7.mjs +0 -2
  104. package/dist/chunk-X4XDO3LZ.mjs +0 -1
  105. package/dist/chunk-XQBCCJBO.mjs +0 -9
  106. package/dist/chunk-XWUOLYRQ.mjs +0 -2
  107. package/dist/chunk-XYH6XWP3.mjs +0 -10
  108. package/dist/chunk-YBIM6UJV.mjs +0 -8
  109. package/dist/chunk-YCIH2Q3E.mjs +0 -1
  110. package/dist/chunk-ZOV5KL7C.mjs +0 -1
  111. package/dist/colorResolver-n0o7H7ep.d.mts +0 -290
  112. package/dist/core-plugins.d.mts +0 -37
  113. package/dist/core-plugins.mjs +0 -1
  114. package/dist/docx/parser.d.mts +0 -41
  115. package/dist/docx/parser.mjs +0 -1
  116. package/dist/docx/rezip.d.mts +0 -148
  117. package/dist/docx/rezip.mjs +0 -1
  118. package/dist/docx/serializer/index.d.mts +0 -42
  119. package/dist/docx/serializer/index.mjs +0 -1
  120. package/dist/editorTree-DO5PyDK8.d.mts +0 -37
  121. package/dist/executor-7O2RBJ2B.mjs +0 -1
  122. package/dist/headerFooterLayout-0zPT64Qc.d.mts +0 -316
  123. package/dist/headless.d.mts +0 -69
  124. package/dist/headless.mjs +0 -1
  125. package/dist/layout/flow/index.d.mts +0 -149
  126. package/dist/layout/flow/index.mjs +0 -1
  127. package/dist/layout/measure/index.d.mts +0 -324
  128. package/dist/layout/measure/index.mjs +0 -1
  129. package/dist/layout/pagination/types.d.mts +0 -4
  130. package/dist/layout/pagination/types.mjs +0 -1
  131. package/dist/managers/AutoSaveManager.d.mts +0 -81
  132. package/dist/managers/AutoSaveManager.mjs +0 -1
  133. package/dist/managers/TableSelectionManager.d.mts +0 -74
  134. package/dist/managers/TableSelectionManager.mjs +0 -1
  135. package/dist/managers/types.d.mts +0 -113
  136. package/dist/managers/types.mjs +0 -0
  137. package/dist/mcp-cli.mjs +0 -142
  138. package/dist/mcp.d.mts +0 -162
  139. package/dist/mcp.mjs +0 -16
  140. package/dist/measureBlocksPipeline-Df0Bbrwy.d.mts +0 -109
  141. package/dist/measuredBlock-DZwz8zhD.d.mts +0 -26
  142. package/dist/plugin-api/types.d.mts +0 -193
  143. package/dist/plugin-api/types.mjs +0 -0
  144. package/dist/processTemplate-HDUIZFJ5.mjs +0 -1
  145. package/dist/registry-DMM5VTdT.d.mts +0 -165
  146. package/dist/rustPagination-Bj2hq013.d.mts +0 -106
  147. package/dist/sectionConfigs-DW3J8q0X.d.mts +0 -55
  148. package/dist/selectionContext-Buc9BCU1.d.mts +0 -570
  149. package/dist/selectiveSave-oFBJ1n71.d.mts +0 -16
  150. package/dist/selectiveXmlPatch-ypkxlTD_.d.mts +0 -23
  151. package/dist/settingsParser-CcGvtmCK.d.mts +0 -33
  152. package/dist/types/agentApi.d.mts +0 -456
  153. package/dist/types/agentApi.mjs +0 -1
  154. package/dist/types-dYdjUZMo.d.mts +0 -311
  155. package/dist/units-O5Y02RKQ.d.mts +0 -34
  156. package/dist/utils/headingCollector.d.mts +0 -28
  157. package/dist/utils/headingCollector.mjs +0 -1
  158. package/dist/utils/highlightColors.d.mts +0 -14
  159. package/dist/utils/highlightColors.mjs +0 -1
  160. package/dist/utils/textSelection.d.mts +0 -92
  161. package/dist/utils/textSelection.mjs +0 -1
  162. package/dist/variableDetector-Borj29SF.d.mts +0 -115
  163. package/dist/wasm-FZQ5XB2Y.mjs +0 -1
  164. package/dist/wasm-SA237OSP.mjs +0 -1
  165. package/dist/watermarkApi-DCxjutkg.d.mts +0 -38
@@ -1,456 +0,0 @@
1
- import { T as TextFormatting, P as ParagraphFormatting } from '../formatting-DoL7KBSL.mjs';
2
-
3
- /**
4
- * Agent API Types
5
- *
6
- * TypeScript interfaces for the agent API:
7
- * - Position and Range types
8
- * - Command types for document manipulation
9
- * - Context types for AI agents
10
- * @packageDocumentation
11
- * @public
12
- */
13
-
14
- /**
15
- * Position within a document
16
- */
17
- interface Position {
18
- /** Index of the paragraph (0-indexed) */
19
- paragraphIndex: number;
20
- /** Offset within the paragraph in characters */
21
- offset: number;
22
- /** Optional: Content index within paragraph (run, hyperlink, etc.) */
23
- contentIndex?: number;
24
- /** Optional: Section index */
25
- sectionIndex?: number;
26
- }
27
- /**
28
- * Range within a document
29
- */
30
- interface Range {
31
- /** Start position */
32
- start: Position;
33
- /** End position */
34
- end: Position;
35
- /** Whether the range is collapsed (cursor position) */
36
- collapsed?: boolean;
37
- }
38
- /**
39
- * Create a collapsed range (cursor) at a position
40
- */
41
- declare function createCollapsedRange(position: Position): Range;
42
- /**
43
- * Create a range from two positions
44
- */
45
- declare function createRange(start: Position, end: Position): Range;
46
- /**
47
- * Check if a position is within a range
48
- */
49
- declare function isPositionInRange(position: Position, range: Range): boolean;
50
- /**
51
- * Compare two positions
52
- * Returns: -1 if a < b, 0 if equal, 1 if a > b
53
- */
54
- declare function comparePositions(a: Position, b: Position): -1 | 0 | 1;
55
- /**
56
- * Base command interface
57
- */
58
- interface BaseCommand {
59
- /** Command type */
60
- type: string;
61
- /** Unique command ID (for undo tracking) */
62
- id?: string;
63
- }
64
- /**
65
- * Insert text at a position
66
- */
67
- interface InsertTextCommand extends BaseCommand {
68
- type: 'insertText';
69
- /** Position to insert at */
70
- position: Position;
71
- /** Text to insert */
72
- text: string;
73
- /** Optional formatting for the inserted text */
74
- formatting?: TextFormatting;
75
- }
76
- /**
77
- * Replace text in a range
78
- */
79
- interface ReplaceTextCommand extends BaseCommand {
80
- type: 'replaceText';
81
- /** Range to replace */
82
- range: Range;
83
- /** Replacement text */
84
- text: string;
85
- /** Optional formatting for the new text */
86
- formatting?: TextFormatting;
87
- }
88
- /**
89
- * Delete text in a range
90
- */
91
- interface DeleteTextCommand extends BaseCommand {
92
- type: 'deleteText';
93
- /** Range to delete */
94
- range: Range;
95
- }
96
- /**
97
- * Apply formatting to a range
98
- */
99
- interface FormatTextCommand extends BaseCommand {
100
- type: 'formatText';
101
- /** Range to format */
102
- range: Range;
103
- /** Formatting to apply */
104
- formatting: Partial<TextFormatting>;
105
- }
106
- /**
107
- * Apply paragraph formatting
108
- */
109
- interface FormatParagraphCommand extends BaseCommand {
110
- type: 'formatParagraph';
111
- /** Paragraph index */
112
- paragraphIndex: number;
113
- /** Formatting to apply */
114
- formatting: Partial<ParagraphFormatting>;
115
- }
116
- /**
117
- * Apply a named style to a paragraph
118
- */
119
- interface ApplyStyleCommand extends BaseCommand {
120
- type: 'applyStyle';
121
- /** Paragraph index */
122
- paragraphIndex: number;
123
- /** Style ID to apply */
124
- styleId: string;
125
- }
126
- /**
127
- * Insert a table at a position
128
- */
129
- interface InsertTableCommand extends BaseCommand {
130
- type: 'insertTable';
131
- /** Position to insert at */
132
- position: Position;
133
- /** Number of rows */
134
- rows: number;
135
- /** Number of columns */
136
- columns: number;
137
- /** Optional table data */
138
- data?: string[][];
139
- /** Optional header row */
140
- hasHeader?: boolean;
141
- }
142
- /**
143
- * Insert an image at a position
144
- */
145
- interface InsertImageCommand extends BaseCommand {
146
- type: 'insertImage';
147
- /** Position to insert at */
148
- position: Position;
149
- /** Image source (base64 or URL) */
150
- src: string;
151
- /** Image width in pixels */
152
- width?: number;
153
- /** Image height in pixels */
154
- height?: number;
155
- /** Alt text */
156
- alt?: string;
157
- }
158
- /**
159
- * Insert a hyperlink at a range
160
- */
161
- interface InsertHyperlinkCommand extends BaseCommand {
162
- type: 'insertHyperlink';
163
- /** Range to make into a hyperlink */
164
- range: Range;
165
- /** URL of the hyperlink */
166
- url: string;
167
- /** Display text (replaces range text if provided) */
168
- displayText?: string;
169
- /** Tooltip */
170
- tooltip?: string;
171
- }
172
- /**
173
- * Remove a hyperlink but keep the text
174
- */
175
- interface RemoveHyperlinkCommand extends BaseCommand {
176
- type: 'removeHyperlink';
177
- /** Range containing the hyperlink */
178
- range: Range;
179
- }
180
- /**
181
- * Insert a paragraph break
182
- */
183
- interface InsertParagraphBreakCommand extends BaseCommand {
184
- type: 'insertParagraphBreak';
185
- /** Position to break at */
186
- position: Position;
187
- }
188
- /**
189
- * Merge paragraphs
190
- */
191
- interface MergeParagraphsCommand extends BaseCommand {
192
- type: 'mergeParagraphs';
193
- /** First paragraph index */
194
- paragraphIndex: number;
195
- /** Number of paragraphs to merge with */
196
- count: number;
197
- }
198
- /**
199
- * Split a paragraph
200
- */
201
- interface SplitParagraphCommand extends BaseCommand {
202
- type: 'splitParagraph';
203
- /** Position to split at */
204
- position: Position;
205
- }
206
- /**
207
- * Set template variable value
208
- */
209
- interface SetVariableCommand extends BaseCommand {
210
- type: 'setVariable';
211
- /** Variable name */
212
- name: string;
213
- /** Variable value */
214
- value: string;
215
- }
216
- /**
217
- * Apply all template variables
218
- */
219
- interface ApplyVariablesCommand extends BaseCommand {
220
- type: 'applyVariables';
221
- /** Variable values */
222
- values: Record<string, string>;
223
- }
224
- /**
225
- * Union of all command types
226
- */
227
- type AgentCommand = InsertTextCommand | ReplaceTextCommand | DeleteTextCommand | FormatTextCommand | FormatParagraphCommand | ApplyStyleCommand | InsertTableCommand | InsertImageCommand | InsertHyperlinkCommand | RemoveHyperlinkCommand | InsertParagraphBreakCommand | MergeParagraphsCommand | SplitParagraphCommand | SetVariableCommand | ApplyVariablesCommand;
228
- /**
229
- * Get command type
230
- */
231
- type CommandType = AgentCommand['type'];
232
- /**
233
- * Document context for AI agents
234
- */
235
- interface AgentContext {
236
- /** Total paragraph count */
237
- paragraphCount: number;
238
- /** Total word count (approximate) */
239
- wordCount: number;
240
- /** Total character count */
241
- characterCount: number;
242
- /** Detected template variables */
243
- variables: string[];
244
- /** Variable count */
245
- variableCount: number;
246
- /** Available styles */
247
- availableStyles: StyleInfo[];
248
- /** Content outline (first N chars per paragraph) */
249
- outline: ParagraphOutline[];
250
- /** Document sections info */
251
- sections: SectionInfo[];
252
- /** Has tables */
253
- hasTables: boolean;
254
- /** Has images */
255
- hasImages: boolean;
256
- /** Has hyperlinks */
257
- hasHyperlinks: boolean;
258
- /** Document language */
259
- language?: string;
260
- }
261
- /**
262
- * Style information for context
263
- */
264
- interface StyleInfo {
265
- /** Style ID */
266
- id: string;
267
- /** Display name */
268
- name: string;
269
- /** Style type */
270
- type: 'paragraph' | 'character' | 'table';
271
- /** Is built-in style */
272
- builtIn?: boolean;
273
- }
274
- /**
275
- * Paragraph outline for context
276
- */
277
- interface ParagraphOutline {
278
- /** Paragraph index */
279
- index: number;
280
- /** First N characters */
281
- preview: string;
282
- /** Paragraph style */
283
- style?: string;
284
- /** Is heading */
285
- isHeading?: boolean;
286
- /** Heading level (1-9) */
287
- headingLevel?: number;
288
- /** Is list item */
289
- isListItem?: boolean;
290
- /** Is empty paragraph */
291
- isEmpty?: boolean;
292
- }
293
- /**
294
- * Section information
295
- */
296
- interface SectionInfo {
297
- /** Section index */
298
- index: number;
299
- /** Number of paragraphs */
300
- paragraphCount: number;
301
- /** Page size */
302
- pageSize?: {
303
- width: number;
304
- height: number;
305
- };
306
- /** Is landscape */
307
- isLandscape?: boolean;
308
- /** Has header */
309
- hasHeader?: boolean;
310
- /** Has footer */
311
- hasFooter?: boolean;
312
- }
313
- /**
314
- * Context about the current selection
315
- */
316
- interface SelectionContext {
317
- /** Selected text */
318
- selectedText: string;
319
- /** Selection range */
320
- range: Range;
321
- /** Current formatting of selection */
322
- formatting: Partial<TextFormatting>;
323
- /** Current paragraph formatting */
324
- paragraphFormatting: Partial<ParagraphFormatting>;
325
- /** Text before selection (context) */
326
- textBefore: string;
327
- /** Text after selection (context) */
328
- textAfter: string;
329
- /** Paragraph containing selection */
330
- paragraph: ParagraphContext;
331
- /** Is selection within a table */
332
- inTable?: boolean;
333
- /** Is selection within a hyperlink */
334
- inHyperlink?: boolean;
335
- /** Suggested actions based on selection */
336
- suggestedActions?: SuggestedAction[];
337
- }
338
- /**
339
- * Paragraph context for selection
340
- */
341
- interface ParagraphContext {
342
- /** Paragraph index */
343
- index: number;
344
- /** Full paragraph text */
345
- fullText: string;
346
- /** Paragraph style */
347
- style?: string;
348
- /** Word count */
349
- wordCount: number;
350
- }
351
- /**
352
- * Suggested action for context menu
353
- */
354
- interface SuggestedAction {
355
- /** Action ID */
356
- id: string;
357
- /** Display label */
358
- label: string;
359
- /** Description */
360
- description?: string;
361
- /** Icon name */
362
- icon?: string;
363
- /** Priority (higher = more prominent) */
364
- priority?: number;
365
- }
366
- /**
367
- * Response from an agent action
368
- */
369
- interface AgentResponse {
370
- /** Success status */
371
- success: boolean;
372
- /** New text to insert (for rewrite/expand/etc.) */
373
- newText?: string;
374
- /** New formatted content */
375
- newContent?: AgentContent[];
376
- /** Commands to execute */
377
- commands?: AgentCommand[];
378
- /** Error message if failed */
379
- error?: string;
380
- /** Warning messages */
381
- warnings?: string[];
382
- /** Metadata about the response */
383
- metadata?: Record<string, unknown>;
384
- }
385
- /**
386
- * Content block in agent response
387
- */
388
- interface AgentContent {
389
- /** Content type */
390
- type: 'text' | 'paragraph' | 'table' | 'image';
391
- /** Text content */
392
- text?: string;
393
- /** Formatting */
394
- formatting?: Partial<TextFormatting>;
395
- /** Paragraph formatting */
396
- paragraphFormatting?: Partial<ParagraphFormatting>;
397
- /** Table data (for table type) */
398
- tableData?: string[][];
399
- /** Image src (for image type) */
400
- imageSrc?: string;
401
- }
402
- /**
403
- * AI action types for context menu
404
- */
405
- type AIAction = 'askAI' | 'rewrite' | 'expand' | 'summarize' | 'translate' | 'explain' | 'fixGrammar' | 'makeFormal' | 'makeCasual' | 'custom';
406
- /**
407
- * AI action request
408
- */
409
- interface AIActionRequest {
410
- /** Action type */
411
- action: AIAction;
412
- /** Selection context */
413
- context: SelectionContext;
414
- /** Custom prompt (for 'custom' action) */
415
- customPrompt?: string;
416
- /** Target language (for 'translate' action) */
417
- targetLanguage?: string;
418
- /** Additional options */
419
- options?: Record<string, unknown>;
420
- }
421
- /**
422
- * Get action label
423
- */
424
- declare function getActionLabel(action: AIAction): string;
425
- /**
426
- * Get action description
427
- */
428
- declare function getActionDescription(action: AIAction): string;
429
- /**
430
- * Default AI actions for context menu
431
- */
432
- declare const DEFAULT_AI_ACTIONS: AIAction[];
433
- /**
434
- * Command handler function type
435
- */
436
- type CommandHandler<T extends AgentCommand = AgentCommand> = (command: T) => Promise<boolean>;
437
- /**
438
- * AI request handler function type
439
- */
440
- type AIRequestHandler = (request: AIActionRequest) => Promise<AgentResponse>;
441
- /**
442
- * Create a command with generated ID
443
- */
444
- declare function createCommand<T extends AgentCommand>(command: Omit<T, 'id'>): T;
445
- declare const _default: {
446
- createCollapsedRange: typeof createCollapsedRange;
447
- createRange: typeof createRange;
448
- isPositionInRange: typeof isPositionInRange;
449
- comparePositions: typeof comparePositions;
450
- getActionLabel: typeof getActionLabel;
451
- getActionDescription: typeof getActionDescription;
452
- createCommand: typeof createCommand;
453
- DEFAULT_AI_ACTIONS: AIAction[];
454
- };
455
-
456
- export { type AIAction, type AIActionRequest, type AIRequestHandler, type AgentCommand, type AgentContent, type AgentContext, type AgentResponse, type ApplyStyleCommand, type ApplyVariablesCommand, type BaseCommand, type CommandHandler, type CommandType, DEFAULT_AI_ACTIONS, type DeleteTextCommand, type FormatParagraphCommand, type FormatTextCommand, type InsertHyperlinkCommand, type InsertImageCommand, type InsertParagraphBreakCommand, type InsertTableCommand, type InsertTextCommand, type MergeParagraphsCommand, type ParagraphContext, type ParagraphOutline, type Position, type Range, type RemoveHyperlinkCommand, type ReplaceTextCommand, type SectionInfo, type SelectionContext, type SetVariableCommand, type SplitParagraphCommand, type StyleInfo, type SuggestedAction, comparePositions, createCollapsedRange, createCommand, createRange, _default as default, getActionDescription, getActionLabel, isPositionInRange };
@@ -1 +0,0 @@
1
- export{g as DEFAULT_AI_ACTIONS,d as comparePositions,a as createCollapsedRange,h as createCommand,b as createRange,i as default,f as getActionDescription,e as getActionLabel,c as isPositionInRange}from'../chunk-Q7PO7V73.mjs';import'../chunk-TTRUPDAB.mjs';