docx-vue-viewer 0.1.0 → 0.3.0

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +14 -7
  2. package/dist/index.js +5323 -5014
  3. package/package.json +4 -4
package/dist/index.d.ts CHANGED
@@ -666,7 +666,18 @@ interface FileCommandDetail {
666
666
  fileName?: string;
667
667
  }
668
668
 
669
- type BackstagePage = 'info' | 'new' | 'open' | 'saveAs' | 'print' | 'export' | 'options' | 'customize';
669
+ interface BackstageOptions {
670
+ locale: string;
671
+ theme: string;
672
+ author: string;
673
+ spellCheck?: boolean;
674
+ showRuler?: boolean;
675
+ showMarks?: boolean;
676
+ showThumbnails?: boolean;
677
+ }
678
+ type BackstageOptionKey = keyof BackstageOptions;
679
+
680
+ type BackstagePage = 'home' | 'info' | 'new' | 'open' | 'saveAs' | 'print' | 'export' | 'options' | 'customize';
670
681
  interface Backstage {
671
682
  element: HTMLElement;
672
683
  open(page?: BackstagePage): void;
@@ -713,12 +724,8 @@ interface ChromeHost {
713
724
  /** Mirrors the title bar's save state into `element.dirty`. */
714
725
  saveStateChanged?(state: SaveState): void;
715
726
  /** Editor options shown on File > Options. */
716
- options(): {
717
- locale: string;
718
- theme: string;
719
- author: string;
720
- };
721
- setOption(key: 'locale' | 'theme' | 'author', value: string): void;
727
+ options(): BackstageOptions;
728
+ setOption(key: BackstageOptionKey, value: string): void;
722
729
  hiddenActions(): readonly string[];
723
730
  setHiddenActions(ids: string[]): void;
724
731
  }