@alineco/docx 9.6.1-fork.1 → 9.6.1-fork.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -19979,6 +19979,49 @@ var DeletedTextRunWrapper = class extends XmlComponent {
19979
19979
  }
19980
19980
  };
19981
19981
  //#endregion
19982
+ //#region \0@oxc-project+runtime@0.120.0/helpers/objectWithoutPropertiesLoose.js
19983
+ function _objectWithoutPropertiesLoose(r, e) {
19984
+ if (null == r) return {};
19985
+ var t = {};
19986
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
19987
+ if (e.includes(n)) continue;
19988
+ t[n] = r[n];
19989
+ }
19990
+ return t;
19991
+ }
19992
+ //#endregion
19993
+ //#region \0@oxc-project+runtime@0.120.0/helpers/objectWithoutProperties.js
19994
+ function _objectWithoutProperties(e, t) {
19995
+ if (null == e) return {};
19996
+ var o, r, i = _objectWithoutPropertiesLoose(e, t);
19997
+ if (Object.getOwnPropertySymbols) {
19998
+ var s = Object.getOwnPropertySymbols(e);
19999
+ for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
20000
+ }
20001
+ return i;
20002
+ }
20003
+ //#endregion
20004
+ //#region src/file/track-revision/track-revision-components/inserted-deleted-text-run.ts
20005
+ /**
20006
+ * Inserted-then-deleted text run module for track changes.
20007
+ *
20008
+ * Represents a tracked change layered on top of another tracked change: text
20009
+ * that one reviewer inserted and a second reviewer subsequently deleted.
20010
+ */
20011
+ var _excluded$2 = ["insertion", "deletion"];
20012
+ var InsertedDeletedTextRun = class extends XmlComponent {
20013
+ constructor(options) {
20014
+ super("w:ins");
20015
+ const { insertion, deletion } = options, runOptions = _objectWithoutProperties(options, _excluded$2);
20016
+ this.root.push(new ChangeAttributes({
20017
+ id: insertion.id,
20018
+ author: insertion.author,
20019
+ date: insertion.date
20020
+ }));
20021
+ this.addChildElement(new DeletedTextRun(_objectSpread2(_objectSpread2({}, runOptions), deletion)));
20022
+ }
20023
+ };
20024
+ //#endregion
19982
20025
  //#region src/file/track-revision/track-revision-components/inserted-table-row.ts
19983
20026
  var InsertedTableRow = class extends XmlComponent {
19984
20027
  constructor(options) {
@@ -26841,28 +26884,6 @@ var StructuredDocumentTagProperties = class extends XmlComponent {
26841
26884
  }
26842
26885
  };
26843
26886
  //#endregion
26844
- //#region \0@oxc-project+runtime@0.120.0/helpers/objectWithoutPropertiesLoose.js
26845
- function _objectWithoutPropertiesLoose(r, e) {
26846
- if (null == r) return {};
26847
- var t = {};
26848
- for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
26849
- if (e.includes(n)) continue;
26850
- t[n] = r[n];
26851
- }
26852
- return t;
26853
- }
26854
- //#endregion
26855
- //#region \0@oxc-project+runtime@0.120.0/helpers/objectWithoutProperties.js
26856
- function _objectWithoutProperties(e, t) {
26857
- if (null == e) return {};
26858
- var o, r, i = _objectWithoutPropertiesLoose(e, t);
26859
- if (Object.getOwnPropertySymbols) {
26860
- var s = Object.getOwnPropertySymbols(e);
26861
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
26862
- }
26863
- return i;
26864
- }
26865
- //#endregion
26866
26887
  //#region src/file/table-of-contents/table-of-contents.ts
26867
26888
  /**
26868
26889
  * Table of Contents module for WordprocessingML documents.
@@ -32684,6 +32705,7 @@ exports.ImageRun = ImageRun;
32684
32705
  exports.ImportedRootElementAttributes = ImportedRootElementAttributes;
32685
32706
  exports.ImportedXmlComponent = ImportedXmlComponent;
32686
32707
  exports.InitializableXmlComponent = InitializableXmlComponent;
32708
+ exports.InsertedDeletedTextRun = InsertedDeletedTextRun;
32687
32709
  exports.InsertedTableCell = InsertedTableCell;
32688
32710
  exports.InsertedTableRow = InsertedTableRow;
32689
32711
  exports.InsertedTextRun = InsertedTextRun;
package/dist/index.d.cts CHANGED
@@ -1298,6 +1298,11 @@ export declare type IIndentAttributesProperties = {
1298
1298
  readonly firstLine?: number | PositiveUniversalMeasure;
1299
1299
  };
1300
1300
 
1301
+ export declare type IInsertedDeletedTextRunOptions = IRunOptions & {
1302
+ readonly insertion: IChangedAttributesProperties;
1303
+ readonly deletion: IChangedAttributesProperties;
1304
+ };
1305
+
1301
1306
  declare type IInsertedRunOptions = IChangedAttributesProperties & IRunOptions;
1302
1307
 
1303
1308
  export declare type IInternalHyperlinkOptions = {
@@ -1485,6 +1490,10 @@ declare type INonVisualShapePropertiesOptions = {
1485
1490
 
1486
1491
  export declare type InputDataType = Buffer | string | number[] | Uint8Array | ArrayBuffer | Blob | NodeJS.ReadableStream | default_2;
1487
1492
 
1493
+ export declare class InsertedDeletedTextRun extends XmlComponent {
1494
+ constructor(options: IInsertedDeletedTextRunOptions);
1495
+ }
1496
+
1488
1497
  export declare class InsertedTableCell extends XmlComponent {
1489
1498
  constructor(options: IChangedAttributesProperties);
1490
1499
  }
package/dist/index.d.ts CHANGED
@@ -1298,6 +1298,11 @@ export declare type IIndentAttributesProperties = {
1298
1298
  readonly firstLine?: number | PositiveUniversalMeasure;
1299
1299
  };
1300
1300
 
1301
+ export declare type IInsertedDeletedTextRunOptions = IRunOptions & {
1302
+ readonly insertion: IChangedAttributesProperties;
1303
+ readonly deletion: IChangedAttributesProperties;
1304
+ };
1305
+
1301
1306
  declare type IInsertedRunOptions = IChangedAttributesProperties & IRunOptions;
1302
1307
 
1303
1308
  export declare type IInternalHyperlinkOptions = {
@@ -1485,6 +1490,10 @@ declare type INonVisualShapePropertiesOptions = {
1485
1490
 
1486
1491
  export declare type InputDataType = Buffer | string | number[] | Uint8Array | ArrayBuffer | Blob | NodeJS.ReadableStream | default_2;
1487
1492
 
1493
+ export declare class InsertedDeletedTextRun extends XmlComponent {
1494
+ constructor(options: IInsertedDeletedTextRunOptions);
1495
+ }
1496
+
1488
1497
  export declare class InsertedTableCell extends XmlComponent {
1489
1498
  constructor(options: IChangedAttributesProperties);
1490
1499
  }
@@ -19980,6 +19980,49 @@ var docx = (function(exports) {
19980
19980
  }
19981
19981
  };
19982
19982
  //#endregion
19983
+ //#region \0@oxc-project+runtime@0.120.0/helpers/objectWithoutPropertiesLoose.js
19984
+ function _objectWithoutPropertiesLoose(r, e) {
19985
+ if (null == r) return {};
19986
+ var t = {};
19987
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
19988
+ if (e.includes(n)) continue;
19989
+ t[n] = r[n];
19990
+ }
19991
+ return t;
19992
+ }
19993
+ //#endregion
19994
+ //#region \0@oxc-project+runtime@0.120.0/helpers/objectWithoutProperties.js
19995
+ function _objectWithoutProperties(e, t) {
19996
+ if (null == e) return {};
19997
+ var o, r, i = _objectWithoutPropertiesLoose(e, t);
19998
+ if (Object.getOwnPropertySymbols) {
19999
+ var s = Object.getOwnPropertySymbols(e);
20000
+ for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
20001
+ }
20002
+ return i;
20003
+ }
20004
+ //#endregion
20005
+ //#region src/file/track-revision/track-revision-components/inserted-deleted-text-run.ts
20006
+ /**
20007
+ * Inserted-then-deleted text run module for track changes.
20008
+ *
20009
+ * Represents a tracked change layered on top of another tracked change: text
20010
+ * that one reviewer inserted and a second reviewer subsequently deleted.
20011
+ */
20012
+ var _excluded$2 = ["insertion", "deletion"];
20013
+ var InsertedDeletedTextRun = class extends XmlComponent {
20014
+ constructor(options) {
20015
+ super("w:ins");
20016
+ const { insertion, deletion } = options, runOptions = _objectWithoutProperties(options, _excluded$2);
20017
+ this.root.push(new ChangeAttributes({
20018
+ id: insertion.id,
20019
+ author: insertion.author,
20020
+ date: insertion.date
20021
+ }));
20022
+ this.addChildElement(new DeletedTextRun(_objectSpread2(_objectSpread2({}, runOptions), deletion)));
20023
+ }
20024
+ };
20025
+ //#endregion
19983
20026
  //#region src/file/track-revision/track-revision-components/inserted-table-row.ts
19984
20027
  var InsertedTableRow = class extends XmlComponent {
19985
20028
  constructor(options) {
@@ -26842,28 +26885,6 @@ var docx = (function(exports) {
26842
26885
  }
26843
26886
  };
26844
26887
  //#endregion
26845
- //#region \0@oxc-project+runtime@0.120.0/helpers/objectWithoutPropertiesLoose.js
26846
- function _objectWithoutPropertiesLoose(r, e) {
26847
- if (null == r) return {};
26848
- var t = {};
26849
- for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
26850
- if (e.includes(n)) continue;
26851
- t[n] = r[n];
26852
- }
26853
- return t;
26854
- }
26855
- //#endregion
26856
- //#region \0@oxc-project+runtime@0.120.0/helpers/objectWithoutProperties.js
26857
- function _objectWithoutProperties(e, t) {
26858
- if (null == e) return {};
26859
- var o, r, i = _objectWithoutPropertiesLoose(e, t);
26860
- if (Object.getOwnPropertySymbols) {
26861
- var s = Object.getOwnPropertySymbols(e);
26862
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
26863
- }
26864
- return i;
26865
- }
26866
- //#endregion
26867
26888
  //#region src/file/table-of-contents/table-of-contents.ts
26868
26889
  /**
26869
26890
  * Table of Contents module for WordprocessingML documents.
@@ -32685,6 +32706,7 @@ while (n === a[++i] && n === a[++i] && n === a[++i] && n === a[++i] && n === a[+
32685
32706
  exports.ImportedRootElementAttributes = ImportedRootElementAttributes;
32686
32707
  exports.ImportedXmlComponent = ImportedXmlComponent;
32687
32708
  exports.InitializableXmlComponent = InitializableXmlComponent;
32709
+ exports.InsertedDeletedTextRun = InsertedDeletedTextRun;
32688
32710
  exports.InsertedTableCell = InsertedTableCell;
32689
32711
  exports.InsertedTableRow = InsertedTableRow;
32690
32712
  exports.InsertedTextRun = InsertedTextRun;
package/dist/index.mjs CHANGED
@@ -19982,6 +19982,49 @@ var DeletedTextRunWrapper = class extends XmlComponent {
19982
19982
  }
19983
19983
  };
19984
19984
  //#endregion
19985
+ //#region \0@oxc-project+runtime@0.120.0/helpers/objectWithoutPropertiesLoose.js
19986
+ function _objectWithoutPropertiesLoose(r, e) {
19987
+ if (null == r) return {};
19988
+ var t = {};
19989
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
19990
+ if (e.includes(n)) continue;
19991
+ t[n] = r[n];
19992
+ }
19993
+ return t;
19994
+ }
19995
+ //#endregion
19996
+ //#region \0@oxc-project+runtime@0.120.0/helpers/objectWithoutProperties.js
19997
+ function _objectWithoutProperties(e, t) {
19998
+ if (null == e) return {};
19999
+ var o, r, i = _objectWithoutPropertiesLoose(e, t);
20000
+ if (Object.getOwnPropertySymbols) {
20001
+ var s = Object.getOwnPropertySymbols(e);
20002
+ for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
20003
+ }
20004
+ return i;
20005
+ }
20006
+ //#endregion
20007
+ //#region src/file/track-revision/track-revision-components/inserted-deleted-text-run.ts
20008
+ /**
20009
+ * Inserted-then-deleted text run module for track changes.
20010
+ *
20011
+ * Represents a tracked change layered on top of another tracked change: text
20012
+ * that one reviewer inserted and a second reviewer subsequently deleted.
20013
+ */
20014
+ var _excluded$2 = ["insertion", "deletion"];
20015
+ var InsertedDeletedTextRun = class extends XmlComponent {
20016
+ constructor(options) {
20017
+ super("w:ins");
20018
+ const { insertion, deletion } = options, runOptions = _objectWithoutProperties(options, _excluded$2);
20019
+ this.root.push(new ChangeAttributes({
20020
+ id: insertion.id,
20021
+ author: insertion.author,
20022
+ date: insertion.date
20023
+ }));
20024
+ this.addChildElement(new DeletedTextRun(_objectSpread2(_objectSpread2({}, runOptions), deletion)));
20025
+ }
20026
+ };
20027
+ //#endregion
19985
20028
  //#region src/file/track-revision/track-revision-components/inserted-table-row.ts
19986
20029
  var InsertedTableRow = class extends XmlComponent {
19987
20030
  constructor(options) {
@@ -26844,28 +26887,6 @@ var StructuredDocumentTagProperties = class extends XmlComponent {
26844
26887
  }
26845
26888
  };
26846
26889
  //#endregion
26847
- //#region \0@oxc-project+runtime@0.120.0/helpers/objectWithoutPropertiesLoose.js
26848
- function _objectWithoutPropertiesLoose(r, e) {
26849
- if (null == r) return {};
26850
- var t = {};
26851
- for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
26852
- if (e.includes(n)) continue;
26853
- t[n] = r[n];
26854
- }
26855
- return t;
26856
- }
26857
- //#endregion
26858
- //#region \0@oxc-project+runtime@0.120.0/helpers/objectWithoutProperties.js
26859
- function _objectWithoutProperties(e, t) {
26860
- if (null == e) return {};
26861
- var o, r, i = _objectWithoutPropertiesLoose(e, t);
26862
- if (Object.getOwnPropertySymbols) {
26863
- var s = Object.getOwnPropertySymbols(e);
26864
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
26865
- }
26866
- return i;
26867
- }
26868
- //#endregion
26869
26890
  //#region src/file/table-of-contents/table-of-contents.ts
26870
26891
  /**
26871
26892
  * Table of Contents module for WordprocessingML documents.
@@ -32604,4 +32625,4 @@ var findPatchKeys = (text) => {
32604
32625
  return (_text$match = text.match(pattern)) !== null && _text$match !== void 0 ? _text$match : [];
32605
32626
  };
32606
32627
  //#endregion
32607
- export { AbstractNumbering, AlignmentType, AnnotationReference, Attributes, BaseXmlComponent, Body, Bookmark, BookmarkEnd, BookmarkStart, Border, BorderStyle, BuilderElement, CarriageReturn, CellMerge, CellMergeAttributes, CharacterSet, CheckBox, CheckBoxSymbolElement, CheckBoxUtil, Column, ColumnBreak, Comment, CommentRangeEnd, CommentRangeStart, CommentReference, Comments, CommentsExtended, CommentsExtensible, CommentsIds, ConcreteHyperlink, ConcreteNumbering, ContinuationSeparator, DayLong, DayShort, DeletedTableCell, DeletedTableRow, DeletedTextRun, File as Document, File, DocumentAttributeNamespaces, DocumentAttributes, DocumentBackground, DocumentBackgroundAttributes, DocumentDefaults, DocumentGridType, Drawing, DropCapType, EMPTY_OBJECT, EmphasisMarkType, EmptyElement, EndnoteIdReference, EndnoteReference, EndnoteReferenceRun, EndnoteReferenceRunAttributes, Endnotes, ExternalHyperlink, FileChild, FootNoteReferenceRunAttributes, FootNotes, Footer, FooterWrapper, FootnoteReference, FootnoteReferenceElement, FootnoteReferenceRun, FrameAnchorType, FrameWrap, GridSpan, Header, HeaderFooterReferenceType, HeaderFooterType, HeaderWrapper, HeadingLevel, HeightRule, HighlightColor, HorizontalPositionAlign, HorizontalPositionRelativeFrom, HpsMeasureElement, HyperlinkType, IgnoreIfEmptyXmlComponent, ImageRun, ImportedRootElementAttributes, ImportedXmlComponent, InitializableXmlComponent, InsertedTableCell, InsertedTableRow, InsertedTextRun, InternalHyperlink, LastRenderedPageBreak, LeaderType, Level, LevelBase, LevelForOverride, LevelFormat, LevelOverride, LevelSuffix, LineNumberRestartFormat, LineRuleType, Math$1 as Math, MathAngledBrackets, MathCurlyBrackets, MathDegree, MathDenominator, MathFraction, MathFunction, MathFunctionName, MathFunctionProperties, MathIntegral, MathLimit, MathLimitLower, MathLimitUpper, MathNumerator, MathPreSubSuperScript, MathRadical, MathRadicalProperties, MathRoundBrackets, MathRun, MathSquareBrackets, MathSubScript, MathSubSuperScript, MathSum, MathSuperScript, Media, MonthLong, MonthShort, NextAttributeComponent, NoBreakHyphen, NumberFormat, NumberProperties, NumberValueElement, NumberedItemReference, NumberedItemReferenceFormat, Numbering, OnOffElement, OverlapType, Packer, PageBorderDisplay, PageBorderOffsetFrom, PageBorderZOrder, PageBorders, PageBreak, PageBreakBefore, PageNumber, PageNumberElement, PageNumberSeparator, PageOrientation, PageReference, PageTextDirection, PageTextDirectionType, Paragraph, ParagraphProperties, ParagraphPropertiesChange, ParagraphPropertiesDefaults, ParagraphRunProperties, PatchType, PositionalTab, PositionalTabAlignment, PositionalTabLeader, PositionalTabRelativeTo, PrettifyType, RelativeHorizontalPosition, RelativeVerticalPosition, Run, RunProperties, RunPropertiesChange, RunPropertiesDefaults, SectionProperties, SectionPropertiesChange, SectionType, Separator, SequentialIdentifier, ShadingType, SimpleField, SimpleMailMergeField, SoftHyphen, SpaceType, StringContainer, StringEnumValueElement, StringValueElement, StyleForCharacter, StyleForParagraph, StyleLevel, Styles, SymbolRun, TDirection, Tab, TabStopPosition, TabStopType, Table, TableAnchorType, TableBorders, TableCell, TableCellBorders, TableLayoutType, TableOfContents, TableProperties, TableRow, TableRowProperties, TableRowPropertiesChange, TextDirection, TextEffect, TextRun, TextWrappingSide, TextWrappingType, Textbox, ThematicBreak, UnderlineType, VerticalAlign, VerticalAlignSection, VerticalAlignTable, VerticalAnchor, VerticalMerge, VerticalMergeRevisionType, VerticalMergeType, VerticalPositionAlign, VerticalPositionRelativeFrom, WORKAROUND2, WORKAROUND3, WORKAROUND4, WidthType, WpgGroupRun, WpsShapeRun, XmlAttributeComponent, XmlComponent, YearLong, YearShort, abstractNumUniqueNumericIdGen, bookmarkUniqueNumericIdGen, commentIdToDurableId, commentIdToParaId, concreteNumUniqueNumericIdGen, convertInchesToTwip, convertMillimetersToTwip, convertToXmlComponent, createAlignment, createBodyProperties, createBorderElement, createColumns, createDocumentGrid, createDotEmphasisMark, createEmphasisMark, createFrameProperties, createHeaderFooterReference, createHorizontalPosition, createIndent, createLineNumberType, createMathAccentCharacter, createMathBase, createMathLimitLocation, createMathNAryProperties, createMathPreSubSuperScriptProperties, createMathSubScriptElement, createMathSubScriptProperties, createMathSubSuperScriptProperties, createMathSuperScriptElement, createMathSuperScriptProperties, createOutlineLevel, createPageMargin, createPageNumberType, createPageSize, createParagraphStyle, createRunFonts, createSectionType, createShading, createSimplePos, createSpacing, createStringElement, createTabStop, createTabStopItem, createTableFloatProperties, createTableLayout, createTableLook, createTableRowHeight, createTableWidthElement, createTransformation, createUnderline, createVerticalAlign, createVerticalPosition, createWrapNone, createWrapSquare, createWrapTight, createWrapTopAndBottom, dateTimeValue, decimalNumber, docPropertiesUniqueNumericIdGen, eighthPointMeasureValue, encodeUtf8, hashedId, hexColorValue, hpsMeasureValue, longHexNumber, measurementOrPercentValue, patchDetector, patchDocument, percentageValue, pointMeasureValue, positiveUniversalMeasureValue, sectionMarginDefaults, sectionPageSizeDefaults, shortHexNumber, signedHpsMeasureValue, signedTwipsMeasureValue, standardizeData, twipsMeasureValue, uCharHexNumber, uniqueId, uniqueNumericIdCreator, uniqueUuid, universalMeasureValue, unsignedDecimalNumber };
32628
+ export { AbstractNumbering, AlignmentType, AnnotationReference, Attributes, BaseXmlComponent, Body, Bookmark, BookmarkEnd, BookmarkStart, Border, BorderStyle, BuilderElement, CarriageReturn, CellMerge, CellMergeAttributes, CharacterSet, CheckBox, CheckBoxSymbolElement, CheckBoxUtil, Column, ColumnBreak, Comment, CommentRangeEnd, CommentRangeStart, CommentReference, Comments, CommentsExtended, CommentsExtensible, CommentsIds, ConcreteHyperlink, ConcreteNumbering, ContinuationSeparator, DayLong, DayShort, DeletedTableCell, DeletedTableRow, DeletedTextRun, File as Document, File, DocumentAttributeNamespaces, DocumentAttributes, DocumentBackground, DocumentBackgroundAttributes, DocumentDefaults, DocumentGridType, Drawing, DropCapType, EMPTY_OBJECT, EmphasisMarkType, EmptyElement, EndnoteIdReference, EndnoteReference, EndnoteReferenceRun, EndnoteReferenceRunAttributes, Endnotes, ExternalHyperlink, FileChild, FootNoteReferenceRunAttributes, FootNotes, Footer, FooterWrapper, FootnoteReference, FootnoteReferenceElement, FootnoteReferenceRun, FrameAnchorType, FrameWrap, GridSpan, Header, HeaderFooterReferenceType, HeaderFooterType, HeaderWrapper, HeadingLevel, HeightRule, HighlightColor, HorizontalPositionAlign, HorizontalPositionRelativeFrom, HpsMeasureElement, HyperlinkType, IgnoreIfEmptyXmlComponent, ImageRun, ImportedRootElementAttributes, ImportedXmlComponent, InitializableXmlComponent, InsertedDeletedTextRun, InsertedTableCell, InsertedTableRow, InsertedTextRun, InternalHyperlink, LastRenderedPageBreak, LeaderType, Level, LevelBase, LevelForOverride, LevelFormat, LevelOverride, LevelSuffix, LineNumberRestartFormat, LineRuleType, Math$1 as Math, MathAngledBrackets, MathCurlyBrackets, MathDegree, MathDenominator, MathFraction, MathFunction, MathFunctionName, MathFunctionProperties, MathIntegral, MathLimit, MathLimitLower, MathLimitUpper, MathNumerator, MathPreSubSuperScript, MathRadical, MathRadicalProperties, MathRoundBrackets, MathRun, MathSquareBrackets, MathSubScript, MathSubSuperScript, MathSum, MathSuperScript, Media, MonthLong, MonthShort, NextAttributeComponent, NoBreakHyphen, NumberFormat, NumberProperties, NumberValueElement, NumberedItemReference, NumberedItemReferenceFormat, Numbering, OnOffElement, OverlapType, Packer, PageBorderDisplay, PageBorderOffsetFrom, PageBorderZOrder, PageBorders, PageBreak, PageBreakBefore, PageNumber, PageNumberElement, PageNumberSeparator, PageOrientation, PageReference, PageTextDirection, PageTextDirectionType, Paragraph, ParagraphProperties, ParagraphPropertiesChange, ParagraphPropertiesDefaults, ParagraphRunProperties, PatchType, PositionalTab, PositionalTabAlignment, PositionalTabLeader, PositionalTabRelativeTo, PrettifyType, RelativeHorizontalPosition, RelativeVerticalPosition, Run, RunProperties, RunPropertiesChange, RunPropertiesDefaults, SectionProperties, SectionPropertiesChange, SectionType, Separator, SequentialIdentifier, ShadingType, SimpleField, SimpleMailMergeField, SoftHyphen, SpaceType, StringContainer, StringEnumValueElement, StringValueElement, StyleForCharacter, StyleForParagraph, StyleLevel, Styles, SymbolRun, TDirection, Tab, TabStopPosition, TabStopType, Table, TableAnchorType, TableBorders, TableCell, TableCellBorders, TableLayoutType, TableOfContents, TableProperties, TableRow, TableRowProperties, TableRowPropertiesChange, TextDirection, TextEffect, TextRun, TextWrappingSide, TextWrappingType, Textbox, ThematicBreak, UnderlineType, VerticalAlign, VerticalAlignSection, VerticalAlignTable, VerticalAnchor, VerticalMerge, VerticalMergeRevisionType, VerticalMergeType, VerticalPositionAlign, VerticalPositionRelativeFrom, WORKAROUND2, WORKAROUND3, WORKAROUND4, WidthType, WpgGroupRun, WpsShapeRun, XmlAttributeComponent, XmlComponent, YearLong, YearShort, abstractNumUniqueNumericIdGen, bookmarkUniqueNumericIdGen, commentIdToDurableId, commentIdToParaId, concreteNumUniqueNumericIdGen, convertInchesToTwip, convertMillimetersToTwip, convertToXmlComponent, createAlignment, createBodyProperties, createBorderElement, createColumns, createDocumentGrid, createDotEmphasisMark, createEmphasisMark, createFrameProperties, createHeaderFooterReference, createHorizontalPosition, createIndent, createLineNumberType, createMathAccentCharacter, createMathBase, createMathLimitLocation, createMathNAryProperties, createMathPreSubSuperScriptProperties, createMathSubScriptElement, createMathSubScriptProperties, createMathSubSuperScriptProperties, createMathSuperScriptElement, createMathSuperScriptProperties, createOutlineLevel, createPageMargin, createPageNumberType, createPageSize, createParagraphStyle, createRunFonts, createSectionType, createShading, createSimplePos, createSpacing, createStringElement, createTabStop, createTabStopItem, createTableFloatProperties, createTableLayout, createTableLook, createTableRowHeight, createTableWidthElement, createTransformation, createUnderline, createVerticalAlign, createVerticalPosition, createWrapNone, createWrapSquare, createWrapTight, createWrapTopAndBottom, dateTimeValue, decimalNumber, docPropertiesUniqueNumericIdGen, eighthPointMeasureValue, encodeUtf8, hashedId, hexColorValue, hpsMeasureValue, longHexNumber, measurementOrPercentValue, patchDetector, patchDocument, percentageValue, pointMeasureValue, positiveUniversalMeasureValue, sectionMarginDefaults, sectionPageSizeDefaults, shortHexNumber, signedHpsMeasureValue, signedTwipsMeasureValue, standardizeData, twipsMeasureValue, uCharHexNumber, uniqueId, uniqueNumericIdCreator, uniqueUuid, universalMeasureValue, unsignedDecimalNumber };
@@ -19982,6 +19982,49 @@
19982
19982
  }
19983
19983
  };
19984
19984
  //#endregion
19985
+ //#region \0@oxc-project+runtime@0.120.0/helpers/objectWithoutPropertiesLoose.js
19986
+ function _objectWithoutPropertiesLoose(r, e) {
19987
+ if (null == r) return {};
19988
+ var t = {};
19989
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
19990
+ if (e.includes(n)) continue;
19991
+ t[n] = r[n];
19992
+ }
19993
+ return t;
19994
+ }
19995
+ //#endregion
19996
+ //#region \0@oxc-project+runtime@0.120.0/helpers/objectWithoutProperties.js
19997
+ function _objectWithoutProperties(e, t) {
19998
+ if (null == e) return {};
19999
+ var o, r, i = _objectWithoutPropertiesLoose(e, t);
20000
+ if (Object.getOwnPropertySymbols) {
20001
+ var s = Object.getOwnPropertySymbols(e);
20002
+ for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
20003
+ }
20004
+ return i;
20005
+ }
20006
+ //#endregion
20007
+ //#region src/file/track-revision/track-revision-components/inserted-deleted-text-run.ts
20008
+ /**
20009
+ * Inserted-then-deleted text run module for track changes.
20010
+ *
20011
+ * Represents a tracked change layered on top of another tracked change: text
20012
+ * that one reviewer inserted and a second reviewer subsequently deleted.
20013
+ */
20014
+ var _excluded$2 = ["insertion", "deletion"];
20015
+ var InsertedDeletedTextRun = class extends XmlComponent {
20016
+ constructor(options) {
20017
+ super("w:ins");
20018
+ const { insertion, deletion } = options, runOptions = _objectWithoutProperties(options, _excluded$2);
20019
+ this.root.push(new ChangeAttributes({
20020
+ id: insertion.id,
20021
+ author: insertion.author,
20022
+ date: insertion.date
20023
+ }));
20024
+ this.addChildElement(new DeletedTextRun(_objectSpread2(_objectSpread2({}, runOptions), deletion)));
20025
+ }
20026
+ };
20027
+ //#endregion
19985
20028
  //#region src/file/track-revision/track-revision-components/inserted-table-row.ts
19986
20029
  var InsertedTableRow = class extends XmlComponent {
19987
20030
  constructor(options) {
@@ -26844,28 +26887,6 @@
26844
26887
  }
26845
26888
  };
26846
26889
  //#endregion
26847
- //#region \0@oxc-project+runtime@0.120.0/helpers/objectWithoutPropertiesLoose.js
26848
- function _objectWithoutPropertiesLoose(r, e) {
26849
- if (null == r) return {};
26850
- var t = {};
26851
- for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
26852
- if (e.includes(n)) continue;
26853
- t[n] = r[n];
26854
- }
26855
- return t;
26856
- }
26857
- //#endregion
26858
- //#region \0@oxc-project+runtime@0.120.0/helpers/objectWithoutProperties.js
26859
- function _objectWithoutProperties(e, t) {
26860
- if (null == e) return {};
26861
- var o, r, i = _objectWithoutPropertiesLoose(e, t);
26862
- if (Object.getOwnPropertySymbols) {
26863
- var s = Object.getOwnPropertySymbols(e);
26864
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
26865
- }
26866
- return i;
26867
- }
26868
- //#endregion
26869
26890
  //#region src/file/table-of-contents/table-of-contents.ts
26870
26891
  /**
26871
26892
  * Table of Contents module for WordprocessingML documents.
@@ -32687,6 +32708,7 @@ while (n === a[++i] && n === a[++i] && n === a[++i] && n === a[++i] && n === a[+
32687
32708
  exports.ImportedRootElementAttributes = ImportedRootElementAttributes;
32688
32709
  exports.ImportedXmlComponent = ImportedXmlComponent;
32689
32710
  exports.InitializableXmlComponent = InitializableXmlComponent;
32711
+ exports.InsertedDeletedTextRun = InsertedDeletedTextRun;
32690
32712
  exports.InsertedTableCell = InsertedTableCell;
32691
32713
  exports.InsertedTableRow = InsertedTableRow;
32692
32714
  exports.InsertedTextRun = InsertedTextRun;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alineco/docx",
3
- "version": "9.6.1-fork.1",
3
+ "version": "9.6.1-fork.2",
4
4
  "description": "Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.",
5
5
  "type": "module",
6
6
  "main": "dist/index.umd.cjs",