@zeke-02/docx-editor 0.0.35 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -29
- package/dist/{ClipboardManager-C1l58nzE.d.ts → ClipboardManager-CVKX0v9q.d.ts} +1 -1
- package/dist/{ClipboardManager-Cjb_v74d.d.mts → ClipboardManager-V3aaMnWE.d.mts} +1 -1
- package/dist/{DocumentAgent-E8OX_8j0.d.mts → DocumentAgent-BWflKHpH.d.mts} +1 -1
- package/dist/{DocumentAgent-iedmc_8s.d.ts → DocumentAgent-DsdXtetF.d.ts} +1 -1
- package/dist/{FindReplaceDialog-YW3R4FHM.mjs → FindReplaceDialog-L3YF5HIS.mjs} +1 -1
- package/dist/FindReplaceDialog-SEBWC5P7.js +1 -0
- package/dist/{FootnotePropertiesDialog-LNFJXQUG.mjs → FootnotePropertiesDialog-TNVJJCY6.mjs} +1 -1
- package/dist/{FootnotePropertiesDialog-7QX54WQT.js → FootnotePropertiesDialog-XQ7NIFIU.js} +1 -1
- package/dist/{HyperlinkDialog-HNYTXDCB.mjs → HyperlinkDialog-FR4IZZ7E.mjs} +1 -1
- package/dist/HyperlinkDialog-WEK6JSAC.js +1 -0
- package/dist/{ImagePositionDialog-M65BYQQE.js → ImagePositionDialog-2YXRAGZS.js} +1 -1
- package/dist/{ImagePositionDialog-B4RLP2W5.mjs → ImagePositionDialog-JSZSIKF5.mjs} +1 -1
- package/dist/ImagePropertiesDialog-527MFLQO.mjs +1 -0
- package/dist/{ImagePropertiesDialog-O4WQSF5M.js → ImagePropertiesDialog-HG4K3IE7.js} +1 -1
- package/dist/PageSetupDialog-GALVJMUB.js +1 -0
- package/dist/PageSetupDialog-TGQIAMI7.mjs +1 -0
- package/dist/SplitCellDialog-JIAC3RYV.js +1 -0
- package/dist/SplitCellDialog-NP3JJYHD.mjs +1 -0
- package/dist/{TablePropertiesDialog-WOZ4ES3H.js → TablePropertiesDialog-T7D4HSVP.js} +1 -1
- package/dist/TablePropertiesDialog-TIK4AA5M.mjs +1 -0
- package/dist/{clipboard-BWhM0CRj.d.mts → TableToolbar-DUgmob2I.d.ts} +227 -135
- package/dist/{clipboard-BvkuNZub.d.ts → TableToolbar-YL74HNS1.d.mts} +227 -135
- package/dist/{agentApi-mv532p8I.d.mts → agentApi-DLt94vXk.d.mts} +83 -5
- package/dist/{agentApi-mv532p8I.d.ts → agentApi-DLt94vXk.d.ts} +83 -5
- package/dist/chunk-23SXXIZS.js +111 -0
- package/dist/chunk-3F52AP2Q.js +1 -0
- package/dist/chunk-42O5GXM5.mjs +82 -0
- package/dist/chunk-54ULJEHM.mjs +1 -0
- package/dist/chunk-5XK326FI.mjs +1 -0
- package/dist/chunk-76IYR7C7.mjs +1 -0
- package/dist/chunk-AGRIVA4G.js +1 -0
- package/dist/chunk-BTCQ2QI3.mjs +3 -0
- package/dist/chunk-BXRC4U3X.mjs +2 -0
- package/dist/chunk-CPAYKE6X.mjs +1 -0
- package/dist/chunk-DACWLFKI.mjs +1 -0
- package/dist/{chunk-377ZVTSE.js → chunk-EHFEG3TX.js} +1 -1
- package/dist/chunk-EPBFWE36.js +2 -0
- package/dist/chunk-FXES3YDB.js +82 -0
- package/dist/chunk-HI66BSGS.mjs +9 -0
- package/dist/chunk-INTPVEO6.mjs +9 -0
- package/dist/chunk-IOAGVW6Q.mjs +2 -0
- package/dist/chunk-JCEWC5QL.mjs +4 -0
- package/dist/chunk-JTIUFACT.js +1 -0
- package/dist/{chunk-KCOGY3V2.js → chunk-LUF7PWIC.js} +4 -4
- package/dist/chunk-LVGJKS7Y.mjs +24 -0
- package/dist/chunk-MGEN6GOE.mjs +2 -0
- package/dist/chunk-MOE2ZGUE.js +18 -0
- package/dist/chunk-MWLHJWB6.js +9 -0
- package/dist/chunk-OFYVDN3U.mjs +2 -0
- package/dist/chunk-P4VSHBGZ.js +2 -0
- package/dist/chunk-P5FQHIES.mjs +1 -0
- package/dist/chunk-PBC7XAYZ.js +3 -0
- package/dist/chunk-PEMB6SZT.js +2 -0
- package/dist/chunk-PKEOQIQO.mjs +2 -0
- package/dist/chunk-PQMSZTBB.js +9 -0
- package/dist/chunk-Q7UDQXAF.js +1 -0
- package/dist/chunk-QGTAIC5E.js +1 -0
- package/dist/chunk-R3QMYPL5.mjs +59 -0
- package/dist/chunk-RBUTXXQJ.mjs +18 -0
- package/dist/chunk-RRWYZ2TS.mjs +111 -0
- package/dist/chunk-S3STEPVO.js +182 -0
- package/dist/{chunk-AU5NVRHP.js → chunk-SFUM35DH.js} +2 -2
- package/dist/chunk-SNLC6EK2.js +1 -0
- package/dist/chunk-TMTLIGLZ.js +59 -0
- package/dist/{chunk-RTFUE3KK.mjs → chunk-TSE2PWFX.mjs} +3 -3
- package/dist/chunk-UKESXQS5.mjs +182 -0
- package/dist/chunk-UWYD42WV.js +4 -0
- package/dist/chunk-UXVACQCY.mjs +1 -0
- package/dist/{chunk-Z26WOH6R.mjs → chunk-W4EIKDM6.mjs} +2 -2
- package/dist/chunk-WNS2RBQD.js +2 -0
- package/dist/chunk-YC5KZSYD.js +24 -0
- package/dist/chunk-Z3KMSHUP.js +1 -0
- package/dist/core-plugins-reexport.d.mts +4 -4
- package/dist/core-plugins-reexport.d.ts +4 -4
- package/dist/core-plugins-reexport.js +1 -1
- package/dist/core-plugins-reexport.mjs +1 -1
- package/dist/core-reexport.d.mts +47 -16
- package/dist/core-reexport.d.ts +47 -16
- package/dist/core-reexport.js +1 -1
- package/dist/core-reexport.mjs +1 -1
- package/dist/{colorResolver-C5fQ4fxP.d.mts → documentSerializer-DtS_-oGA.d.mts} +378 -376
- package/dist/{colorResolver-Bp9flT3l.d.ts → documentSerializer-Wj1p2ASa.d.ts} +378 -376
- package/dist/executor-C3VXF7QA.mjs +1 -0
- package/dist/executor-GDBV3AGV.js +1 -0
- package/dist/headless-reexport.d.mts +14 -12
- package/dist/headless-reexport.d.ts +14 -12
- package/dist/headless-reexport.js +1 -4
- package/dist/headless-reexport.mjs +1 -4
- package/dist/index.css +1 -1
- package/dist/index.d.mts +284 -172
- package/dist/index.d.ts +284 -172
- package/dist/index.js +17 -9
- package/dist/index.mjs +17 -9
- package/dist/{fontLoader-0G00frKD.d.mts → insertOperations-BTH1Asas.d.mts} +86 -86
- package/dist/{fontLoader-DPdt4JvW.d.ts → insertOperations-CbUnXAXH.d.ts} +86 -86
- package/dist/layout-bridge-EA4DJ227.js +1 -0
- package/dist/layout-bridge-XDPSO6GO.mjs +1 -0
- package/dist/mcp-reexport.d.mts +2 -2
- package/dist/mcp-reexport.d.ts +2 -2
- package/dist/mcp-reexport.js +8 -8
- package/dist/mcp-reexport.mjs +7 -7
- package/dist/processTemplate-MJ2PCSO5.js +1 -0
- package/dist/{processTemplate-LRHXOWMZ.mjs → processTemplate-W2C5PXZB.mjs} +1 -1
- package/dist/{react-1OO-DXvx.d.ts → react-B0W16SV6.d.ts} +384 -166
- package/dist/{react-B1dSZ_w1.d.mts → react-D0Pn1nww.d.mts} +384 -166
- package/dist/react.css +1 -1
- package/dist/react.d.mts +5 -5
- package/dist/react.d.ts +5 -5
- package/dist/react.js +1 -1
- package/dist/react.mjs +1 -1
- package/dist/{registry-BWGKcKc1.d.ts → registry-CH9V-IX0.d.ts} +1 -1
- package/dist/{registry-8XOdjHGC.d.mts → registry-CWBKYlNW.d.mts} +1 -1
- package/dist/styles.css +1 -1
- package/dist/{types-DIBvJ7AJ.d.mts → types-UDsUq8D3.d.mts} +1 -1
- package/dist/{types-CfAiObQo.d.ts → types-jbivc9Lj.d.ts} +1 -1
- package/dist/ui.d.mts +33 -83
- package/dist/ui.d.ts +33 -83
- package/dist/ui.js +1 -1
- package/dist/ui.mjs +1 -1
- package/dist/{variableDetector-DNO18eZ1.d.mts → variableDetector-CdQ7ZTzA.d.mts} +1 -1
- package/dist/{variableDetector-BIJFVpkl.d.ts → variableDetector-DsRV3A9z.d.ts} +1 -1
- package/i18n/de.json +49 -2
- package/i18n/en.json +55 -8
- package/i18n/he.json +792 -0
- package/i18n/pl.json +49 -2
- package/i18n/pt-BR.json +792 -0
- package/i18n/tr.json +792 -0
- package/i18n/zh-CN.json +792 -0
- package/package.json +17 -5
- package/dist/FindReplaceDialog-KNJETYJX.js +0 -1
- package/dist/HyperlinkDialog-GBAYMTUE.js +0 -1
- package/dist/ImagePropertiesDialog-JOGW3WDU.mjs +0 -1
- package/dist/PageSetupDialog-2GIBTKMJ.js +0 -1
- package/dist/PageSetupDialog-Q7SHEZIJ.mjs +0 -1
- package/dist/TablePropertiesDialog-LMXWX3FI.mjs +0 -1
- package/dist/chunk-2HDYCD2Q.mjs +0 -1
- package/dist/chunk-37SLIJPH.mjs +0 -58
- package/dist/chunk-3OKYQQQ5.js +0 -111
- package/dist/chunk-4VUZBV2S.js +0 -1
- package/dist/chunk-6YRWZ32V.js +0 -261
- package/dist/chunk-7MGFEP2R.mjs +0 -26
- package/dist/chunk-7QTNB64A.mjs +0 -9
- package/dist/chunk-AARNCPWR.js +0 -1
- package/dist/chunk-DC65PJYE.js +0 -4
- package/dist/chunk-DLVLK5FT.mjs +0 -24
- package/dist/chunk-EV3CM6TU.js +0 -1
- package/dist/chunk-FVUGBRDD.js +0 -1
- package/dist/chunk-FW5LYOOZ.mjs +0 -111
- package/dist/chunk-GZOCOWWB.mjs +0 -2
- package/dist/chunk-KUL2SDYC.js +0 -26
- package/dist/chunk-LYBG4YI7.mjs +0 -1
- package/dist/chunk-M5F4SK3W.mjs +0 -1
- package/dist/chunk-P7WEP4JU.js +0 -9
- package/dist/chunk-PB7VMDDP.js +0 -24
- package/dist/chunk-QAZ4233N.mjs +0 -1
- package/dist/chunk-QSUPYUOP.js +0 -2
- package/dist/chunk-QTSXJRP6.mjs +0 -1
- package/dist/chunk-S67UBZDL.mjs +0 -261
- package/dist/chunk-SE5EN2QL.js +0 -1
- package/dist/chunk-X5A54T6S.mjs +0 -4
- package/dist/chunk-YKBSKEBS.mjs +0 -2
- package/dist/chunk-ZJNGMDRE.js +0 -58
- package/dist/executor-L2MVKMXO.js +0 -1
- package/dist/executor-XKBCCVNY.mjs +0 -1
- package/dist/processTemplate-5ZST2Q5L.js +0 -1
- package/dist/selectionRects-DEX5THEG.js +0 -1
- package/dist/selectionRects-SQTAHMCH.mjs +0 -1
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 {
|
|
4
|
-
|
|
5
|
-
export {
|
|
6
|
-
|
|
7
|
-
export {
|
|
8
|
-
|
|
1
|
+
import { R as ReactEditorPlugin } from './react-B0W16SV6.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-B0W16SV6.js';
|
|
3
|
+
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 './documentSerializer-Wj1p2ASa.js';
|
|
4
|
+
import { T as Translations, a as TranslationKey } from './TableToolbar-DUgmob2I.js';
|
|
5
|
+
export { C as CLIPBOARD_TYPES, b as ClipboardContent, c as ClipboardOptions, F as FontOption, d as FontPicker, e as FontPickerProps, I as INTERNAL_CLIPBOARD_TYPE, L as LocaleStrings, P as ParsedClipboardContent, f as PartialLocaleStrings, g as PrintButton, h as PrintButtonProps, i as PrintOptions, j as PrintStyles, k as TableAction, l as TableContext, m as TableSelection, n as TableSplitConfig, o as TableToolbar, p as TableToolbarProps, q as addColumn, r as addRow, s as cleanWordHtml, t as copyParagraphs, u as copyRuns, v as createClipboardHandlers, w as createTableContext, x as deleteColumn, y as deleteRow, z as formatPrintPageRange, A as getCellAt, B as getColumnCount, D as getDefaultPrintOptions, E as getTableSplitCellDialogConfig, G as handlePasteEvent, H as htmlToRuns, J as isEditorHtml, K as isPrintSupported, M as isWordHtml, N as mergeCells, O as openPrintWindow, Q as paragraphsToClipboardContent, R as parseClipboardHtml, S as parsePageRange, U as readFromClipboard, V as runsToClipboardContent, W as splitCell, X as splitTableCell, Y as triggerPrint, Z as writeToClipboard } from './TableToolbar-DUgmob2I.js';
|
|
6
|
+
export { D as DocumentAgent, g as DocxInput, t as toArrayBuffer } from './DocumentAgent-DsdXtetF.js';
|
|
7
|
+
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 './insertOperations-CbUnXAXH.js';
|
|
8
|
+
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-DLt94vXk.js';
|
|
9
9
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
export {
|
|
10
|
+
import { ReactNode, CSSProperties } from 'react';
|
|
11
|
+
import { ToolbarProps } from './ui.js';
|
|
12
|
+
export { AlignmentButtons, AlignmentButtonsProps, ColorPicker, ColorPickerMode, ColorPickerProps, ContextMenu, ContextMenuProps, DialogKeyboardShortcut, FindMatch, FindOptions, FindReplaceDialog, FindReplaceDialogProps, FindReplaceOptions, FindReplaceState, FindResult, 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';
|
|
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 { 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-
|
|
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-jbivc9Lj.js';
|
|
17
|
+
export { P as PluginRegistry, p as pluginRegistry, r as registerPlugins } from './registry-CH9V-IX0.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-CVKX0v9q.js';
|
|
20
20
|
import 'prosemirror-model';
|
|
21
21
|
|
|
22
22
|
interface LocaleProviderProps {
|
|
@@ -28,163 +28,6 @@ declare function useTranslation(): {
|
|
|
28
28
|
t: (key: TranslationKey, vars?: Record<string, string | number>) => string;
|
|
29
29
|
};
|
|
30
30
|
|
|
31
|
-
/**
|
|
32
|
-
* Props for the EditorToolbar compound component.
|
|
33
|
-
* Extends ToolbarProps with title bar-specific fields.
|
|
34
|
-
*/
|
|
35
|
-
interface EditorToolbarProps extends ToolbarProps {
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
interface LogoProps {
|
|
39
|
-
children: ReactNode;
|
|
40
|
-
}
|
|
41
|
-
declare function Logo({ children }: LogoProps): react_jsx_runtime.JSX.Element;
|
|
42
|
-
interface DocumentNameProps {
|
|
43
|
-
value: string;
|
|
44
|
-
onChange?: (value: string) => void;
|
|
45
|
-
placeholder?: string;
|
|
46
|
-
editable?: boolean;
|
|
47
|
-
}
|
|
48
|
-
declare function DocumentName({ value, onChange, placeholder, editable }: DocumentNameProps): react_jsx_runtime.JSX.Element;
|
|
49
|
-
interface TitleBarRightProps {
|
|
50
|
-
children: ReactNode;
|
|
51
|
-
}
|
|
52
|
-
declare function TitleBarRight({ children }: TitleBarRightProps): react_jsx_runtime.JSX.Element;
|
|
53
|
-
declare function MenuBar(): react_jsx_runtime.JSX.Element;
|
|
54
|
-
interface TitleBarProps {
|
|
55
|
-
children: ReactNode;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* TitleBar layout (Google Docs style):
|
|
59
|
-
*
|
|
60
|
-
* ┌──────────┬────────────────────────────┬──────────────────┐
|
|
61
|
-
* │ │ Document Name │ │
|
|
62
|
-
* │ Logo │ │ Right Actions │
|
|
63
|
-
* │ │ File Format Insert │ │
|
|
64
|
-
* └──────────┴────────────────────────────┴──────────────────┘
|
|
65
|
-
*
|
|
66
|
-
* Logo and TitleBarRight span full height. DocumentName + MenuBar
|
|
67
|
-
* stack vertically in the center column.
|
|
68
|
-
*/
|
|
69
|
-
declare function TitleBar({ children }: TitleBarProps): react_jsx_runtime.JSX.Element;
|
|
70
|
-
|
|
71
|
-
interface FormattingBarProps extends ToolbarProps {
|
|
72
|
-
/** Custom toolbar items to render at the end */
|
|
73
|
-
children?: ReactNode;
|
|
74
|
-
/** When true, renders with display:contents so children flow in parent flex container */
|
|
75
|
-
inline?: boolean;
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Icon-based formatting toolbar — undo/redo, zoom, styles, fonts,
|
|
79
|
-
* bold/italic/underline, colors, alignment, lists, table/image context, clear formatting.
|
|
80
|
-
*/
|
|
81
|
-
declare function FormattingBar(explicitProps: FormattingBarProps): react_jsx_runtime.JSX.Element;
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* EditorToolbar — Google Docs-style 2-level compound component.
|
|
85
|
-
*
|
|
86
|
-
* Usage:
|
|
87
|
-
* <EditorToolbar {...toolbarProps}>
|
|
88
|
-
* <EditorToolbar.TitleBar>
|
|
89
|
-
* <EditorToolbar.Logo><MyIcon /></EditorToolbar.Logo>
|
|
90
|
-
* <EditorToolbar.DocumentName value={name} onChange={setName} />
|
|
91
|
-
* <EditorToolbar.MenuBar />
|
|
92
|
-
* <EditorToolbar.TitleBarRight>
|
|
93
|
-
* <button>Save</button>
|
|
94
|
-
* </EditorToolbar.TitleBarRight>
|
|
95
|
-
* </EditorToolbar.TitleBar>
|
|
96
|
-
* <EditorToolbar.FormattingBar />
|
|
97
|
-
* </EditorToolbar>
|
|
98
|
-
*/
|
|
99
|
-
|
|
100
|
-
interface EditorToolbarComponent {
|
|
101
|
-
(props: EditorToolbarProps & {
|
|
102
|
-
children: ReactNode;
|
|
103
|
-
}): React.JSX.Element;
|
|
104
|
-
TitleBar: typeof TitleBar;
|
|
105
|
-
Logo: typeof Logo;
|
|
106
|
-
DocumentName: typeof DocumentName;
|
|
107
|
-
MenuBar: typeof MenuBar;
|
|
108
|
-
TitleBarRight: typeof TitleBarRight;
|
|
109
|
-
FormattingBar: typeof FormattingBar;
|
|
110
|
-
}
|
|
111
|
-
declare const EditorToolbar: EditorToolbarComponent;
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Text Selection Utilities
|
|
115
|
-
*
|
|
116
|
-
* Utilities for word-level and paragraph-level text selection.
|
|
117
|
-
* Used for double-click (word) and triple-click (paragraph) selection.
|
|
118
|
-
*/
|
|
119
|
-
/**
|
|
120
|
-
* Check if a character is a word character
|
|
121
|
-
*/
|
|
122
|
-
declare function isWordCharacter$1(char: string): boolean;
|
|
123
|
-
/**
|
|
124
|
-
* Check if a character is whitespace
|
|
125
|
-
*/
|
|
126
|
-
declare function isWhitespace$1(char: string): boolean;
|
|
127
|
-
/**
|
|
128
|
-
* Find word boundaries around a position in text
|
|
129
|
-
* Returns [startIndex, endIndex] inclusive start, exclusive end
|
|
130
|
-
*/
|
|
131
|
-
declare function findWordBoundaries(text: string, position: number): [number, number];
|
|
132
|
-
/**
|
|
133
|
-
* Get the word at a position in text
|
|
134
|
-
*/
|
|
135
|
-
declare function getWordAt(text: string, position: number): string;
|
|
136
|
-
/**
|
|
137
|
-
* Word selection result
|
|
138
|
-
*/
|
|
139
|
-
interface WordSelectionResult {
|
|
140
|
-
/** The selected word */
|
|
141
|
-
word: string;
|
|
142
|
-
/** Start index in the text (inclusive) */
|
|
143
|
-
startIndex: number;
|
|
144
|
-
/** End index in the text (exclusive) */
|
|
145
|
-
endIndex: number;
|
|
146
|
-
}
|
|
147
|
-
/**
|
|
148
|
-
* Find the word at a position and return detailed info
|
|
149
|
-
*/
|
|
150
|
-
declare function findWordAt(text: string, position: number): WordSelectionResult;
|
|
151
|
-
/**
|
|
152
|
-
* Select a word at the current cursor position using the browser's native APIs.
|
|
153
|
-
* This works reliably across different browsers and handles contentEditable well.
|
|
154
|
-
*/
|
|
155
|
-
declare function selectWordAtCursor(): boolean;
|
|
156
|
-
/**
|
|
157
|
-
* Select a word in a specific text node at the given offset
|
|
158
|
-
*/
|
|
159
|
-
declare function selectWordInTextNode(textNode: Text, offset: number): boolean;
|
|
160
|
-
/**
|
|
161
|
-
* Expand the current selection to word boundaries.
|
|
162
|
-
* If there's a collapsed selection (cursor), selects the word at cursor.
|
|
163
|
-
* If there's an existing selection, expands to include complete words.
|
|
164
|
-
*/
|
|
165
|
-
declare function expandSelectionToWordBoundaries(): boolean;
|
|
166
|
-
/**
|
|
167
|
-
* Select the entire paragraph containing the current selection.
|
|
168
|
-
* Looks for the nearest element with [data-paragraph-index] attribute.
|
|
169
|
-
*/
|
|
170
|
-
declare function selectParagraphAtCursor(): boolean;
|
|
171
|
-
/**
|
|
172
|
-
* Handle click event for multi-click detection.
|
|
173
|
-
* Call this in your click handler.
|
|
174
|
-
* Returns the click count (1 = single, 2 = double, 3 = triple).
|
|
175
|
-
*/
|
|
176
|
-
declare function handleClickForMultiClick(event: MouseEvent): number;
|
|
177
|
-
/**
|
|
178
|
-
* Create a double-click handler that selects words.
|
|
179
|
-
* Returns a function that should be called on dblclick events.
|
|
180
|
-
*/
|
|
181
|
-
declare function createDoubleClickWordSelector(): (event: MouseEvent) => void;
|
|
182
|
-
/**
|
|
183
|
-
* Create a triple-click handler that selects paragraphs.
|
|
184
|
-
* This uses our custom click counting since browsers have inconsistent triple-click.
|
|
185
|
-
*/
|
|
186
|
-
declare function createTripleClickParagraphSelector(): (event: MouseEvent) => void;
|
|
187
|
-
|
|
188
31
|
/**
|
|
189
32
|
* Keyboard Navigation Utilities
|
|
190
33
|
*
|
|
@@ -355,6 +198,275 @@ declare function getNavigationShortcutDescriptions(): Array<{
|
|
|
355
198
|
shortcut: string;
|
|
356
199
|
}>;
|
|
357
200
|
|
|
201
|
+
/**
|
|
202
|
+
* Find word boundaries around a position in text
|
|
203
|
+
* Returns [startIndex, endIndex] inclusive start, exclusive end
|
|
204
|
+
*/
|
|
205
|
+
declare function findWordBoundaries(text: string, position: number): [number, number];
|
|
206
|
+
/**
|
|
207
|
+
* Get the word at a position in text
|
|
208
|
+
*/
|
|
209
|
+
declare function getWordAt(text: string, position: number): string;
|
|
210
|
+
/**
|
|
211
|
+
* Word selection result
|
|
212
|
+
*/
|
|
213
|
+
interface WordSelectionResult {
|
|
214
|
+
/** The selected word */
|
|
215
|
+
word: string;
|
|
216
|
+
/** Start index in the text (inclusive) */
|
|
217
|
+
startIndex: number;
|
|
218
|
+
/** End index in the text (exclusive) */
|
|
219
|
+
endIndex: number;
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* Find the word at a position and return detailed info
|
|
223
|
+
*/
|
|
224
|
+
declare function findWordAt(text: string, position: number): WordSelectionResult;
|
|
225
|
+
/**
|
|
226
|
+
* Select a word at the current cursor position using the browser's native APIs.
|
|
227
|
+
* This works reliably across different browsers and handles contentEditable well.
|
|
228
|
+
*/
|
|
229
|
+
declare function selectWordAtCursor(): boolean;
|
|
230
|
+
/**
|
|
231
|
+
* Select a word in a specific text node at the given offset
|
|
232
|
+
*/
|
|
233
|
+
declare function selectWordInTextNode(textNode: Text, offset: number): boolean;
|
|
234
|
+
/**
|
|
235
|
+
* Expand the current selection to word boundaries.
|
|
236
|
+
* If there's a collapsed selection (cursor), selects the word at cursor.
|
|
237
|
+
* If there's an existing selection, expands to include complete words.
|
|
238
|
+
*/
|
|
239
|
+
declare function expandSelectionToWordBoundaries(): boolean;
|
|
240
|
+
/**
|
|
241
|
+
* Select the entire paragraph containing the current selection.
|
|
242
|
+
* Looks for the nearest element with [data-paragraph-index] attribute.
|
|
243
|
+
*/
|
|
244
|
+
declare function selectParagraphAtCursor(): boolean;
|
|
245
|
+
/**
|
|
246
|
+
* Handle click event for multi-click detection.
|
|
247
|
+
* Call this in your click handler.
|
|
248
|
+
* Returns the click count (1 = single, 2 = double, 3 = triple).
|
|
249
|
+
*/
|
|
250
|
+
declare function handleClickForMultiClick(event: MouseEvent): number;
|
|
251
|
+
/**
|
|
252
|
+
* Create a double-click handler that selects words.
|
|
253
|
+
* Returns a function that should be called on dblclick events.
|
|
254
|
+
*/
|
|
255
|
+
declare function createDoubleClickWordSelector(): (event: MouseEvent) => void;
|
|
256
|
+
/**
|
|
257
|
+
* Create a triple-click handler that selects paragraphs.
|
|
258
|
+
* This uses our custom click counting since browsers have inconsistent triple-click.
|
|
259
|
+
*/
|
|
260
|
+
declare function createTripleClickParagraphSelector(): (event: MouseEvent) => void;
|
|
261
|
+
|
|
262
|
+
interface AgentPanelProps {
|
|
263
|
+
/** Header title. Defaults to `t('agentPanel.defaultTitle')`. */
|
|
264
|
+
title?: string;
|
|
265
|
+
/** Header icon node. Defaults to a sparkle SVG. */
|
|
266
|
+
icon?: ReactNode;
|
|
267
|
+
/** Controlled width in pixels. Omit for uncontrolled (internal state + localStorage). */
|
|
268
|
+
width?: number;
|
|
269
|
+
/** Default width when uncontrolled. */
|
|
270
|
+
defaultWidth?: number;
|
|
271
|
+
/** Min drag width. */
|
|
272
|
+
minWidth?: number;
|
|
273
|
+
/** Max drag width. */
|
|
274
|
+
maxWidth?: number;
|
|
275
|
+
/** Width change callback (drag end and intermediate). */
|
|
276
|
+
onWidthChange?: (w: number) => void;
|
|
277
|
+
/** Header close button click. Omit to hide the close button. */
|
|
278
|
+
onClose?: () => void;
|
|
279
|
+
/** Panel content. Render whatever you want — a chat, tabs, settings, anything. */
|
|
280
|
+
children: ReactNode;
|
|
281
|
+
/** Optional class on the outer wrapper. */
|
|
282
|
+
className?: string;
|
|
283
|
+
/**
|
|
284
|
+
* When `true`, the panel collapses to zero width with an ease-out
|
|
285
|
+
* transition (the children are still mounted so chat state survives
|
|
286
|
+
* close/reopen). The DocxEditor wrapper passes this when the user
|
|
287
|
+
* toggles the panel — kept off by default for standalone usage.
|
|
288
|
+
*/
|
|
289
|
+
closed?: boolean;
|
|
290
|
+
}
|
|
291
|
+
declare function AgentPanel({ title, icon, width: controlledWidth, defaultWidth, minWidth, maxWidth, onWidthChange, onClose, children, className, closed, }: AgentPanelProps): react_jsx_runtime.JSX.Element;
|
|
292
|
+
|
|
293
|
+
/** A single tool call the agent made — shown in the collapsible timeline. */
|
|
294
|
+
interface AgentToolCall {
|
|
295
|
+
/** Stable id for keying. */
|
|
296
|
+
id: string;
|
|
297
|
+
/** Tool name (e.g. `read_document`, `add_comment`). */
|
|
298
|
+
name: string;
|
|
299
|
+
/** JSON-able input the agent passed. Rendered in the expanded view. */
|
|
300
|
+
input?: unknown;
|
|
301
|
+
/** Result text or summary. Set after the call completes. */
|
|
302
|
+
result?: string;
|
|
303
|
+
/** Set when the call errored — surfaces in the timeline as failed. */
|
|
304
|
+
error?: string;
|
|
305
|
+
/** `running` while in flight, `done` on success, `error` on failure. */
|
|
306
|
+
status: 'running' | 'done' | 'error';
|
|
307
|
+
}
|
|
308
|
+
interface AgentMessage {
|
|
309
|
+
id: string;
|
|
310
|
+
role: 'user' | 'assistant';
|
|
311
|
+
text: string;
|
|
312
|
+
/**
|
|
313
|
+
* Tool calls the assistant made for this turn, in order. The timeline
|
|
314
|
+
* stays expanded while `status === 'streaming'` and auto-collapses to
|
|
315
|
+
* an "N steps" summary when the message hits `status === 'done'`.
|
|
316
|
+
*/
|
|
317
|
+
toolCalls?: AgentToolCall[];
|
|
318
|
+
/** `streaming` while the model is still calling tools / writing text; `done` once the turn is final. */
|
|
319
|
+
status?: 'streaming' | 'done';
|
|
320
|
+
}
|
|
321
|
+
interface AgentChatLogProps {
|
|
322
|
+
messages: AgentMessage[];
|
|
323
|
+
/** Render thinking dots at the bottom of the list. */
|
|
324
|
+
loading?: boolean;
|
|
325
|
+
/** Render an error bubble after the last message. */
|
|
326
|
+
error?: string | null;
|
|
327
|
+
/** Shown when there are no messages and not loading. */
|
|
328
|
+
emptyState?: ReactNode;
|
|
329
|
+
/** Auto-scroll to bottom on new messages / loading toggles. Default: true. */
|
|
330
|
+
autoScroll?: boolean;
|
|
331
|
+
/**
|
|
332
|
+
* Map a tool name to a friendly label for the per-message timeline.
|
|
333
|
+
* Pass `getToolDisplayName` from `@eigenpal/docx-editor-agents/react` to
|
|
334
|
+
* use the toolkit's registry-aware labels (e.g. "Adding comment").
|
|
335
|
+
*/
|
|
336
|
+
humanizeToolName?: (name: string) => string;
|
|
337
|
+
/** Cap the tool-call timeline to this many recent rows. Default 3. */
|
|
338
|
+
maxVisibleCalls?: number;
|
|
339
|
+
className?: string;
|
|
340
|
+
style?: CSSProperties;
|
|
341
|
+
}
|
|
342
|
+
interface AgentTimelineProps {
|
|
343
|
+
/** Tool calls in chronological order. */
|
|
344
|
+
toolCalls: AgentToolCall[];
|
|
345
|
+
/**
|
|
346
|
+
* Whether the parent assistant turn is still streaming. While true, the
|
|
347
|
+
* timeline is forced expanded and shows a spinner; on false it
|
|
348
|
+
* auto-collapses to an "N steps" summary unless the user expanded it.
|
|
349
|
+
*/
|
|
350
|
+
streaming?: boolean;
|
|
351
|
+
/**
|
|
352
|
+
* Cap the number of rendered call rows — older entries collapse into a
|
|
353
|
+
* "+N earlier steps" header. Default 3.
|
|
354
|
+
*/
|
|
355
|
+
maxVisibleCalls?: number;
|
|
356
|
+
/**
|
|
357
|
+
* Map a tool name to a friendly label. Defaults to a sentence-case
|
|
358
|
+
* conversion of the snake_case name. Pass `getToolDisplayName` from
|
|
359
|
+
* `@eigenpal/docx-editor-agents/react` to use the toolkit's registry.
|
|
360
|
+
*/
|
|
361
|
+
humanizeName?: (name: string) => string;
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* Collapsible timeline of an assistant turn's tool calls. Lives above the
|
|
365
|
+
* assistant text bubble. Auto-collapses when the turn finishes; click the
|
|
366
|
+
* summary row to re-expand.
|
|
367
|
+
*/
|
|
368
|
+
declare function AgentTimeline({ toolCalls, streaming, maxVisibleCalls, humanizeName, }: AgentTimelineProps): react_jsx_runtime.JSX.Element | null;
|
|
369
|
+
declare function AgentChatLog({ messages, loading, error, emptyState, autoScroll, humanizeToolName, maxVisibleCalls, className, style, }: AgentChatLogProps): react_jsx_runtime.JSX.Element;
|
|
370
|
+
interface AgentComposerProps {
|
|
371
|
+
value: string;
|
|
372
|
+
onChange: (next: string) => void;
|
|
373
|
+
onSubmit: () => void;
|
|
374
|
+
disabled?: boolean;
|
|
375
|
+
placeholder?: string;
|
|
376
|
+
/** Small text under the input — typically a scope reminder. */
|
|
377
|
+
footnote?: ReactNode;
|
|
378
|
+
className?: string;
|
|
379
|
+
}
|
|
380
|
+
declare function AgentComposer({ value, onChange, onSubmit, disabled, placeholder, footnote, className, }: AgentComposerProps): react_jsx_runtime.JSX.Element;
|
|
381
|
+
interface AgentSuggestionChipProps {
|
|
382
|
+
label: string;
|
|
383
|
+
onClick: () => void;
|
|
384
|
+
disabled?: boolean;
|
|
385
|
+
}
|
|
386
|
+
declare function AgentSuggestionChip({ label, onClick, disabled }: AgentSuggestionChipProps): react_jsx_runtime.JSX.Element;
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* Props for the EditorToolbar compound component.
|
|
390
|
+
* Extends ToolbarProps with title bar-specific fields.
|
|
391
|
+
*/
|
|
392
|
+
interface EditorToolbarProps extends ToolbarProps {
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
interface LogoProps {
|
|
396
|
+
children: ReactNode;
|
|
397
|
+
}
|
|
398
|
+
declare function Logo({ children }: LogoProps): react_jsx_runtime.JSX.Element;
|
|
399
|
+
interface DocumentNameProps {
|
|
400
|
+
value: string;
|
|
401
|
+
onChange?: (value: string) => void;
|
|
402
|
+
placeholder?: string;
|
|
403
|
+
editable?: boolean;
|
|
404
|
+
}
|
|
405
|
+
declare function DocumentName({ value, onChange, placeholder, editable }: DocumentNameProps): react_jsx_runtime.JSX.Element;
|
|
406
|
+
interface TitleBarRightProps {
|
|
407
|
+
children: ReactNode;
|
|
408
|
+
}
|
|
409
|
+
declare function TitleBarRight({ children }: TitleBarRightProps): react_jsx_runtime.JSX.Element;
|
|
410
|
+
declare function MenuBar(): react_jsx_runtime.JSX.Element;
|
|
411
|
+
interface TitleBarProps {
|
|
412
|
+
children: ReactNode;
|
|
413
|
+
}
|
|
414
|
+
/**
|
|
415
|
+
* TitleBar layout (Google Docs style):
|
|
416
|
+
*
|
|
417
|
+
* ┌──────────┬────────────────────────────┬──────────────────┐
|
|
418
|
+
* │ │ Document Name │ │
|
|
419
|
+
* │ Logo │ │ Right Actions │
|
|
420
|
+
* │ │ File Format Insert │ │
|
|
421
|
+
* └──────────┴────────────────────────────┴──────────────────┘
|
|
422
|
+
*
|
|
423
|
+
* Logo and TitleBarRight span full height. DocumentName + MenuBar
|
|
424
|
+
* stack vertically in the center column.
|
|
425
|
+
*/
|
|
426
|
+
declare function TitleBar({ children }: TitleBarProps): react_jsx_runtime.JSX.Element;
|
|
427
|
+
|
|
428
|
+
interface FormattingBarProps extends ToolbarProps {
|
|
429
|
+
/** Custom toolbar items to render at the end */
|
|
430
|
+
children?: ReactNode;
|
|
431
|
+
/** When true, renders with display:contents so children flow in parent flex container */
|
|
432
|
+
inline?: boolean;
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
* Icon-based formatting toolbar — undo/redo, zoom, styles, fonts,
|
|
436
|
+
* bold/italic/underline, colors, alignment, lists, table/image context, clear formatting.
|
|
437
|
+
*/
|
|
438
|
+
declare function FormattingBar(explicitProps: FormattingBarProps): react_jsx_runtime.JSX.Element;
|
|
439
|
+
|
|
440
|
+
/**
|
|
441
|
+
* EditorToolbar — Google Docs-style 2-level compound component.
|
|
442
|
+
*
|
|
443
|
+
* Usage:
|
|
444
|
+
* <EditorToolbar {...toolbarProps}>
|
|
445
|
+
* <EditorToolbar.TitleBar>
|
|
446
|
+
* <EditorToolbar.Logo><MyIcon /></EditorToolbar.Logo>
|
|
447
|
+
* <EditorToolbar.DocumentName value={name} onChange={setName} />
|
|
448
|
+
* <EditorToolbar.MenuBar />
|
|
449
|
+
* <EditorToolbar.TitleBarRight>
|
|
450
|
+
* <button>Save</button>
|
|
451
|
+
* </EditorToolbar.TitleBarRight>
|
|
452
|
+
* </EditorToolbar.TitleBar>
|
|
453
|
+
* <EditorToolbar.FormattingBar />
|
|
454
|
+
* </EditorToolbar>
|
|
455
|
+
*/
|
|
456
|
+
|
|
457
|
+
interface EditorToolbarComponent {
|
|
458
|
+
(props: EditorToolbarProps & {
|
|
459
|
+
children: ReactNode;
|
|
460
|
+
}): React.JSX.Element;
|
|
461
|
+
TitleBar: typeof TitleBar;
|
|
462
|
+
Logo: typeof Logo;
|
|
463
|
+
DocumentName: typeof DocumentName;
|
|
464
|
+
MenuBar: typeof MenuBar;
|
|
465
|
+
TitleBarRight: typeof TitleBarRight;
|
|
466
|
+
FormattingBar: typeof FormattingBar;
|
|
467
|
+
}
|
|
468
|
+
declare const EditorToolbar: EditorToolbarComponent;
|
|
469
|
+
|
|
358
470
|
/**
|
|
359
471
|
* Template tag types
|
|
360
472
|
*/
|
|
@@ -477,4 +589,4 @@ declare const templatePlugin: ReactEditorPlugin<TemplatePluginState>;
|
|
|
477
589
|
*/
|
|
478
590
|
declare const VERSION = "0.0.2";
|
|
479
591
|
|
|
480
|
-
export { type DocumentNameProps, EditorToolbar, type EditorToolbarProps, FormattingBar, type FormattingBarProps, type KeyboardShortcut, LocaleProvider, type LocaleProviderProps, type LogoProps, NAVIGATION_SHORTCUTS, type NavigationAction, type NavigationDirection, type NavigationUnit, TEMPLATE_DECORATION_STYLES, type TagType, type TemplateTag, type TitleBarProps, type TitleBarRightProps, ToolbarProps, TranslationKey, Translations, VERSION, type WordSelectionResult, createDoubleClickWordSelector, createPlugin as createTemplatePlugin, createTemplatePlugin as createTemplateProseMirrorPlugin, createTripleClickParagraphSelector, describeShortcut, expandSelectionToWord, expandSelectionToWordBoundaries, extendSelectionTo, findNextWordStart, findPreviousWordStart, findVisualLineEnd, findVisualLineStart, findWordAt, findWordBoundaries, findWordEnd, findWordStart, getNavigationShortcutDescriptions, getSelectionInfo, getTemplateTags as getTemplatePluginTags, getWordAt, getWordAtCursor, handleClickForMultiClick, handleNavigationKey, isNavigationKey, isPunctuation, isWhitespace
|
|
592
|
+
export { AgentChatLog, type AgentChatLogProps, AgentComposer, type AgentComposerProps, type AgentMessage, AgentPanel, type AgentPanelProps, AgentSuggestionChip, type AgentSuggestionChipProps, AgentTimeline, type AgentTimelineProps, type AgentToolCall, type DocumentNameProps, EditorToolbar, type EditorToolbarProps, FormattingBar, type FormattingBarProps, type KeyboardShortcut, LocaleProvider, type LocaleProviderProps, type LogoProps, NAVIGATION_SHORTCUTS, type NavigationAction, type NavigationDirection, type NavigationUnit, TEMPLATE_DECORATION_STYLES, type TagType, type TemplateTag, type TitleBarProps, type TitleBarRightProps, ToolbarProps, TranslationKey, Translations, VERSION, type WordSelectionResult, createDoubleClickWordSelector, createPlugin as createTemplatePlugin, createTemplatePlugin as createTemplateProseMirrorPlugin, createTripleClickParagraphSelector, describeShortcut, expandSelectionToWord, expandSelectionToWordBoundaries, extendSelectionTo, findNextWordStart, findPreviousWordStart, findVisualLineEnd, findVisualLineStart, findWordAt, findWordBoundaries, findWordEnd, findWordStart, getNavigationShortcutDescriptions, getSelectionInfo, getTemplateTags as getTemplatePluginTags, getWordAt, getWordAtCursor, handleClickForMultiClick, handleNavigationKey, isNavigationKey, isPunctuation, isWhitespace, isWhitespace as isWhitespaceChar, isWordCharacter as isWordChar, isWordCharacter, matchesShortcut, moveByWord, moveToLineEdge, parseNavigationAction, selectParagraphAtCursor, selectWordAtCursor, selectWordInTextNode, setHoveredElement, setSelectedElement, setSelectionPosition, templatePlugin, templatePluginKey, useTranslation };
|