/** * @eigenpal/docx-editor-core (default entry point) * * Fat barrel that re-exports the parser, serializer, agent, plugin * registry, and the most-used types. No React/DOM imports. * * **When to import from `.` vs `./headless`:** identical for Node.js * use; `.` is the convenient aggregate, `./headless` is its mirror with * a slightly different name suffix. Adapter authors who only need a * specific slice should prefer the smaller subpaths (`./docx`, `./agent`, * `./prosemirror`, `./layout-*`, `./utils`) — they tree-shake better. * * @example * ```ts * import { parseDocx, serializeDocx, resolveColor } from '@eigenpal/docx-editor-core'; * ``` * @packageDocumentation * @public */ export { parseDocx } from './docx/parser.mjs'; export { s as serializeDocumentBody, a as serializeDocx, b as serializeSectionProperties } from './sectionPropertiesSerializer-Bp3ooY2t.mjs'; export { createDocx, default as repackDocx, updateMultipleFiles } from './docx/rezip.mjs'; export { a as attemptSelectiveSave } from './selectiveSave-jinP_4xa.mjs'; export { b as buildPatchedDocumentXml, v as validatePatchSafety } from './selectiveXmlPatch-ypkxlTD_.mjs'; export { C as CreateEmptyDocumentOptions, P as ProcessTemplateOptions, a as ProcessTemplateResult, z as ThemeMatrixCell, b as blendColors, c as colorsEqual, d as createDocumentWithText, e as createEmptyDocument, f as createRgbColor, h as createThemeColor, i as darkenColor, A as ensureHexPrefix, B as generateThemeTintShadeMatrix, j as getContrastingColor, l as getTemplateTags, D as getThemeTintShadeHex, m as isBlack, n as isWhite, o as lightenColor, p as parseColorString, r as processTemplate, t as processTemplateAsBlob, u as processTemplateDetailed, v as resolveColor, w as resolveHighlightColor, E as resolveHighlightToCss, x as resolveShadingColor, y as validateTemplate } from './colorResolver-BGCmWhJZ.mjs'; export { A as AgentContextOptions, D as DocumentAgent, E as ExtendedSelectionContext, e as SelectionContextOptions, f as buildExtendedSelectionContext, g as buildSelectionContext, k as executeCommand, l as executeCommands, m as getAgentContext, n as getDocumentSummary } from './selectionContext-BjMyVQZO.mjs'; export { emuToPixels, emuToTwips, formatPx, halfPointsToPixels, pixelsToEmu, pixelsToTwips, pointsToPixels, twipsToEmu, twipsToPixels } from './utils/units.mjs'; 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 isGoogleFontsEnabled, s as isLineBreak, t as isPageBreak, u as loadFont, v as loadFontFromBuffer, w as loadFonts, x as onFontsLoaded, y as preloadCommonFonts, z as removePageBreak, A as setGoogleFontsEnabled } from './fontLoader-ChYTPDqD.mjs'; export { D as DocxInput, t as toArrayBuffer } from './docxInput-DTbCa48g.mjs'; export { f as findParagraphByParaId, a as findStartPosForParaId } from './findParagraphByParaId-Maw_8M5D.mjs'; export { V as VariableDetectionResult, a as VariableOccurrence, d as detectVariables, b as detectVariablesDetailed, c as detectVariablesInBody, e as detectVariablesInParagraph, f as documentHasVariables, g as extractVariablesFromText, h as formatVariable, i as hasTemplateVariables, j as isValidVariableName, p as parseVariable, r as removeVariables, k as replaceVariables, s as sanitizeVariableName } from './variableDetector-C_OU2N8t.mjs'; import { Document } from './types/document.mjs'; export { DocxPackage } from './types/document.mjs'; export { AIAction, AIActionRequest, AgentCommand, AgentContext, AgentResponse, ApplyStyleCommand, DeleteTextCommand, FormatTextCommand, InsertHyperlinkCommand, InsertImageCommand, InsertTableCommand, InsertTextCommand, ParagraphContext, Position, Range, ReplaceTextCommand, SelectionContext, SetVariableCommand, SuggestedAction } from './types/agentApi.mjs'; export { EditorPluginCore, PanelConfig, PluginPanelProps, PositionCoordinates, RenderedDomContext } from './plugin-api/types.mjs'; export { C as CorePlugin, e as McpSession, M as McpToolDefinition, i as McpToolHandler, j as McpToolResult } from './types-DTF0N7UE.mjs'; export { P as PluginRegistry, p as pluginRegistry, r as registerPlugins } from './registry-NLnxX7pq.mjs'; export { docxtemplaterPlugin } from './core-plugins.mjs'; import { S as Subscribable } from './Subscribable-DOz6Ohoo.mjs'; import { ErrorManagerSnapshot, PluginLifecycleSnapshot, PluginLifecycleConfig } from './managers/types.mjs'; export { AutoSaveManagerOptions, AutoSaveSnapshot, AutoSaveStatus, CellCoordinates, EditorHandle, ErrorNotification, ErrorSeverity, SavedDocumentData, TableSelectionSnapshot } from './managers/types.mjs'; export { AutoSaveManager, formatLastSaveTime, formatStorageSize, getAutoSaveStatusLabel, getAutoSaveStorageSize, isAutoSaveSupported } from './managers/AutoSaveManager.mjs'; export { TABLE_DATA_ATTRIBUTES, TableSelectionManager, deleteTableFromDocument, findTableFromClick, getTableFromDocument, updateTableInDocument } from './managers/TableSelectionManager.mjs'; import { l as Run } from './content-BZ9rYecc.mjs'; export { B as BlockContent, z as BookmarkEnd, A as BookmarkStart, C as Comment, f as CommentRangeEnd, g as CommentRangeStart, h as Deletion, D as DocumentBody, E as Endnote, O as Field, V as FooterReference, F as Footnote, y as HeaderFooter, Z as HeaderReference, H as Hyperlink, I as Image, i as Insertion, M as MoveFrom, j as MoveTo, P as Paragraph, k as ParagraphContent, m as RunContent, S as SectionProperties, ak as Shape, T as Table, n as TableCell, o as TableRow, av as TextBox, p as TextContent, q as TrackedChangeInfo, r as TrackedRunChange } from './content-BZ9rYecc.mjs'; import { EditorView } from 'prosemirror-view'; export { FlowBlock, FootnoteContent, Layout, Measure, Page } from './layout-engine/types.mjs'; export { P as ParagraphFormatting, T as TextFormatting } from './formatting-DFtuRFQY.mjs'; export { C as ConvertFootnoteOptions, a as ConvertHeaderFooterOptions, F as FOOTNOTE_SEPARATOR_HEIGHT, b as FootnoteRefLocation, H as HeaderFooterMetrics, M as MAX_FOOTNOTE_LAYOUT_PASSES, c as MeasureBlocksFn, S as StabilizeFootnoteLayoutArgs, d as StabilizeFootnoteLayoutResult, e as buildFootnoteContentMap, f as buildFootnoteRenderItems, g as calculateFootnoteReservedHeights, h as collectFootnoteRefs, i as convertHeaderFooterToContent, j as footnoteReservedHeightsEqual, m as mapFootnotesToPages, s as stabilizeFootnoteLayout } from './headerFooterLayout-BGp1V3Jw.mjs'; export { L as ListLevel, a as NumberingDefinitions } from './lists-CyGxd5Y2.mjs'; export { R as Relationship, a as Style, S as StyleDefinitions, T as Theme, g as ThemeColorScheme, h as ThemeFont, i as ThemeFontScheme } from './styles-BNjUANte.mjs'; import './colors-C3vA7HUU.mjs'; import './docx/wrapTypes.mjs'; import './watermark-D90356ZM.mjs'; import 'jszip'; import 'prosemirror-model'; import 'prosemirror-state'; import './footnotes-BZ24OTAT.mjs'; /** * Framework-agnostic print helpers shared by the React and Vue * adapters. Lifted from packages/react/src/components/ui/PrintPreview.tsx * so both adapters use the same parsing / preview-window code path. * * The thin button component + the print-time CSS injection stay * adapter-local (they're framework-specific JSX/SFC bits); the data * helpers below are pure functions. */ interface PrintOptions { includeHeaders?: boolean; includeFooters?: boolean; includePageNumbers?: boolean; pageRange?: { start: number; end: number; } | null; scale?: number; printBackground?: boolean; margins?: 'default' | 'none' | 'minimum'; } declare function getDefaultPrintOptions(): PrintOptions; /** Trigger browser print dialog for the current document. */ declare function triggerPrint(): void; /** * Open a new window with print-optimised body content. * * Built entirely via DOM APIs (no `document.write` of interpolated strings): * `title` is assigned as a property so a value like `