docx-wasm 0.0.277-rc0 → 0.0.277-sdt0

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.
@@ -12,6 +12,7 @@ export declare type StyleJSON = {
12
12
  tableProperty: TablePropertyJSON;
13
13
  tableCellProperty: TableCellPropertyJSON;
14
14
  basedOn: string | null;
15
+ link?: string | null | undefined;
15
16
  };
16
17
  export declare type StylesJSON = {
17
18
  docDefaults: {
@@ -5,7 +5,8 @@ import { TextDirectionType } from "../table-cell";
5
5
  import { ShadingJSON } from "./shading";
6
6
  import { TableLayoutType } from "../table";
7
7
  import { DeleteJSONData, InsertJSONData } from "..";
8
- export declare type TableCellChildJSON = ParagraphJSON | TableJSON;
8
+ import { StructuredTagJSON } from "./structured-data-tag";
9
+ export declare type TableCellChildJSON = ParagraphJSON | TableJSON | StructuredTagJSON;
9
10
  export declare type WidthType = "dxa" | "auto" | "pct" | "nil";
10
11
  export { TextDirectionType } from "../table-cell";
11
12
  export { HeightRule } from "../table-row";
@@ -5,20 +5,33 @@
5
5
  */
6
6
  export function createTableOfContentsItem(): TableOfContentsItem;
7
7
  /**
8
- * @param {number} position
9
- * @returns {TableCellBorder}
8
+ * @returns {TableOfContents}
10
9
  */
11
- export function createTableCellBorder(position: number): TableCellBorder;
10
+ export function createTableOfContents(): TableOfContents;
12
11
  /**
13
- * @returns {TableRow}
12
+ * @param {string} s
13
+ * @returns {TableOfContents}
14
14
  */
15
- export function createTableRow(): TableRow;
15
+ export function createTableOfContentsWithInstrText(s: string): TableOfContents;
16
16
  /**
17
17
  * @param {Run} run
18
18
  * @returns {Delete}
19
19
  */
20
20
  export function createDelete(run: Run): Delete;
21
21
  /**
22
+ * @returns {LineSpacing}
23
+ */
24
+ export function createLineSpacing(): LineSpacing;
25
+ /**
26
+ * @param {number} position
27
+ * @returns {TableCellBorder}
28
+ */
29
+ export function createTableCellBorder(position: number): TableCellBorder;
30
+ /**
31
+ * @returns {TableRow}
32
+ */
33
+ export function createTableRow(): TableRow;
34
+ /**
22
35
  * @returns {Footer}
23
36
  */
24
37
  export function createFooter(): Footer;
@@ -32,23 +45,10 @@ export function createHeader(): Header;
32
45
  */
33
46
  export function createInsert(run: Run): Insert;
34
47
  /**
35
- * @returns {LineSpacing}
36
- */
37
- export function createLineSpacing(): LineSpacing;
38
- /**
39
48
  * @returns {Table}
40
49
  */
41
50
  export function createTable(): Table;
42
51
  /**
43
- * @returns {TableOfContents}
44
- */
45
- export function createTableOfContents(): TableOfContents;
46
- /**
47
- * @param {string} s
48
- * @returns {TableOfContents}
49
- */
50
- export function createTableOfContentsWithInstrText(s: string): TableOfContents;
51
- /**
52
52
  * @param {number} id
53
53
  * @returns {AbstractNumbering}
54
54
  */
@@ -115,28 +115,28 @@ export function createParagraphPropertyChange(): ParagraphPropertyChange;
115
115
  */
116
116
  export function createParagraph(): Paragraph;
117
117
  /**
118
- * @returns {Docx}
118
+ * @param {string} style_id
119
+ * @param {number} style_type
120
+ * @returns {Style}
119
121
  */
120
- export function createDocx(): Docx;
122
+ export function createStyle(style_id: string, style_type: number): Style;
121
123
  /**
122
- * @returns {PageMargin}
124
+ * @param {number} level
125
+ * @returns {LevelOverride}
123
126
  */
124
- export function createPageMargin(): PageMargin;
127
+ export function createLevelOverride(level: number): LevelOverride;
125
128
  /**
126
129
  * @returns {Run}
127
130
  */
128
131
  export function createRun(): Run;
129
132
  /**
130
- * @param {string} style_id
131
- * @param {number} style_type
132
- * @returns {Style}
133
+ * @returns {Docx}
133
134
  */
134
- export function createStyle(style_id: string, style_type: number): Style;
135
+ export function createDocx(): Docx;
135
136
  /**
136
- * @param {number} level
137
- * @returns {LevelOverride}
137
+ * @returns {PageMargin}
138
138
  */
139
- export function createLevelOverride(level: number): LevelOverride;
139
+ export function createPageMargin(): PageMargin;
140
140
  /**
141
141
  */
142
142
  export enum BorderType {
@@ -284,14 +284,6 @@ export enum TabValueType {
284
284
  }
285
285
  /**
286
286
  */
287
- export enum BreakType {
288
- Page,
289
- Column,
290
- TextWrapping,
291
- Unsupported,
292
- }
293
- /**
294
- */
295
287
  export enum LineSpacingType {
296
288
  Auto,
297
289
  AtLeast,
@@ -313,6 +305,14 @@ export enum TextDirectionType {
313
305
  }
314
306
  /**
315
307
  */
308
+ export enum BreakType {
309
+ Page,
310
+ Column,
311
+ TextWrapping,
312
+ Unsupported,
313
+ }
314
+ /**
315
+ */
316
316
  export enum ShdType {
317
317
  Nil,
318
318
  Clear,
@@ -355,14 +355,6 @@ export enum ShdType {
355
355
  }
356
356
  /**
357
357
  */
358
- export enum VAlignType {
359
- Top,
360
- Center,
361
- Bottom,
362
- Unsupported,
363
- }
364
- /**
365
- */
366
358
  export enum VertAlignType {
367
359
  Baseline,
368
360
  SuperScript,
@@ -371,6 +363,14 @@ export enum VertAlignType {
371
363
  }
372
364
  /**
373
365
  */
366
+ export enum VAlignType {
367
+ Top,
368
+ Center,
369
+ Bottom,
370
+ Unsupported,
371
+ }
372
+ /**
373
+ */
374
374
  export enum AlignmentType {
375
375
  Both,
376
376
  Center,
@@ -390,12 +390,6 @@ export enum HyperlinkType {
390
390
  }
391
391
  /**
392
392
  */
393
- export enum SpecialIndentKind {
394
- FirstLine,
395
- Hanging,
396
- }
397
- /**
398
- */
399
393
  export enum TabLeaderType {
400
394
  Dot,
401
395
  Heavy,
@@ -427,6 +421,12 @@ export enum PageOrientationType {
427
421
  }
428
422
  /**
429
423
  */
424
+ export enum SpecialIndentKind {
425
+ FirstLine,
426
+ Hanging,
427
+ }
428
+ /**
429
+ */
430
430
  export enum TableAlignmentType {
431
431
  Center,
432
432
  Left,
@@ -1359,6 +1359,11 @@ export class Style {
1359
1359
  */
1360
1360
  underline(line_type: string): Style;
1361
1361
  /**
1362
+ * @param {string} link
1363
+ * @returns {Style}
1364
+ */
1365
+ link(link: string): Style;
1366
+ /**
1362
1367
  * @returns {Style}
1363
1368
  */
1364
1369
  vanish(): Style;
@@ -1705,6 +1710,12 @@ export class TableOfContents {
1705
1710
  */
1706
1711
  dirty(): TableOfContents;
1707
1712
  /**
1713
+ * @param {string} author
1714
+ * @param {string} date
1715
+ * @returns {TableOfContents}
1716
+ */
1717
+ delete(author: string, date: string): TableOfContents;
1718
+ /**
1708
1719
  * @param {Paragraph} p
1709
1720
  * @returns {TableOfContents}
1710
1721
  */
@@ -110,27 +110,22 @@ function passStringToWasm0(arg, malloc, realloc) {
110
110
  return ptr;
111
111
  }
112
112
  /**
113
- * @param {number} position
114
- * @returns {TableCellBorder}
113
+ * @returns {TableOfContents}
115
114
  */
116
- module.exports.createTableCellBorder = function(position) {
117
- var ret = wasm.createTableCellBorder(position);
118
- return TableCellBorder.__wrap(ret);
115
+ module.exports.createTableOfContents = function() {
116
+ var ret = wasm.createTableOfContents();
117
+ return TableOfContents.__wrap(ret);
119
118
  };
120
119
 
121
- let cachegetInt32Memory0 = null;
122
- function getInt32Memory0() {
123
- if (cachegetInt32Memory0 === null || cachegetInt32Memory0.buffer !== wasm.memory.buffer) {
124
- cachegetInt32Memory0 = new Int32Array(wasm.memory.buffer);
125
- }
126
- return cachegetInt32Memory0;
127
- }
128
120
  /**
129
- * @returns {TableRow}
121
+ * @param {string} s
122
+ * @returns {TableOfContents}
130
123
  */
131
- module.exports.createTableRow = function() {
132
- var ret = wasm.createTableRow();
133
- return TableRow.__wrap(ret);
124
+ module.exports.createTableOfContentsWithInstrText = function(s) {
125
+ var ptr0 = passStringToWasm0(s, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
126
+ var len0 = WASM_VECTOR_LEN;
127
+ var ret = wasm.createTableOfContentsWithInstrText(ptr0, len0);
128
+ return TableOfContents.__wrap(ret);
134
129
  };
135
130
 
136
131
  function _assertClass(instance, klass) {
@@ -151,6 +146,38 @@ module.exports.createDelete = function(run) {
151
146
  return Delete.__wrap(ret);
152
147
  };
153
148
 
149
+ /**
150
+ * @returns {LineSpacing}
151
+ */
152
+ module.exports.createLineSpacing = function() {
153
+ var ret = wasm.createLineSpacing();
154
+ return LineSpacing.__wrap(ret);
155
+ };
156
+
157
+ /**
158
+ * @param {number} position
159
+ * @returns {TableCellBorder}
160
+ */
161
+ module.exports.createTableCellBorder = function(position) {
162
+ var ret = wasm.createTableCellBorder(position);
163
+ return TableCellBorder.__wrap(ret);
164
+ };
165
+
166
+ let cachegetInt32Memory0 = null;
167
+ function getInt32Memory0() {
168
+ if (cachegetInt32Memory0 === null || cachegetInt32Memory0.buffer !== wasm.memory.buffer) {
169
+ cachegetInt32Memory0 = new Int32Array(wasm.memory.buffer);
170
+ }
171
+ return cachegetInt32Memory0;
172
+ }
173
+ /**
174
+ * @returns {TableRow}
175
+ */
176
+ module.exports.createTableRow = function() {
177
+ var ret = wasm.createTableRow();
178
+ return TableRow.__wrap(ret);
179
+ };
180
+
154
181
  /**
155
182
  * @returns {Footer}
156
183
  */
@@ -179,14 +206,6 @@ module.exports.createInsert = function(run) {
179
206
  return Insert.__wrap(ret);
180
207
  };
181
208
 
182
- /**
183
- * @returns {LineSpacing}
184
- */
185
- module.exports.createLineSpacing = function() {
186
- var ret = wasm.createLineSpacing();
187
- return LineSpacing.__wrap(ret);
188
- };
189
-
190
209
  /**
191
210
  * @returns {Table}
192
211
  */
@@ -209,25 +228,6 @@ function passArray32ToWasm0(arg, malloc) {
209
228
  WASM_VECTOR_LEN = arg.length;
210
229
  return ptr;
211
230
  }
212
- /**
213
- * @returns {TableOfContents}
214
- */
215
- module.exports.createTableOfContents = function() {
216
- var ret = wasm.createTableOfContents();
217
- return TableOfContents.__wrap(ret);
218
- };
219
-
220
- /**
221
- * @param {string} s
222
- * @returns {TableOfContents}
223
- */
224
- module.exports.createTableOfContentsWithInstrText = function(s) {
225
- var ptr0 = passStringToWasm0(s, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
226
- var len0 = WASM_VECTOR_LEN;
227
- var ret = wasm.createTableOfContentsWithInstrText(ptr0, len0);
228
- return TableOfContents.__wrap(ret);
229
- };
230
-
231
231
  /**
232
232
  * @param {number} id
233
233
  * @returns {AbstractNumbering}
@@ -382,22 +382,24 @@ module.exports.createParagraph = function() {
382
382
  };
383
383
 
384
384
  /**
385
- * @returns {Docx}
385
+ * @param {string} style_id
386
+ * @param {number} style_type
387
+ * @returns {Style}
386
388
  */
387
- module.exports.createDocx = function() {
388
- var ret = wasm.createDocx();
389
- return Docx.__wrap(ret);
389
+ module.exports.createStyle = function(style_id, style_type) {
390
+ var ptr0 = passStringToWasm0(style_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
391
+ var len0 = WASM_VECTOR_LEN;
392
+ var ret = wasm.createStyle(ptr0, len0, style_type);
393
+ return Style.__wrap(ret);
390
394
  };
391
395
 
392
- function getArrayU8FromWasm0(ptr, len) {
393
- return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
394
- }
395
396
  /**
396
- * @returns {PageMargin}
397
+ * @param {number} level
398
+ * @returns {LevelOverride}
397
399
  */
398
- module.exports.createPageMargin = function() {
399
- var ret = wasm.createPageMargin();
400
- return PageMargin.__wrap(ret);
400
+ module.exports.createLevelOverride = function(level) {
401
+ var ret = wasm.createLevelOverride(level);
402
+ return LevelOverride.__wrap(ret);
401
403
  };
402
404
 
403
405
  /**
@@ -409,24 +411,22 @@ module.exports.createRun = function() {
409
411
  };
410
412
 
411
413
  /**
412
- * @param {string} style_id
413
- * @param {number} style_type
414
- * @returns {Style}
414
+ * @returns {Docx}
415
415
  */
416
- module.exports.createStyle = function(style_id, style_type) {
417
- var ptr0 = passStringToWasm0(style_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
418
- var len0 = WASM_VECTOR_LEN;
419
- var ret = wasm.createStyle(ptr0, len0, style_type);
420
- return Style.__wrap(ret);
416
+ module.exports.createDocx = function() {
417
+ var ret = wasm.createDocx();
418
+ return Docx.__wrap(ret);
421
419
  };
422
420
 
421
+ function getArrayU8FromWasm0(ptr, len) {
422
+ return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
423
+ }
423
424
  /**
424
- * @param {number} level
425
- * @returns {LevelOverride}
425
+ * @returns {PageMargin}
426
426
  */
427
- module.exports.createLevelOverride = function(level) {
428
- var ret = wasm.createLevelOverride(level);
429
- return LevelOverride.__wrap(ret);
427
+ module.exports.createPageMargin = function() {
428
+ var ret = wasm.createPageMargin();
429
+ return PageMargin.__wrap(ret);
430
430
  };
431
431
 
432
432
  /**
@@ -502,31 +502,28 @@ module.exports.RelativeFromVType = Object.freeze({ BottomMargin:0,"0":"BottomMar
502
502
  module.exports.TabValueType = Object.freeze({ Bar:0,"0":"Bar",Center:1,"1":"Center",Clear:2,"2":"Clear",Decimal:3,"3":"Decimal",End:4,"4":"End",Right:5,"5":"Right",Num:6,"6":"Num",Start:7,"7":"Start",Left:8,"8":"Left", });
503
503
  /**
504
504
  */
505
- module.exports.BreakType = Object.freeze({ Page:0,"0":"Page",Column:1,"1":"Column",TextWrapping:2,"2":"TextWrapping",Unsupported:3,"3":"Unsupported", });
506
- /**
507
- */
508
505
  module.exports.LineSpacingType = Object.freeze({ Auto:0,"0":"Auto",AtLeast:1,"1":"AtLeast",Exact:2,"2":"Exact", });
509
506
  /**
510
507
  */
511
508
  module.exports.TextDirectionType = Object.freeze({ Lr:0,"0":"Lr",LrV:1,"1":"LrV",Rl:2,"2":"Rl",RlV:3,"3":"RlV",Tb:4,"4":"Tb",TbV:5,"5":"TbV",TbRlV:6,"6":"TbRlV",TbRl:7,"7":"TbRl",BtLr:8,"8":"BtLr",LrTbV:9,"9":"LrTbV", });
512
509
  /**
513
510
  */
514
- module.exports.ShdType = Object.freeze({ Nil:0,"0":"Nil",Clear:1,"1":"Clear",Solid:2,"2":"Solid",HorzStripe:3,"3":"HorzStripe",VertStripe:4,"4":"VertStripe",ReverseDiagStripe:5,"5":"ReverseDiagStripe",DiagStripe:6,"6":"DiagStripe",HorzCross:7,"7":"HorzCross",DiagCross:8,"8":"DiagCross",ThinHorzStripe:9,"9":"ThinHorzStripe",ThinVertStripe:10,"10":"ThinVertStripe",ThinReverseDiagStripe:11,"11":"ThinReverseDiagStripe",ThinDiagStripe:12,"12":"ThinDiagStripe",ThinHorzCross:13,"13":"ThinHorzCross",ThinDiagCross:14,"14":"ThinDiagCross",Pct5:15,"15":"Pct5",Pct10:16,"16":"Pct10",Pct12:17,"17":"Pct12",Pct15:18,"18":"Pct15",Pct20:19,"19":"Pct20",Pct25:20,"20":"Pct25",Pct30:21,"21":"Pct30",Pct35:22,"22":"Pct35",Pct37:23,"23":"Pct37",Pct40:24,"24":"Pct40",Pct45:25,"25":"Pct45",Pct50:26,"26":"Pct50",Pct55:27,"27":"Pct55",Pct60:28,"28":"Pct60",Pct62:29,"29":"Pct62",Pct65:30,"30":"Pct65",Pct70:31,"31":"Pct70",Pct75:32,"32":"Pct75",Pct80:33,"33":"Pct80",Pct85:34,"34":"Pct85",Pct87:35,"35":"Pct87",Pct90:36,"36":"Pct90",Pct95:37,"37":"Pct95", });
511
+ module.exports.BreakType = Object.freeze({ Page:0,"0":"Page",Column:1,"1":"Column",TextWrapping:2,"2":"TextWrapping",Unsupported:3,"3":"Unsupported", });
515
512
  /**
516
513
  */
517
- module.exports.VAlignType = Object.freeze({ Top:0,"0":"Top",Center:1,"1":"Center",Bottom:2,"2":"Bottom",Unsupported:3,"3":"Unsupported", });
514
+ module.exports.ShdType = Object.freeze({ Nil:0,"0":"Nil",Clear:1,"1":"Clear",Solid:2,"2":"Solid",HorzStripe:3,"3":"HorzStripe",VertStripe:4,"4":"VertStripe",ReverseDiagStripe:5,"5":"ReverseDiagStripe",DiagStripe:6,"6":"DiagStripe",HorzCross:7,"7":"HorzCross",DiagCross:8,"8":"DiagCross",ThinHorzStripe:9,"9":"ThinHorzStripe",ThinVertStripe:10,"10":"ThinVertStripe",ThinReverseDiagStripe:11,"11":"ThinReverseDiagStripe",ThinDiagStripe:12,"12":"ThinDiagStripe",ThinHorzCross:13,"13":"ThinHorzCross",ThinDiagCross:14,"14":"ThinDiagCross",Pct5:15,"15":"Pct5",Pct10:16,"16":"Pct10",Pct12:17,"17":"Pct12",Pct15:18,"18":"Pct15",Pct20:19,"19":"Pct20",Pct25:20,"20":"Pct25",Pct30:21,"21":"Pct30",Pct35:22,"22":"Pct35",Pct37:23,"23":"Pct37",Pct40:24,"24":"Pct40",Pct45:25,"25":"Pct45",Pct50:26,"26":"Pct50",Pct55:27,"27":"Pct55",Pct60:28,"28":"Pct60",Pct62:29,"29":"Pct62",Pct65:30,"30":"Pct65",Pct70:31,"31":"Pct70",Pct75:32,"32":"Pct75",Pct80:33,"33":"Pct80",Pct85:34,"34":"Pct85",Pct87:35,"35":"Pct87",Pct90:36,"36":"Pct90",Pct95:37,"37":"Pct95", });
518
515
  /**
519
516
  */
520
517
  module.exports.VertAlignType = Object.freeze({ Baseline:0,"0":"Baseline",SuperScript:1,"1":"SuperScript",SubScript:2,"2":"SubScript",Unsupported:3,"3":"Unsupported", });
521
518
  /**
522
519
  */
523
- module.exports.AlignmentType = Object.freeze({ Both:0,"0":"Both",Center:1,"1":"Center",Distribute:2,"2":"Distribute",Start:3,"3":"Start",End:4,"4":"End",Left:5,"5":"Left",Right:6,"6":"Right",Justified:7,"7":"Justified",Unsupported:8,"8":"Unsupported", });
520
+ module.exports.VAlignType = Object.freeze({ Top:0,"0":"Top",Center:1,"1":"Center",Bottom:2,"2":"Bottom",Unsupported:3,"3":"Unsupported", });
524
521
  /**
525
522
  */
526
- module.exports.HyperlinkType = Object.freeze({ Anchor:0,"0":"Anchor",External:1,"1":"External", });
523
+ module.exports.AlignmentType = Object.freeze({ Both:0,"0":"Both",Center:1,"1":"Center",Distribute:2,"2":"Distribute",Start:3,"3":"Start",End:4,"4":"End",Left:5,"5":"Left",Right:6,"6":"Right",Justified:7,"7":"Justified",Unsupported:8,"8":"Unsupported", });
527
524
  /**
528
525
  */
529
- module.exports.SpecialIndentKind = Object.freeze({ FirstLine:0,"0":"FirstLine",Hanging:1,"1":"Hanging", });
526
+ module.exports.HyperlinkType = Object.freeze({ Anchor:0,"0":"Anchor",External:1,"1":"External", });
530
527
  /**
531
528
  */
532
529
  module.exports.TabLeaderType = Object.freeze({ Dot:0,"0":"Dot",Heavy:1,"1":"Heavy",Hyphen:2,"2":"Hyphen",MiddleDot:3,"3":"MiddleDot",None:4,"4":"None",Underscore:5,"5":"Underscore", });
@@ -541,6 +538,9 @@ module.exports.FieldCharType = Object.freeze({ Begin:0,"0":"Begin",Separate:1,"1
541
538
  module.exports.PageOrientationType = Object.freeze({ Landscape:0,"0":"Landscape",Portrait:1,"1":"Portrait", });
542
539
  /**
543
540
  */
541
+ module.exports.SpecialIndentKind = Object.freeze({ FirstLine:0,"0":"FirstLine",Hanging:1,"1":"Hanging", });
542
+ /**
543
+ */
544
544
  module.exports.TableAlignmentType = Object.freeze({ Center:0,"0":"Center",Left:1,"1":"Left",Right:2,"2":"Right", });
545
545
  /**
546
546
  */
@@ -1353,7 +1353,7 @@ class Insert {
1353
1353
  const ptr = this.__destroy_into_raw();
1354
1354
  var ptr0 = passStringToWasm0(author, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1355
1355
  var len0 = WASM_VECTOR_LEN;
1356
- var ret = wasm.delete_date(ptr, ptr0, len0);
1356
+ var ret = wasm.insert_author(ptr, ptr0, len0);
1357
1357
  return Insert.__wrap(ret);
1358
1358
  }
1359
1359
  /**
@@ -2629,6 +2629,17 @@ class Style {
2629
2629
  return Style.__wrap(ret);
2630
2630
  }
2631
2631
  /**
2632
+ * @param {string} link
2633
+ * @returns {Style}
2634
+ */
2635
+ link(link) {
2636
+ const ptr = this.__destroy_into_raw();
2637
+ var ptr0 = passStringToWasm0(link, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2638
+ var len0 = WASM_VECTOR_LEN;
2639
+ var ret = wasm.style_link(ptr, ptr0, len0);
2640
+ return Style.__wrap(ret);
2641
+ }
2642
+ /**
2632
2643
  * @returns {Style}
2633
2644
  */
2634
2645
  vanish() {
@@ -3359,6 +3370,20 @@ class TableOfContents {
3359
3370
  return TableOfContents.__wrap(ret);
3360
3371
  }
3361
3372
  /**
3373
+ * @param {string} author
3374
+ * @param {string} date
3375
+ * @returns {TableOfContents}
3376
+ */
3377
+ delete(author, date) {
3378
+ const ptr = this.__destroy_into_raw();
3379
+ var ptr0 = passStringToWasm0(author, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3380
+ var len0 = WASM_VECTOR_LEN;
3381
+ var ptr1 = passStringToWasm0(date, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3382
+ var len1 = WASM_VECTOR_LEN;
3383
+ var ret = wasm.tableofcontents_delete(ptr, ptr0, len0, ptr1, len1);
3384
+ return TableOfContents.__wrap(ret);
3385
+ }
3386
+ /**
3362
3387
  * @param {Paragraph} p
3363
3388
  * @returns {TableOfContents}
3364
3389
  */
Binary file