@windoc/core 0.3.24 → 0.3.26

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/index.d.mts CHANGED
@@ -1331,6 +1331,12 @@ interface IEditorResult {
1331
1331
  data: IEditorData;
1332
1332
  options: IEditorOption;
1333
1333
  }
1334
+ interface IExportDocxOption {
1335
+ fileName?: string;
1336
+ }
1337
+ interface IExportPdfOption {
1338
+ fileName?: string;
1339
+ }
1334
1340
  interface IEditorHTML {
1335
1341
  header: string;
1336
1342
  main: string;
@@ -2746,6 +2752,8 @@ declare class CommandAdapt {
2746
2752
  getSearchNavigateInfo(): null | INavigateInfo;
2747
2753
  replace(payload: string, option?: IReplaceOption): void;
2748
2754
  print(): Promise<void>;
2755
+ exportDocx(payload?: IExportDocxOption): Promise<void>;
2756
+ exportPdf(payload?: IExportPdfOption): Promise<void>;
2749
2757
  replaceImageElement(payload: string): void;
2750
2758
  saveAsImageElement(): void;
2751
2759
  setImageCrop(crop: IImageCrop): void;
@@ -2897,6 +2905,8 @@ declare class Command {
2897
2905
  executeSearchNavigateNext: CommandAdapt['searchNavigateNext'];
2898
2906
  executeReplace: CommandAdapt['replace'];
2899
2907
  executePrint: CommandAdapt['print'];
2908
+ executeExportDocx: CommandAdapt['exportDocx'];
2909
+ executeExportPdf: CommandAdapt['exportPdf'];
2900
2910
  executeReplaceImageElement: CommandAdapt['replaceImageElement'];
2901
2911
  executeSaveAsImageElement: CommandAdapt['saveAsImageElement'];
2902
2912
  executeSetImageCrop: CommandAdapt['setImageCrop'];
@@ -3334,4 +3344,4 @@ declare class Editor {
3334
3344
  constructor(container: HTMLDivElement, data: IEditorData | IElement[], options?: IEditorOption);
3335
3345
  }
3336
3346
 
3337
- export { AreaMode, BackgroundRepeat, BackgroundSize, BlockType, Command, ControlComponent, ControlIndentation, ControlState, ControlType, Dialog, EDITOR_CLIPBOARD, EDITOR_COMPONENT, Editor, EditorComponent, EditorMode, EditorZone, ElementType, FlexDirection, type IBadge, type IBlock, type ICatalog, type ICatalogItem, type IContextMenuContext, type IEditorData, type IEditorOption, type IEditorResult, type IElement, type IGetElementListByHTMLOption, type ILang, INTERNAL_CONTEXT_MENU_KEY, INTERNAL_SHORTCUT_KEY, type INavigateInfo, type IRange, type IRangeStyle, type IRegisterContextMenu, type IWatermark, ImageDisplay, KeyMap, LETTER_CLASS, LineNumberType, ListStyle, ListType, LocationPosition, MaxHeightRatio, NumberType, OlPreset, PageMode, PaperDirection, RenderMode, RowFlex, Signature, TableBorder, TdBorder, TdSlash, TextDecorationStyle, TitleLevel, UlPreset, VerticalAlign, WatermarkType, WordBreak, cm, cmToPx, createDomFromElementList, Editor as default, getElementListByHTML, getTextFromElementList, inch, mm, pxToCm, splitText };
3347
+ export { AreaMode, BackgroundRepeat, BackgroundSize, BlockType, Command, ControlComponent, ControlIndentation, ControlState, ControlType, Dialog, EDITOR_CLIPBOARD, EDITOR_COMPONENT, Editor, EditorComponent, EditorMode, EditorZone, ElementType, FlexDirection, type IBadge, type IBlock, type ICatalog, type ICatalogItem, type IContextMenuContext, type IEditorData, type IEditorOption, type IEditorResult, type IElement, type IExportDocxOption, type IExportPdfOption, type IGetElementListByHTMLOption, type ILang, INTERNAL_CONTEXT_MENU_KEY, INTERNAL_SHORTCUT_KEY, type INavigateInfo, type IRange, type IRangeStyle, type IRegisterContextMenu, type IWatermark, ImageDisplay, KeyMap, LETTER_CLASS, LineNumberType, ListStyle, ListType, LocationPosition, MaxHeightRatio, NumberType, OlPreset, PageMode, PaperDirection, RenderMode, RowFlex, Signature, TableBorder, TdBorder, TdSlash, TextDecorationStyle, TitleLevel, UlPreset, VerticalAlign, WatermarkType, WordBreak, cm, cmToPx, createDomFromElementList, Editor as default, getElementListByHTML, getTextFromElementList, inch, mm, pxToCm, splitText };
package/dist/index.d.ts CHANGED
@@ -1331,6 +1331,12 @@ interface IEditorResult {
1331
1331
  data: IEditorData;
1332
1332
  options: IEditorOption;
1333
1333
  }
1334
+ interface IExportDocxOption {
1335
+ fileName?: string;
1336
+ }
1337
+ interface IExportPdfOption {
1338
+ fileName?: string;
1339
+ }
1334
1340
  interface IEditorHTML {
1335
1341
  header: string;
1336
1342
  main: string;
@@ -2746,6 +2752,8 @@ declare class CommandAdapt {
2746
2752
  getSearchNavigateInfo(): null | INavigateInfo;
2747
2753
  replace(payload: string, option?: IReplaceOption): void;
2748
2754
  print(): Promise<void>;
2755
+ exportDocx(payload?: IExportDocxOption): Promise<void>;
2756
+ exportPdf(payload?: IExportPdfOption): Promise<void>;
2749
2757
  replaceImageElement(payload: string): void;
2750
2758
  saveAsImageElement(): void;
2751
2759
  setImageCrop(crop: IImageCrop): void;
@@ -2897,6 +2905,8 @@ declare class Command {
2897
2905
  executeSearchNavigateNext: CommandAdapt['searchNavigateNext'];
2898
2906
  executeReplace: CommandAdapt['replace'];
2899
2907
  executePrint: CommandAdapt['print'];
2908
+ executeExportDocx: CommandAdapt['exportDocx'];
2909
+ executeExportPdf: CommandAdapt['exportPdf'];
2900
2910
  executeReplaceImageElement: CommandAdapt['replaceImageElement'];
2901
2911
  executeSaveAsImageElement: CommandAdapt['saveAsImageElement'];
2902
2912
  executeSetImageCrop: CommandAdapt['setImageCrop'];
@@ -3334,4 +3344,4 @@ declare class Editor {
3334
3344
  constructor(container: HTMLDivElement, data: IEditorData | IElement[], options?: IEditorOption);
3335
3345
  }
3336
3346
 
3337
- export { AreaMode, BackgroundRepeat, BackgroundSize, BlockType, Command, ControlComponent, ControlIndentation, ControlState, ControlType, Dialog, EDITOR_CLIPBOARD, EDITOR_COMPONENT, Editor, EditorComponent, EditorMode, EditorZone, ElementType, FlexDirection, type IBadge, type IBlock, type ICatalog, type ICatalogItem, type IContextMenuContext, type IEditorData, type IEditorOption, type IEditorResult, type IElement, type IGetElementListByHTMLOption, type ILang, INTERNAL_CONTEXT_MENU_KEY, INTERNAL_SHORTCUT_KEY, type INavigateInfo, type IRange, type IRangeStyle, type IRegisterContextMenu, type IWatermark, ImageDisplay, KeyMap, LETTER_CLASS, LineNumberType, ListStyle, ListType, LocationPosition, MaxHeightRatio, NumberType, OlPreset, PageMode, PaperDirection, RenderMode, RowFlex, Signature, TableBorder, TdBorder, TdSlash, TextDecorationStyle, TitleLevel, UlPreset, VerticalAlign, WatermarkType, WordBreak, cm, cmToPx, createDomFromElementList, Editor as default, getElementListByHTML, getTextFromElementList, inch, mm, pxToCm, splitText };
3347
+ export { AreaMode, BackgroundRepeat, BackgroundSize, BlockType, Command, ControlComponent, ControlIndentation, ControlState, ControlType, Dialog, EDITOR_CLIPBOARD, EDITOR_COMPONENT, Editor, EditorComponent, EditorMode, EditorZone, ElementType, FlexDirection, type IBadge, type IBlock, type ICatalog, type ICatalogItem, type IContextMenuContext, type IEditorData, type IEditorOption, type IEditorResult, type IElement, type IExportDocxOption, type IExportPdfOption, type IGetElementListByHTMLOption, type ILang, INTERNAL_CONTEXT_MENU_KEY, INTERNAL_SHORTCUT_KEY, type INavigateInfo, type IRange, type IRangeStyle, type IRegisterContextMenu, type IWatermark, ImageDisplay, KeyMap, LETTER_CLASS, LineNumberType, ListStyle, ListType, LocationPosition, MaxHeightRatio, NumberType, OlPreset, PageMode, PaperDirection, RenderMode, RowFlex, Signature, TableBorder, TdBorder, TdSlash, TextDecorationStyle, TitleLevel, UlPreset, VerticalAlign, WatermarkType, WordBreak, cm, cmToPx, createDomFromElementList, Editor as default, getElementListByHTML, getTextFromElementList, inch, mm, pxToCm, splitText };