@apollo-design/docx-preview 0.6.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,57 @@
1
+ export declare const defaultOptions: Options;
2
+
3
+ export declare interface FontDefinition {
4
+ name: string;
5
+ src: string;
6
+ weight?: string | number;
7
+ style?: string;
8
+ }
9
+
10
+ declare function h(elem: HElement | Node | string): Node;
11
+
12
+ declare type HElement = {
13
+ ns?: ns;
14
+ tagName: "#fragment" | "#comment" | string;
15
+ className?: string;
16
+ style?: string | Record<string, string>;
17
+ children?: (HElement | Node | string)[];
18
+ } & Record<string, any>;
19
+
20
+ declare enum ns {
21
+ html = "http://www.w3.org/1999/xhtml",
22
+ svg = "http://www.w3.org/2000/svg",
23
+ mathML = "http://www.w3.org/1998/Math/MathML"
24
+ }
25
+
26
+ export declare interface Options {
27
+ inWrapper: boolean;
28
+ hideWrapperOnPrint: boolean;
29
+ ignoreWidth: boolean;
30
+ ignoreHeight: boolean;
31
+ ignoreFonts: boolean;
32
+ breakPages: boolean;
33
+ paginate: boolean;
34
+ fonts?: FontDefinition[];
35
+ debug: boolean;
36
+ experimental: boolean;
37
+ className: string;
38
+ trimXmlDeclaration: boolean;
39
+ renderHeaders: boolean;
40
+ renderFooters: boolean;
41
+ renderFootnotes: boolean;
42
+ renderEndnotes: boolean;
43
+ ignoreLastRenderedPageBreak: boolean;
44
+ useBase64URL: boolean;
45
+ renderChanges: boolean;
46
+ renderComments: boolean;
47
+ renderAltChunks: boolean;
48
+ h: typeof h;
49
+ }
50
+
51
+ export declare function parseAsync(data: Blob | any, userOptions?: Partial<Options>): Promise<any>;
52
+
53
+ export declare function renderAsync(data: Blob | any, bodyContainer: HTMLElement, styleContainer?: HTMLElement, userOptions?: Partial<Options>): Promise<any>;
54
+
55
+ export declare function renderDocument(document: any, userOptions?: Partial<Options>): Promise<any>;
56
+
57
+ export { }