ooxml-core 1.27.0 → 1.27.1
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/{PptxHandler-6ZGALYYM.cjs → PptxHandler-NHOKKZ4S.cjs} +3 -3
- package/dist/{PptxHandler-HEPPGI32.mjs → PptxHandler-OIR3ZY4Q.mjs} +2 -2
- package/dist/PptxHandler-TZJNIXPX.mjs +4 -0
- package/dist/{PresentationBuilder-HFGK2BWN.cjs → PresentationBuilder-EX6DAE5X.cjs} +5 -5
- package/dist/{PresentationBuilder-OQOZE76H.mjs → PresentationBuilder-RFTSZUPR.mjs} +2 -2
- package/dist/{PresentationBuilder-BCDRASRT.mjs → PresentationBuilder-X5WFSHLB.mjs} +2 -2
- package/dist/{chunk-MU3XSASV.cjs → chunk-36TR3PER.cjs} +270 -13
- package/dist/{chunk-KE2FUFIU.mjs → chunk-5KJAQKZG.mjs} +41 -271
- package/dist/{chunk-VRJOOHWV.mjs → chunk-5NJPYCGO.mjs} +271 -17
- package/dist/{chunk-4SGBL2H4.mjs → chunk-BXZF7H5G.mjs} +4 -4
- package/dist/{chunk-HYCOBPCC.cjs → chunk-DMJIDRJE.cjs} +1118 -1348
- package/dist/{chunk-7E45SAZJ.mjs → chunk-GZ4DIXZZ.mjs} +41 -271
- package/dist/{chunk-2XMK5SXU.mjs → chunk-I57SMSU6.mjs} +268 -14
- package/dist/{chunk-63GRFYAN.mjs → chunk-QIMNQDON.mjs} +1 -1
- package/dist/{chunk-ANIFYTKH.mjs → chunk-ZWTXVWMY.mjs} +1 -1
- package/dist/pptx/automation/index.cjs +331 -307
- package/dist/pptx/automation/index.d.ts +1 -1
- package/dist/pptx/automation/index.mjs +5 -5
- package/dist/pptx/chunks/{index-CbFowkp4.d.ts → index-GWpMAY-f.d.ts} +16 -3
- package/dist/pptx/chunks/index-GWpMAY-f.d.ts.map +1 -0
- package/dist/pptx/cli/index.cjs +331 -307
- package/dist/pptx/cli/index.mjs +4 -4
- package/dist/pptx/converter/index.mjs +2 -2
- package/dist/pptx/editor/render/find-replace.cjs +14 -14
- package/dist/pptx/editor/render/find-replace.d.ts +1 -1
- package/dist/pptx/editor/render/find-replace.mjs +1 -1
- package/dist/pptx/editor/render/slide-operations.cjs +8 -8
- package/dist/pptx/editor/render/slide-operations.mjs +2 -2
- package/dist/pptx/index.cjs +333 -307
- package/dist/pptx/index.d.ts +2 -2
- package/dist/pptx/index.mjs +5 -5
- package/package.json +1 -1
- package/dist/PptxHandler-NO7MNGOW.mjs +0 -4
- package/dist/pptx/chunks/index-CbFowkp4.d.ts.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunkDMJIDRJE_cjs = require('./chunk-DMJIDRJE.cjs');
|
|
4
|
+
require('./chunk-36TR3PER.cjs');
|
|
5
5
|
require('./chunk-XZPZHXV4.cjs');
|
|
6
6
|
require('./chunk-5W2QL4SB.cjs');
|
|
7
7
|
|
|
@@ -9,5 +9,5 @@ require('./chunk-5W2QL4SB.cjs');
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "PptxHandler", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkDMJIDRJE_cjs.PptxHandler; }
|
|
13
13
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { PptxHandler } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { PptxHandler } from './chunk-5KJAQKZG.mjs';
|
|
2
|
+
import './chunk-5NJPYCGO.mjs';
|
|
3
3
|
import './chunk-JJ37PCNR.mjs';
|
|
4
4
|
import './chunk-3GXV5MPC.mjs';
|
|
5
5
|
import './chunk-54S5A5PZ.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunkDMJIDRJE_cjs = require('./chunk-DMJIDRJE.cjs');
|
|
4
|
+
require('./chunk-36TR3PER.cjs');
|
|
5
5
|
require('./chunk-XZPZHXV4.cjs');
|
|
6
6
|
require('./chunk-5W2QL4SB.cjs');
|
|
7
7
|
|
|
@@ -9,13 +9,13 @@ require('./chunk-5W2QL4SB.cjs');
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "PresentationBuilder", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkDMJIDRJE_cjs.PresentationBuilder; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "STANDARD_LAYOUTS", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkDMJIDRJE_cjs.STANDARD_LAYOUTS; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "buildBlankPresentationArchive", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkDMJIDRJE_cjs.buildBlankPresentationArchive; }
|
|
21
21
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { PresentationBuilder, STANDARD_LAYOUTS, buildBlankPresentationArchive } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { PresentationBuilder, STANDARD_LAYOUTS, buildBlankPresentationArchive } from './chunk-GZ4DIXZZ.mjs';
|
|
2
|
+
import './chunk-I57SMSU6.mjs';
|
|
3
3
|
import './chunk-GXHKNSZX.mjs';
|
|
4
4
|
import './chunk-CA7KCNL3.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { PresentationBuilder, STANDARD_LAYOUTS, buildBlankPresentationArchive } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { PresentationBuilder, STANDARD_LAYOUTS, buildBlankPresentationArchive } from './chunk-5KJAQKZG.mjs';
|
|
2
|
+
import './chunk-5NJPYCGO.mjs';
|
|
3
3
|
import './chunk-JJ37PCNR.mjs';
|
|
4
4
|
import './chunk-3GXV5MPC.mjs';
|
|
5
5
|
import './chunk-54S5A5PZ.mjs';
|
|
@@ -27202,9 +27202,9 @@ function convert(value, name) {
|
|
|
27202
27202
|
const element = { name, attrs: {}, children: [] };
|
|
27203
27203
|
for (const [key, entry] of Object.entries(value)) {
|
|
27204
27204
|
if (key.startsWith("@_")) {
|
|
27205
|
-
const
|
|
27206
|
-
if (
|
|
27207
|
-
element.attrs[localName4(
|
|
27205
|
+
const attribute4 = key.slice(2);
|
|
27206
|
+
if (attribute4 !== "xmlns" && !attribute4.startsWith("xmlns:") && entry != null) {
|
|
27207
|
+
element.attrs[localName4(attribute4)] = String(entry);
|
|
27208
27208
|
}
|
|
27209
27209
|
continue;
|
|
27210
27210
|
}
|
|
@@ -28941,8 +28941,8 @@ var RELATIONSHIP_ATTRIBUTES = [
|
|
|
28941
28941
|
];
|
|
28942
28942
|
function parseRelationshipIdAttributes(get) {
|
|
28943
28943
|
const result = {};
|
|
28944
|
-
for (const [property,
|
|
28945
|
-
const value = optionalString2(get(
|
|
28944
|
+
for (const [property, attribute4] of RELATIONSHIP_ATTRIBUTES) {
|
|
28945
|
+
const value = optionalString2(get(attribute4));
|
|
28946
28946
|
if (value) result[property] = value;
|
|
28947
28947
|
}
|
|
28948
28948
|
return result;
|
|
@@ -34970,9 +34970,9 @@ function parseDoubleOrAutomatic(value) {
|
|
|
34970
34970
|
}
|
|
34971
34971
|
function binningValue(binning, localName14, xmlLookup) {
|
|
34972
34972
|
const child16 = xmlLookup.getChildByLocalName(binning, localName14);
|
|
34973
|
-
const
|
|
34974
|
-
if (typeof
|
|
34975
|
-
return
|
|
34973
|
+
const attribute4 = child16?.["@_val"];
|
|
34974
|
+
if (typeof attribute4 === "string" || typeof attribute4 === "number") {
|
|
34975
|
+
return attribute4;
|
|
34976
34976
|
}
|
|
34977
34977
|
return xmlLookup.getScalarChildByLocalName(binning, localName14);
|
|
34978
34978
|
}
|
|
@@ -38020,14 +38020,14 @@ var SPID_REFERENCE_TAGS = /* @__PURE__ */ new Set([
|
|
|
38020
38020
|
"p:control"
|
|
38021
38021
|
]);
|
|
38022
38022
|
var EDITOR_ANIMATION_ID_ATTRIBUTES = ["@_elementId", "@_triggerShapeId"];
|
|
38023
|
-
function remapAttribute(node,
|
|
38024
|
-
const current = node[
|
|
38023
|
+
function remapAttribute(node, attribute4, ids) {
|
|
38024
|
+
const current = node[attribute4];
|
|
38025
38025
|
if (current === void 0) {
|
|
38026
38026
|
return;
|
|
38027
38027
|
}
|
|
38028
38028
|
const replacement = ids.get(String(current).trim());
|
|
38029
38029
|
if (replacement !== void 0) {
|
|
38030
|
-
node[
|
|
38030
|
+
node[attribute4] = replacement;
|
|
38031
38031
|
}
|
|
38032
38032
|
}
|
|
38033
38033
|
function remapShapeIdReferences(root, ids) {
|
|
@@ -38040,8 +38040,8 @@ function remapShapeIdReferences(root, ids) {
|
|
|
38040
38040
|
} else if (SPID_REFERENCE_TAGS.has(tag)) {
|
|
38041
38041
|
remapAttribute(node, "@_spid", ids);
|
|
38042
38042
|
} else if (tag === "pptx:animation") {
|
|
38043
|
-
for (const
|
|
38044
|
-
remapAttribute(node,
|
|
38043
|
+
for (const attribute4 of EDITOR_ANIMATION_ID_ATTRIBUTES) {
|
|
38044
|
+
remapAttribute(node, attribute4, ids);
|
|
38045
38045
|
}
|
|
38046
38046
|
}
|
|
38047
38047
|
});
|
|
@@ -44661,6 +44661,260 @@ function formatAutoNumberMarker(autoNumType, n) {
|
|
|
44661
44661
|
}
|
|
44662
44662
|
}
|
|
44663
44663
|
|
|
44664
|
+
// pptx/core/utils/modern-comment-mention-read.ts
|
|
44665
|
+
var mentionLocalName = (key) => key.split(":").pop() || key;
|
|
44666
|
+
var mentionNodesOf = (value) => {
|
|
44667
|
+
if (Array.isArray(value)) {
|
|
44668
|
+
return value.filter((entry) => Boolean(entry) && typeof entry === "object");
|
|
44669
|
+
}
|
|
44670
|
+
return value && typeof value === "object" ? [value] : [];
|
|
44671
|
+
};
|
|
44672
|
+
var mentionChildrenNamed = (node, name) => {
|
|
44673
|
+
if (!node) {
|
|
44674
|
+
return [];
|
|
44675
|
+
}
|
|
44676
|
+
const result = [];
|
|
44677
|
+
for (const [key, value] of Object.entries(node)) {
|
|
44678
|
+
if (!key.startsWith("@_") && mentionLocalName(key) === name) {
|
|
44679
|
+
result.push(...mentionNodesOf(value));
|
|
44680
|
+
}
|
|
44681
|
+
}
|
|
44682
|
+
return result;
|
|
44683
|
+
};
|
|
44684
|
+
var MENTION_PERSON_KEYS = [
|
|
44685
|
+
"@_mentionpersonId",
|
|
44686
|
+
"@_mentionPersonId",
|
|
44687
|
+
"@_personId",
|
|
44688
|
+
"@_authorId"
|
|
44689
|
+
];
|
|
44690
|
+
var MENTION_LENGTH_KEYS = ["@_length", "@_mentionCharCount", "@_len"];
|
|
44691
|
+
var attribute3 = (node, keys) => {
|
|
44692
|
+
for (const key of keys) {
|
|
44693
|
+
const value = node[key];
|
|
44694
|
+
if (value !== void 0 && value !== null && String(value).length > 0) {
|
|
44695
|
+
return String(value);
|
|
44696
|
+
}
|
|
44697
|
+
}
|
|
44698
|
+
return void 0;
|
|
44699
|
+
};
|
|
44700
|
+
var integer2 = (value) => {
|
|
44701
|
+
if (value === void 0) {
|
|
44702
|
+
return void 0;
|
|
44703
|
+
}
|
|
44704
|
+
const parsed = Number.parseInt(value, 10);
|
|
44705
|
+
return Number.isFinite(parsed) && parsed >= 0 ? parsed : void 0;
|
|
44706
|
+
};
|
|
44707
|
+
var readMention = (node, authorName, containerUri) => {
|
|
44708
|
+
const personId = attribute3(node, MENTION_PERSON_KEYS);
|
|
44709
|
+
const startIndex = integer2(attribute3(node, ["@_startIndex"]));
|
|
44710
|
+
const length = integer2(attribute3(node, MENTION_LENGTH_KEYS));
|
|
44711
|
+
if (!personId || startIndex === void 0 || length === void 0 || length === 0) {
|
|
44712
|
+
return void 0;
|
|
44713
|
+
}
|
|
44714
|
+
return {
|
|
44715
|
+
personId,
|
|
44716
|
+
startIndex,
|
|
44717
|
+
length,
|
|
44718
|
+
id: attribute3(node, ["@_mentionId", "@_id"]),
|
|
44719
|
+
authorName: authorName(personId),
|
|
44720
|
+
containerUri,
|
|
44721
|
+
rawXml: node
|
|
44722
|
+
};
|
|
44723
|
+
};
|
|
44724
|
+
function readCommentMentions(node, authorName) {
|
|
44725
|
+
if (!node) {
|
|
44726
|
+
return void 0;
|
|
44727
|
+
}
|
|
44728
|
+
const found = [];
|
|
44729
|
+
for (const list2 of mentionChildrenNamed(node, "mentionLst")) {
|
|
44730
|
+
for (const entry of mentionChildrenNamed(list2, "mention")) {
|
|
44731
|
+
const mention = readMention(entry, authorName);
|
|
44732
|
+
if (mention) {
|
|
44733
|
+
found.push(mention);
|
|
44734
|
+
}
|
|
44735
|
+
}
|
|
44736
|
+
}
|
|
44737
|
+
for (const extension of mentionChildrenNamed(mentionChildrenNamed(node, "extLst")[0], "ext")) {
|
|
44738
|
+
const uri = String(extension["@_uri"] || "");
|
|
44739
|
+
for (const list2 of mentionChildrenNamed(extension, "mentionLst")) {
|
|
44740
|
+
for (const entry of mentionChildrenNamed(list2, "mention")) {
|
|
44741
|
+
const mention = readMention(entry, authorName, uri);
|
|
44742
|
+
if (mention) {
|
|
44743
|
+
found.push(mention);
|
|
44744
|
+
}
|
|
44745
|
+
}
|
|
44746
|
+
}
|
|
44747
|
+
}
|
|
44748
|
+
found.sort((a, b) => a.startIndex - b.startIndex);
|
|
44749
|
+
return found.length > 0 ? found : void 0;
|
|
44750
|
+
}
|
|
44751
|
+
|
|
44752
|
+
// pptx/core/utils/modern-comment-mentions.ts
|
|
44753
|
+
var commonPrefixLength = (a, b) => {
|
|
44754
|
+
const max = Math.min(a.length, b.length);
|
|
44755
|
+
let index = 0;
|
|
44756
|
+
while (index < max && a[index] === b[index]) {
|
|
44757
|
+
index += 1;
|
|
44758
|
+
}
|
|
44759
|
+
return index;
|
|
44760
|
+
};
|
|
44761
|
+
var commonSuffixLength = (a, b, limit) => {
|
|
44762
|
+
let index = 0;
|
|
44763
|
+
while (index < limit && a[a.length - 1 - index] === b[b.length - 1 - index]) {
|
|
44764
|
+
index += 1;
|
|
44765
|
+
}
|
|
44766
|
+
return index;
|
|
44767
|
+
};
|
|
44768
|
+
var nearestOccurrence = (text2, span, hint) => {
|
|
44769
|
+
let best = -1;
|
|
44770
|
+
let bestDistance = Number.POSITIVE_INFINITY;
|
|
44771
|
+
let at2 = text2.indexOf(span);
|
|
44772
|
+
while (at2 !== -1) {
|
|
44773
|
+
const distance = Math.abs(at2 - hint);
|
|
44774
|
+
if (distance < bestDistance) {
|
|
44775
|
+
best = at2;
|
|
44776
|
+
bestDistance = distance;
|
|
44777
|
+
}
|
|
44778
|
+
at2 = text2.indexOf(span, at2 + 1);
|
|
44779
|
+
}
|
|
44780
|
+
return best;
|
|
44781
|
+
};
|
|
44782
|
+
var loadedCoverage = (mention, loaded, oldText) => {
|
|
44783
|
+
const records = loaded.filter(
|
|
44784
|
+
(record) => mention.id ? record.id === mention.id : !record.id && record.personId === mention.personId && record.length === mention.length
|
|
44785
|
+
);
|
|
44786
|
+
if (records.length === 0) {
|
|
44787
|
+
return void 0;
|
|
44788
|
+
}
|
|
44789
|
+
return records.map(
|
|
44790
|
+
(record) => oldText.slice(record.startIndex, record.startIndex + record.length)
|
|
44791
|
+
);
|
|
44792
|
+
};
|
|
44793
|
+
function rebaseCommentMentions(mentions, oldText, newText, loaded) {
|
|
44794
|
+
if (!mentions || mentions.length === 0) {
|
|
44795
|
+
return void 0;
|
|
44796
|
+
}
|
|
44797
|
+
if (oldText === newText) {
|
|
44798
|
+
return mentions;
|
|
44799
|
+
}
|
|
44800
|
+
const prefix = commonPrefixLength(oldText, newText);
|
|
44801
|
+
const suffix = commonSuffixLength(
|
|
44802
|
+
oldText,
|
|
44803
|
+
newText,
|
|
44804
|
+
Math.min(oldText.length, newText.length) - prefix
|
|
44805
|
+
);
|
|
44806
|
+
const changeEnd = oldText.length - suffix;
|
|
44807
|
+
const delta2 = newText.length - oldText.length;
|
|
44808
|
+
const result = [];
|
|
44809
|
+
for (const mention of mentions) {
|
|
44810
|
+
const start = mention.startIndex;
|
|
44811
|
+
const end = start + mention.length;
|
|
44812
|
+
const coverage = loaded ? loadedCoverage(mention, loaded, oldText) : [];
|
|
44813
|
+
if (coverage === void 0 || coverage.includes(newText.slice(start, end))) {
|
|
44814
|
+
if (start >= 0 && mention.length > 0 && end <= newText.length) {
|
|
44815
|
+
result.push(mention);
|
|
44816
|
+
}
|
|
44817
|
+
continue;
|
|
44818
|
+
}
|
|
44819
|
+
const span = oldText.slice(start, end);
|
|
44820
|
+
if (span.length !== mention.length) {
|
|
44821
|
+
continue;
|
|
44822
|
+
}
|
|
44823
|
+
let next = -1;
|
|
44824
|
+
if (end <= prefix) {
|
|
44825
|
+
next = start;
|
|
44826
|
+
} else if (start >= changeEnd) {
|
|
44827
|
+
next = start + delta2;
|
|
44828
|
+
}
|
|
44829
|
+
if (next >= 0 && newText.slice(next, next + mention.length) === span) {
|
|
44830
|
+
result.push(next === start ? mention : { ...mention, startIndex: next });
|
|
44831
|
+
continue;
|
|
44832
|
+
}
|
|
44833
|
+
const relocated = nearestOccurrence(newText, span, next >= 0 ? next : start);
|
|
44834
|
+
if (relocated >= 0) {
|
|
44835
|
+
result.push({ ...mention, startIndex: relocated });
|
|
44836
|
+
}
|
|
44837
|
+
}
|
|
44838
|
+
return result.length > 0 ? result : void 0;
|
|
44839
|
+
}
|
|
44840
|
+
var buildMention = (mention) => {
|
|
44841
|
+
const node = {};
|
|
44842
|
+
for (const [key, value] of Object.entries(mention.rawXml || {})) {
|
|
44843
|
+
if (key.startsWith("@_")) {
|
|
44844
|
+
node[key] = value;
|
|
44845
|
+
}
|
|
44846
|
+
}
|
|
44847
|
+
const personKey = MENTION_PERSON_KEYS.find((key) => node[key] !== void 0) || "@_mentionpersonId";
|
|
44848
|
+
const lengthKey = MENTION_LENGTH_KEYS.find((key) => node[key] !== void 0) || "@_length";
|
|
44849
|
+
node[personKey] = mention.personId;
|
|
44850
|
+
node[lengthKey] = String(mention.length);
|
|
44851
|
+
node["@_startIndex"] = String(mention.startIndex);
|
|
44852
|
+
if (mention.id) {
|
|
44853
|
+
const idKey = node["@_id"] !== void 0 && node["@_mentionId"] === void 0 ? "@_id" : "@_mentionId";
|
|
44854
|
+
node[idKey] = mention.id;
|
|
44855
|
+
}
|
|
44856
|
+
return node;
|
|
44857
|
+
};
|
|
44858
|
+
function buildMentionListNode(mentions) {
|
|
44859
|
+
if (!mentions || mentions.length === 0) {
|
|
44860
|
+
return void 0;
|
|
44861
|
+
}
|
|
44862
|
+
return { "p188:mention": mentions.map(buildMention) };
|
|
44863
|
+
}
|
|
44864
|
+
var stripMentionLists = (node) => {
|
|
44865
|
+
const result = {};
|
|
44866
|
+
for (const [key, value] of Object.entries(node)) {
|
|
44867
|
+
if (key.startsWith("@_") || mentionLocalName(key) !== "mentionLst") {
|
|
44868
|
+
result[key] = value;
|
|
44869
|
+
}
|
|
44870
|
+
}
|
|
44871
|
+
return result;
|
|
44872
|
+
};
|
|
44873
|
+
var groupByContainer = (mentions) => {
|
|
44874
|
+
const direct = [];
|
|
44875
|
+
const byUri = /* @__PURE__ */ new Map();
|
|
44876
|
+
for (const mention of mentions || []) {
|
|
44877
|
+
if (!mention.containerUri) {
|
|
44878
|
+
direct.push(mention);
|
|
44879
|
+
continue;
|
|
44880
|
+
}
|
|
44881
|
+
const bucket = byUri.get(mention.containerUri);
|
|
44882
|
+
if (bucket) {
|
|
44883
|
+
bucket.push(mention);
|
|
44884
|
+
} else {
|
|
44885
|
+
byUri.set(mention.containerUri, [mention]);
|
|
44886
|
+
}
|
|
44887
|
+
}
|
|
44888
|
+
return { direct, byUri };
|
|
44889
|
+
};
|
|
44890
|
+
function applyCommentMentions(node, mentions, extension, replace) {
|
|
44891
|
+
if (!replace) {
|
|
44892
|
+
return extension;
|
|
44893
|
+
}
|
|
44894
|
+
const { direct, byUri } = groupByContainer(mentions);
|
|
44895
|
+
const directList = buildMentionListNode(direct);
|
|
44896
|
+
if (directList) {
|
|
44897
|
+
node["p188:mentionLst"] = directList;
|
|
44898
|
+
}
|
|
44899
|
+
if (!extension) {
|
|
44900
|
+
return void 0;
|
|
44901
|
+
}
|
|
44902
|
+
const rebuilt = stripMentionLists(extension);
|
|
44903
|
+
const extensionKey = Object.keys(rebuilt).find((key) => mentionLocalName(key) === "ext") || "p188:ext";
|
|
44904
|
+
const entries = mentionNodesOf(rebuilt[extensionKey]).map((entry) => {
|
|
44905
|
+
const list2 = buildMentionListNode(byUri.get(String(entry["@_uri"] || "")));
|
|
44906
|
+
const next = stripMentionLists(entry);
|
|
44907
|
+
if (list2) {
|
|
44908
|
+
next["p188:mentionLst"] = list2;
|
|
44909
|
+
}
|
|
44910
|
+
return next;
|
|
44911
|
+
});
|
|
44912
|
+
if (entries.length > 0) {
|
|
44913
|
+
rebuilt[extensionKey] = entries.length === 1 ? entries[0] : entries;
|
|
44914
|
+
}
|
|
44915
|
+
return rebuilt;
|
|
44916
|
+
}
|
|
44917
|
+
|
|
44664
44918
|
// pptx/core/core/runtime/table-structural-helpers.ts
|
|
44665
44919
|
var DEFAULT_ROW_HEIGHT_PX = 40;
|
|
44666
44920
|
var DEFAULT_ROW_HEIGHT_EMU = DEFAULT_ROW_HEIGHT_PX * chunk5W2QL4SB_cjs.EMU_PER_PX;
|
|
@@ -44819,6 +45073,7 @@ exports.applyChartGradientToSpPr = applyChartGradientToSpPr;
|
|
|
44819
45073
|
exports.applyChartLayouts = applyChartLayouts;
|
|
44820
45074
|
exports.applyChartManualLayout = applyChartManualLayout;
|
|
44821
45075
|
exports.applyChartUpDownBars = applyChartUpDownBars;
|
|
45076
|
+
exports.applyCommentMentions = applyCommentMentions;
|
|
44822
45077
|
exports.applyCustomShows = applyCustomShows;
|
|
44823
45078
|
exports.applyDataLabelsRangeToDLbls = applyDataLabelsRangeToDLbls;
|
|
44824
45079
|
exports.applyDiagramRelationshipIds = applyDiagramRelationshipIds;
|
|
@@ -45037,8 +45292,10 @@ exports.prismFamilyTypeOfNode = prismFamilyTypeOfNode;
|
|
|
45037
45292
|
exports.projectSmartArtNodeText = projectSmartArtNodeText;
|
|
45038
45293
|
exports.reResolveElementsForColorMapChange = reResolveElementsForColorMapChange;
|
|
45039
45294
|
exports.readChartManualLayoutValues = readChartManualLayoutValues;
|
|
45295
|
+
exports.readCommentMentions = readCommentMentions;
|
|
45040
45296
|
exports.readPathListCommandOrder = readPathListCommandOrder;
|
|
45041
45297
|
exports.reapplyAlternateContentToTree = reapplyAlternateContentToTree;
|
|
45298
|
+
exports.rebaseCommentMentions = rebaseCommentMentions;
|
|
45042
45299
|
exports.reconcileSmartArtTextParagraphs = reconcileSmartArtTextParagraphs;
|
|
45043
45300
|
exports.regenerateClonedUniqueId = regenerateClonedUniqueId;
|
|
45044
45301
|
exports.regenerateSmartArtDrawingShapes = regenerateSmartArtDrawingShapes;
|