@zeke-02/docx-editor 0.0.33 → 0.0.34
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/dist/{ClipboardManager-C0rTRkVQ.d.ts → ClipboardManager-C1l58nzE.d.ts} +1 -1
- package/dist/{ClipboardManager-CgpKW2At.d.mts → ClipboardManager-Cjb_v74d.d.mts} +1 -1
- package/dist/{DocumentAgent-BqA9EJ3F.d.mts → DocumentAgent-E8OX_8j0.d.mts} +1 -1
- package/dist/{DocumentAgent-CRCXiBT7.d.ts → DocumentAgent-iedmc_8s.d.ts} +1 -1
- package/dist/{agentApi-BVHzyk2l.d.mts → agentApi-mv532p8I.d.mts} +1 -1
- package/dist/{agentApi-BVHzyk2l.d.ts → agentApi-mv532p8I.d.ts} +1 -1
- package/dist/{clipboard-dFROLI95.d.mts → clipboard-BWhM0CRj.d.mts} +1 -1
- package/dist/{clipboard-Cu80iVDh.d.ts → clipboard-BvkuNZub.d.ts} +1 -1
- package/dist/{colorResolver-Dlmk3itT.d.ts → colorResolver-Bp9flT3l.d.ts} +2 -2
- package/dist/{colorResolver-BwI_Uxp3.d.mts → colorResolver-C5fQ4fxP.d.mts} +2 -2
- package/dist/core-plugins-reexport.d.mts +4 -4
- package/dist/core-plugins-reexport.d.ts +4 -4
- package/dist/core-reexport.d.mts +10 -10
- package/dist/core-reexport.d.ts +10 -10
- package/dist/{fontLoader-DicgJidU.d.mts → fontLoader-0G00frKD.d.mts} +1 -1
- package/dist/{fontLoader-BI9ZoACv.d.ts → fontLoader-DPdt4JvW.d.ts} +1 -1
- package/dist/headless-reexport.d.mts +7 -7
- package/dist/headless-reexport.d.ts +7 -7
- package/dist/index.d.mts +11 -11
- package/dist/index.d.ts +11 -11
- package/dist/index.js +6 -6
- package/dist/index.mjs +6 -6
- package/dist/mcp-reexport.d.mts +2 -2
- package/dist/mcp-reexport.d.ts +2 -2
- package/dist/{react-ClbvMVfH.d.mts → react-8budV7xv.d.mts} +4 -4
- package/dist/{react-CLo7chKl.d.ts → react-D6tMLo0R.d.ts} +4 -4
- package/dist/react.d.mts +5 -5
- package/dist/react.d.ts +5 -5
- package/dist/{registry-DyIMyB-0.d.mts → registry-8XOdjHGC.d.mts} +1 -1
- package/dist/{registry-CgWNVTk9.d.ts → registry-BWGKcKc1.d.ts} +1 -1
- package/dist/{types-igZ1x_e4.d.ts → types-CfAiObQo.d.ts} +1 -1
- package/dist/{types-B3LkfO0u.d.mts → types-DIBvJ7AJ.d.mts} +1 -1
- package/dist/ui.d.mts +3 -3
- package/dist/ui.d.ts +3 -3
- package/dist/{variableDetector-CkYvLv62.d.ts → variableDetector-BIJFVpkl.d.ts} +1 -1
- package/dist/{variableDetector-CIqTek7A.d.mts → variableDetector-DNO18eZ1.d.mts} +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Plugin } from 'prosemirror-state';
|
|
2
2
|
import { EditorView } from 'prosemirror-view';
|
|
3
3
|
import { Node } from 'prosemirror-model';
|
|
4
|
-
import { D as Document, e as Table, b as Run } from './agentApi-
|
|
4
|
+
import { D as Document, e as Table, b as Run } from './agentApi-mv532p8I.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Framework-Agnostic Plugin Interface for the DOCX Editor
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Plugin } from 'prosemirror-state';
|
|
2
2
|
import { EditorView } from 'prosemirror-view';
|
|
3
3
|
import { Node } from 'prosemirror-model';
|
|
4
|
-
import { D as Document, e as Table, b as Run } from './agentApi-
|
|
4
|
+
import { D as Document, e as Table, b as Run } from './agentApi-mv532p8I.mjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Framework-Agnostic Plugin Interface for the DOCX Editor
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as Document, T as TextFormatting, _ as StyleInfo, h as AgentContext, P as Position, R as Range, K as ParagraphFormatting, A as AgentCommand } from './agentApi-
|
|
1
|
+
import { D as Document, T as TextFormatting, _ as StyleInfo, h as AgentContext, P as Position, R as Range, K as ParagraphFormatting, A as AgentCommand } from './agentApi-mv532p8I.mjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Selective Save Module
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as Document, T as TextFormatting, _ as StyleInfo, h as AgentContext, P as Position, R as Range, K as ParagraphFormatting, A as AgentCommand } from './agentApi-
|
|
1
|
+
import { D as Document, T as TextFormatting, _ as StyleInfo, h as AgentContext, P as Position, R as Range, K as ParagraphFormatting, A as AgentCommand } from './agentApi-mv532p8I.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Selective Save Module
|
|
@@ -2236,4 +2236,4 @@ declare const DEFAULT_AI_ACTIONS: AIAction[];
|
|
|
2236
2236
|
*/
|
|
2237
2237
|
declare function createCommand<T extends AgentCommand>(command: Omit<T, 'id'>): T;
|
|
2238
2238
|
|
|
2239
|
-
export { type SuggestedAction as $, type AgentCommand as A, type BreakContent as B, type Comment as C, type Document as D, type Endnote as E, type Footnote as F, type ParagraphContent as G, type Hyperlink as H, type Image as I, type ParagraphContext as J, type ParagraphFormatting as K, type ListLevel as L, type MoveFrom as M, type NumberingDefinitions as N, type ParagraphOutline as O, type Position as P, type Relationship as Q, type Range as R, type ReplaceTextCommand as S, type TextFormatting as T, type SectionInfo as U, type SectionProperties as V, type SelectionContext as W, type SetVariableCommand as X, type Style as Y, type StyleDefinitions as Z, type StyleInfo as _, type Paragraph as a, type TableCell as a0, type TableRow as a1, type TextContent as a2, type Theme as a3, type TrackedChangeInfo as a4, type TrackedRunChange as a5, comparePositions as a6, createCollapsedRange as a7, createCommand as a8, createRange as a9, getActionDescription as aa, getActionLabel as ab, isPositionInRange as ac, type BookmarkEnd as ad, type BookmarkStart as ae, type Field as af, type FooterReference as ag, type HeaderFooter as ah, type HeaderReference as ai, type Shape as aj, type TextBox as ak, type ThemeColorScheme as al, type ThemeFont as am, type ThemeFontScheme as an, type ColorValue as ao, type ThemeColorSlot as ap, type
|
|
2239
|
+
export { type SuggestedAction as $, type AgentCommand as A, type BreakContent as B, type Comment as C, type Document as D, type Endnote as E, type Footnote as F, type ParagraphContent as G, type Hyperlink as H, type Image as I, type ParagraphContext as J, type ParagraphFormatting as K, type ListLevel as L, type MoveFrom as M, type NumberingDefinitions as N, type ParagraphOutline as O, type Position as P, type Relationship as Q, type Range as R, type ReplaceTextCommand as S, type TextFormatting as T, type SectionInfo as U, type SectionProperties as V, type SelectionContext as W, type SetVariableCommand as X, type Style as Y, type StyleDefinitions as Z, type StyleInfo as _, type Paragraph as a, type TableCell as a0, type TableRow as a1, type TextContent as a2, type Theme as a3, type TrackedChangeInfo as a4, type TrackedRunChange as a5, comparePositions as a6, createCollapsedRange as a7, createCommand as a8, createRange as a9, getActionDescription as aa, getActionLabel as ab, isPositionInRange as ac, type BookmarkEnd as ad, type BookmarkStart as ae, type Field as af, type FooterReference as ag, type HeaderFooter as ah, type HeaderReference as ai, type Shape as aj, type TextBox as ak, type ThemeColorScheme as al, type ThemeFont as am, type ThemeFontScheme as an, type ColorValue as ao, type ThemeColorSlot as ap, type BorderSpec as aq, type LineSpacingRule as ar, type NumberFormat as as, type ParagraphAlignment as at, type Section as au, type TableBorders as av, type TableCellFormatting as aw, type StyleType as ax, type TabStop as ay, type Run as b, type RunContent as c, type DocumentBody as d, type Table as e, type AIAction as f, type AIActionRequest as g, type AgentContext as h, type AgentResponse as i, type ApplyStyleCommand as j, type ApplyVariablesCommand as k, type BlockContent as l, type CommentRangeEnd as m, type CommentRangeStart as n, DEFAULT_AI_ACTIONS as o, type DeleteTextCommand as p, type Deletion as q, type DocxPackage as r, type FormatParagraphCommand as s, type FormatTextCommand as t, type InsertHyperlinkCommand as u, type InsertImageCommand as v, type InsertTableCommand as w, type InsertTextCommand as x, type Insertion as y, type MoveTo as z };
|
|
@@ -2236,4 +2236,4 @@ declare const DEFAULT_AI_ACTIONS: AIAction[];
|
|
|
2236
2236
|
*/
|
|
2237
2237
|
declare function createCommand<T extends AgentCommand>(command: Omit<T, 'id'>): T;
|
|
2238
2238
|
|
|
2239
|
-
export { type SuggestedAction as $, type AgentCommand as A, type BreakContent as B, type Comment as C, type Document as D, type Endnote as E, type Footnote as F, type ParagraphContent as G, type Hyperlink as H, type Image as I, type ParagraphContext as J, type ParagraphFormatting as K, type ListLevel as L, type MoveFrom as M, type NumberingDefinitions as N, type ParagraphOutline as O, type Position as P, type Relationship as Q, type Range as R, type ReplaceTextCommand as S, type TextFormatting as T, type SectionInfo as U, type SectionProperties as V, type SelectionContext as W, type SetVariableCommand as X, type Style as Y, type StyleDefinitions as Z, type StyleInfo as _, type Paragraph as a, type TableCell as a0, type TableRow as a1, type TextContent as a2, type Theme as a3, type TrackedChangeInfo as a4, type TrackedRunChange as a5, comparePositions as a6, createCollapsedRange as a7, createCommand as a8, createRange as a9, getActionDescription as aa, getActionLabel as ab, isPositionInRange as ac, type BookmarkEnd as ad, type BookmarkStart as ae, type Field as af, type FooterReference as ag, type HeaderFooter as ah, type HeaderReference as ai, type Shape as aj, type TextBox as ak, type ThemeColorScheme as al, type ThemeFont as am, type ThemeFontScheme as an, type ColorValue as ao, type ThemeColorSlot as ap, type
|
|
2239
|
+
export { type SuggestedAction as $, type AgentCommand as A, type BreakContent as B, type Comment as C, type Document as D, type Endnote as E, type Footnote as F, type ParagraphContent as G, type Hyperlink as H, type Image as I, type ParagraphContext as J, type ParagraphFormatting as K, type ListLevel as L, type MoveFrom as M, type NumberingDefinitions as N, type ParagraphOutline as O, type Position as P, type Relationship as Q, type Range as R, type ReplaceTextCommand as S, type TextFormatting as T, type SectionInfo as U, type SectionProperties as V, type SelectionContext as W, type SetVariableCommand as X, type Style as Y, type StyleDefinitions as Z, type StyleInfo as _, type Paragraph as a, type TableCell as a0, type TableRow as a1, type TextContent as a2, type Theme as a3, type TrackedChangeInfo as a4, type TrackedRunChange as a5, comparePositions as a6, createCollapsedRange as a7, createCommand as a8, createRange as a9, getActionDescription as aa, getActionLabel as ab, isPositionInRange as ac, type BookmarkEnd as ad, type BookmarkStart as ae, type Field as af, type FooterReference as ag, type HeaderFooter as ah, type HeaderReference as ai, type Shape as aj, type TextBox as ak, type ThemeColorScheme as al, type ThemeFont as am, type ThemeFontScheme as an, type ColorValue as ao, type ThemeColorSlot as ap, type BorderSpec as aq, type LineSpacingRule as ar, type NumberFormat as as, type ParagraphAlignment as at, type Section as au, type TableBorders as av, type TableCellFormatting as aw, type StyleType as ax, type TabStop as ay, type Run as b, type RunContent as c, type DocumentBody as d, type Table as e, type AIAction as f, type AIActionRequest as g, type AgentContext as h, type AgentResponse as i, type ApplyStyleCommand as j, type ApplyVariablesCommand as k, type BlockContent as l, type CommentRangeEnd as m, type CommentRangeStart as n, DEFAULT_AI_ACTIONS as o, type DeleteTextCommand as p, type Deletion as q, type DocxPackage as r, type FormatParagraphCommand as s, type FormatTextCommand as t, type InsertHyperlinkCommand as u, type InsertImageCommand as v, type InsertTableCommand as w, type InsertTextCommand as x, type Insertion as y, type MoveTo as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React__default, { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import { e as Table, a0 as TableCell, b as Run, a as Paragraph } from './agentApi-
|
|
2
|
+
import { e as Table, a0 as TableCell, b as Run, a as Paragraph } from './agentApi-mv532p8I.mjs';
|
|
3
3
|
|
|
4
4
|
var _lang = "en";
|
|
5
5
|
var common = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React__default, { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import { e as Table, a0 as TableCell, b as Run, a as Paragraph } from './agentApi-
|
|
2
|
+
import { e as Table, a0 as TableCell, b as Run, a as Paragraph } from './agentApi-mv532p8I.js';
|
|
3
3
|
|
|
4
4
|
var _lang = "en";
|
|
5
5
|
var common = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as Document, d as DocumentBody, V as SectionProperties, A as AgentCommand, h as AgentContext, R as Range, W as SelectionContext, T as TextFormatting, ao as ColorValue, a3 as Theme, ap as ThemeColorSlot, al as ThemeColorScheme } from './agentApi-
|
|
2
|
-
import { g as DocxInput } from './DocumentAgent-
|
|
1
|
+
import { D as Document, d as DocumentBody, V as SectionProperties, A as AgentCommand, h as AgentContext, R as Range, W as SelectionContext, T as TextFormatting, ao as ColorValue, a3 as Theme, ap as ThemeColorSlot, al as ThemeColorScheme } from './agentApi-mv532p8I.js';
|
|
2
|
+
import { g as DocxInput } from './DocumentAgent-iedmc_8s.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Main Parser Orchestrator - Unified parseDocx function
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as Document, d as DocumentBody, V as SectionProperties, A as AgentCommand, h as AgentContext, R as Range, W as SelectionContext, T as TextFormatting, ao as ColorValue, a3 as Theme, ap as ThemeColorSlot, al as ThemeColorScheme } from './agentApi-
|
|
2
|
-
import { g as DocxInput } from './DocumentAgent-
|
|
1
|
+
import { D as Document, d as DocumentBody, V as SectionProperties, A as AgentCommand, h as AgentContext, R as Range, W as SelectionContext, T as TextFormatting, ao as ColorValue, a3 as Theme, ap as ThemeColorSlot, al as ThemeColorScheme } from './agentApi-mv532p8I.mjs';
|
|
2
|
+
import { g as DocxInput } from './DocumentAgent-E8OX_8j0.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Main Parser Orchestrator - Unified parseDocx function
|
|
@@ -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-DIBvJ7AJ.mjs';
|
|
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-DIBvJ7AJ.mjs';
|
|
3
|
+
export { P as PluginRegistry, c as createPluginRegistrar, p as pluginRegistry, r as registerPlugins } from './registry-8XOdjHGC.mjs';
|
|
4
|
+
import './agentApi-mv532p8I.mjs';
|
|
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-CfAiObQo.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-CfAiObQo.js';
|
|
3
|
+
export { P as PluginRegistry, c as createPluginRegistrar, p as pluginRegistry, r as registerPlugins } from './registry-BWGKcKc1.js';
|
|
4
|
+
import './agentApi-mv532p8I.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Docxtemplater Plugin
|
package/dist/core-reexport.d.mts
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, ad as BookmarkEnd, ae as BookmarkStart, p as DeleteTextCommand, d as DocumentBody, r as DocxPackage, E as Endnote, af as Field, ag as FooterReference, F as Footnote, t as FormatTextCommand, ah as HeaderFooter, ai as HeaderReference, H as Hyperlink, I as Image, u as InsertHyperlinkCommand, v as InsertImageCommand, w as InsertTableCommand, x as InsertTextCommand, L as ListLevel, N as NumberingDefinitions, a as Paragraph, J as ParagraphContext, K as ParagraphFormatting, P as Position, R as Range, Q as Relationship, S as ReplaceTextCommand, b as Run, c as RunContent, V as SectionProperties, W as SelectionContext, X as SetVariableCommand, aj as Shape, Y as Style, Z as StyleDefinitions, $ as SuggestedAction, e as Table, a0 as TableCell, a1 as TableRow, ak as TextBox, a2 as TextContent, T as TextFormatting, a3 as Theme, al as ThemeColorScheme, am as ThemeFont, an 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-mv532p8I.mjs';
|
|
2
|
+
export { f as AIAction, g as AIActionRequest, A as AgentCommand, h as AgentContext, i as AgentResponse, j as ApplyStyleCommand, l as BlockContent, ad as BookmarkEnd, ae as BookmarkStart, p as DeleteTextCommand, d as DocumentBody, r as DocxPackage, E as Endnote, af as Field, ag as FooterReference, F as Footnote, t as FormatTextCommand, ah as HeaderFooter, ai as HeaderReference, H as Hyperlink, I as Image, u as InsertHyperlinkCommand, v as InsertImageCommand, w as InsertTableCommand, x as InsertTextCommand, L as ListLevel, N as NumberingDefinitions, a as Paragraph, J as ParagraphContext, K as ParagraphFormatting, P as Position, R as Range, Q as Relationship, S as ReplaceTextCommand, b as Run, c as RunContent, V as SectionProperties, W as SelectionContext, X as SetVariableCommand, aj as Shape, Y as Style, Z as StyleDefinitions, $ as SuggestedAction, e as Table, a0 as TableCell, a1 as TableRow, ak as TextBox, a2 as TextContent, T as TextFormatting, a3 as Theme, al as ThemeColorScheme, am as ThemeFont, an as ThemeFontScheme } from './agentApi-mv532p8I.mjs';
|
|
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-C5fQ4fxP.mjs';
|
|
4
|
+
import { S as Subscribable, E as ErrorManagerSnapshot, P as PluginLifecycleSnapshot, a as PluginLifecycleConfig } from './ClipboardManager-Cjb_v74d.mjs';
|
|
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-Cjb_v74d.mjs';
|
|
6
|
+
export { C as CorePlugin, e as McpSession, M as McpToolDefinition, i as McpToolHandler, j as McpToolResult } from './types-DIBvJ7AJ.mjs';
|
|
7
|
+
export { D as DocumentAgent, g as DocxInput, d as attemptSelectiveSave, t as toArrayBuffer } from './DocumentAgent-E8OX_8j0.mjs';
|
|
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-0G00frKD.mjs';
|
|
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-8XOdjHGC.mjs';
|
|
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-DNO18eZ1.mjs';
|
|
12
12
|
export { docxtemplaterPlugin } from './core-plugins-reexport.mjs';
|
|
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, ad as BookmarkEnd, ae as BookmarkStart, p as DeleteTextCommand, d as DocumentBody, r as DocxPackage, E as Endnote, af as Field, ag as FooterReference, F as Footnote, t as FormatTextCommand, ah as HeaderFooter, ai as HeaderReference, H as Hyperlink, I as Image, u as InsertHyperlinkCommand, v as InsertImageCommand, w as InsertTableCommand, x as InsertTextCommand, L as ListLevel, N as NumberingDefinitions, a as Paragraph, J as ParagraphContext, K as ParagraphFormatting, P as Position, R as Range, Q as Relationship, S as ReplaceTextCommand, b as Run, c as RunContent, V as SectionProperties, W as SelectionContext, X as SetVariableCommand, aj as Shape, Y as Style, Z as StyleDefinitions, $ as SuggestedAction, e as Table, a0 as TableCell, a1 as TableRow, ak as TextBox, a2 as TextContent, T as TextFormatting, a3 as Theme, al as ThemeColorScheme, am as ThemeFont, an 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-mv532p8I.js';
|
|
2
|
+
export { f as AIAction, g as AIActionRequest, A as AgentCommand, h as AgentContext, i as AgentResponse, j as ApplyStyleCommand, l as BlockContent, ad as BookmarkEnd, ae as BookmarkStart, p as DeleteTextCommand, d as DocumentBody, r as DocxPackage, E as Endnote, af as Field, ag as FooterReference, F as Footnote, t as FormatTextCommand, ah as HeaderFooter, ai as HeaderReference, H as Hyperlink, I as Image, u as InsertHyperlinkCommand, v as InsertImageCommand, w as InsertTableCommand, x as InsertTextCommand, L as ListLevel, N as NumberingDefinitions, a as Paragraph, J as ParagraphContext, K as ParagraphFormatting, P as Position, R as Range, Q as Relationship, S as ReplaceTextCommand, b as Run, c as RunContent, V as SectionProperties, W as SelectionContext, X as SetVariableCommand, aj as Shape, Y as Style, Z as StyleDefinitions, $ as SuggestedAction, e as Table, a0 as TableCell, a1 as TableRow, ak as TextBox, a2 as TextContent, T as TextFormatting, a3 as Theme, al as ThemeColorScheme, am as ThemeFont, an as ThemeFontScheme } from './agentApi-mv532p8I.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-Bp9flT3l.js';
|
|
4
|
+
import { S as Subscribable, E as ErrorManagerSnapshot, P as PluginLifecycleSnapshot, a as PluginLifecycleConfig } from './ClipboardManager-C1l58nzE.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-C1l58nzE.js';
|
|
6
|
+
export { C as CorePlugin, e as McpSession, M as McpToolDefinition, i as McpToolHandler, j as McpToolResult } from './types-CfAiObQo.js';
|
|
7
|
+
export { D as DocumentAgent, g as DocxInput, d as attemptSelectiveSave, t as toArrayBuffer } from './DocumentAgent-iedmc_8s.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-DPdt4JvW.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-BWGKcKc1.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-BIJFVpkl.js';
|
|
12
12
|
export { docxtemplaterPlugin } from './core-plugins-reexport.js';
|
|
13
13
|
import 'prosemirror-state';
|
|
14
14
|
import 'prosemirror-model';
|
|
@@ -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-mv532p8I.mjs';
|
|
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-mv532p8I.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Insert Operations Utility
|
|
@@ -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, C as Comment, m as CommentRangeEnd, n as CommentRangeStart, o as DEFAULT_AI_ACTIONS, p as DeleteTextCommand, q as Deletion, D as Document, r as DocxPackage, E as Endnote, F as Footnote, s as FormatParagraphCommand, t as FormatTextCommand, I as Image, u as InsertHyperlinkCommand, v as InsertImageCommand, w as InsertTableCommand, x as InsertTextCommand, y as Insertion, L as ListLevel, M as MoveFrom, z as MoveTo, N as NumberingDefinitions, G as ParagraphContent, J as ParagraphContext, K as ParagraphFormatting, O as ParagraphOutline, R as Range, Q as Relationship, S as ReplaceTextCommand, c as RunContent, U as SectionInfo, V as SectionProperties, W as SelectionContext, X as SetVariableCommand, Y as Style, Z as StyleDefinitions, _ as StyleInfo, $ as SuggestedAction, a0 as TableCell, a1 as TableRow, a2 as TextContent, a3 as Theme, a4 as TrackedChangeInfo, a5 as TrackedRunChange, a6 as comparePositions, a7 as createCollapsedRange, a8 as createCommand, a9 as createRange, aa as getActionDescription, ab as getActionLabel, ac 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-mv532p8I.mjs';
|
|
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, C as Comment, m as CommentRangeEnd, n as CommentRangeStart, o as DEFAULT_AI_ACTIONS, p as DeleteTextCommand, q as Deletion, D as Document, r as DocxPackage, E as Endnote, F as Footnote, s as FormatParagraphCommand, t as FormatTextCommand, I as Image, u as InsertHyperlinkCommand, v as InsertImageCommand, w as InsertTableCommand, x as InsertTextCommand, y as Insertion, L as ListLevel, M as MoveFrom, z as MoveTo, N as NumberingDefinitions, G as ParagraphContent, J as ParagraphContext, K as ParagraphFormatting, O as ParagraphOutline, R as Range, Q as Relationship, S as ReplaceTextCommand, c as RunContent, U as SectionInfo, V as SectionProperties, W as SelectionContext, X as SetVariableCommand, Y as Style, Z as StyleDefinitions, _ as StyleInfo, $ as SuggestedAction, a0 as TableCell, a1 as TableRow, a2 as TextContent, a3 as Theme, a4 as TrackedChangeInfo, a5 as TrackedRunChange, a6 as comparePositions, a7 as createCollapsedRange, a8 as createCommand, a9 as createRange, aa as getActionDescription, ab as getActionLabel, ac as isPositionInRange } from './agentApi-mv532p8I.mjs';
|
|
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-C5fQ4fxP.mjs';
|
|
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-DIBvJ7AJ.mjs';
|
|
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-E8OX_8j0.mjs';
|
|
6
|
+
export { P as PluginRegistry, c as createPluginRegistrar, p as pluginRegistry, r as registerPlugins } from './registry-8XOdjHGC.mjs';
|
|
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-DNO18eZ1.mjs';
|
|
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, C as Comment, m as CommentRangeEnd, n as CommentRangeStart, o as DEFAULT_AI_ACTIONS, p as DeleteTextCommand, q as Deletion, D as Document, r as DocxPackage, E as Endnote, F as Footnote, s as FormatParagraphCommand, t as FormatTextCommand, I as Image, u as InsertHyperlinkCommand, v as InsertImageCommand, w as InsertTableCommand, x as InsertTextCommand, y as Insertion, L as ListLevel, M as MoveFrom, z as MoveTo, N as NumberingDefinitions, G as ParagraphContent, J as ParagraphContext, K as ParagraphFormatting, O as ParagraphOutline, R as Range, Q as Relationship, S as ReplaceTextCommand, c as RunContent, U as SectionInfo, V as SectionProperties, W as SelectionContext, X as SetVariableCommand, Y as Style, Z as StyleDefinitions, _ as StyleInfo, $ as SuggestedAction, a0 as TableCell, a1 as TableRow, a2 as TextContent, a3 as Theme, a4 as TrackedChangeInfo, a5 as TrackedRunChange, a6 as comparePositions, a7 as createCollapsedRange, a8 as createCommand, a9 as createRange, aa as getActionDescription, ab as getActionLabel, ac 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-mv532p8I.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, C as Comment, m as CommentRangeEnd, n as CommentRangeStart, o as DEFAULT_AI_ACTIONS, p as DeleteTextCommand, q as Deletion, D as Document, r as DocxPackage, E as Endnote, F as Footnote, s as FormatParagraphCommand, t as FormatTextCommand, I as Image, u as InsertHyperlinkCommand, v as InsertImageCommand, w as InsertTableCommand, x as InsertTextCommand, y as Insertion, L as ListLevel, M as MoveFrom, z as MoveTo, N as NumberingDefinitions, G as ParagraphContent, J as ParagraphContext, K as ParagraphFormatting, O as ParagraphOutline, R as Range, Q as Relationship, S as ReplaceTextCommand, c as RunContent, U as SectionInfo, V as SectionProperties, W as SelectionContext, X as SetVariableCommand, Y as Style, Z as StyleDefinitions, _ as StyleInfo, $ as SuggestedAction, a0 as TableCell, a1 as TableRow, a2 as TextContent, a3 as Theme, a4 as TrackedChangeInfo, a5 as TrackedRunChange, a6 as comparePositions, a7 as createCollapsedRange, a8 as createCommand, a9 as createRange, aa as getActionDescription, ab as getActionLabel, ac as isPositionInRange } from './agentApi-mv532p8I.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-Bp9flT3l.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-CfAiObQo.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-iedmc_8s.js';
|
|
6
|
+
export { P as PluginRegistry, c as createPluginRegistrar, p as pluginRegistry, r as registerPlugins } from './registry-BWGKcKc1.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-BIJFVpkl.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Shared Text Utilities for Agent Module
|
package/dist/index.d.mts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { R as ReactEditorPlugin } from './react-
|
|
2
|
-
export { D as DEFAULT_SELECTION_STYLE, a as DocxEditor, b as DocxEditorHandle, c as DocxEditorProps, d as DocxEditorRef, E as EditorMode, e as EditorPlugin, f as ErrorBoundary, g as ErrorBoundaryProps, h as ErrorContextValue, i as ErrorProvider, H as HIGH_CONTRAST_SELECTION_STYLE, j as HighlightRect, P as PLUGIN_HOST_STYLES, k as ParseErrorDisplay, l as ParseErrorDisplayProps, m as PluginContext, n as PluginHost, o as PluginHostProps, p as PluginHostRef, q as ReactSidebarItem, r as RenderAsyncOptions, S as SELECTION_CSS_VARS, s as SelectionHighlightConfig, t as SelectionOverlayProps, u as SelectionRange, v as SidebarItemRenderProps, T as TableSelectionState, U as UnsupportedFeatureWarning, w as UnsupportedFeatureWarningProps, x as UseAutoSaveOptions, y as UseAutoSaveReturn, z as UseClipboardOptions, A as UseClipboardReturn, B as UseSelectionHighlightOptions, C as UseSelectionHighlightReturn, F as UseTableSelectionOptions, G as UseTableSelectionReturn, I as UseWheelZoomOptions, J as UseWheelZoomReturn, Z as ZOOM_PRESETS, K as areSelectionStylesInjected, L as clampZoom, M as clearSelection, N as createSelectionChangeHandler, O as findNearestZoomPreset, Q as formatZoom, V as generateOverlayElements, W as generateSelectionCSS, X as getHighlightRectStyle, Y as getMergedSelectionRects, _ as getNextZoomPreset, $ as getPreviousZoomPreset, a0 as getSelectedText, a1 as getSelectionBoundingRect, a2 as getSelectionRects, a3 as getUserFriendlyMessage, a4 as getZoomPresets, a5 as hasActiveSelection, a6 as highlightTextRange, a7 as injectSelectionStyles, a8 as isParseError, a9 as isSelectionBackwards, aa as isSelectionWithin, ab as isZoomPreset, ac as mergeAdjacentRects, ad as normalizeSelectionDirection, ae as parseZoom, af as removeSelectionStyles, ag as renderAsync, ah as selectRange, ai as useAutoSave, aj as useClipboard, ak as useErrorNotifications, al as useSelectionHighlight, am as useTableSelection, an as useWheelZoom } from './react-
|
|
3
|
-
export { D as DocumentAgent, g as DocxInput, t as toArrayBuffer } from './DocumentAgent-
|
|
4
|
-
export { A as AgentContextOptions, C as CreateEmptyDocumentOptions, E as ExtendedSelectionContext, P as ProcessTemplateOptions, a as ProcessTemplateResult, b as SelectionContextOptions, 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, p as executeCommand, q as executeCommands, r as formatPx, s as getAgentContext, t as getContrastingColor, u as getDocumentSummary, 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, M as processTemplate, 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-
|
|
5
|
-
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 { R as ReactEditorPlugin } from './react-8budV7xv.mjs';
|
|
2
|
+
export { D as DEFAULT_SELECTION_STYLE, a as DocxEditor, b as DocxEditorHandle, c as DocxEditorProps, d as DocxEditorRef, E as EditorMode, e as EditorPlugin, f as ErrorBoundary, g as ErrorBoundaryProps, h as ErrorContextValue, i as ErrorProvider, H as HIGH_CONTRAST_SELECTION_STYLE, j as HighlightRect, P as PLUGIN_HOST_STYLES, k as ParseErrorDisplay, l as ParseErrorDisplayProps, m as PluginContext, n as PluginHost, o as PluginHostProps, p as PluginHostRef, q as ReactSidebarItem, r as RenderAsyncOptions, S as SELECTION_CSS_VARS, s as SelectionHighlightConfig, t as SelectionOverlayProps, u as SelectionRange, v as SidebarItemRenderProps, T as TableSelectionState, U as UnsupportedFeatureWarning, w as UnsupportedFeatureWarningProps, x as UseAutoSaveOptions, y as UseAutoSaveReturn, z as UseClipboardOptions, A as UseClipboardReturn, B as UseSelectionHighlightOptions, C as UseSelectionHighlightReturn, F as UseTableSelectionOptions, G as UseTableSelectionReturn, I as UseWheelZoomOptions, J as UseWheelZoomReturn, Z as ZOOM_PRESETS, K as areSelectionStylesInjected, L as clampZoom, M as clearSelection, N as createSelectionChangeHandler, O as findNearestZoomPreset, Q as formatZoom, V as generateOverlayElements, W as generateSelectionCSS, X as getHighlightRectStyle, Y as getMergedSelectionRects, _ as getNextZoomPreset, $ as getPreviousZoomPreset, a0 as getSelectedText, a1 as getSelectionBoundingRect, a2 as getSelectionRects, a3 as getUserFriendlyMessage, a4 as getZoomPresets, a5 as hasActiveSelection, a6 as highlightTextRange, a7 as injectSelectionStyles, a8 as isParseError, a9 as isSelectionBackwards, aa as isSelectionWithin, ab as isZoomPreset, ac as mergeAdjacentRects, ad as normalizeSelectionDirection, ae as parseZoom, af as removeSelectionStyles, ag as renderAsync, ah as selectRange, ai as useAutoSave, aj as useClipboard, ak as useErrorNotifications, al as useSelectionHighlight, am as useTableSelection, an as useWheelZoom } from './react-8budV7xv.mjs';
|
|
3
|
+
export { D as DocumentAgent, g as DocxInput, t as toArrayBuffer } from './DocumentAgent-E8OX_8j0.mjs';
|
|
4
|
+
export { A as AgentContextOptions, C as CreateEmptyDocumentOptions, E as ExtendedSelectionContext, P as ProcessTemplateOptions, a as ProcessTemplateResult, b as SelectionContextOptions, 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, p as executeCommand, q as executeCommands, r as formatPx, s as getAgentContext, t as getContrastingColor, u as getDocumentSummary, 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, M as processTemplate, 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-C5fQ4fxP.mjs';
|
|
5
|
+
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-0G00frKD.mjs';
|
|
6
6
|
import { ToolbarProps } from './ui.mjs';
|
|
7
7
|
export { AdvancedColorPicker, AlignmentButtons, AlignmentButtonsProps, ColorOption, ColorPicker, ColorPickerProps, ContextMenu, ContextMenuProps, DialogKeyboardShortcut, FindMatch, FindOptions, FindReplaceDialog, FindReplaceDialogProps, FindReplaceOptions, FindReplaceState, FindResult, FontOption, FontPicker, FontPickerProps, FontSizePicker, FontSizePickerProps, HighlightOptions, HorizontalRuler, HorizontalRulerProps, HyperlinkData, HyperlinkDialog, HyperlinkDialogProps, ImageData, IndicatorPosition, IndicatorVariant, InsertImageDialog, InsertImageDialogProps, InsertSymbolDialog, InsertSymbolDialogProps, InsertTableDialog, InsertTableDialogProps, KeyboardShortcutsDialog, KeyboardShortcutsDialogProps, LineSpacingOption, LineSpacingPicker, LineSpacingPickerProps, ListButtons, ListButtonsProps, ListState, LoadingIndicator, LoadingIndicatorProps, LoadingOperation, LoadingSize, LoadingVariant, PasteOption, PasteSpecialDialog, PasteSpecialDialogProps, ResponsePreview, ResponsePreviewProps, ResponsePreviewState, ResponsiveToolbar, ResponsiveToolbarGroup, ResponsiveToolbarGroupProps, ResponsiveToolbarProps, SYMBOL_CATEGORIES, ShortcutCategory, StyleOption, StylePicker, StylePickerProps, SymbolCategory, TableBorderColorPicker, TableBorderColorPickerProps, TableBorderPicker, TableBorderPickerProps, TableBorderWidthPicker, TableBorderWidthPickerProps, TableCellFillPicker, TableCellFillPickerProps, TableConfig, TableInsertButtons, TableInsertButtonsProps, TableMergeButton, TableMergeButtonProps, TableMoreDropdown, TableMoreDropdownProps, TextContextAction, TextContextMenu, TextContextMenuItem, TextContextMenuProps, Toolbar, ToolbarButton, ToolbarGroup, ToolbarItem, ToolbarItemPriority, ToolbarSeparator, UnsavedIndicator, UnsavedIndicatorProps, UseFindReplaceReturn, UseKeyboardShortcutsDialogOptions, UseKeyboardShortcutsDialogReturn, UseLoadingOptions, UseLoadingReturn, UsePasteSpecialOptions, UsePasteSpecialReturn, UseResponsiveToolbarOptions, UseResponsiveToolbarReturn, UseTextContextMenuOptions, UseTextContextMenuReturn, UseUnsavedChangesOptions, UseUnsavedChangesReturn, ZoomControl, ZoomControlProps, calculateFitDimensions, clampTableConfig, createChangeTracker, createDefaultFindOptions, createDefaultListState, createDefaultTableConfig, createErrorResponse, createMockResponse, createSearchPattern, createToolbarItem, createToolbarItems, dataUrlToBlob, delay, escapeRegexString, findAllMatches, findInDocument, findInParagraph, formatFileSize, formatShortcutKeys, formatTableDimensions, getActionShortcut, getAllActions, getAllCategories, getAllIndicatorPositions, getAllIndicatorVariants, getAllLoadingSizes, getAllLoadingVariants, getAllPasteOptions, getCategoryLabel, getCommonShortcuts, getDefaultActions, getDefaultHighlightOptions, getDefaultPasteOption, getDefaultShortcuts, getDefaultTextContextMenuItems, getImageAcceptString, getImageDimensions, getLoadingVariantLabel, getMarginInUnits, getMatchCountText, getPasteOption, getRecommendedPriority, getRulerDimensions, getShortcutsByCategory, getSupportedImageExtensions, getSymbolCategories, getSymbolUnicodeInfo, getSymbolsByCategory, getTablePresets, getTextActionLabel, getTextActionShortcut, getVariantLabel, isActionAvailable, isEmptySearch, isPasteSpecialShortcut, isTextActionAvailable, isValidImageFile, isValidTableConfig, parseMarginFromUnits, positionToMargin, replaceAllInContent, replaceFirstInContent, scrollToMatch, searchSymbols, symbolFromCodePoint, useContextMenu, useFindReplace, useHyperlinkDialog, useInsertImageDialog, useInsertSymbolDialog, useInsertTableDialog, useKeyboardShortcutsDialog, useLoading, useLoadingOperations, usePasteSpecial, useResponsePreview, useResponsiveToolbar, useTextContextMenu, useUnsavedChanges } from './ui.mjs';
|
|
8
8
|
import { ReactNode } from 'react';
|
|
9
9
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
10
|
-
import { T as Translations, a as TranslationKey } from './clipboard-
|
|
11
|
-
export { C as CLIPBOARD_TYPES, b as ClipboardContent, c as ClipboardOptions, I as INTERNAL_CLIPBOARD_TYPE, L as LocaleStrings, P as ParsedClipboardContent, d as PartialLocaleStrings, e as PrintButton, f as PrintButtonProps, g as PrintOptions, h as PrintStyles, i as TableAction, j as TableContext, k as TableSelection, l as TableToolbar, m as TableToolbarProps, n as addColumn, o as addRow, p as cleanWordHtml, q as copyParagraphs, r as copyRuns, s as createClipboardHandlers, t as createTableContext, u as deleteColumn, v as deleteRow, w as formatPrintPageRange, x as getCellAt, y as getColumnCount, z as getDefaultPrintOptions, A as handlePasteEvent, B as htmlToRuns, D as isEditorHtml, E as isPrintSupported, F as isWordHtml, G as mergeCells, H as openPrintWindow, J as paragraphsToClipboardContent, K as parseClipboardHtml, M as parsePageRange, N as readFromClipboard, O as runsToClipboardContent, Q as splitCell, R as triggerPrint, S as writeToClipboard } from './clipboard-
|
|
12
|
-
export { f as AIAction, g as AIActionRequest, A as AgentCommand, h as AgentContext, i as AgentResponse, j as ApplyStyleCommand, l as BlockContent, ad as BookmarkEnd, ae as BookmarkStart, C as Comment, p as DeleteTextCommand, D as Document, d as DocumentBody, r as DocxPackage, E as Endnote, af as Field, ag as FooterReference, F as Footnote, t as FormatTextCommand, ah as HeaderFooter, ai as HeaderReference, H as Hyperlink, I as Image, u as InsertHyperlinkCommand, v as InsertImageCommand, w as InsertTableCommand, x as InsertTextCommand, L as ListLevel, N as NumberingDefinitions, a as Paragraph, J as ParagraphContext, K as ParagraphFormatting, P as Position, R as Range, Q as Relationship, S as ReplaceTextCommand, b as Run, c as RunContent, V as SectionProperties, W as SelectionContext, X as SetVariableCommand, aj as Shape, Y as Style, Z as StyleDefinitions, $ as SuggestedAction, e as Table, a0 as TableCell, a1 as TableRow, ak as TextBox, a2 as TextContent, T as TextFormatting, a3 as Theme, al as ThemeColorScheme, am as ThemeFont, an as ThemeFontScheme } from './agentApi-
|
|
10
|
+
import { T as Translations, a as TranslationKey } from './clipboard-BWhM0CRj.mjs';
|
|
11
|
+
export { C as CLIPBOARD_TYPES, b as ClipboardContent, c as ClipboardOptions, I as INTERNAL_CLIPBOARD_TYPE, L as LocaleStrings, P as ParsedClipboardContent, d as PartialLocaleStrings, e as PrintButton, f as PrintButtonProps, g as PrintOptions, h as PrintStyles, i as TableAction, j as TableContext, k as TableSelection, l as TableToolbar, m as TableToolbarProps, n as addColumn, o as addRow, p as cleanWordHtml, q as copyParagraphs, r as copyRuns, s as createClipboardHandlers, t as createTableContext, u as deleteColumn, v as deleteRow, w as formatPrintPageRange, x as getCellAt, y as getColumnCount, z as getDefaultPrintOptions, A as handlePasteEvent, B as htmlToRuns, D as isEditorHtml, E as isPrintSupported, F as isWordHtml, G as mergeCells, H as openPrintWindow, J as paragraphsToClipboardContent, K as parseClipboardHtml, M as parsePageRange, N as readFromClipboard, O as runsToClipboardContent, Q as splitCell, R as triggerPrint, S as writeToClipboard } from './clipboard-BWhM0CRj.mjs';
|
|
12
|
+
export { f as AIAction, g as AIActionRequest, A as AgentCommand, h as AgentContext, i as AgentResponse, j as ApplyStyleCommand, l as BlockContent, ad as BookmarkEnd, ae as BookmarkStart, aq as BorderSpec, C as Comment, p as DeleteTextCommand, D as Document, d as DocumentBody, r as DocxPackage, E as Endnote, af as Field, ag as FooterReference, F as Footnote, t as FormatTextCommand, ah as HeaderFooter, ai as HeaderReference, H as Hyperlink, I as Image, u as InsertHyperlinkCommand, v as InsertImageCommand, w as InsertTableCommand, x as InsertTextCommand, ar as LineSpacingRule, L as ListLevel, as as NumberFormat, N as NumberingDefinitions, a as Paragraph, at as ParagraphAlignment, G as ParagraphContent, J as ParagraphContext, K as ParagraphFormatting, P as Position, R as Range, Q as Relationship, S as ReplaceTextCommand, b as Run, c as RunContent, au as Section, V as SectionProperties, W as SelectionContext, X as SetVariableCommand, aj as Shape, Y as Style, Z as StyleDefinitions, $ as SuggestedAction, e as Table, av as TableBorders, a0 as TableCell, aw as TableCellFormatting, a1 as TableRow, ak as TextBox, a2 as TextContent, T as TextFormatting, a3 as Theme, al as ThemeColorScheme, am as ThemeFont, an as ThemeFontScheme } from './agentApi-mv532p8I.mjs';
|
|
13
13
|
import * as prosemirror_state from 'prosemirror-state';
|
|
14
14
|
import { Plugin, PluginKey } from 'prosemirror-state';
|
|
15
15
|
import { DecorationSet, EditorView } from 'prosemirror-view';
|
|
16
|
-
export { C as CorePlugin, e as McpSession, M as McpToolDefinition, i as McpToolHandler, j as McpToolResult } from './types-
|
|
17
|
-
export { P as PluginRegistry, p as pluginRegistry, r as registerPlugins } from './registry-
|
|
16
|
+
export { b as CommandHandler, d as CommandResult, C as CorePlugin, e as McpSession, M as McpToolDefinition, i as McpToolHandler, j as McpToolResult, k as PluginCommand, b as PluginCommandHandler } from './types-DIBvJ7AJ.mjs';
|
|
17
|
+
export { P as PluginRegistry, p as pluginRegistry, r as registerPlugins } from './registry-8XOdjHGC.mjs';
|
|
18
18
|
export { docxtemplaterPlugin } from './core-plugins-reexport.mjs';
|
|
19
|
-
export { d as AutoSaveStatus, e as ClipboardSelection, h as ErrorNotification, i as ErrorSeverity, j as PanelConfig, k as PluginPanelProps, l as PositionCoordinates, R as RenderedDomContext, m as SavedDocumentData, F as SidebarItem, G as SidebarItemContext, T as TABLE_DATA_ATTRIBUTES, p as createSelectionFromDOM, t as formatLastSaveTime, u as formatStorageSize, v as getAutoSaveStatusLabel, w as getAutoSaveStorageSize, x as getSelectionRuns, z as isAutoSaveSupported } from './ClipboardManager-
|
|
19
|
+
export { d as AutoSaveStatus, e as ClipboardSelection, h as ErrorNotification, i as ErrorSeverity, j as PanelConfig, k as PluginPanelProps, l as PositionCoordinates, R as RenderedDomContext, m as SavedDocumentData, F as SidebarItem, G as SidebarItemContext, T as TABLE_DATA_ATTRIBUTES, p as createSelectionFromDOM, t as formatLastSaveTime, u as formatStorageSize, v as getAutoSaveStatusLabel, w as getAutoSaveStorageSize, x as getSelectionRuns, z as isAutoSaveSupported } from './ClipboardManager-Cjb_v74d.mjs';
|
|
20
20
|
import 'prosemirror-model';
|
|
21
21
|
|
|
22
22
|
interface LocaleProviderProps {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { R as ReactEditorPlugin } from './react-
|
|
2
|
-
export { D as DEFAULT_SELECTION_STYLE, a as DocxEditor, b as DocxEditorHandle, c as DocxEditorProps, d as DocxEditorRef, E as EditorMode, e as EditorPlugin, f as ErrorBoundary, g as ErrorBoundaryProps, h as ErrorContextValue, i as ErrorProvider, H as HIGH_CONTRAST_SELECTION_STYLE, j as HighlightRect, P as PLUGIN_HOST_STYLES, k as ParseErrorDisplay, l as ParseErrorDisplayProps, m as PluginContext, n as PluginHost, o as PluginHostProps, p as PluginHostRef, q as ReactSidebarItem, r as RenderAsyncOptions, S as SELECTION_CSS_VARS, s as SelectionHighlightConfig, t as SelectionOverlayProps, u as SelectionRange, v as SidebarItemRenderProps, T as TableSelectionState, U as UnsupportedFeatureWarning, w as UnsupportedFeatureWarningProps, x as UseAutoSaveOptions, y as UseAutoSaveReturn, z as UseClipboardOptions, A as UseClipboardReturn, B as UseSelectionHighlightOptions, C as UseSelectionHighlightReturn, F as UseTableSelectionOptions, G as UseTableSelectionReturn, I as UseWheelZoomOptions, J as UseWheelZoomReturn, Z as ZOOM_PRESETS, K as areSelectionStylesInjected, L as clampZoom, M as clearSelection, N as createSelectionChangeHandler, O as findNearestZoomPreset, Q as formatZoom, V as generateOverlayElements, W as generateSelectionCSS, X as getHighlightRectStyle, Y as getMergedSelectionRects, _ as getNextZoomPreset, $ as getPreviousZoomPreset, a0 as getSelectedText, a1 as getSelectionBoundingRect, a2 as getSelectionRects, a3 as getUserFriendlyMessage, a4 as getZoomPresets, a5 as hasActiveSelection, a6 as highlightTextRange, a7 as injectSelectionStyles, a8 as isParseError, a9 as isSelectionBackwards, aa as isSelectionWithin, ab as isZoomPreset, ac as mergeAdjacentRects, ad as normalizeSelectionDirection, ae as parseZoom, af as removeSelectionStyles, ag as renderAsync, ah as selectRange, ai as useAutoSave, aj as useClipboard, ak as useErrorNotifications, al as useSelectionHighlight, am as useTableSelection, an as useWheelZoom } from './react-
|
|
3
|
-
export { D as DocumentAgent, g as DocxInput, t as toArrayBuffer } from './DocumentAgent-
|
|
4
|
-
export { A as AgentContextOptions, C as CreateEmptyDocumentOptions, E as ExtendedSelectionContext, P as ProcessTemplateOptions, a as ProcessTemplateResult, b as SelectionContextOptions, 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, p as executeCommand, q as executeCommands, r as formatPx, s as getAgentContext, t as getContrastingColor, u as getDocumentSummary, 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, M as processTemplate, 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-
|
|
5
|
-
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 { R as ReactEditorPlugin } from './react-D6tMLo0R.js';
|
|
2
|
+
export { D as DEFAULT_SELECTION_STYLE, a as DocxEditor, b as DocxEditorHandle, c as DocxEditorProps, d as DocxEditorRef, E as EditorMode, e as EditorPlugin, f as ErrorBoundary, g as ErrorBoundaryProps, h as ErrorContextValue, i as ErrorProvider, H as HIGH_CONTRAST_SELECTION_STYLE, j as HighlightRect, P as PLUGIN_HOST_STYLES, k as ParseErrorDisplay, l as ParseErrorDisplayProps, m as PluginContext, n as PluginHost, o as PluginHostProps, p as PluginHostRef, q as ReactSidebarItem, r as RenderAsyncOptions, S as SELECTION_CSS_VARS, s as SelectionHighlightConfig, t as SelectionOverlayProps, u as SelectionRange, v as SidebarItemRenderProps, T as TableSelectionState, U as UnsupportedFeatureWarning, w as UnsupportedFeatureWarningProps, x as UseAutoSaveOptions, y as UseAutoSaveReturn, z as UseClipboardOptions, A as UseClipboardReturn, B as UseSelectionHighlightOptions, C as UseSelectionHighlightReturn, F as UseTableSelectionOptions, G as UseTableSelectionReturn, I as UseWheelZoomOptions, J as UseWheelZoomReturn, Z as ZOOM_PRESETS, K as areSelectionStylesInjected, L as clampZoom, M as clearSelection, N as createSelectionChangeHandler, O as findNearestZoomPreset, Q as formatZoom, V as generateOverlayElements, W as generateSelectionCSS, X as getHighlightRectStyle, Y as getMergedSelectionRects, _ as getNextZoomPreset, $ as getPreviousZoomPreset, a0 as getSelectedText, a1 as getSelectionBoundingRect, a2 as getSelectionRects, a3 as getUserFriendlyMessage, a4 as getZoomPresets, a5 as hasActiveSelection, a6 as highlightTextRange, a7 as injectSelectionStyles, a8 as isParseError, a9 as isSelectionBackwards, aa as isSelectionWithin, ab as isZoomPreset, ac as mergeAdjacentRects, ad as normalizeSelectionDirection, ae as parseZoom, af as removeSelectionStyles, ag as renderAsync, ah as selectRange, ai as useAutoSave, aj as useClipboard, ak as useErrorNotifications, al as useSelectionHighlight, am as useTableSelection, an as useWheelZoom } from './react-D6tMLo0R.js';
|
|
3
|
+
export { D as DocumentAgent, g as DocxInput, t as toArrayBuffer } from './DocumentAgent-iedmc_8s.js';
|
|
4
|
+
export { A as AgentContextOptions, C as CreateEmptyDocumentOptions, E as ExtendedSelectionContext, P as ProcessTemplateOptions, a as ProcessTemplateResult, b as SelectionContextOptions, 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, p as executeCommand, q as executeCommands, r as formatPx, s as getAgentContext, t as getContrastingColor, u as getDocumentSummary, 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, M as processTemplate, 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-Bp9flT3l.js';
|
|
5
|
+
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-DPdt4JvW.js';
|
|
6
6
|
import { ToolbarProps } from './ui.js';
|
|
7
7
|
export { AdvancedColorPicker, AlignmentButtons, AlignmentButtonsProps, ColorOption, ColorPicker, ColorPickerProps, ContextMenu, ContextMenuProps, DialogKeyboardShortcut, FindMatch, FindOptions, FindReplaceDialog, FindReplaceDialogProps, FindReplaceOptions, FindReplaceState, FindResult, FontOption, FontPicker, FontPickerProps, FontSizePicker, FontSizePickerProps, HighlightOptions, HorizontalRuler, HorizontalRulerProps, HyperlinkData, HyperlinkDialog, HyperlinkDialogProps, ImageData, IndicatorPosition, IndicatorVariant, InsertImageDialog, InsertImageDialogProps, InsertSymbolDialog, InsertSymbolDialogProps, InsertTableDialog, InsertTableDialogProps, KeyboardShortcutsDialog, KeyboardShortcutsDialogProps, LineSpacingOption, LineSpacingPicker, LineSpacingPickerProps, ListButtons, ListButtonsProps, ListState, LoadingIndicator, LoadingIndicatorProps, LoadingOperation, LoadingSize, LoadingVariant, PasteOption, PasteSpecialDialog, PasteSpecialDialogProps, ResponsePreview, ResponsePreviewProps, ResponsePreviewState, ResponsiveToolbar, ResponsiveToolbarGroup, ResponsiveToolbarGroupProps, ResponsiveToolbarProps, SYMBOL_CATEGORIES, ShortcutCategory, StyleOption, StylePicker, StylePickerProps, SymbolCategory, TableBorderColorPicker, TableBorderColorPickerProps, TableBorderPicker, TableBorderPickerProps, TableBorderWidthPicker, TableBorderWidthPickerProps, TableCellFillPicker, TableCellFillPickerProps, TableConfig, TableInsertButtons, TableInsertButtonsProps, TableMergeButton, TableMergeButtonProps, TableMoreDropdown, TableMoreDropdownProps, TextContextAction, TextContextMenu, TextContextMenuItem, TextContextMenuProps, Toolbar, ToolbarButton, ToolbarGroup, ToolbarItem, ToolbarItemPriority, ToolbarSeparator, UnsavedIndicator, UnsavedIndicatorProps, UseFindReplaceReturn, UseKeyboardShortcutsDialogOptions, UseKeyboardShortcutsDialogReturn, UseLoadingOptions, UseLoadingReturn, UsePasteSpecialOptions, UsePasteSpecialReturn, UseResponsiveToolbarOptions, UseResponsiveToolbarReturn, UseTextContextMenuOptions, UseTextContextMenuReturn, UseUnsavedChangesOptions, UseUnsavedChangesReturn, ZoomControl, ZoomControlProps, calculateFitDimensions, clampTableConfig, createChangeTracker, createDefaultFindOptions, createDefaultListState, createDefaultTableConfig, createErrorResponse, createMockResponse, createSearchPattern, createToolbarItem, createToolbarItems, dataUrlToBlob, delay, escapeRegexString, findAllMatches, findInDocument, findInParagraph, formatFileSize, formatShortcutKeys, formatTableDimensions, getActionShortcut, getAllActions, getAllCategories, getAllIndicatorPositions, getAllIndicatorVariants, getAllLoadingSizes, getAllLoadingVariants, getAllPasteOptions, getCategoryLabel, getCommonShortcuts, getDefaultActions, getDefaultHighlightOptions, getDefaultPasteOption, getDefaultShortcuts, getDefaultTextContextMenuItems, getImageAcceptString, getImageDimensions, getLoadingVariantLabel, getMarginInUnits, getMatchCountText, getPasteOption, getRecommendedPriority, getRulerDimensions, getShortcutsByCategory, getSupportedImageExtensions, getSymbolCategories, getSymbolUnicodeInfo, getSymbolsByCategory, getTablePresets, getTextActionLabel, getTextActionShortcut, getVariantLabel, isActionAvailable, isEmptySearch, isPasteSpecialShortcut, isTextActionAvailable, isValidImageFile, isValidTableConfig, parseMarginFromUnits, positionToMargin, replaceAllInContent, replaceFirstInContent, scrollToMatch, searchSymbols, symbolFromCodePoint, useContextMenu, useFindReplace, useHyperlinkDialog, useInsertImageDialog, useInsertSymbolDialog, useInsertTableDialog, useKeyboardShortcutsDialog, useLoading, useLoadingOperations, usePasteSpecial, useResponsePreview, useResponsiveToolbar, useTextContextMenu, useUnsavedChanges } from './ui.js';
|
|
8
8
|
import { ReactNode } from 'react';
|
|
9
9
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
10
|
-
import { T as Translations, a as TranslationKey } from './clipboard-
|
|
11
|
-
export { C as CLIPBOARD_TYPES, b as ClipboardContent, c as ClipboardOptions, I as INTERNAL_CLIPBOARD_TYPE, L as LocaleStrings, P as ParsedClipboardContent, d as PartialLocaleStrings, e as PrintButton, f as PrintButtonProps, g as PrintOptions, h as PrintStyles, i as TableAction, j as TableContext, k as TableSelection, l as TableToolbar, m as TableToolbarProps, n as addColumn, o as addRow, p as cleanWordHtml, q as copyParagraphs, r as copyRuns, s as createClipboardHandlers, t as createTableContext, u as deleteColumn, v as deleteRow, w as formatPrintPageRange, x as getCellAt, y as getColumnCount, z as getDefaultPrintOptions, A as handlePasteEvent, B as htmlToRuns, D as isEditorHtml, E as isPrintSupported, F as isWordHtml, G as mergeCells, H as openPrintWindow, J as paragraphsToClipboardContent, K as parseClipboardHtml, M as parsePageRange, N as readFromClipboard, O as runsToClipboardContent, Q as splitCell, R as triggerPrint, S as writeToClipboard } from './clipboard-
|
|
12
|
-
export { f as AIAction, g as AIActionRequest, A as AgentCommand, h as AgentContext, i as AgentResponse, j as ApplyStyleCommand, l as BlockContent, ad as BookmarkEnd, ae as BookmarkStart, C as Comment, p as DeleteTextCommand, D as Document, d as DocumentBody, r as DocxPackage, E as Endnote, af as Field, ag as FooterReference, F as Footnote, t as FormatTextCommand, ah as HeaderFooter, ai as HeaderReference, H as Hyperlink, I as Image, u as InsertHyperlinkCommand, v as InsertImageCommand, w as InsertTableCommand, x as InsertTextCommand, L as ListLevel, N as NumberingDefinitions, a as Paragraph, J as ParagraphContext, K as ParagraphFormatting, P as Position, R as Range, Q as Relationship, S as ReplaceTextCommand, b as Run, c as RunContent, V as SectionProperties, W as SelectionContext, X as SetVariableCommand, aj as Shape, Y as Style, Z as StyleDefinitions, $ as SuggestedAction, e as Table, a0 as TableCell, a1 as TableRow, ak as TextBox, a2 as TextContent, T as TextFormatting, a3 as Theme, al as ThemeColorScheme, am as ThemeFont, an as ThemeFontScheme } from './agentApi-
|
|
10
|
+
import { T as Translations, a as TranslationKey } from './clipboard-BvkuNZub.js';
|
|
11
|
+
export { C as CLIPBOARD_TYPES, b as ClipboardContent, c as ClipboardOptions, I as INTERNAL_CLIPBOARD_TYPE, L as LocaleStrings, P as ParsedClipboardContent, d as PartialLocaleStrings, e as PrintButton, f as PrintButtonProps, g as PrintOptions, h as PrintStyles, i as TableAction, j as TableContext, k as TableSelection, l as TableToolbar, m as TableToolbarProps, n as addColumn, o as addRow, p as cleanWordHtml, q as copyParagraphs, r as copyRuns, s as createClipboardHandlers, t as createTableContext, u as deleteColumn, v as deleteRow, w as formatPrintPageRange, x as getCellAt, y as getColumnCount, z as getDefaultPrintOptions, A as handlePasteEvent, B as htmlToRuns, D as isEditorHtml, E as isPrintSupported, F as isWordHtml, G as mergeCells, H as openPrintWindow, J as paragraphsToClipboardContent, K as parseClipboardHtml, M as parsePageRange, N as readFromClipboard, O as runsToClipboardContent, Q as splitCell, R as triggerPrint, S as writeToClipboard } from './clipboard-BvkuNZub.js';
|
|
12
|
+
export { f as AIAction, g as AIActionRequest, A as AgentCommand, h as AgentContext, i as AgentResponse, j as ApplyStyleCommand, l as BlockContent, ad as BookmarkEnd, ae as BookmarkStart, aq as BorderSpec, C as Comment, p as DeleteTextCommand, D as Document, d as DocumentBody, r as DocxPackage, E as Endnote, af as Field, ag as FooterReference, F as Footnote, t as FormatTextCommand, ah as HeaderFooter, ai as HeaderReference, H as Hyperlink, I as Image, u as InsertHyperlinkCommand, v as InsertImageCommand, w as InsertTableCommand, x as InsertTextCommand, ar as LineSpacingRule, L as ListLevel, as as NumberFormat, N as NumberingDefinitions, a as Paragraph, at as ParagraphAlignment, G as ParagraphContent, J as ParagraphContext, K as ParagraphFormatting, P as Position, R as Range, Q as Relationship, S as ReplaceTextCommand, b as Run, c as RunContent, au as Section, V as SectionProperties, W as SelectionContext, X as SetVariableCommand, aj as Shape, Y as Style, Z as StyleDefinitions, $ as SuggestedAction, e as Table, av as TableBorders, a0 as TableCell, aw as TableCellFormatting, a1 as TableRow, ak as TextBox, a2 as TextContent, T as TextFormatting, a3 as Theme, al as ThemeColorScheme, am as ThemeFont, an as ThemeFontScheme } from './agentApi-mv532p8I.js';
|
|
13
13
|
import * as prosemirror_state from 'prosemirror-state';
|
|
14
14
|
import { Plugin, PluginKey } from 'prosemirror-state';
|
|
15
15
|
import { DecorationSet, EditorView } from 'prosemirror-view';
|
|
16
|
-
export { C as CorePlugin, e as McpSession, M as McpToolDefinition, i as McpToolHandler, j as McpToolResult } from './types-
|
|
17
|
-
export { P as PluginRegistry, p as pluginRegistry, r as registerPlugins } from './registry-
|
|
16
|
+
export { b as CommandHandler, d as CommandResult, C as CorePlugin, e as McpSession, M as McpToolDefinition, i as McpToolHandler, j as McpToolResult, k as PluginCommand, b as PluginCommandHandler } from './types-CfAiObQo.js';
|
|
17
|
+
export { P as PluginRegistry, p as pluginRegistry, r as registerPlugins } from './registry-BWGKcKc1.js';
|
|
18
18
|
export { docxtemplaterPlugin } from './core-plugins-reexport.js';
|
|
19
|
-
export { d as AutoSaveStatus, e as ClipboardSelection, h as ErrorNotification, i as ErrorSeverity, j as PanelConfig, k as PluginPanelProps, l as PositionCoordinates, R as RenderedDomContext, m as SavedDocumentData, F as SidebarItem, G as SidebarItemContext, T as TABLE_DATA_ATTRIBUTES, p as createSelectionFromDOM, t as formatLastSaveTime, u as formatStorageSize, v as getAutoSaveStatusLabel, w as getAutoSaveStorageSize, x as getSelectionRuns, z as isAutoSaveSupported } from './ClipboardManager-
|
|
19
|
+
export { d as AutoSaveStatus, e as ClipboardSelection, h as ErrorNotification, i as ErrorSeverity, j as PanelConfig, k as PluginPanelProps, l as PositionCoordinates, R as RenderedDomContext, m as SavedDocumentData, F as SidebarItem, G as SidebarItemContext, T as TABLE_DATA_ATTRIBUTES, p as createSelectionFromDOM, t as formatLastSaveTime, u as formatStorageSize, v as getAutoSaveStatusLabel, w as getAutoSaveStorageSize, x as getSelectionRuns, z as isAutoSaveSupported } from './ClipboardManager-C1l58nzE.js';
|
|
20
20
|
import 'prosemirror-model';
|
|
21
21
|
|
|
22
22
|
interface LocaleProviderProps {
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var chunkDLNS7XC2_js=require('./chunk-DLNS7XC2.js');require('./chunk-EV3CM6TU.js');var chunk3OKYQQQ5_js=require('./chunk-3OKYQQQ5.js'),chunkDC65PJYE_js=require('./chunk-DC65PJYE.js'),chunkAU5NVRHP_js=require('./chunk-AU5NVRHP.js'),chunk377ZVTSE_js=require('./chunk-377ZVTSE.js'),chunkQSUPYUOP_js=require('./chunk-QSUPYUOP.js'),chunkFVUGBRDD_js=require('./chunk-FVUGBRDD.js');require('./chunk-QVPR2W5S.js');var chunkP7WEP4JU_js=require('./chunk-P7WEP4JU.js'),chunk4VUZBV2S_js=require('./chunk-4VUZBV2S.js'),chunkKCOGY3V2_js=require('./chunk-KCOGY3V2.js'),chunkPB7VMDDP_js=require('./chunk-PB7VMDDP.js'),chunkZJNGMDRE_js=require('./chunk-ZJNGMDRE.js'),chunkAARNCPWR_js=require('./chunk-AARNCPWR.js'),chunkKUL2SDYC_js=require('./chunk-KUL2SDYC.js'),chunkBUEMG4NW_js=require('./chunk-BUEMG4NW.js'),chunkSE5EN2QL_js=require('./chunk-SE5EN2QL.js');require('./chunk-IFPN3NT3.js'),require('./chunk-H5NTJZO4.js');var X=require('react'),prosemirrorState=require('prosemirror-state'),prosemirrorView=require('prosemirror-view'),jsxRuntime=require('react/jsx-runtime');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var X__default=/*#__PURE__*/_interopDefault(X);function f(e){return e?/[\p{L}\p{N}_]/u.test(e):false}function w(e){return e?/\s/.test(e):false}function Si(e){return e?/[\p{P}]/u.test(e):false}function xi(e,o){if(o<=0)return 0;o>e.length&&(o=e.length);let t=o;for(;t>0&&w(e[t-1]);)t--;if(t===0)return 0;for(;t>0&&f(e[t-1]);)t--;return t}function bi(e,o){if(o>=e.length)return e.length;o<0&&(o=0);let t=o;for(;t<e.length&&f(e[t]);)t++;for(;t<e.length&&w(e[t]);)t++;return t}function L(e,o){if(o>=e.length)return e.length;let t=o;for(;t<e.length&&f(e[t]);)t++;for(;t<e.length&&!f(e[t]);)t++;return t}function O(e,o){if(o<=0)return 0;let t=o;for(;t>0&&!f(e[t-1]);)t--;for(;t>0&&f(e[t-1]);)t--;return t}function N(e,o){if(!window.getSelection())return null;let r=document.createRange();if(e.nodeType===Node.TEXT_NODE){r.setStart(e,Math.min(o,e.textContent?.length||0)),r.collapse(true);let n=r.getBoundingClientRect().top,a=0,p=o;for(;a<p;){let s=Math.floor((a+p)/2);r.setStart(e,s),r.collapse(true);let c=r.getBoundingClientRect();Math.abs(c.top-n)<2?p=s:a=s+1;}return {node:e,offset:a}}return null}function k(e,o){if(!window.getSelection())return null;let r=e.textContent?.length||0,i=document.createRange();if(e.nodeType===Node.TEXT_NODE){i.setStart(e,Math.min(o,r)),i.collapse(true);let a=i.getBoundingClientRect().top,p=o,s=r;for(;p<s;){let c=Math.ceil((p+s)/2);i.setStart(e,c),i.collapse(true);let l=i.getBoundingClientRect();Math.abs(l.top-a)<2?p=c:s=c-1;}return {node:e,offset:p}}return null}function Pi(){let e=window.getSelection();if(!e||e.rangeCount===0)return null;let o=e.getRangeAt(0);return {node:o.startContainer,offset:o.startOffset,anchorNode:e.anchorNode,anchorOffset:e.anchorOffset,focusNode:e.focusNode,focusOffset:e.focusOffset,isCollapsed:e.isCollapsed,text:e.toString()}}function C(e,o){let t=window.getSelection();if(!t)return;let r=document.createRange(),i=e.nodeType===Node.TEXT_NODE?e.textContent?.length||0:e.childNodes.length;r.setStart(e,Math.min(o,i)),r.collapse(true),t.removeAllRanges(),t.addRange(r);}function E(e,o){let t=window.getSelection();if(!(!t||!t.anchorNode))try{t.extend(e,Math.min(o,e.textContent?.length||0));}catch{let r=e.nodeType===Node.TEXT_NODE?e.textContent?.length||0:e.childNodes.length;t.setBaseAndExtent(t.anchorNode,t.anchorOffset,e,Math.min(o,r));}}function M(e,o=false){let t=window.getSelection();if(!t||t.rangeCount===0)return false;let r=t.focusNode;if(!r||r.nodeType!==Node.TEXT_NODE)return false;let i=r.textContent||"",n=t.focusOffset,a;return e==="left"?a=O(i,n):a=L(i,n),o?E(r,a):C(r,a),true}function H(e,o=false){let t=window.getSelection();if(!t||t.rangeCount===0)return false;let r=t.focusNode;if(!r)return false;if(r.nodeType===Node.TEXT_NODE){let a=e==="start"?N(r,t.focusOffset):k(r,t.focusOffset);if(a)return o?E(a.node,a.offset):C(a.node,a.offset),true}let i=r.textContent||"",n=e==="start"?0:i.length;return o?E(r,n):C(r,n),true}function K(e){let{key:o,ctrlKey:t,metaKey:r,shiftKey:i,altKey:n}=e,a=t||r;switch(o){case "ArrowLeft":if(a)return {direction:"left",unit:"word",extend:i};break;case "ArrowRight":if(a)return {direction:"right",unit:"word",extend:i};break;case "Home":return a?{direction:"left",unit:"document",extend:i}:{direction:"left",unit:"line",extend:i};case "End":return a?{direction:"right",unit:"document",extend:i}:{direction:"right",unit:"line",extend:i}}return null}function Ci(e,o){let t=K(e);if(!t)return false;switch(t.unit){case "word":if((t.direction==="left"||t.direction==="right")&&M(t.direction,t.extend))return e.preventDefault(),true;break;case "line":let r=t.direction==="left"?"start":"end";if(H(r,t.extend))return e.preventDefault(),true;break;case "document":if(t.direction==="left"&&o?.onDocumentStart)return e.preventDefault(),o.onDocumentStart(),true;if(t.direction==="right"&&o?.onDocumentEnd)return e.preventDefault(),o.onDocumentEnd(),true;break}return false}function Ei(e){let{key:o,ctrlKey:t,metaKey:r}=e;return !!((t||r)&&(o==="ArrowLeft"||o==="ArrowRight")||o==="Home"||o==="End")}function Ri(){let e=window.getSelection();if(!e||e.rangeCount===0)return false;let o=e.focusNode;if(!o||o.nodeType!==Node.TEXT_NODE)return false;let t=o.textContent||"",r=e.focusOffset,i=r,n=r;for(;i>0&&f(t[i-1]);)i--;for(;n<t.length&&f(t[n]);)n++;if(i===n)return false;let a=document.createRange();return a.setStart(o,i),a.setEnd(o,n),e.removeAllRanges(),e.addRange(a),true}function vi(){let e=window.getSelection();if(!e||e.rangeCount===0)return null;let o=e.focusNode;if(!o||o.nodeType!==Node.TEXT_NODE)return null;let t=o.textContent||"",r=e.focusOffset,i=r,n=r;for(;i>0&&f(t[i-1]);)i--;for(;n<t.length&&f(t[n]);)n++;return i===n?null:t.slice(i,n)}function Ii(e,o){let t=e.ctrlKey||e.metaKey,r=o.ctrlKey||o.metaKey;return e.key.toLowerCase()===o.key.toLowerCase()&&t===!!r&&e.shiftKey===!!o.shiftKey&&e.altKey===!!o.altKey}var u={wordLeft:{key:"ArrowLeft",ctrlKey:true},wordRight:{key:"ArrowRight",ctrlKey:true},selectWordLeft:{key:"ArrowLeft",ctrlKey:true,shiftKey:true},selectWordRight:{key:"ArrowRight",ctrlKey:true,shiftKey:true},lineStart:{key:"Home"},lineEnd:{key:"End"},selectToLineStart:{key:"Home",shiftKey:true},selectToLineEnd:{key:"End",shiftKey:true},documentStart:{key:"Home",ctrlKey:true},documentEnd:{key:"End",ctrlKey:true},selectToDocumentStart:{key:"Home",ctrlKey:true,shiftKey:true},selectToDocumentEnd:{key:"End",ctrlKey:true,shiftKey:true}};function m(e){let o=[];if(e.ctrlKey||e.metaKey){let r=typeof navigator<"u"&&/Mac/i.test(navigator.platform);o.push(r?"\u2318":"Ctrl");}e.shiftKey&&o.push("Shift"),e.altKey&&o.push("Alt");let t=e.key;return t==="ArrowLeft"?t="\u2190":t==="ArrowRight"?t="\u2192":t==="ArrowUp"?t="\u2191":t==="ArrowDown"&&(t="\u2193"),o.push(t),o.join("+")}function wi(){return [{action:"Move by word (left)",shortcut:m(u.wordLeft)},{action:"Move by word (right)",shortcut:m(u.wordRight)},{action:"Select word (left)",shortcut:m(u.selectWordLeft)},{action:"Select word (right)",shortcut:m(u.selectWordRight)},{action:"Go to line start",shortcut:m(u.lineStart)},{action:"Go to line end",shortcut:m(u.lineEnd)},{action:"Select to line start",shortcut:m(u.selectToLineStart)},{action:"Select to line end",shortcut:m(u.selectToLineEnd)},{action:"Go to document start",shortcut:m(u.documentStart)},{action:"Go to document end",shortcut:m(u.documentEnd)},{action:"Select to document start",shortcut:m(u.selectToDocumentStart)},{action:"Select to document end",shortcut:m(u.selectToDocumentEnd)}]}var B=/\{([#/^@]?)([a-zA-Z_][a-zA-Z0-9_]*(?:\.[a-zA-Z_][a-zA-Z0-9_]*)*)\}/g,d=new prosemirrorState.PluginKey("template");function Oi(e,o,t){return `${e}:${o}:${t}`}function _(e){let o=[];e.descendants((s,c)=>(s.isText&&s.text&&o.push({text:s.text,pos:c}),true));let t="",r=[];for(let s of o){for(let c=0;c<s.text.length;c++)r.push(s.pos+c);t+=s.text;}let i=[],n=[],a=new Map,p;for(B.lastIndex=0;(p=B.exec(t))!==null;){let[s,c,l]=p,y=r[p.index],h=r[p.index+s.length-1]+1,g;c==="#"?g="sectionStart":c==="/"?g="sectionEnd":c==="^"?g="invertedStart":c==="@"?g="raw":g="variable";let T=`${g}:${l}`,D=a.get(T)??0;a.set(T,D+1);let P={id:Oi(g,l,D),type:g,name:l,rawTag:s,from:y,to:h};if(g==="sectionStart"||g==="invertedStart")P.nestedVars=[],n.push(P);else if(g==="sectionEnd"){for(let x=n.length-1;x>=0;x--)if(n[x].name===l){n.splice(x,1);break}}else g==="variable"&&n.length>0&&(n[n.length-1].nestedVars?.push(l),P.insideSection=true);i.push(P);}return i}function Ni(e){switch(e){case "sectionStart":case "sectionEnd":return "#3b82f6";case "invertedStart":return "#8b5cf6";case "raw":return "#ef4444";default:return "#f59e0b"}}function A(e,o,t,r){let i=[];for(let n of o){let a=n.id===t,p=n.id===r,s=Ni(n.type),c=["docx-template-tag"];a&&c.push("hovered"),p&&c.push("selected"),i.push(prosemirrorView.Decoration.inline(n.from,n.to,{class:c.join(" "),"data-tag-id":n.id,style:`background-color: ${s}22; border-radius: 2px;`}));}return prosemirrorView.DecorationSet.create(e,i)}function ki(e,o){if(e.length!==o.length)return false;for(let t=0;t<e.length;t++)if(e[t].id!==o[t].id)return false;return true}function R(){return new prosemirrorState.Plugin({key:d,state:{init(e,o){let t=_(o.doc);return {tags:t,decorations:A(o.doc,t)}},apply(e,o,t,r){if(e.docChanged){let n=_(r.doc),a=ki(o.tags,n);return {tags:n,decorations:a?o.decorations.map(e.mapping,e.doc):A(r.doc,n,o.hoveredId,o.selectedId),hoveredId:o.hoveredId,selectedId:o.selectedId}}let i=e.getMeta(d);if(i){let n=i.hoveredId??o.hoveredId,a=i.selectedId??o.selectedId;return {...o,hoveredId:n,selectedId:a,decorations:A(r.doc,o.tags,n,a)}}return {...o,decorations:o.decorations.map(e.mapping,e.doc)}}},props:{decorations(e){return d.getState(e)?.decorations??prosemirrorView.DecorationSet.empty},handleClick(e,o){let r=(d.getState(e.state)?.tags??[]).find(n=>o>=n.from&&o<=n.to);return r?(e.dispatch(e.state.tr.setMeta(d,{selectedId:r.id})),true):(d.getState(e.state)?.selectedId&&e.dispatch(e.state.tr.setMeta(d,{selectedId:void 0})),false)},handleDOMEvents:{mouseover(e,o){let r=o.target.closest?.("[data-tag-id]")?.getAttribute("data-tag-id")||void 0,i=d.getState(e.state)?.hoveredId;return r!==i&&e.dispatch(e.state.tr.setMeta(d,{hoveredId:r})),false},mouseout(e,o){return o.relatedTarget?.closest?.("[data-tag-id]")||d.getState(e.state)?.hoveredId&&e.dispatch(e.state.tr.setMeta(d,{hoveredId:void 0})),false}}}})}function W(e){return d.getState(e)?.tags??[]}function b(e,o){e.dispatch(e.state.tr.setMeta(d,{hoveredId:o}));}function v(e,o){e.dispatch(e.state.tr.setMeta(d,{selectedId:o}));}var I=`
|
|
1
|
+
'use strict';var chunkDLNS7XC2_js=require('./chunk-DLNS7XC2.js');require('./chunk-EV3CM6TU.js');var chunk3OKYQQQ5_js=require('./chunk-3OKYQQQ5.js'),chunkDC65PJYE_js=require('./chunk-DC65PJYE.js'),chunkAU5NVRHP_js=require('./chunk-AU5NVRHP.js'),chunk377ZVTSE_js=require('./chunk-377ZVTSE.js'),chunkQSUPYUOP_js=require('./chunk-QSUPYUOP.js'),chunkFVUGBRDD_js=require('./chunk-FVUGBRDD.js');require('./chunk-QVPR2W5S.js');var chunkP7WEP4JU_js=require('./chunk-P7WEP4JU.js'),chunk4VUZBV2S_js=require('./chunk-4VUZBV2S.js'),chunkKCOGY3V2_js=require('./chunk-KCOGY3V2.js'),chunkPB7VMDDP_js=require('./chunk-PB7VMDDP.js'),chunkZJNGMDRE_js=require('./chunk-ZJNGMDRE.js'),chunkAARNCPWR_js=require('./chunk-AARNCPWR.js'),chunkKUL2SDYC_js=require('./chunk-KUL2SDYC.js'),chunkBUEMG4NW_js=require('./chunk-BUEMG4NW.js'),chunkSE5EN2QL_js=require('./chunk-SE5EN2QL.js');require('./chunk-IFPN3NT3.js'),require('./chunk-H5NTJZO4.js');var X=require('react'),prosemirrorState=require('prosemirror-state'),prosemirrorView=require('prosemirror-view'),jsxRuntime=require('react/jsx-runtime');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var X__default=/*#__PURE__*/_interopDefault(X);function f(e){return e?/[\p{L}\p{N}_]/u.test(e):false}function w(e){return e?/\s/.test(e):false}function Si(e){return e?/[\p{P}]/u.test(e):false}function bi(e,o){if(o<=0)return 0;o>e.length&&(o=e.length);let t=o;for(;t>0&&w(e[t-1]);)t--;if(t===0)return 0;for(;t>0&&f(e[t-1]);)t--;return t}function xi(e,o){if(o>=e.length)return e.length;o<0&&(o=0);let t=o;for(;t<e.length&&f(e[t]);)t++;for(;t<e.length&&w(e[t]);)t++;return t}function L(e,o){if(o>=e.length)return e.length;let t=o;for(;t<e.length&&f(e[t]);)t++;for(;t<e.length&&!f(e[t]);)t++;return t}function O(e,o){if(o<=0)return 0;let t=o;for(;t>0&&!f(e[t-1]);)t--;for(;t>0&&f(e[t-1]);)t--;return t}function N(e,o){if(!window.getSelection())return null;let r=document.createRange();if(e.nodeType===Node.TEXT_NODE){r.setStart(e,Math.min(o,e.textContent?.length||0)),r.collapse(true);let n=r.getBoundingClientRect().top,a=0,p=o;for(;a<p;){let s=Math.floor((a+p)/2);r.setStart(e,s),r.collapse(true);let c=r.getBoundingClientRect();Math.abs(c.top-n)<2?p=s:a=s+1;}return {node:e,offset:a}}return null}function k(e,o){if(!window.getSelection())return null;let r=e.textContent?.length||0,i=document.createRange();if(e.nodeType===Node.TEXT_NODE){i.setStart(e,Math.min(o,r)),i.collapse(true);let a=i.getBoundingClientRect().top,p=o,s=r;for(;p<s;){let c=Math.ceil((p+s)/2);i.setStart(e,c),i.collapse(true);let l=i.getBoundingClientRect();Math.abs(l.top-a)<2?p=c:s=c-1;}return {node:e,offset:p}}return null}function Pi(){let e=window.getSelection();if(!e||e.rangeCount===0)return null;let o=e.getRangeAt(0);return {node:o.startContainer,offset:o.startOffset,anchorNode:e.anchorNode,anchorOffset:e.anchorOffset,focusNode:e.focusNode,focusOffset:e.focusOffset,isCollapsed:e.isCollapsed,text:e.toString()}}function C(e,o){let t=window.getSelection();if(!t)return;let r=document.createRange(),i=e.nodeType===Node.TEXT_NODE?e.textContent?.length||0:e.childNodes.length;r.setStart(e,Math.min(o,i)),r.collapse(true),t.removeAllRanges(),t.addRange(r);}function E(e,o){let t=window.getSelection();if(!(!t||!t.anchorNode))try{t.extend(e,Math.min(o,e.textContent?.length||0));}catch{let r=e.nodeType===Node.TEXT_NODE?e.textContent?.length||0:e.childNodes.length;t.setBaseAndExtent(t.anchorNode,t.anchorOffset,e,Math.min(o,r));}}function M(e,o=false){let t=window.getSelection();if(!t||t.rangeCount===0)return false;let r=t.focusNode;if(!r||r.nodeType!==Node.TEXT_NODE)return false;let i=r.textContent||"",n=t.focusOffset,a;return e==="left"?a=O(i,n):a=L(i,n),o?E(r,a):C(r,a),true}function H(e,o=false){let t=window.getSelection();if(!t||t.rangeCount===0)return false;let r=t.focusNode;if(!r)return false;if(r.nodeType===Node.TEXT_NODE){let a=e==="start"?N(r,t.focusOffset):k(r,t.focusOffset);if(a)return o?E(a.node,a.offset):C(a.node,a.offset),true}let i=r.textContent||"",n=e==="start"?0:i.length;return o?E(r,n):C(r,n),true}function K(e){let{key:o,ctrlKey:t,metaKey:r,shiftKey:i,altKey:n}=e,a=t||r;switch(o){case "ArrowLeft":if(a)return {direction:"left",unit:"word",extend:i};break;case "ArrowRight":if(a)return {direction:"right",unit:"word",extend:i};break;case "Home":return a?{direction:"left",unit:"document",extend:i}:{direction:"left",unit:"line",extend:i};case "End":return a?{direction:"right",unit:"document",extend:i}:{direction:"right",unit:"line",extend:i}}return null}function Ci(e,o){let t=K(e);if(!t)return false;switch(t.unit){case "word":if((t.direction==="left"||t.direction==="right")&&M(t.direction,t.extend))return e.preventDefault(),true;break;case "line":let r=t.direction==="left"?"start":"end";if(H(r,t.extend))return e.preventDefault(),true;break;case "document":if(t.direction==="left"&&o?.onDocumentStart)return e.preventDefault(),o.onDocumentStart(),true;if(t.direction==="right"&&o?.onDocumentEnd)return e.preventDefault(),o.onDocumentEnd(),true;break}return false}function Ei(e){let{key:o,ctrlKey:t,metaKey:r}=e;return !!((t||r)&&(o==="ArrowLeft"||o==="ArrowRight")||o==="Home"||o==="End")}function Ri(){let e=window.getSelection();if(!e||e.rangeCount===0)return false;let o=e.focusNode;if(!o||o.nodeType!==Node.TEXT_NODE)return false;let t=o.textContent||"",r=e.focusOffset,i=r,n=r;for(;i>0&&f(t[i-1]);)i--;for(;n<t.length&&f(t[n]);)n++;if(i===n)return false;let a=document.createRange();return a.setStart(o,i),a.setEnd(o,n),e.removeAllRanges(),e.addRange(a),true}function vi(){let e=window.getSelection();if(!e||e.rangeCount===0)return null;let o=e.focusNode;if(!o||o.nodeType!==Node.TEXT_NODE)return null;let t=o.textContent||"",r=e.focusOffset,i=r,n=r;for(;i>0&&f(t[i-1]);)i--;for(;n<t.length&&f(t[n]);)n++;return i===n?null:t.slice(i,n)}function Ii(e,o){let t=e.ctrlKey||e.metaKey,r=o.ctrlKey||o.metaKey;return e.key.toLowerCase()===o.key.toLowerCase()&&t===!!r&&e.shiftKey===!!o.shiftKey&&e.altKey===!!o.altKey}var u={wordLeft:{key:"ArrowLeft",ctrlKey:true},wordRight:{key:"ArrowRight",ctrlKey:true},selectWordLeft:{key:"ArrowLeft",ctrlKey:true,shiftKey:true},selectWordRight:{key:"ArrowRight",ctrlKey:true,shiftKey:true},lineStart:{key:"Home"},lineEnd:{key:"End"},selectToLineStart:{key:"Home",shiftKey:true},selectToLineEnd:{key:"End",shiftKey:true},documentStart:{key:"Home",ctrlKey:true},documentEnd:{key:"End",ctrlKey:true},selectToDocumentStart:{key:"Home",ctrlKey:true,shiftKey:true},selectToDocumentEnd:{key:"End",ctrlKey:true,shiftKey:true}};function m(e){let o=[];if(e.ctrlKey||e.metaKey){let r=typeof navigator<"u"&&/Mac/i.test(navigator.platform);o.push(r?"\u2318":"Ctrl");}e.shiftKey&&o.push("Shift"),e.altKey&&o.push("Alt");let t=e.key;return t==="ArrowLeft"?t="\u2190":t==="ArrowRight"?t="\u2192":t==="ArrowUp"?t="\u2191":t==="ArrowDown"&&(t="\u2193"),o.push(t),o.join("+")}function wi(){return [{action:"Move by word (left)",shortcut:m(u.wordLeft)},{action:"Move by word (right)",shortcut:m(u.wordRight)},{action:"Select word (left)",shortcut:m(u.selectWordLeft)},{action:"Select word (right)",shortcut:m(u.selectWordRight)},{action:"Go to line start",shortcut:m(u.lineStart)},{action:"Go to line end",shortcut:m(u.lineEnd)},{action:"Select to line start",shortcut:m(u.selectToLineStart)},{action:"Select to line end",shortcut:m(u.selectToLineEnd)},{action:"Go to document start",shortcut:m(u.documentStart)},{action:"Go to document end",shortcut:m(u.documentEnd)},{action:"Select to document start",shortcut:m(u.selectToDocumentStart)},{action:"Select to document end",shortcut:m(u.selectToDocumentEnd)}]}var B=/\{([#/^@]?)([a-zA-Z_][a-zA-Z0-9_]*(?:\.[a-zA-Z_][a-zA-Z0-9_]*)*)\}/g,d=new prosemirrorState.PluginKey("template");function Oi(e,o,t){return `${e}:${o}:${t}`}function F(e){let o=[];e.descendants((s,c)=>(s.isText&&s.text&&o.push({text:s.text,pos:c}),true));let t="",r=[];for(let s of o){for(let c=0;c<s.text.length;c++)r.push(s.pos+c);t+=s.text;}let i=[],n=[],a=new Map,p;for(B.lastIndex=0;(p=B.exec(t))!==null;){let[s,c,l]=p,y=r[p.index],h=r[p.index+s.length-1]+1,g;c==="#"?g="sectionStart":c==="/"?g="sectionEnd":c==="^"?g="invertedStart":c==="@"?g="raw":g="variable";let T=`${g}:${l}`,D=a.get(T)??0;a.set(T,D+1);let P={id:Oi(g,l,D),type:g,name:l,rawTag:s,from:y,to:h};if(g==="sectionStart"||g==="invertedStart")P.nestedVars=[],n.push(P);else if(g==="sectionEnd"){for(let b=n.length-1;b>=0;b--)if(n[b].name===l){n.splice(b,1);break}}else g==="variable"&&n.length>0&&(n[n.length-1].nestedVars?.push(l),P.insideSection=true);i.push(P);}return i}function Ni(e){switch(e){case "sectionStart":case "sectionEnd":return "#3b82f6";case "invertedStart":return "#8b5cf6";case "raw":return "#ef4444";default:return "#f59e0b"}}function A(e,o,t,r){let i=[];for(let n of o){let a=n.id===t,p=n.id===r,s=Ni(n.type),c=["docx-template-tag"];a&&c.push("hovered"),p&&c.push("selected"),i.push(prosemirrorView.Decoration.inline(n.from,n.to,{class:c.join(" "),"data-tag-id":n.id,style:`background-color: ${s}22; border-radius: 2px;`}));}return prosemirrorView.DecorationSet.create(e,i)}function ki(e,o){if(e.length!==o.length)return false;for(let t=0;t<e.length;t++)if(e[t].id!==o[t].id)return false;return true}function R(){return new prosemirrorState.Plugin({key:d,state:{init(e,o){let t=F(o.doc);return {tags:t,decorations:A(o.doc,t)}},apply(e,o,t,r){if(e.docChanged){let n=F(r.doc),a=ki(o.tags,n);return {tags:n,decorations:a?o.decorations.map(e.mapping,e.doc):A(r.doc,n,o.hoveredId,o.selectedId),hoveredId:o.hoveredId,selectedId:o.selectedId}}let i=e.getMeta(d);if(i){let n=i.hoveredId??o.hoveredId,a=i.selectedId??o.selectedId;return {...o,hoveredId:n,selectedId:a,decorations:A(r.doc,o.tags,n,a)}}return {...o,decorations:o.decorations.map(e.mapping,e.doc)}}},props:{decorations(e){return d.getState(e)?.decorations??prosemirrorView.DecorationSet.empty},handleClick(e,o){let r=(d.getState(e.state)?.tags??[]).find(n=>o>=n.from&&o<=n.to);return r?(e.dispatch(e.state.tr.setMeta(d,{selectedId:r.id})),true):(d.getState(e.state)?.selectedId&&e.dispatch(e.state.tr.setMeta(d,{selectedId:void 0})),false)},handleDOMEvents:{mouseover(e,o){let r=o.target.closest?.("[data-tag-id]")?.getAttribute("data-tag-id")||void 0,i=d.getState(e.state)?.hoveredId;return r!==i&&e.dispatch(e.state.tr.setMeta(d,{hoveredId:r})),false},mouseout(e,o){return o.relatedTarget?.closest?.("[data-tag-id]")||d.getState(e.state)?.hoveredId&&e.dispatch(e.state.tr.setMeta(d,{hoveredId:void 0})),false}}}})}function W(e){return d.getState(e)?.tags??[]}function x(e,o){e.dispatch(e.state.tr.setMeta(d,{hoveredId:o}));}function v(e,o){e.dispatch(e.state.tr.setMeta(d,{selectedId:o}));}var I=`
|
|
2
2
|
.docx-template-tag {
|
|
3
3
|
cursor: pointer;
|
|
4
4
|
transition: background-color 0.1s;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
.docx-template-tag.selected {
|
|
13
13
|
box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
|
|
14
14
|
}
|
|
15
|
-
`;var Bi={variable:"rgba(245, 158, 11, 0.3)",sectionStart:"rgba(59, 130, 246, 0.3)",sectionEnd:"rgba(59, 130, 246, 0.3)",invertedStart:"rgba(139, 92, 246, 0.3)",raw:"rgba(239, 68, 68, 0.3)"},
|
|
15
|
+
`;var Bi={variable:"rgba(245, 158, 11, 0.3)",sectionStart:"rgba(59, 130, 246, 0.3)",sectionEnd:"rgba(59, 130, 246, 0.3)",invertedStart:"rgba(139, 92, 246, 0.3)",raw:"rgba(239, 68, 68, 0.3)"},Fi={variable:"rgba(245, 158, 11, 0.5)",sectionStart:"rgba(59, 130, 246, 0.5)",sectionEnd:"rgba(59, 130, 246, 0.5)",invertedStart:"rgba(139, 92, 246, 0.5)",raw:"rgba(239, 68, 68, 0.5)"};function z({context:e,tags:o,hoveredId:t,selectedId:r,onHover:i,onSelect:n}){let[a,p]=X.useState(0),s=X.useCallback(()=>{let l=e.getContainerOffset(),y=[];for(let h of o){let g=e.getRectsForRange(h.from,h.to);for(let T of g)y.push({tagId:h.id,tagType:h.type,x:T.x+l.x,y:T.y+l.y,width:T.width,height:T.height});}return y},[e,o]),c=X.useMemo(()=>s(),[s,a]);return X.useEffect(()=>{let l=()=>{requestAnimationFrame(()=>p(y=>y+1));};return window.addEventListener("resize",l),()=>window.removeEventListener("resize",l)},[]),X.useEffect(()=>{let l=new ResizeObserver(()=>{requestAnimationFrame(()=>p(y=>y+1));});return l.observe(e.pagesContainer),()=>l.disconnect()},[e.pagesContainer]),c.length===0?null:jsxRuntime.jsx("div",{className:"template-highlight-overlay",children:c.map((l,y)=>{let h=l.tagId===t,g=l.tagId===r,T=h||g?Fi[l.tagType]:Bi[l.tagType];return jsxRuntime.jsx("div",{className:`template-highlight ${h?"hovered":""} ${g?"selected":""}`,style:{position:"absolute",left:l.x,top:l.y,width:l.width,height:l.height,backgroundColor:T,borderRadius:2,cursor:"pointer"},onMouseEnter:()=>i?.(l.tagId),onMouseLeave:()=>i?.(void 0),onClick:()=>n?.(l.tagId)},`${l.tagId}-${y}`)})})}var G=`
|
|
16
16
|
.template-highlight-overlay {
|
|
17
17
|
position: absolute;
|
|
18
18
|
top: 0;
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
.template-highlight.selected {
|
|
37
37
|
box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.6);
|
|
38
38
|
}
|
|
39
|
-
`;var
|
|
39
|
+
`;var _i={variable:"#f59e0b",sectionStart:"#3b82f6",sectionEnd:"#3b82f6",invertedStart:"#8b5cf6",raw:"#ef4444"};function Wi(e){switch(e){case "sectionStart":return "LOOP / IF";case "invertedStart":return "IF NOT";case "raw":return "HTML";default:return ""}}var Z=`
|
|
40
40
|
.template-annotation-chip {
|
|
41
41
|
display: inline-flex;
|
|
42
42
|
flex-wrap: wrap;
|
|
@@ -104,9 +104,9 @@
|
|
|
104
104
|
background: rgba(59, 130, 246, 0.15);
|
|
105
105
|
color: #1e40af;
|
|
106
106
|
}
|
|
107
|
-
`;function Y({tag:e,isHovered:o,measureRef:t,onHover:r,onSelect:i}){let n=Wi(e.type),a=
|
|
108
|
-
Iterates over ${e.name}[]. Access nested properties via ${e.name}.property`:e.rawTag,children:[n&&jsxRuntime.jsx("span",{className:"template-chip-badge",style:{background:a},children:n}),!n&&jsxRuntime.jsx("span",{className:"template-chip-dot",style:{color:a},children:"\u25CF"}),jsxRuntime.jsx("span",{className:"template-chip-name",children:e.name}),p&&e.nestedVars&&e.nestedVars.length>0&&jsxRuntime.jsx("div",{className:"template-chip-nested",children:e.nestedVars.map((s,c)=>jsxRuntime.jsx("span",{className:"template-nested-var",title:`Access: ${e.name}.${s}`,children:s.includes(".")?s.split(".").pop():s},c))})]})]})}function q(e,o,t){if(!e)return;v(e,t);let r=o.find(i=>i.id===t);if(r){let i=e.state.tr.setSelection(prosemirrorState.TextSelection.near(e.state.doc.resolve(r.from)));e.dispatch(i),e.focus();}}function j(e={}){return {id:"template",name:"Template",proseMirrorPlugins:[R()],onStateChange:t=>{let r=d.getState(t.state);if(r)return {tags:r.tags,hoveredId:r.hoveredId,selectedId:r.selectedId}},initialize:t=>({tags:[]}),getSidebarItems:(t,r)=>!t||t.tags.length===0?[]:t.tags.filter(n=>n.type!=="sectionEnd"&&!n.insideSection).map(n=>({id:`template-${n.id}`,anchorPos:n.from,priority:10,estimatedHeight:32,render:a=>X__default.default.createElement(Y,{...a,tag:n,isHovered:n.id===t.hoveredId,onHover:p=>{r.editorView&&
|
|
107
|
+
`;function Y({tag:e,isHovered:o,measureRef:t,onHover:r,onSelect:i}){let n=Wi(e.type),a=_i[e.type],p=e.type==="sectionStart"||e.type==="invertedStart";return jsxRuntime.jsxs("div",{ref:t,style:{display:"flex",alignItems:"flex-start"},children:[jsxRuntime.jsx("div",{style:{width:20,height:1,background:o?"#3b82f6":"#d0d0d0",marginTop:12,marginRight:4,flexShrink:0}}),jsxRuntime.jsxs("div",{className:`template-annotation-chip ${o?"hovered":""}`,style:{borderLeftColor:a},onMouseEnter:()=>r(e.id),onMouseLeave:()=>r(void 0),onClick:s=>{s.stopPropagation(),i(e.id);},onMouseDown:s=>s.stopPropagation(),title:p?`${e.rawTag}
|
|
108
|
+
Iterates over ${e.name}[]. Access nested properties via ${e.name}.property`:e.rawTag,children:[n&&jsxRuntime.jsx("span",{className:"template-chip-badge",style:{background:a},children:n}),!n&&jsxRuntime.jsx("span",{className:"template-chip-dot",style:{color:a},children:"\u25CF"}),jsxRuntime.jsx("span",{className:"template-chip-name",children:e.name}),p&&e.nestedVars&&e.nestedVars.length>0&&jsxRuntime.jsx("div",{className:"template-chip-nested",children:e.nestedVars.map((s,c)=>jsxRuntime.jsx("span",{className:"template-nested-var",title:`Access: ${e.name}.${s}`,children:s.includes(".")?s.split(".").pop():s},c))})]})]})}function q(e,o,t){if(!e)return;v(e,t);let r=o.find(i=>i.id===t);if(r){let i=e.state.tr.setSelection(prosemirrorState.TextSelection.near(e.state.doc.resolve(r.from)));e.dispatch(i),e.focus();}}function j(e={}){return {id:"template",name:"Template",proseMirrorPlugins:[R()],onStateChange:t=>{let r=d.getState(t.state);if(r)return {tags:r.tags,hoveredId:r.hoveredId,selectedId:r.selectedId}},initialize:t=>({tags:[]}),getSidebarItems:(t,r)=>!t||t.tags.length===0?[]:t.tags.filter(n=>n.type!=="sectionEnd"&&!n.insideSection).map(n=>({id:`template-${n.id}`,anchorPos:n.from,priority:10,estimatedHeight:32,render:a=>X__default.default.createElement(Y,{...a,tag:n,isHovered:n.id===t.hoveredId,onHover:p=>{r.editorView&&x(r.editorView,p);},onSelect:p=>q(r.editorView,t.tags,p)})})),renderOverlay:(t,r,i)=>!r||r.tags.length===0?null:X__default.default.createElement(z,{context:t,tags:r.tags,hoveredId:r.hoveredId,selectedId:r.selectedId,onHover:n=>{i&&x(i,n);},onSelect:n=>q(i,r.tags,n)}),styles:`
|
|
109
109
|
${I}
|
|
110
110
|
${Z}
|
|
111
111
|
${G}
|
|
112
|
-
`}}var Vi=j();var aa="0.0.2";Object.defineProperty(exports,"DEFAULT_SELECTION_STYLE",{enumerable:true,get:function(){return chunkDLNS7XC2_js.I}});Object.defineProperty(exports,"DocxEditor",{enumerable:true,get:function(){return chunkDLNS7XC2_js.v}});Object.defineProperty(exports,"EditorToolbar",{enumerable:true,get:function(){return chunkDLNS7XC2_js.a}});Object.defineProperty(exports,"ErrorBoundary",{enumerable:true,get:function(){return chunkDLNS7XC2_js.d}});Object.defineProperty(exports,"ErrorProvider",{enumerable:true,get:function(){return chunkDLNS7XC2_js.c}});Object.defineProperty(exports,"HIGH_CONTRAST_SELECTION_STYLE",{enumerable:true,get:function(){return chunkDLNS7XC2_js.J}});Object.defineProperty(exports,"PLUGIN_HOST_STYLES",{enumerable:true,get:function(){return chunkDLNS7XC2_js.ea}});Object.defineProperty(exports,"ParseErrorDisplay",{enumerable:true,get:function(){return chunkDLNS7XC2_js.e}});Object.defineProperty(exports,"PluginHost",{enumerable:true,get:function(){return chunkDLNS7XC2_js.fa}});Object.defineProperty(exports,"SELECTION_CSS_VARS",{enumerable:true,get:function(){return chunkDLNS7XC2_js.K}});Object.defineProperty(exports,"UnsupportedFeatureWarning",{enumerable:true,get:function(){return chunkDLNS7XC2_js.f}});Object.defineProperty(exports,"ZOOM_PRESETS",{enumerable:true,get:function(){return chunkDLNS7XC2_js.y}});Object.defineProperty(exports,"areSelectionStylesInjected",{enumerable:true,get:function(){return chunkDLNS7XC2_js.$}});Object.defineProperty(exports,"clampZoom",{enumerable:true,get:function(){return chunkDLNS7XC2_js.H}});Object.defineProperty(exports,"clearSelection",{enumerable:true,get:function(){return chunkDLNS7XC2_js.W}});Object.defineProperty(exports,"createDoubleClickWordSelector",{enumerable:true,get:function(){return chunkDLNS7XC2_js.t}});Object.defineProperty(exports,"createSelectionChangeHandler",{enumerable:true,get:function(){return chunkDLNS7XC2_js.aa}});Object.defineProperty(exports,"createTripleClickParagraphSelector",{enumerable:true,get:function(){return chunkDLNS7XC2_js.u}});Object.defineProperty(exports,"expandSelectionToWordBoundaries",{enumerable:true,get:function(){return chunkDLNS7XC2_js.q}});Object.defineProperty(exports,"findNearestZoomPreset",{enumerable:true,get:function(){return chunkDLNS7XC2_js.B}});Object.defineProperty(exports,"findWordAt",{enumerable:true,get:function(){return chunkDLNS7XC2_js.n}});Object.defineProperty(exports,"findWordBoundaries",{enumerable:true,get:function(){return chunkDLNS7XC2_js.l}});Object.defineProperty(exports,"formatZoom",{enumerable:true,get:function(){return chunkDLNS7XC2_js.E}});Object.defineProperty(exports,"generateOverlayElements",{enumerable:true,get:function(){return chunkDLNS7XC2_js.ca}});Object.defineProperty(exports,"generateSelectionCSS",{enumerable:true,get:function(){return chunkDLNS7XC2_js.P}});Object.defineProperty(exports,"getHighlightRectStyle",{enumerable:true,get:function(){return chunkDLNS7XC2_js.O}});Object.defineProperty(exports,"getMergedSelectionRects",{enumerable:true,get:function(){return chunkDLNS7XC2_js.N}});Object.defineProperty(exports,"getNextZoomPreset",{enumerable:true,get:function(){return chunkDLNS7XC2_js.C}});Object.defineProperty(exports,"getPreviousZoomPreset",{enumerable:true,get:function(){return chunkDLNS7XC2_js.D}});Object.defineProperty(exports,"getSelectedText",{enumerable:true,get:function(){return chunkDLNS7XC2_js.R}});Object.defineProperty(exports,"getSelectionBoundingRect",{enumerable:true,get:function(){return chunkDLNS7XC2_js.T}});Object.defineProperty(exports,"getSelectionRects",{enumerable:true,get:function(){return chunkDLNS7XC2_js.L}});Object.defineProperty(exports,"getUserFriendlyMessage",{enumerable:true,get:function(){return chunkDLNS7XC2_js.h}});Object.defineProperty(exports,"getWordAt",{enumerable:true,get:function(){return chunkDLNS7XC2_js.m}});Object.defineProperty(exports,"getZoomPresets",{enumerable:true,get:function(){return chunkDLNS7XC2_js.A}});Object.defineProperty(exports,"handleClickForMultiClick",{enumerable:true,get:function(){return chunkDLNS7XC2_js.s}});Object.defineProperty(exports,"hasActiveSelection",{enumerable:true,get:function(){return chunkDLNS7XC2_js.Q}});Object.defineProperty(exports,"highlightTextRange",{enumerable:true,get:function(){return chunkDLNS7XC2_js.U}});Object.defineProperty(exports,"injectSelectionStyles",{enumerable:true,get:function(){return chunkDLNS7XC2_js.Z}});Object.defineProperty(exports,"isParseError",{enumerable:true,get:function(){return chunkDLNS7XC2_js.g}});Object.defineProperty(exports,"isSelectionBackwards",{enumerable:true,get:function(){return chunkDLNS7XC2_js.X}});Object.defineProperty(exports,"isSelectionWithin",{enumerable:true,get:function(){return chunkDLNS7XC2_js.S}});Object.defineProperty(exports,"isWhitespace",{enumerable:true,get:function(){return chunkDLNS7XC2_js.k}});Object.defineProperty(exports,"isWordCharacter",{enumerable:true,get:function(){return chunkDLNS7XC2_js.j}});Object.defineProperty(exports,"isZoomPreset",{enumerable:true,get:function(){return chunkDLNS7XC2_js.G}});Object.defineProperty(exports,"mergeAdjacentRects",{enumerable:true,get:function(){return chunkDLNS7XC2_js.M}});Object.defineProperty(exports,"normalizeSelectionDirection",{enumerable:true,get:function(){return chunkDLNS7XC2_js.Y}});Object.defineProperty(exports,"parseZoom",{enumerable:true,get:function(){return chunkDLNS7XC2_js.F}});Object.defineProperty(exports,"removeSelectionStyles",{enumerable:true,get:function(){return chunkDLNS7XC2_js._}});Object.defineProperty(exports,"renderAsync",{enumerable:true,get:function(){return chunkDLNS7XC2_js.w}});Object.defineProperty(exports,"selectParagraphAtCursor",{enumerable:true,get:function(){return chunkDLNS7XC2_js.r}});Object.defineProperty(exports,"selectRange",{enumerable:true,get:function(){return chunkDLNS7XC2_js.V}});Object.defineProperty(exports,"selectWordAtCursor",{enumerable:true,get:function(){return chunkDLNS7XC2_js.o}});Object.defineProperty(exports,"selectWordInTextNode",{enumerable:true,get:function(){return chunkDLNS7XC2_js.p}});Object.defineProperty(exports,"useAutoSave",{enumerable:true,get:function(){return chunkDLNS7XC2_js.x}});Object.defineProperty(exports,"useClipboard",{enumerable:true,get:function(){return chunkDLNS7XC2_js.da}});Object.defineProperty(exports,"useErrorNotifications",{enumerable:true,get:function(){return chunkDLNS7XC2_js.b}});Object.defineProperty(exports,"useSelectionHighlight",{enumerable:true,get:function(){return chunkDLNS7XC2_js.ba}});Object.defineProperty(exports,"useTableSelection",{enumerable:true,get:function(){return chunkDLNS7XC2_js.i}});Object.defineProperty(exports,"useWheelZoom",{enumerable:true,get:function(){return chunkDLNS7XC2_js.z}});Object.defineProperty(exports,"ColorPicker",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.k}});Object.defineProperty(exports,"ContextMenu",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.a}});Object.defineProperty(exports,"InsertImageDialog",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.V}});Object.defineProperty(exports,"InsertSymbolDialog",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.da}});Object.defineProperty(exports,"InsertTableDialog",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.O}});Object.defineProperty(exports,"KeyboardShortcutsDialog",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.qa}});Object.defineProperty(exports,"LoadingIndicator",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.B}});Object.defineProperty(exports,"PasteSpecialDialog",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ka}});Object.defineProperty(exports,"PrintButton",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.l}});Object.defineProperty(exports,"PrintStyles",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.m}});Object.defineProperty(exports,"ResponsePreview",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.g}});Object.defineProperty(exports,"ResponsiveToolbar",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.J}});Object.defineProperty(exports,"ResponsiveToolbarGroup",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.K}});Object.defineProperty(exports,"SYMBOL_CATEGORIES",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ca}});Object.defineProperty(exports,"TableInsertButtons",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.u}});Object.defineProperty(exports,"TableMergeButton",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.t}});Object.defineProperty(exports,"UnsavedIndicator",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.v}});Object.defineProperty(exports,"calculateFitDimensions",{enumerable:true,get:function(){return chunk3OKYQQQ5_js._}});Object.defineProperty(exports,"clampTableConfig",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.S}});Object.defineProperty(exports,"createChangeTracker",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.A}});Object.defineProperty(exports,"createDefaultTableConfig",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.Q}});Object.defineProperty(exports,"createErrorResponse",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.j}});Object.defineProperty(exports,"createMockResponse",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.i}});Object.defineProperty(exports,"createToolbarItem",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.L}});Object.defineProperty(exports,"createToolbarItems",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.M}});Object.defineProperty(exports,"dataUrlToBlob",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.$}});Object.defineProperty(exports,"delay",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.H}});Object.defineProperty(exports,"formatFileSize",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ba}});Object.defineProperty(exports,"formatPrintPageRange",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.r}});Object.defineProperty(exports,"formatShortcutKeys",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.xa}});Object.defineProperty(exports,"formatTableDimensions",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.T}});Object.defineProperty(exports,"getActionShortcut",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.c}});Object.defineProperty(exports,"getAllActions",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.f}});Object.defineProperty(exports,"getAllCategories",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.wa}});Object.defineProperty(exports,"getAllIndicatorPositions",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.z}});Object.defineProperty(exports,"getAllIndicatorVariants",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.y}});Object.defineProperty(exports,"getAllLoadingSizes",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.G}});Object.defineProperty(exports,"getAllLoadingVariants",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.F}});Object.defineProperty(exports,"getAllPasteOptions",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.na}});Object.defineProperty(exports,"getCategoryLabel",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.va}});Object.defineProperty(exports,"getCommonShortcuts",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ua}});Object.defineProperty(exports,"getDefaultActions",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.e}});Object.defineProperty(exports,"getDefaultPasteOption",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.oa}});Object.defineProperty(exports,"getDefaultPrintOptions",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.p}});Object.defineProperty(exports,"getDefaultShortcuts",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.sa}});Object.defineProperty(exports,"getImageAcceptString",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.Z}});Object.defineProperty(exports,"getImageDimensions",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.aa}});Object.defineProperty(exports,"getLoadingVariantLabel",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.E}});Object.defineProperty(exports,"getPasteOption",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ma}});Object.defineProperty(exports,"getRecommendedPriority",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.N}});Object.defineProperty(exports,"getShortcutsByCategory",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ta}});Object.defineProperty(exports,"getSupportedImageExtensions",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.Y}});Object.defineProperty(exports,"getSymbolCategories",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.fa}});Object.defineProperty(exports,"getSymbolUnicodeInfo",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ha}});Object.defineProperty(exports,"getSymbolsByCategory",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ga}});Object.defineProperty(exports,"getTablePresets",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.U}});Object.defineProperty(exports,"getVariantLabel",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.x}});Object.defineProperty(exports,"isActionAvailable",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.d}});Object.defineProperty(exports,"isPasteSpecialShortcut",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.pa}});Object.defineProperty(exports,"isPrintSupported",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.s}});Object.defineProperty(exports,"isValidImageFile",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.X}});Object.defineProperty(exports,"isValidTableConfig",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.R}});Object.defineProperty(exports,"openPrintWindow",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.o}});Object.defineProperty(exports,"parsePageRange",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.q}});Object.defineProperty(exports,"searchSymbols",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ia}});Object.defineProperty(exports,"symbolFromCodePoint",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ja}});Object.defineProperty(exports,"triggerPrint",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.n}});Object.defineProperty(exports,"useContextMenu",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.b}});Object.defineProperty(exports,"useInsertImageDialog",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.W}});Object.defineProperty(exports,"useInsertSymbolDialog",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ea}});Object.defineProperty(exports,"useInsertTableDialog",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.P}});Object.defineProperty(exports,"useKeyboardShortcutsDialog",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ra}});Object.defineProperty(exports,"useLoading",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.C}});Object.defineProperty(exports,"useLoadingOperations",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.D}});Object.defineProperty(exports,"usePasteSpecial",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.la}});Object.defineProperty(exports,"useResponsePreview",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.h}});Object.defineProperty(exports,"useResponsiveToolbar",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.I}});Object.defineProperty(exports,"useUnsavedChanges",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.w}});Object.defineProperty(exports,"AdvancedColorPicker",{enumerable:true,get:function(){return chunkDC65PJYE_js.k}});Object.defineProperty(exports,"AlignmentButtons",{enumerable:true,get:function(){return chunkDC65PJYE_js.l}});Object.defineProperty(exports,"CLIPBOARD_TYPES",{enumerable:true,get:function(){return chunkDC65PJYE_js.K}});Object.defineProperty(exports,"FontPicker",{enumerable:true,get:function(){return chunkDC65PJYE_js.g}});Object.defineProperty(exports,"FontSizePicker",{enumerable:true,get:function(){return chunkDC65PJYE_js.j}});Object.defineProperty(exports,"FormattingBar",{enumerable:true,get:function(){return chunkDC65PJYE_js.y}});Object.defineProperty(exports,"HorizontalRuler",{enumerable:true,get:function(){return chunkDC65PJYE_js.E}});Object.defineProperty(exports,"INTERNAL_CLIPBOARD_TYPE",{enumerable:true,get:function(){return chunkDC65PJYE_js.J}});Object.defineProperty(exports,"LineSpacingPicker",{enumerable:true,get:function(){return chunkDC65PJYE_js.o}});Object.defineProperty(exports,"ListButtons",{enumerable:true,get:function(){return chunkDC65PJYE_js.m}});Object.defineProperty(exports,"StylePicker",{enumerable:true,get:function(){return chunkDC65PJYE_js.p}});Object.defineProperty(exports,"TableBorderColorPicker",{enumerable:true,get:function(){return chunkDC65PJYE_js.s}});Object.defineProperty(exports,"TableBorderPicker",{enumerable:true,get:function(){return chunkDC65PJYE_js.r}});Object.defineProperty(exports,"TableBorderWidthPicker",{enumerable:true,get:function(){return chunkDC65PJYE_js.t}});Object.defineProperty(exports,"TableCellFillPicker",{enumerable:true,get:function(){return chunkDC65PJYE_js.u}});Object.defineProperty(exports,"TableMoreDropdown",{enumerable:true,get:function(){return chunkDC65PJYE_js.v}});Object.defineProperty(exports,"TableToolbar",{enumerable:true,get:function(){return chunkDC65PJYE_js.da}});Object.defineProperty(exports,"TextContextMenu",{enumerable:true,get:function(){return chunkDC65PJYE_js.Z}});Object.defineProperty(exports,"Toolbar",{enumerable:true,get:function(){return chunkDC65PJYE_js.D}});Object.defineProperty(exports,"ToolbarButton",{enumerable:true,get:function(){return chunkDC65PJYE_js.A}});Object.defineProperty(exports,"ToolbarGroup",{enumerable:true,get:function(){return chunkDC65PJYE_js.B}});Object.defineProperty(exports,"ToolbarSeparator",{enumerable:true,get:function(){return chunkDC65PJYE_js.C}});Object.defineProperty(exports,"ZoomControl",{enumerable:true,get:function(){return chunkDC65PJYE_js.q}});Object.defineProperty(exports,"addColumn",{enumerable:true,get:function(){return chunkDC65PJYE_js.ja}});Object.defineProperty(exports,"addRow",{enumerable:true,get:function(){return chunkDC65PJYE_js.ha}});Object.defineProperty(exports,"cleanWordHtml",{enumerable:true,get:function(){return chunkDC65PJYE_js.W}});Object.defineProperty(exports,"copyParagraphs",{enumerable:true,get:function(){return chunkDC65PJYE_js.N}});Object.defineProperty(exports,"copyRuns",{enumerable:true,get:function(){return chunkDC65PJYE_js.M}});Object.defineProperty(exports,"createClipboardHandlers",{enumerable:true,get:function(){return chunkDC65PJYE_js.Y}});Object.defineProperty(exports,"createDefaultListState",{enumerable:true,get:function(){return chunkDC65PJYE_js.n}});Object.defineProperty(exports,"createTableContext",{enumerable:true,get:function(){return chunkDC65PJYE_js.ea}});Object.defineProperty(exports,"deleteColumn",{enumerable:true,get:function(){return chunkDC65PJYE_js.ka}});Object.defineProperty(exports,"deleteRow",{enumerable:true,get:function(){return chunkDC65PJYE_js.ia}});Object.defineProperty(exports,"getCellAt",{enumerable:true,get:function(){return chunkDC65PJYE_js.ga}});Object.defineProperty(exports,"getColumnCount",{enumerable:true,get:function(){return chunkDC65PJYE_js.fa}});Object.defineProperty(exports,"getDefaultTextContextMenuItems",{enumerable:true,get:function(){return chunkDC65PJYE_js.ba}});Object.defineProperty(exports,"getMarginInUnits",{enumerable:true,get:function(){return chunkDC65PJYE_js.H}});Object.defineProperty(exports,"getRulerDimensions",{enumerable:true,get:function(){return chunkDC65PJYE_js.G}});Object.defineProperty(exports,"getTextActionLabel",{enumerable:true,get:function(){return chunkDC65PJYE_js.$}});Object.defineProperty(exports,"getTextActionShortcut",{enumerable:true,get:function(){return chunkDC65PJYE_js.aa}});Object.defineProperty(exports,"handlePasteEvent",{enumerable:true,get:function(){return chunkDC65PJYE_js.S}});Object.defineProperty(exports,"htmlToRuns",{enumerable:true,get:function(){return chunkDC65PJYE_js.X}});Object.defineProperty(exports,"isEditorHtml",{enumerable:true,get:function(){return chunkDC65PJYE_js.V}});Object.defineProperty(exports,"isTextActionAvailable",{enumerable:true,get:function(){return chunkDC65PJYE_js.ca}});Object.defineProperty(exports,"isWordHtml",{enumerable:true,get:function(){return chunkDC65PJYE_js.U}});Object.defineProperty(exports,"mergeCells",{enumerable:true,get:function(){return chunkDC65PJYE_js.la}});Object.defineProperty(exports,"paragraphsToClipboardContent",{enumerable:true,get:function(){return chunkDC65PJYE_js.P}});Object.defineProperty(exports,"parseClipboardHtml",{enumerable:true,get:function(){return chunkDC65PJYE_js.T}});Object.defineProperty(exports,"parseMarginFromUnits",{enumerable:true,get:function(){return chunkDC65PJYE_js.I}});Object.defineProperty(exports,"positionToMargin",{enumerable:true,get:function(){return chunkDC65PJYE_js.F}});Object.defineProperty(exports,"readFromClipboard",{enumerable:true,get:function(){return chunkDC65PJYE_js.R}});Object.defineProperty(exports,"runsToClipboardContent",{enumerable:true,get:function(){return chunkDC65PJYE_js.O}});Object.defineProperty(exports,"splitCell",{enumerable:true,get:function(){return chunkDC65PJYE_js.ma}});Object.defineProperty(exports,"useTextContextMenu",{enumerable:true,get:function(){return chunkDC65PJYE_js._}});Object.defineProperty(exports,"writeToClipboard",{enumerable:true,get:function(){return chunkDC65PJYE_js.Q}});Object.defineProperty(exports,"FindReplaceDialog",{enumerable:true,get:function(){return chunkAU5NVRHP_js.n}});Object.defineProperty(exports,"createDefaultFindOptions",{enumerable:true,get:function(){return chunkAU5NVRHP_js.a}});Object.defineProperty(exports,"createSearchPattern",{enumerable:true,get:function(){return chunkAU5NVRHP_js.c}});Object.defineProperty(exports,"escapeRegexString",{enumerable:true,get:function(){return chunkAU5NVRHP_js.b}});Object.defineProperty(exports,"findAllMatches",{enumerable:true,get:function(){return chunkAU5NVRHP_js.d}});Object.defineProperty(exports,"findInDocument",{enumerable:true,get:function(){return chunkAU5NVRHP_js.j}});Object.defineProperty(exports,"findInParagraph",{enumerable:true,get:function(){return chunkAU5NVRHP_js.k}});Object.defineProperty(exports,"getDefaultHighlightOptions",{enumerable:true,get:function(){return chunkAU5NVRHP_js.i}});Object.defineProperty(exports,"getMatchCountText",{enumerable:true,get:function(){return chunkAU5NVRHP_js.g}});Object.defineProperty(exports,"isEmptySearch",{enumerable:true,get:function(){return chunkAU5NVRHP_js.h}});Object.defineProperty(exports,"replaceAllInContent",{enumerable:true,get:function(){return chunkAU5NVRHP_js.e}});Object.defineProperty(exports,"replaceFirstInContent",{enumerable:true,get:function(){return chunkAU5NVRHP_js.f}});Object.defineProperty(exports,"scrollToMatch",{enumerable:true,get:function(){return chunkAU5NVRHP_js.l}});Object.defineProperty(exports,"useFindReplace",{enumerable:true,get:function(){return chunkAU5NVRHP_js.m}});Object.defineProperty(exports,"HyperlinkDialog",{enumerable:true,get:function(){return chunk377ZVTSE_js.d}});Object.defineProperty(exports,"useHyperlinkDialog",{enumerable:true,get:function(){return chunk377ZVTSE_js.m}});Object.defineProperty(exports,"LocaleProvider",{enumerable:true,get:function(){return chunkQSUPYUOP_js.a}});Object.defineProperty(exports,"useTranslation",{enumerable:true,get:function(){return chunkQSUPYUOP_js.b}});Object.defineProperty(exports,"TABLE_DATA_ATTRIBUTES",{enumerable:true,get:function(){return chunkFVUGBRDD_js.x}});Object.defineProperty(exports,"countPageBreaks",{enumerable:true,get:function(){return chunkFVUGBRDD_js.n}});Object.defineProperty(exports,"createColumnBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.b}});Object.defineProperty(exports,"createHorizontalRule",{enumerable:true,get:function(){return chunkFVUGBRDD_js.g}});Object.defineProperty(exports,"createLineBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.c}});Object.defineProperty(exports,"createPageBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.a}});Object.defineProperty(exports,"createPageBreakParagraph",{enumerable:true,get:function(){return chunkFVUGBRDD_js.e}});Object.defineProperty(exports,"createPageBreakRun",{enumerable:true,get:function(){return chunkFVUGBRDD_js.d}});Object.defineProperty(exports,"createSelectionFromDOM",{enumerable:true,get:function(){return chunkFVUGBRDD_js.F}});Object.defineProperty(exports,"findPageBreaks",{enumerable:true,get:function(){return chunkFVUGBRDD_js.o}});Object.defineProperty(exports,"formatLastSaveTime",{enumerable:true,get:function(){return chunkFVUGBRDD_js.s}});Object.defineProperty(exports,"formatStorageSize",{enumerable:true,get:function(){return chunkFVUGBRDD_js.v}});Object.defineProperty(exports,"getAutoSaveStatusLabel",{enumerable:true,get:function(){return chunkFVUGBRDD_js.t}});Object.defineProperty(exports,"getAutoSaveStorageSize",{enumerable:true,get:function(){return chunkFVUGBRDD_js.u}});Object.defineProperty(exports,"getSelectionRuns",{enumerable:true,get:function(){return chunkFVUGBRDD_js.E}});Object.defineProperty(exports,"hasPageBreakBefore",{enumerable:true,get:function(){return chunkFVUGBRDD_js.m}});Object.defineProperty(exports,"insertHorizontalRule",{enumerable:true,get:function(){return chunkFVUGBRDD_js.h}});Object.defineProperty(exports,"insertPageBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.f}});Object.defineProperty(exports,"isAutoSaveSupported",{enumerable:true,get:function(){return chunkFVUGBRDD_js.w}});Object.defineProperty(exports,"isBreakContent",{enumerable:true,get:function(){return chunkFVUGBRDD_js.l}});Object.defineProperty(exports,"isColumnBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.j}});Object.defineProperty(exports,"isLineBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.k}});Object.defineProperty(exports,"isPageBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.i}});Object.defineProperty(exports,"removePageBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.p}});Object.defineProperty(exports,"DocumentAgent",{enumerable:true,get:function(){return chunkP7WEP4JU_js.f}});Object.defineProperty(exports,"buildExtendedSelectionContext",{enumerable:true,get:function(){return chunkP7WEP4JU_js.m}});Object.defineProperty(exports,"buildSelectionContext",{enumerable:true,get:function(){return chunkP7WEP4JU_js.l}});Object.defineProperty(exports,"createDocumentWithText",{enumerable:true,get:function(){return chunkP7WEP4JU_js.e}});Object.defineProperty(exports,"createEmptyDocument",{enumerable:true,get:function(){return chunkP7WEP4JU_js.d}});Object.defineProperty(exports,"getAgentContext",{enumerable:true,get:function(){return chunkP7WEP4JU_js.i}});Object.defineProperty(exports,"getDocumentSummary",{enumerable:true,get:function(){return chunkP7WEP4JU_js.k}});Object.defineProperty(exports,"blendColors",{enumerable:true,get:function(){return chunk4VUZBV2S_js.l}});Object.defineProperty(exports,"colorsEqual",{enumerable:true,get:function(){return chunk4VUZBV2S_js.q}});Object.defineProperty(exports,"createRgbColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.i}});Object.defineProperty(exports,"createThemeColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.h}});Object.defineProperty(exports,"darkenColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.j}});Object.defineProperty(exports,"getContrastingColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.f}});Object.defineProperty(exports,"isBlack",{enumerable:true,get:function(){return chunk4VUZBV2S_js.d}});Object.defineProperty(exports,"isWhite",{enumerable:true,get:function(){return chunk4VUZBV2S_js.e}});Object.defineProperty(exports,"lightenColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.k}});Object.defineProperty(exports,"parseColorString",{enumerable:true,get:function(){return chunk4VUZBV2S_js.g}});Object.defineProperty(exports,"resolveColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.a}});Object.defineProperty(exports,"resolveHighlightColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.b}});Object.defineProperty(exports,"resolveShadingColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.c}});Object.defineProperty(exports,"docxtemplaterPlugin",{enumerable:true,get:function(){return chunkKCOGY3V2_js.o}});Object.defineProperty(exports,"getTemplateTags",{enumerable:true,get:function(){return chunkPB7VMDDP_js.e}});Object.defineProperty(exports,"processTemplate",{enumerable:true,get:function(){return chunkPB7VMDDP_js.a}});Object.defineProperty(exports,"processTemplateAsBlob",{enumerable:true,get:function(){return chunkPB7VMDDP_js.c}});Object.defineProperty(exports,"processTemplateDetailed",{enumerable:true,get:function(){return chunkPB7VMDDP_js.b}});Object.defineProperty(exports,"validateTemplate",{enumerable:true,get:function(){return chunkPB7VMDDP_js.f}});Object.defineProperty(exports,"serializeDocumentBody",{enumerable:true,get:function(){return chunkZJNGMDRE_js.b}});Object.defineProperty(exports,"serializeDocx",{enumerable:true,get:function(){return chunkZJNGMDRE_js.c}});Object.defineProperty(exports,"serializeSectionProperties",{enumerable:true,get:function(){return chunkZJNGMDRE_js.a}});Object.defineProperty(exports,"executeCommand",{enumerable:true,get:function(){return chunkAARNCPWR_js.a}});Object.defineProperty(exports,"executeCommands",{enumerable:true,get:function(){return chunkAARNCPWR_js.b}});Object.defineProperty(exports,"canRenderFont",{enumerable:true,get:function(){return chunkKUL2SDYC_js.i}});Object.defineProperty(exports,"getLoadedFonts",{enumerable:true,get:function(){return chunkKUL2SDYC_js.g}});Object.defineProperty(exports,"isFontLoaded",{enumerable:true,get:function(){return chunkKUL2SDYC_js.e}});Object.defineProperty(exports,"isFontsLoading",{enumerable:true,get:function(){return chunkKUL2SDYC_js.f}});Object.defineProperty(exports,"loadFont",{enumerable:true,get:function(){return chunkKUL2SDYC_js.c}});Object.defineProperty(exports,"loadFontFromBuffer",{enumerable:true,get:function(){return chunkKUL2SDYC_js.j}});Object.defineProperty(exports,"loadFonts",{enumerable:true,get:function(){return chunkKUL2SDYC_js.d}});Object.defineProperty(exports,"onFontsLoaded",{enumerable:true,get:function(){return chunkKUL2SDYC_js.h}});Object.defineProperty(exports,"parseDocx",{enumerable:true,get:function(){return chunkKUL2SDYC_js.n}});Object.defineProperty(exports,"preloadCommonFonts",{enumerable:true,get:function(){return chunkKUL2SDYC_js.k}});Object.defineProperty(exports,"toArrayBuffer",{enumerable:true,get:function(){return chunkKUL2SDYC_js.m}});Object.defineProperty(exports,"PluginRegistry",{enumerable:true,get:function(){return chunkBUEMG4NW_js.a}});Object.defineProperty(exports,"pluginRegistry",{enumerable:true,get:function(){return chunkBUEMG4NW_js.b}});Object.defineProperty(exports,"registerPlugins",{enumerable:true,get:function(){return chunkBUEMG4NW_js.c}});Object.defineProperty(exports,"emuToPixels",{enumerable:true,get:function(){return chunkSE5EN2QL_js.c}});Object.defineProperty(exports,"emuToTwips",{enumerable:true,get:function(){return chunkSE5EN2QL_js.e}});Object.defineProperty(exports,"formatPx",{enumerable:true,get:function(){return chunkSE5EN2QL_js.k}});Object.defineProperty(exports,"halfPointsToPixels",{enumerable:true,get:function(){return chunkSE5EN2QL_js.h}});Object.defineProperty(exports,"pixelsToEmu",{enumerable:true,get:function(){return chunkSE5EN2QL_js.d}});Object.defineProperty(exports,"pixelsToTwips",{enumerable:true,get:function(){return chunkSE5EN2QL_js.b}});Object.defineProperty(exports,"pointsToPixels",{enumerable:true,get:function(){return chunkSE5EN2QL_js.g}});Object.defineProperty(exports,"twipsToEmu",{enumerable:true,get:function(){return chunkSE5EN2QL_js.f}});Object.defineProperty(exports,"twipsToPixels",{enumerable:true,get:function(){return chunkSE5EN2QL_js.a}});exports.NAVIGATION_SHORTCUTS=u;exports.TEMPLATE_DECORATION_STYLES=I;exports.VERSION=aa;exports.createTemplatePlugin=j;exports.createTemplateProseMirrorPlugin=R;exports.describeShortcut=m;exports.expandSelectionToWord=Ri;exports.extendSelectionTo=E;exports.findNextWordStart=L;exports.findPreviousWordStart=O;exports.findVisualLineEnd=k;exports.findVisualLineStart=N;exports.findWordEnd=bi;exports.findWordStart=xi;exports.getNavigationShortcutDescriptions=wi;exports.getSelectionInfo=Pi;exports.getTemplatePluginTags=W;exports.getWordAtCursor=vi;exports.handleNavigationKey=Ci;exports.isNavigationKey=Ei;exports.isPunctuation=Si;exports.isWhitespaceChar=w;exports.isWordChar=f;exports.matchesShortcut=Ii;exports.moveByWord=M;exports.moveToLineEdge=H;exports.parseNavigationAction=K;exports.setHoveredElement=b;exports.setSelectedElement=v;exports.setSelectionPosition=C;exports.templatePlugin=Vi;exports.templatePluginKey=d;
|
|
112
|
+
`}}var Vi=j();var aa="0.0.2";Object.defineProperty(exports,"DEFAULT_SELECTION_STYLE",{enumerable:true,get:function(){return chunkDLNS7XC2_js.I}});Object.defineProperty(exports,"DocxEditor",{enumerable:true,get:function(){return chunkDLNS7XC2_js.v}});Object.defineProperty(exports,"EditorToolbar",{enumerable:true,get:function(){return chunkDLNS7XC2_js.a}});Object.defineProperty(exports,"ErrorBoundary",{enumerable:true,get:function(){return chunkDLNS7XC2_js.d}});Object.defineProperty(exports,"ErrorProvider",{enumerable:true,get:function(){return chunkDLNS7XC2_js.c}});Object.defineProperty(exports,"HIGH_CONTRAST_SELECTION_STYLE",{enumerable:true,get:function(){return chunkDLNS7XC2_js.J}});Object.defineProperty(exports,"PLUGIN_HOST_STYLES",{enumerable:true,get:function(){return chunkDLNS7XC2_js.ea}});Object.defineProperty(exports,"ParseErrorDisplay",{enumerable:true,get:function(){return chunkDLNS7XC2_js.e}});Object.defineProperty(exports,"PluginHost",{enumerable:true,get:function(){return chunkDLNS7XC2_js.fa}});Object.defineProperty(exports,"SELECTION_CSS_VARS",{enumerable:true,get:function(){return chunkDLNS7XC2_js.K}});Object.defineProperty(exports,"UnsupportedFeatureWarning",{enumerable:true,get:function(){return chunkDLNS7XC2_js.f}});Object.defineProperty(exports,"ZOOM_PRESETS",{enumerable:true,get:function(){return chunkDLNS7XC2_js.y}});Object.defineProperty(exports,"areSelectionStylesInjected",{enumerable:true,get:function(){return chunkDLNS7XC2_js.$}});Object.defineProperty(exports,"clampZoom",{enumerable:true,get:function(){return chunkDLNS7XC2_js.H}});Object.defineProperty(exports,"clearSelection",{enumerable:true,get:function(){return chunkDLNS7XC2_js.W}});Object.defineProperty(exports,"createDoubleClickWordSelector",{enumerable:true,get:function(){return chunkDLNS7XC2_js.t}});Object.defineProperty(exports,"createSelectionChangeHandler",{enumerable:true,get:function(){return chunkDLNS7XC2_js.aa}});Object.defineProperty(exports,"createTripleClickParagraphSelector",{enumerable:true,get:function(){return chunkDLNS7XC2_js.u}});Object.defineProperty(exports,"expandSelectionToWordBoundaries",{enumerable:true,get:function(){return chunkDLNS7XC2_js.q}});Object.defineProperty(exports,"findNearestZoomPreset",{enumerable:true,get:function(){return chunkDLNS7XC2_js.B}});Object.defineProperty(exports,"findWordAt",{enumerable:true,get:function(){return chunkDLNS7XC2_js.n}});Object.defineProperty(exports,"findWordBoundaries",{enumerable:true,get:function(){return chunkDLNS7XC2_js.l}});Object.defineProperty(exports,"formatZoom",{enumerable:true,get:function(){return chunkDLNS7XC2_js.E}});Object.defineProperty(exports,"generateOverlayElements",{enumerable:true,get:function(){return chunkDLNS7XC2_js.ca}});Object.defineProperty(exports,"generateSelectionCSS",{enumerable:true,get:function(){return chunkDLNS7XC2_js.P}});Object.defineProperty(exports,"getHighlightRectStyle",{enumerable:true,get:function(){return chunkDLNS7XC2_js.O}});Object.defineProperty(exports,"getMergedSelectionRects",{enumerable:true,get:function(){return chunkDLNS7XC2_js.N}});Object.defineProperty(exports,"getNextZoomPreset",{enumerable:true,get:function(){return chunkDLNS7XC2_js.C}});Object.defineProperty(exports,"getPreviousZoomPreset",{enumerable:true,get:function(){return chunkDLNS7XC2_js.D}});Object.defineProperty(exports,"getSelectedText",{enumerable:true,get:function(){return chunkDLNS7XC2_js.R}});Object.defineProperty(exports,"getSelectionBoundingRect",{enumerable:true,get:function(){return chunkDLNS7XC2_js.T}});Object.defineProperty(exports,"getSelectionRects",{enumerable:true,get:function(){return chunkDLNS7XC2_js.L}});Object.defineProperty(exports,"getUserFriendlyMessage",{enumerable:true,get:function(){return chunkDLNS7XC2_js.h}});Object.defineProperty(exports,"getWordAt",{enumerable:true,get:function(){return chunkDLNS7XC2_js.m}});Object.defineProperty(exports,"getZoomPresets",{enumerable:true,get:function(){return chunkDLNS7XC2_js.A}});Object.defineProperty(exports,"handleClickForMultiClick",{enumerable:true,get:function(){return chunkDLNS7XC2_js.s}});Object.defineProperty(exports,"hasActiveSelection",{enumerable:true,get:function(){return chunkDLNS7XC2_js.Q}});Object.defineProperty(exports,"highlightTextRange",{enumerable:true,get:function(){return chunkDLNS7XC2_js.U}});Object.defineProperty(exports,"injectSelectionStyles",{enumerable:true,get:function(){return chunkDLNS7XC2_js.Z}});Object.defineProperty(exports,"isParseError",{enumerable:true,get:function(){return chunkDLNS7XC2_js.g}});Object.defineProperty(exports,"isSelectionBackwards",{enumerable:true,get:function(){return chunkDLNS7XC2_js.X}});Object.defineProperty(exports,"isSelectionWithin",{enumerable:true,get:function(){return chunkDLNS7XC2_js.S}});Object.defineProperty(exports,"isWhitespace",{enumerable:true,get:function(){return chunkDLNS7XC2_js.k}});Object.defineProperty(exports,"isWordCharacter",{enumerable:true,get:function(){return chunkDLNS7XC2_js.j}});Object.defineProperty(exports,"isZoomPreset",{enumerable:true,get:function(){return chunkDLNS7XC2_js.G}});Object.defineProperty(exports,"mergeAdjacentRects",{enumerable:true,get:function(){return chunkDLNS7XC2_js.M}});Object.defineProperty(exports,"normalizeSelectionDirection",{enumerable:true,get:function(){return chunkDLNS7XC2_js.Y}});Object.defineProperty(exports,"parseZoom",{enumerable:true,get:function(){return chunkDLNS7XC2_js.F}});Object.defineProperty(exports,"removeSelectionStyles",{enumerable:true,get:function(){return chunkDLNS7XC2_js._}});Object.defineProperty(exports,"renderAsync",{enumerable:true,get:function(){return chunkDLNS7XC2_js.w}});Object.defineProperty(exports,"selectParagraphAtCursor",{enumerable:true,get:function(){return chunkDLNS7XC2_js.r}});Object.defineProperty(exports,"selectRange",{enumerable:true,get:function(){return chunkDLNS7XC2_js.V}});Object.defineProperty(exports,"selectWordAtCursor",{enumerable:true,get:function(){return chunkDLNS7XC2_js.o}});Object.defineProperty(exports,"selectWordInTextNode",{enumerable:true,get:function(){return chunkDLNS7XC2_js.p}});Object.defineProperty(exports,"useAutoSave",{enumerable:true,get:function(){return chunkDLNS7XC2_js.x}});Object.defineProperty(exports,"useClipboard",{enumerable:true,get:function(){return chunkDLNS7XC2_js.da}});Object.defineProperty(exports,"useErrorNotifications",{enumerable:true,get:function(){return chunkDLNS7XC2_js.b}});Object.defineProperty(exports,"useSelectionHighlight",{enumerable:true,get:function(){return chunkDLNS7XC2_js.ba}});Object.defineProperty(exports,"useTableSelection",{enumerable:true,get:function(){return chunkDLNS7XC2_js.i}});Object.defineProperty(exports,"useWheelZoom",{enumerable:true,get:function(){return chunkDLNS7XC2_js.z}});Object.defineProperty(exports,"ColorPicker",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.k}});Object.defineProperty(exports,"ContextMenu",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.a}});Object.defineProperty(exports,"InsertImageDialog",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.V}});Object.defineProperty(exports,"InsertSymbolDialog",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.da}});Object.defineProperty(exports,"InsertTableDialog",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.O}});Object.defineProperty(exports,"KeyboardShortcutsDialog",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.qa}});Object.defineProperty(exports,"LoadingIndicator",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.B}});Object.defineProperty(exports,"PasteSpecialDialog",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ka}});Object.defineProperty(exports,"PrintButton",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.l}});Object.defineProperty(exports,"PrintStyles",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.m}});Object.defineProperty(exports,"ResponsePreview",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.g}});Object.defineProperty(exports,"ResponsiveToolbar",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.J}});Object.defineProperty(exports,"ResponsiveToolbarGroup",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.K}});Object.defineProperty(exports,"SYMBOL_CATEGORIES",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ca}});Object.defineProperty(exports,"TableInsertButtons",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.u}});Object.defineProperty(exports,"TableMergeButton",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.t}});Object.defineProperty(exports,"UnsavedIndicator",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.v}});Object.defineProperty(exports,"calculateFitDimensions",{enumerable:true,get:function(){return chunk3OKYQQQ5_js._}});Object.defineProperty(exports,"clampTableConfig",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.S}});Object.defineProperty(exports,"createChangeTracker",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.A}});Object.defineProperty(exports,"createDefaultTableConfig",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.Q}});Object.defineProperty(exports,"createErrorResponse",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.j}});Object.defineProperty(exports,"createMockResponse",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.i}});Object.defineProperty(exports,"createToolbarItem",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.L}});Object.defineProperty(exports,"createToolbarItems",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.M}});Object.defineProperty(exports,"dataUrlToBlob",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.$}});Object.defineProperty(exports,"delay",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.H}});Object.defineProperty(exports,"formatFileSize",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ba}});Object.defineProperty(exports,"formatPrintPageRange",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.r}});Object.defineProperty(exports,"formatShortcutKeys",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.xa}});Object.defineProperty(exports,"formatTableDimensions",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.T}});Object.defineProperty(exports,"getActionShortcut",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.c}});Object.defineProperty(exports,"getAllActions",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.f}});Object.defineProperty(exports,"getAllCategories",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.wa}});Object.defineProperty(exports,"getAllIndicatorPositions",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.z}});Object.defineProperty(exports,"getAllIndicatorVariants",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.y}});Object.defineProperty(exports,"getAllLoadingSizes",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.G}});Object.defineProperty(exports,"getAllLoadingVariants",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.F}});Object.defineProperty(exports,"getAllPasteOptions",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.na}});Object.defineProperty(exports,"getCategoryLabel",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.va}});Object.defineProperty(exports,"getCommonShortcuts",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ua}});Object.defineProperty(exports,"getDefaultActions",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.e}});Object.defineProperty(exports,"getDefaultPasteOption",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.oa}});Object.defineProperty(exports,"getDefaultPrintOptions",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.p}});Object.defineProperty(exports,"getDefaultShortcuts",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.sa}});Object.defineProperty(exports,"getImageAcceptString",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.Z}});Object.defineProperty(exports,"getImageDimensions",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.aa}});Object.defineProperty(exports,"getLoadingVariantLabel",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.E}});Object.defineProperty(exports,"getPasteOption",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ma}});Object.defineProperty(exports,"getRecommendedPriority",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.N}});Object.defineProperty(exports,"getShortcutsByCategory",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ta}});Object.defineProperty(exports,"getSupportedImageExtensions",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.Y}});Object.defineProperty(exports,"getSymbolCategories",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.fa}});Object.defineProperty(exports,"getSymbolUnicodeInfo",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ha}});Object.defineProperty(exports,"getSymbolsByCategory",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ga}});Object.defineProperty(exports,"getTablePresets",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.U}});Object.defineProperty(exports,"getVariantLabel",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.x}});Object.defineProperty(exports,"isActionAvailable",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.d}});Object.defineProperty(exports,"isPasteSpecialShortcut",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.pa}});Object.defineProperty(exports,"isPrintSupported",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.s}});Object.defineProperty(exports,"isValidImageFile",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.X}});Object.defineProperty(exports,"isValidTableConfig",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.R}});Object.defineProperty(exports,"openPrintWindow",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.o}});Object.defineProperty(exports,"parsePageRange",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.q}});Object.defineProperty(exports,"searchSymbols",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ia}});Object.defineProperty(exports,"symbolFromCodePoint",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ja}});Object.defineProperty(exports,"triggerPrint",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.n}});Object.defineProperty(exports,"useContextMenu",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.b}});Object.defineProperty(exports,"useInsertImageDialog",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.W}});Object.defineProperty(exports,"useInsertSymbolDialog",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ea}});Object.defineProperty(exports,"useInsertTableDialog",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.P}});Object.defineProperty(exports,"useKeyboardShortcutsDialog",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.ra}});Object.defineProperty(exports,"useLoading",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.C}});Object.defineProperty(exports,"useLoadingOperations",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.D}});Object.defineProperty(exports,"usePasteSpecial",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.la}});Object.defineProperty(exports,"useResponsePreview",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.h}});Object.defineProperty(exports,"useResponsiveToolbar",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.I}});Object.defineProperty(exports,"useUnsavedChanges",{enumerable:true,get:function(){return chunk3OKYQQQ5_js.w}});Object.defineProperty(exports,"AdvancedColorPicker",{enumerable:true,get:function(){return chunkDC65PJYE_js.k}});Object.defineProperty(exports,"AlignmentButtons",{enumerable:true,get:function(){return chunkDC65PJYE_js.l}});Object.defineProperty(exports,"CLIPBOARD_TYPES",{enumerable:true,get:function(){return chunkDC65PJYE_js.K}});Object.defineProperty(exports,"FontPicker",{enumerable:true,get:function(){return chunkDC65PJYE_js.g}});Object.defineProperty(exports,"FontSizePicker",{enumerable:true,get:function(){return chunkDC65PJYE_js.j}});Object.defineProperty(exports,"FormattingBar",{enumerable:true,get:function(){return chunkDC65PJYE_js.y}});Object.defineProperty(exports,"HorizontalRuler",{enumerable:true,get:function(){return chunkDC65PJYE_js.E}});Object.defineProperty(exports,"INTERNAL_CLIPBOARD_TYPE",{enumerable:true,get:function(){return chunkDC65PJYE_js.J}});Object.defineProperty(exports,"LineSpacingPicker",{enumerable:true,get:function(){return chunkDC65PJYE_js.o}});Object.defineProperty(exports,"ListButtons",{enumerable:true,get:function(){return chunkDC65PJYE_js.m}});Object.defineProperty(exports,"StylePicker",{enumerable:true,get:function(){return chunkDC65PJYE_js.p}});Object.defineProperty(exports,"TableBorderColorPicker",{enumerable:true,get:function(){return chunkDC65PJYE_js.s}});Object.defineProperty(exports,"TableBorderPicker",{enumerable:true,get:function(){return chunkDC65PJYE_js.r}});Object.defineProperty(exports,"TableBorderWidthPicker",{enumerable:true,get:function(){return chunkDC65PJYE_js.t}});Object.defineProperty(exports,"TableCellFillPicker",{enumerable:true,get:function(){return chunkDC65PJYE_js.u}});Object.defineProperty(exports,"TableMoreDropdown",{enumerable:true,get:function(){return chunkDC65PJYE_js.v}});Object.defineProperty(exports,"TableToolbar",{enumerable:true,get:function(){return chunkDC65PJYE_js.da}});Object.defineProperty(exports,"TextContextMenu",{enumerable:true,get:function(){return chunkDC65PJYE_js.Z}});Object.defineProperty(exports,"Toolbar",{enumerable:true,get:function(){return chunkDC65PJYE_js.D}});Object.defineProperty(exports,"ToolbarButton",{enumerable:true,get:function(){return chunkDC65PJYE_js.A}});Object.defineProperty(exports,"ToolbarGroup",{enumerable:true,get:function(){return chunkDC65PJYE_js.B}});Object.defineProperty(exports,"ToolbarSeparator",{enumerable:true,get:function(){return chunkDC65PJYE_js.C}});Object.defineProperty(exports,"ZoomControl",{enumerable:true,get:function(){return chunkDC65PJYE_js.q}});Object.defineProperty(exports,"addColumn",{enumerable:true,get:function(){return chunkDC65PJYE_js.ja}});Object.defineProperty(exports,"addRow",{enumerable:true,get:function(){return chunkDC65PJYE_js.ha}});Object.defineProperty(exports,"cleanWordHtml",{enumerable:true,get:function(){return chunkDC65PJYE_js.W}});Object.defineProperty(exports,"copyParagraphs",{enumerable:true,get:function(){return chunkDC65PJYE_js.N}});Object.defineProperty(exports,"copyRuns",{enumerable:true,get:function(){return chunkDC65PJYE_js.M}});Object.defineProperty(exports,"createClipboardHandlers",{enumerable:true,get:function(){return chunkDC65PJYE_js.Y}});Object.defineProperty(exports,"createDefaultListState",{enumerable:true,get:function(){return chunkDC65PJYE_js.n}});Object.defineProperty(exports,"createTableContext",{enumerable:true,get:function(){return chunkDC65PJYE_js.ea}});Object.defineProperty(exports,"deleteColumn",{enumerable:true,get:function(){return chunkDC65PJYE_js.ka}});Object.defineProperty(exports,"deleteRow",{enumerable:true,get:function(){return chunkDC65PJYE_js.ia}});Object.defineProperty(exports,"getCellAt",{enumerable:true,get:function(){return chunkDC65PJYE_js.ga}});Object.defineProperty(exports,"getColumnCount",{enumerable:true,get:function(){return chunkDC65PJYE_js.fa}});Object.defineProperty(exports,"getDefaultTextContextMenuItems",{enumerable:true,get:function(){return chunkDC65PJYE_js.ba}});Object.defineProperty(exports,"getMarginInUnits",{enumerable:true,get:function(){return chunkDC65PJYE_js.H}});Object.defineProperty(exports,"getRulerDimensions",{enumerable:true,get:function(){return chunkDC65PJYE_js.G}});Object.defineProperty(exports,"getTextActionLabel",{enumerable:true,get:function(){return chunkDC65PJYE_js.$}});Object.defineProperty(exports,"getTextActionShortcut",{enumerable:true,get:function(){return chunkDC65PJYE_js.aa}});Object.defineProperty(exports,"handlePasteEvent",{enumerable:true,get:function(){return chunkDC65PJYE_js.S}});Object.defineProperty(exports,"htmlToRuns",{enumerable:true,get:function(){return chunkDC65PJYE_js.X}});Object.defineProperty(exports,"isEditorHtml",{enumerable:true,get:function(){return chunkDC65PJYE_js.V}});Object.defineProperty(exports,"isTextActionAvailable",{enumerable:true,get:function(){return chunkDC65PJYE_js.ca}});Object.defineProperty(exports,"isWordHtml",{enumerable:true,get:function(){return chunkDC65PJYE_js.U}});Object.defineProperty(exports,"mergeCells",{enumerable:true,get:function(){return chunkDC65PJYE_js.la}});Object.defineProperty(exports,"paragraphsToClipboardContent",{enumerable:true,get:function(){return chunkDC65PJYE_js.P}});Object.defineProperty(exports,"parseClipboardHtml",{enumerable:true,get:function(){return chunkDC65PJYE_js.T}});Object.defineProperty(exports,"parseMarginFromUnits",{enumerable:true,get:function(){return chunkDC65PJYE_js.I}});Object.defineProperty(exports,"positionToMargin",{enumerable:true,get:function(){return chunkDC65PJYE_js.F}});Object.defineProperty(exports,"readFromClipboard",{enumerable:true,get:function(){return chunkDC65PJYE_js.R}});Object.defineProperty(exports,"runsToClipboardContent",{enumerable:true,get:function(){return chunkDC65PJYE_js.O}});Object.defineProperty(exports,"splitCell",{enumerable:true,get:function(){return chunkDC65PJYE_js.ma}});Object.defineProperty(exports,"useTextContextMenu",{enumerable:true,get:function(){return chunkDC65PJYE_js._}});Object.defineProperty(exports,"writeToClipboard",{enumerable:true,get:function(){return chunkDC65PJYE_js.Q}});Object.defineProperty(exports,"FindReplaceDialog",{enumerable:true,get:function(){return chunkAU5NVRHP_js.n}});Object.defineProperty(exports,"createDefaultFindOptions",{enumerable:true,get:function(){return chunkAU5NVRHP_js.a}});Object.defineProperty(exports,"createSearchPattern",{enumerable:true,get:function(){return chunkAU5NVRHP_js.c}});Object.defineProperty(exports,"escapeRegexString",{enumerable:true,get:function(){return chunkAU5NVRHP_js.b}});Object.defineProperty(exports,"findAllMatches",{enumerable:true,get:function(){return chunkAU5NVRHP_js.d}});Object.defineProperty(exports,"findInDocument",{enumerable:true,get:function(){return chunkAU5NVRHP_js.j}});Object.defineProperty(exports,"findInParagraph",{enumerable:true,get:function(){return chunkAU5NVRHP_js.k}});Object.defineProperty(exports,"getDefaultHighlightOptions",{enumerable:true,get:function(){return chunkAU5NVRHP_js.i}});Object.defineProperty(exports,"getMatchCountText",{enumerable:true,get:function(){return chunkAU5NVRHP_js.g}});Object.defineProperty(exports,"isEmptySearch",{enumerable:true,get:function(){return chunkAU5NVRHP_js.h}});Object.defineProperty(exports,"replaceAllInContent",{enumerable:true,get:function(){return chunkAU5NVRHP_js.e}});Object.defineProperty(exports,"replaceFirstInContent",{enumerable:true,get:function(){return chunkAU5NVRHP_js.f}});Object.defineProperty(exports,"scrollToMatch",{enumerable:true,get:function(){return chunkAU5NVRHP_js.l}});Object.defineProperty(exports,"useFindReplace",{enumerable:true,get:function(){return chunkAU5NVRHP_js.m}});Object.defineProperty(exports,"HyperlinkDialog",{enumerable:true,get:function(){return chunk377ZVTSE_js.d}});Object.defineProperty(exports,"useHyperlinkDialog",{enumerable:true,get:function(){return chunk377ZVTSE_js.m}});Object.defineProperty(exports,"LocaleProvider",{enumerable:true,get:function(){return chunkQSUPYUOP_js.a}});Object.defineProperty(exports,"useTranslation",{enumerable:true,get:function(){return chunkQSUPYUOP_js.b}});Object.defineProperty(exports,"TABLE_DATA_ATTRIBUTES",{enumerable:true,get:function(){return chunkFVUGBRDD_js.x}});Object.defineProperty(exports,"countPageBreaks",{enumerable:true,get:function(){return chunkFVUGBRDD_js.n}});Object.defineProperty(exports,"createColumnBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.b}});Object.defineProperty(exports,"createHorizontalRule",{enumerable:true,get:function(){return chunkFVUGBRDD_js.g}});Object.defineProperty(exports,"createLineBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.c}});Object.defineProperty(exports,"createPageBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.a}});Object.defineProperty(exports,"createPageBreakParagraph",{enumerable:true,get:function(){return chunkFVUGBRDD_js.e}});Object.defineProperty(exports,"createPageBreakRun",{enumerable:true,get:function(){return chunkFVUGBRDD_js.d}});Object.defineProperty(exports,"createSelectionFromDOM",{enumerable:true,get:function(){return chunkFVUGBRDD_js.F}});Object.defineProperty(exports,"findPageBreaks",{enumerable:true,get:function(){return chunkFVUGBRDD_js.o}});Object.defineProperty(exports,"formatLastSaveTime",{enumerable:true,get:function(){return chunkFVUGBRDD_js.s}});Object.defineProperty(exports,"formatStorageSize",{enumerable:true,get:function(){return chunkFVUGBRDD_js.v}});Object.defineProperty(exports,"getAutoSaveStatusLabel",{enumerable:true,get:function(){return chunkFVUGBRDD_js.t}});Object.defineProperty(exports,"getAutoSaveStorageSize",{enumerable:true,get:function(){return chunkFVUGBRDD_js.u}});Object.defineProperty(exports,"getSelectionRuns",{enumerable:true,get:function(){return chunkFVUGBRDD_js.E}});Object.defineProperty(exports,"hasPageBreakBefore",{enumerable:true,get:function(){return chunkFVUGBRDD_js.m}});Object.defineProperty(exports,"insertHorizontalRule",{enumerable:true,get:function(){return chunkFVUGBRDD_js.h}});Object.defineProperty(exports,"insertPageBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.f}});Object.defineProperty(exports,"isAutoSaveSupported",{enumerable:true,get:function(){return chunkFVUGBRDD_js.w}});Object.defineProperty(exports,"isBreakContent",{enumerable:true,get:function(){return chunkFVUGBRDD_js.l}});Object.defineProperty(exports,"isColumnBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.j}});Object.defineProperty(exports,"isLineBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.k}});Object.defineProperty(exports,"isPageBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.i}});Object.defineProperty(exports,"removePageBreak",{enumerable:true,get:function(){return chunkFVUGBRDD_js.p}});Object.defineProperty(exports,"DocumentAgent",{enumerable:true,get:function(){return chunkP7WEP4JU_js.f}});Object.defineProperty(exports,"buildExtendedSelectionContext",{enumerable:true,get:function(){return chunkP7WEP4JU_js.m}});Object.defineProperty(exports,"buildSelectionContext",{enumerable:true,get:function(){return chunkP7WEP4JU_js.l}});Object.defineProperty(exports,"createDocumentWithText",{enumerable:true,get:function(){return chunkP7WEP4JU_js.e}});Object.defineProperty(exports,"createEmptyDocument",{enumerable:true,get:function(){return chunkP7WEP4JU_js.d}});Object.defineProperty(exports,"getAgentContext",{enumerable:true,get:function(){return chunkP7WEP4JU_js.i}});Object.defineProperty(exports,"getDocumentSummary",{enumerable:true,get:function(){return chunkP7WEP4JU_js.k}});Object.defineProperty(exports,"blendColors",{enumerable:true,get:function(){return chunk4VUZBV2S_js.l}});Object.defineProperty(exports,"colorsEqual",{enumerable:true,get:function(){return chunk4VUZBV2S_js.q}});Object.defineProperty(exports,"createRgbColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.i}});Object.defineProperty(exports,"createThemeColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.h}});Object.defineProperty(exports,"darkenColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.j}});Object.defineProperty(exports,"getContrastingColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.f}});Object.defineProperty(exports,"isBlack",{enumerable:true,get:function(){return chunk4VUZBV2S_js.d}});Object.defineProperty(exports,"isWhite",{enumerable:true,get:function(){return chunk4VUZBV2S_js.e}});Object.defineProperty(exports,"lightenColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.k}});Object.defineProperty(exports,"parseColorString",{enumerable:true,get:function(){return chunk4VUZBV2S_js.g}});Object.defineProperty(exports,"resolveColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.a}});Object.defineProperty(exports,"resolveHighlightColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.b}});Object.defineProperty(exports,"resolveShadingColor",{enumerable:true,get:function(){return chunk4VUZBV2S_js.c}});Object.defineProperty(exports,"docxtemplaterPlugin",{enumerable:true,get:function(){return chunkKCOGY3V2_js.o}});Object.defineProperty(exports,"getTemplateTags",{enumerable:true,get:function(){return chunkPB7VMDDP_js.e}});Object.defineProperty(exports,"processTemplate",{enumerable:true,get:function(){return chunkPB7VMDDP_js.a}});Object.defineProperty(exports,"processTemplateAsBlob",{enumerable:true,get:function(){return chunkPB7VMDDP_js.c}});Object.defineProperty(exports,"processTemplateDetailed",{enumerable:true,get:function(){return chunkPB7VMDDP_js.b}});Object.defineProperty(exports,"validateTemplate",{enumerable:true,get:function(){return chunkPB7VMDDP_js.f}});Object.defineProperty(exports,"serializeDocumentBody",{enumerable:true,get:function(){return chunkZJNGMDRE_js.b}});Object.defineProperty(exports,"serializeDocx",{enumerable:true,get:function(){return chunkZJNGMDRE_js.c}});Object.defineProperty(exports,"serializeSectionProperties",{enumerable:true,get:function(){return chunkZJNGMDRE_js.a}});Object.defineProperty(exports,"executeCommand",{enumerable:true,get:function(){return chunkAARNCPWR_js.a}});Object.defineProperty(exports,"executeCommands",{enumerable:true,get:function(){return chunkAARNCPWR_js.b}});Object.defineProperty(exports,"canRenderFont",{enumerable:true,get:function(){return chunkKUL2SDYC_js.i}});Object.defineProperty(exports,"getLoadedFonts",{enumerable:true,get:function(){return chunkKUL2SDYC_js.g}});Object.defineProperty(exports,"isFontLoaded",{enumerable:true,get:function(){return chunkKUL2SDYC_js.e}});Object.defineProperty(exports,"isFontsLoading",{enumerable:true,get:function(){return chunkKUL2SDYC_js.f}});Object.defineProperty(exports,"loadFont",{enumerable:true,get:function(){return chunkKUL2SDYC_js.c}});Object.defineProperty(exports,"loadFontFromBuffer",{enumerable:true,get:function(){return chunkKUL2SDYC_js.j}});Object.defineProperty(exports,"loadFonts",{enumerable:true,get:function(){return chunkKUL2SDYC_js.d}});Object.defineProperty(exports,"onFontsLoaded",{enumerable:true,get:function(){return chunkKUL2SDYC_js.h}});Object.defineProperty(exports,"parseDocx",{enumerable:true,get:function(){return chunkKUL2SDYC_js.n}});Object.defineProperty(exports,"preloadCommonFonts",{enumerable:true,get:function(){return chunkKUL2SDYC_js.k}});Object.defineProperty(exports,"toArrayBuffer",{enumerable:true,get:function(){return chunkKUL2SDYC_js.m}});Object.defineProperty(exports,"PluginRegistry",{enumerable:true,get:function(){return chunkBUEMG4NW_js.a}});Object.defineProperty(exports,"pluginRegistry",{enumerable:true,get:function(){return chunkBUEMG4NW_js.b}});Object.defineProperty(exports,"registerPlugins",{enumerable:true,get:function(){return chunkBUEMG4NW_js.c}});Object.defineProperty(exports,"emuToPixels",{enumerable:true,get:function(){return chunkSE5EN2QL_js.c}});Object.defineProperty(exports,"emuToTwips",{enumerable:true,get:function(){return chunkSE5EN2QL_js.e}});Object.defineProperty(exports,"formatPx",{enumerable:true,get:function(){return chunkSE5EN2QL_js.k}});Object.defineProperty(exports,"halfPointsToPixels",{enumerable:true,get:function(){return chunkSE5EN2QL_js.h}});Object.defineProperty(exports,"pixelsToEmu",{enumerable:true,get:function(){return chunkSE5EN2QL_js.d}});Object.defineProperty(exports,"pixelsToTwips",{enumerable:true,get:function(){return chunkSE5EN2QL_js.b}});Object.defineProperty(exports,"pointsToPixels",{enumerable:true,get:function(){return chunkSE5EN2QL_js.g}});Object.defineProperty(exports,"twipsToEmu",{enumerable:true,get:function(){return chunkSE5EN2QL_js.f}});Object.defineProperty(exports,"twipsToPixels",{enumerable:true,get:function(){return chunkSE5EN2QL_js.a}});exports.NAVIGATION_SHORTCUTS=u;exports.TEMPLATE_DECORATION_STYLES=I;exports.VERSION=aa;exports.createTemplatePlugin=j;exports.createTemplateProseMirrorPlugin=R;exports.describeShortcut=m;exports.expandSelectionToWord=Ri;exports.extendSelectionTo=E;exports.findNextWordStart=L;exports.findPreviousWordStart=O;exports.findVisualLineEnd=k;exports.findVisualLineStart=N;exports.findWordEnd=xi;exports.findWordStart=bi;exports.getNavigationShortcutDescriptions=wi;exports.getSelectionInfo=Pi;exports.getTemplatePluginTags=W;exports.getWordAtCursor=vi;exports.handleNavigationKey=Ci;exports.isNavigationKey=Ei;exports.isPunctuation=Si;exports.isWhitespaceChar=w;exports.isWordChar=f;exports.matchesShortcut=Ii;exports.moveByWord=M;exports.moveToLineEdge=H;exports.parseNavigationAction=K;exports.setHoveredElement=x;exports.setSelectedElement=v;exports.setSelectionPosition=C;exports.templatePlugin=Vi;exports.templatePluginKey=d;
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export{I as DEFAULT_SELECTION_STYLE,v as DocxEditor,a as EditorToolbar,d as ErrorBoundary,c as ErrorProvider,J as HIGH_CONTRAST_SELECTION_STYLE,ea as PLUGIN_HOST_STYLES,e as ParseErrorDisplay,fa as PluginHost,K as SELECTION_CSS_VARS,f as UnsupportedFeatureWarning,y as ZOOM_PRESETS,$ as areSelectionStylesInjected,H as clampZoom,W as clearSelection,t as createDoubleClickWordSelector,aa as createSelectionChangeHandler,u as createTripleClickParagraphSelector,q as expandSelectionToWordBoundaries,B as findNearestZoomPreset,n as findWordAt,l as findWordBoundaries,E as formatZoom,ca as generateOverlayElements,P as generateSelectionCSS,O as getHighlightRectStyle,N as getMergedSelectionRects,C as getNextZoomPreset,D as getPreviousZoomPreset,R as getSelectedText,T as getSelectionBoundingRect,L as getSelectionRects,h as getUserFriendlyMessage,m as getWordAt,A as getZoomPresets,s as handleClickForMultiClick,Q as hasActiveSelection,U as highlightTextRange,Z as injectSelectionStyles,g as isParseError,X as isSelectionBackwards,S as isSelectionWithin,k as isWhitespace,j as isWordCharacter,G as isZoomPreset,M as mergeAdjacentRects,Y as normalizeSelectionDirection,F as parseZoom,_ as removeSelectionStyles,w as renderAsync,r as selectParagraphAtCursor,V as selectRange,o as selectWordAtCursor,p as selectWordInTextNode,x as useAutoSave,da as useClipboard,b as useErrorNotifications,ba as useSelectionHighlight,i as useTableSelection,z as useWheelZoom}from'./chunk-Z7ZLARCQ.mjs';import'./chunk-2HDYCD2Q.mjs';export{k as ColorPicker,a as ContextMenu,V as InsertImageDialog,da as InsertSymbolDialog,O as InsertTableDialog,qa as KeyboardShortcutsDialog,B as LoadingIndicator,ka as PasteSpecialDialog,l as PrintButton,m as PrintStyles,g as ResponsePreview,J as ResponsiveToolbar,K as ResponsiveToolbarGroup,ca as SYMBOL_CATEGORIES,u as TableInsertButtons,t as TableMergeButton,v as UnsavedIndicator,_ as calculateFitDimensions,S as clampTableConfig,A as createChangeTracker,Q as createDefaultTableConfig,j as createErrorResponse,i as createMockResponse,L as createToolbarItem,M as createToolbarItems,$ as dataUrlToBlob,H as delay,ba as formatFileSize,r as formatPrintPageRange,xa as formatShortcutKeys,T as formatTableDimensions,c as getActionShortcut,f as getAllActions,wa as getAllCategories,z as getAllIndicatorPositions,y as getAllIndicatorVariants,G as getAllLoadingSizes,F as getAllLoadingVariants,na as getAllPasteOptions,va as getCategoryLabel,ua as getCommonShortcuts,e as getDefaultActions,oa as getDefaultPasteOption,p as getDefaultPrintOptions,sa as getDefaultShortcuts,Z as getImageAcceptString,aa as getImageDimensions,E as getLoadingVariantLabel,ma as getPasteOption,N as getRecommendedPriority,ta as getShortcutsByCategory,Y as getSupportedImageExtensions,fa as getSymbolCategories,ha as getSymbolUnicodeInfo,ga as getSymbolsByCategory,U as getTablePresets,x as getVariantLabel,d as isActionAvailable,pa as isPasteSpecialShortcut,s as isPrintSupported,X as isValidImageFile,R as isValidTableConfig,o as openPrintWindow,q as parsePageRange,ia as searchSymbols,ja as symbolFromCodePoint,n as triggerPrint,b as useContextMenu,W as useInsertImageDialog,ea as useInsertSymbolDialog,P as useInsertTableDialog,ra as useKeyboardShortcutsDialog,C as useLoading,D as useLoadingOperations,la as usePasteSpecial,h as useResponsePreview,I as useResponsiveToolbar,w as useUnsavedChanges}from'./chunk-FW5LYOOZ.mjs';export{k as AdvancedColorPicker,l as AlignmentButtons,K as CLIPBOARD_TYPES,g as FontPicker,j as FontSizePicker,y as FormattingBar,E as HorizontalRuler,J as INTERNAL_CLIPBOARD_TYPE,o as LineSpacingPicker,m as ListButtons,p as StylePicker,s as TableBorderColorPicker,r as TableBorderPicker,t as TableBorderWidthPicker,u as TableCellFillPicker,v as TableMoreDropdown,da as TableToolbar,Z as TextContextMenu,D as Toolbar,A as ToolbarButton,B as ToolbarGroup,C as ToolbarSeparator,q as ZoomControl,ja as addColumn,ha as addRow,W as cleanWordHtml,N as copyParagraphs,M as copyRuns,Y as createClipboardHandlers,n as createDefaultListState,ea as createTableContext,ka as deleteColumn,ia as deleteRow,ga as getCellAt,fa as getColumnCount,ba as getDefaultTextContextMenuItems,H as getMarginInUnits,G as getRulerDimensions,$ as getTextActionLabel,aa as getTextActionShortcut,S as handlePasteEvent,X as htmlToRuns,V as isEditorHtml,ca as isTextActionAvailable,U as isWordHtml,la as mergeCells,P as paragraphsToClipboardContent,T as parseClipboardHtml,I as parseMarginFromUnits,F as positionToMargin,R as readFromClipboard,O as runsToClipboardContent,ma as splitCell,_ as useTextContextMenu,Q as writeToClipboard}from'./chunk-X5A54T6S.mjs';export{n as FindReplaceDialog,a as createDefaultFindOptions,c as createSearchPattern,b as escapeRegexString,d as findAllMatches,j as findInDocument,k as findInParagraph,i as getDefaultHighlightOptions,g as getMatchCountText,h as isEmptySearch,e as replaceAllInContent,f as replaceFirstInContent,l as scrollToMatch,m as useFindReplace}from'./chunk-Z26WOH6R.mjs';export{d as HyperlinkDialog,m as useHyperlinkDialog}from'./chunk-YKBSKEBS.mjs';export{a as LocaleProvider,b as useTranslation}from'./chunk-GZOCOWWB.mjs';export{x as TABLE_DATA_ATTRIBUTES,n as countPageBreaks,b as createColumnBreak,g as createHorizontalRule,c as createLineBreak,a as createPageBreak,e as createPageBreakParagraph,d as createPageBreakRun,F as createSelectionFromDOM,o as findPageBreaks,s as formatLastSaveTime,v as formatStorageSize,t as getAutoSaveStatusLabel,u as getAutoSaveStorageSize,E as getSelectionRuns,m as hasPageBreakBefore,h as insertHorizontalRule,f as insertPageBreak,w as isAutoSaveSupported,l as isBreakContent,j as isColumnBreak,k as isLineBreak,i as isPageBreak,p as removePageBreak}from'./chunk-QTSXJRP6.mjs';import'./chunk-6WPRCJ5A.mjs';export{f as DocumentAgent,m as buildExtendedSelectionContext,l as buildSelectionContext,e as createDocumentWithText,d as createEmptyDocument,i as getAgentContext,k as getDocumentSummary}from'./chunk-7QTNB64A.mjs';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-QAZ4233N.mjs';export{o as docxtemplaterPlugin}from'./chunk-RTFUE3KK.mjs';export{e as getTemplateTags,a as processTemplate,c as processTemplateAsBlob,b as processTemplateDetailed,f as validateTemplate}from'./chunk-DLVLK5FT.mjs';export{b as serializeDocumentBody,c as serializeDocx,a as serializeSectionProperties}from'./chunk-37SLIJPH.mjs';export{a as executeCommand,b as executeCommands}from'./chunk-M5F4SK3W.mjs';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-7MGFEP2R.mjs';export{a as PluginRegistry,b as pluginRegistry,c as registerPlugins}from'./chunk-W53SI3XW.mjs';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-LYBG4YI7.mjs';import'./chunk-WOHFANC5.mjs';import'./chunk-TAUMSKRE.mjs';import X,{useState,useCallback,useMemo,useEffect}from'react';import {PluginKey,TextSelection,Plugin}from'prosemirror-state';import {DecorationSet,Decoration}from'prosemirror-view';import {jsx,jsxs}from'react/jsx-runtime';function f(e){return e?/[\p{L}\p{N}_]/u.test(e):false}function w(e){return e?/\s/.test(e):false}function Si(e){return e?/[\p{P}]/u.test(e):false}function xi(e,o){if(o<=0)return 0;o>e.length&&(o=e.length);let t=o;for(;t>0&&w(e[t-1]);)t--;if(t===0)return 0;for(;t>0&&f(e[t-1]);)t--;return t}function bi(e,o){if(o>=e.length)return e.length;o<0&&(o=0);let t=o;for(;t<e.length&&f(e[t]);)t++;for(;t<e.length&&w(e[t]);)t++;return t}function L(e,o){if(o>=e.length)return e.length;let t=o;for(;t<e.length&&f(e[t]);)t++;for(;t<e.length&&!f(e[t]);)t++;return t}function O(e,o){if(o<=0)return 0;let t=o;for(;t>0&&!f(e[t-1]);)t--;for(;t>0&&f(e[t-1]);)t--;return t}function N(e,o){if(!window.getSelection())return null;let r=document.createRange();if(e.nodeType===Node.TEXT_NODE){r.setStart(e,Math.min(o,e.textContent?.length||0)),r.collapse(true);let n=r.getBoundingClientRect().top,a=0,p=o;for(;a<p;){let s=Math.floor((a+p)/2);r.setStart(e,s),r.collapse(true);let c=r.getBoundingClientRect();Math.abs(c.top-n)<2?p=s:a=s+1;}return {node:e,offset:a}}return null}function k(e,o){if(!window.getSelection())return null;let r=e.textContent?.length||0,i=document.createRange();if(e.nodeType===Node.TEXT_NODE){i.setStart(e,Math.min(o,r)),i.collapse(true);let a=i.getBoundingClientRect().top,p=o,s=r;for(;p<s;){let c=Math.ceil((p+s)/2);i.setStart(e,c),i.collapse(true);let l=i.getBoundingClientRect();Math.abs(l.top-a)<2?p=c:s=c-1;}return {node:e,offset:p}}return null}function Pi(){let e=window.getSelection();if(!e||e.rangeCount===0)return null;let o=e.getRangeAt(0);return {node:o.startContainer,offset:o.startOffset,anchorNode:e.anchorNode,anchorOffset:e.anchorOffset,focusNode:e.focusNode,focusOffset:e.focusOffset,isCollapsed:e.isCollapsed,text:e.toString()}}function C(e,o){let t=window.getSelection();if(!t)return;let r=document.createRange(),i=e.nodeType===Node.TEXT_NODE?e.textContent?.length||0:e.childNodes.length;r.setStart(e,Math.min(o,i)),r.collapse(true),t.removeAllRanges(),t.addRange(r);}function E(e,o){let t=window.getSelection();if(!(!t||!t.anchorNode))try{t.extend(e,Math.min(o,e.textContent?.length||0));}catch{let r=e.nodeType===Node.TEXT_NODE?e.textContent?.length||0:e.childNodes.length;t.setBaseAndExtent(t.anchorNode,t.anchorOffset,e,Math.min(o,r));}}function M(e,o=false){let t=window.getSelection();if(!t||t.rangeCount===0)return false;let r=t.focusNode;if(!r||r.nodeType!==Node.TEXT_NODE)return false;let i=r.textContent||"",n=t.focusOffset,a;return e==="left"?a=O(i,n):a=L(i,n),o?E(r,a):C(r,a),true}function H(e,o=false){let t=window.getSelection();if(!t||t.rangeCount===0)return false;let r=t.focusNode;if(!r)return false;if(r.nodeType===Node.TEXT_NODE){let a=e==="start"?N(r,t.focusOffset):k(r,t.focusOffset);if(a)return o?E(a.node,a.offset):C(a.node,a.offset),true}let i=r.textContent||"",n=e==="start"?0:i.length;return o?E(r,n):C(r,n),true}function K(e){let{key:o,ctrlKey:t,metaKey:r,shiftKey:i,altKey:n}=e,a=t||r;switch(o){case "ArrowLeft":if(a)return {direction:"left",unit:"word",extend:i};break;case "ArrowRight":if(a)return {direction:"right",unit:"word",extend:i};break;case "Home":return a?{direction:"left",unit:"document",extend:i}:{direction:"left",unit:"line",extend:i};case "End":return a?{direction:"right",unit:"document",extend:i}:{direction:"right",unit:"line",extend:i}}return null}function Ci(e,o){let t=K(e);if(!t)return false;switch(t.unit){case "word":if((t.direction==="left"||t.direction==="right")&&M(t.direction,t.extend))return e.preventDefault(),true;break;case "line":let r=t.direction==="left"?"start":"end";if(H(r,t.extend))return e.preventDefault(),true;break;case "document":if(t.direction==="left"&&o?.onDocumentStart)return e.preventDefault(),o.onDocumentStart(),true;if(t.direction==="right"&&o?.onDocumentEnd)return e.preventDefault(),o.onDocumentEnd(),true;break}return false}function Ei(e){let{key:o,ctrlKey:t,metaKey:r}=e;return !!((t||r)&&(o==="ArrowLeft"||o==="ArrowRight")||o==="Home"||o==="End")}function Ri(){let e=window.getSelection();if(!e||e.rangeCount===0)return false;let o=e.focusNode;if(!o||o.nodeType!==Node.TEXT_NODE)return false;let t=o.textContent||"",r=e.focusOffset,i=r,n=r;for(;i>0&&f(t[i-1]);)i--;for(;n<t.length&&f(t[n]);)n++;if(i===n)return false;let a=document.createRange();return a.setStart(o,i),a.setEnd(o,n),e.removeAllRanges(),e.addRange(a),true}function vi(){let e=window.getSelection();if(!e||e.rangeCount===0)return null;let o=e.focusNode;if(!o||o.nodeType!==Node.TEXT_NODE)return null;let t=o.textContent||"",r=e.focusOffset,i=r,n=r;for(;i>0&&f(t[i-1]);)i--;for(;n<t.length&&f(t[n]);)n++;return i===n?null:t.slice(i,n)}function Ii(e,o){let t=e.ctrlKey||e.metaKey,r=o.ctrlKey||o.metaKey;return e.key.toLowerCase()===o.key.toLowerCase()&&t===!!r&&e.shiftKey===!!o.shiftKey&&e.altKey===!!o.altKey}var u={wordLeft:{key:"ArrowLeft",ctrlKey:true},wordRight:{key:"ArrowRight",ctrlKey:true},selectWordLeft:{key:"ArrowLeft",ctrlKey:true,shiftKey:true},selectWordRight:{key:"ArrowRight",ctrlKey:true,shiftKey:true},lineStart:{key:"Home"},lineEnd:{key:"End"},selectToLineStart:{key:"Home",shiftKey:true},selectToLineEnd:{key:"End",shiftKey:true},documentStart:{key:"Home",ctrlKey:true},documentEnd:{key:"End",ctrlKey:true},selectToDocumentStart:{key:"Home",ctrlKey:true,shiftKey:true},selectToDocumentEnd:{key:"End",ctrlKey:true,shiftKey:true}};function m(e){let o=[];if(e.ctrlKey||e.metaKey){let r=typeof navigator<"u"&&/Mac/i.test(navigator.platform);o.push(r?"\u2318":"Ctrl");}e.shiftKey&&o.push("Shift"),e.altKey&&o.push("Alt");let t=e.key;return t==="ArrowLeft"?t="\u2190":t==="ArrowRight"?t="\u2192":t==="ArrowUp"?t="\u2191":t==="ArrowDown"&&(t="\u2193"),o.push(t),o.join("+")}function wi(){return [{action:"Move by word (left)",shortcut:m(u.wordLeft)},{action:"Move by word (right)",shortcut:m(u.wordRight)},{action:"Select word (left)",shortcut:m(u.selectWordLeft)},{action:"Select word (right)",shortcut:m(u.selectWordRight)},{action:"Go to line start",shortcut:m(u.lineStart)},{action:"Go to line end",shortcut:m(u.lineEnd)},{action:"Select to line start",shortcut:m(u.selectToLineStart)},{action:"Select to line end",shortcut:m(u.selectToLineEnd)},{action:"Go to document start",shortcut:m(u.documentStart)},{action:"Go to document end",shortcut:m(u.documentEnd)},{action:"Select to document start",shortcut:m(u.selectToDocumentStart)},{action:"Select to document end",shortcut:m(u.selectToDocumentEnd)}]}var B=/\{([#/^@]?)([a-zA-Z_][a-zA-Z0-9_]*(?:\.[a-zA-Z_][a-zA-Z0-9_]*)*)\}/g,d=new PluginKey("template");function Oi(e,o,t){return `${e}:${o}:${t}`}function _(e){let o=[];e.descendants((s,c)=>(s.isText&&s.text&&o.push({text:s.text,pos:c}),true));let t="",r=[];for(let s of o){for(let c=0;c<s.text.length;c++)r.push(s.pos+c);t+=s.text;}let i=[],n=[],a=new Map,p;for(B.lastIndex=0;(p=B.exec(t))!==null;){let[s,c,l]=p,y=r[p.index],h=r[p.index+s.length-1]+1,g;c==="#"?g="sectionStart":c==="/"?g="sectionEnd":c==="^"?g="invertedStart":c==="@"?g="raw":g="variable";let T=`${g}:${l}`,D=a.get(T)??0;a.set(T,D+1);let P={id:Oi(g,l,D),type:g,name:l,rawTag:s,from:y,to:h};if(g==="sectionStart"||g==="invertedStart")P.nestedVars=[],n.push(P);else if(g==="sectionEnd"){for(let x=n.length-1;x>=0;x--)if(n[x].name===l){n.splice(x,1);break}}else g==="variable"&&n.length>0&&(n[n.length-1].nestedVars?.push(l),P.insideSection=true);i.push(P);}return i}function Ni(e){switch(e){case "sectionStart":case "sectionEnd":return "#3b82f6";case "invertedStart":return "#8b5cf6";case "raw":return "#ef4444";default:return "#f59e0b"}}function A(e,o,t,r){let i=[];for(let n of o){let a=n.id===t,p=n.id===r,s=Ni(n.type),c=["docx-template-tag"];a&&c.push("hovered"),p&&c.push("selected"),i.push(Decoration.inline(n.from,n.to,{class:c.join(" "),"data-tag-id":n.id,style:`background-color: ${s}22; border-radius: 2px;`}));}return DecorationSet.create(e,i)}function ki(e,o){if(e.length!==o.length)return false;for(let t=0;t<e.length;t++)if(e[t].id!==o[t].id)return false;return true}function R(){return new Plugin({key:d,state:{init(e,o){let t=_(o.doc);return {tags:t,decorations:A(o.doc,t)}},apply(e,o,t,r){if(e.docChanged){let n=_(r.doc),a=ki(o.tags,n);return {tags:n,decorations:a?o.decorations.map(e.mapping,e.doc):A(r.doc,n,o.hoveredId,o.selectedId),hoveredId:o.hoveredId,selectedId:o.selectedId}}let i=e.getMeta(d);if(i){let n=i.hoveredId??o.hoveredId,a=i.selectedId??o.selectedId;return {...o,hoveredId:n,selectedId:a,decorations:A(r.doc,o.tags,n,a)}}return {...o,decorations:o.decorations.map(e.mapping,e.doc)}}},props:{decorations(e){return d.getState(e)?.decorations??DecorationSet.empty},handleClick(e,o){let r=(d.getState(e.state)?.tags??[]).find(n=>o>=n.from&&o<=n.to);return r?(e.dispatch(e.state.tr.setMeta(d,{selectedId:r.id})),true):(d.getState(e.state)?.selectedId&&e.dispatch(e.state.tr.setMeta(d,{selectedId:void 0})),false)},handleDOMEvents:{mouseover(e,o){let r=o.target.closest?.("[data-tag-id]")?.getAttribute("data-tag-id")||void 0,i=d.getState(e.state)?.hoveredId;return r!==i&&e.dispatch(e.state.tr.setMeta(d,{hoveredId:r})),false},mouseout(e,o){return o.relatedTarget?.closest?.("[data-tag-id]")||d.getState(e.state)?.hoveredId&&e.dispatch(e.state.tr.setMeta(d,{hoveredId:void 0})),false}}}})}function W(e){return d.getState(e)?.tags??[]}function b(e,o){e.dispatch(e.state.tr.setMeta(d,{hoveredId:o}));}function v(e,o){e.dispatch(e.state.tr.setMeta(d,{selectedId:o}));}var I=`
|
|
1
|
+
export{I as DEFAULT_SELECTION_STYLE,v as DocxEditor,a as EditorToolbar,d as ErrorBoundary,c as ErrorProvider,J as HIGH_CONTRAST_SELECTION_STYLE,ea as PLUGIN_HOST_STYLES,e as ParseErrorDisplay,fa as PluginHost,K as SELECTION_CSS_VARS,f as UnsupportedFeatureWarning,y as ZOOM_PRESETS,$ as areSelectionStylesInjected,H as clampZoom,W as clearSelection,t as createDoubleClickWordSelector,aa as createSelectionChangeHandler,u as createTripleClickParagraphSelector,q as expandSelectionToWordBoundaries,B as findNearestZoomPreset,n as findWordAt,l as findWordBoundaries,E as formatZoom,ca as generateOverlayElements,P as generateSelectionCSS,O as getHighlightRectStyle,N as getMergedSelectionRects,C as getNextZoomPreset,D as getPreviousZoomPreset,R as getSelectedText,T as getSelectionBoundingRect,L as getSelectionRects,h as getUserFriendlyMessage,m as getWordAt,A as getZoomPresets,s as handleClickForMultiClick,Q as hasActiveSelection,U as highlightTextRange,Z as injectSelectionStyles,g as isParseError,X as isSelectionBackwards,S as isSelectionWithin,k as isWhitespace,j as isWordCharacter,G as isZoomPreset,M as mergeAdjacentRects,Y as normalizeSelectionDirection,F as parseZoom,_ as removeSelectionStyles,w as renderAsync,r as selectParagraphAtCursor,V as selectRange,o as selectWordAtCursor,p as selectWordInTextNode,x as useAutoSave,da as useClipboard,b as useErrorNotifications,ba as useSelectionHighlight,i as useTableSelection,z as useWheelZoom}from'./chunk-Z7ZLARCQ.mjs';import'./chunk-2HDYCD2Q.mjs';export{k as ColorPicker,a as ContextMenu,V as InsertImageDialog,da as InsertSymbolDialog,O as InsertTableDialog,qa as KeyboardShortcutsDialog,B as LoadingIndicator,ka as PasteSpecialDialog,l as PrintButton,m as PrintStyles,g as ResponsePreview,J as ResponsiveToolbar,K as ResponsiveToolbarGroup,ca as SYMBOL_CATEGORIES,u as TableInsertButtons,t as TableMergeButton,v as UnsavedIndicator,_ as calculateFitDimensions,S as clampTableConfig,A as createChangeTracker,Q as createDefaultTableConfig,j as createErrorResponse,i as createMockResponse,L as createToolbarItem,M as createToolbarItems,$ as dataUrlToBlob,H as delay,ba as formatFileSize,r as formatPrintPageRange,xa as formatShortcutKeys,T as formatTableDimensions,c as getActionShortcut,f as getAllActions,wa as getAllCategories,z as getAllIndicatorPositions,y as getAllIndicatorVariants,G as getAllLoadingSizes,F as getAllLoadingVariants,na as getAllPasteOptions,va as getCategoryLabel,ua as getCommonShortcuts,e as getDefaultActions,oa as getDefaultPasteOption,p as getDefaultPrintOptions,sa as getDefaultShortcuts,Z as getImageAcceptString,aa as getImageDimensions,E as getLoadingVariantLabel,ma as getPasteOption,N as getRecommendedPriority,ta as getShortcutsByCategory,Y as getSupportedImageExtensions,fa as getSymbolCategories,ha as getSymbolUnicodeInfo,ga as getSymbolsByCategory,U as getTablePresets,x as getVariantLabel,d as isActionAvailable,pa as isPasteSpecialShortcut,s as isPrintSupported,X as isValidImageFile,R as isValidTableConfig,o as openPrintWindow,q as parsePageRange,ia as searchSymbols,ja as symbolFromCodePoint,n as triggerPrint,b as useContextMenu,W as useInsertImageDialog,ea as useInsertSymbolDialog,P as useInsertTableDialog,ra as useKeyboardShortcutsDialog,C as useLoading,D as useLoadingOperations,la as usePasteSpecial,h as useResponsePreview,I as useResponsiveToolbar,w as useUnsavedChanges}from'./chunk-FW5LYOOZ.mjs';export{k as AdvancedColorPicker,l as AlignmentButtons,K as CLIPBOARD_TYPES,g as FontPicker,j as FontSizePicker,y as FormattingBar,E as HorizontalRuler,J as INTERNAL_CLIPBOARD_TYPE,o as LineSpacingPicker,m as ListButtons,p as StylePicker,s as TableBorderColorPicker,r as TableBorderPicker,t as TableBorderWidthPicker,u as TableCellFillPicker,v as TableMoreDropdown,da as TableToolbar,Z as TextContextMenu,D as Toolbar,A as ToolbarButton,B as ToolbarGroup,C as ToolbarSeparator,q as ZoomControl,ja as addColumn,ha as addRow,W as cleanWordHtml,N as copyParagraphs,M as copyRuns,Y as createClipboardHandlers,n as createDefaultListState,ea as createTableContext,ka as deleteColumn,ia as deleteRow,ga as getCellAt,fa as getColumnCount,ba as getDefaultTextContextMenuItems,H as getMarginInUnits,G as getRulerDimensions,$ as getTextActionLabel,aa as getTextActionShortcut,S as handlePasteEvent,X as htmlToRuns,V as isEditorHtml,ca as isTextActionAvailable,U as isWordHtml,la as mergeCells,P as paragraphsToClipboardContent,T as parseClipboardHtml,I as parseMarginFromUnits,F as positionToMargin,R as readFromClipboard,O as runsToClipboardContent,ma as splitCell,_ as useTextContextMenu,Q as writeToClipboard}from'./chunk-X5A54T6S.mjs';export{n as FindReplaceDialog,a as createDefaultFindOptions,c as createSearchPattern,b as escapeRegexString,d as findAllMatches,j as findInDocument,k as findInParagraph,i as getDefaultHighlightOptions,g as getMatchCountText,h as isEmptySearch,e as replaceAllInContent,f as replaceFirstInContent,l as scrollToMatch,m as useFindReplace}from'./chunk-Z26WOH6R.mjs';export{d as HyperlinkDialog,m as useHyperlinkDialog}from'./chunk-YKBSKEBS.mjs';export{a as LocaleProvider,b as useTranslation}from'./chunk-GZOCOWWB.mjs';export{x as TABLE_DATA_ATTRIBUTES,n as countPageBreaks,b as createColumnBreak,g as createHorizontalRule,c as createLineBreak,a as createPageBreak,e as createPageBreakParagraph,d as createPageBreakRun,F as createSelectionFromDOM,o as findPageBreaks,s as formatLastSaveTime,v as formatStorageSize,t as getAutoSaveStatusLabel,u as getAutoSaveStorageSize,E as getSelectionRuns,m as hasPageBreakBefore,h as insertHorizontalRule,f as insertPageBreak,w as isAutoSaveSupported,l as isBreakContent,j as isColumnBreak,k as isLineBreak,i as isPageBreak,p as removePageBreak}from'./chunk-QTSXJRP6.mjs';import'./chunk-6WPRCJ5A.mjs';export{f as DocumentAgent,m as buildExtendedSelectionContext,l as buildSelectionContext,e as createDocumentWithText,d as createEmptyDocument,i as getAgentContext,k as getDocumentSummary}from'./chunk-7QTNB64A.mjs';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-QAZ4233N.mjs';export{o as docxtemplaterPlugin}from'./chunk-RTFUE3KK.mjs';export{e as getTemplateTags,a as processTemplate,c as processTemplateAsBlob,b as processTemplateDetailed,f as validateTemplate}from'./chunk-DLVLK5FT.mjs';export{b as serializeDocumentBody,c as serializeDocx,a as serializeSectionProperties}from'./chunk-37SLIJPH.mjs';export{a as executeCommand,b as executeCommands}from'./chunk-M5F4SK3W.mjs';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-7MGFEP2R.mjs';export{a as PluginRegistry,b as pluginRegistry,c as registerPlugins}from'./chunk-W53SI3XW.mjs';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-LYBG4YI7.mjs';import'./chunk-WOHFANC5.mjs';import'./chunk-TAUMSKRE.mjs';import X,{useState,useCallback,useMemo,useEffect}from'react';import {PluginKey,TextSelection,Plugin}from'prosemirror-state';import {DecorationSet,Decoration}from'prosemirror-view';import {jsx,jsxs}from'react/jsx-runtime';function f(e){return e?/[\p{L}\p{N}_]/u.test(e):false}function w(e){return e?/\s/.test(e):false}function Si(e){return e?/[\p{P}]/u.test(e):false}function bi(e,o){if(o<=0)return 0;o>e.length&&(o=e.length);let t=o;for(;t>0&&w(e[t-1]);)t--;if(t===0)return 0;for(;t>0&&f(e[t-1]);)t--;return t}function xi(e,o){if(o>=e.length)return e.length;o<0&&(o=0);let t=o;for(;t<e.length&&f(e[t]);)t++;for(;t<e.length&&w(e[t]);)t++;return t}function L(e,o){if(o>=e.length)return e.length;let t=o;for(;t<e.length&&f(e[t]);)t++;for(;t<e.length&&!f(e[t]);)t++;return t}function O(e,o){if(o<=0)return 0;let t=o;for(;t>0&&!f(e[t-1]);)t--;for(;t>0&&f(e[t-1]);)t--;return t}function N(e,o){if(!window.getSelection())return null;let r=document.createRange();if(e.nodeType===Node.TEXT_NODE){r.setStart(e,Math.min(o,e.textContent?.length||0)),r.collapse(true);let n=r.getBoundingClientRect().top,a=0,p=o;for(;a<p;){let s=Math.floor((a+p)/2);r.setStart(e,s),r.collapse(true);let c=r.getBoundingClientRect();Math.abs(c.top-n)<2?p=s:a=s+1;}return {node:e,offset:a}}return null}function k(e,o){if(!window.getSelection())return null;let r=e.textContent?.length||0,i=document.createRange();if(e.nodeType===Node.TEXT_NODE){i.setStart(e,Math.min(o,r)),i.collapse(true);let a=i.getBoundingClientRect().top,p=o,s=r;for(;p<s;){let c=Math.ceil((p+s)/2);i.setStart(e,c),i.collapse(true);let l=i.getBoundingClientRect();Math.abs(l.top-a)<2?p=c:s=c-1;}return {node:e,offset:p}}return null}function Pi(){let e=window.getSelection();if(!e||e.rangeCount===0)return null;let o=e.getRangeAt(0);return {node:o.startContainer,offset:o.startOffset,anchorNode:e.anchorNode,anchorOffset:e.anchorOffset,focusNode:e.focusNode,focusOffset:e.focusOffset,isCollapsed:e.isCollapsed,text:e.toString()}}function C(e,o){let t=window.getSelection();if(!t)return;let r=document.createRange(),i=e.nodeType===Node.TEXT_NODE?e.textContent?.length||0:e.childNodes.length;r.setStart(e,Math.min(o,i)),r.collapse(true),t.removeAllRanges(),t.addRange(r);}function E(e,o){let t=window.getSelection();if(!(!t||!t.anchorNode))try{t.extend(e,Math.min(o,e.textContent?.length||0));}catch{let r=e.nodeType===Node.TEXT_NODE?e.textContent?.length||0:e.childNodes.length;t.setBaseAndExtent(t.anchorNode,t.anchorOffset,e,Math.min(o,r));}}function M(e,o=false){let t=window.getSelection();if(!t||t.rangeCount===0)return false;let r=t.focusNode;if(!r||r.nodeType!==Node.TEXT_NODE)return false;let i=r.textContent||"",n=t.focusOffset,a;return e==="left"?a=O(i,n):a=L(i,n),o?E(r,a):C(r,a),true}function H(e,o=false){let t=window.getSelection();if(!t||t.rangeCount===0)return false;let r=t.focusNode;if(!r)return false;if(r.nodeType===Node.TEXT_NODE){let a=e==="start"?N(r,t.focusOffset):k(r,t.focusOffset);if(a)return o?E(a.node,a.offset):C(a.node,a.offset),true}let i=r.textContent||"",n=e==="start"?0:i.length;return o?E(r,n):C(r,n),true}function K(e){let{key:o,ctrlKey:t,metaKey:r,shiftKey:i,altKey:n}=e,a=t||r;switch(o){case "ArrowLeft":if(a)return {direction:"left",unit:"word",extend:i};break;case "ArrowRight":if(a)return {direction:"right",unit:"word",extend:i};break;case "Home":return a?{direction:"left",unit:"document",extend:i}:{direction:"left",unit:"line",extend:i};case "End":return a?{direction:"right",unit:"document",extend:i}:{direction:"right",unit:"line",extend:i}}return null}function Ci(e,o){let t=K(e);if(!t)return false;switch(t.unit){case "word":if((t.direction==="left"||t.direction==="right")&&M(t.direction,t.extend))return e.preventDefault(),true;break;case "line":let r=t.direction==="left"?"start":"end";if(H(r,t.extend))return e.preventDefault(),true;break;case "document":if(t.direction==="left"&&o?.onDocumentStart)return e.preventDefault(),o.onDocumentStart(),true;if(t.direction==="right"&&o?.onDocumentEnd)return e.preventDefault(),o.onDocumentEnd(),true;break}return false}function Ei(e){let{key:o,ctrlKey:t,metaKey:r}=e;return !!((t||r)&&(o==="ArrowLeft"||o==="ArrowRight")||o==="Home"||o==="End")}function Ri(){let e=window.getSelection();if(!e||e.rangeCount===0)return false;let o=e.focusNode;if(!o||o.nodeType!==Node.TEXT_NODE)return false;let t=o.textContent||"",r=e.focusOffset,i=r,n=r;for(;i>0&&f(t[i-1]);)i--;for(;n<t.length&&f(t[n]);)n++;if(i===n)return false;let a=document.createRange();return a.setStart(o,i),a.setEnd(o,n),e.removeAllRanges(),e.addRange(a),true}function vi(){let e=window.getSelection();if(!e||e.rangeCount===0)return null;let o=e.focusNode;if(!o||o.nodeType!==Node.TEXT_NODE)return null;let t=o.textContent||"",r=e.focusOffset,i=r,n=r;for(;i>0&&f(t[i-1]);)i--;for(;n<t.length&&f(t[n]);)n++;return i===n?null:t.slice(i,n)}function Ii(e,o){let t=e.ctrlKey||e.metaKey,r=o.ctrlKey||o.metaKey;return e.key.toLowerCase()===o.key.toLowerCase()&&t===!!r&&e.shiftKey===!!o.shiftKey&&e.altKey===!!o.altKey}var u={wordLeft:{key:"ArrowLeft",ctrlKey:true},wordRight:{key:"ArrowRight",ctrlKey:true},selectWordLeft:{key:"ArrowLeft",ctrlKey:true,shiftKey:true},selectWordRight:{key:"ArrowRight",ctrlKey:true,shiftKey:true},lineStart:{key:"Home"},lineEnd:{key:"End"},selectToLineStart:{key:"Home",shiftKey:true},selectToLineEnd:{key:"End",shiftKey:true},documentStart:{key:"Home",ctrlKey:true},documentEnd:{key:"End",ctrlKey:true},selectToDocumentStart:{key:"Home",ctrlKey:true,shiftKey:true},selectToDocumentEnd:{key:"End",ctrlKey:true,shiftKey:true}};function m(e){let o=[];if(e.ctrlKey||e.metaKey){let r=typeof navigator<"u"&&/Mac/i.test(navigator.platform);o.push(r?"\u2318":"Ctrl");}e.shiftKey&&o.push("Shift"),e.altKey&&o.push("Alt");let t=e.key;return t==="ArrowLeft"?t="\u2190":t==="ArrowRight"?t="\u2192":t==="ArrowUp"?t="\u2191":t==="ArrowDown"&&(t="\u2193"),o.push(t),o.join("+")}function wi(){return [{action:"Move by word (left)",shortcut:m(u.wordLeft)},{action:"Move by word (right)",shortcut:m(u.wordRight)},{action:"Select word (left)",shortcut:m(u.selectWordLeft)},{action:"Select word (right)",shortcut:m(u.selectWordRight)},{action:"Go to line start",shortcut:m(u.lineStart)},{action:"Go to line end",shortcut:m(u.lineEnd)},{action:"Select to line start",shortcut:m(u.selectToLineStart)},{action:"Select to line end",shortcut:m(u.selectToLineEnd)},{action:"Go to document start",shortcut:m(u.documentStart)},{action:"Go to document end",shortcut:m(u.documentEnd)},{action:"Select to document start",shortcut:m(u.selectToDocumentStart)},{action:"Select to document end",shortcut:m(u.selectToDocumentEnd)}]}var B=/\{([#/^@]?)([a-zA-Z_][a-zA-Z0-9_]*(?:\.[a-zA-Z_][a-zA-Z0-9_]*)*)\}/g,d=new PluginKey("template");function Oi(e,o,t){return `${e}:${o}:${t}`}function F(e){let o=[];e.descendants((s,c)=>(s.isText&&s.text&&o.push({text:s.text,pos:c}),true));let t="",r=[];for(let s of o){for(let c=0;c<s.text.length;c++)r.push(s.pos+c);t+=s.text;}let i=[],n=[],a=new Map,p;for(B.lastIndex=0;(p=B.exec(t))!==null;){let[s,c,l]=p,y=r[p.index],h=r[p.index+s.length-1]+1,g;c==="#"?g="sectionStart":c==="/"?g="sectionEnd":c==="^"?g="invertedStart":c==="@"?g="raw":g="variable";let T=`${g}:${l}`,D=a.get(T)??0;a.set(T,D+1);let P={id:Oi(g,l,D),type:g,name:l,rawTag:s,from:y,to:h};if(g==="sectionStart"||g==="invertedStart")P.nestedVars=[],n.push(P);else if(g==="sectionEnd"){for(let b=n.length-1;b>=0;b--)if(n[b].name===l){n.splice(b,1);break}}else g==="variable"&&n.length>0&&(n[n.length-1].nestedVars?.push(l),P.insideSection=true);i.push(P);}return i}function Ni(e){switch(e){case "sectionStart":case "sectionEnd":return "#3b82f6";case "invertedStart":return "#8b5cf6";case "raw":return "#ef4444";default:return "#f59e0b"}}function A(e,o,t,r){let i=[];for(let n of o){let a=n.id===t,p=n.id===r,s=Ni(n.type),c=["docx-template-tag"];a&&c.push("hovered"),p&&c.push("selected"),i.push(Decoration.inline(n.from,n.to,{class:c.join(" "),"data-tag-id":n.id,style:`background-color: ${s}22; border-radius: 2px;`}));}return DecorationSet.create(e,i)}function ki(e,o){if(e.length!==o.length)return false;for(let t=0;t<e.length;t++)if(e[t].id!==o[t].id)return false;return true}function R(){return new Plugin({key:d,state:{init(e,o){let t=F(o.doc);return {tags:t,decorations:A(o.doc,t)}},apply(e,o,t,r){if(e.docChanged){let n=F(r.doc),a=ki(o.tags,n);return {tags:n,decorations:a?o.decorations.map(e.mapping,e.doc):A(r.doc,n,o.hoveredId,o.selectedId),hoveredId:o.hoveredId,selectedId:o.selectedId}}let i=e.getMeta(d);if(i){let n=i.hoveredId??o.hoveredId,a=i.selectedId??o.selectedId;return {...o,hoveredId:n,selectedId:a,decorations:A(r.doc,o.tags,n,a)}}return {...o,decorations:o.decorations.map(e.mapping,e.doc)}}},props:{decorations(e){return d.getState(e)?.decorations??DecorationSet.empty},handleClick(e,o){let r=(d.getState(e.state)?.tags??[]).find(n=>o>=n.from&&o<=n.to);return r?(e.dispatch(e.state.tr.setMeta(d,{selectedId:r.id})),true):(d.getState(e.state)?.selectedId&&e.dispatch(e.state.tr.setMeta(d,{selectedId:void 0})),false)},handleDOMEvents:{mouseover(e,o){let r=o.target.closest?.("[data-tag-id]")?.getAttribute("data-tag-id")||void 0,i=d.getState(e.state)?.hoveredId;return r!==i&&e.dispatch(e.state.tr.setMeta(d,{hoveredId:r})),false},mouseout(e,o){return o.relatedTarget?.closest?.("[data-tag-id]")||d.getState(e.state)?.hoveredId&&e.dispatch(e.state.tr.setMeta(d,{hoveredId:void 0})),false}}}})}function W(e){return d.getState(e)?.tags??[]}function x(e,o){e.dispatch(e.state.tr.setMeta(d,{hoveredId:o}));}function v(e,o){e.dispatch(e.state.tr.setMeta(d,{selectedId:o}));}var I=`
|
|
2
2
|
.docx-template-tag {
|
|
3
3
|
cursor: pointer;
|
|
4
4
|
transition: background-color 0.1s;
|
|
@@ -12,7 +12,7 @@ export{I as DEFAULT_SELECTION_STYLE,v as DocxEditor,a as EditorToolbar,d as Erro
|
|
|
12
12
|
.docx-template-tag.selected {
|
|
13
13
|
box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
|
|
14
14
|
}
|
|
15
|
-
`;var Bi={variable:"rgba(245, 158, 11, 0.3)",sectionStart:"rgba(59, 130, 246, 0.3)",sectionEnd:"rgba(59, 130, 246, 0.3)",invertedStart:"rgba(139, 92, 246, 0.3)",raw:"rgba(239, 68, 68, 0.3)"},
|
|
15
|
+
`;var Bi={variable:"rgba(245, 158, 11, 0.3)",sectionStart:"rgba(59, 130, 246, 0.3)",sectionEnd:"rgba(59, 130, 246, 0.3)",invertedStart:"rgba(139, 92, 246, 0.3)",raw:"rgba(239, 68, 68, 0.3)"},Fi={variable:"rgba(245, 158, 11, 0.5)",sectionStart:"rgba(59, 130, 246, 0.5)",sectionEnd:"rgba(59, 130, 246, 0.5)",invertedStart:"rgba(139, 92, 246, 0.5)",raw:"rgba(239, 68, 68, 0.5)"};function z({context:e,tags:o,hoveredId:t,selectedId:r,onHover:i,onSelect:n}){let[a,p]=useState(0),s=useCallback(()=>{let l=e.getContainerOffset(),y=[];for(let h of o){let g=e.getRectsForRange(h.from,h.to);for(let T of g)y.push({tagId:h.id,tagType:h.type,x:T.x+l.x,y:T.y+l.y,width:T.width,height:T.height});}return y},[e,o]),c=useMemo(()=>s(),[s,a]);return useEffect(()=>{let l=()=>{requestAnimationFrame(()=>p(y=>y+1));};return window.addEventListener("resize",l),()=>window.removeEventListener("resize",l)},[]),useEffect(()=>{let l=new ResizeObserver(()=>{requestAnimationFrame(()=>p(y=>y+1));});return l.observe(e.pagesContainer),()=>l.disconnect()},[e.pagesContainer]),c.length===0?null:jsx("div",{className:"template-highlight-overlay",children:c.map((l,y)=>{let h=l.tagId===t,g=l.tagId===r,T=h||g?Fi[l.tagType]:Bi[l.tagType];return jsx("div",{className:`template-highlight ${h?"hovered":""} ${g?"selected":""}`,style:{position:"absolute",left:l.x,top:l.y,width:l.width,height:l.height,backgroundColor:T,borderRadius:2,cursor:"pointer"},onMouseEnter:()=>i?.(l.tagId),onMouseLeave:()=>i?.(void 0),onClick:()=>n?.(l.tagId)},`${l.tagId}-${y}`)})})}var G=`
|
|
16
16
|
.template-highlight-overlay {
|
|
17
17
|
position: absolute;
|
|
18
18
|
top: 0;
|
|
@@ -36,7 +36,7 @@ export{I as DEFAULT_SELECTION_STYLE,v as DocxEditor,a as EditorToolbar,d as Erro
|
|
|
36
36
|
.template-highlight.selected {
|
|
37
37
|
box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.6);
|
|
38
38
|
}
|
|
39
|
-
`;var
|
|
39
|
+
`;var _i={variable:"#f59e0b",sectionStart:"#3b82f6",sectionEnd:"#3b82f6",invertedStart:"#8b5cf6",raw:"#ef4444"};function Wi(e){switch(e){case "sectionStart":return "LOOP / IF";case "invertedStart":return "IF NOT";case "raw":return "HTML";default:return ""}}var Z=`
|
|
40
40
|
.template-annotation-chip {
|
|
41
41
|
display: inline-flex;
|
|
42
42
|
flex-wrap: wrap;
|
|
@@ -104,9 +104,9 @@ export{I as DEFAULT_SELECTION_STYLE,v as DocxEditor,a as EditorToolbar,d as Erro
|
|
|
104
104
|
background: rgba(59, 130, 246, 0.15);
|
|
105
105
|
color: #1e40af;
|
|
106
106
|
}
|
|
107
|
-
`;function Y({tag:e,isHovered:o,measureRef:t,onHover:r,onSelect:i}){let n=Wi(e.type),a=
|
|
108
|
-
Iterates over ${e.name}[]. Access nested properties via ${e.name}.property`:e.rawTag,children:[n&&jsx("span",{className:"template-chip-badge",style:{background:a},children:n}),!n&&jsx("span",{className:"template-chip-dot",style:{color:a},children:"\u25CF"}),jsx("span",{className:"template-chip-name",children:e.name}),p&&e.nestedVars&&e.nestedVars.length>0&&jsx("div",{className:"template-chip-nested",children:e.nestedVars.map((s,c)=>jsx("span",{className:"template-nested-var",title:`Access: ${e.name}.${s}`,children:s.includes(".")?s.split(".").pop():s},c))})]})]})}function q(e,o,t){if(!e)return;v(e,t);let r=o.find(i=>i.id===t);if(r){let i=e.state.tr.setSelection(TextSelection.near(e.state.doc.resolve(r.from)));e.dispatch(i),e.focus();}}function j(e={}){return {id:"template",name:"Template",proseMirrorPlugins:[R()],onStateChange:t=>{let r=d.getState(t.state);if(r)return {tags:r.tags,hoveredId:r.hoveredId,selectedId:r.selectedId}},initialize:t=>({tags:[]}),getSidebarItems:(t,r)=>!t||t.tags.length===0?[]:t.tags.filter(n=>n.type!=="sectionEnd"&&!n.insideSection).map(n=>({id:`template-${n.id}`,anchorPos:n.from,priority:10,estimatedHeight:32,render:a=>X.createElement(Y,{...a,tag:n,isHovered:n.id===t.hoveredId,onHover:p=>{r.editorView&&
|
|
107
|
+
`;function Y({tag:e,isHovered:o,measureRef:t,onHover:r,onSelect:i}){let n=Wi(e.type),a=_i[e.type],p=e.type==="sectionStart"||e.type==="invertedStart";return jsxs("div",{ref:t,style:{display:"flex",alignItems:"flex-start"},children:[jsx("div",{style:{width:20,height:1,background:o?"#3b82f6":"#d0d0d0",marginTop:12,marginRight:4,flexShrink:0}}),jsxs("div",{className:`template-annotation-chip ${o?"hovered":""}`,style:{borderLeftColor:a},onMouseEnter:()=>r(e.id),onMouseLeave:()=>r(void 0),onClick:s=>{s.stopPropagation(),i(e.id);},onMouseDown:s=>s.stopPropagation(),title:p?`${e.rawTag}
|
|
108
|
+
Iterates over ${e.name}[]. Access nested properties via ${e.name}.property`:e.rawTag,children:[n&&jsx("span",{className:"template-chip-badge",style:{background:a},children:n}),!n&&jsx("span",{className:"template-chip-dot",style:{color:a},children:"\u25CF"}),jsx("span",{className:"template-chip-name",children:e.name}),p&&e.nestedVars&&e.nestedVars.length>0&&jsx("div",{className:"template-chip-nested",children:e.nestedVars.map((s,c)=>jsx("span",{className:"template-nested-var",title:`Access: ${e.name}.${s}`,children:s.includes(".")?s.split(".").pop():s},c))})]})]})}function q(e,o,t){if(!e)return;v(e,t);let r=o.find(i=>i.id===t);if(r){let i=e.state.tr.setSelection(TextSelection.near(e.state.doc.resolve(r.from)));e.dispatch(i),e.focus();}}function j(e={}){return {id:"template",name:"Template",proseMirrorPlugins:[R()],onStateChange:t=>{let r=d.getState(t.state);if(r)return {tags:r.tags,hoveredId:r.hoveredId,selectedId:r.selectedId}},initialize:t=>({tags:[]}),getSidebarItems:(t,r)=>!t||t.tags.length===0?[]:t.tags.filter(n=>n.type!=="sectionEnd"&&!n.insideSection).map(n=>({id:`template-${n.id}`,anchorPos:n.from,priority:10,estimatedHeight:32,render:a=>X.createElement(Y,{...a,tag:n,isHovered:n.id===t.hoveredId,onHover:p=>{r.editorView&&x(r.editorView,p);},onSelect:p=>q(r.editorView,t.tags,p)})})),renderOverlay:(t,r,i)=>!r||r.tags.length===0?null:X.createElement(z,{context:t,tags:r.tags,hoveredId:r.hoveredId,selectedId:r.selectedId,onHover:n=>{i&&x(i,n);},onSelect:n=>q(i,r.tags,n)}),styles:`
|
|
109
109
|
${I}
|
|
110
110
|
${Z}
|
|
111
111
|
${G}
|
|
112
|
-
`}}var Vi=j();var aa="0.0.2";export{u as NAVIGATION_SHORTCUTS,I as TEMPLATE_DECORATION_STYLES,aa as VERSION,j as createTemplatePlugin,R as createTemplateProseMirrorPlugin,m as describeShortcut,Ri as expandSelectionToWord,E as extendSelectionTo,L as findNextWordStart,O as findPreviousWordStart,k as findVisualLineEnd,N as findVisualLineStart,
|
|
112
|
+
`}}var Vi=j();var aa="0.0.2";export{u as NAVIGATION_SHORTCUTS,I as TEMPLATE_DECORATION_STYLES,aa as VERSION,j as createTemplatePlugin,R as createTemplateProseMirrorPlugin,m as describeShortcut,Ri as expandSelectionToWord,E as extendSelectionTo,L as findNextWordStart,O as findPreviousWordStart,k as findVisualLineEnd,N as findVisualLineStart,xi as findWordEnd,bi as findWordStart,wi as getNavigationShortcutDescriptions,Pi as getSelectionInfo,W as getTemplatePluginTags,vi as getWordAtCursor,Ci as handleNavigationKey,Ei as isNavigationKey,Si as isPunctuation,w as isWhitespaceChar,f as isWordChar,Ii as matchesShortcut,M as moveByWord,H as moveToLineEdge,K as parseNavigationAction,x as setHoveredElement,v as setSelectedElement,C as setSelectionPosition,Vi as templatePlugin,d as templatePluginKey};
|
package/dist/mcp-reexport.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as McpToolDefinition, e as McpSession, J as JsonSchema } from './types-
|
|
2
|
-
import './agentApi-
|
|
1
|
+
import { M as McpToolDefinition, e as McpSession, J as JsonSchema } from './types-DIBvJ7AJ.mjs';
|
|
2
|
+
import './agentApi-mv532p8I.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Core MCP Tools
|
package/dist/mcp-reexport.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as McpToolDefinition, e as McpSession, J as JsonSchema } from './types-
|
|
2
|
-
import './agentApi-
|
|
1
|
+
import { M as McpToolDefinition, e as McpSession, J as JsonSchema } from './types-CfAiObQo.js';
|
|
2
|
+
import './agentApi-mv532p8I.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Core MCP Tools
|
|
@@ -4,10 +4,10 @@ import * as prosemirror_view from 'prosemirror-view';
|
|
|
4
4
|
import { EditorView } from 'prosemirror-view';
|
|
5
5
|
import * as prosemirror_state from 'prosemirror-state';
|
|
6
6
|
import { EditorState, Transaction } from 'prosemirror-state';
|
|
7
|
-
import { T as TextFormatting, K as ParagraphFormatting, D as Document, a3 as Theme, C as Comment, e as Table } from './agentApi-
|
|
8
|
-
import { F as SidebarItem, g as EditorPluginCore, k as PluginPanelProps, R as RenderedDomContext, G as SidebarItemContext, f as EditorHandle, h as ErrorNotification, m as SavedDocumentData, d as AutoSaveStatus, e as ClipboardSelection } from './ClipboardManager-
|
|
9
|
-
import { g as PrintOptions, T as Translations, j as TableContext, i as TableAction, P as ParsedClipboardContent } from './clipboard-
|
|
10
|
-
import { g as DocxInput, D as DocumentAgent } from './DocumentAgent-
|
|
7
|
+
import { T as TextFormatting, K as ParagraphFormatting, D as Document, a3 as Theme, C as Comment, e as Table } from './agentApi-mv532p8I.mjs';
|
|
8
|
+
import { F as SidebarItem, g as EditorPluginCore, k as PluginPanelProps, R as RenderedDomContext, G as SidebarItemContext, f as EditorHandle, h as ErrorNotification, m as SavedDocumentData, d as AutoSaveStatus, e as ClipboardSelection } from './ClipboardManager-Cjb_v74d.mjs';
|
|
9
|
+
import { g as PrintOptions, T as Translations, j as TableContext, i as TableAction, P as ParsedClipboardContent } from './clipboard-BWhM0CRj.mjs';
|
|
10
|
+
import { g as DocxInput, D as DocumentAgent } from './DocumentAgent-E8OX_8j0.mjs';
|
|
11
11
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
12
12
|
|
|
13
13
|
/**
|
|
@@ -4,10 +4,10 @@ import * as prosemirror_view from 'prosemirror-view';
|
|
|
4
4
|
import { EditorView } from 'prosemirror-view';
|
|
5
5
|
import * as prosemirror_state from 'prosemirror-state';
|
|
6
6
|
import { EditorState, Transaction } from 'prosemirror-state';
|
|
7
|
-
import { T as TextFormatting, K as ParagraphFormatting, D as Document, a3 as Theme, C as Comment, e as Table } from './agentApi-
|
|
8
|
-
import { F as SidebarItem, g as EditorPluginCore, k as PluginPanelProps, R as RenderedDomContext, G as SidebarItemContext, f as EditorHandle, h as ErrorNotification, m as SavedDocumentData, d as AutoSaveStatus, e as ClipboardSelection } from './ClipboardManager-
|
|
9
|
-
import { g as PrintOptions, T as Translations, j as TableContext, i as TableAction, P as ParsedClipboardContent } from './clipboard-
|
|
10
|
-
import { g as DocxInput, D as DocumentAgent } from './DocumentAgent-
|
|
7
|
+
import { T as TextFormatting, K as ParagraphFormatting, D as Document, a3 as Theme, C as Comment, e as Table } from './agentApi-mv532p8I.js';
|
|
8
|
+
import { F as SidebarItem, g as EditorPluginCore, k as PluginPanelProps, R as RenderedDomContext, G as SidebarItemContext, f as EditorHandle, h as ErrorNotification, m as SavedDocumentData, d as AutoSaveStatus, e as ClipboardSelection } from './ClipboardManager-C1l58nzE.js';
|
|
9
|
+
import { g as PrintOptions, T as Translations, j as TableContext, i as TableAction, P as ParsedClipboardContent } from './clipboard-BvkuNZub.js';
|
|
10
|
+
import { g as DocxInput, D as DocumentAgent } from './DocumentAgent-iedmc_8s.js';
|
|
11
11
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
12
12
|
|
|
13
13
|
/**
|
package/dist/react.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { a as DocxEditor, b as DocxEditorHandle, c as DocxEditorProps, d as DocxEditorRef, e as EditorPlugin, f as ErrorBoundary, g as ErrorBoundaryProps, h as ErrorContextValue, i as ErrorProvider, P as PLUGIN_HOST_STYLES, k as ParseErrorDisplay, l as ParseErrorDisplayProps, m as PluginContext, n as PluginHost, o as PluginHostProps, p as PluginHostRef, r as RenderAsyncOptions, t as SelectionOverlayProps, T as TableSelectionState, U as UnsupportedFeatureWarning, w as UnsupportedFeatureWarningProps, x as UseAutoSaveOptions, y as UseAutoSaveReturn, z as UseClipboardOptions, A as UseClipboardReturn, B as UseSelectionHighlightOptions, C as UseSelectionHighlightReturn, F as UseTableSelectionOptions, G as UseTableSelectionReturn, I as UseWheelZoomOptions, J as UseWheelZoomReturn, Z as ZOOM_PRESETS, L as clampZoom, O as findNearestZoomPreset, Q as formatZoom, V as generateOverlayElements, _ as getNextZoomPreset, $ as getPreviousZoomPreset, a3 as getUserFriendlyMessage, a4 as getZoomPresets, a8 as isParseError, ab as isZoomPreset, ae as parseZoom, ag as renderAsync, ai as useAutoSave, aj as useClipboard, ak as useErrorNotifications, al as useSelectionHighlight, am as useTableSelection, an as useWheelZoom } from './react-
|
|
2
|
-
export { g as DocxInput, t as toArrayBuffer } from './DocumentAgent-
|
|
3
|
-
export { d as AutoSaveStatus, e as ClipboardSelection, h as ErrorNotification, i as ErrorSeverity, j as PanelConfig, k as PluginPanelProps, m as SavedDocumentData, T as TABLE_DATA_ATTRIBUTES, p as createSelectionFromDOM, t as formatLastSaveTime, u as formatStorageSize, v as getAutoSaveStatusLabel, w as getAutoSaveStorageSize, x as getSelectionRuns, z as isAutoSaveSupported } from './ClipboardManager-
|
|
1
|
+
export { a as DocxEditor, b as DocxEditorHandle, c as DocxEditorProps, d as DocxEditorRef, e as EditorPlugin, f as ErrorBoundary, g as ErrorBoundaryProps, h as ErrorContextValue, i as ErrorProvider, P as PLUGIN_HOST_STYLES, k as ParseErrorDisplay, l as ParseErrorDisplayProps, m as PluginContext, n as PluginHost, o as PluginHostProps, p as PluginHostRef, r as RenderAsyncOptions, t as SelectionOverlayProps, T as TableSelectionState, U as UnsupportedFeatureWarning, w as UnsupportedFeatureWarningProps, x as UseAutoSaveOptions, y as UseAutoSaveReturn, z as UseClipboardOptions, A as UseClipboardReturn, B as UseSelectionHighlightOptions, C as UseSelectionHighlightReturn, F as UseTableSelectionOptions, G as UseTableSelectionReturn, I as UseWheelZoomOptions, J as UseWheelZoomReturn, Z as ZOOM_PRESETS, L as clampZoom, O as findNearestZoomPreset, Q as formatZoom, V as generateOverlayElements, _ as getNextZoomPreset, $ as getPreviousZoomPreset, a3 as getUserFriendlyMessage, a4 as getZoomPresets, a8 as isParseError, ab as isZoomPreset, ae as parseZoom, ag as renderAsync, ai as useAutoSave, aj as useClipboard, ak as useErrorNotifications, al as useSelectionHighlight, am as useTableSelection, an as useWheelZoom } from './react-8budV7xv.mjs';
|
|
2
|
+
export { g as DocxInput, t as toArrayBuffer } from './DocumentAgent-E8OX_8j0.mjs';
|
|
3
|
+
export { d as AutoSaveStatus, e as ClipboardSelection, h as ErrorNotification, i as ErrorSeverity, j as PanelConfig, k as PluginPanelProps, m as SavedDocumentData, T as TABLE_DATA_ATTRIBUTES, p as createSelectionFromDOM, t as formatLastSaveTime, u as formatStorageSize, v as getAutoSaveStatusLabel, w as getAutoSaveStorageSize, x as getSelectionRuns, z as isAutoSaveSupported } from './ClipboardManager-Cjb_v74d.mjs';
|
|
4
4
|
import 'react';
|
|
5
5
|
import 'prosemirror-view';
|
|
6
6
|
import 'prosemirror-state';
|
|
7
|
-
import './agentApi-
|
|
8
|
-
import './clipboard-
|
|
7
|
+
import './agentApi-mv532p8I.mjs';
|
|
8
|
+
import './clipboard-BWhM0CRj.mjs';
|
|
9
9
|
import 'react/jsx-runtime';
|
|
10
10
|
import 'prosemirror-model';
|
package/dist/react.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { a as DocxEditor, b as DocxEditorHandle, c as DocxEditorProps, d as DocxEditorRef, e as EditorPlugin, f as ErrorBoundary, g as ErrorBoundaryProps, h as ErrorContextValue, i as ErrorProvider, P as PLUGIN_HOST_STYLES, k as ParseErrorDisplay, l as ParseErrorDisplayProps, m as PluginContext, n as PluginHost, o as PluginHostProps, p as PluginHostRef, r as RenderAsyncOptions, t as SelectionOverlayProps, T as TableSelectionState, U as UnsupportedFeatureWarning, w as UnsupportedFeatureWarningProps, x as UseAutoSaveOptions, y as UseAutoSaveReturn, z as UseClipboardOptions, A as UseClipboardReturn, B as UseSelectionHighlightOptions, C as UseSelectionHighlightReturn, F as UseTableSelectionOptions, G as UseTableSelectionReturn, I as UseWheelZoomOptions, J as UseWheelZoomReturn, Z as ZOOM_PRESETS, L as clampZoom, O as findNearestZoomPreset, Q as formatZoom, V as generateOverlayElements, _ as getNextZoomPreset, $ as getPreviousZoomPreset, a3 as getUserFriendlyMessage, a4 as getZoomPresets, a8 as isParseError, ab as isZoomPreset, ae as parseZoom, ag as renderAsync, ai as useAutoSave, aj as useClipboard, ak as useErrorNotifications, al as useSelectionHighlight, am as useTableSelection, an as useWheelZoom } from './react-
|
|
2
|
-
export { g as DocxInput, t as toArrayBuffer } from './DocumentAgent-
|
|
3
|
-
export { d as AutoSaveStatus, e as ClipboardSelection, h as ErrorNotification, i as ErrorSeverity, j as PanelConfig, k as PluginPanelProps, m as SavedDocumentData, T as TABLE_DATA_ATTRIBUTES, p as createSelectionFromDOM, t as formatLastSaveTime, u as formatStorageSize, v as getAutoSaveStatusLabel, w as getAutoSaveStorageSize, x as getSelectionRuns, z as isAutoSaveSupported } from './ClipboardManager-
|
|
1
|
+
export { a as DocxEditor, b as DocxEditorHandle, c as DocxEditorProps, d as DocxEditorRef, e as EditorPlugin, f as ErrorBoundary, g as ErrorBoundaryProps, h as ErrorContextValue, i as ErrorProvider, P as PLUGIN_HOST_STYLES, k as ParseErrorDisplay, l as ParseErrorDisplayProps, m as PluginContext, n as PluginHost, o as PluginHostProps, p as PluginHostRef, r as RenderAsyncOptions, t as SelectionOverlayProps, T as TableSelectionState, U as UnsupportedFeatureWarning, w as UnsupportedFeatureWarningProps, x as UseAutoSaveOptions, y as UseAutoSaveReturn, z as UseClipboardOptions, A as UseClipboardReturn, B as UseSelectionHighlightOptions, C as UseSelectionHighlightReturn, F as UseTableSelectionOptions, G as UseTableSelectionReturn, I as UseWheelZoomOptions, J as UseWheelZoomReturn, Z as ZOOM_PRESETS, L as clampZoom, O as findNearestZoomPreset, Q as formatZoom, V as generateOverlayElements, _ as getNextZoomPreset, $ as getPreviousZoomPreset, a3 as getUserFriendlyMessage, a4 as getZoomPresets, a8 as isParseError, ab as isZoomPreset, ae as parseZoom, ag as renderAsync, ai as useAutoSave, aj as useClipboard, ak as useErrorNotifications, al as useSelectionHighlight, am as useTableSelection, an as useWheelZoom } from './react-D6tMLo0R.js';
|
|
2
|
+
export { g as DocxInput, t as toArrayBuffer } from './DocumentAgent-iedmc_8s.js';
|
|
3
|
+
export { d as AutoSaveStatus, e as ClipboardSelection, h as ErrorNotification, i as ErrorSeverity, j as PanelConfig, k as PluginPanelProps, m as SavedDocumentData, T as TABLE_DATA_ATTRIBUTES, p as createSelectionFromDOM, t as formatLastSaveTime, u as formatStorageSize, v as getAutoSaveStatusLabel, w as getAutoSaveStorageSize, x as getSelectionRuns, z as isAutoSaveSupported } from './ClipboardManager-C1l58nzE.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
import 'prosemirror-view';
|
|
6
6
|
import 'prosemirror-state';
|
|
7
|
-
import './agentApi-
|
|
8
|
-
import './clipboard-
|
|
7
|
+
import './agentApi-mv532p8I.js';
|
|
8
|
+
import './clipboard-BvkuNZub.js';
|
|
9
9
|
import 'react/jsx-runtime';
|
|
10
10
|
import 'prosemirror-model';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CorePlugin, P as PluginOptions, a as PluginRegistrationResult, b as CommandHandler, M as McpToolDefinition, c as PluginEventListener } from './types-
|
|
1
|
+
import { C as CorePlugin, P as PluginOptions, a as PluginRegistrationResult, b as CommandHandler, M as McpToolDefinition, c as PluginEventListener } from './types-DIBvJ7AJ.mjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Plugin Registry
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CorePlugin, P as PluginOptions, a as PluginRegistrationResult, b as CommandHandler, M as McpToolDefinition, c as PluginEventListener } from './types-
|
|
1
|
+
import { C as CorePlugin, P as PluginOptions, a as PluginRegistrationResult, b as CommandHandler, M as McpToolDefinition, c as PluginEventListener } from './types-CfAiObQo.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Plugin Registry
|
package/dist/ui.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React__default, { CSSProperties, ReactNode } from 'react';
|
|
3
|
-
import {
|
|
4
|
-
import { i as TableAction, a as TranslationKey, P as ParsedClipboardContent } from './clipboard-
|
|
5
|
-
export { e as PrintButton, f as PrintButtonProps, g as PrintOptions, h as PrintStyles, j as TableContext, k as TableSelection, l as TableToolbar, m as TableToolbarProps, n as addColumn, o as addRow, t as createTableContext, u as deleteColumn, v as deleteRow, w as formatPrintPageRange, x as getCellAt, y as getColumnCount, z as getDefaultPrintOptions, E as isPrintSupported, G as mergeCells, H as openPrintWindow, M as parsePageRange, Q as splitCell, R as triggerPrint } from './clipboard-
|
|
3
|
+
import { at as ParagraphAlignment, ao as ColorValue, Y as Style, a3 as Theme, W as SelectionContext, f as AIAction, i as AgentResponse, ax as StyleType, V as SectionProperties, ay as TabStop, D as Document } from './agentApi-mv532p8I.mjs';
|
|
4
|
+
import { i as TableAction, a as TranslationKey, P as ParsedClipboardContent } from './clipboard-BWhM0CRj.mjs';
|
|
5
|
+
export { e as PrintButton, f as PrintButtonProps, g as PrintOptions, h as PrintStyles, j as TableContext, k as TableSelection, l as TableToolbar, m as TableToolbarProps, n as addColumn, o as addRow, t as createTableContext, u as deleteColumn, v as deleteRow, w as formatPrintPageRange, x as getCellAt, y as getColumnCount, z as getDefaultPrintOptions, E as isPrintSupported, G as mergeCells, H as openPrintWindow, M as parsePageRange, Q as splitCell, R as triggerPrint } from './clipboard-BWhM0CRj.mjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* List type
|
package/dist/ui.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React__default, { CSSProperties, ReactNode } from 'react';
|
|
3
|
-
import {
|
|
4
|
-
import { i as TableAction, a as TranslationKey, P as ParsedClipboardContent } from './clipboard-
|
|
5
|
-
export { e as PrintButton, f as PrintButtonProps, g as PrintOptions, h as PrintStyles, j as TableContext, k as TableSelection, l as TableToolbar, m as TableToolbarProps, n as addColumn, o as addRow, t as createTableContext, u as deleteColumn, v as deleteRow, w as formatPrintPageRange, x as getCellAt, y as getColumnCount, z as getDefaultPrintOptions, E as isPrintSupported, G as mergeCells, H as openPrintWindow, M as parsePageRange, Q as splitCell, R as triggerPrint } from './clipboard-
|
|
3
|
+
import { at as ParagraphAlignment, ao as ColorValue, Y as Style, a3 as Theme, W as SelectionContext, f as AIAction, i as AgentResponse, ax as StyleType, V as SectionProperties, ay as TabStop, D as Document } from './agentApi-mv532p8I.js';
|
|
4
|
+
import { i as TableAction, a as TranslationKey, P as ParsedClipboardContent } from './clipboard-BvkuNZub.js';
|
|
5
|
+
export { e as PrintButton, f as PrintButtonProps, g as PrintOptions, h as PrintStyles, j as TableContext, k as TableSelection, l as TableToolbar, m as TableToolbarProps, n as addColumn, o as addRow, t as createTableContext, u as deleteColumn, v as deleteRow, w as formatPrintPageRange, x as getCellAt, y as getColumnCount, z as getDefaultPrintOptions, E as isPrintSupported, G as mergeCells, H as openPrintWindow, M as parsePageRange, Q as splitCell, R as triggerPrint } from './clipboard-BvkuNZub.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* List type
|