@eigenpal/docx-editor-react
Advanced tools
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
+2
-3
@@ -28,3 +28,4 @@ /** | ||
| import { Translations, TFunction } from '@eigenpal/docx-editor-i18n'; | ||
| import { P as PrintOptions } from './PrintPreview-DEhwRBC_.mjs'; | ||
| import { PrintOptions, EditorHandle } from '@eigenpal/docx-editor-core'; | ||
| export { CreateEmptyDocumentOptions, createDocumentWithText, createEmptyDocument } from '@eigenpal/docx-editor-core'; | ||
| import { DocumentAgent, ContentControlFilter, ContentControlValue } from '@eigenpal/docx-editor-core/agent'; | ||
@@ -35,4 +36,2 @@ import { ScrollToParaIdOptions, DocxInput, FontDefinition } from '@eigenpal/docx-editor-core/utils'; | ||
| import { RenderedDomContext } from '@eigenpal/docx-editor-core/plugin-api'; | ||
| import { EditorHandle } from '@eigenpal/docx-editor-core'; | ||
| export { CreateEmptyDocumentOptions, createDocumentWithText, createEmptyDocument } from '@eigenpal/docx-editor-core'; | ||
@@ -39,0 +38,0 @@ /** |
+2
-3
@@ -28,3 +28,4 @@ /** | ||
| import { Translations, TFunction } from '@eigenpal/docx-editor-i18n'; | ||
| import { P as PrintOptions } from './PrintPreview-DEhwRBC_.js'; | ||
| import { PrintOptions, EditorHandle } from '@eigenpal/docx-editor-core'; | ||
| export { CreateEmptyDocumentOptions, createDocumentWithText, createEmptyDocument } from '@eigenpal/docx-editor-core'; | ||
| import { DocumentAgent, ContentControlFilter, ContentControlValue } from '@eigenpal/docx-editor-core/agent'; | ||
@@ -35,4 +36,2 @@ import { ScrollToParaIdOptions, DocxInput, FontDefinition } from '@eigenpal/docx-editor-core/utils'; | ||
| import { RenderedDomContext } from '@eigenpal/docx-editor-core/plugin-api'; | ||
| import { EditorHandle } from '@eigenpal/docx-editor-core'; | ||
| export { CreateEmptyDocumentOptions, createDocumentWithText, createEmptyDocument } from '@eigenpal/docx-editor-core'; | ||
@@ -39,0 +38,0 @@ /** |
+40
-2
@@ -25,5 +25,5 @@ /** | ||
| import { TranslationKey } from '@eigenpal/docx-editor-i18n'; | ||
| export { a as PrintButton, b as PrintButtonProps, P as PrintOptions, c as PrintStyles, f as formatPrintPageRange, g as getDefaultPrintOptions, i as isPrintSupported, o as openPrintWindow, p as parsePageRange, t as triggerPrint } from './PrintPreview-DEhwRBC_.mjs'; | ||
| export { K as DialogKeyboardShortcut, F as FindReplaceDialog, a as FindReplaceDialogProps, H as HyperlinkData, b as HyperlinkDialog, c as HyperlinkDialogProps, d as KeyboardShortcutsDialog, e as KeyboardShortcutsDialogProps, P as PasteOption, f as PasteSpecialDialog, g as PasteSpecialDialogProps, S as ShortcutCategory, U as UseKeyboardShortcutsDialogOptions, h as UseKeyboardShortcutsDialogReturn, i as UsePasteSpecialOptions, j as UsePasteSpecialReturn, k as formatShortcutKeys, l as getAllCategories, m as getAllPasteOptions, n as getCategoryLabel, o as getCommonShortcuts, p as getDefaultPasteOption, q as getDefaultShortcuts, r as getPasteOption, s as getShortcutsByCategory, t as isPasteSpecialShortcut, u as useHyperlinkDialog, v as useKeyboardShortcutsDialog, w as usePasteSpecial } from './KeyboardShortcutsDialog-B-h3NAat.mjs'; | ||
| export { FindMatch, FindOptions, FindResult, HighlightOptions, createDefaultFindOptions, createSearchPattern, escapeRegexString, findAllMatches, findInDocument, findInParagraph, getDefaultHighlightOptions, getMatchCountText, isEmptySearch, replaceAllInContent, replaceFirstInContent, scrollToMatch } from '@eigenpal/docx-editor-core/utils/findReplace'; | ||
| export { PrintOptions, formatPageRange as formatPrintPageRange, getDefaultPrintOptions, isPrintSupported, openPrintWindow, parsePageRange, triggerPrint } from '@eigenpal/docx-editor-core'; | ||
| import '@eigenpal/docx-editor-core/utils'; | ||
@@ -55,2 +55,40 @@ | ||
| /** | ||
| * Print Utilities | ||
| * | ||
| * Provides print functionality with: | ||
| * - Print button component for toolbar | ||
| * - Print-specific CSS styles | ||
| * - Browser print dialog trigger | ||
| * - Page range utilities | ||
| */ | ||
| /** | ||
| * PrintButton props | ||
| */ | ||
| interface PrintButtonProps { | ||
| /** Callback when print is triggered */ | ||
| onPrint: () => void; | ||
| /** Whether the button is disabled */ | ||
| disabled?: boolean; | ||
| /** Button label */ | ||
| label?: string; | ||
| /** Additional CSS class */ | ||
| className?: string; | ||
| /** Additional inline styles */ | ||
| style?: CSSProperties; | ||
| /** Show icon */ | ||
| showIcon?: boolean; | ||
| /** Compact mode */ | ||
| compact?: boolean; | ||
| } | ||
| /** | ||
| * PrintButton - Standalone print button for toolbar | ||
| */ | ||
| declare function PrintButton({ onPrint, disabled, label: labelProp, className, style, showIcon, compact, }: PrintButtonProps): React__default.ReactElement; | ||
| /** | ||
| * PrintStyles - Injects print-specific CSS | ||
| */ | ||
| declare function PrintStyles(): React__default.ReactElement; | ||
| /** | ||
| * List Buttons Component | ||
@@ -1656,2 +1694,2 @@ * | ||
| export { AlignmentButtons, type AlignmentButtonsProps, ColorPicker, type ColorPickerMode, type ColorPickerProps, ContextMenu, type ContextMenuProps, type DocumentNameProps, EditorToolbar, type EditorToolbarProps, FontPicker, type FontPickerProps, FontSizePicker, type FontSizePickerProps, HorizontalRuler, type HorizontalRulerProps, type ImageData, type IndicatorPosition, type IndicatorVariant, InsertImageDialog, type InsertImageDialogProps, InsertSymbolDialog, type InsertSymbolDialogProps, InsertTableDialog, type InsertTableDialogProps, type LineSpacingOption, LineSpacingPicker, type LineSpacingPickerProps, ListButtons, type ListButtonsProps, LoadingIndicator, type LoadingIndicatorProps, type LoadingOperation, type LoadingSize, type LoadingVariant, type LogoProps, ResponsePreview, type ResponsePreviewProps, type ResponsePreviewState, ResponsiveToolbar, ToolbarGroup as ResponsiveToolbarGroup, type ToolbarGroupProps as ResponsiveToolbarGroupProps, type ResponsiveToolbarProps, SYMBOL_CATEGORIES, type StyleOption, StylePicker, type StylePickerProps, type SymbolCategory, TableAction, TableBorderColorPicker, type TableBorderColorPickerProps, TableBorderPicker, type TableBorderPickerProps, TableBorderWidthPicker, type TableBorderWidthPickerProps, TableCellFillPicker, type TableCellFillPickerProps, type TableConfig, TableContext, TableInsertButtons, type TableInsertButtonsProps, TableMergeButton, type TableMergeButtonProps, TableMoreDropdown, type TableMoreDropdownProps, TableSelection, TableSplitConfig, type TextContextAction, TextContextMenu, type TextContextMenuItem, type TextContextMenuProps, type TitleBarProps, type TitleBarRightProps, Toolbar, ToolbarButton, ToolbarGroup$1 as ToolbarGroup, type ToolbarItem, type ToolbarItemPriority, type ToolbarProps, ToolbarSeparator, UnsavedIndicator, type UnsavedIndicatorProps, type UseLoadingOptions, type UseLoadingReturn, type UseResponsiveToolbarOptions, type UseResponsiveToolbarReturn, type UseTextContextMenuOptions, type UseTextContextMenuReturn, type UseUnsavedChangesOptions, type UseUnsavedChangesReturn, ZoomControl, type ZoomControlProps, addColumn, addRow, calculateFitDimensions, clampTableConfig, createChangeTracker, createDefaultTableConfig, createErrorResponse, createMockResponse, createTableContext, createToolbarItem, createToolbarItems, dataUrlToBlob, delay, deleteColumn, deleteRow, formatFileSize, formatTableDimensions, getActionShortcut, getAllActions, getAllPositions as getAllIndicatorPositions, getAllVariants as getAllIndicatorVariants, getAllLoadingSizes, getAllLoadingVariants, getCellAt, getColumnCount, getDefaultActions, getDefaultTextContextMenuItems, getImageAcceptString, getImageDimensions, getLoadingVariantLabel, getMarginInUnits, getRecommendedPriority, getRulerDimensions, getSupportedImageExtensions, getSymbolCategories, getSymbolInfo as getSymbolUnicodeInfo, getSymbolsByCategory, getTablePresets, getTableSplitCellDialogConfig, getTextActionLabel, getTextActionShortcut, getVariantLabel, isActionAvailable, isTextActionAvailable, isValidImageFile, isValidTableConfig, mergeCells, parseMarginFromUnits, positionToMargin, searchSymbols, splitCell, splitTableCell, symbolFromCodePoint, useContextMenu, useInsertImageDialog, useInsertSymbolDialog, useInsertTableDialog, useLoading, useLoadingOperations, useResponsePreview, useResponsiveToolbar, useTextContextMenu, useUnsavedChanges }; | ||
| export { AlignmentButtons, type AlignmentButtonsProps, ColorPicker, type ColorPickerMode, type ColorPickerProps, ContextMenu, type ContextMenuProps, type DocumentNameProps, EditorToolbar, type EditorToolbarProps, FontPicker, type FontPickerProps, FontSizePicker, type FontSizePickerProps, HorizontalRuler, type HorizontalRulerProps, type ImageData, type IndicatorPosition, type IndicatorVariant, InsertImageDialog, type InsertImageDialogProps, InsertSymbolDialog, type InsertSymbolDialogProps, InsertTableDialog, type InsertTableDialogProps, type LineSpacingOption, LineSpacingPicker, type LineSpacingPickerProps, ListButtons, type ListButtonsProps, LoadingIndicator, type LoadingIndicatorProps, type LoadingOperation, type LoadingSize, type LoadingVariant, type LogoProps, PrintButton, type PrintButtonProps, PrintStyles, ResponsePreview, type ResponsePreviewProps, type ResponsePreviewState, ResponsiveToolbar, ToolbarGroup as ResponsiveToolbarGroup, type ToolbarGroupProps as ResponsiveToolbarGroupProps, type ResponsiveToolbarProps, SYMBOL_CATEGORIES, type StyleOption, StylePicker, type StylePickerProps, type SymbolCategory, TableAction, TableBorderColorPicker, type TableBorderColorPickerProps, TableBorderPicker, type TableBorderPickerProps, TableBorderWidthPicker, type TableBorderWidthPickerProps, TableCellFillPicker, type TableCellFillPickerProps, type TableConfig, TableContext, TableInsertButtons, type TableInsertButtonsProps, TableMergeButton, type TableMergeButtonProps, TableMoreDropdown, type TableMoreDropdownProps, TableSelection, TableSplitConfig, type TextContextAction, TextContextMenu, type TextContextMenuItem, type TextContextMenuProps, type TitleBarProps, type TitleBarRightProps, Toolbar, ToolbarButton, ToolbarGroup$1 as ToolbarGroup, type ToolbarItem, type ToolbarItemPriority, type ToolbarProps, ToolbarSeparator, UnsavedIndicator, type UnsavedIndicatorProps, type UseLoadingOptions, type UseLoadingReturn, type UseResponsiveToolbarOptions, type UseResponsiveToolbarReturn, type UseTextContextMenuOptions, type UseTextContextMenuReturn, type UseUnsavedChangesOptions, type UseUnsavedChangesReturn, ZoomControl, type ZoomControlProps, addColumn, addRow, calculateFitDimensions, clampTableConfig, createChangeTracker, createDefaultTableConfig, createErrorResponse, createMockResponse, createTableContext, createToolbarItem, createToolbarItems, dataUrlToBlob, delay, deleteColumn, deleteRow, formatFileSize, formatTableDimensions, getActionShortcut, getAllActions, getAllPositions as getAllIndicatorPositions, getAllVariants as getAllIndicatorVariants, getAllLoadingSizes, getAllLoadingVariants, getCellAt, getColumnCount, getDefaultActions, getDefaultTextContextMenuItems, getImageAcceptString, getImageDimensions, getLoadingVariantLabel, getMarginInUnits, getRecommendedPriority, getRulerDimensions, getSupportedImageExtensions, getSymbolCategories, getSymbolInfo as getSymbolUnicodeInfo, getSymbolsByCategory, getTablePresets, getTableSplitCellDialogConfig, getTextActionLabel, getTextActionShortcut, getVariantLabel, isActionAvailable, isTextActionAvailable, isValidImageFile, isValidTableConfig, mergeCells, parseMarginFromUnits, positionToMargin, searchSymbols, splitCell, splitTableCell, symbolFromCodePoint, useContextMenu, useInsertImageDialog, useInsertSymbolDialog, useInsertTableDialog, useLoading, useLoadingOperations, useResponsePreview, useResponsiveToolbar, useTextContextMenu, useUnsavedChanges }; |
+40
-2
@@ -25,5 +25,5 @@ /** | ||
| import { TranslationKey } from '@eigenpal/docx-editor-i18n'; | ||
| export { a as PrintButton, b as PrintButtonProps, P as PrintOptions, c as PrintStyles, f as formatPrintPageRange, g as getDefaultPrintOptions, i as isPrintSupported, o as openPrintWindow, p as parsePageRange, t as triggerPrint } from './PrintPreview-DEhwRBC_.js'; | ||
| export { K as DialogKeyboardShortcut, F as FindReplaceDialog, a as FindReplaceDialogProps, H as HyperlinkData, b as HyperlinkDialog, c as HyperlinkDialogProps, d as KeyboardShortcutsDialog, e as KeyboardShortcutsDialogProps, P as PasteOption, f as PasteSpecialDialog, g as PasteSpecialDialogProps, S as ShortcutCategory, U as UseKeyboardShortcutsDialogOptions, h as UseKeyboardShortcutsDialogReturn, i as UsePasteSpecialOptions, j as UsePasteSpecialReturn, k as formatShortcutKeys, l as getAllCategories, m as getAllPasteOptions, n as getCategoryLabel, o as getCommonShortcuts, p as getDefaultPasteOption, q as getDefaultShortcuts, r as getPasteOption, s as getShortcutsByCategory, t as isPasteSpecialShortcut, u as useHyperlinkDialog, v as useKeyboardShortcutsDialog, w as usePasteSpecial } from './KeyboardShortcutsDialog-B-h3NAat.js'; | ||
| export { FindMatch, FindOptions, FindResult, HighlightOptions, createDefaultFindOptions, createSearchPattern, escapeRegexString, findAllMatches, findInDocument, findInParagraph, getDefaultHighlightOptions, getMatchCountText, isEmptySearch, replaceAllInContent, replaceFirstInContent, scrollToMatch } from '@eigenpal/docx-editor-core/utils/findReplace'; | ||
| export { PrintOptions, formatPageRange as formatPrintPageRange, getDefaultPrintOptions, isPrintSupported, openPrintWindow, parsePageRange, triggerPrint } from '@eigenpal/docx-editor-core'; | ||
| import '@eigenpal/docx-editor-core/utils'; | ||
@@ -55,2 +55,40 @@ | ||
| /** | ||
| * Print Utilities | ||
| * | ||
| * Provides print functionality with: | ||
| * - Print button component for toolbar | ||
| * - Print-specific CSS styles | ||
| * - Browser print dialog trigger | ||
| * - Page range utilities | ||
| */ | ||
| /** | ||
| * PrintButton props | ||
| */ | ||
| interface PrintButtonProps { | ||
| /** Callback when print is triggered */ | ||
| onPrint: () => void; | ||
| /** Whether the button is disabled */ | ||
| disabled?: boolean; | ||
| /** Button label */ | ||
| label?: string; | ||
| /** Additional CSS class */ | ||
| className?: string; | ||
| /** Additional inline styles */ | ||
| style?: CSSProperties; | ||
| /** Show icon */ | ||
| showIcon?: boolean; | ||
| /** Compact mode */ | ||
| compact?: boolean; | ||
| } | ||
| /** | ||
| * PrintButton - Standalone print button for toolbar | ||
| */ | ||
| declare function PrintButton({ onPrint, disabled, label: labelProp, className, style, showIcon, compact, }: PrintButtonProps): React__default.ReactElement; | ||
| /** | ||
| * PrintStyles - Injects print-specific CSS | ||
| */ | ||
| declare function PrintStyles(): React__default.ReactElement; | ||
| /** | ||
| * List Buttons Component | ||
@@ -1656,2 +1694,2 @@ * | ||
| export { AlignmentButtons, type AlignmentButtonsProps, ColorPicker, type ColorPickerMode, type ColorPickerProps, ContextMenu, type ContextMenuProps, type DocumentNameProps, EditorToolbar, type EditorToolbarProps, FontPicker, type FontPickerProps, FontSizePicker, type FontSizePickerProps, HorizontalRuler, type HorizontalRulerProps, type ImageData, type IndicatorPosition, type IndicatorVariant, InsertImageDialog, type InsertImageDialogProps, InsertSymbolDialog, type InsertSymbolDialogProps, InsertTableDialog, type InsertTableDialogProps, type LineSpacingOption, LineSpacingPicker, type LineSpacingPickerProps, ListButtons, type ListButtonsProps, LoadingIndicator, type LoadingIndicatorProps, type LoadingOperation, type LoadingSize, type LoadingVariant, type LogoProps, ResponsePreview, type ResponsePreviewProps, type ResponsePreviewState, ResponsiveToolbar, ToolbarGroup as ResponsiveToolbarGroup, type ToolbarGroupProps as ResponsiveToolbarGroupProps, type ResponsiveToolbarProps, SYMBOL_CATEGORIES, type StyleOption, StylePicker, type StylePickerProps, type SymbolCategory, TableAction, TableBorderColorPicker, type TableBorderColorPickerProps, TableBorderPicker, type TableBorderPickerProps, TableBorderWidthPicker, type TableBorderWidthPickerProps, TableCellFillPicker, type TableCellFillPickerProps, type TableConfig, TableContext, TableInsertButtons, type TableInsertButtonsProps, TableMergeButton, type TableMergeButtonProps, TableMoreDropdown, type TableMoreDropdownProps, TableSelection, TableSplitConfig, type TextContextAction, TextContextMenu, type TextContextMenuItem, type TextContextMenuProps, type TitleBarProps, type TitleBarRightProps, Toolbar, ToolbarButton, ToolbarGroup$1 as ToolbarGroup, type ToolbarItem, type ToolbarItemPriority, type ToolbarProps, ToolbarSeparator, UnsavedIndicator, type UnsavedIndicatorProps, type UseLoadingOptions, type UseLoadingReturn, type UseResponsiveToolbarOptions, type UseResponsiveToolbarReturn, type UseTextContextMenuOptions, type UseTextContextMenuReturn, type UseUnsavedChangesOptions, type UseUnsavedChangesReturn, ZoomControl, type ZoomControlProps, addColumn, addRow, calculateFitDimensions, clampTableConfig, createChangeTracker, createDefaultTableConfig, createErrorResponse, createMockResponse, createTableContext, createToolbarItem, createToolbarItems, dataUrlToBlob, delay, deleteColumn, deleteRow, formatFileSize, formatTableDimensions, getActionShortcut, getAllActions, getAllPositions as getAllIndicatorPositions, getAllVariants as getAllIndicatorVariants, getAllLoadingSizes, getAllLoadingVariants, getCellAt, getColumnCount, getDefaultActions, getDefaultTextContextMenuItems, getImageAcceptString, getImageDimensions, getLoadingVariantLabel, getMarginInUnits, getRecommendedPriority, getRulerDimensions, getSupportedImageExtensions, getSymbolCategories, getSymbolInfo as getSymbolUnicodeInfo, getSymbolsByCategory, getTablePresets, getTableSplitCellDialogConfig, getTextActionLabel, getTextActionShortcut, getVariantLabel, isActionAvailable, isTextActionAvailable, isValidImageFile, isValidTableConfig, mergeCells, parseMarginFromUnits, positionToMargin, searchSymbols, splitCell, splitTableCell, symbolFromCodePoint, useContextMenu, useInsertImageDialog, useInsertSymbolDialog, useInsertTableDialog, useLoading, useLoadingOperations, useResponsePreview, useResponsiveToolbar, useTextContextMenu, useUnsavedChanges }; | ||
| export { AlignmentButtons, type AlignmentButtonsProps, ColorPicker, type ColorPickerMode, type ColorPickerProps, ContextMenu, type ContextMenuProps, type DocumentNameProps, EditorToolbar, type EditorToolbarProps, FontPicker, type FontPickerProps, FontSizePicker, type FontSizePickerProps, HorizontalRuler, type HorizontalRulerProps, type ImageData, type IndicatorPosition, type IndicatorVariant, InsertImageDialog, type InsertImageDialogProps, InsertSymbolDialog, type InsertSymbolDialogProps, InsertTableDialog, type InsertTableDialogProps, type LineSpacingOption, LineSpacingPicker, type LineSpacingPickerProps, ListButtons, type ListButtonsProps, LoadingIndicator, type LoadingIndicatorProps, type LoadingOperation, type LoadingSize, type LoadingVariant, type LogoProps, PrintButton, type PrintButtonProps, PrintStyles, ResponsePreview, type ResponsePreviewProps, type ResponsePreviewState, ResponsiveToolbar, ToolbarGroup as ResponsiveToolbarGroup, type ToolbarGroupProps as ResponsiveToolbarGroupProps, type ResponsiveToolbarProps, SYMBOL_CATEGORIES, type StyleOption, StylePicker, type StylePickerProps, type SymbolCategory, TableAction, TableBorderColorPicker, type TableBorderColorPickerProps, TableBorderPicker, type TableBorderPickerProps, TableBorderWidthPicker, type TableBorderWidthPickerProps, TableCellFillPicker, type TableCellFillPickerProps, type TableConfig, TableContext, TableInsertButtons, type TableInsertButtonsProps, TableMergeButton, type TableMergeButtonProps, TableMoreDropdown, type TableMoreDropdownProps, TableSelection, TableSplitConfig, type TextContextAction, TextContextMenu, type TextContextMenuItem, type TextContextMenuProps, type TitleBarProps, type TitleBarRightProps, Toolbar, ToolbarButton, ToolbarGroup$1 as ToolbarGroup, type ToolbarItem, type ToolbarItemPriority, type ToolbarProps, ToolbarSeparator, UnsavedIndicator, type UnsavedIndicatorProps, type UseLoadingOptions, type UseLoadingReturn, type UseResponsiveToolbarOptions, type UseResponsiveToolbarReturn, type UseTextContextMenuOptions, type UseTextContextMenuReturn, type UseUnsavedChangesOptions, type UseUnsavedChangesReturn, ZoomControl, type ZoomControlProps, addColumn, addRow, calculateFitDimensions, clampTableConfig, createChangeTracker, createDefaultTableConfig, createErrorResponse, createMockResponse, createTableContext, createToolbarItem, createToolbarItems, dataUrlToBlob, delay, deleteColumn, deleteRow, formatFileSize, formatTableDimensions, getActionShortcut, getAllActions, getAllPositions as getAllIndicatorPositions, getAllVariants as getAllIndicatorVariants, getAllLoadingSizes, getAllLoadingVariants, getCellAt, getColumnCount, getDefaultActions, getDefaultTextContextMenuItems, getImageAcceptString, getImageDimensions, getLoadingVariantLabel, getMarginInUnits, getRecommendedPriority, getRulerDimensions, getSupportedImageExtensions, getSymbolCategories, getSymbolInfo as getSymbolUnicodeInfo, getSymbolsByCategory, getTablePresets, getTableSplitCellDialogConfig, getTextActionLabel, getTextActionShortcut, getVariantLabel, isActionAvailable, isTextActionAvailable, isValidImageFile, isValidTableConfig, mergeCells, parseMarginFromUnits, positionToMargin, searchSymbols, splitCell, splitTableCell, symbolFromCodePoint, useContextMenu, useInsertImageDialog, useInsertSymbolDialog, useInsertTableDialog, useLoading, useLoadingOperations, useResponsePreview, useResponsiveToolbar, useTextContextMenu, useUnsavedChanges }; |
+4
-4
| { | ||
| "name": "@eigenpal/docx-editor-react", | ||
| "version": "1.8.3", | ||
| "version": "1.9.0", | ||
| "description": "React DOCX editor adapter for @eigenpal/docx-editor-core.", | ||
@@ -95,5 +95,5 @@ "main": "./dist/index.js", | ||
| "dependencies": { | ||
| "@eigenpal/docx-editor-agents": "^1.8.3", | ||
| "@eigenpal/docx-editor-core": "^1.8.3", | ||
| "@eigenpal/docx-editor-i18n": "^1.8.3", | ||
| "@eigenpal/docx-editor-agents": "^1.9.0", | ||
| "@eigenpal/docx-editor-core": "^1.9.0", | ||
| "@eigenpal/docx-editor-i18n": "^1.9.0", | ||
| "@radix-ui/react-select": "^2.2.6", | ||
@@ -100,0 +100,0 @@ "clsx": "^2.1.0", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
| import React__default, { CSSProperties } from 'react'; | ||
| /** | ||
| * Print Utilities | ||
| * | ||
| * Provides print functionality with: | ||
| * - Print button component for toolbar | ||
| * - Print-specific CSS styles | ||
| * - Browser print dialog trigger | ||
| * - Page range utilities | ||
| */ | ||
| /** | ||
| * Print options | ||
| */ | ||
| interface PrintOptions { | ||
| /** Whether to include headers */ | ||
| includeHeaders?: boolean; | ||
| /** Whether to include footers */ | ||
| includeFooters?: boolean; | ||
| /** Whether to include page numbers */ | ||
| includePageNumbers?: boolean; | ||
| /** Page range to print (null = all) */ | ||
| pageRange?: { | ||
| start: number; | ||
| end: number; | ||
| } | null; | ||
| /** Scale factor for printing (1.0 = 100%) */ | ||
| scale?: number; | ||
| /** Whether to show background colors */ | ||
| printBackground?: boolean; | ||
| /** Margins mode */ | ||
| margins?: 'default' | 'none' | 'minimum'; | ||
| } | ||
| /** | ||
| * PrintButton props | ||
| */ | ||
| interface PrintButtonProps { | ||
| /** Callback when print is triggered */ | ||
| onPrint: () => void; | ||
| /** Whether the button is disabled */ | ||
| disabled?: boolean; | ||
| /** Button label */ | ||
| label?: string; | ||
| /** Additional CSS class */ | ||
| className?: string; | ||
| /** Additional inline styles */ | ||
| style?: CSSProperties; | ||
| /** Show icon */ | ||
| showIcon?: boolean; | ||
| /** Compact mode */ | ||
| compact?: boolean; | ||
| } | ||
| /** | ||
| * PrintButton - Standalone print button for toolbar | ||
| */ | ||
| declare function PrintButton({ onPrint, disabled, label: labelProp, className, style, showIcon, compact, }: PrintButtonProps): React__default.ReactElement; | ||
| /** | ||
| * PrintStyles - Injects print-specific CSS | ||
| */ | ||
| declare function PrintStyles(): React__default.ReactElement; | ||
| /** | ||
| * Trigger browser print dialog for the current document | ||
| */ | ||
| declare function triggerPrint(): void; | ||
| /** | ||
| * Create print-optimized document view in a new window | ||
| */ | ||
| declare function openPrintWindow(title: string | undefined, content: string): Window | null; | ||
| /** | ||
| * Get default print options | ||
| */ | ||
| declare function getDefaultPrintOptions(): PrintOptions; | ||
| /** | ||
| * Create page range from string (e.g., "1-5", "3", "1,3,5") | ||
| */ | ||
| declare function parsePageRange(input: string, maxPages: number): { | ||
| start: number; | ||
| end: number; | ||
| } | null; | ||
| /** | ||
| * Format page range for display | ||
| */ | ||
| declare function formatPageRange(range: { | ||
| start: number; | ||
| end: number; | ||
| } | null, totalPages: number): string; | ||
| /** | ||
| * Check if browser supports good print functionality | ||
| */ | ||
| declare function isPrintSupported(): boolean; | ||
| export { type PrintOptions as P, PrintButton as a, type PrintButtonProps as b, PrintStyles as c, formatPageRange as f, getDefaultPrintOptions as g, isPrintSupported as i, openPrintWindow as o, parsePageRange as p, triggerPrint as t }; |
| import React__default, { CSSProperties } from 'react'; | ||
| /** | ||
| * Print Utilities | ||
| * | ||
| * Provides print functionality with: | ||
| * - Print button component for toolbar | ||
| * - Print-specific CSS styles | ||
| * - Browser print dialog trigger | ||
| * - Page range utilities | ||
| */ | ||
| /** | ||
| * Print options | ||
| */ | ||
| interface PrintOptions { | ||
| /** Whether to include headers */ | ||
| includeHeaders?: boolean; | ||
| /** Whether to include footers */ | ||
| includeFooters?: boolean; | ||
| /** Whether to include page numbers */ | ||
| includePageNumbers?: boolean; | ||
| /** Page range to print (null = all) */ | ||
| pageRange?: { | ||
| start: number; | ||
| end: number; | ||
| } | null; | ||
| /** Scale factor for printing (1.0 = 100%) */ | ||
| scale?: number; | ||
| /** Whether to show background colors */ | ||
| printBackground?: boolean; | ||
| /** Margins mode */ | ||
| margins?: 'default' | 'none' | 'minimum'; | ||
| } | ||
| /** | ||
| * PrintButton props | ||
| */ | ||
| interface PrintButtonProps { | ||
| /** Callback when print is triggered */ | ||
| onPrint: () => void; | ||
| /** Whether the button is disabled */ | ||
| disabled?: boolean; | ||
| /** Button label */ | ||
| label?: string; | ||
| /** Additional CSS class */ | ||
| className?: string; | ||
| /** Additional inline styles */ | ||
| style?: CSSProperties; | ||
| /** Show icon */ | ||
| showIcon?: boolean; | ||
| /** Compact mode */ | ||
| compact?: boolean; | ||
| } | ||
| /** | ||
| * PrintButton - Standalone print button for toolbar | ||
| */ | ||
| declare function PrintButton({ onPrint, disabled, label: labelProp, className, style, showIcon, compact, }: PrintButtonProps): React__default.ReactElement; | ||
| /** | ||
| * PrintStyles - Injects print-specific CSS | ||
| */ | ||
| declare function PrintStyles(): React__default.ReactElement; | ||
| /** | ||
| * Trigger browser print dialog for the current document | ||
| */ | ||
| declare function triggerPrint(): void; | ||
| /** | ||
| * Create print-optimized document view in a new window | ||
| */ | ||
| declare function openPrintWindow(title: string | undefined, content: string): Window | null; | ||
| /** | ||
| * Get default print options | ||
| */ | ||
| declare function getDefaultPrintOptions(): PrintOptions; | ||
| /** | ||
| * Create page range from string (e.g., "1-5", "3", "1,3,5") | ||
| */ | ||
| declare function parsePageRange(input: string, maxPages: number): { | ||
| start: number; | ||
| end: number; | ||
| } | null; | ||
| /** | ||
| * Format page range for display | ||
| */ | ||
| declare function formatPageRange(range: { | ||
| start: number; | ||
| end: number; | ||
| } | null, totalPages: number): string; | ||
| /** | ||
| * Check if browser supports good print functionality | ||
| */ | ||
| declare function isPrintSupported(): boolean; | ||
| export { type PrintOptions as P, PrintButton as a, type PrintButtonProps as b, PrintStyles as c, formatPageRange as f, getDefaultPrintOptions as g, isPrintSupported as i, openPrintWindow as o, parsePageRange as p, triggerPrint as t }; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
1410734
-0.35%78
-2.5%7524
-1.3%