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.
Files changed (170) hide show
  1. package/dist/node/border.d.ts +1 -1
  2. package/dist/node/break.d.ts +1 -1
  3. package/dist/node/builder.d.ts +1 -1
  4. package/dist/node/hyperlink.d.ts +1 -1
  5. package/dist/node/json/bindings/Bold.d.ts +1 -1
  6. package/dist/node/json/bindings/BoldCs.d.ts +1 -1
  7. package/dist/node/json/bindings/BorderType.d.ts +1 -1
  8. package/dist/node/json/bindings/BreakType.d.ts +1 -1
  9. package/dist/node/json/bindings/Caps.d.ts +1 -1
  10. package/dist/node/json/bindings/CharacterSpacing.d.ts +1 -1
  11. package/dist/node/json/bindings/Color.d.ts +1 -1
  12. package/dist/node/json/bindings/DeleteChild.d.ts +1 -1
  13. package/dist/node/json/bindings/DrawingPosition.d.ts +1 -1
  14. package/dist/node/json/bindings/DrawingPositionType.d.ts +1 -1
  15. package/dist/node/json/bindings/FieldCharType.d.ts +1 -1
  16. package/dist/node/json/bindings/Highlight.d.ts +1 -1
  17. package/dist/node/json/bindings/HyperlinkType.d.ts +1 -1
  18. package/dist/node/json/bindings/InsertChild.d.ts +1 -1
  19. package/dist/node/json/bindings/InstrText.d.ts +1 -1
  20. package/dist/node/json/bindings/Italic.d.ts +1 -1
  21. package/dist/node/json/bindings/ItalicCs.d.ts +1 -1
  22. package/dist/node/json/bindings/PicAlign.d.ts +1 -1
  23. package/dist/node/json/bindings/RelativeFromHType.d.ts +1 -1
  24. package/dist/node/json/bindings/RelativeFromVType.d.ts +1 -1
  25. package/dist/node/json/bindings/RunStyle.d.ts +1 -1
  26. package/dist/node/json/bindings/SpecVanish.d.ts +1 -1
  27. package/dist/node/json/bindings/Strike.d.ts +1 -1
  28. package/dist/node/json/bindings/StyleWithLevel.d.ts +1 -1
  29. package/dist/node/json/bindings/Sz.d.ts +1 -1
  30. package/dist/node/json/bindings/SzCs.d.ts +1 -1
  31. package/dist/node/json/bindings/TabLeaderType.d.ts +1 -1
  32. package/dist/node/json/bindings/TabLeaderType.js +0 -1
  33. package/dist/node/json/bindings/TabLeaderType.js.map +1 -1
  34. package/dist/node/json/bindings/TabValueType.d.ts +1 -1
  35. package/dist/node/json/bindings/TabValueType.js +0 -1
  36. package/dist/node/json/bindings/TabValueType.js.map +1 -1
  37. package/dist/node/json/bindings/TableCellBorderPosition.d.ts +1 -1
  38. package/dist/node/json/bindings/TextAlignmentType.d.ts +1 -1
  39. package/dist/node/json/bindings/Underline.d.ts +1 -1
  40. package/dist/node/json/bindings/Vanish.d.ts +1 -1
  41. package/dist/node/json/bindings/VertAlign.d.ts +1 -1
  42. package/dist/node/json/border.d.ts +1 -1
  43. package/dist/node/json/comment.d.ts +4 -4
  44. package/dist/node/json/document.d.ts +2 -2
  45. package/dist/node/json/drawing.d.ts +8 -8
  46. package/dist/node/json/footer.d.ts +2 -2
  47. package/dist/node/json/header.d.ts +2 -2
  48. package/dist/node/json/indent.d.ts +1 -1
  49. package/dist/node/json/index.d.ts +2 -2
  50. package/dist/node/json/line_spacing.d.ts +1 -1
  51. package/dist/node/json/numbering.d.ts +5 -5
  52. package/dist/node/json/paragraph.d.ts +15 -15
  53. package/dist/node/json/run.d.ts +13 -13
  54. package/dist/node/json/section-property.d.ts +4 -4
  55. package/dist/node/json/shading.d.ts +1 -1
  56. package/dist/node/json/shape.d.ts +1 -1
  57. package/dist/node/json/structured-data-tag.d.ts +2 -2
  58. package/dist/node/json/styles.d.ts +2 -2
  59. package/dist/node/json/table.d.ts +11 -11
  60. package/dist/node/json/textbox-content.d.ts +2 -2
  61. package/dist/node/json/web-settings.d.ts +2 -2
  62. package/dist/node/level.d.ts +1 -1
  63. package/dist/node/page-num.d.ts +1 -1
  64. package/dist/node/paragraph-property.d.ts +6 -4
  65. package/dist/node/paragraph-property.js +60 -0
  66. package/dist/node/paragraph-property.js.map +1 -1
  67. package/dist/node/paragraph.d.ts +8 -1
  68. package/dist/node/paragraph.js +4 -0
  69. package/dist/node/paragraph.js.map +1 -1
  70. package/dist/node/pkg/docx_wasm.d.ts +288 -274
  71. package/dist/node/pkg/docx_wasm.js +217 -196
  72. package/dist/node/pkg/docx_wasm_bg.wasm +0 -0
  73. package/dist/node/pkg/docx_wasm_bg.wasm.d.ts +173 -171
  74. package/dist/node/run.d.ts +7 -7
  75. package/dist/node/section-property.d.ts +4 -4
  76. package/dist/node/settings.d.ts +2 -2
  77. package/dist/node/style.d.ts +1 -1
  78. package/dist/node/table-cell-border.d.ts +1 -1
  79. package/dist/node/table-cell-borders.d.ts +1 -1
  80. package/dist/node/table-cell.d.ts +4 -4
  81. package/dist/node/table-row.d.ts +1 -1
  82. package/dist/node/table.d.ts +3 -3
  83. package/dist/web/border.d.ts +1 -1
  84. package/dist/web/break.d.ts +1 -1
  85. package/dist/web/builder.d.ts +1 -1
  86. package/dist/web/hyperlink.d.ts +1 -1
  87. package/dist/web/json/bindings/Bold.d.ts +1 -1
  88. package/dist/web/json/bindings/BoldCs.d.ts +1 -1
  89. package/dist/web/json/bindings/BorderType.d.ts +1 -1
  90. package/dist/web/json/bindings/BreakType.d.ts +1 -1
  91. package/dist/web/json/bindings/Caps.d.ts +1 -1
  92. package/dist/web/json/bindings/CharacterSpacing.d.ts +1 -1
  93. package/dist/web/json/bindings/Color.d.ts +1 -1
  94. package/dist/web/json/bindings/DeleteChild.d.ts +1 -1
  95. package/dist/web/json/bindings/DrawingPosition.d.ts +1 -1
  96. package/dist/web/json/bindings/DrawingPositionType.d.ts +1 -1
  97. package/dist/web/json/bindings/FieldCharType.d.ts +1 -1
  98. package/dist/web/json/bindings/Highlight.d.ts +1 -1
  99. package/dist/web/json/bindings/HyperlinkType.d.ts +1 -1
  100. package/dist/web/json/bindings/InsertChild.d.ts +1 -1
  101. package/dist/web/json/bindings/InstrText.d.ts +1 -1
  102. package/dist/web/json/bindings/Italic.d.ts +1 -1
  103. package/dist/web/json/bindings/ItalicCs.d.ts +1 -1
  104. package/dist/web/json/bindings/PicAlign.d.ts +1 -1
  105. package/dist/web/json/bindings/RelativeFromHType.d.ts +1 -1
  106. package/dist/web/json/bindings/RelativeFromVType.d.ts +1 -1
  107. package/dist/web/json/bindings/RunStyle.d.ts +1 -1
  108. package/dist/web/json/bindings/SpecVanish.d.ts +1 -1
  109. package/dist/web/json/bindings/Strike.d.ts +1 -1
  110. package/dist/web/json/bindings/StyleWithLevel.d.ts +1 -1
  111. package/dist/web/json/bindings/Sz.d.ts +1 -1
  112. package/dist/web/json/bindings/SzCs.d.ts +1 -1
  113. package/dist/web/json/bindings/TabLeaderType.d.ts +1 -1
  114. package/dist/web/json/bindings/TabLeaderType.js +0 -1
  115. package/dist/web/json/bindings/TabLeaderType.js.map +1 -1
  116. package/dist/web/json/bindings/TabValueType.d.ts +1 -1
  117. package/dist/web/json/bindings/TabValueType.js +0 -1
  118. package/dist/web/json/bindings/TabValueType.js.map +1 -1
  119. package/dist/web/json/bindings/TableCellBorderPosition.d.ts +1 -1
  120. package/dist/web/json/bindings/TextAlignmentType.d.ts +1 -1
  121. package/dist/web/json/bindings/Underline.d.ts +1 -1
  122. package/dist/web/json/bindings/Vanish.d.ts +1 -1
  123. package/dist/web/json/bindings/VertAlign.d.ts +1 -1
  124. package/dist/web/json/border.d.ts +1 -1
  125. package/dist/web/json/comment.d.ts +4 -4
  126. package/dist/web/json/document.d.ts +2 -2
  127. package/dist/web/json/drawing.d.ts +8 -8
  128. package/dist/web/json/footer.d.ts +2 -2
  129. package/dist/web/json/header.d.ts +2 -2
  130. package/dist/web/json/indent.d.ts +1 -1
  131. package/dist/web/json/index.d.ts +2 -2
  132. package/dist/web/json/line_spacing.d.ts +1 -1
  133. package/dist/web/json/numbering.d.ts +5 -5
  134. package/dist/web/json/paragraph.d.ts +15 -15
  135. package/dist/web/json/run.d.ts +13 -13
  136. package/dist/web/json/section-property.d.ts +4 -4
  137. package/dist/web/json/shading.d.ts +1 -1
  138. package/dist/web/json/shape.d.ts +1 -1
  139. package/dist/web/json/structured-data-tag.d.ts +2 -2
  140. package/dist/web/json/styles.d.ts +2 -2
  141. package/dist/web/json/table.d.ts +11 -11
  142. package/dist/web/json/textbox-content.d.ts +2 -2
  143. package/dist/web/json/web-settings.d.ts +2 -2
  144. package/dist/web/level.d.ts +1 -1
  145. package/dist/web/page-num.d.ts +1 -1
  146. package/dist/web/paragraph-property.d.ts +6 -4
  147. package/dist/web/paragraph-property.js +60 -0
  148. package/dist/web/paragraph-property.js.map +1 -1
  149. package/dist/web/paragraph.d.ts +8 -1
  150. package/dist/web/paragraph.js +4 -0
  151. package/dist/web/paragraph.js.map +1 -1
  152. package/dist/web/pkg/docx_wasm.d.ts +288 -274
  153. package/dist/web/pkg/docx_wasm_bg.js +215 -194
  154. package/dist/web/pkg/docx_wasm_bg.wasm +0 -0
  155. package/dist/web/pkg/docx_wasm_bg.wasm.d.ts +173 -171
  156. package/dist/web/run.d.ts +7 -7
  157. package/dist/web/section-property.d.ts +4 -4
  158. package/dist/web/settings.d.ts +2 -2
  159. package/dist/web/style.d.ts +1 -1
  160. package/dist/web/table-cell-border.d.ts +1 -1
  161. package/dist/web/table-cell-borders.d.ts +1 -1
  162. package/dist/web/table-cell.d.ts +4 -4
  163. package/dist/web/table-row.d.ts +1 -1
  164. package/dist/web/table.d.ts +3 -3
  165. package/js/json/bindings/Tab.ts +0 -1
  166. package/js/json/bindings/TabLeaderType.ts +1 -2
  167. package/js/json/bindings/TabValueType.ts +0 -1
  168. package/js/paragraph-property.ts +63 -0
  169. package/js/paragraph.ts +13 -0
  170. package/package.json +1 -1
@@ -1 +1 @@
1
- export declare 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
+ 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,4 +1,4 @@
1
- export declare type BreakType = "page" | "column" | "textWrapping";
1
+ export type BreakType = "page" | "column" | "textWrapping";
2
2
  export declare class Break {
3
3
  type: BreakType;
4
4
  constructor(type: BreakType);
@@ -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
- declare type Child = Paragraph | Table | Comment | Hyperlink;
5
+ type Child = Paragraph | Table | Comment | Hyperlink;
6
6
  export declare function build<T>(child: Child): T;
7
7
  export {};
@@ -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 declare type HyperlinkType = "anchor" | "external";
8
+ export type HyperlinkType = "anchor" | "external";
9
9
  export declare class Hyperlink {
10
10
  v: string;
11
11
  type: HyperlinkType;
@@ -1 +1 @@
1
- export declare type Bold = boolean;
1
+ export type Bold = boolean;
@@ -1 +1 @@
1
- export declare type BoldCs = boolean;
1
+ export type BoldCs = boolean;
@@ -1 +1 @@
1
- export declare 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
+ 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 declare type BreakType = "Page" | "Column" | "TextWrapping" | "Unsupported";
1
+ export type BreakType = "Page" | "Column" | "TextWrapping" | "Unsupported";
@@ -1 +1 @@
1
- export declare type Caps = boolean;
1
+ export type Caps = boolean;
@@ -1 +1 @@
1
- export declare type CharacterSpacing = number;
1
+ export type CharacterSpacing = number;
@@ -1 +1 @@
1
- export declare type Color = string;
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 declare type DeleteChild = {
4
+ export type DeleteChild = {
5
5
  "Run": Run;
6
6
  } | {
7
7
  "CommentStart": CommentRangeStart;
@@ -1,5 +1,5 @@
1
1
  import type { PicAlign } from "./PicAlign";
2
- export declare type DrawingPosition = {
2
+ export type DrawingPosition = {
3
3
  offset: number;
4
4
  } | {
5
5
  align: PicAlign;
@@ -1 +1 @@
1
- export declare type DrawingPositionType = "anchor" | "inline";
1
+ export type DrawingPositionType = "anchor" | "inline";
@@ -1 +1 @@
1
- export declare type FieldCharType = "begin" | "separate" | "end" | "unsupported";
1
+ export type FieldCharType = "begin" | "separate" | "end" | "unsupported";
@@ -1 +1 @@
1
- export declare type Highlight = string;
1
+ export type Highlight = string;
@@ -1 +1 @@
1
- export declare type HyperlinkType = "anchor" | "external";
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 declare type InsertChild = {
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 declare type InstrText = {
5
+ export type InstrText = {
6
6
  "TOC": InstrToC;
7
7
  } | {
8
8
  "TC": InstrTC;
@@ -1 +1 @@
1
- export declare type Italic = boolean;
1
+ export type Italic = boolean;
@@ -1 +1 @@
1
- export declare type ItalicCs = boolean;
1
+ export type ItalicCs = boolean;
@@ -1 +1 @@
1
- export declare type PicAlign = "left" | "right" | "center" | "bottom" | "top";
1
+ export type PicAlign = "left" | "right" | "center" | "bottom" | "top";
@@ -1 +1 @@
1
- export declare type RelativeFromHType = "character" | "column" | "insideMargin" | "leftMargin" | "margin" | "outsizeMargin" | "page" | "rightMargin";
1
+ export type RelativeFromHType = "character" | "column" | "insideMargin" | "leftMargin" | "margin" | "outsizeMargin" | "page" | "rightMargin";
@@ -1 +1 @@
1
- export declare type RelativeFromVType = "bottomMargin" | "insideMargin" | "line" | "margin" | "outsizeMargin" | "page" | "paragraph" | "topMargin";
1
+ export type RelativeFromVType = "bottomMargin" | "insideMargin" | "line" | "margin" | "outsizeMargin" | "page" | "paragraph" | "topMargin";
@@ -1 +1 @@
1
- export declare type RunStyle = string;
1
+ export type RunStyle = string;
@@ -1 +1 @@
1
- export declare type SpecVanish = boolean;
1
+ export type SpecVanish = boolean;
@@ -1 +1 @@
1
- export declare type Strike = boolean;
1
+ export type Strike = boolean;
@@ -1 +1 @@
1
- export declare type StyleWithLevel = [string, number];
1
+ export type StyleWithLevel = [string, number];
@@ -1 +1 @@
1
- export declare type Sz = number;
1
+ export type Sz = number;
@@ -1 +1 @@
1
- export declare type SzCs = number;
1
+ export type SzCs = number;
@@ -1 +1 @@
1
- export declare type TabLeaderType = "dot" | "heavy" | "hyphen" | "middledot" | "none" | "underscore";
1
+ export type TabLeaderType = "dot" | "heavy" | "hyphen" | "middleDot" | "none" | "underscore";
@@ -1,4 +1,3 @@
1
1
  "use strict";
2
- // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
4
3
  //# sourceMappingURL=TabLeaderType.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TabLeaderType.js","sourceRoot":"","sources":["../../../../js/json/bindings/TabLeaderType.ts"],"names":[],"mappings":";AAAA,4GAA4G"}
1
+ {"version":3,"file":"TabLeaderType.js","sourceRoot":"","sources":["../../../../js/json/bindings/TabLeaderType.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- export declare type TabValueType = "bar" | "center" | "clear" | "decimal" | "end" | "right" | "num" | "start" | "left";
1
+ export type TabValueType = "bar" | "center" | "clear" | "decimal" | "end" | "right" | "num" | "start" | "left";
@@ -1,4 +1,3 @@
1
1
  "use strict";
2
- // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
4
3
  //# sourceMappingURL=TabValueType.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TabValueType.js","sourceRoot":"","sources":["../../../../js/json/bindings/TabValueType.ts"],"names":[],"mappings":";AAAA,4GAA4G"}
1
+ {"version":3,"file":"TabValueType.js","sourceRoot":"","sources":["../../../../js/json/bindings/TabValueType.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- export declare type TableCellBorderPosition = "left" | "right" | "top" | "bottom" | "insideH" | "insideV" | "tl2Br" | "tr2Bl";
1
+ export type TableCellBorderPosition = "left" | "right" | "top" | "bottom" | "insideH" | "insideV" | "tl2Br" | "tr2Bl";
@@ -1 +1 @@
1
- export declare type TextAlignmentType = "auto" | "baseline" | "bottom" | "center" | "top";
1
+ export type TextAlignmentType = "auto" | "baseline" | "bottom" | "center" | "top";
@@ -1 +1 @@
1
- export declare type Underline = string;
1
+ export type Underline = string;
@@ -1 +1 @@
1
- export declare type Vanish = boolean;
1
+ export type Vanish = boolean;
@@ -1 +1 @@
1
- export declare type VertAlign = string;
1
+ export type VertAlign = string;
@@ -1,4 +1,4 @@
1
- export declare type BorderJSON = {
1
+ export type BorderJSON = {
2
2
  position: string;
3
3
  borderType: string;
4
4
  size: number;
@@ -1,20 +1,20 @@
1
1
  import { ParagraphJSON, TableJSON } from "../";
2
- export declare type CommentChildJSON = ParagraphJSON | TableJSON;
3
- export declare type CommentJSON = {
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 declare type CommentRangeStartJSON = {
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 declare type CommentRangeEndJSON = {
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 declare type DocumentChildJSON = ParagraphJSON | TableJSON | CommentRangeStartJSON | CommentRangeEndJSON | BookmarkStartJSON | BookmarkEndJSON | StructuredTagJSON;
7
- export declare type DocumentJSON = {
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 declare type DrawingJSON = {
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 declare type WpAnchorJSON = {
19
+ export type WpAnchorJSON = {
20
20
  type: "anchor";
21
21
  data: {
22
22
  children: AGraphicJSON[];
23
23
  };
24
24
  };
25
- export declare type AGraphicJSON = {
25
+ export type AGraphicJSON = {
26
26
  children: AGraphChildJSON[];
27
27
  };
28
- export declare type AGraphChildJSON = AGraphicDataJSON;
29
- export declare type AGraphicDataJSON = {
28
+ export type AGraphChildJSON = AGraphicDataJSON;
29
+ export type AGraphicDataJSON = {
30
30
  dataType: "wpShape";
31
31
  children: WpsShapeJSON[];
32
32
  };
33
- export declare type WpsShapeJSON = {
33
+ export type WpsShapeJSON = {
34
34
  type: "shape";
35
35
  data: {
36
36
  children: WpsShapeChildJSON[];
37
37
  };
38
38
  };
39
- export declare type WpsShapeChildJSON = WpsTextBoxJSON;
40
- export declare type WpsTextBoxJSON = {
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 declare type FooterJSON = {
4
+ export type FooterJSON = {
5
5
  children: (ParagraphJSON | TableJSON | StructuredTagJSON)[];
6
6
  };
7
- export declare type FooterReferenceJSON = {
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 declare type HeaderJSON = {
4
+ export type HeaderJSON = {
5
5
  children: (ParagraphJSON | TableJSON | StructuredTagJSON)[];
6
6
  };
7
- export declare type HeaderReferenceJSON = {
7
+ export type HeaderReferenceJSON = {
8
8
  headerType: string;
9
9
  id: string;
10
10
  };
@@ -1,4 +1,4 @@
1
- export declare type IndentJSON = {
1
+ export type IndentJSON = {
2
2
  start: number | null;
3
3
  end: number | null;
4
4
  specialIndent: {
@@ -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 declare type DocxJSON = {
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 declare type SettingsJSON = {
52
+ export type SettingsJSON = {
53
53
  docId: string | null;
54
54
  defaultTabStop: number;
55
55
  adjustLineHeightInTable: boolean;
@@ -1,4 +1,4 @@
1
- export declare type LineSpacingJSON = {
1
+ export type LineSpacingJSON = {
2
2
  before?: number | null;
3
3
  after?: number | null;
4
4
  beforeLines?: number | null;
@@ -1,6 +1,6 @@
1
1
  import { ParagraphPropertyJSON } from "./paragraph";
2
2
  import { RunPropertyJSON } from "./run";
3
- export declare type LevelJSON = {
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 declare type AbstractNumberingJSON = {
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 declare type NumberingJSON = {
22
+ export type NumberingJSON = {
23
23
  id: number;
24
24
  abstractNumId: number;
25
25
  levelOverrides: LevelOverrideJSON[];
26
26
  };
27
- export declare type LevelOverrideJSON = {
27
+ export type LevelOverrideJSON = {
28
28
  level: number;
29
29
  overrideStart: number | null;
30
30
  overrideLevel: LevelJSON | null;
31
31
  };
32
- export declare type NumberingsJSON = {
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 declare type ParagraphChildJSON = RunJSON | InsertJSON | DeleteJSON | HyperlinkJSON | CommentRangeStartJSON | CommentRangeEndJSON | BookmarkStartJSON | BookmarkEndJSON;
9
- export declare type HyperlinkChildJSON = RunJSON | InsertJSON | DeleteJSON | CommentRangeStartJSON | CommentRangeEndJSON | BookmarkStartJSON | BookmarkEndJSON;
10
- export declare type CustomTabStopType = "bar" | "center" | "clear" | "decimal" | "end" | "right" | "num" | "start" | "left";
11
- export declare type CustomTabStopJSON = {
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 declare type NumberingPropertyJSON = {
16
+ export type NumberingPropertyJSON = {
17
17
  id: number | null;
18
18
  level: number | null;
19
19
  };
20
- export declare type ParagraphPropertyJSON = {
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 declare type ParagraphJSON = {
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 declare type InsertJSONData = {
52
+ export type InsertJSONData = {
53
53
  children: (DeleteJSON | RunJSON | CommentRangeStartJSON | CommentRangeEndJSON)[];
54
54
  author: string;
55
55
  date: string;
56
56
  };
57
- export declare type InsertJSON = {
57
+ export type InsertJSON = {
58
58
  type: "insert";
59
59
  data: InsertJSONData;
60
60
  };
61
- export declare type DeleteJSONData = {
61
+ export type DeleteJSONData = {
62
62
  children: DeleteChildJSON[];
63
63
  author: string;
64
64
  date: string;
65
65
  };
66
- export declare type DeleteJSON = {
66
+ export type DeleteJSON = {
67
67
  type: "delete";
68
68
  data: DeleteJSONData;
69
69
  };
70
- export declare type HyperlinkJSON = {
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 declare type DeleteChildJSON = RunJSON | CommentRangeStartJSON | CommentRangeEndJSON;
84
- export declare type BookmarkStartJSON = {
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 declare type BookmarkEndJSON = {
91
+ export type BookmarkEndJSON = {
92
92
  type: "bookmarkEnd";
93
93
  data: {
94
94
  id: number;
@@ -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 declare type TextBorderJSON = {
9
+ export type TextBorderJSON = {
10
10
  borderType: BorderType;
11
11
  size: number;
12
12
  space: number;
13
13
  color: string;
14
14
  };
15
- export declare type RunFontsJSON = {
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 declare type RunPropertyJSON = {
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 declare type RunChildJSON = TextJSON | SymJSON | DeleteTextJSON | TabJSON | BreakJSON | DrawingJSON | ShapeJSON | CommentRangeStartJSON | CommentRangeEndJSON | FieldCharJSON | InstrTextStringJSON;
49
- export declare type TextJSON = {
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 declare type SymJSON = {
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 declare type DeleteTextJSON = {
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 declare type TabJSON = {
70
+ export type TabJSON = {
71
71
  type: "tab";
72
72
  };
73
- export declare type BreakJSON = {
73
+ export type BreakJSON = {
74
74
  type: "break";
75
75
  data: {
76
76
  breakType: "page" | "column" | "textWrapping";
77
77
  };
78
78
  };
79
- export declare type RunJSON = {
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 declare type FieldCharJSON = {
86
+ export type FieldCharJSON = {
87
87
  type: "fieldChar";
88
88
  data: FieldChar;
89
89
  };
90
- export declare type InstrTextJSON = {
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 declare type InstrTextStringJSON = {
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 declare type DocGridType = "default" | "lines" | "linesAndChars" | "snapToChars";
6
- export declare type SectionType = "nextPage" | "nextColumn" | "continuous" | "evenPage" | "oddPage";
7
- export declare type DocGridJSON = {
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 declare type SectionPropertyJSON = {
12
+ export type SectionPropertyJSON = {
13
13
  pageSize: {
14
14
  w: number;
15
15
  h: number;
@@ -1,4 +1,4 @@
1
- export declare type ShadingJSON = {
1
+ export type ShadingJSON = {
2
2
  shdType: string;
3
3
  color: string;
4
4
  fill: string;
@@ -1,5 +1,5 @@
1
1
  import { Shape } from "./bindings/Shape";
2
- export declare type ShapeJSON = {
2
+ export type ShapeJSON = {
3
3
  type: "shape";
4
4
  data: Shape;
5
5
  };