docx-wasm 0.4.13 → 0.4.14-beta2
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/node/border.d.ts +1 -1
- package/dist/node/break.d.ts +1 -1
- package/dist/node/builder.d.ts +1 -1
- package/dist/node/hyperlink.d.ts +1 -1
- package/dist/node/json/bindings/Bold.d.ts +1 -1
- package/dist/node/json/bindings/BoldCs.d.ts +1 -1
- package/dist/node/json/bindings/BorderType.d.ts +1 -1
- package/dist/node/json/bindings/BreakType.d.ts +1 -1
- package/dist/node/json/bindings/Caps.d.ts +1 -1
- package/dist/node/json/bindings/CharacterSpacing.d.ts +1 -1
- package/dist/node/json/bindings/Color.d.ts +1 -1
- package/dist/node/json/bindings/DeleteChild.d.ts +1 -1
- package/dist/node/json/bindings/DrawingPosition.d.ts +1 -1
- package/dist/node/json/bindings/DrawingPositionType.d.ts +1 -1
- package/dist/node/json/bindings/FieldCharType.d.ts +1 -1
- package/dist/node/json/bindings/Highlight.d.ts +1 -1
- package/dist/node/json/bindings/HyperlinkType.d.ts +1 -1
- package/dist/node/json/bindings/InsertChild.d.ts +1 -1
- package/dist/node/json/bindings/InstrText.d.ts +1 -1
- package/dist/node/json/bindings/Italic.d.ts +1 -1
- package/dist/node/json/bindings/ItalicCs.d.ts +1 -1
- package/dist/node/json/bindings/PicAlign.d.ts +1 -1
- package/dist/node/json/bindings/RelativeFromHType.d.ts +1 -1
- package/dist/node/json/bindings/RelativeFromVType.d.ts +1 -1
- package/dist/node/json/bindings/RunStyle.d.ts +1 -1
- package/dist/node/json/bindings/SpecVanish.d.ts +1 -1
- package/dist/node/json/bindings/Strike.d.ts +1 -1
- package/dist/node/json/bindings/StyleWithLevel.d.ts +1 -1
- package/dist/node/json/bindings/Sz.d.ts +1 -1
- package/dist/node/json/bindings/SzCs.d.ts +1 -1
- package/dist/node/json/bindings/TabLeaderType.d.ts +1 -1
- package/dist/node/json/bindings/TabLeaderType.js +0 -1
- package/dist/node/json/bindings/TabLeaderType.js.map +1 -1
- package/dist/node/json/bindings/TabValueType.d.ts +1 -1
- package/dist/node/json/bindings/TabValueType.js +0 -1
- package/dist/node/json/bindings/TabValueType.js.map +1 -1
- package/dist/node/json/bindings/TableCellBorderPosition.d.ts +1 -1
- package/dist/node/json/bindings/TextAlignmentType.d.ts +1 -1
- package/dist/node/json/bindings/Underline.d.ts +1 -1
- package/dist/node/json/bindings/Vanish.d.ts +1 -1
- package/dist/node/json/bindings/VertAlign.d.ts +1 -1
- package/dist/node/json/border.d.ts +1 -1
- package/dist/node/json/comment.d.ts +4 -4
- package/dist/node/json/document.d.ts +2 -2
- package/dist/node/json/drawing.d.ts +8 -8
- package/dist/node/json/footer.d.ts +2 -2
- package/dist/node/json/header.d.ts +2 -2
- package/dist/node/json/indent.d.ts +1 -1
- package/dist/node/json/index.d.ts +2 -2
- package/dist/node/json/line_spacing.d.ts +1 -1
- package/dist/node/json/numbering.d.ts +5 -5
- package/dist/node/json/paragraph.d.ts +15 -15
- package/dist/node/json/run.d.ts +13 -13
- package/dist/node/json/section-property.d.ts +4 -4
- package/dist/node/json/shading.d.ts +1 -1
- package/dist/node/json/shape.d.ts +1 -1
- package/dist/node/json/structured-data-tag.d.ts +2 -2
- package/dist/node/json/styles.d.ts +2 -2
- package/dist/node/json/table.d.ts +11 -11
- package/dist/node/json/textbox-content.d.ts +2 -2
- package/dist/node/json/web-settings.d.ts +2 -2
- package/dist/node/level.d.ts +1 -1
- package/dist/node/page-num.d.ts +1 -1
- package/dist/node/paragraph-property.d.ts +6 -4
- package/dist/node/paragraph-property.js +60 -0
- package/dist/node/paragraph-property.js.map +1 -1
- package/dist/node/paragraph.d.ts +8 -1
- package/dist/node/paragraph.js +4 -0
- package/dist/node/paragraph.js.map +1 -1
- package/dist/node/pkg/docx_wasm.d.ts +288 -274
- package/dist/node/pkg/docx_wasm.js +217 -196
- package/dist/node/pkg/docx_wasm_bg.wasm +0 -0
- package/dist/node/pkg/docx_wasm_bg.wasm.d.ts +173 -171
- package/dist/node/run.d.ts +7 -7
- package/dist/node/section-property.d.ts +4 -4
- package/dist/node/settings.d.ts +2 -2
- package/dist/node/style.d.ts +1 -1
- package/dist/node/table-cell-border.d.ts +1 -1
- package/dist/node/table-cell-borders.d.ts +1 -1
- package/dist/node/table-cell.d.ts +4 -4
- package/dist/node/table-row.d.ts +1 -1
- package/dist/node/table.d.ts +3 -3
- package/dist/web/border.d.ts +1 -1
- package/dist/web/break.d.ts +1 -1
- package/dist/web/builder.d.ts +1 -1
- package/dist/web/hyperlink.d.ts +1 -1
- package/dist/web/json/bindings/Bold.d.ts +1 -1
- package/dist/web/json/bindings/BoldCs.d.ts +1 -1
- package/dist/web/json/bindings/BorderType.d.ts +1 -1
- package/dist/web/json/bindings/BreakType.d.ts +1 -1
- package/dist/web/json/bindings/Caps.d.ts +1 -1
- package/dist/web/json/bindings/CharacterSpacing.d.ts +1 -1
- package/dist/web/json/bindings/Color.d.ts +1 -1
- package/dist/web/json/bindings/DeleteChild.d.ts +1 -1
- package/dist/web/json/bindings/DrawingPosition.d.ts +1 -1
- package/dist/web/json/bindings/DrawingPositionType.d.ts +1 -1
- package/dist/web/json/bindings/FieldCharType.d.ts +1 -1
- package/dist/web/json/bindings/Highlight.d.ts +1 -1
- package/dist/web/json/bindings/HyperlinkType.d.ts +1 -1
- package/dist/web/json/bindings/InsertChild.d.ts +1 -1
- package/dist/web/json/bindings/InstrText.d.ts +1 -1
- package/dist/web/json/bindings/Italic.d.ts +1 -1
- package/dist/web/json/bindings/ItalicCs.d.ts +1 -1
- package/dist/web/json/bindings/PicAlign.d.ts +1 -1
- package/dist/web/json/bindings/RelativeFromHType.d.ts +1 -1
- package/dist/web/json/bindings/RelativeFromVType.d.ts +1 -1
- package/dist/web/json/bindings/RunStyle.d.ts +1 -1
- package/dist/web/json/bindings/SpecVanish.d.ts +1 -1
- package/dist/web/json/bindings/Strike.d.ts +1 -1
- package/dist/web/json/bindings/StyleWithLevel.d.ts +1 -1
- package/dist/web/json/bindings/Sz.d.ts +1 -1
- package/dist/web/json/bindings/SzCs.d.ts +1 -1
- package/dist/web/json/bindings/TabLeaderType.d.ts +1 -1
- package/dist/web/json/bindings/TabLeaderType.js +0 -1
- package/dist/web/json/bindings/TabLeaderType.js.map +1 -1
- package/dist/web/json/bindings/TabValueType.d.ts +1 -1
- package/dist/web/json/bindings/TabValueType.js +0 -1
- package/dist/web/json/bindings/TabValueType.js.map +1 -1
- package/dist/web/json/bindings/TableCellBorderPosition.d.ts +1 -1
- package/dist/web/json/bindings/TextAlignmentType.d.ts +1 -1
- package/dist/web/json/bindings/Underline.d.ts +1 -1
- package/dist/web/json/bindings/Vanish.d.ts +1 -1
- package/dist/web/json/bindings/VertAlign.d.ts +1 -1
- package/dist/web/json/border.d.ts +1 -1
- package/dist/web/json/comment.d.ts +4 -4
- package/dist/web/json/document.d.ts +2 -2
- package/dist/web/json/drawing.d.ts +8 -8
- package/dist/web/json/footer.d.ts +2 -2
- package/dist/web/json/header.d.ts +2 -2
- package/dist/web/json/indent.d.ts +1 -1
- package/dist/web/json/index.d.ts +2 -2
- package/dist/web/json/line_spacing.d.ts +1 -1
- package/dist/web/json/numbering.d.ts +5 -5
- package/dist/web/json/paragraph.d.ts +15 -15
- package/dist/web/json/run.d.ts +13 -13
- package/dist/web/json/section-property.d.ts +4 -4
- package/dist/web/json/shading.d.ts +1 -1
- package/dist/web/json/shape.d.ts +1 -1
- package/dist/web/json/structured-data-tag.d.ts +2 -2
- package/dist/web/json/styles.d.ts +2 -2
- package/dist/web/json/table.d.ts +11 -11
- package/dist/web/json/textbox-content.d.ts +2 -2
- package/dist/web/json/web-settings.d.ts +2 -2
- package/dist/web/level.d.ts +1 -1
- package/dist/web/page-num.d.ts +1 -1
- package/dist/web/paragraph-property.d.ts +6 -4
- package/dist/web/paragraph-property.js +60 -0
- package/dist/web/paragraph-property.js.map +1 -1
- package/dist/web/paragraph.d.ts +8 -1
- package/dist/web/paragraph.js +4 -0
- package/dist/web/paragraph.js.map +1 -1
- package/dist/web/pkg/docx_wasm.d.ts +288 -274
- package/dist/web/pkg/docx_wasm_bg.js +215 -194
- package/dist/web/pkg/docx_wasm_bg.wasm +0 -0
- package/dist/web/pkg/docx_wasm_bg.wasm.d.ts +173 -171
- package/dist/web/run.d.ts +7 -7
- package/dist/web/section-property.d.ts +4 -4
- package/dist/web/settings.d.ts +2 -2
- package/dist/web/style.d.ts +1 -1
- package/dist/web/table-cell-border.d.ts +1 -1
- package/dist/web/table-cell-borders.d.ts +1 -1
- package/dist/web/table-cell.d.ts +4 -4
- package/dist/web/table-row.d.ts +1 -1
- package/dist/web/table.d.ts +3 -3
- package/js/json/bindings/Tab.ts +0 -1
- package/js/json/bindings/TabLeaderType.ts +1 -2
- package/js/json/bindings/TabValueType.ts +0 -1
- package/js/paragraph-property.ts +63 -0
- package/js/paragraph.ts +13 -0
- package/package.json +1 -1
package/dist/node/border.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type BorderType = "nil" | "none" | "single" | "thick" | "double" | "dotted" | "dashed" | "dotDash" | "dotDotDash" | "triple" | "thinThickSmallGap" | "thickThinSmallGap" | "thinThickThinSmallGap" | "thinThickMediumGap" | "thickThinMediumGap" | "thinThickThinMediumGap" | "thinThickLargeGap" | "thickThinLargeGap" | "thinThickThinLargeGap" | "wave" | "doubleWave" | "dashSmallGap" | "dashDotStroked" | "threeDEmboss" | "threeDEngrave" | "outset" | "inset" | "apples" | "archedScallops" | "babyPacifier" | "babyRattle";
|
package/dist/node/break.d.ts
CHANGED
package/dist/node/builder.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ import { Comment } from "./comment";
|
|
|
2
2
|
import { Paragraph } from "./paragraph";
|
|
3
3
|
import { Table } from "./table";
|
|
4
4
|
import { Hyperlink } from "./hyperlink";
|
|
5
|
-
|
|
5
|
+
type Child = Paragraph | Table | Comment | Hyperlink;
|
|
6
6
|
export declare function build<T>(child: Child): T;
|
|
7
7
|
export {};
|
package/dist/node/hyperlink.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { Delete } from "./delete";
|
|
|
5
5
|
import { Comment } from "./comment";
|
|
6
6
|
import { CommentEnd } from "./comment-end";
|
|
7
7
|
import { ParagraphChild } from "./paragraph";
|
|
8
|
-
export
|
|
8
|
+
export type HyperlinkType = "anchor" | "external";
|
|
9
9
|
export declare class Hyperlink {
|
|
10
10
|
v: string;
|
|
11
11
|
type: HyperlinkType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Bold = boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type BoldCs = boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type BorderType = "nil" | "none" | "single" | "thick" | "double" | "dotted" | "dashed" | "dotDash" | "dotDotDash" | "triple" | "thinThickSmallGap" | "thickThinSmallGap" | "thinThickThinSmallGap" | "thinThickMediumGap" | "thickThinMediumGap" | "thinThickThinMediumGap" | "thinThickLargeGap" | "thickThinLargeGap" | "thinThickThinLargeGap" | "wave" | "doubleWave" | "dashSmallGap" | "dashDotStroked" | "threeDEmboss" | "threeDEngrave" | "outset" | "inset" | "apples" | "archedScallops" | "babyPacifier" | "babyRattle";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type BreakType = "Page" | "Column" | "TextWrapping" | "Unsupported";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Caps = boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type CharacterSpacing = number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Color = string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CommentRangeEnd } from "./CommentRangeEnd";
|
|
2
2
|
import type { CommentRangeStart } from "./CommentRangeStart";
|
|
3
3
|
import type { Run } from "./Run";
|
|
4
|
-
export
|
|
4
|
+
export type DeleteChild = {
|
|
5
5
|
"Run": Run;
|
|
6
6
|
} | {
|
|
7
7
|
"CommentStart": CommentRangeStart;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type DrawingPositionType = "anchor" | "inline";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type FieldCharType = "begin" | "separate" | "end" | "unsupported";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Highlight = string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type HyperlinkType = "anchor" | "external";
|
|
@@ -2,7 +2,7 @@ import type { CommentRangeEnd } from "./CommentRangeEnd";
|
|
|
2
2
|
import type { CommentRangeStart } from "./CommentRangeStart";
|
|
3
3
|
import type { Delete } from "./Delete";
|
|
4
4
|
import type { Run } from "./Run";
|
|
5
|
-
export
|
|
5
|
+
export type InsertChild = {
|
|
6
6
|
"Run": Run;
|
|
7
7
|
} | {
|
|
8
8
|
"Delete": Delete;
|
|
@@ -2,7 +2,7 @@ import type { InstrHyperlink } from "./InstrHyperlink";
|
|
|
2
2
|
import type { InstrPAGEREF } from "./InstrPAGEREF";
|
|
3
3
|
import type { InstrTC } from "./InstrTC";
|
|
4
4
|
import type { InstrToC } from "./InstrToC";
|
|
5
|
-
export
|
|
5
|
+
export type InstrText = {
|
|
6
6
|
"TOC": InstrToC;
|
|
7
7
|
} | {
|
|
8
8
|
"TC": InstrTC;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Italic = boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type ItalicCs = boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type PicAlign = "left" | "right" | "center" | "bottom" | "top";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type RelativeFromHType = "character" | "column" | "insideMargin" | "leftMargin" | "margin" | "outsizeMargin" | "page" | "rightMargin";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type RelativeFromVType = "bottomMargin" | "insideMargin" | "line" | "margin" | "outsizeMargin" | "page" | "paragraph" | "topMargin";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type RunStyle = string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type SpecVanish = boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Strike = boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type StyleWithLevel = [string, number];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Sz = number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type SzCs = number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type TabLeaderType = "dot" | "heavy" | "hyphen" | "middleDot" | "none" | "underscore";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabLeaderType.js","sourceRoot":"","sources":["../../../../js/json/bindings/TabLeaderType.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TabLeaderType.js","sourceRoot":"","sources":["../../../../js/json/bindings/TabLeaderType.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type TabValueType = "bar" | "center" | "clear" | "decimal" | "end" | "right" | "num" | "start" | "left";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabValueType.js","sourceRoot":"","sources":["../../../../js/json/bindings/TabValueType.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TabValueType.js","sourceRoot":"","sources":["../../../../js/json/bindings/TabValueType.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type TableCellBorderPosition = "left" | "right" | "top" | "bottom" | "insideH" | "insideV" | "tl2Br" | "tr2Bl";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type TextAlignmentType = "auto" | "baseline" | "bottom" | "center" | "top";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Underline = string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Vanish = boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type VertAlign = string;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { ParagraphJSON, TableJSON } from "../";
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type CommentChildJSON = ParagraphJSON | TableJSON;
|
|
3
|
+
export type CommentJSON = {
|
|
4
4
|
id: number;
|
|
5
5
|
author: string;
|
|
6
6
|
date: string;
|
|
7
7
|
children: CommentChildJSON[];
|
|
8
8
|
parentCommentId: number | null;
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type CommentRangeStartJSON = {
|
|
11
11
|
type: "commentRangeStart";
|
|
12
12
|
data: {
|
|
13
13
|
id: number;
|
|
14
14
|
comment: CommentJSON;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type CommentRangeEndJSON = {
|
|
18
18
|
type: "commentRangeEnd";
|
|
19
19
|
data: {
|
|
20
20
|
id: number;
|
|
@@ -3,8 +3,8 @@ import { TableJSON } from "./table";
|
|
|
3
3
|
import { SectionPropertyJSON } from "./section-property";
|
|
4
4
|
import { CommentRangeStartJSON, CommentRangeEndJSON } from "..";
|
|
5
5
|
import { StructuredTagJSON } from "./structured-data-tag";
|
|
6
|
-
export
|
|
7
|
-
export
|
|
6
|
+
export type DocumentChildJSON = ParagraphJSON | TableJSON | CommentRangeStartJSON | CommentRangeEndJSON | BookmarkStartJSON | BookmarkEndJSON | StructuredTagJSON;
|
|
7
|
+
export type DocumentJSON = {
|
|
8
8
|
children: DocumentChildJSON[];
|
|
9
9
|
sectionProperty: SectionPropertyJSON;
|
|
10
10
|
hasNumbering: boolean;
|
|
@@ -4,7 +4,7 @@ import { ParagraphJSON, TableJSON } from "..";
|
|
|
4
4
|
export interface Pic extends Omit<InnerPic, "image"> {
|
|
5
5
|
image: string;
|
|
6
6
|
}
|
|
7
|
-
export
|
|
7
|
+
export type DrawingJSON = {
|
|
8
8
|
type: "drawing";
|
|
9
9
|
data: {
|
|
10
10
|
type: "pic";
|
|
@@ -16,28 +16,28 @@ export declare type DrawingJSON = {
|
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
|
-
export
|
|
19
|
+
export type WpAnchorJSON = {
|
|
20
20
|
type: "anchor";
|
|
21
21
|
data: {
|
|
22
22
|
children: AGraphicJSON[];
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
|
-
export
|
|
25
|
+
export type AGraphicJSON = {
|
|
26
26
|
children: AGraphChildJSON[];
|
|
27
27
|
};
|
|
28
|
-
export
|
|
29
|
-
export
|
|
28
|
+
export type AGraphChildJSON = AGraphicDataJSON;
|
|
29
|
+
export type AGraphicDataJSON = {
|
|
30
30
|
dataType: "wpShape";
|
|
31
31
|
children: WpsShapeJSON[];
|
|
32
32
|
};
|
|
33
|
-
export
|
|
33
|
+
export type WpsShapeJSON = {
|
|
34
34
|
type: "shape";
|
|
35
35
|
data: {
|
|
36
36
|
children: WpsShapeChildJSON[];
|
|
37
37
|
};
|
|
38
38
|
};
|
|
39
|
-
export
|
|
40
|
-
export
|
|
39
|
+
export type WpsShapeChildJSON = WpsTextBoxJSON;
|
|
40
|
+
export type WpsTextBoxJSON = {
|
|
41
41
|
type: "textbox";
|
|
42
42
|
data: {
|
|
43
43
|
children: TextBoxContentJSON[];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ParagraphJSON } from "./paragraph";
|
|
2
2
|
import { StructuredTagJSON } from "./structured-data-tag";
|
|
3
3
|
import { TableJSON } from "./table";
|
|
4
|
-
export
|
|
4
|
+
export type FooterJSON = {
|
|
5
5
|
children: (ParagraphJSON | TableJSON | StructuredTagJSON)[];
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type FooterReferenceJSON = {
|
|
8
8
|
footerType: string;
|
|
9
9
|
id: string;
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ParagraphJSON } from "./paragraph";
|
|
2
2
|
import { StructuredTagJSON } from "./structured-data-tag";
|
|
3
3
|
import { TableJSON } from "./table";
|
|
4
|
-
export
|
|
4
|
+
export type HeaderJSON = {
|
|
5
5
|
children: (ParagraphJSON | TableJSON | StructuredTagJSON)[];
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type HeaderReferenceJSON = {
|
|
8
8
|
headerType: string;
|
|
9
9
|
id: string;
|
|
10
10
|
};
|
|
@@ -5,7 +5,7 @@ import { CommentJSON } from "./comment";
|
|
|
5
5
|
import { WebSettingsJSON } from "./web-settings";
|
|
6
6
|
import { Theme as ThemeJSON } from "./bindings/Theme";
|
|
7
7
|
import { CharacterSpacingValues } from "../settings";
|
|
8
|
-
export
|
|
8
|
+
export type DocxJSON = {
|
|
9
9
|
contentType: {
|
|
10
10
|
types: {
|
|
11
11
|
[k: string]: string;
|
|
@@ -49,7 +49,7 @@ export declare type DocxJSON = {
|
|
|
49
49
|
images: [string, string, string, string][];
|
|
50
50
|
hyperlinks: [string, string, string][];
|
|
51
51
|
};
|
|
52
|
-
export
|
|
52
|
+
export type SettingsJSON = {
|
|
53
53
|
docId: string | null;
|
|
54
54
|
defaultTabStop: number;
|
|
55
55
|
adjustLineHeightInTable: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ParagraphPropertyJSON } from "./paragraph";
|
|
2
2
|
import { RunPropertyJSON } from "./run";
|
|
3
|
-
export
|
|
3
|
+
export type LevelJSON = {
|
|
4
4
|
level: number;
|
|
5
5
|
start: number;
|
|
6
6
|
format: string;
|
|
@@ -13,23 +13,23 @@ export declare type LevelJSON = {
|
|
|
13
13
|
levelRestart: number | null;
|
|
14
14
|
isLgl?: boolean | null;
|
|
15
15
|
};
|
|
16
|
-
export
|
|
16
|
+
export type AbstractNumberingJSON = {
|
|
17
17
|
id: number;
|
|
18
18
|
levels: LevelJSON[];
|
|
19
19
|
numStyleLink: string | null;
|
|
20
20
|
styleLink: string | null;
|
|
21
21
|
};
|
|
22
|
-
export
|
|
22
|
+
export type NumberingJSON = {
|
|
23
23
|
id: number;
|
|
24
24
|
abstractNumId: number;
|
|
25
25
|
levelOverrides: LevelOverrideJSON[];
|
|
26
26
|
};
|
|
27
|
-
export
|
|
27
|
+
export type LevelOverrideJSON = {
|
|
28
28
|
level: number;
|
|
29
29
|
overrideStart: number | null;
|
|
30
30
|
overrideLevel: LevelJSON | null;
|
|
31
31
|
};
|
|
32
|
-
export
|
|
32
|
+
export type NumberingsJSON = {
|
|
33
33
|
abstractNums: AbstractNumberingJSON[];
|
|
34
34
|
numberings: NumberingJSON[];
|
|
35
35
|
};
|
|
@@ -5,19 +5,19 @@ import { LineSpacingJSON } from "./line_spacing";
|
|
|
5
5
|
import { FrameProperty as FramePropertyJSON } from "./bindings/FrameProperty";
|
|
6
6
|
import { TextAlignmentType } from "./bindings/TextAlignmentType";
|
|
7
7
|
export { FrameProperty as FramePropertyJSON } from "./bindings/FrameProperty";
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
8
|
+
export type ParagraphChildJSON = RunJSON | InsertJSON | DeleteJSON | HyperlinkJSON | CommentRangeStartJSON | CommentRangeEndJSON | BookmarkStartJSON | BookmarkEndJSON;
|
|
9
|
+
export type HyperlinkChildJSON = RunJSON | InsertJSON | DeleteJSON | CommentRangeStartJSON | CommentRangeEndJSON | BookmarkStartJSON | BookmarkEndJSON;
|
|
10
|
+
export type CustomTabStopType = "bar" | "center" | "clear" | "decimal" | "end" | "right" | "num" | "start" | "left";
|
|
11
|
+
export type CustomTabStopJSON = {
|
|
12
12
|
val: CustomTabStopType | null;
|
|
13
13
|
leader: string | null;
|
|
14
14
|
pos: number | null;
|
|
15
15
|
};
|
|
16
|
-
export
|
|
16
|
+
export type NumberingPropertyJSON = {
|
|
17
17
|
id: number | null;
|
|
18
18
|
level: number | null;
|
|
19
19
|
};
|
|
20
|
-
export
|
|
20
|
+
export type ParagraphPropertyJSON = {
|
|
21
21
|
runProperty: RunPropertyJSON;
|
|
22
22
|
style?: string | null;
|
|
23
23
|
numberingProperty?: NumberingPropertyJSON | null;
|
|
@@ -41,7 +41,7 @@ export declare type ParagraphPropertyJSON = {
|
|
|
41
41
|
tabs: CustomTabStopJSON[];
|
|
42
42
|
frameProperty?: FramePropertyJSON;
|
|
43
43
|
};
|
|
44
|
-
export
|
|
44
|
+
export type ParagraphJSON = {
|
|
45
45
|
type: "paragraph";
|
|
46
46
|
data: {
|
|
47
47
|
id: string;
|
|
@@ -49,25 +49,25 @@ export declare type ParagraphJSON = {
|
|
|
49
49
|
children: ParagraphChildJSON[];
|
|
50
50
|
};
|
|
51
51
|
};
|
|
52
|
-
export
|
|
52
|
+
export type InsertJSONData = {
|
|
53
53
|
children: (DeleteJSON | RunJSON | CommentRangeStartJSON | CommentRangeEndJSON)[];
|
|
54
54
|
author: string;
|
|
55
55
|
date: string;
|
|
56
56
|
};
|
|
57
|
-
export
|
|
57
|
+
export type InsertJSON = {
|
|
58
58
|
type: "insert";
|
|
59
59
|
data: InsertJSONData;
|
|
60
60
|
};
|
|
61
|
-
export
|
|
61
|
+
export type DeleteJSONData = {
|
|
62
62
|
children: DeleteChildJSON[];
|
|
63
63
|
author: string;
|
|
64
64
|
date: string;
|
|
65
65
|
};
|
|
66
|
-
export
|
|
66
|
+
export type DeleteJSON = {
|
|
67
67
|
type: "delete";
|
|
68
68
|
data: DeleteJSONData;
|
|
69
69
|
};
|
|
70
|
-
export
|
|
70
|
+
export type HyperlinkJSON = {
|
|
71
71
|
type: "hyperlink";
|
|
72
72
|
data: {
|
|
73
73
|
type: "external";
|
|
@@ -80,15 +80,15 @@ export declare type HyperlinkJSON = {
|
|
|
80
80
|
children: HyperlinkChildJSON[];
|
|
81
81
|
};
|
|
82
82
|
};
|
|
83
|
-
export
|
|
84
|
-
export
|
|
83
|
+
export type DeleteChildJSON = RunJSON | CommentRangeStartJSON | CommentRangeEndJSON;
|
|
84
|
+
export type BookmarkStartJSON = {
|
|
85
85
|
type: "bookmarkStart";
|
|
86
86
|
data: {
|
|
87
87
|
id: number;
|
|
88
88
|
name: string;
|
|
89
89
|
};
|
|
90
90
|
};
|
|
91
|
-
export
|
|
91
|
+
export type BookmarkEndJSON = {
|
|
92
92
|
type: "bookmarkEnd";
|
|
93
93
|
data: {
|
|
94
94
|
id: number;
|
package/dist/node/json/run.d.ts
CHANGED
|
@@ -6,13 +6,13 @@ import { VertAlignType } from "../run";
|
|
|
6
6
|
import { FieldChar } from "./bindings/FieldChar";
|
|
7
7
|
import { InstrHyperlink } from "./bindings/InstrHyperlink";
|
|
8
8
|
import { InstrToC } from "./bindings/InstrToC";
|
|
9
|
-
export
|
|
9
|
+
export type TextBorderJSON = {
|
|
10
10
|
borderType: BorderType;
|
|
11
11
|
size: number;
|
|
12
12
|
space: number;
|
|
13
13
|
color: string;
|
|
14
14
|
};
|
|
15
|
-
export
|
|
15
|
+
export type RunFontsJSON = {
|
|
16
16
|
ascii?: string;
|
|
17
17
|
hiAnsi?: string;
|
|
18
18
|
eastAsia?: string;
|
|
@@ -23,7 +23,7 @@ export declare type RunFontsJSON = {
|
|
|
23
23
|
csTheme?: string;
|
|
24
24
|
hint?: string;
|
|
25
25
|
};
|
|
26
|
-
export
|
|
26
|
+
export type RunPropertyJSON = {
|
|
27
27
|
style?: string | null;
|
|
28
28
|
sz?: number | null;
|
|
29
29
|
szCs?: number | null;
|
|
@@ -45,49 +45,49 @@ export declare type RunPropertyJSON = {
|
|
|
45
45
|
del?: DeleteJSONData | null;
|
|
46
46
|
strike?: boolean;
|
|
47
47
|
};
|
|
48
|
-
export
|
|
49
|
-
export
|
|
48
|
+
export type RunChildJSON = TextJSON | SymJSON | DeleteTextJSON | TabJSON | BreakJSON | DrawingJSON | ShapeJSON | CommentRangeStartJSON | CommentRangeEndJSON | FieldCharJSON | InstrTextStringJSON;
|
|
49
|
+
export type TextJSON = {
|
|
50
50
|
type: "text";
|
|
51
51
|
data: {
|
|
52
52
|
preserveSpace: boolean;
|
|
53
53
|
text: string;
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
|
-
export
|
|
56
|
+
export type SymJSON = {
|
|
57
57
|
type: "sym";
|
|
58
58
|
data: {
|
|
59
59
|
font: string;
|
|
60
60
|
char: string;
|
|
61
61
|
};
|
|
62
62
|
};
|
|
63
|
-
export
|
|
63
|
+
export type DeleteTextJSON = {
|
|
64
64
|
type: "deleteText";
|
|
65
65
|
data: {
|
|
66
66
|
preserveSpace: boolean;
|
|
67
67
|
text: string;
|
|
68
68
|
};
|
|
69
69
|
};
|
|
70
|
-
export
|
|
70
|
+
export type TabJSON = {
|
|
71
71
|
type: "tab";
|
|
72
72
|
};
|
|
73
|
-
export
|
|
73
|
+
export type BreakJSON = {
|
|
74
74
|
type: "break";
|
|
75
75
|
data: {
|
|
76
76
|
breakType: "page" | "column" | "textWrapping";
|
|
77
77
|
};
|
|
78
78
|
};
|
|
79
|
-
export
|
|
79
|
+
export type RunJSON = {
|
|
80
80
|
type: "run";
|
|
81
81
|
data: {
|
|
82
82
|
runProperty: RunPropertyJSON;
|
|
83
83
|
children: RunChildJSON[];
|
|
84
84
|
};
|
|
85
85
|
};
|
|
86
|
-
export
|
|
86
|
+
export type FieldCharJSON = {
|
|
87
87
|
type: "fieldChar";
|
|
88
88
|
data: FieldChar;
|
|
89
89
|
};
|
|
90
|
-
export
|
|
90
|
+
export type InstrTextJSON = {
|
|
91
91
|
type: "instrText";
|
|
92
92
|
data: {
|
|
93
93
|
type: "hyperlink";
|
|
@@ -97,7 +97,7 @@ export declare type InstrTextJSON = {
|
|
|
97
97
|
data: InstrToC;
|
|
98
98
|
};
|
|
99
99
|
};
|
|
100
|
-
export
|
|
100
|
+
export type InstrTextStringJSON = {
|
|
101
101
|
type: "instrTextString";
|
|
102
102
|
data: string;
|
|
103
103
|
};
|
|
@@ -2,14 +2,14 @@ import { HeaderJSON, HeaderReferenceJSON } from "./header";
|
|
|
2
2
|
import { FooterJSON, FooterReferenceJSON } from "./footer";
|
|
3
3
|
import { PageNumType as PageNumTypeJSON } from "./bindings/PageNumType";
|
|
4
4
|
export { PageNumType as PageNumTypeJSON } from "./bindings/PageNumType";
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
5
|
+
export type DocGridType = "default" | "lines" | "linesAndChars" | "snapToChars";
|
|
6
|
+
export type SectionType = "nextPage" | "nextColumn" | "continuous" | "evenPage" | "oddPage";
|
|
7
|
+
export type DocGridJSON = {
|
|
8
8
|
gridType: DocGridType;
|
|
9
9
|
linePitch: number | null;
|
|
10
10
|
charSpace: number | null;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type SectionPropertyJSON = {
|
|
13
13
|
pageSize: {
|
|
14
14
|
w: number;
|
|
15
15
|
h: number;
|