@eigenpal/docx-js-editor 0.0.26 → 0.0.27
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/README.md +6 -5
- package/dist/{ClipboardManager-Bbo5MM_U.d.cts → ClipboardManager-BYO62Qs5.d.cts} +1 -1
- package/dist/{ClipboardManager-CR843H7H.d.ts → ClipboardManager-YQYq5X_Z.d.ts} +1 -1
- package/dist/{DocumentAgent-lHtXgMFN.d.ts → DocumentAgent-BW1-gnqM.d.ts} +1 -1
- package/dist/{DocumentAgent-cHf96hwL.d.cts → DocumentAgent-ZcA8CUmC.d.cts} +1 -1
- package/dist/{agentApi-DmDuQm0e.d.cts → agentApi-B0688ssC.d.cts} +6 -0
- package/dist/{agentApi-DmDuQm0e.d.ts → agentApi-B0688ssC.d.ts} +6 -0
- package/dist/{chunk-FUK46DWH.js → chunk-4XF5YD4I.js} +2 -2
- package/dist/chunk-76GITSCY.cjs +258 -0
- package/dist/{chunk-OWMG5MW5.cjs → chunk-7YCCCWUZ.cjs} +3 -3
- package/dist/{chunk-6TUCNECX.js → chunk-ABNIHWGF.js} +1 -1
- package/dist/{chunk-PIVLDW7B.cjs → chunk-CL62W2HQ.cjs} +7 -7
- package/dist/chunk-E7U5ZBOK.js +3 -0
- package/dist/{chunk-Y62HOQL2.cjs → chunk-EUH3GF72.cjs} +4 -4
- package/dist/chunk-H7AKDCWH.js +258 -0
- package/dist/{chunk-5ILXHRJS.cjs → chunk-J5YOIHCW.cjs} +2 -2
- package/dist/chunk-JO2CKU4O.js +1 -0
- package/dist/chunk-MHUCHYNM.cjs +59 -0
- package/dist/{chunk-KL2RYY6G.cjs → chunk-NKW2UER2.cjs} +2 -2
- package/dist/chunk-OJ7NJK46.cjs +1 -0
- package/dist/chunk-PP54GVGD.js +59 -0
- package/dist/{chunk-JIKVCUR6.js → chunk-T2SRPPZY.js} +1 -1
- package/dist/{chunk-3X3LTNK4.js → chunk-YP3CXYSU.js} +7 -7
- package/dist/{clipboard-CU-zASXS.d.ts → clipboard-D0EG6AxE.d.ts} +1 -1
- package/dist/{clipboard-DBabJ6mU.d.cts → clipboard-Da1iPK0O.d.cts} +1 -1
- package/dist/{colorResolver-yl7Xh_Qg.d.cts → colorResolver-DR1p8Eg-.d.cts} +2 -2
- package/dist/{colorResolver-BTTqW66Q.d.ts → colorResolver-Dk7bMHIa.d.ts} +2 -2
- package/dist/core-plugins-reexport.cjs +1 -1
- package/dist/core-plugins-reexport.d.cts +4 -4
- package/dist/core-plugins-reexport.d.ts +4 -4
- package/dist/core-plugins-reexport.js +1 -1
- package/dist/core-reexport.cjs +1 -1
- package/dist/core-reexport.d.cts +10 -10
- package/dist/core-reexport.d.ts +10 -10
- package/dist/core-reexport.js +1 -1
- package/dist/{fontLoader-Daq8y8C2.d.cts → fontLoader-54sS8rtN.d.cts} +1 -1
- package/dist/{fontLoader-DQJOS1sb.d.ts → fontLoader-C7RvUiHx.d.ts} +1 -1
- package/dist/headless-reexport.cjs +2 -2
- package/dist/headless-reexport.d.cts +7 -7
- package/dist/headless-reexport.d.ts +7 -7
- package/dist/headless-reexport.js +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +11 -11
- package/dist/index.d.ts +11 -11
- package/dist/index.js +1 -1
- package/dist/mcp-reexport.cjs +3 -3
- package/dist/mcp-reexport.d.cts +2 -2
- package/dist/mcp-reexport.d.ts +2 -2
- package/dist/mcp-reexport.js +1 -1
- package/dist/{react-CFPWe7nV.d.ts → react-C_O0Z9ci.d.ts} +10 -4
- package/dist/{react-CKqhN17E.d.cts → react-XjilVrXZ.d.cts} +10 -4
- package/dist/react.cjs +1 -1
- package/dist/react.d.cts +5 -5
- package/dist/react.d.ts +5 -5
- package/dist/react.js +1 -1
- package/dist/{registry-C2DPl-QW.d.ts → registry-BHOeZbR9.d.ts} +1 -1
- package/dist/{registry-CXGC344v.d.cts → registry-CqFFeBgF.d.cts} +1 -1
- package/dist/selectionRects-BMXJJCPJ.cjs +1 -0
- package/dist/selectionRects-TWK7CAC3.js +1 -0
- package/dist/styles.css +1 -1
- package/dist/{types-BpokDLqL.d.ts → types-BwCYaZKB.d.ts} +1 -1
- package/dist/{types-COQvtZji.d.cts → types-DAxXgYu5.d.cts} +1 -1
- package/dist/ui.cjs +1 -1
- package/dist/ui.d.cts +3 -3
- package/dist/ui.d.ts +3 -3
- package/dist/ui.js +1 -1
- package/dist/{variableDetector-BYzE_RXw.d.ts → variableDetector-B2FHghLx.d.ts} +1 -1
- package/dist/{variableDetector-C8ST_dnq.d.cts → variableDetector-DIeB1Nxd.d.cts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-4CUGBNL2.cjs +0 -1
- package/dist/chunk-5GFXHUMP.js +0 -1
- package/dist/chunk-MUIREXKH.js +0 -3
- package/dist/chunk-PGEORVCG.js +0 -59
- package/dist/chunk-PUVSVHHB.cjs +0 -59
- package/dist/chunk-S36T7OK5.cjs +0 -258
- package/dist/chunk-YYBSUBRG.js +0 -258
- package/dist/selectionRects-7QU337P5.cjs +0 -1
- package/dist/selectionRects-V5RC2BYX.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React__default, { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import { e as Table, U as TableCell, b as Run, a as Paragraph } from './agentApi-
|
|
2
|
+
import { e as Table, U as TableCell, b as Run, a as Paragraph } from './agentApi-B0688ssC.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Print Utilities
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React__default, { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import { e as Table, U as TableCell, b as Run, a as Paragraph } from './agentApi-
|
|
2
|
+
import { e as Table, U as TableCell, b as Run, a as Paragraph } from './agentApi-B0688ssC.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Print Utilities
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as Document, d as DocumentBody, C as SectionProperties, A as AgentCommand, h as AgentContext, R as Range, G as SelectionContext, T as TextFormatting, ae as ColorValue, X as Theme, af as ThemeColorSlot, ab as ThemeColorScheme } from './agentApi-
|
|
2
|
-
import { g as DocxInput } from './DocumentAgent-
|
|
1
|
+
import { D as Document, d as DocumentBody, C as SectionProperties, A as AgentCommand, h as AgentContext, R as Range, G as SelectionContext, T as TextFormatting, ae as ColorValue, X as Theme, af as ThemeColorSlot, ab as ThemeColorScheme } from './agentApi-B0688ssC.cjs';
|
|
2
|
+
import { g as DocxInput } from './DocumentAgent-ZcA8CUmC.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Main Parser Orchestrator - Unified parseDocx function
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as Document, d as DocumentBody, C as SectionProperties, A as AgentCommand, h as AgentContext, R as Range, G as SelectionContext, T as TextFormatting, ae as ColorValue, X as Theme, af as ThemeColorSlot, ab as ThemeColorScheme } from './agentApi-
|
|
2
|
-
import { g as DocxInput } from './DocumentAgent-
|
|
1
|
+
import { D as Document, d as DocumentBody, C as SectionProperties, A as AgentCommand, h as AgentContext, R as Range, G as SelectionContext, T as TextFormatting, ae as ColorValue, X as Theme, af as ThemeColorSlot, ab as ThemeColorScheme } from './agentApi-B0688ssC.js';
|
|
2
|
+
import { g as DocxInput } from './DocumentAgent-BW1-gnqM.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Main Parser Orchestrator - Unified parseDocx function
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkJ5YOIHCW_cjs=require('./chunk-J5YOIHCW.cjs');require('./chunk-B7TICMXD.cjs'),require('./chunk-CL62W2HQ.cjs');var chunkYS7FDEZ4_cjs=require('./chunk-YS7FDEZ4.cjs');require('./chunk-KR32M3S4.cjs'),require('./chunk-XQNCLN4T.cjs'),require('./chunk-PCJ5ACUV.cjs');Object.defineProperty(exports,"docxtemplaterPlugin",{enumerable:true,get:function(){return chunkJ5YOIHCW_cjs.o}});Object.defineProperty(exports,"isZodSchema",{enumerable:true,get:function(){return chunkJ5YOIHCW_cjs.n}});Object.defineProperty(exports,"PluginRegistry",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.a}});Object.defineProperty(exports,"createPluginRegistrar",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.d}});Object.defineProperty(exports,"pluginRegistry",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.b}});Object.defineProperty(exports,"registerPlugins",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.c}});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as CorePlugin } from './types-
|
|
2
|
-
export { b as CommandHandler, d as CommandResult, E as ExtractCommand, J as JsonSchema, L as LoadedDocument, e as McpSession, f as McpToolAnnotations, g as McpToolContent, h as McpToolContext, M as McpToolDefinition, n as McpToolExample, i as McpToolHandler, j as McpToolResult, k as PluginCommand, b as PluginCommandHandler, l as PluginEvent, c as PluginEventListener, P as PluginOptions, a as PluginRegistrationResult, M as ToolDefinition, i as ToolHandler, j as ToolResult, T as TypedCommandHandler, Z as ZodSchemaLike, m as isZodSchema } from './types-
|
|
3
|
-
export { P as PluginRegistry, c as createPluginRegistrar, p as pluginRegistry, r as registerPlugins } from './registry-
|
|
4
|
-
import './agentApi-
|
|
1
|
+
import { C as CorePlugin } from './types-DAxXgYu5.cjs';
|
|
2
|
+
export { b as CommandHandler, d as CommandResult, E as ExtractCommand, J as JsonSchema, L as LoadedDocument, e as McpSession, f as McpToolAnnotations, g as McpToolContent, h as McpToolContext, M as McpToolDefinition, n as McpToolExample, i as McpToolHandler, j as McpToolResult, k as PluginCommand, b as PluginCommandHandler, l as PluginEvent, c as PluginEventListener, P as PluginOptions, a as PluginRegistrationResult, M as ToolDefinition, i as ToolHandler, j as ToolResult, T as TypedCommandHandler, Z as ZodSchemaLike, m as isZodSchema } from './types-DAxXgYu5.cjs';
|
|
3
|
+
export { P as PluginRegistry, c as createPluginRegistrar, p as pluginRegistry, r as registerPlugins } from './registry-CqFFeBgF.cjs';
|
|
4
|
+
import './agentApi-B0688ssC.cjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Docxtemplater Plugin
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as CorePlugin } from './types-
|
|
2
|
-
export { b as CommandHandler, d as CommandResult, E as ExtractCommand, J as JsonSchema, L as LoadedDocument, e as McpSession, f as McpToolAnnotations, g as McpToolContent, h as McpToolContext, M as McpToolDefinition, n as McpToolExample, i as McpToolHandler, j as McpToolResult, k as PluginCommand, b as PluginCommandHandler, l as PluginEvent, c as PluginEventListener, P as PluginOptions, a as PluginRegistrationResult, M as ToolDefinition, i as ToolHandler, j as ToolResult, T as TypedCommandHandler, Z as ZodSchemaLike, m as isZodSchema } from './types-
|
|
3
|
-
export { P as PluginRegistry, c as createPluginRegistrar, p as pluginRegistry, r as registerPlugins } from './registry-
|
|
4
|
-
import './agentApi-
|
|
1
|
+
import { C as CorePlugin } from './types-BwCYaZKB.js';
|
|
2
|
+
export { b as CommandHandler, d as CommandResult, E as ExtractCommand, J as JsonSchema, L as LoadedDocument, e as McpSession, f as McpToolAnnotations, g as McpToolContent, h as McpToolContext, M as McpToolDefinition, n as McpToolExample, i as McpToolHandler, j as McpToolResult, k as PluginCommand, b as PluginCommandHandler, l as PluginEvent, c as PluginEventListener, P as PluginOptions, a as PluginRegistrationResult, M as ToolDefinition, i as ToolHandler, j as ToolResult, T as TypedCommandHandler, Z as ZodSchemaLike, m as isZodSchema } from './types-BwCYaZKB.js';
|
|
3
|
+
export { P as PluginRegistry, c as createPluginRegistrar, p as pluginRegistry, r as registerPlugins } from './registry-BHOeZbR9.js';
|
|
4
|
+
import './agentApi-B0688ssC.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Docxtemplater Plugin
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{o as docxtemplaterPlugin,n as isZodSchema}from'./chunk-
|
|
1
|
+
export{o as docxtemplaterPlugin,n as isZodSchema}from'./chunk-ABNIHWGF.js';import'./chunk-CLDB6TL7.js';import'./chunk-YP3CXYSU.js';export{a as PluginRegistry,d as createPluginRegistrar,b as pluginRegistry,c as registerPlugins}from'./chunk-BUEMG4NW.js';import'./chunk-SE5EN2QL.js';import'./chunk-USRMBYI6.js';import'./chunk-H5NTJZO4.js';
|
package/dist/core-reexport.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var chunk2VHQ7YOQ_cjs=require('./chunk-2VHQ7YOQ.cjs'),chunkKL2RYY6G_cjs=require('./chunk-KL2RYY6G.cjs'),chunkIA4LPH2A_cjs=require('./chunk-IA4LPH2A.cjs'),chunk5ILXHRJS_cjs=require('./chunk-5ILXHRJS.cjs'),chunkB7TICMXD_cjs=require('./chunk-B7TICMXD.cjs'),chunkPUVSVHHB_cjs=require('./chunk-PUVSVHHB.cjs'),chunkP7ZF45KZ_cjs=require('./chunk-P7ZF45KZ.cjs'),chunkPIVLDW7B_cjs=require('./chunk-PIVLDW7B.cjs'),chunkYS7FDEZ4_cjs=require('./chunk-YS7FDEZ4.cjs'),chunkKR32M3S4_cjs=require('./chunk-KR32M3S4.cjs');require('./chunk-XQNCLN4T.cjs'),require('./chunk-PCJ5ACUV.cjs');Object.defineProperty(exports,"AutoSaveManager",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.r}});Object.defineProperty(exports,"EditorCoordinator",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.L}});Object.defineProperty(exports,"ErrorManager",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.H}});Object.defineProperty(exports,"LayoutCoordinator",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.K}});Object.defineProperty(exports,"PluginLifecycleManager",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.J}});Object.defineProperty(exports,"Subscribable",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.q}});Object.defineProperty(exports,"TABLE_DATA_ATTRIBUTES",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.x}});Object.defineProperty(exports,"TableSelectionManager",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.C}});Object.defineProperty(exports,"VERSION",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.M}});Object.defineProperty(exports,"countPageBreaks",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.n}});Object.defineProperty(exports,"createColumnBreak",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.b}});Object.defineProperty(exports,"createHorizontalRule",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.g}});Object.defineProperty(exports,"createLineBreak",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.c}});Object.defineProperty(exports,"createPageBreak",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.a}});Object.defineProperty(exports,"createPageBreakParagraph",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.e}});Object.defineProperty(exports,"createPageBreakRun",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.d}});Object.defineProperty(exports,"createSelectionFromDOM",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.F}});Object.defineProperty(exports,"deleteTableFromDocument",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.B}});Object.defineProperty(exports,"extractFormattingFromElement",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.D}});Object.defineProperty(exports,"findPageBreaks",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.o}});Object.defineProperty(exports,"findTableFromClick",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.y}});Object.defineProperty(exports,"formatLastSaveTime",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.s}});Object.defineProperty(exports,"formatStorageSize",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.v}});Object.defineProperty(exports,"getAutoSaveStatusLabel",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.t}});Object.defineProperty(exports,"getAutoSaveStorageSize",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.u}});Object.defineProperty(exports,"getSelectionRuns",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.E}});Object.defineProperty(exports,"getTableFromDocument",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.z}});Object.defineProperty(exports,"hasPageBreakBefore",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.m}});Object.defineProperty(exports,"injectStyles",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.I}});Object.defineProperty(exports,"insertHorizontalRule",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.h}});Object.defineProperty(exports,"insertPageBreak",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.f}});Object.defineProperty(exports,"isAutoSaveSupported",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.w}});Object.defineProperty(exports,"isBreakContent",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.l}});Object.defineProperty(exports,"isColumnBreak",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.j}});Object.defineProperty(exports,"isLineBreak",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.k}});Object.defineProperty(exports,"isPageBreak",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.i}});Object.defineProperty(exports,"removePageBreak",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.p}});Object.defineProperty(exports,"rgbToHex",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.G}});Object.defineProperty(exports,"updateTableInDocument",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.A}});Object.defineProperty(exports,"DocumentAgent",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.f}});Object.defineProperty(exports,"attemptSelectiveSave",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.c}});Object.defineProperty(exports,"buildExtendedSelectionContext",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.m}});Object.defineProperty(exports,"buildPatchedDocumentXml",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.b}});Object.defineProperty(exports,"buildSelectionContext",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.l}});Object.defineProperty(exports,"createDocumentWithText",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.e}});Object.defineProperty(exports,"createEmptyDocument",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.d}});Object.defineProperty(exports,"getAgentContext",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.i}});Object.defineProperty(exports,"getDocumentSummary",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.k}});Object.defineProperty(exports,"validatePatchSafety",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.a}});Object.defineProperty(exports,"blendColors",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.l}});Object.defineProperty(exports,"colorsEqual",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.q}});Object.defineProperty(exports,"createRgbColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.i}});Object.defineProperty(exports,"createThemeColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.h}});Object.defineProperty(exports,"darkenColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.j}});Object.defineProperty(exports,"ensureHexPrefix",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.m}});Object.defineProperty(exports,"generateThemeTintShadeMatrix",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.p}});Object.defineProperty(exports,"getContrastingColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.f}});Object.defineProperty(exports,"getThemeTintShadeHex",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.o}});Object.defineProperty(exports,"isBlack",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.d}});Object.defineProperty(exports,"isWhite",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.e}});Object.defineProperty(exports,"lightenColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.k}});Object.defineProperty(exports,"parseColorString",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.g}});Object.defineProperty(exports,"resolveColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.a}});Object.defineProperty(exports,"resolveHighlightColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.b}});Object.defineProperty(exports,"resolveHighlightToCss",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.n}});Object.defineProperty(exports,"resolveShadingColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.c}});Object.defineProperty(exports,"detectVariables",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.a}});Object.defineProperty(exports,"detectVariablesDetailed",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.b}});Object.defineProperty(exports,"detectVariablesInBody",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.c}});Object.defineProperty(exports,"detectVariablesInParagraph",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.d}});Object.defineProperty(exports,"documentHasVariables",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.m}});Object.defineProperty(exports,"docxtemplaterPlugin",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.o}});Object.defineProperty(exports,"extractVariablesFromText",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.e}});Object.defineProperty(exports,"formatVariable",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.i}});Object.defineProperty(exports,"hasTemplateVariables",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.f}});Object.defineProperty(exports,"isValidVariableName",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.g}});Object.defineProperty(exports,"parseVariable",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.j}});Object.defineProperty(exports,"removeVariables",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.l}});Object.defineProperty(exports,"replaceVariables",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.k}});Object.defineProperty(exports,"sanitizeVariableName",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.h}});Object.defineProperty(exports,"getTemplateTags",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.e}});Object.defineProperty(exports,"processTemplate",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.a}});Object.defineProperty(exports,"processTemplateAsBlob",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.c}});Object.defineProperty(exports,"processTemplateDetailed",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.b}});Object.defineProperty(exports,"validateTemplate",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.f}});Object.defineProperty(exports,"createDocx",{enumerable:true,get:function(){return chunkPUVSVHHB_cjs.l}});Object.defineProperty(exports,"repackDocx",{enumerable:true,get:function(){return chunkPUVSVHHB_cjs.f}});Object.defineProperty(exports,"serializeDocumentBody",{enumerable:true,get:function(){return chunkPUVSVHHB_cjs.b}});Object.defineProperty(exports,"serializeDocx",{enumerable:true,get:function(){return chunkPUVSVHHB_cjs.c}});Object.defineProperty(exports,"serializeSectionProperties",{enumerable:true,get:function(){return chunkPUVSVHHB_cjs.a}});Object.defineProperty(exports,"updateMultipleFiles",{enumerable:true,get:function(){return chunkPUVSVHHB_cjs.h}});Object.defineProperty(exports,"executeCommand",{enumerable:true,get:function(){return chunkP7ZF45KZ_cjs.a}});Object.defineProperty(exports,"executeCommands",{enumerable:true,get:function(){return chunkP7ZF45KZ_cjs.b}});Object.defineProperty(exports,"canRenderFont",{enumerable:true,get:function(){return chunkPIVLDW7B_cjs.i}});Object.defineProperty(exports,"getLoadedFonts",{enumerable:true,get:function(){return chunkPIVLDW7B_cjs.g}});Object.defineProperty(exports,"isFontLoaded",{enumerable:true,get:function(){return chunkPIVLDW7B_cjs.e}});Object.defineProperty(exports,"isFontsLoading",{enumerable:true,get:function(){return chunkPIVLDW7B_cjs.f}});Object.defineProperty(exports,"loadFont",{enumerable:true,get:function(){return chunkPIVLDW7B_cjs.c}});Object.defineProperty(exports,"loadFontFromBuffer",{enumerable:true,get:function(){return chunkPIVLDW7B_cjs.j}});Object.defineProperty(exports,"loadFonts",{enumerable:true,get:function(){return chunkPIVLDW7B_cjs.d}});Object.defineProperty(exports,"onFontsLoaded",{enumerable:true,get:function(){return chunkPIVLDW7B_cjs.h}});Object.defineProperty(exports,"parseDocx",{enumerable:true,get:function(){return chunkPIVLDW7B_cjs.n}});Object.defineProperty(exports,"preloadCommonFonts",{enumerable:true,get:function(){return chunkPIVLDW7B_cjs.k}});Object.defineProperty(exports,"toArrayBuffer",{enumerable:true,get:function(){return chunkPIVLDW7B_cjs.m}});Object.defineProperty(exports,"PluginRegistry",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.a}});Object.defineProperty(exports,"pluginRegistry",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.b}});Object.defineProperty(exports,"registerPlugins",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.c}});Object.defineProperty(exports,"emuToPixels",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.c}});Object.defineProperty(exports,"emuToTwips",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.e}});Object.defineProperty(exports,"formatPx",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.k}});Object.defineProperty(exports,"halfPointsToPixels",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.h}});Object.defineProperty(exports,"pixelsToEmu",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.d}});Object.defineProperty(exports,"pixelsToTwips",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.b}});Object.defineProperty(exports,"pointsToPixels",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.g}});Object.defineProperty(exports,"twipsToEmu",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.f}});Object.defineProperty(exports,"twipsToPixels",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.a}});
|
|
1
|
+
'use strict';var chunk2VHQ7YOQ_cjs=require('./chunk-2VHQ7YOQ.cjs'),chunkNKW2UER2_cjs=require('./chunk-NKW2UER2.cjs'),chunkIA4LPH2A_cjs=require('./chunk-IA4LPH2A.cjs'),chunkJ5YOIHCW_cjs=require('./chunk-J5YOIHCW.cjs'),chunkB7TICMXD_cjs=require('./chunk-B7TICMXD.cjs'),chunkMHUCHYNM_cjs=require('./chunk-MHUCHYNM.cjs'),chunkP7ZF45KZ_cjs=require('./chunk-P7ZF45KZ.cjs'),chunkCL62W2HQ_cjs=require('./chunk-CL62W2HQ.cjs'),chunkYS7FDEZ4_cjs=require('./chunk-YS7FDEZ4.cjs'),chunkKR32M3S4_cjs=require('./chunk-KR32M3S4.cjs');require('./chunk-XQNCLN4T.cjs'),require('./chunk-PCJ5ACUV.cjs');Object.defineProperty(exports,"AutoSaveManager",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.r}});Object.defineProperty(exports,"EditorCoordinator",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.L}});Object.defineProperty(exports,"ErrorManager",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.H}});Object.defineProperty(exports,"LayoutCoordinator",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.K}});Object.defineProperty(exports,"PluginLifecycleManager",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.J}});Object.defineProperty(exports,"Subscribable",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.q}});Object.defineProperty(exports,"TABLE_DATA_ATTRIBUTES",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.x}});Object.defineProperty(exports,"TableSelectionManager",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.C}});Object.defineProperty(exports,"VERSION",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.M}});Object.defineProperty(exports,"countPageBreaks",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.n}});Object.defineProperty(exports,"createColumnBreak",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.b}});Object.defineProperty(exports,"createHorizontalRule",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.g}});Object.defineProperty(exports,"createLineBreak",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.c}});Object.defineProperty(exports,"createPageBreak",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.a}});Object.defineProperty(exports,"createPageBreakParagraph",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.e}});Object.defineProperty(exports,"createPageBreakRun",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.d}});Object.defineProperty(exports,"createSelectionFromDOM",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.F}});Object.defineProperty(exports,"deleteTableFromDocument",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.B}});Object.defineProperty(exports,"extractFormattingFromElement",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.D}});Object.defineProperty(exports,"findPageBreaks",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.o}});Object.defineProperty(exports,"findTableFromClick",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.y}});Object.defineProperty(exports,"formatLastSaveTime",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.s}});Object.defineProperty(exports,"formatStorageSize",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.v}});Object.defineProperty(exports,"getAutoSaveStatusLabel",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.t}});Object.defineProperty(exports,"getAutoSaveStorageSize",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.u}});Object.defineProperty(exports,"getSelectionRuns",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.E}});Object.defineProperty(exports,"getTableFromDocument",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.z}});Object.defineProperty(exports,"hasPageBreakBefore",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.m}});Object.defineProperty(exports,"injectStyles",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.I}});Object.defineProperty(exports,"insertHorizontalRule",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.h}});Object.defineProperty(exports,"insertPageBreak",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.f}});Object.defineProperty(exports,"isAutoSaveSupported",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.w}});Object.defineProperty(exports,"isBreakContent",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.l}});Object.defineProperty(exports,"isColumnBreak",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.j}});Object.defineProperty(exports,"isLineBreak",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.k}});Object.defineProperty(exports,"isPageBreak",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.i}});Object.defineProperty(exports,"removePageBreak",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.p}});Object.defineProperty(exports,"rgbToHex",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.G}});Object.defineProperty(exports,"updateTableInDocument",{enumerable:true,get:function(){return chunk2VHQ7YOQ_cjs.A}});Object.defineProperty(exports,"DocumentAgent",{enumerable:true,get:function(){return chunkNKW2UER2_cjs.f}});Object.defineProperty(exports,"attemptSelectiveSave",{enumerable:true,get:function(){return chunkNKW2UER2_cjs.c}});Object.defineProperty(exports,"buildExtendedSelectionContext",{enumerable:true,get:function(){return chunkNKW2UER2_cjs.m}});Object.defineProperty(exports,"buildPatchedDocumentXml",{enumerable:true,get:function(){return chunkNKW2UER2_cjs.b}});Object.defineProperty(exports,"buildSelectionContext",{enumerable:true,get:function(){return chunkNKW2UER2_cjs.l}});Object.defineProperty(exports,"createDocumentWithText",{enumerable:true,get:function(){return chunkNKW2UER2_cjs.e}});Object.defineProperty(exports,"createEmptyDocument",{enumerable:true,get:function(){return chunkNKW2UER2_cjs.d}});Object.defineProperty(exports,"getAgentContext",{enumerable:true,get:function(){return chunkNKW2UER2_cjs.i}});Object.defineProperty(exports,"getDocumentSummary",{enumerable:true,get:function(){return chunkNKW2UER2_cjs.k}});Object.defineProperty(exports,"validatePatchSafety",{enumerable:true,get:function(){return chunkNKW2UER2_cjs.a}});Object.defineProperty(exports,"blendColors",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.l}});Object.defineProperty(exports,"colorsEqual",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.q}});Object.defineProperty(exports,"createRgbColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.i}});Object.defineProperty(exports,"createThemeColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.h}});Object.defineProperty(exports,"darkenColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.j}});Object.defineProperty(exports,"ensureHexPrefix",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.m}});Object.defineProperty(exports,"generateThemeTintShadeMatrix",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.p}});Object.defineProperty(exports,"getContrastingColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.f}});Object.defineProperty(exports,"getThemeTintShadeHex",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.o}});Object.defineProperty(exports,"isBlack",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.d}});Object.defineProperty(exports,"isWhite",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.e}});Object.defineProperty(exports,"lightenColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.k}});Object.defineProperty(exports,"parseColorString",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.g}});Object.defineProperty(exports,"resolveColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.a}});Object.defineProperty(exports,"resolveHighlightColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.b}});Object.defineProperty(exports,"resolveHighlightToCss",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.n}});Object.defineProperty(exports,"resolveShadingColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.c}});Object.defineProperty(exports,"detectVariables",{enumerable:true,get:function(){return chunkJ5YOIHCW_cjs.a}});Object.defineProperty(exports,"detectVariablesDetailed",{enumerable:true,get:function(){return chunkJ5YOIHCW_cjs.b}});Object.defineProperty(exports,"detectVariablesInBody",{enumerable:true,get:function(){return chunkJ5YOIHCW_cjs.c}});Object.defineProperty(exports,"detectVariablesInParagraph",{enumerable:true,get:function(){return chunkJ5YOIHCW_cjs.d}});Object.defineProperty(exports,"documentHasVariables",{enumerable:true,get:function(){return chunkJ5YOIHCW_cjs.m}});Object.defineProperty(exports,"docxtemplaterPlugin",{enumerable:true,get:function(){return chunkJ5YOIHCW_cjs.o}});Object.defineProperty(exports,"extractVariablesFromText",{enumerable:true,get:function(){return chunkJ5YOIHCW_cjs.e}});Object.defineProperty(exports,"formatVariable",{enumerable:true,get:function(){return chunkJ5YOIHCW_cjs.i}});Object.defineProperty(exports,"hasTemplateVariables",{enumerable:true,get:function(){return chunkJ5YOIHCW_cjs.f}});Object.defineProperty(exports,"isValidVariableName",{enumerable:true,get:function(){return chunkJ5YOIHCW_cjs.g}});Object.defineProperty(exports,"parseVariable",{enumerable:true,get:function(){return chunkJ5YOIHCW_cjs.j}});Object.defineProperty(exports,"removeVariables",{enumerable:true,get:function(){return chunkJ5YOIHCW_cjs.l}});Object.defineProperty(exports,"replaceVariables",{enumerable:true,get:function(){return chunkJ5YOIHCW_cjs.k}});Object.defineProperty(exports,"sanitizeVariableName",{enumerable:true,get:function(){return chunkJ5YOIHCW_cjs.h}});Object.defineProperty(exports,"getTemplateTags",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.e}});Object.defineProperty(exports,"processTemplate",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.a}});Object.defineProperty(exports,"processTemplateAsBlob",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.c}});Object.defineProperty(exports,"processTemplateDetailed",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.b}});Object.defineProperty(exports,"validateTemplate",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.f}});Object.defineProperty(exports,"createDocx",{enumerable:true,get:function(){return chunkMHUCHYNM_cjs.l}});Object.defineProperty(exports,"repackDocx",{enumerable:true,get:function(){return chunkMHUCHYNM_cjs.f}});Object.defineProperty(exports,"serializeDocumentBody",{enumerable:true,get:function(){return chunkMHUCHYNM_cjs.b}});Object.defineProperty(exports,"serializeDocx",{enumerable:true,get:function(){return chunkMHUCHYNM_cjs.c}});Object.defineProperty(exports,"serializeSectionProperties",{enumerable:true,get:function(){return chunkMHUCHYNM_cjs.a}});Object.defineProperty(exports,"updateMultipleFiles",{enumerable:true,get:function(){return chunkMHUCHYNM_cjs.h}});Object.defineProperty(exports,"executeCommand",{enumerable:true,get:function(){return chunkP7ZF45KZ_cjs.a}});Object.defineProperty(exports,"executeCommands",{enumerable:true,get:function(){return chunkP7ZF45KZ_cjs.b}});Object.defineProperty(exports,"canRenderFont",{enumerable:true,get:function(){return chunkCL62W2HQ_cjs.i}});Object.defineProperty(exports,"getLoadedFonts",{enumerable:true,get:function(){return chunkCL62W2HQ_cjs.g}});Object.defineProperty(exports,"isFontLoaded",{enumerable:true,get:function(){return chunkCL62W2HQ_cjs.e}});Object.defineProperty(exports,"isFontsLoading",{enumerable:true,get:function(){return chunkCL62W2HQ_cjs.f}});Object.defineProperty(exports,"loadFont",{enumerable:true,get:function(){return chunkCL62W2HQ_cjs.c}});Object.defineProperty(exports,"loadFontFromBuffer",{enumerable:true,get:function(){return chunkCL62W2HQ_cjs.j}});Object.defineProperty(exports,"loadFonts",{enumerable:true,get:function(){return chunkCL62W2HQ_cjs.d}});Object.defineProperty(exports,"onFontsLoaded",{enumerable:true,get:function(){return chunkCL62W2HQ_cjs.h}});Object.defineProperty(exports,"parseDocx",{enumerable:true,get:function(){return chunkCL62W2HQ_cjs.n}});Object.defineProperty(exports,"preloadCommonFonts",{enumerable:true,get:function(){return chunkCL62W2HQ_cjs.k}});Object.defineProperty(exports,"toArrayBuffer",{enumerable:true,get:function(){return chunkCL62W2HQ_cjs.m}});Object.defineProperty(exports,"PluginRegistry",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.a}});Object.defineProperty(exports,"pluginRegistry",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.b}});Object.defineProperty(exports,"registerPlugins",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.c}});Object.defineProperty(exports,"emuToPixels",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.c}});Object.defineProperty(exports,"emuToTwips",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.e}});Object.defineProperty(exports,"formatPx",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.k}});Object.defineProperty(exports,"halfPointsToPixels",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.h}});Object.defineProperty(exports,"pixelsToEmu",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.d}});Object.defineProperty(exports,"pixelsToTwips",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.b}});Object.defineProperty(exports,"pointsToPixels",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.g}});Object.defineProperty(exports,"twipsToEmu",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.f}});Object.defineProperty(exports,"twipsToPixels",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.a}});
|
package/dist/core-reexport.d.cts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { D as Document } from './agentApi-
|
|
2
|
-
export { f as AIAction, g as AIActionRequest, A as AgentCommand, h as AgentContext, i as AgentResponse, j as ApplyStyleCommand, l as BlockContent, a3 as BookmarkEnd, a4 as BookmarkStart, n as DeleteTextCommand, d as DocumentBody, o as DocxPackage, E as Endnote, a5 as Field, a6 as FooterReference, F as Footnote, q as FormatTextCommand, a7 as HeaderFooter, a8 as HeaderReference, H as Hyperlink, I as Image, r as InsertHyperlinkCommand, s as InsertImageCommand, t as InsertTableCommand, u as InsertTextCommand, L as ListLevel, N as NumberingDefinitions, a as Paragraph, v as ParagraphContext, w as ParagraphFormatting, P as Position, R as Range, y as Relationship, z as ReplaceTextCommand, b as Run, c as RunContent, C as SectionProperties, G as SelectionContext, J as SetVariableCommand, a9 as Shape, K as Style, M as StyleDefinitions, Q as SuggestedAction, e as Table, U as TableCell, V as TableRow, aa as TextBox, W as TextContent, T as TextFormatting, X as Theme, ab as ThemeColorScheme, ac as ThemeFont, ad as ThemeFontScheme } from './agentApi-
|
|
3
|
-
export { A as AgentContextOptions, C as CreateEmptyDocumentOptions, E as ExtendedSelectionContext, P as ProcessTemplateOptions, a as ProcessTemplateResult, b as SelectionContextOptions, a0 as ThemeMatrixCell, c as blendColors, d as buildExtendedSelectionContext, e as buildSelectionContext, g as colorsEqual, h as createDocumentWithText, i as createEmptyDocument, j as createRgbColor, l as createThemeColor, m as darkenColor, n as emuToPixels, o as emuToTwips, a1 as ensureHexPrefix, p as executeCommand, q as executeCommands, r as formatPx, a2 as generateThemeTintShadeMatrix, s as getAgentContext, t as getContrastingColor, u as getDocumentSummary, x as getTemplateTags, a3 as getThemeTintShadeHex, y as halfPointsToPixels, z as isBlack, B as isWhite, D as lightenColor, G as parseColorString, H as parseDocx, I as pixelsToEmu, J as pixelsToTwips, K as pointsToPixels, M as processTemplate, O as processTemplateAsBlob, Q as processTemplateDetailed, R as resolveColor, U as resolveHighlightColor, a4 as resolveHighlightToCss, V as resolveShadingColor, W as serializeDocumentBody, X as serializeDocx, Y as serializeSectionProperties, Z as twipsToEmu, _ as twipsToPixels, $ as validateTemplate } from './colorResolver-
|
|
4
|
-
import { S as Subscribable, E as ErrorManagerSnapshot, P as PluginLifecycleSnapshot, a as PluginLifecycleConfig } from './ClipboardManager-
|
|
5
|
-
export { A as AutoSaveManager, b as AutoSaveManagerOptions, c as AutoSaveSnapshot, d as AutoSaveStatus, C as CellCoordinates, e as ClipboardSelection, f as EditorHandle, g as EditorPluginCore, h as ErrorNotification, i as ErrorSeverity, j as PanelConfig, k as PluginPanelProps, l as PositionCoordinates, R as RenderedDomContext, m as SavedDocumentData, T as TABLE_DATA_ATTRIBUTES, n as TableSelectionManager, o as TableSelectionSnapshot, p as createSelectionFromDOM, q as deleteTableFromDocument, r as extractFormattingFromElement, s as findTableFromClick, t as formatLastSaveTime, u as formatStorageSize, v as getAutoSaveStatusLabel, w as getAutoSaveStorageSize, x as getSelectionRuns, y as getTableFromDocument, z as isAutoSaveSupported, B as rgbToHex, D as updateTableInDocument } from './ClipboardManager-
|
|
6
|
-
export { C as CorePlugin, e as McpSession, M as McpToolDefinition, i as McpToolHandler, j as McpToolResult } from './types-
|
|
7
|
-
export { D as DocumentAgent, g as DocxInput, d as attemptSelectiveSave, t as toArrayBuffer } from './DocumentAgent-
|
|
8
|
-
export { I as InsertPosition, c as canRenderFont, a as countPageBreaks, b as createColumnBreak, d as createHorizontalRule, e as createLineBreak, f as createPageBreak, g as createPageBreakParagraph, h as createPageBreakRun, i as findPageBreaks, j as getLoadedFonts, k as hasPageBreakBefore, l as insertHorizontalRule, m as insertPageBreak, n as isBreakContent, o as isColumnBreak, p as isFontLoaded, q as isFontsLoading, r as isLineBreak, s as isPageBreak, t as loadFont, u as loadFontFromBuffer, v as loadFonts, w as onFontsLoaded, x as preloadCommonFonts, y as removePageBreak } from './fontLoader-
|
|
1
|
+
import { D as Document } from './agentApi-B0688ssC.cjs';
|
|
2
|
+
export { f as AIAction, g as AIActionRequest, A as AgentCommand, h as AgentContext, i as AgentResponse, j as ApplyStyleCommand, l as BlockContent, a3 as BookmarkEnd, a4 as BookmarkStart, n as DeleteTextCommand, d as DocumentBody, o as DocxPackage, E as Endnote, a5 as Field, a6 as FooterReference, F as Footnote, q as FormatTextCommand, a7 as HeaderFooter, a8 as HeaderReference, H as Hyperlink, I as Image, r as InsertHyperlinkCommand, s as InsertImageCommand, t as InsertTableCommand, u as InsertTextCommand, L as ListLevel, N as NumberingDefinitions, a as Paragraph, v as ParagraphContext, w as ParagraphFormatting, P as Position, R as Range, y as Relationship, z as ReplaceTextCommand, b as Run, c as RunContent, C as SectionProperties, G as SelectionContext, J as SetVariableCommand, a9 as Shape, K as Style, M as StyleDefinitions, Q as SuggestedAction, e as Table, U as TableCell, V as TableRow, aa as TextBox, W as TextContent, T as TextFormatting, X as Theme, ab as ThemeColorScheme, ac as ThemeFont, ad as ThemeFontScheme } from './agentApi-B0688ssC.cjs';
|
|
3
|
+
export { A as AgentContextOptions, C as CreateEmptyDocumentOptions, E as ExtendedSelectionContext, P as ProcessTemplateOptions, a as ProcessTemplateResult, b as SelectionContextOptions, a0 as ThemeMatrixCell, c as blendColors, d as buildExtendedSelectionContext, e as buildSelectionContext, g as colorsEqual, h as createDocumentWithText, i as createEmptyDocument, j as createRgbColor, l as createThemeColor, m as darkenColor, n as emuToPixels, o as emuToTwips, a1 as ensureHexPrefix, p as executeCommand, q as executeCommands, r as formatPx, a2 as generateThemeTintShadeMatrix, s as getAgentContext, t as getContrastingColor, u as getDocumentSummary, x as getTemplateTags, a3 as getThemeTintShadeHex, y as halfPointsToPixels, z as isBlack, B as isWhite, D as lightenColor, G as parseColorString, H as parseDocx, I as pixelsToEmu, J as pixelsToTwips, K as pointsToPixels, M as processTemplate, O as processTemplateAsBlob, Q as processTemplateDetailed, R as resolveColor, U as resolveHighlightColor, a4 as resolveHighlightToCss, V as resolveShadingColor, W as serializeDocumentBody, X as serializeDocx, Y as serializeSectionProperties, Z as twipsToEmu, _ as twipsToPixels, $ as validateTemplate } from './colorResolver-DR1p8Eg-.cjs';
|
|
4
|
+
import { S as Subscribable, E as ErrorManagerSnapshot, P as PluginLifecycleSnapshot, a as PluginLifecycleConfig } from './ClipboardManager-BYO62Qs5.cjs';
|
|
5
|
+
export { A as AutoSaveManager, b as AutoSaveManagerOptions, c as AutoSaveSnapshot, d as AutoSaveStatus, C as CellCoordinates, e as ClipboardSelection, f as EditorHandle, g as EditorPluginCore, h as ErrorNotification, i as ErrorSeverity, j as PanelConfig, k as PluginPanelProps, l as PositionCoordinates, R as RenderedDomContext, m as SavedDocumentData, T as TABLE_DATA_ATTRIBUTES, n as TableSelectionManager, o as TableSelectionSnapshot, p as createSelectionFromDOM, q as deleteTableFromDocument, r as extractFormattingFromElement, s as findTableFromClick, t as formatLastSaveTime, u as formatStorageSize, v as getAutoSaveStatusLabel, w as getAutoSaveStorageSize, x as getSelectionRuns, y as getTableFromDocument, z as isAutoSaveSupported, B as rgbToHex, D as updateTableInDocument } from './ClipboardManager-BYO62Qs5.cjs';
|
|
6
|
+
export { C as CorePlugin, e as McpSession, M as McpToolDefinition, i as McpToolHandler, j as McpToolResult } from './types-DAxXgYu5.cjs';
|
|
7
|
+
export { D as DocumentAgent, g as DocxInput, d as attemptSelectiveSave, t as toArrayBuffer } from './DocumentAgent-ZcA8CUmC.cjs';
|
|
8
|
+
export { I as InsertPosition, c as canRenderFont, a as countPageBreaks, b as createColumnBreak, d as createHorizontalRule, e as createLineBreak, f as createPageBreak, g as createPageBreakParagraph, h as createPageBreakRun, i as findPageBreaks, j as getLoadedFonts, k as hasPageBreakBefore, l as insertHorizontalRule, m as insertPageBreak, n as isBreakContent, o as isColumnBreak, p as isFontLoaded, q as isFontsLoading, r as isLineBreak, s as isPageBreak, t as loadFont, u as loadFontFromBuffer, v as loadFonts, w as onFontsLoaded, x as preloadCommonFonts, y as removePageBreak } from './fontLoader-54sS8rtN.cjs';
|
|
9
9
|
import { EditorView } from 'prosemirror-view';
|
|
10
|
-
export { P as PluginRegistry, p as pluginRegistry, r as registerPlugins } from './registry-
|
|
11
|
-
export { V as VariableDetectionResult, a as VariableOccurrence, b as buildPatchedDocumentXml, c as createDocx, d as detectVariables, e as detectVariablesDetailed, f as detectVariablesInBody, g as detectVariablesInParagraph, h as documentHasVariables, i as extractVariablesFromText, j as formatVariable, k as hasTemplateVariables, l as isValidVariableName, p as parseVariable, r as removeVariables, m as repackDocx, n as replaceVariables, s as sanitizeVariableName, u as updateMultipleFiles, v as validatePatchSafety } from './variableDetector-
|
|
10
|
+
export { P as PluginRegistry, p as pluginRegistry, r as registerPlugins } from './registry-CqFFeBgF.cjs';
|
|
11
|
+
export { V as VariableDetectionResult, a as VariableOccurrence, b as buildPatchedDocumentXml, c as createDocx, d as detectVariables, e as detectVariablesDetailed, f as detectVariablesInBody, g as detectVariablesInParagraph, h as documentHasVariables, i as extractVariablesFromText, j as formatVariable, k as hasTemplateVariables, l as isValidVariableName, p as parseVariable, r as removeVariables, m as repackDocx, n as replaceVariables, s as sanitizeVariableName, u as updateMultipleFiles, v as validatePatchSafety } from './variableDetector-DIeB1Nxd.cjs';
|
|
12
12
|
export { docxtemplaterPlugin } from './core-plugins-reexport.cjs';
|
|
13
13
|
import 'prosemirror-state';
|
|
14
14
|
import 'prosemirror-model';
|
package/dist/core-reexport.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { D as Document } from './agentApi-
|
|
2
|
-
export { f as AIAction, g as AIActionRequest, A as AgentCommand, h as AgentContext, i as AgentResponse, j as ApplyStyleCommand, l as BlockContent, a3 as BookmarkEnd, a4 as BookmarkStart, n as DeleteTextCommand, d as DocumentBody, o as DocxPackage, E as Endnote, a5 as Field, a6 as FooterReference, F as Footnote, q as FormatTextCommand, a7 as HeaderFooter, a8 as HeaderReference, H as Hyperlink, I as Image, r as InsertHyperlinkCommand, s as InsertImageCommand, t as InsertTableCommand, u as InsertTextCommand, L as ListLevel, N as NumberingDefinitions, a as Paragraph, v as ParagraphContext, w as ParagraphFormatting, P as Position, R as Range, y as Relationship, z as ReplaceTextCommand, b as Run, c as RunContent, C as SectionProperties, G as SelectionContext, J as SetVariableCommand, a9 as Shape, K as Style, M as StyleDefinitions, Q as SuggestedAction, e as Table, U as TableCell, V as TableRow, aa as TextBox, W as TextContent, T as TextFormatting, X as Theme, ab as ThemeColorScheme, ac as ThemeFont, ad as ThemeFontScheme } from './agentApi-
|
|
3
|
-
export { A as AgentContextOptions, C as CreateEmptyDocumentOptions, E as ExtendedSelectionContext, P as ProcessTemplateOptions, a as ProcessTemplateResult, b as SelectionContextOptions, a0 as ThemeMatrixCell, c as blendColors, d as buildExtendedSelectionContext, e as buildSelectionContext, g as colorsEqual, h as createDocumentWithText, i as createEmptyDocument, j as createRgbColor, l as createThemeColor, m as darkenColor, n as emuToPixels, o as emuToTwips, a1 as ensureHexPrefix, p as executeCommand, q as executeCommands, r as formatPx, a2 as generateThemeTintShadeMatrix, s as getAgentContext, t as getContrastingColor, u as getDocumentSummary, x as getTemplateTags, a3 as getThemeTintShadeHex, y as halfPointsToPixels, z as isBlack, B as isWhite, D as lightenColor, G as parseColorString, H as parseDocx, I as pixelsToEmu, J as pixelsToTwips, K as pointsToPixels, M as processTemplate, O as processTemplateAsBlob, Q as processTemplateDetailed, R as resolveColor, U as resolveHighlightColor, a4 as resolveHighlightToCss, V as resolveShadingColor, W as serializeDocumentBody, X as serializeDocx, Y as serializeSectionProperties, Z as twipsToEmu, _ as twipsToPixels, $ as validateTemplate } from './colorResolver-
|
|
4
|
-
import { S as Subscribable, E as ErrorManagerSnapshot, P as PluginLifecycleSnapshot, a as PluginLifecycleConfig } from './ClipboardManager-
|
|
5
|
-
export { A as AutoSaveManager, b as AutoSaveManagerOptions, c as AutoSaveSnapshot, d as AutoSaveStatus, C as CellCoordinates, e as ClipboardSelection, f as EditorHandle, g as EditorPluginCore, h as ErrorNotification, i as ErrorSeverity, j as PanelConfig, k as PluginPanelProps, l as PositionCoordinates, R as RenderedDomContext, m as SavedDocumentData, T as TABLE_DATA_ATTRIBUTES, n as TableSelectionManager, o as TableSelectionSnapshot, p as createSelectionFromDOM, q as deleteTableFromDocument, r as extractFormattingFromElement, s as findTableFromClick, t as formatLastSaveTime, u as formatStorageSize, v as getAutoSaveStatusLabel, w as getAutoSaveStorageSize, x as getSelectionRuns, y as getTableFromDocument, z as isAutoSaveSupported, B as rgbToHex, D as updateTableInDocument } from './ClipboardManager-
|
|
6
|
-
export { C as CorePlugin, e as McpSession, M as McpToolDefinition, i as McpToolHandler, j as McpToolResult } from './types-
|
|
7
|
-
export { D as DocumentAgent, g as DocxInput, d as attemptSelectiveSave, t as toArrayBuffer } from './DocumentAgent-
|
|
8
|
-
export { I as InsertPosition, c as canRenderFont, a as countPageBreaks, b as createColumnBreak, d as createHorizontalRule, e as createLineBreak, f as createPageBreak, g as createPageBreakParagraph, h as createPageBreakRun, i as findPageBreaks, j as getLoadedFonts, k as hasPageBreakBefore, l as insertHorizontalRule, m as insertPageBreak, n as isBreakContent, o as isColumnBreak, p as isFontLoaded, q as isFontsLoading, r as isLineBreak, s as isPageBreak, t as loadFont, u as loadFontFromBuffer, v as loadFonts, w as onFontsLoaded, x as preloadCommonFonts, y as removePageBreak } from './fontLoader-
|
|
1
|
+
import { D as Document } from './agentApi-B0688ssC.js';
|
|
2
|
+
export { f as AIAction, g as AIActionRequest, A as AgentCommand, h as AgentContext, i as AgentResponse, j as ApplyStyleCommand, l as BlockContent, a3 as BookmarkEnd, a4 as BookmarkStart, n as DeleteTextCommand, d as DocumentBody, o as DocxPackage, E as Endnote, a5 as Field, a6 as FooterReference, F as Footnote, q as FormatTextCommand, a7 as HeaderFooter, a8 as HeaderReference, H as Hyperlink, I as Image, r as InsertHyperlinkCommand, s as InsertImageCommand, t as InsertTableCommand, u as InsertTextCommand, L as ListLevel, N as NumberingDefinitions, a as Paragraph, v as ParagraphContext, w as ParagraphFormatting, P as Position, R as Range, y as Relationship, z as ReplaceTextCommand, b as Run, c as RunContent, C as SectionProperties, G as SelectionContext, J as SetVariableCommand, a9 as Shape, K as Style, M as StyleDefinitions, Q as SuggestedAction, e as Table, U as TableCell, V as TableRow, aa as TextBox, W as TextContent, T as TextFormatting, X as Theme, ab as ThemeColorScheme, ac as ThemeFont, ad as ThemeFontScheme } from './agentApi-B0688ssC.js';
|
|
3
|
+
export { A as AgentContextOptions, C as CreateEmptyDocumentOptions, E as ExtendedSelectionContext, P as ProcessTemplateOptions, a as ProcessTemplateResult, b as SelectionContextOptions, a0 as ThemeMatrixCell, c as blendColors, d as buildExtendedSelectionContext, e as buildSelectionContext, g as colorsEqual, h as createDocumentWithText, i as createEmptyDocument, j as createRgbColor, l as createThemeColor, m as darkenColor, n as emuToPixels, o as emuToTwips, a1 as ensureHexPrefix, p as executeCommand, q as executeCommands, r as formatPx, a2 as generateThemeTintShadeMatrix, s as getAgentContext, t as getContrastingColor, u as getDocumentSummary, x as getTemplateTags, a3 as getThemeTintShadeHex, y as halfPointsToPixels, z as isBlack, B as isWhite, D as lightenColor, G as parseColorString, H as parseDocx, I as pixelsToEmu, J as pixelsToTwips, K as pointsToPixels, M as processTemplate, O as processTemplateAsBlob, Q as processTemplateDetailed, R as resolveColor, U as resolveHighlightColor, a4 as resolveHighlightToCss, V as resolveShadingColor, W as serializeDocumentBody, X as serializeDocx, Y as serializeSectionProperties, Z as twipsToEmu, _ as twipsToPixels, $ as validateTemplate } from './colorResolver-Dk7bMHIa.js';
|
|
4
|
+
import { S as Subscribable, E as ErrorManagerSnapshot, P as PluginLifecycleSnapshot, a as PluginLifecycleConfig } from './ClipboardManager-YQYq5X_Z.js';
|
|
5
|
+
export { A as AutoSaveManager, b as AutoSaveManagerOptions, c as AutoSaveSnapshot, d as AutoSaveStatus, C as CellCoordinates, e as ClipboardSelection, f as EditorHandle, g as EditorPluginCore, h as ErrorNotification, i as ErrorSeverity, j as PanelConfig, k as PluginPanelProps, l as PositionCoordinates, R as RenderedDomContext, m as SavedDocumentData, T as TABLE_DATA_ATTRIBUTES, n as TableSelectionManager, o as TableSelectionSnapshot, p as createSelectionFromDOM, q as deleteTableFromDocument, r as extractFormattingFromElement, s as findTableFromClick, t as formatLastSaveTime, u as formatStorageSize, v as getAutoSaveStatusLabel, w as getAutoSaveStorageSize, x as getSelectionRuns, y as getTableFromDocument, z as isAutoSaveSupported, B as rgbToHex, D as updateTableInDocument } from './ClipboardManager-YQYq5X_Z.js';
|
|
6
|
+
export { C as CorePlugin, e as McpSession, M as McpToolDefinition, i as McpToolHandler, j as McpToolResult } from './types-BwCYaZKB.js';
|
|
7
|
+
export { D as DocumentAgent, g as DocxInput, d as attemptSelectiveSave, t as toArrayBuffer } from './DocumentAgent-BW1-gnqM.js';
|
|
8
|
+
export { I as InsertPosition, c as canRenderFont, a as countPageBreaks, b as createColumnBreak, d as createHorizontalRule, e as createLineBreak, f as createPageBreak, g as createPageBreakParagraph, h as createPageBreakRun, i as findPageBreaks, j as getLoadedFonts, k as hasPageBreakBefore, l as insertHorizontalRule, m as insertPageBreak, n as isBreakContent, o as isColumnBreak, p as isFontLoaded, q as isFontsLoading, r as isLineBreak, s as isPageBreak, t as loadFont, u as loadFontFromBuffer, v as loadFonts, w as onFontsLoaded, x as preloadCommonFonts, y as removePageBreak } from './fontLoader-C7RvUiHx.js';
|
|
9
9
|
import { EditorView } from 'prosemirror-view';
|
|
10
|
-
export { P as PluginRegistry, p as pluginRegistry, r as registerPlugins } from './registry-
|
|
11
|
-
export { V as VariableDetectionResult, a as VariableOccurrence, b as buildPatchedDocumentXml, c as createDocx, d as detectVariables, e as detectVariablesDetailed, f as detectVariablesInBody, g as detectVariablesInParagraph, h as documentHasVariables, i as extractVariablesFromText, j as formatVariable, k as hasTemplateVariables, l as isValidVariableName, p as parseVariable, r as removeVariables, m as repackDocx, n as replaceVariables, s as sanitizeVariableName, u as updateMultipleFiles, v as validatePatchSafety } from './variableDetector-
|
|
10
|
+
export { P as PluginRegistry, p as pluginRegistry, r as registerPlugins } from './registry-BHOeZbR9.js';
|
|
11
|
+
export { V as VariableDetectionResult, a as VariableOccurrence, b as buildPatchedDocumentXml, c as createDocx, d as detectVariables, e as detectVariablesDetailed, f as detectVariablesInBody, g as detectVariablesInParagraph, h as documentHasVariables, i as extractVariablesFromText, j as formatVariable, k as hasTemplateVariables, l as isValidVariableName, p as parseVariable, r as removeVariables, m as repackDocx, n as replaceVariables, s as sanitizeVariableName, u as updateMultipleFiles, v as validatePatchSafety } from './variableDetector-B2FHghLx.js';
|
|
12
12
|
export { docxtemplaterPlugin } from './core-plugins-reexport.js';
|
|
13
13
|
import 'prosemirror-state';
|
|
14
14
|
import 'prosemirror-model';
|
package/dist/core-reexport.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{r as AutoSaveManager,L as EditorCoordinator,H as ErrorManager,K as LayoutCoordinator,J as PluginLifecycleManager,q as Subscribable,x as TABLE_DATA_ATTRIBUTES,C as TableSelectionManager,M as VERSION,n as countPageBreaks,b as createColumnBreak,g as createHorizontalRule,c as createLineBreak,a as createPageBreak,e as createPageBreakParagraph,d as createPageBreakRun,F as createSelectionFromDOM,B as deleteTableFromDocument,D as extractFormattingFromElement,o as findPageBreaks,y as findTableFromClick,s as formatLastSaveTime,v as formatStorageSize,t as getAutoSaveStatusLabel,u as getAutoSaveStorageSize,E as getSelectionRuns,z as getTableFromDocument,m as hasPageBreakBefore,I as injectStyles,h as insertHorizontalRule,f as insertPageBreak,w as isAutoSaveSupported,l as isBreakContent,j as isColumnBreak,k as isLineBreak,i as isPageBreak,p as removePageBreak,G as rgbToHex,A as updateTableInDocument}from'./chunk-FVUGBRDD.js';export{f as DocumentAgent,c as attemptSelectiveSave,m as buildExtendedSelectionContext,b as buildPatchedDocumentXml,l as buildSelectionContext,e as createDocumentWithText,d as createEmptyDocument,i as getAgentContext,k as getDocumentSummary,a as validatePatchSafety}from'./chunk-
|
|
1
|
+
export{r as AutoSaveManager,L as EditorCoordinator,H as ErrorManager,K as LayoutCoordinator,J as PluginLifecycleManager,q as Subscribable,x as TABLE_DATA_ATTRIBUTES,C as TableSelectionManager,M as VERSION,n as countPageBreaks,b as createColumnBreak,g as createHorizontalRule,c as createLineBreak,a as createPageBreak,e as createPageBreakParagraph,d as createPageBreakRun,F as createSelectionFromDOM,B as deleteTableFromDocument,D as extractFormattingFromElement,o as findPageBreaks,y as findTableFromClick,s as formatLastSaveTime,v as formatStorageSize,t as getAutoSaveStatusLabel,u as getAutoSaveStorageSize,E as getSelectionRuns,z as getTableFromDocument,m as hasPageBreakBefore,I as injectStyles,h as insertHorizontalRule,f as insertPageBreak,w as isAutoSaveSupported,l as isBreakContent,j as isColumnBreak,k as isLineBreak,i as isPageBreak,p as removePageBreak,G as rgbToHex,A as updateTableInDocument}from'./chunk-FVUGBRDD.js';export{f as DocumentAgent,c as attemptSelectiveSave,m as buildExtendedSelectionContext,b as buildPatchedDocumentXml,l as buildSelectionContext,e as createDocumentWithText,d as createEmptyDocument,i as getAgentContext,k as getDocumentSummary,a as validatePatchSafety}from'./chunk-T2SRPPZY.js';export{l as blendColors,q as colorsEqual,i as createRgbColor,h as createThemeColor,j as darkenColor,m as ensureHexPrefix,p as generateThemeTintShadeMatrix,f as getContrastingColor,o as getThemeTintShadeHex,d as isBlack,e as isWhite,k as lightenColor,g as parseColorString,a as resolveColor,b as resolveHighlightColor,n as resolveHighlightToCss,c as resolveShadingColor}from'./chunk-4VUZBV2S.js';export{a as detectVariables,b as detectVariablesDetailed,c as detectVariablesInBody,d as detectVariablesInParagraph,m as documentHasVariables,o as docxtemplaterPlugin,e as extractVariablesFromText,i as formatVariable,f as hasTemplateVariables,g as isValidVariableName,j as parseVariable,l as removeVariables,k as replaceVariables,h as sanitizeVariableName}from'./chunk-ABNIHWGF.js';export{e as getTemplateTags,a as processTemplate,c as processTemplateAsBlob,b as processTemplateDetailed,f as validateTemplate}from'./chunk-CLDB6TL7.js';export{l as createDocx,f as repackDocx,b as serializeDocumentBody,c as serializeDocx,a as serializeSectionProperties,h as updateMultipleFiles}from'./chunk-PP54GVGD.js';export{a as executeCommand,b as executeCommands}from'./chunk-AARNCPWR.js';export{i as canRenderFont,g as getLoadedFonts,e as isFontLoaded,f as isFontsLoading,c as loadFont,j as loadFontFromBuffer,d as loadFonts,h as onFontsLoaded,n as parseDocx,k as preloadCommonFonts,m as toArrayBuffer}from'./chunk-YP3CXYSU.js';export{a as PluginRegistry,b as pluginRegistry,c as registerPlugins}from'./chunk-BUEMG4NW.js';export{c as emuToPixels,e as emuToTwips,k as formatPx,h as halfPointsToPixels,d as pixelsToEmu,b as pixelsToTwips,g as pointsToPixels,f as twipsToEmu,a as twipsToPixels}from'./chunk-SE5EN2QL.js';import'./chunk-USRMBYI6.js';import'./chunk-H5NTJZO4.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as Document, B as BreakContent, a as Paragraph, b as Run, c as RunContent } from './agentApi-
|
|
1
|
+
import { D as Document, B as BreakContent, a as Paragraph, b as Run, c as RunContent } from './agentApi-B0688ssC.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Insert Operations Utility
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as Document, B as BreakContent, a as Paragraph, b as Run, c as RunContent } from './agentApi-
|
|
1
|
+
import { D as Document, B as BreakContent, a as Paragraph, b as Run, c as RunContent } from './agentApi-B0688ssC.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Insert Operations Utility
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var chunkNVAQQYBJ_cjs=require('./chunk-NVAQQYBJ.cjs'),
|
|
1
|
+
'use strict';var chunkNVAQQYBJ_cjs=require('./chunk-NVAQQYBJ.cjs'),chunkNKW2UER2_cjs=require('./chunk-NKW2UER2.cjs'),chunkIA4LPH2A_cjs=require('./chunk-IA4LPH2A.cjs'),chunkJ5YOIHCW_cjs=require('./chunk-J5YOIHCW.cjs'),chunkB7TICMXD_cjs=require('./chunk-B7TICMXD.cjs'),chunkMHUCHYNM_cjs=require('./chunk-MHUCHYNM.cjs'),chunkP7ZF45KZ_cjs=require('./chunk-P7ZF45KZ.cjs'),chunkCL62W2HQ_cjs=require('./chunk-CL62W2HQ.cjs'),chunkYS7FDEZ4_cjs=require('./chunk-YS7FDEZ4.cjs'),chunkKR32M3S4_cjs=require('./chunk-KR32M3S4.cjs');require('./chunk-XQNCLN4T.cjs'),require('./chunk-PCJ5ACUV.cjs');function l(n){let e=[];for(let t of n.content)t.type==="run"?e.push(c(t)):t.type==="hyperlink"&&e.push(g(t));return e.join("")}function c(n){return n.content.filter(e=>e.type==="text").map(e=>e.text).join("")}function g(n){let e=[];for(let t of n.children)t.type==="run"&&e.push(c(t));return e.join("")}function f(n){let e=[];for(let t of n.rows)for(let o of t.cells)for(let r of o.content)r.type==="paragraph"&&e.push(l(r));return e.join(" ")}function Ne(n){let e=[];for(let t of n.content)t.type==="paragraph"?e.push(l(t)):t.type==="table"&&e.push(f(t));return e.join(`
|
|
2
2
|
`)}function m(n){return n.split(/\s+/).filter(t=>t.length>0).length}function qe(n,e=true){return e?n.length:n.replace(/\s/g,"").length}function Ze(n){let e=0;for(let t of n.content)t.type==="paragraph"?e+=m(l(t)):t.type==="table"&&(e+=_e(t));return e}function _e(n){let e=0;for(let t of n.rows)for(let o of t.cells)for(let r of o.content)r.type==="paragraph"&&(e+=m(l(r)));return e}function Je(n){let e=0;for(let t of n.content)t.type==="paragraph"?e+=l(t).length:t.type==="table"&&(e+=Ue(t));return e}function Ue(n){let e=0;for(let t of n.rows)for(let o of t.cells)for(let r of o.content)r.type==="paragraph"&&(e+=l(r).length);return e}function Xe(n,e,t){let o=[],r=0,i=n[e.paragraphIndex];if(i){let s=l(i).slice(0,e.offset);o.unshift(s),r+=s.length;}for(let p=e.paragraphIndex-1;p>=0&&r<t;p--){let s=n[p];if(!s)continue;let u=l(s);o.unshift(u),r+=u.length;}let a=o.join(`
|
|
3
3
|
`);return a.length>t?"..."+a.slice(-t):a}function Ge(n,e,t){let o=[],r=0,i=n[e.paragraphIndex];if(i){let s=l(i).slice(e.offset);o.push(s),r+=s.length;}for(let p=e.paragraphIndex+1;p<n.length&&r<t;p++){let s=n[p];if(!s)continue;let u=l(s);o.push(u),r+=u.length;}let a=o.join(`
|
|
4
|
-
`);return a.length>t?a.slice(0,t)+"...":a}function Ke(n,e){let t=0;for(let o of n.content)if(o.type==="run"){let r=c(o),i=t+r.length;if(e>=t&&e<i)return o.formatting||{};t=i;}else if(o.type==="hyperlink"){let r=g(o),i=t+r.length;if(e>=t&&e<i){for(let a of o.children)if(a.type==="run")return a.formatting||{}}t=i;}return {}}function Qe(n,e){let t=0;for(let o of n.content)if(o.type==="run"){let r=c(o);t+=r.length;}else if(o.type==="hyperlink"){let r=g(o),i=t,a=t+r.length;if(e>=i&&e<a)return true;t=a;}return false}function Ye(n,e){let t=0;for(let o of n.content)if(o.type==="run"){let r=c(o);t+=r.length;}else if(o.type==="hyperlink"){let r=g(o),i=t,a=t+r.length;if(e>=i&&e<a)return o;t=a;}}function $e(n){return n?n.toLowerCase().includes("heading"):false}function et(n){if(!n)return;let e=n.match(/heading\s*(\d)/i);if(e)return parseInt(e[1],10)}function tt(n){for(let e of n.content)if(e.type==="paragraph"){for(let t of e.content)if(t.type==="run"){for(let o of t.content)if(o.type==="drawing")return true}}return false}function nt(n){for(let e of n.content)if(e.type==="paragraph"){for(let t of e.content)if(t.type==="hyperlink")return true}return false}function ot(n){return n.content.some(e=>e.type==="table")}function x(n){return n.content.filter(e=>e.type==="paragraph")}function rt(n,e){return x(n)[e]}function at(n,e){let t=0;for(let o=0;o<n.content.length;o++)if(n.content[o].type==="paragraph"){if(t===e)return o;t++;}return -1}var st="0.0.2";Object.defineProperty(exports,"DEFAULT_AI_ACTIONS",{enumerable:true,get:function(){return chunkNVAQQYBJ_cjs.g}});Object.defineProperty(exports,"comparePositions",{enumerable:true,get:function(){return chunkNVAQQYBJ_cjs.d}});Object.defineProperty(exports,"createCollapsedRange",{enumerable:true,get:function(){return chunkNVAQQYBJ_cjs.a}});Object.defineProperty(exports,"createCommand",{enumerable:true,get:function(){return chunkNVAQQYBJ_cjs.h}});Object.defineProperty(exports,"createRange",{enumerable:true,get:function(){return chunkNVAQQYBJ_cjs.b}});Object.defineProperty(exports,"getActionDescription",{enumerable:true,get:function(){return chunkNVAQQYBJ_cjs.f}});Object.defineProperty(exports,"getActionLabel",{enumerable:true,get:function(){return chunkNVAQQYBJ_cjs.e}});Object.defineProperty(exports,"isPositionInRange",{enumerable:true,get:function(){return chunkNVAQQYBJ_cjs.c}});Object.defineProperty(exports,"DocumentAgent",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.f}});Object.defineProperty(exports,"attemptSelectiveSave",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.c}});Object.defineProperty(exports,"buildExtendedSelectionContext",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.m}});Object.defineProperty(exports,"buildPatchedDocumentXml",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.b}});Object.defineProperty(exports,"buildSelectionContext",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.l}});Object.defineProperty(exports,"buildSelectionContextFromContext",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.j}});Object.defineProperty(exports,"createAgent",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.g}});Object.defineProperty(exports,"createAgentFromDocument",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.h}});Object.defineProperty(exports,"createDocumentWithText",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.e}});Object.defineProperty(exports,"createEmptyDocument",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.d}});Object.defineProperty(exports,"getAgentContext",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.i}});Object.defineProperty(exports,"getDocumentSummary",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.k}});Object.defineProperty(exports,"getSelectionFormattingSummary",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.n}});Object.defineProperty(exports,"validatePatchSafety",{enumerable:true,get:function(){return chunkKL2RYY6G_cjs.a}});Object.defineProperty(exports,"blendColors",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.l}});Object.defineProperty(exports,"colorsEqual",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.q}});Object.defineProperty(exports,"createRgbColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.i}});Object.defineProperty(exports,"createThemeColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.h}});Object.defineProperty(exports,"darkenColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.j}});Object.defineProperty(exports,"getContrastingColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.f}});Object.defineProperty(exports,"isBlack",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.d}});Object.defineProperty(exports,"isWhite",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.e}});Object.defineProperty(exports,"lightenColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.k}});Object.defineProperty(exports,"parseColorString",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.g}});Object.defineProperty(exports,"resolveColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.a}});Object.defineProperty(exports,"resolveHighlightColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.b}});Object.defineProperty(exports,"resolveShadingColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.c}});Object.defineProperty(exports,"detectVariables",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.a}});Object.defineProperty(exports,"detectVariablesDetailed",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.b}});Object.defineProperty(exports,"detectVariablesInBody",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.c}});Object.defineProperty(exports,"detectVariablesInParagraph",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.d}});Object.defineProperty(exports,"documentHasVariables",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.m}});Object.defineProperty(exports,"extractVariablesFromText",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.e}});Object.defineProperty(exports,"formatVariable",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.i}});Object.defineProperty(exports,"hasTemplateVariables",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.f}});Object.defineProperty(exports,"isValidVariableName",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.g}});Object.defineProperty(exports,"isZodSchema",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.n}});Object.defineProperty(exports,"parseVariable",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.j}});Object.defineProperty(exports,"removeVariables",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.l}});Object.defineProperty(exports,"replaceVariables",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.k}});Object.defineProperty(exports,"sanitizeVariableName",{enumerable:true,get:function(){return chunk5ILXHRJS_cjs.h}});Object.defineProperty(exports,"createTemplateProcessor",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.j}});Object.defineProperty(exports,"getMissingVariables",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.g}});Object.defineProperty(exports,"getTemplateTags",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.e}});Object.defineProperty(exports,"previewTemplate",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.h}});Object.defineProperty(exports,"processTemplate",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.a}});Object.defineProperty(exports,"processTemplateAdvanced",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.i}});Object.defineProperty(exports,"processTemplateAsBlob",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.c}});Object.defineProperty(exports,"processTemplateDetailed",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.b}});Object.defineProperty(exports,"validateTemplate",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.f}});Object.defineProperty(exports,"createDocx",{enumerable:true,get:function(){return chunkPUVSVHHB_cjs.l}});Object.defineProperty(exports,"repackDocx",{enumerable:true,get:function(){return chunkPUVSVHHB_cjs.f}});Object.defineProperty(exports,"serializeDocumentBody",{enumerable:true,get:function(){return chunkPUVSVHHB_cjs.b}});Object.defineProperty(exports,"serializeDocx",{enumerable:true,get:function(){return chunkPUVSVHHB_cjs.c}});Object.defineProperty(exports,"serializeSectionProperties",{enumerable:true,get:function(){return chunkPUVSVHHB_cjs.a}});Object.defineProperty(exports,"updateMultipleFiles",{enumerable:true,get:function(){return chunkPUVSVHHB_cjs.h}});Object.defineProperty(exports,"executeCommand",{enumerable:true,get:function(){return chunkP7ZF45KZ_cjs.a}});Object.defineProperty(exports,"executeCommands",{enumerable:true,get:function(){return chunkP7ZF45KZ_cjs.b}});Object.defineProperty(exports,"parseDocx",{enumerable:true,get:function(){return chunkPIVLDW7B_cjs.n}});Object.defineProperty(exports,"PluginRegistry",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.a}});Object.defineProperty(exports,"createPluginRegistrar",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.d}});Object.defineProperty(exports,"pluginRegistry",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.b}});Object.defineProperty(exports,"registerPlugins",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.c}});Object.defineProperty(exports,"emuToPixels",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.c}});Object.defineProperty(exports,"emuToTwips",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.e}});Object.defineProperty(exports,"formatPx",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.k}});Object.defineProperty(exports,"halfPointsToPixels",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.h}});Object.defineProperty(exports,"pixelsToEmu",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.d}});Object.defineProperty(exports,"pixelsToTwips",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.b}});Object.defineProperty(exports,"pointsToPixels",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.g}});Object.defineProperty(exports,"twipsToEmu",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.f}});Object.defineProperty(exports,"twipsToPixels",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.a}});exports.VERSION=st;exports.countCharacters=qe;exports.countWords=m;exports.getBlockIndexForParagraph=at;exports.getBodyCharacterCount=Je;exports.getBodyText=Ne;exports.getBodyWordCount=Ze;exports.getFormattingAtPosition=Ke;exports.getHyperlinkAtPosition=Ye;exports.getHyperlinkText=g;exports.getParagraphAtIndex=rt;exports.getParagraphText=l;exports.getParagraphs=x;exports.getRunText=c;exports.getTableText=f;exports.getTextAfter=Ge;exports.getTextBefore=Xe;exports.hasHyperlinks=nt;exports.hasImages=tt;exports.hasTables=ot;exports.isHeadingStyle=$e;exports.isPositionInHyperlink=Qe;exports.parseHeadingLevel=et;
|
|
4
|
+
`);return a.length>t?a.slice(0,t)+"...":a}function Ke(n,e){let t=0;for(let o of n.content)if(o.type==="run"){let r=c(o),i=t+r.length;if(e>=t&&e<i)return o.formatting||{};t=i;}else if(o.type==="hyperlink"){let r=g(o),i=t+r.length;if(e>=t&&e<i){for(let a of o.children)if(a.type==="run")return a.formatting||{}}t=i;}return {}}function Qe(n,e){let t=0;for(let o of n.content)if(o.type==="run"){let r=c(o);t+=r.length;}else if(o.type==="hyperlink"){let r=g(o),i=t,a=t+r.length;if(e>=i&&e<a)return true;t=a;}return false}function Ye(n,e){let t=0;for(let o of n.content)if(o.type==="run"){let r=c(o);t+=r.length;}else if(o.type==="hyperlink"){let r=g(o),i=t,a=t+r.length;if(e>=i&&e<a)return o;t=a;}}function $e(n){return n?n.toLowerCase().includes("heading"):false}function et(n){if(!n)return;let e=n.match(/heading\s*(\d)/i);if(e)return parseInt(e[1],10)}function tt(n){for(let e of n.content)if(e.type==="paragraph"){for(let t of e.content)if(t.type==="run"){for(let o of t.content)if(o.type==="drawing")return true}}return false}function nt(n){for(let e of n.content)if(e.type==="paragraph"){for(let t of e.content)if(t.type==="hyperlink")return true}return false}function ot(n){return n.content.some(e=>e.type==="table")}function x(n){return n.content.filter(e=>e.type==="paragraph")}function rt(n,e){return x(n)[e]}function at(n,e){let t=0;for(let o=0;o<n.content.length;o++)if(n.content[o].type==="paragraph"){if(t===e)return o;t++;}return -1}var st="0.0.2";Object.defineProperty(exports,"DEFAULT_AI_ACTIONS",{enumerable:true,get:function(){return chunkNVAQQYBJ_cjs.g}});Object.defineProperty(exports,"comparePositions",{enumerable:true,get:function(){return chunkNVAQQYBJ_cjs.d}});Object.defineProperty(exports,"createCollapsedRange",{enumerable:true,get:function(){return chunkNVAQQYBJ_cjs.a}});Object.defineProperty(exports,"createCommand",{enumerable:true,get:function(){return chunkNVAQQYBJ_cjs.h}});Object.defineProperty(exports,"createRange",{enumerable:true,get:function(){return chunkNVAQQYBJ_cjs.b}});Object.defineProperty(exports,"getActionDescription",{enumerable:true,get:function(){return chunkNVAQQYBJ_cjs.f}});Object.defineProperty(exports,"getActionLabel",{enumerable:true,get:function(){return chunkNVAQQYBJ_cjs.e}});Object.defineProperty(exports,"isPositionInRange",{enumerable:true,get:function(){return chunkNVAQQYBJ_cjs.c}});Object.defineProperty(exports,"DocumentAgent",{enumerable:true,get:function(){return chunkNKW2UER2_cjs.f}});Object.defineProperty(exports,"attemptSelectiveSave",{enumerable:true,get:function(){return chunkNKW2UER2_cjs.c}});Object.defineProperty(exports,"buildExtendedSelectionContext",{enumerable:true,get:function(){return chunkNKW2UER2_cjs.m}});Object.defineProperty(exports,"buildPatchedDocumentXml",{enumerable:true,get:function(){return chunkNKW2UER2_cjs.b}});Object.defineProperty(exports,"buildSelectionContext",{enumerable:true,get:function(){return chunkNKW2UER2_cjs.l}});Object.defineProperty(exports,"buildSelectionContextFromContext",{enumerable:true,get:function(){return chunkNKW2UER2_cjs.j}});Object.defineProperty(exports,"createAgent",{enumerable:true,get:function(){return chunkNKW2UER2_cjs.g}});Object.defineProperty(exports,"createAgentFromDocument",{enumerable:true,get:function(){return chunkNKW2UER2_cjs.h}});Object.defineProperty(exports,"createDocumentWithText",{enumerable:true,get:function(){return chunkNKW2UER2_cjs.e}});Object.defineProperty(exports,"createEmptyDocument",{enumerable:true,get:function(){return chunkNKW2UER2_cjs.d}});Object.defineProperty(exports,"getAgentContext",{enumerable:true,get:function(){return chunkNKW2UER2_cjs.i}});Object.defineProperty(exports,"getDocumentSummary",{enumerable:true,get:function(){return chunkNKW2UER2_cjs.k}});Object.defineProperty(exports,"getSelectionFormattingSummary",{enumerable:true,get:function(){return chunkNKW2UER2_cjs.n}});Object.defineProperty(exports,"validatePatchSafety",{enumerable:true,get:function(){return chunkNKW2UER2_cjs.a}});Object.defineProperty(exports,"blendColors",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.l}});Object.defineProperty(exports,"colorsEqual",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.q}});Object.defineProperty(exports,"createRgbColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.i}});Object.defineProperty(exports,"createThemeColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.h}});Object.defineProperty(exports,"darkenColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.j}});Object.defineProperty(exports,"getContrastingColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.f}});Object.defineProperty(exports,"isBlack",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.d}});Object.defineProperty(exports,"isWhite",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.e}});Object.defineProperty(exports,"lightenColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.k}});Object.defineProperty(exports,"parseColorString",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.g}});Object.defineProperty(exports,"resolveColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.a}});Object.defineProperty(exports,"resolveHighlightColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.b}});Object.defineProperty(exports,"resolveShadingColor",{enumerable:true,get:function(){return chunkIA4LPH2A_cjs.c}});Object.defineProperty(exports,"detectVariables",{enumerable:true,get:function(){return chunkJ5YOIHCW_cjs.a}});Object.defineProperty(exports,"detectVariablesDetailed",{enumerable:true,get:function(){return chunkJ5YOIHCW_cjs.b}});Object.defineProperty(exports,"detectVariablesInBody",{enumerable:true,get:function(){return chunkJ5YOIHCW_cjs.c}});Object.defineProperty(exports,"detectVariablesInParagraph",{enumerable:true,get:function(){return chunkJ5YOIHCW_cjs.d}});Object.defineProperty(exports,"documentHasVariables",{enumerable:true,get:function(){return chunkJ5YOIHCW_cjs.m}});Object.defineProperty(exports,"extractVariablesFromText",{enumerable:true,get:function(){return chunkJ5YOIHCW_cjs.e}});Object.defineProperty(exports,"formatVariable",{enumerable:true,get:function(){return chunkJ5YOIHCW_cjs.i}});Object.defineProperty(exports,"hasTemplateVariables",{enumerable:true,get:function(){return chunkJ5YOIHCW_cjs.f}});Object.defineProperty(exports,"isValidVariableName",{enumerable:true,get:function(){return chunkJ5YOIHCW_cjs.g}});Object.defineProperty(exports,"isZodSchema",{enumerable:true,get:function(){return chunkJ5YOIHCW_cjs.n}});Object.defineProperty(exports,"parseVariable",{enumerable:true,get:function(){return chunkJ5YOIHCW_cjs.j}});Object.defineProperty(exports,"removeVariables",{enumerable:true,get:function(){return chunkJ5YOIHCW_cjs.l}});Object.defineProperty(exports,"replaceVariables",{enumerable:true,get:function(){return chunkJ5YOIHCW_cjs.k}});Object.defineProperty(exports,"sanitizeVariableName",{enumerable:true,get:function(){return chunkJ5YOIHCW_cjs.h}});Object.defineProperty(exports,"createTemplateProcessor",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.j}});Object.defineProperty(exports,"getMissingVariables",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.g}});Object.defineProperty(exports,"getTemplateTags",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.e}});Object.defineProperty(exports,"previewTemplate",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.h}});Object.defineProperty(exports,"processTemplate",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.a}});Object.defineProperty(exports,"processTemplateAdvanced",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.i}});Object.defineProperty(exports,"processTemplateAsBlob",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.c}});Object.defineProperty(exports,"processTemplateDetailed",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.b}});Object.defineProperty(exports,"validateTemplate",{enumerable:true,get:function(){return chunkB7TICMXD_cjs.f}});Object.defineProperty(exports,"createDocx",{enumerable:true,get:function(){return chunkMHUCHYNM_cjs.l}});Object.defineProperty(exports,"repackDocx",{enumerable:true,get:function(){return chunkMHUCHYNM_cjs.f}});Object.defineProperty(exports,"serializeDocumentBody",{enumerable:true,get:function(){return chunkMHUCHYNM_cjs.b}});Object.defineProperty(exports,"serializeDocx",{enumerable:true,get:function(){return chunkMHUCHYNM_cjs.c}});Object.defineProperty(exports,"serializeSectionProperties",{enumerable:true,get:function(){return chunkMHUCHYNM_cjs.a}});Object.defineProperty(exports,"updateMultipleFiles",{enumerable:true,get:function(){return chunkMHUCHYNM_cjs.h}});Object.defineProperty(exports,"executeCommand",{enumerable:true,get:function(){return chunkP7ZF45KZ_cjs.a}});Object.defineProperty(exports,"executeCommands",{enumerable:true,get:function(){return chunkP7ZF45KZ_cjs.b}});Object.defineProperty(exports,"parseDocx",{enumerable:true,get:function(){return chunkCL62W2HQ_cjs.n}});Object.defineProperty(exports,"PluginRegistry",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.a}});Object.defineProperty(exports,"createPluginRegistrar",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.d}});Object.defineProperty(exports,"pluginRegistry",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.b}});Object.defineProperty(exports,"registerPlugins",{enumerable:true,get:function(){return chunkYS7FDEZ4_cjs.c}});Object.defineProperty(exports,"emuToPixels",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.c}});Object.defineProperty(exports,"emuToTwips",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.e}});Object.defineProperty(exports,"formatPx",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.k}});Object.defineProperty(exports,"halfPointsToPixels",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.h}});Object.defineProperty(exports,"pixelsToEmu",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.d}});Object.defineProperty(exports,"pixelsToTwips",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.b}});Object.defineProperty(exports,"pointsToPixels",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.g}});Object.defineProperty(exports,"twipsToEmu",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.f}});Object.defineProperty(exports,"twipsToPixels",{enumerable:true,get:function(){return chunkKR32M3S4_cjs.a}});exports.VERSION=st;exports.countCharacters=qe;exports.countWords=m;exports.getBlockIndexForParagraph=at;exports.getBodyCharacterCount=Je;exports.getBodyText=Ne;exports.getBodyWordCount=Ze;exports.getFormattingAtPosition=Ke;exports.getHyperlinkAtPosition=Ye;exports.getHyperlinkText=g;exports.getParagraphAtIndex=rt;exports.getParagraphText=l;exports.getParagraphs=x;exports.getRunText=c;exports.getTableText=f;exports.getTextAfter=Ge;exports.getTextBefore=Xe;exports.hasHyperlinks=nt;exports.hasImages=tt;exports.hasTables=ot;exports.isHeadingStyle=$e;exports.isPositionInHyperlink=Qe;exports.parseHeadingLevel=et;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { d as DocumentBody, a as Paragraph, T as TextFormatting, H as Hyperlink, b as Run, e as Table, P as Position } from './agentApi-
|
|
2
|
-
export { f as AIAction, g as AIActionRequest, A as AgentCommand, h as AgentContext, i as AgentResponse, j as ApplyStyleCommand, k as ApplyVariablesCommand, l as BlockContent, m as DEFAULT_AI_ACTIONS, n as DeleteTextCommand, D as Document, o as DocxPackage, E as Endnote, F as Footnote, p as FormatParagraphCommand, q as FormatTextCommand, I as Image, r as InsertHyperlinkCommand, s as InsertImageCommand, t as InsertTableCommand, u as InsertTextCommand, L as ListLevel, N as NumberingDefinitions, v as ParagraphContext, w as ParagraphFormatting, x as ParagraphOutline, R as Range, y as Relationship, z as ReplaceTextCommand, c as RunContent, S as SectionInfo, C as SectionProperties, G as SelectionContext, J as SetVariableCommand, K as Style, M as StyleDefinitions, O as StyleInfo, Q as SuggestedAction, U as TableCell, V as TableRow, W as TextContent, X as Theme, Y as comparePositions, Z as createCollapsedRange, _ as createCommand, $ as createRange, a0 as getActionDescription, a1 as getActionLabel, a2 as isPositionInRange } from './agentApi-
|
|
3
|
-
export { A as AgentContextOptions, S as ContextSelectionOptions, C as CreateEmptyDocumentOptions, E as ExtendedSelectionContext, F as FormattingSummary, P as ProcessTemplateOptions, a as ProcessTemplateResult, b as SelectionContextOptions, T as TemplateError, c as blendColors, d as buildExtendedSelectionContext, e as buildSelectionContext, f as buildSelectionContextFromContext, g as colorsEqual, h as createDocumentWithText, i as createEmptyDocument, j as createRgbColor, k as createTemplateProcessor, l as createThemeColor, m as darkenColor, n as emuToPixels, o as emuToTwips, p as executeCommand, q as executeCommands, r as formatPx, s as getAgentContext, t as getContrastingColor, u as getDocumentSummary, v as getMissingVariables, w as getSelectionFormattingSummary, x as getTemplateTags, y as halfPointsToPixels, z as isBlack, B as isWhite, D as lightenColor, G as parseColorString, H as parseDocx, I as pixelsToEmu, J as pixelsToTwips, K as pointsToPixels, L as previewTemplate, M as processTemplate, N as processTemplateAdvanced, O as processTemplateAsBlob, Q as processTemplateDetailed, R as resolveColor, U as resolveHighlightColor, V as resolveShadingColor, W as serializeDocumentBody, X as serializeDocx, Y as serializeSectionProperties, Z as twipsToEmu, _ as twipsToPixels, $ as validateTemplate } from './colorResolver-
|
|
4
|
-
export { b as CommandHandler, d as CommandResult, C as CorePlugin, J as JsonSchema, L as LoadedDocument, e as McpSession, f as McpToolAnnotations, g as McpToolContent, h as McpToolContext, M as McpToolDefinition, i as McpToolHandler, j as McpToolResult, C as Plugin, k as PluginCommand, b as PluginCommandHandler, l as PluginEvent, c as PluginEventListener, P as PluginOptions, a as PluginRegistrationResult, M as ToolDefinition, i as ToolHandler, j as ToolResult, Z as ZodSchemaLike, m as isZodSchema } from './types-
|
|
5
|
-
export { D as DocumentAgent, F as FormattedTextSegment, I as InsertHyperlinkOptions, a as InsertImageOptions, b as InsertTableOptions, c as InsertTextOptions, d as attemptSelectiveSave, e as createAgent, f as createAgentFromDocument } from './DocumentAgent-
|
|
6
|
-
export { P as PluginRegistry, c as createPluginRegistrar, p as pluginRegistry, r as registerPlugins } from './registry-
|
|
7
|
-
export { V as VariableDetectionResult, a as VariableOccurrence, b as buildPatchedDocumentXml, c as createDocx, d as detectVariables, e as detectVariablesDetailed, f as detectVariablesInBody, g as detectVariablesInParagraph, h as documentHasVariables, i as extractVariablesFromText, j as formatVariable, k as hasTemplateVariables, l as isValidVariableName, p as parseVariable, r as removeVariables, m as repackDocx, n as replaceVariables, s as sanitizeVariableName, u as updateMultipleFiles, v as validatePatchSafety } from './variableDetector-
|
|
1
|
+
import { d as DocumentBody, a as Paragraph, T as TextFormatting, H as Hyperlink, b as Run, e as Table, P as Position } from './agentApi-B0688ssC.cjs';
|
|
2
|
+
export { f as AIAction, g as AIActionRequest, A as AgentCommand, h as AgentContext, i as AgentResponse, j as ApplyStyleCommand, k as ApplyVariablesCommand, l as BlockContent, m as DEFAULT_AI_ACTIONS, n as DeleteTextCommand, D as Document, o as DocxPackage, E as Endnote, F as Footnote, p as FormatParagraphCommand, q as FormatTextCommand, I as Image, r as InsertHyperlinkCommand, s as InsertImageCommand, t as InsertTableCommand, u as InsertTextCommand, L as ListLevel, N as NumberingDefinitions, v as ParagraphContext, w as ParagraphFormatting, x as ParagraphOutline, R as Range, y as Relationship, z as ReplaceTextCommand, c as RunContent, S as SectionInfo, C as SectionProperties, G as SelectionContext, J as SetVariableCommand, K as Style, M as StyleDefinitions, O as StyleInfo, Q as SuggestedAction, U as TableCell, V as TableRow, W as TextContent, X as Theme, Y as comparePositions, Z as createCollapsedRange, _ as createCommand, $ as createRange, a0 as getActionDescription, a1 as getActionLabel, a2 as isPositionInRange } from './agentApi-B0688ssC.cjs';
|
|
3
|
+
export { A as AgentContextOptions, S as ContextSelectionOptions, C as CreateEmptyDocumentOptions, E as ExtendedSelectionContext, F as FormattingSummary, P as ProcessTemplateOptions, a as ProcessTemplateResult, b as SelectionContextOptions, T as TemplateError, c as blendColors, d as buildExtendedSelectionContext, e as buildSelectionContext, f as buildSelectionContextFromContext, g as colorsEqual, h as createDocumentWithText, i as createEmptyDocument, j as createRgbColor, k as createTemplateProcessor, l as createThemeColor, m as darkenColor, n as emuToPixels, o as emuToTwips, p as executeCommand, q as executeCommands, r as formatPx, s as getAgentContext, t as getContrastingColor, u as getDocumentSummary, v as getMissingVariables, w as getSelectionFormattingSummary, x as getTemplateTags, y as halfPointsToPixels, z as isBlack, B as isWhite, D as lightenColor, G as parseColorString, H as parseDocx, I as pixelsToEmu, J as pixelsToTwips, K as pointsToPixels, L as previewTemplate, M as processTemplate, N as processTemplateAdvanced, O as processTemplateAsBlob, Q as processTemplateDetailed, R as resolveColor, U as resolveHighlightColor, V as resolveShadingColor, W as serializeDocumentBody, X as serializeDocx, Y as serializeSectionProperties, Z as twipsToEmu, _ as twipsToPixels, $ as validateTemplate } from './colorResolver-DR1p8Eg-.cjs';
|
|
4
|
+
export { b as CommandHandler, d as CommandResult, C as CorePlugin, J as JsonSchema, L as LoadedDocument, e as McpSession, f as McpToolAnnotations, g as McpToolContent, h as McpToolContext, M as McpToolDefinition, i as McpToolHandler, j as McpToolResult, C as Plugin, k as PluginCommand, b as PluginCommandHandler, l as PluginEvent, c as PluginEventListener, P as PluginOptions, a as PluginRegistrationResult, M as ToolDefinition, i as ToolHandler, j as ToolResult, Z as ZodSchemaLike, m as isZodSchema } from './types-DAxXgYu5.cjs';
|
|
5
|
+
export { D as DocumentAgent, F as FormattedTextSegment, I as InsertHyperlinkOptions, a as InsertImageOptions, b as InsertTableOptions, c as InsertTextOptions, d as attemptSelectiveSave, e as createAgent, f as createAgentFromDocument } from './DocumentAgent-ZcA8CUmC.cjs';
|
|
6
|
+
export { P as PluginRegistry, c as createPluginRegistrar, p as pluginRegistry, r as registerPlugins } from './registry-CqFFeBgF.cjs';
|
|
7
|
+
export { V as VariableDetectionResult, a as VariableOccurrence, b as buildPatchedDocumentXml, c as createDocx, d as detectVariables, e as detectVariablesDetailed, f as detectVariablesInBody, g as detectVariablesInParagraph, h as documentHasVariables, i as extractVariablesFromText, j as formatVariable, k as hasTemplateVariables, l as isValidVariableName, p as parseVariable, r as removeVariables, m as repackDocx, n as replaceVariables, s as sanitizeVariableName, u as updateMultipleFiles, v as validatePatchSafety } from './variableDetector-DIeB1Nxd.cjs';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Shared Text Utilities for Agent Module
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { d as DocumentBody, a as Paragraph, T as TextFormatting, H as Hyperlink, b as Run, e as Table, P as Position } from './agentApi-
|
|
2
|
-
export { f as AIAction, g as AIActionRequest, A as AgentCommand, h as AgentContext, i as AgentResponse, j as ApplyStyleCommand, k as ApplyVariablesCommand, l as BlockContent, m as DEFAULT_AI_ACTIONS, n as DeleteTextCommand, D as Document, o as DocxPackage, E as Endnote, F as Footnote, p as FormatParagraphCommand, q as FormatTextCommand, I as Image, r as InsertHyperlinkCommand, s as InsertImageCommand, t as InsertTableCommand, u as InsertTextCommand, L as ListLevel, N as NumberingDefinitions, v as ParagraphContext, w as ParagraphFormatting, x as ParagraphOutline, R as Range, y as Relationship, z as ReplaceTextCommand, c as RunContent, S as SectionInfo, C as SectionProperties, G as SelectionContext, J as SetVariableCommand, K as Style, M as StyleDefinitions, O as StyleInfo, Q as SuggestedAction, U as TableCell, V as TableRow, W as TextContent, X as Theme, Y as comparePositions, Z as createCollapsedRange, _ as createCommand, $ as createRange, a0 as getActionDescription, a1 as getActionLabel, a2 as isPositionInRange } from './agentApi-
|
|
3
|
-
export { A as AgentContextOptions, S as ContextSelectionOptions, C as CreateEmptyDocumentOptions, E as ExtendedSelectionContext, F as FormattingSummary, P as ProcessTemplateOptions, a as ProcessTemplateResult, b as SelectionContextOptions, T as TemplateError, c as blendColors, d as buildExtendedSelectionContext, e as buildSelectionContext, f as buildSelectionContextFromContext, g as colorsEqual, h as createDocumentWithText, i as createEmptyDocument, j as createRgbColor, k as createTemplateProcessor, l as createThemeColor, m as darkenColor, n as emuToPixels, o as emuToTwips, p as executeCommand, q as executeCommands, r as formatPx, s as getAgentContext, t as getContrastingColor, u as getDocumentSummary, v as getMissingVariables, w as getSelectionFormattingSummary, x as getTemplateTags, y as halfPointsToPixels, z as isBlack, B as isWhite, D as lightenColor, G as parseColorString, H as parseDocx, I as pixelsToEmu, J as pixelsToTwips, K as pointsToPixels, L as previewTemplate, M as processTemplate, N as processTemplateAdvanced, O as processTemplateAsBlob, Q as processTemplateDetailed, R as resolveColor, U as resolveHighlightColor, V as resolveShadingColor, W as serializeDocumentBody, X as serializeDocx, Y as serializeSectionProperties, Z as twipsToEmu, _ as twipsToPixels, $ as validateTemplate } from './colorResolver-
|
|
4
|
-
export { b as CommandHandler, d as CommandResult, C as CorePlugin, J as JsonSchema, L as LoadedDocument, e as McpSession, f as McpToolAnnotations, g as McpToolContent, h as McpToolContext, M as McpToolDefinition, i as McpToolHandler, j as McpToolResult, C as Plugin, k as PluginCommand, b as PluginCommandHandler, l as PluginEvent, c as PluginEventListener, P as PluginOptions, a as PluginRegistrationResult, M as ToolDefinition, i as ToolHandler, j as ToolResult, Z as ZodSchemaLike, m as isZodSchema } from './types-
|
|
5
|
-
export { D as DocumentAgent, F as FormattedTextSegment, I as InsertHyperlinkOptions, a as InsertImageOptions, b as InsertTableOptions, c as InsertTextOptions, d as attemptSelectiveSave, e as createAgent, f as createAgentFromDocument } from './DocumentAgent-
|
|
6
|
-
export { P as PluginRegistry, c as createPluginRegistrar, p as pluginRegistry, r as registerPlugins } from './registry-
|
|
7
|
-
export { V as VariableDetectionResult, a as VariableOccurrence, b as buildPatchedDocumentXml, c as createDocx, d as detectVariables, e as detectVariablesDetailed, f as detectVariablesInBody, g as detectVariablesInParagraph, h as documentHasVariables, i as extractVariablesFromText, j as formatVariable, k as hasTemplateVariables, l as isValidVariableName, p as parseVariable, r as removeVariables, m as repackDocx, n as replaceVariables, s as sanitizeVariableName, u as updateMultipleFiles, v as validatePatchSafety } from './variableDetector-
|
|
1
|
+
import { d as DocumentBody, a as Paragraph, T as TextFormatting, H as Hyperlink, b as Run, e as Table, P as Position } from './agentApi-B0688ssC.js';
|
|
2
|
+
export { f as AIAction, g as AIActionRequest, A as AgentCommand, h as AgentContext, i as AgentResponse, j as ApplyStyleCommand, k as ApplyVariablesCommand, l as BlockContent, m as DEFAULT_AI_ACTIONS, n as DeleteTextCommand, D as Document, o as DocxPackage, E as Endnote, F as Footnote, p as FormatParagraphCommand, q as FormatTextCommand, I as Image, r as InsertHyperlinkCommand, s as InsertImageCommand, t as InsertTableCommand, u as InsertTextCommand, L as ListLevel, N as NumberingDefinitions, v as ParagraphContext, w as ParagraphFormatting, x as ParagraphOutline, R as Range, y as Relationship, z as ReplaceTextCommand, c as RunContent, S as SectionInfo, C as SectionProperties, G as SelectionContext, J as SetVariableCommand, K as Style, M as StyleDefinitions, O as StyleInfo, Q as SuggestedAction, U as TableCell, V as TableRow, W as TextContent, X as Theme, Y as comparePositions, Z as createCollapsedRange, _ as createCommand, $ as createRange, a0 as getActionDescription, a1 as getActionLabel, a2 as isPositionInRange } from './agentApi-B0688ssC.js';
|
|
3
|
+
export { A as AgentContextOptions, S as ContextSelectionOptions, C as CreateEmptyDocumentOptions, E as ExtendedSelectionContext, F as FormattingSummary, P as ProcessTemplateOptions, a as ProcessTemplateResult, b as SelectionContextOptions, T as TemplateError, c as blendColors, d as buildExtendedSelectionContext, e as buildSelectionContext, f as buildSelectionContextFromContext, g as colorsEqual, h as createDocumentWithText, i as createEmptyDocument, j as createRgbColor, k as createTemplateProcessor, l as createThemeColor, m as darkenColor, n as emuToPixels, o as emuToTwips, p as executeCommand, q as executeCommands, r as formatPx, s as getAgentContext, t as getContrastingColor, u as getDocumentSummary, v as getMissingVariables, w as getSelectionFormattingSummary, x as getTemplateTags, y as halfPointsToPixels, z as isBlack, B as isWhite, D as lightenColor, G as parseColorString, H as parseDocx, I as pixelsToEmu, J as pixelsToTwips, K as pointsToPixels, L as previewTemplate, M as processTemplate, N as processTemplateAdvanced, O as processTemplateAsBlob, Q as processTemplateDetailed, R as resolveColor, U as resolveHighlightColor, V as resolveShadingColor, W as serializeDocumentBody, X as serializeDocx, Y as serializeSectionProperties, Z as twipsToEmu, _ as twipsToPixels, $ as validateTemplate } from './colorResolver-Dk7bMHIa.js';
|
|
4
|
+
export { b as CommandHandler, d as CommandResult, C as CorePlugin, J as JsonSchema, L as LoadedDocument, e as McpSession, f as McpToolAnnotations, g as McpToolContent, h as McpToolContext, M as McpToolDefinition, i as McpToolHandler, j as McpToolResult, C as Plugin, k as PluginCommand, b as PluginCommandHandler, l as PluginEvent, c as PluginEventListener, P as PluginOptions, a as PluginRegistrationResult, M as ToolDefinition, i as ToolHandler, j as ToolResult, Z as ZodSchemaLike, m as isZodSchema } from './types-BwCYaZKB.js';
|
|
5
|
+
export { D as DocumentAgent, F as FormattedTextSegment, I as InsertHyperlinkOptions, a as InsertImageOptions, b as InsertTableOptions, c as InsertTextOptions, d as attemptSelectiveSave, e as createAgent, f as createAgentFromDocument } from './DocumentAgent-BW1-gnqM.js';
|
|
6
|
+
export { P as PluginRegistry, c as createPluginRegistrar, p as pluginRegistry, r as registerPlugins } from './registry-BHOeZbR9.js';
|
|
7
|
+
export { V as VariableDetectionResult, a as VariableOccurrence, b as buildPatchedDocumentXml, c as createDocx, d as detectVariables, e as detectVariablesDetailed, f as detectVariablesInBody, g as detectVariablesInParagraph, h as documentHasVariables, i as extractVariablesFromText, j as formatVariable, k as hasTemplateVariables, l as isValidVariableName, p as parseVariable, r as removeVariables, m as repackDocx, n as replaceVariables, s as sanitizeVariableName, u as updateMultipleFiles, v as validatePatchSafety } from './variableDetector-B2FHghLx.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Shared Text Utilities for Agent Module
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export{g as DEFAULT_AI_ACTIONS,d as comparePositions,a as createCollapsedRange,h as createCommand,b as createRange,f as getActionDescription,e as getActionLabel,c as isPositionInRange}from'./chunk-QVPR2W5S.js';export{f as DocumentAgent,c as attemptSelectiveSave,m as buildExtendedSelectionContext,b as buildPatchedDocumentXml,l as buildSelectionContext,j as buildSelectionContextFromContext,g as createAgent,h as createAgentFromDocument,e as createDocumentWithText,d as createEmptyDocument,i as getAgentContext,k as getDocumentSummary,n as getSelectionFormattingSummary,a as validatePatchSafety}from'./chunk-
|
|
1
|
+
export{g as DEFAULT_AI_ACTIONS,d as comparePositions,a as createCollapsedRange,h as createCommand,b as createRange,f as getActionDescription,e as getActionLabel,c as isPositionInRange}from'./chunk-QVPR2W5S.js';export{f as DocumentAgent,c as attemptSelectiveSave,m as buildExtendedSelectionContext,b as buildPatchedDocumentXml,l as buildSelectionContext,j as buildSelectionContextFromContext,g as createAgent,h as createAgentFromDocument,e as createDocumentWithText,d as createEmptyDocument,i as getAgentContext,k as getDocumentSummary,n as getSelectionFormattingSummary,a as validatePatchSafety}from'./chunk-T2SRPPZY.js';export{l as blendColors,q as colorsEqual,i as createRgbColor,h as createThemeColor,j as darkenColor,f as getContrastingColor,d as isBlack,e as isWhite,k as lightenColor,g as parseColorString,a as resolveColor,b as resolveHighlightColor,c as resolveShadingColor}from'./chunk-4VUZBV2S.js';export{a as detectVariables,b as detectVariablesDetailed,c as detectVariablesInBody,d as detectVariablesInParagraph,m as documentHasVariables,e as extractVariablesFromText,i as formatVariable,f as hasTemplateVariables,g as isValidVariableName,n as isZodSchema,j as parseVariable,l as removeVariables,k as replaceVariables,h as sanitizeVariableName}from'./chunk-ABNIHWGF.js';export{j as createTemplateProcessor,g as getMissingVariables,e as getTemplateTags,h as previewTemplate,a as processTemplate,i as processTemplateAdvanced,c as processTemplateAsBlob,b as processTemplateDetailed,f as validateTemplate}from'./chunk-CLDB6TL7.js';export{l as createDocx,f as repackDocx,b as serializeDocumentBody,c as serializeDocx,a as serializeSectionProperties,h as updateMultipleFiles}from'./chunk-PP54GVGD.js';export{a as executeCommand,b as executeCommands}from'./chunk-AARNCPWR.js';export{n as parseDocx}from'./chunk-YP3CXYSU.js';export{a as PluginRegistry,d as createPluginRegistrar,b as pluginRegistry,c as registerPlugins}from'./chunk-BUEMG4NW.js';export{c as emuToPixels,e as emuToTwips,k as formatPx,h as halfPointsToPixels,d as pixelsToEmu,b as pixelsToTwips,g as pointsToPixels,f as twipsToEmu,a as twipsToPixels}from'./chunk-SE5EN2QL.js';import'./chunk-USRMBYI6.js';import'./chunk-H5NTJZO4.js';function l(n){let e=[];for(let t of n.content)t.type==="run"?e.push(c(t)):t.type==="hyperlink"&&e.push(g(t));return e.join("")}function c(n){return n.content.filter(e=>e.type==="text").map(e=>e.text).join("")}function g(n){let e=[];for(let t of n.children)t.type==="run"&&e.push(c(t));return e.join("")}function f(n){let e=[];for(let t of n.rows)for(let o of t.cells)for(let r of o.content)r.type==="paragraph"&&e.push(l(r));return e.join(" ")}function Ne(n){let e=[];for(let t of n.content)t.type==="paragraph"?e.push(l(t)):t.type==="table"&&e.push(f(t));return e.join(`
|
|
2
2
|
`)}function m(n){return n.split(/\s+/).filter(t=>t.length>0).length}function qe(n,e=true){return e?n.length:n.replace(/\s/g,"").length}function Ze(n){let e=0;for(let t of n.content)t.type==="paragraph"?e+=m(l(t)):t.type==="table"&&(e+=_e(t));return e}function _e(n){let e=0;for(let t of n.rows)for(let o of t.cells)for(let r of o.content)r.type==="paragraph"&&(e+=m(l(r)));return e}function Je(n){let e=0;for(let t of n.content)t.type==="paragraph"?e+=l(t).length:t.type==="table"&&(e+=Ue(t));return e}function Ue(n){let e=0;for(let t of n.rows)for(let o of t.cells)for(let r of o.content)r.type==="paragraph"&&(e+=l(r).length);return e}function Xe(n,e,t){let o=[],r=0,i=n[e.paragraphIndex];if(i){let s=l(i).slice(0,e.offset);o.unshift(s),r+=s.length;}for(let p=e.paragraphIndex-1;p>=0&&r<t;p--){let s=n[p];if(!s)continue;let u=l(s);o.unshift(u),r+=u.length;}let a=o.join(`
|
|
3
3
|
`);return a.length>t?"..."+a.slice(-t):a}function Ge(n,e,t){let o=[],r=0,i=n[e.paragraphIndex];if(i){let s=l(i).slice(e.offset);o.push(s),r+=s.length;}for(let p=e.paragraphIndex+1;p<n.length&&r<t;p++){let s=n[p];if(!s)continue;let u=l(s);o.push(u),r+=u.length;}let a=o.join(`
|
|
4
4
|
`);return a.length>t?a.slice(0,t)+"...":a}function Ke(n,e){let t=0;for(let o of n.content)if(o.type==="run"){let r=c(o),i=t+r.length;if(e>=t&&e<i)return o.formatting||{};t=i;}else if(o.type==="hyperlink"){let r=g(o),i=t+r.length;if(e>=t&&e<i){for(let a of o.children)if(a.type==="run")return a.formatting||{}}t=i;}return {}}function Qe(n,e){let t=0;for(let o of n.content)if(o.type==="run"){let r=c(o);t+=r.length;}else if(o.type==="hyperlink"){let r=g(o),i=t,a=t+r.length;if(e>=i&&e<a)return true;t=a;}return false}function Ye(n,e){let t=0;for(let o of n.content)if(o.type==="run"){let r=c(o);t+=r.length;}else if(o.type==="hyperlink"){let r=g(o),i=t,a=t+r.length;if(e>=i&&e<a)return o;t=a;}}function $e(n){return n?n.toLowerCase().includes("heading"):false}function et(n){if(!n)return;let e=n.match(/heading\s*(\d)/i);if(e)return parseInt(e[1],10)}function tt(n){for(let e of n.content)if(e.type==="paragraph"){for(let t of e.content)if(t.type==="run"){for(let o of t.content)if(o.type==="drawing")return true}}return false}function nt(n){for(let e of n.content)if(e.type==="paragraph"){for(let t of e.content)if(t.type==="hyperlink")return true}return false}function ot(n){return n.content.some(e=>e.type==="table")}function x(n){return n.content.filter(e=>e.type==="paragraph")}function rt(n,e){return x(n)[e]}function at(n,e){let t=0;for(let o=0;o<n.content.length;o++)if(n.content[o].type==="paragraph"){if(t===e)return o;t++;}return -1}var st="0.0.2";export{st as VERSION,qe as countCharacters,m as countWords,at as getBlockIndexForParagraph,Je as getBodyCharacterCount,Ne as getBodyText,Ze as getBodyWordCount,Ke as getFormattingAtPosition,Ye as getHyperlinkAtPosition,g as getHyperlinkText,rt as getParagraphAtIndex,l as getParagraphText,x as getParagraphs,c as getRunText,f as getTableText,Ge as getTextAfter,Xe as getTextBefore,nt as hasHyperlinks,tt as hasImages,ot as hasTables,$e as isHeadingStyle,Qe as isPositionInHyperlink,et as parseHeadingLevel};
|