docx 9.7.1 → 9.7.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 +136 -19
- package/dist/index.d.cts +16 -1
- package/dist/index.d.ts +16 -1
- package/dist/index.iife.js +136 -19
- package/dist/index.mjs +136 -20
- package/dist/index.umd.cjs +136 -19
- package/package.json +7 -5
package/dist/index.cjs
CHANGED
|
@@ -23,7 +23,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
23
23
|
enumerable: true
|
|
24
24
|
}) : target, mod));
|
|
25
25
|
//#endregion
|
|
26
|
-
//#region \0@oxc-project+runtime@0.
|
|
26
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/typeof.js
|
|
27
27
|
function _typeof(o) {
|
|
28
28
|
"@babel/helpers - typeof";
|
|
29
29
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -33,7 +33,7 @@ function _typeof(o) {
|
|
|
33
33
|
}, _typeof(o);
|
|
34
34
|
}
|
|
35
35
|
//#endregion
|
|
36
|
-
//#region \0@oxc-project+runtime@0.
|
|
36
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPrimitive.js
|
|
37
37
|
function toPrimitive(t, r) {
|
|
38
38
|
if ("object" != _typeof(t) || !t) return t;
|
|
39
39
|
var e = t[Symbol.toPrimitive];
|
|
@@ -45,13 +45,13 @@ function toPrimitive(t, r) {
|
|
|
45
45
|
return ("string" === r ? String : Number)(t);
|
|
46
46
|
}
|
|
47
47
|
//#endregion
|
|
48
|
-
//#region \0@oxc-project+runtime@0.
|
|
48
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPropertyKey.js
|
|
49
49
|
function toPropertyKey(t) {
|
|
50
50
|
var i = toPrimitive(t, "string");
|
|
51
51
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
52
52
|
}
|
|
53
53
|
//#endregion
|
|
54
|
-
//#region \0@oxc-project+runtime@0.
|
|
54
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/defineProperty.js
|
|
55
55
|
function _defineProperty(e, r, t) {
|
|
56
56
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
57
57
|
value: t,
|
|
@@ -251,7 +251,7 @@ var IgnoreIfEmptyXmlComponent = class extends XmlComponent {
|
|
|
251
251
|
}
|
|
252
252
|
};
|
|
253
253
|
//#endregion
|
|
254
|
-
//#region \0@oxc-project+runtime@0.
|
|
254
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/objectSpread2.js
|
|
255
255
|
function ownKeys(e, r) {
|
|
256
256
|
var t = Object.keys(e);
|
|
257
257
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -885,7 +885,7 @@ var init_dist = __esmMin((() => {
|
|
|
885
885
|
return 0;
|
|
886
886
|
};
|
|
887
887
|
browserExports = browser.exports;
|
|
888
|
-
process$1 =
|
|
888
|
+
process$1 = /*@__PURE__*/ getDefaultExportFromCjs(browserExports);
|
|
889
889
|
}));
|
|
890
890
|
//#endregion
|
|
891
891
|
//#region node_modules/stream-browserify/node_modules/readable-stream/lib/internal/streams/stream-browser.js
|
|
@@ -3939,7 +3939,7 @@ var require_buffer_list = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3939
3939
|
function copyBuffer(src, target, offset) {
|
|
3940
3940
|
Buffer.prototype.copy.call(src, target, offset);
|
|
3941
3941
|
}
|
|
3942
|
-
module.exports =
|
|
3942
|
+
module.exports = /*#__PURE__*/ function() {
|
|
3943
3943
|
function BufferList() {
|
|
3944
3944
|
_classCallCheck(this, BufferList);
|
|
3945
3945
|
this.head = null;
|
|
@@ -4196,7 +4196,7 @@ var require_errors_browser = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
4196
4196
|
if (typeof message === "string") return message;
|
|
4197
4197
|
else return message(arg1, arg2, arg3);
|
|
4198
4198
|
}
|
|
4199
|
-
var NodeError =
|
|
4199
|
+
var NodeError = /*#__PURE__*/ function(_Base) {
|
|
4200
4200
|
_inheritsLoose(NodeError, _Base);
|
|
4201
4201
|
function NodeError(arg1, arg2, arg3) {
|
|
4202
4202
|
return _Base.call(this, getMessage(arg1, arg2, arg3)) || this;
|
|
@@ -12273,7 +12273,7 @@ var require_hmac = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
12273
12273
|
};
|
|
12274
12274
|
}));
|
|
12275
12275
|
//#endregion
|
|
12276
|
-
//#region node_modules/nanoid/
|
|
12276
|
+
//#region node_modules/nanoid/url-alphabet/index.js
|
|
12277
12277
|
var import_hash = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports) => {
|
|
12278
12278
|
var hash = exports;
|
|
12279
12279
|
hash.utils = require_utils();
|
|
@@ -12289,18 +12289,20 @@ var import_hash = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((expor
|
|
|
12289
12289
|
hash.ripemd160 = hash.ripemd.ripemd160;
|
|
12290
12290
|
})))(), 1);
|
|
12291
12291
|
var urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
12292
|
+
//#endregion
|
|
12293
|
+
//#region node_modules/nanoid/non-secure/index.js
|
|
12292
12294
|
var customAlphabet = (alphabet, defaultSize = 21) => {
|
|
12293
12295
|
return (size = defaultSize) => {
|
|
12294
12296
|
let id = "";
|
|
12295
12297
|
let i = size | 0;
|
|
12296
|
-
while (i--) id += alphabet[Math.random() * alphabet.length | 0];
|
|
12298
|
+
while (i-- > 0) id += alphabet[Math.random() * alphabet.length | 0];
|
|
12297
12299
|
return id;
|
|
12298
12300
|
};
|
|
12299
12301
|
};
|
|
12300
12302
|
var nanoid = (size = 21) => {
|
|
12301
12303
|
let id = "";
|
|
12302
12304
|
let i = size | 0;
|
|
12303
|
-
while (i--) id += urlAlphabet[Math.random() * 64 | 0];
|
|
12305
|
+
while (i-- > 0) id += urlAlphabet[Math.random() * 64 | 0];
|
|
12304
12306
|
return id;
|
|
12305
12307
|
};
|
|
12306
12308
|
//#endregion
|
|
@@ -15735,6 +15737,7 @@ var Comments = class extends XmlComponent {
|
|
|
15735
15737
|
super("w:comments");
|
|
15736
15738
|
_defineProperty(this, "relationships", void 0);
|
|
15737
15739
|
_defineProperty(this, "threadData", void 0);
|
|
15740
|
+
_defineProperty(this, "commentIdsData", void 0);
|
|
15738
15741
|
this.root.push(new RootCommentsAttributes({
|
|
15739
15742
|
"xmlns:cx": "http://schemas.microsoft.com/office/drawing/2014/chartex",
|
|
15740
15743
|
"xmlns:cx1": "http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",
|
|
@@ -15768,14 +15771,23 @@ var Comments = class extends XmlComponent {
|
|
|
15768
15771
|
"xmlns:wne": "http://schemas.microsoft.com/office/word/2006/wordml",
|
|
15769
15772
|
"xmlns:wps": "http://schemas.microsoft.com/office/word/2010/wordprocessingShape"
|
|
15770
15773
|
}));
|
|
15771
|
-
|
|
15774
|
+
const hasThreading = children.some((child) => child.parentId !== void 0);
|
|
15775
|
+
const hasDurableIds = children.some((child) => child.durableId !== void 0);
|
|
15776
|
+
if (hasThreading || hasDurableIds) {
|
|
15772
15777
|
const idToParaId = new Map(children.map((child) => [child.id, commentIdToParaId(child.id)]));
|
|
15773
15778
|
for (const child of children) this.root.push(new Comment(child, idToParaId.get(child.id)));
|
|
15774
|
-
this.threadData = children.map((child) => ({
|
|
15779
|
+
if (hasThreading) this.threadData = children.map((child) => ({
|
|
15775
15780
|
paraId: idToParaId.get(child.id),
|
|
15776
15781
|
parentParaId: child.parentId !== void 0 ? idToParaId.get(child.parentId) : void 0,
|
|
15777
15782
|
done: child.resolved
|
|
15778
15783
|
}));
|
|
15784
|
+
if (hasDurableIds) this.commentIdsData = children.map((child) => {
|
|
15785
|
+
var _child$durableId;
|
|
15786
|
+
return {
|
|
15787
|
+
paraId: idToParaId.get(child.id),
|
|
15788
|
+
durableId: (_child$durableId = child.durableId) !== null && _child$durableId !== void 0 ? _child$durableId : idToParaId.get(child.id)
|
|
15789
|
+
};
|
|
15790
|
+
});
|
|
15779
15791
|
} else for (const child of children) this.root.push(new Comment(child));
|
|
15780
15792
|
this.relationships = new Relationships();
|
|
15781
15793
|
}
|
|
@@ -15786,6 +15798,10 @@ var Comments = class extends XmlComponent {
|
|
|
15786
15798
|
get ThreadData() {
|
|
15787
15799
|
return this.threadData;
|
|
15788
15800
|
}
|
|
15801
|
+
/** Comment id data for commentsIds.xml, or undefined when no comments carry a durableId. */
|
|
15802
|
+
get CommentIdsData() {
|
|
15803
|
+
return this.commentIdsData;
|
|
15804
|
+
}
|
|
15789
15805
|
};
|
|
15790
15806
|
//#endregion
|
|
15791
15807
|
//#region src/file/paragraph/run/comments-extended.ts
|
|
@@ -15866,6 +15882,69 @@ var CommentsExtended = class extends XmlComponent {
|
|
|
15866
15882
|
for (const data of threadData) this.root.push(new CommentEx(data));
|
|
15867
15883
|
}
|
|
15868
15884
|
};
|
|
15885
|
+
/**
|
|
15886
|
+
* @internal
|
|
15887
|
+
*/
|
|
15888
|
+
var CommentIdAttributes = class extends XmlAttributeComponent {
|
|
15889
|
+
constructor(..._args3) {
|
|
15890
|
+
super(..._args3);
|
|
15891
|
+
_defineProperty(this, "xmlKeys", {
|
|
15892
|
+
paraId: "w16cid:paraId",
|
|
15893
|
+
durableId: "w16cid:durableId"
|
|
15894
|
+
});
|
|
15895
|
+
}
|
|
15896
|
+
};
|
|
15897
|
+
/**
|
|
15898
|
+
* @internal
|
|
15899
|
+
*/
|
|
15900
|
+
var CommentId = class extends XmlComponent {
|
|
15901
|
+
constructor(options) {
|
|
15902
|
+
super("w16cid:commentId");
|
|
15903
|
+
this.root.push(new CommentIdAttributes({
|
|
15904
|
+
paraId: options.paraId,
|
|
15905
|
+
durableId: options.durableId
|
|
15906
|
+
}));
|
|
15907
|
+
}
|
|
15908
|
+
};
|
|
15909
|
+
/**
|
|
15910
|
+
* @internal
|
|
15911
|
+
*/
|
|
15912
|
+
var CommentsIdsAttributes = class extends XmlAttributeComponent {
|
|
15913
|
+
constructor(..._args4) {
|
|
15914
|
+
super(..._args4);
|
|
15915
|
+
_defineProperty(this, "xmlKeys", {
|
|
15916
|
+
"xmlns:w16cid": "xmlns:w16cid",
|
|
15917
|
+
"xmlns:mc": "xmlns:mc",
|
|
15918
|
+
"mc:Ignorable": "mc:Ignorable"
|
|
15919
|
+
});
|
|
15920
|
+
}
|
|
15921
|
+
};
|
|
15922
|
+
/**
|
|
15923
|
+
* Represents the commentsIds part (word/commentsIds.xml).
|
|
15924
|
+
*
|
|
15925
|
+
* Contains w16cid:commentId elements that map each comment's volatile paraId
|
|
15926
|
+
* to a stable w16cid:durableId preserved by Word across edits.
|
|
15927
|
+
*
|
|
15928
|
+
* ## XSD Schema (wml-cid.xsd)
|
|
15929
|
+
* ```xml
|
|
15930
|
+
* <xsd:complexType name="CT_CommentsIds">
|
|
15931
|
+
* <xsd:sequence>
|
|
15932
|
+
* <xsd:element name="commentId" type="CT_CommentId" minOccurs="0" maxOccurs="unbounded"/>
|
|
15933
|
+
* </xsd:sequence>
|
|
15934
|
+
* </xsd:complexType>
|
|
15935
|
+
* ```
|
|
15936
|
+
*/
|
|
15937
|
+
var CommentsIds = class extends XmlComponent {
|
|
15938
|
+
constructor(commentIdsData) {
|
|
15939
|
+
super("w16cid:commentsIds");
|
|
15940
|
+
this.root.push(new CommentsIdsAttributes({
|
|
15941
|
+
"xmlns:w16cid": "http://schemas.microsoft.com/office/word/2016/wordml/cid",
|
|
15942
|
+
"xmlns:mc": "http://schemas.openxmlformats.org/markup-compatibility/2006",
|
|
15943
|
+
"mc:Ignorable": "w16cid"
|
|
15944
|
+
}));
|
|
15945
|
+
for (const data of commentIdsData) this.root.push(new CommentId(data));
|
|
15946
|
+
}
|
|
15947
|
+
};
|
|
15869
15948
|
//#endregion
|
|
15870
15949
|
//#region src/file/paragraph/run/empty-children.ts
|
|
15871
15950
|
/**
|
|
@@ -21876,6 +21955,12 @@ var ContentTypes = class extends XmlComponent {
|
|
|
21876
21955
|
this.root.push(createOverride("application/vnd.openxmlformats-officedocument.wordprocessingml.commentsExtended+xml", "/word/commentsExtended.xml"));
|
|
21877
21956
|
}
|
|
21878
21957
|
/**
|
|
21958
|
+
* Registers the commentsIds part in the content types.
|
|
21959
|
+
*/
|
|
21960
|
+
addCommentsIds() {
|
|
21961
|
+
this.root.push(createOverride("application/vnd.openxmlformats-officedocument.wordprocessingml.commentsIds+xml", "/word/commentsIds.xml"));
|
|
21962
|
+
}
|
|
21963
|
+
/**
|
|
21879
21964
|
* Registers a footer part in the content types.
|
|
21880
21965
|
*
|
|
21881
21966
|
* @param index - Footer index number (e.g., 1 for footer1.xml)
|
|
@@ -26799,6 +26884,12 @@ var File = class {
|
|
|
26799
26884
|
"commentsExtended",
|
|
26800
26885
|
void 0
|
|
26801
26886
|
);
|
|
26887
|
+
_defineProperty(
|
|
26888
|
+
this,
|
|
26889
|
+
/** Durable comment id mapping (word/commentsIds.xml). */
|
|
26890
|
+
"commentsIds",
|
|
26891
|
+
void 0
|
|
26892
|
+
);
|
|
26802
26893
|
_defineProperty(this, "fontWrapper", void 0);
|
|
26803
26894
|
this.coreProperties = new CoreProperties(_objectSpread2(_objectSpread2({}, options), {}, {
|
|
26804
26895
|
creator: (_options$creator = options.creator) !== null && _options$creator !== void 0 ? _options$creator : "Un-named",
|
|
@@ -26808,6 +26899,7 @@ var File = class {
|
|
|
26808
26899
|
this.numbering = new Numbering(options.numbering ? options.numbering : { config: [] });
|
|
26809
26900
|
this.comments = new Comments((_options$comments = options.comments) !== null && _options$comments !== void 0 ? _options$comments : { children: [] });
|
|
26810
26901
|
if (this.comments.ThreadData) this.commentsExtended = new CommentsExtended(this.comments.ThreadData);
|
|
26902
|
+
if (this.comments.CommentIdsData) this.commentsIds = new CommentsIds(this.comments.CommentIdsData);
|
|
26811
26903
|
this.fileRelationships = new Relationships();
|
|
26812
26904
|
this.customProperties = new CustomProperties((_options$customProper = options.customProperties) !== null && _options$customProper !== void 0 ? _options$customProper : []);
|
|
26813
26905
|
this.appProperties = new AppProperties();
|
|
@@ -26906,6 +26998,10 @@ var File = class {
|
|
|
26906
26998
|
this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++, "http://schemas.microsoft.com/office/2011/relationships/commentsExtended", "commentsExtended.xml");
|
|
26907
26999
|
this.contentTypes.addCommentsExtended();
|
|
26908
27000
|
}
|
|
27001
|
+
if (this.commentsIds) {
|
|
27002
|
+
this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++, "http://schemas.microsoft.com/office/2016/09/relationships/commentsIds", "commentsIds.xml");
|
|
27003
|
+
this.contentTypes.addCommentsIds();
|
|
27004
|
+
}
|
|
26909
27005
|
}
|
|
26910
27006
|
get Document() {
|
|
26911
27007
|
return this.documentWrapper;
|
|
@@ -26956,6 +27052,10 @@ var File = class {
|
|
|
26956
27052
|
get CommentsExtended() {
|
|
26957
27053
|
return this.commentsExtended;
|
|
26958
27054
|
}
|
|
27055
|
+
/** Durable comment id part. Undefined when no comment carries a durableId. */
|
|
27056
|
+
get CommentsIds() {
|
|
27057
|
+
return this.commentsIds;
|
|
27058
|
+
}
|
|
26959
27059
|
get FontTable() {
|
|
26960
27060
|
return this.fontWrapper;
|
|
26961
27061
|
}
|
|
@@ -27125,7 +27225,7 @@ var StructuredDocumentTagProperties = class extends XmlComponent {
|
|
|
27125
27225
|
}
|
|
27126
27226
|
};
|
|
27127
27227
|
//#endregion
|
|
27128
|
-
//#region \0@oxc-project+runtime@0.
|
|
27228
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/objectWithoutPropertiesLoose.js
|
|
27129
27229
|
function _objectWithoutPropertiesLoose(r, e) {
|
|
27130
27230
|
if (null == r) return {};
|
|
27131
27231
|
var t = {};
|
|
@@ -27136,7 +27236,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
27136
27236
|
return t;
|
|
27137
27237
|
}
|
|
27138
27238
|
//#endregion
|
|
27139
|
-
//#region \0@oxc-project+runtime@0.
|
|
27239
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/objectWithoutProperties.js
|
|
27140
27240
|
function _objectWithoutProperties(e, t) {
|
|
27141
27241
|
if (null == e) return {};
|
|
27142
27242
|
var o, r, i = _objectWithoutPropertiesLoose(e, t);
|
|
@@ -31532,7 +31632,7 @@ var Compiler = class {
|
|
|
31532
31632
|
const documentMediaDatas = this.imageReplacer.getMediaData(documentXmlData, file.Media);
|
|
31533
31633
|
const commentMediaDatas = this.imageReplacer.getMediaData(commentXmlData, file.Media);
|
|
31534
31634
|
const footnoteMediaDatas = this.imageReplacer.getMediaData(footnoteXmlData, file.Media);
|
|
31535
|
-
return _objectSpread2(_objectSpread2({
|
|
31635
|
+
return _objectSpread2(_objectSpread2(_objectSpread2({
|
|
31536
31636
|
Relationships: {
|
|
31537
31637
|
data: (() => {
|
|
31538
31638
|
documentMediaDatas.forEach((mediaData, i) => {
|
|
@@ -31833,6 +31933,22 @@ var Compiler = class {
|
|
|
31833
31933
|
}
|
|
31834
31934
|
}),
|
|
31835
31935
|
path: "word/commentsExtended.xml"
|
|
31936
|
+
} } : {}), file.CommentsIds ? { CommentsIds: {
|
|
31937
|
+
data: (0, import_xml.default)(this.formatter.format(file.CommentsIds, {
|
|
31938
|
+
viewWrapper: {
|
|
31939
|
+
View: file.CommentsIds,
|
|
31940
|
+
Relationships: file.Comments.Relationships
|
|
31941
|
+
},
|
|
31942
|
+
file,
|
|
31943
|
+
stack: []
|
|
31944
|
+
}), {
|
|
31945
|
+
indent: prettify,
|
|
31946
|
+
declaration: {
|
|
31947
|
+
standalone: "yes",
|
|
31948
|
+
encoding: "UTF-8"
|
|
31949
|
+
}
|
|
31950
|
+
}),
|
|
31951
|
+
path: "word/commentsIds.xml"
|
|
31836
31952
|
} } : {}), {}, {
|
|
31837
31953
|
FontTable: {
|
|
31838
31954
|
data: (0, import_xml.default)(this.formatter.format(file.FontTable.View, {
|
|
@@ -31849,21 +31965,21 @@ var Compiler = class {
|
|
|
31849
31965
|
path: "word/fontTable.xml"
|
|
31850
31966
|
},
|
|
31851
31967
|
FontTableRelationships: {
|
|
31852
|
-
data: (0, import_xml.default)(this.formatter.format(file.FontTable.Relationships, {
|
|
31968
|
+
data: (() => (0, import_xml.default)(this.formatter.format(file.FontTable.Relationships, {
|
|
31853
31969
|
viewWrapper: file.Document,
|
|
31854
31970
|
file,
|
|
31855
31971
|
stack: []
|
|
31856
31972
|
}), {
|
|
31857
31973
|
indent: prettify,
|
|
31858
31974
|
declaration: { encoding: "UTF-8" }
|
|
31859
|
-
}),
|
|
31975
|
+
}))(),
|
|
31860
31976
|
path: "word/_rels/fontTable.xml.rels"
|
|
31861
31977
|
}
|
|
31862
31978
|
});
|
|
31863
31979
|
}
|
|
31864
31980
|
};
|
|
31865
31981
|
//#endregion
|
|
31866
|
-
//#region \0@oxc-project+runtime@0.
|
|
31982
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/asyncToGenerator.js
|
|
31867
31983
|
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
31868
31984
|
try {
|
|
31869
31985
|
var i = n[a](c), u = i.value;
|
|
@@ -32889,6 +33005,7 @@ exports.CommentRangeStart = CommentRangeStart;
|
|
|
32889
33005
|
exports.CommentReference = CommentReference;
|
|
32890
33006
|
exports.Comments = Comments;
|
|
32891
33007
|
exports.CommentsExtended = CommentsExtended;
|
|
33008
|
+
exports.CommentsIds = CommentsIds;
|
|
32892
33009
|
exports.ConcreteHyperlink = ConcreteHyperlink;
|
|
32893
33010
|
exports.ConcreteNumbering = ConcreteNumbering;
|
|
32894
33011
|
exports.ContinuationSeparator = ContinuationSeparator;
|
package/dist/index.d.cts
CHANGED
|
@@ -261,15 +261,21 @@ export declare class CommentReference extends XmlComponent {
|
|
|
261
261
|
export declare class Comments extends XmlComponent {
|
|
262
262
|
private readonly relationships;
|
|
263
263
|
private readonly threadData?;
|
|
264
|
+
private readonly commentIdsData?;
|
|
264
265
|
constructor({ children }: ICommentsOptions);
|
|
265
266
|
get Relationships(): Relationships;
|
|
266
267
|
get ThreadData(): readonly ICommentThreadData[] | undefined;
|
|
268
|
+
get CommentIdsData(): readonly ICommentIdData[] | undefined;
|
|
267
269
|
}
|
|
268
270
|
|
|
269
271
|
export declare class CommentsExtended extends XmlComponent {
|
|
270
272
|
constructor(threadData: readonly ICommentThreadData[]);
|
|
271
273
|
}
|
|
272
274
|
|
|
275
|
+
export declare class CommentsIds extends XmlComponent {
|
|
276
|
+
constructor(commentIdsData: readonly ICommentIdData[]);
|
|
277
|
+
}
|
|
278
|
+
|
|
273
279
|
declare const CompoundLine: {
|
|
274
280
|
readonly SINGLE: "sng";
|
|
275
281
|
readonly DOUBLE: "dbl";
|
|
@@ -295,6 +301,7 @@ export declare const concreteNumUniqueNumericIdGen: () => UniqueNumericIdCreator
|
|
|
295
301
|
declare class ContentTypes extends XmlComponent {
|
|
296
302
|
constructor();
|
|
297
303
|
addCommentsExtended(): void;
|
|
304
|
+
addCommentsIds(): void;
|
|
298
305
|
addFooter(index: number): void;
|
|
299
306
|
addHeader(index: number): void;
|
|
300
307
|
}
|
|
@@ -663,6 +670,7 @@ declare class File_2 {
|
|
|
663
670
|
private readonly styles;
|
|
664
671
|
private readonly comments;
|
|
665
672
|
private readonly commentsExtended?;
|
|
673
|
+
private readonly commentsIds?;
|
|
666
674
|
private readonly fontWrapper;
|
|
667
675
|
constructor(options: IPropertiesOptions);
|
|
668
676
|
private addSection;
|
|
@@ -687,6 +695,7 @@ declare class File_2 {
|
|
|
687
695
|
get Settings(): Settings;
|
|
688
696
|
get Comments(): Comments;
|
|
689
697
|
get CommentsExtended(): CommentsExtended | undefined;
|
|
698
|
+
get CommentsIds(): CommentsIds | undefined;
|
|
690
699
|
get FontTable(): FontWrapper;
|
|
691
700
|
}
|
|
692
701
|
export { File_2 as Document }
|
|
@@ -1009,6 +1018,11 @@ export declare type IColumnsAttributes = {
|
|
|
1009
1018
|
readonly children?: readonly Column[];
|
|
1010
1019
|
};
|
|
1011
1020
|
|
|
1021
|
+
export declare type ICommentIdData = {
|
|
1022
|
+
readonly paraId: string;
|
|
1023
|
+
readonly durableId: string;
|
|
1024
|
+
};
|
|
1025
|
+
|
|
1012
1026
|
export declare type ICommentOptions = {
|
|
1013
1027
|
readonly id: number;
|
|
1014
1028
|
readonly children: readonly FileChild[];
|
|
@@ -1017,6 +1031,7 @@ export declare type ICommentOptions = {
|
|
|
1017
1031
|
readonly date?: Date;
|
|
1018
1032
|
readonly parentId?: number;
|
|
1019
1033
|
readonly resolved?: boolean;
|
|
1034
|
+
readonly durableId?: string;
|
|
1020
1035
|
};
|
|
1021
1036
|
|
|
1022
1037
|
export declare type ICommentsOptions = {
|
|
@@ -2633,7 +2648,7 @@ declare class Relationships extends XmlComponent {
|
|
|
2633
2648
|
get RelationshipCount(): number;
|
|
2634
2649
|
}
|
|
2635
2650
|
|
|
2636
|
-
declare type RelationshipType = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" | "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments" | "http://schemas.microsoft.com/office/2011/relationships/commentsExtended" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/font";
|
|
2651
|
+
declare type RelationshipType = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" | "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments" | "http://schemas.microsoft.com/office/2011/relationships/commentsExtended" | "http://schemas.microsoft.com/office/2016/09/relationships/commentsIds" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/font";
|
|
2637
2652
|
|
|
2638
2653
|
export declare const RelativeHorizontalPosition: {
|
|
2639
2654
|
readonly CENTER: "center";
|
package/dist/index.d.ts
CHANGED
|
@@ -261,15 +261,21 @@ export declare class CommentReference extends XmlComponent {
|
|
|
261
261
|
export declare class Comments extends XmlComponent {
|
|
262
262
|
private readonly relationships;
|
|
263
263
|
private readonly threadData?;
|
|
264
|
+
private readonly commentIdsData?;
|
|
264
265
|
constructor({ children }: ICommentsOptions);
|
|
265
266
|
get Relationships(): Relationships;
|
|
266
267
|
get ThreadData(): readonly ICommentThreadData[] | undefined;
|
|
268
|
+
get CommentIdsData(): readonly ICommentIdData[] | undefined;
|
|
267
269
|
}
|
|
268
270
|
|
|
269
271
|
export declare class CommentsExtended extends XmlComponent {
|
|
270
272
|
constructor(threadData: readonly ICommentThreadData[]);
|
|
271
273
|
}
|
|
272
274
|
|
|
275
|
+
export declare class CommentsIds extends XmlComponent {
|
|
276
|
+
constructor(commentIdsData: readonly ICommentIdData[]);
|
|
277
|
+
}
|
|
278
|
+
|
|
273
279
|
declare const CompoundLine: {
|
|
274
280
|
readonly SINGLE: "sng";
|
|
275
281
|
readonly DOUBLE: "dbl";
|
|
@@ -295,6 +301,7 @@ export declare const concreteNumUniqueNumericIdGen: () => UniqueNumericIdCreator
|
|
|
295
301
|
declare class ContentTypes extends XmlComponent {
|
|
296
302
|
constructor();
|
|
297
303
|
addCommentsExtended(): void;
|
|
304
|
+
addCommentsIds(): void;
|
|
298
305
|
addFooter(index: number): void;
|
|
299
306
|
addHeader(index: number): void;
|
|
300
307
|
}
|
|
@@ -663,6 +670,7 @@ declare class File_2 {
|
|
|
663
670
|
private readonly styles;
|
|
664
671
|
private readonly comments;
|
|
665
672
|
private readonly commentsExtended?;
|
|
673
|
+
private readonly commentsIds?;
|
|
666
674
|
private readonly fontWrapper;
|
|
667
675
|
constructor(options: IPropertiesOptions);
|
|
668
676
|
private addSection;
|
|
@@ -687,6 +695,7 @@ declare class File_2 {
|
|
|
687
695
|
get Settings(): Settings;
|
|
688
696
|
get Comments(): Comments;
|
|
689
697
|
get CommentsExtended(): CommentsExtended | undefined;
|
|
698
|
+
get CommentsIds(): CommentsIds | undefined;
|
|
690
699
|
get FontTable(): FontWrapper;
|
|
691
700
|
}
|
|
692
701
|
export { File_2 as Document }
|
|
@@ -1009,6 +1018,11 @@ export declare type IColumnsAttributes = {
|
|
|
1009
1018
|
readonly children?: readonly Column[];
|
|
1010
1019
|
};
|
|
1011
1020
|
|
|
1021
|
+
export declare type ICommentIdData = {
|
|
1022
|
+
readonly paraId: string;
|
|
1023
|
+
readonly durableId: string;
|
|
1024
|
+
};
|
|
1025
|
+
|
|
1012
1026
|
export declare type ICommentOptions = {
|
|
1013
1027
|
readonly id: number;
|
|
1014
1028
|
readonly children: readonly FileChild[];
|
|
@@ -1017,6 +1031,7 @@ export declare type ICommentOptions = {
|
|
|
1017
1031
|
readonly date?: Date;
|
|
1018
1032
|
readonly parentId?: number;
|
|
1019
1033
|
readonly resolved?: boolean;
|
|
1034
|
+
readonly durableId?: string;
|
|
1020
1035
|
};
|
|
1021
1036
|
|
|
1022
1037
|
export declare type ICommentsOptions = {
|
|
@@ -2633,7 +2648,7 @@ declare class Relationships extends XmlComponent {
|
|
|
2633
2648
|
get RelationshipCount(): number;
|
|
2634
2649
|
}
|
|
2635
2650
|
|
|
2636
|
-
declare type RelationshipType = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" | "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments" | "http://schemas.microsoft.com/office/2011/relationships/commentsExtended" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/font";
|
|
2651
|
+
declare type RelationshipType = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" | "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments" | "http://schemas.microsoft.com/office/2011/relationships/commentsExtended" | "http://schemas.microsoft.com/office/2016/09/relationships/commentsIds" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/font";
|
|
2637
2652
|
|
|
2638
2653
|
export declare const RelativeHorizontalPosition: {
|
|
2639
2654
|
readonly CENTER: "center";
|