@inj-src/docx-preview 0.4.1 → 0.4.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.
@@ -0,0 +1,33 @@
1
+ /*
2
+ * @license
3
+ * docx-preview <https://github.com/VolodymyrBaydalka/docxjs>
4
+ * Released under Apache License 2.0 <https://github.com/VolodymyrBaydalka/docxjs/blob/master/LICENSE>
5
+ * Copyright Volodymyr Baydalka
6
+ */
7
+ export interface Options {
8
+ inWrapper: boolean;
9
+ hideWrapperOnPrint: boolean;
10
+ ignoreWidth: boolean;
11
+ ignoreHeight: boolean;
12
+ ignoreFonts: boolean;
13
+ breakPages: boolean;
14
+ debug: boolean;
15
+ experimental: boolean;
16
+ className: string;
17
+ trimXmlDeclaration: boolean;
18
+ renderHeaders: boolean;
19
+ renderFooters: boolean;
20
+ renderFootnotes: boolean;
21
+ renderEndnotes: boolean;
22
+ ignoreLastRenderedPageBreak: boolean;
23
+ useBase64URL: boolean;
24
+ renderChanges: boolean;
25
+ renderComments: boolean;
26
+ renderAltChunks: boolean;
27
+ }
28
+ //stub
29
+ export type WordDocument = any;
30
+ export declare const defaultOptions: Options;
31
+ export declare function parseAsync(data: Blob | any, userOptions?: Partial<Options>): Promise<WordDocument>;
32
+ export declare function renderDocument(document: WordDocument, bodyContainer: HTMLElement, styleContainer?: HTMLElement, userOptions?: Partial<Options>): Promise<any>;
33
+ export declare function renderAsync(data: Blob | any, bodyContainer: HTMLElement, styleContainer?: HTMLElement, userOptions?: Partial<Options>): Promise<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inj-src/docx-preview",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Maintained fork of docx-preview for rendering DOCX documents in HTML.",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [