docx-wasm 0.0.276-rc4 → 0.0.276-rc7

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 (47) hide show
  1. package/dist/node/json/bindings/FieldChar.d.ts +5 -0
  2. package/dist/node/json/bindings/FieldChar.js +3 -0
  3. package/dist/node/json/bindings/FieldChar.js.map +1 -0
  4. package/dist/node/json/bindings/FieldCharType.d.ts +1 -0
  5. package/dist/node/json/bindings/FieldCharType.js +3 -0
  6. package/dist/node/json/bindings/FieldCharType.js.map +1 -0
  7. package/dist/node/json/bindings/InstrHyperlink.d.ts +4 -0
  8. package/dist/node/json/bindings/InstrHyperlink.js +3 -0
  9. package/dist/node/json/bindings/InstrHyperlink.js.map +1 -0
  10. package/dist/node/json/bindings/InstrToC.d.ts +19 -0
  11. package/dist/node/json/bindings/InstrToC.js +3 -0
  12. package/dist/node/json/bindings/InstrToC.js.map +1 -0
  13. package/dist/node/json/bindings/StyleWithLevel.d.ts +1 -0
  14. package/dist/node/json/bindings/StyleWithLevel.js +3 -0
  15. package/dist/node/json/bindings/StyleWithLevel.js.map +1 -0
  16. package/dist/node/json/run.d.ts +18 -1
  17. package/dist/node/pkg/docx_wasm.d.ts +164 -164
  18. package/dist/node/pkg/docx_wasm.js +55 -55
  19. package/dist/node/pkg/docx_wasm_bg.wasm +0 -0
  20. package/dist/node/pkg/docx_wasm_bg.wasm.d.ts +1 -1
  21. package/dist/web/json/bindings/FieldChar.d.ts +5 -0
  22. package/dist/web/json/bindings/FieldChar.js +2 -0
  23. package/dist/web/json/bindings/FieldChar.js.map +1 -0
  24. package/dist/web/json/bindings/FieldCharType.d.ts +1 -0
  25. package/dist/web/json/bindings/FieldCharType.js +2 -0
  26. package/dist/web/json/bindings/FieldCharType.js.map +1 -0
  27. package/dist/web/json/bindings/InstrHyperlink.d.ts +4 -0
  28. package/dist/web/json/bindings/InstrHyperlink.js +2 -0
  29. package/dist/web/json/bindings/InstrHyperlink.js.map +1 -0
  30. package/dist/web/json/bindings/InstrToC.d.ts +19 -0
  31. package/dist/web/json/bindings/InstrToC.js +2 -0
  32. package/dist/web/json/bindings/InstrToC.js.map +1 -0
  33. package/dist/web/json/bindings/StyleWithLevel.d.ts +1 -0
  34. package/dist/web/json/bindings/StyleWithLevel.js +2 -0
  35. package/dist/web/json/bindings/StyleWithLevel.js.map +1 -0
  36. package/dist/web/json/run.d.ts +18 -1
  37. package/dist/web/pkg/docx_wasm.d.ts +164 -164
  38. package/dist/web/pkg/docx_wasm_bg.js +55 -55
  39. package/dist/web/pkg/docx_wasm_bg.wasm +0 -0
  40. package/dist/web/pkg/docx_wasm_bg.wasm.d.ts +1 -1
  41. package/js/json/bindings/FieldChar.ts +3 -0
  42. package/js/json/bindings/FieldCharType.ts +2 -0
  43. package/js/json/bindings/InstrHyperlink.ts +2 -0
  44. package/js/json/bindings/InstrToC.ts +3 -0
  45. package/js/json/bindings/StyleWithLevel.ts +2 -0
  46. package/js/json/run.ts +24 -1
  47. package/package.json +1 -1
@@ -0,0 +1,5 @@
1
+ import type { FieldCharType } from "./FieldCharType";
2
+ export interface FieldChar {
3
+ fieldCharType: FieldCharType;
4
+ dirty: boolean;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=FieldChar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FieldChar.js","sourceRoot":"","sources":["../../../../js/json/bindings/FieldChar.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export declare type FieldCharType = "begin" | "separate" | "end" | "unsupported";
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=FieldCharType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FieldCharType.js","sourceRoot":"","sources":["../../../../js/json/bindings/FieldCharType.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export interface InstrHyperlink {
2
+ target: string;
3
+ anchor: boolean;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=InstrHyperlink.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InstrHyperlink.js","sourceRoot":"","sources":["../../../../js/json/bindings/InstrHyperlink.ts"],"names":[],"mappings":""}
@@ -0,0 +1,19 @@
1
+ import type { StyleWithLevel } from "./StyleWithLevel";
2
+ export interface InstrToC {
3
+ headingStylesRange?: [number, number];
4
+ tcFieldLevelRange?: [number, number];
5
+ omitPageNumbersLevelRange?: [number, number];
6
+ entryBookmarkName?: string;
7
+ stylesWithLevels: Array<StyleWithLevel>;
8
+ entryAndPageNumberSeparator?: string;
9
+ sequenceAndPageNumbersSeparator?: string;
10
+ captionLabel: string | null;
11
+ captionLabelIncludingNumbers?: string;
12
+ seqFieldIdentifierForPrefix?: string;
13
+ tcFieldIdentifier?: string;
14
+ hyperlink: boolean;
15
+ preserveTab: boolean;
16
+ preserveNewLine: boolean;
17
+ useAppliedParagraphLineLevel: boolean;
18
+ hideTabAndPageNumbersInWebview: boolean;
19
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=InstrToC.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InstrToC.js","sourceRoot":"","sources":["../../../../js/json/bindings/InstrToC.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export declare type StyleWithLevel = [string, number];
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=StyleWithLevel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StyleWithLevel.js","sourceRoot":"","sources":["../../../../js/json/bindings/StyleWithLevel.ts"],"names":[],"mappings":""}
@@ -4,6 +4,9 @@ import { CommentRangeStartJSON, CommentRangeEndJSON } from "..";
4
4
  import { BorderType } from "../border";
5
5
  import { InsertJSON, DeleteJSON } from "./paragraph";
6
6
  import { VertAlignType } from "../run";
7
+ import { FieldChar } from "./bindings/FieldChar";
8
+ import { InstrHyperlink } from "./bindings/InstrHyperlink";
9
+ import { InstrToC } from "./bindings/InstrToC";
7
10
  export declare type TextBorderJSON = {
8
11
  borderType: BorderType;
9
12
  size: number;
@@ -41,7 +44,7 @@ export declare type RunPropertyJSON = {
41
44
  del?: DeleteJSON["data"] | null;
42
45
  strike?: boolean;
43
46
  };
44
- export declare type RunChildJSON = TextJSON | DeleteTextJSON | TabJSON | BreakJSON | DrawingJSON | ShapeJSON | CommentRangeStartJSON | CommentRangeEndJSON;
47
+ export declare type RunChildJSON = TextJSON | DeleteTextJSON | TabJSON | BreakJSON | DrawingJSON | ShapeJSON | CommentRangeStartJSON | CommentRangeEndJSON | FieldCharJSON | InstrTextJSON;
45
48
  export declare type TextJSON = {
46
49
  type: "text";
47
50
  data: {
@@ -72,3 +75,17 @@ export declare type RunJSON = {
72
75
  children: RunChildJSON[];
73
76
  };
74
77
  };
78
+ export declare type FieldCharJSON = {
79
+ type: "fieldChar";
80
+ data: FieldChar;
81
+ };
82
+ export declare type InstrTextJSON = {
83
+ type: "instrText";
84
+ data: {
85
+ type: "hyperlink";
86
+ data: InstrHyperlink;
87
+ } | {
88
+ type: "toc";
89
+ data: InstrToC;
90
+ };
91
+ };
@@ -146,6 +146,41 @@ export enum AlignmentType {
146
146
  }
147
147
  /**
148
148
  */
149
+ export enum BorderType {
150
+ Nil,
151
+ None,
152
+ Single,
153
+ Thick,
154
+ Double,
155
+ Dotted,
156
+ Dashed,
157
+ DotDash,
158
+ DotDotDash,
159
+ Triple,
160
+ ThinThickSmallGap,
161
+ ThickThinSmallGap,
162
+ ThinThickThinSmallGap,
163
+ ThinThickMediumGap,
164
+ ThickThinMediumGap,
165
+ ThinThickThinMediumGap,
166
+ ThinThickLargeGap,
167
+ ThickThinLargeGap,
168
+ ThinThickThinLargeGap,
169
+ Wave,
170
+ DoubleWave,
171
+ DashSmallGap,
172
+ DashDotStroked,
173
+ ThreeDEmboss,
174
+ ThreeDEngrave,
175
+ Outset,
176
+ Inset,
177
+ Apples,
178
+ ArchedScallops,
179
+ BabyPacifier,
180
+ BabyRattle,
181
+ }
182
+ /**
183
+ */
149
184
  export enum HeightRule {
150
185
  Auto,
151
186
  AtLeast,
@@ -153,12 +188,6 @@ export enum HeightRule {
153
188
  }
154
189
  /**
155
190
  */
156
- export enum HyperlinkType {
157
- Anchor,
158
- External,
159
- }
160
- /**
161
- */
162
191
  export enum LevelSuffixType {
163
192
  Nothing,
164
193
  Space,
@@ -166,17 +195,9 @@ export enum LevelSuffixType {
166
195
  }
167
196
  /**
168
197
  */
169
- export enum DrawingPositionType {
198
+ export enum HyperlinkType {
170
199
  Anchor,
171
- Inline,
172
- }
173
- /**
174
- */
175
- export enum PicAlign {
176
- Left,
177
- Right,
178
- Bottom,
179
- Top,
200
+ External,
180
201
  }
181
202
  /**
182
203
  */
@@ -197,6 +218,102 @@ export enum VMergeType {
197
218
  }
198
219
  /**
199
220
  */
221
+ export enum DocGridType {
222
+ Default,
223
+ Lines,
224
+ LinesAndChars,
225
+ SnapToChars,
226
+ }
227
+ /**
228
+ */
229
+ export enum RelativeFromHType {
230
+ /**
231
+ * Specifies that the horizontal positioning shall be
232
+ * relative to the position of the anchor within its run
233
+ * content.
234
+ */
235
+ Character,
236
+ /**
237
+ * Specifies that the horizontal positioning shall be
238
+ * relative to the extents of the column which contains its
239
+ * anchor.
240
+ */
241
+ Column,
242
+ /**
243
+ * Specifies that the horizontal positioning shall be
244
+ * relative to the inside margin of the current page (the
245
+ * left margin on odd pages, right on even pages).
246
+ */
247
+ InsideMargin,
248
+ /**
249
+ * Specifies that the horizontal positioning shall be
250
+ * relative to the left margin of the page.
251
+ */
252
+ LeftMargin,
253
+ /**
254
+ * Specifies that the horizontal positioning shall be
255
+ * relative to the page margins.
256
+ */
257
+ Margin,
258
+ /**
259
+ * Specifies that the horizontal positioning shall be
260
+ * relative to the outside margin of the current page (the
261
+ * right margin on odd pages, left on even pages).
262
+ */
263
+ OutsizeMargin,
264
+ /**
265
+ * Specifies that the horizontal positioning shall be
266
+ * relative to the edge of the page.
267
+ */
268
+ Page,
269
+ /**
270
+ * Specifies that the horizontal positioning shall be
271
+ * relative to the right margin of the page.
272
+ */
273
+ RightMargin,
274
+ }
275
+ /**
276
+ */
277
+ export enum RelativeFromVType {
278
+ BottomMargin,
279
+ InsideMargin,
280
+ Line,
281
+ Margin,
282
+ OutsizeMargin,
283
+ Page,
284
+ Paragraph,
285
+ TopMargin,
286
+ }
287
+ /**
288
+ */
289
+ export enum TabValueType {
290
+ Bar,
291
+ Center,
292
+ Clear,
293
+ Decimal,
294
+ End,
295
+ Right,
296
+ Num,
297
+ Start,
298
+ Left,
299
+ }
300
+ /**
301
+ */
302
+ export enum BreakType {
303
+ Page,
304
+ Column,
305
+ TextWrapping,
306
+ Unsupported,
307
+ }
308
+ /**
309
+ */
310
+ export enum LineSpacingType {
311
+ Auto,
312
+ AtLeast,
313
+ Exact,
314
+ }
315
+ /**
316
+ */
200
317
  export enum ShdType {
201
318
  Nil,
202
319
  Clear,
@@ -253,21 +370,6 @@ export enum TextDirectionType {
253
370
  }
254
371
  /**
255
372
  */
256
- export enum BreakType {
257
- Page,
258
- Column,
259
- TextWrapping,
260
- Unsupported,
261
- }
262
- /**
263
- */
264
- export enum LineSpacingType {
265
- Auto,
266
- AtLeast,
267
- Exact,
268
- }
269
- /**
270
- */
271
373
  export enum VertAlignType {
272
374
  Baseline,
273
375
  SuperScript,
@@ -284,44 +386,17 @@ export enum VAlignType {
284
386
  }
285
387
  /**
286
388
  */
287
- export enum BorderType {
288
- Nil,
289
- None,
290
- Single,
291
- Thick,
292
- Double,
293
- Dotted,
294
- Dashed,
295
- DotDash,
296
- DotDotDash,
297
- Triple,
298
- ThinThickSmallGap,
299
- ThickThinSmallGap,
300
- ThinThickThinSmallGap,
301
- ThinThickMediumGap,
302
- ThickThinMediumGap,
303
- ThinThickThinMediumGap,
304
- ThinThickLargeGap,
305
- ThickThinLargeGap,
306
- ThinThickThinLargeGap,
307
- Wave,
308
- DoubleWave,
309
- DashSmallGap,
310
- DashDotStroked,
311
- ThreeDEmboss,
312
- ThreeDEngrave,
313
- Outset,
314
- Inset,
315
- Apples,
316
- ArchedScallops,
317
- BabyPacifier,
318
- BabyRattle,
389
+ export enum DrawingPositionType {
390
+ Anchor,
391
+ Inline,
319
392
  }
320
393
  /**
321
394
  */
322
- export enum PageOrientationType {
323
- Landscape,
324
- Portrait,
395
+ export enum PicAlign {
396
+ Left,
397
+ Right,
398
+ Bottom,
399
+ Top,
325
400
  }
326
401
  /**
327
402
  */
@@ -338,6 +413,20 @@ export enum TableAlignmentType {
338
413
  }
339
414
  /**
340
415
  */
416
+ export enum FieldCharType {
417
+ Begin,
418
+ Separate,
419
+ End,
420
+ Unsupported,
421
+ }
422
+ /**
423
+ */
424
+ export enum PageOrientationType {
425
+ Landscape,
426
+ Portrait,
427
+ }
428
+ /**
429
+ */
341
430
  export enum FontPitchType {
342
431
  Default,
343
432
  Fixed,
@@ -354,6 +443,15 @@ export enum SectionType {
354
443
  }
355
444
  /**
356
445
  */
446
+ export enum WidthType {
447
+ Dxa,
448
+ Auto,
449
+ Pct,
450
+ Nil,
451
+ Unsupported,
452
+ }
453
+ /**
454
+ */
357
455
  export enum TableBorderPosition {
358
456
  Left,
359
457
  Right,
@@ -376,91 +474,6 @@ export enum TableCellBorderPosition {
376
474
  }
377
475
  /**
378
476
  */
379
- export enum WidthType {
380
- Dxa,
381
- Auto,
382
- Pct,
383
- Nil,
384
- Unsupported,
385
- }
386
- /**
387
- */
388
- export enum DocGridType {
389
- Default,
390
- Lines,
391
- LinesAndChars,
392
- SnapToChars,
393
- }
394
- /**
395
- */
396
- export enum FieldCharType {
397
- Begin,
398
- Separate,
399
- End,
400
- Unsupported,
401
- }
402
- /**
403
- */
404
- export enum RelativeFromHType {
405
- /**
406
- * Specifies that the horizontal positioning shall be
407
- * relative to the position of the anchor within its run
408
- * content.
409
- */
410
- Character,
411
- /**
412
- * Specifies that the horizontal positioning shall be
413
- * relative to the extents of the column which contains its
414
- * anchor.
415
- */
416
- Column,
417
- /**
418
- * Specifies that the horizontal positioning shall be
419
- * relative to the inside margin of the current page (the
420
- * left margin on odd pages, right on even pages).
421
- */
422
- InsideMargin,
423
- /**
424
- * Specifies that the horizontal positioning shall be
425
- * relative to the left margin of the page.
426
- */
427
- LeftMargin,
428
- /**
429
- * Specifies that the horizontal positioning shall be
430
- * relative to the page margins.
431
- */
432
- Margin,
433
- /**
434
- * Specifies that the horizontal positioning shall be
435
- * relative to the outside margin of the current page (the
436
- * right margin on odd pages, left on even pages).
437
- */
438
- OutsizeMargin,
439
- /**
440
- * Specifies that the horizontal positioning shall be
441
- * relative to the edge of the page.
442
- */
443
- Page,
444
- /**
445
- * Specifies that the horizontal positioning shall be
446
- * relative to the right margin of the page.
447
- */
448
- RightMargin,
449
- }
450
- /**
451
- */
452
- export enum RelativeFromVType {
453
- BottomMargin,
454
- InsideMargin,
455
- Line,
456
- Margin,
457
- OutsizeMargin,
458
- Page,
459
- Paragraph,
460
- TopMargin,
461
- }
462
- /**
463
- */
464
477
  export enum StyleType {
465
478
  Paragraph,
466
479
  Character,
@@ -470,19 +483,6 @@ export enum StyleType {
470
483
  }
471
484
  /**
472
485
  */
473
- export enum TabValueType {
474
- Bar,
475
- Center,
476
- Clear,
477
- Decimal,
478
- End,
479
- Right,
480
- Num,
481
- Start,
482
- Left,
483
- }
484
- /**
485
- */
486
486
  export enum TableLayoutType {
487
487
  Fixed,
488
488
  Autofit,