@superdoc-dev/mcp 0.11.0-next.6 → 0.11.0-next.8
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.js +458 -118
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -43580,7 +43580,7 @@ var init_uuid_qzgm05fK_es = __esm(() => {
|
|
|
43580
43580
|
v5_default = v35("v5", 80, sha1);
|
|
43581
43581
|
});
|
|
43582
43582
|
|
|
43583
|
-
// ../../packages/superdoc/dist/chunks/constants-
|
|
43583
|
+
// ../../packages/superdoc/dist/chunks/constants-D9qj59G2.es.js
|
|
43584
43584
|
function toProtocolSet(values) {
|
|
43585
43585
|
const result = /* @__PURE__ */ new Set;
|
|
43586
43586
|
if (!values)
|
|
@@ -44166,7 +44166,7 @@ var DEFAULT_ALLOWED_PROTOCOLS, OPTIONAL_PROTOCOLS, BLOCKED_PROTOCOLS, DEFAULT_MA
|
|
|
44166
44166
|
return a.length === 1 ? "0" + a : a;
|
|
44167
44167
|
}, rgbToHex = (rgb) => {
|
|
44168
44168
|
return "#" + rgb.match(/\d+/g).map(componentToHex).join("");
|
|
44169
|
-
}, DEFAULT_SHADING_FOREGROUND_COLOR = "#000000", hexToRgb = (hex3) => {
|
|
44169
|
+
}, DEFAULT_SHADING_FOREGROUND_COLOR = "#000000", DEFAULT_SHADING_FILL_COLOR = "#FFFFFF", hexToRgb = (hex3) => {
|
|
44170
44170
|
const normalized = normalizeHexColor(hex3);
|
|
44171
44171
|
if (!normalized)
|
|
44172
44172
|
return null;
|
|
@@ -44193,16 +44193,19 @@ var DEFAULT_ALLOWED_PROTOCOLS, OPTIONAL_PROTOCOLS, BLOCKED_PROTOCOLS, DEFAULT_MA
|
|
|
44193
44193
|
}, resolveShadingFillColor = (shading) => {
|
|
44194
44194
|
if (!shading || typeof shading !== "object")
|
|
44195
44195
|
return null;
|
|
44196
|
-
const
|
|
44197
|
-
if (
|
|
44196
|
+
const val = typeof shading.val === "string" ? shading.val.trim().toLowerCase() : "";
|
|
44197
|
+
if (val === "nil" || val === "none")
|
|
44198
44198
|
return null;
|
|
44199
|
-
const
|
|
44200
|
-
|
|
44201
|
-
|
|
44202
|
-
|
|
44199
|
+
const fillHex = typeof shading.fill === "string" && shading.fill.trim().toLowerCase() === "auto" ? null : normalizeHexColor(shading.fill);
|
|
44200
|
+
const pctMatch = val.match(/^pct(\d{1,3})$/);
|
|
44201
|
+
if (!(Boolean(pctMatch) || val === "solid"))
|
|
44202
|
+
return fillHex;
|
|
44203
|
+
const baseHex = fillHex ?? DEFAULT_SHADING_FILL_COLOR;
|
|
44204
|
+
const foregroundHex = typeof shading.color !== "string" || shading.color.trim() === "" || shading.color.trim().toLowerCase() === "auto" ? DEFAULT_SHADING_FOREGROUND_COLOR : normalizeHexColor(shading.color) ?? DEFAULT_SHADING_FOREGROUND_COLOR;
|
|
44205
|
+
const pct = pctMatch ? Number.parseInt(pctMatch[1], 10) : 100;
|
|
44203
44206
|
if (!Number.isFinite(pct) || pct < 0 || pct > 100)
|
|
44204
|
-
return
|
|
44205
|
-
return blendHexColors(
|
|
44207
|
+
return fillHex;
|
|
44208
|
+
return blendHexColors(baseHex, foregroundHex, pct / 100) ?? fillHex;
|
|
44206
44209
|
}, deobfuscateFont = (arrayBuffer, guidHex) => {
|
|
44207
44210
|
const dta = new Uint8Array(arrayBuffer);
|
|
44208
44211
|
const guidStr = guidHex.replace(/[-{}]/g, "");
|
|
@@ -44248,7 +44251,7 @@ var DEFAULT_ALLOWED_PROTOCOLS, OPTIONAL_PROTOCOLS, BLOCKED_PROTOCOLS, DEFAULT_MA
|
|
|
44248
44251
|
return "webp";
|
|
44249
44252
|
return null;
|
|
44250
44253
|
}, COMMENT_FILE_BASENAMES, DEFAULT_XML_DECLARATION, COMMENT_RELATIONSHIP_TYPES;
|
|
44251
|
-
var
|
|
44254
|
+
var init_constants_D9qj59G2_es = __esm(() => {
|
|
44252
44255
|
init_jszip_C49i9kUs_es();
|
|
44253
44256
|
init_xml_js_CqGKpaft_es();
|
|
44254
44257
|
init_dist();
|
|
@@ -52208,7 +52211,7 @@ var init_remark_gfm_BhnWr3yf_es = __esm(() => {
|
|
|
52208
52211
|
emptyOptions2 = {};
|
|
52209
52212
|
});
|
|
52210
52213
|
|
|
52211
|
-
// ../../packages/superdoc/dist/chunks/SuperConverter-
|
|
52214
|
+
// ../../packages/superdoc/dist/chunks/SuperConverter-DBsJeu9t.es.js
|
|
52212
52215
|
function getExtensionConfigField(extension$1, field, context = { name: "" }) {
|
|
52213
52216
|
const fieldValue = extension$1.config[field];
|
|
52214
52217
|
if (typeof fieldValue === "function")
|
|
@@ -111836,6 +111839,44 @@ var isRegExp = (value) => {
|
|
|
111836
111839
|
...comment,
|
|
111837
111840
|
commentParaId: generateDocxRandomId()
|
|
111838
111841
|
};
|
|
111842
|
+
}, getCommentIds = (comment) => {
|
|
111843
|
+
if (!comment)
|
|
111844
|
+
return [];
|
|
111845
|
+
return [
|
|
111846
|
+
comment.commentId,
|
|
111847
|
+
comment.importedId,
|
|
111848
|
+
comment.internalId
|
|
111849
|
+
].filter((id) => id != null).map((id) => String(id));
|
|
111850
|
+
}, buildCommentLookup = (comments = []) => {
|
|
111851
|
+
const byId = /* @__PURE__ */ new Map;
|
|
111852
|
+
for (const comment of comments)
|
|
111853
|
+
getCommentIds(comment).forEach((id) => byId.set(id, comment));
|
|
111854
|
+
return byId;
|
|
111855
|
+
}, findCommentById = (comments = [], id) => {
|
|
111856
|
+
if (id == null)
|
|
111857
|
+
return null;
|
|
111858
|
+
return buildCommentLookup(comments).get(String(id)) || null;
|
|
111859
|
+
}, isCommentResolvedInThread = (comment, allComments = []) => {
|
|
111860
|
+
const isDone = (c$1) => Boolean(c$1?.resolvedTime || c$1?.isDone);
|
|
111861
|
+
if (isDone(comment))
|
|
111862
|
+
return true;
|
|
111863
|
+
const byId = buildCommentLookup(allComments);
|
|
111864
|
+
const seen = /* @__PURE__ */ new Set;
|
|
111865
|
+
let current = comment;
|
|
111866
|
+
while (current) {
|
|
111867
|
+
const parentId = current.threadingParentCommentId || current.parentCommentId;
|
|
111868
|
+
const parentKey = parentId != null ? String(parentId) : null;
|
|
111869
|
+
if (parentKey == null || seen.has(parentKey))
|
|
111870
|
+
break;
|
|
111871
|
+
seen.add(parentKey);
|
|
111872
|
+
const parent = byId.get(parentKey);
|
|
111873
|
+
if (!parent)
|
|
111874
|
+
break;
|
|
111875
|
+
if (isDone(parent))
|
|
111876
|
+
return true;
|
|
111877
|
+
current = parent;
|
|
111878
|
+
}
|
|
111879
|
+
return false;
|
|
111839
111880
|
}, getCommentDefinition = (comment, commentId, allComments, editor) => {
|
|
111840
111881
|
const translatedParagraphs = (Array.isArray(comment.commentJSON) ? comment.commentJSON : comment.commentJSON ? [comment.commentJSON] : []).map((node2) => translator.decode({
|
|
111841
111882
|
editor,
|
|
@@ -111846,7 +111887,7 @@ var isRegExp = (value) => {
|
|
|
111846
111887
|
"w:author": comment.creatorName || comment.importedAuthor?.name,
|
|
111847
111888
|
"w:date": toIsoNoFractional(comment.createdTime),
|
|
111848
111889
|
"w:initials": getInitials(comment.creatorName),
|
|
111849
|
-
"w:done": comment
|
|
111890
|
+
"w:done": isCommentResolvedInThread(comment, allComments) ? "1" : "0",
|
|
111850
111891
|
"w15:paraId": comment.commentParaId,
|
|
111851
111892
|
"custom:internalId": comment.commentId || comment.internalId,
|
|
111852
111893
|
"custom:trackedChange": comment.trackedChange,
|
|
@@ -111857,7 +111898,7 @@ var isRegExp = (value) => {
|
|
|
111857
111898
|
"custom:email": comment.creatorEmail || comment.importedAuthor?.email
|
|
111858
111899
|
};
|
|
111859
111900
|
if (comment?.parentCommentId) {
|
|
111860
|
-
const parentComment = allComments
|
|
111901
|
+
const parentComment = findCommentById(allComments, comment.parentCommentId);
|
|
111861
111902
|
if (parentComment && !parentComment.trackedChange)
|
|
111862
111903
|
attributes["w15:paraIdParent"] = parentComment.commentParaId;
|
|
111863
111904
|
}
|
|
@@ -111933,7 +111974,7 @@ var isRegExp = (value) => {
|
|
|
111933
111974
|
return null;
|
|
111934
111975
|
const xmlCopy = carbonCopy(commentsExtendedXml);
|
|
111935
111976
|
const commentsEx = comments.map((comment) => {
|
|
111936
|
-
const isResolved = comment
|
|
111977
|
+
const isResolved = isCommentResolvedInThread(comment, comments);
|
|
111937
111978
|
const attributes = {
|
|
111938
111979
|
"w15:paraId": comment.commentParaId,
|
|
111939
111980
|
"w15:done": isResolved ? "1" : "0"
|
|
@@ -111941,7 +111982,7 @@ var isRegExp = (value) => {
|
|
|
111941
111982
|
const parentId = comment.threadingParentCommentId || comment.parentCommentId;
|
|
111942
111983
|
const threadingStyle = resolveThreadingStyle(comment, profile);
|
|
111943
111984
|
if (parentId && (threadingStyle === "commentsExtended" || shouldIncludeForThreads)) {
|
|
111944
|
-
const parentComment = comments
|
|
111985
|
+
const parentComment = findCommentById(comments, parentId);
|
|
111945
111986
|
const allowTrackedParent = profile?.defaultStyle === "commentsExtended";
|
|
111946
111987
|
if (parentComment && (allowTrackedParent || !parentComment.trackedChange))
|
|
111947
111988
|
attributes["w15:paraIdParent"] = parentComment.commentParaId;
|
|
@@ -114962,15 +115003,17 @@ var isRegExp = (value) => {
|
|
|
114962
115003
|
}
|
|
114963
115004
|
}
|
|
114964
115005
|
if (!cellBackgroundColor && resolvedTcProps?.shading) {
|
|
114965
|
-
const { fill, themeFill, themeFillTint, themeFillShade } = resolvedTcProps.shading;
|
|
114966
|
-
|
|
114967
|
-
if (
|
|
114968
|
-
|
|
114969
|
-
|
|
114970
|
-
|
|
114971
|
-
|
|
114972
|
-
|
|
114973
|
-
}
|
|
115006
|
+
const { fill, color: color2, val, themeFill, themeFillTint, themeFillShade } = resolvedTcProps.shading;
|
|
115007
|
+
let fillBase = normalizeShadingColor(fill);
|
|
115008
|
+
if (!fillBase && themeFill && context.themeColors)
|
|
115009
|
+
fillBase = normalizeShadingColor(resolveThemeColorValue(themeFill, themeFillTint, themeFillShade, context.themeColors));
|
|
115010
|
+
const resolved = resolveShadingFillColor({
|
|
115011
|
+
val,
|
|
115012
|
+
color: color2,
|
|
115013
|
+
fill: fillBase ?? fill
|
|
115014
|
+
});
|
|
115015
|
+
if (resolved)
|
|
115016
|
+
cellBackgroundColor = resolved.startsWith("#") ? resolved : `#${resolved}`;
|
|
114974
115017
|
}
|
|
114975
115018
|
const cellConverterContext = tableInfo || cellBackgroundColor ? {
|
|
114976
115019
|
...context.converterContext,
|
|
@@ -115224,9 +115267,12 @@ var isRegExp = (value) => {
|
|
|
115224
115267
|
return null;
|
|
115225
115268
|
const rowProps = rowNode.attrs?.tableRowProperties;
|
|
115226
115269
|
const rowHeight = normalizeRowHeight(rowProps);
|
|
115270
|
+
const tblPrExBordersRaw = rowProps?.tblPrExBorders;
|
|
115271
|
+
const rowBorders = tblPrExBordersRaw && typeof tblPrExBordersRaw === "object" ? extractTableBorders(tblPrExBordersRaw, { unit: "eighthPoints" }) : undefined;
|
|
115227
115272
|
const attrs = rowProps && typeof rowProps === "object" ? {
|
|
115228
115273
|
tableRowProperties: rowProps,
|
|
115229
|
-
...rowHeight ? { rowHeight } : {}
|
|
115274
|
+
...rowHeight ? { rowHeight } : {},
|
|
115275
|
+
...rowBorders ? { borders: rowBorders } : {}
|
|
115230
115276
|
} : rowHeight ? { rowHeight } : undefined;
|
|
115231
115277
|
return {
|
|
115232
115278
|
id: context.nextBlockId(`row-${rowIndex}`),
|
|
@@ -115543,12 +115589,12 @@ var isRegExp = (value) => {
|
|
|
115543
115589
|
state.kern = kernNode.attributes["w:val"];
|
|
115544
115590
|
}
|
|
115545
115591
|
}, SuperConverter;
|
|
115546
|
-
var
|
|
115592
|
+
var init_SuperConverter_DBsJeu9t_es = __esm(() => {
|
|
115547
115593
|
init_rolldown_runtime_Bg48TavK_es();
|
|
115548
115594
|
init_jszip_C49i9kUs_es();
|
|
115549
115595
|
init_xml_js_CqGKpaft_es();
|
|
115550
115596
|
init_uuid_qzgm05fK_es();
|
|
115551
|
-
|
|
115597
|
+
init_constants_D9qj59G2_es();
|
|
115552
115598
|
init_dist_B8HfvhaK_es();
|
|
115553
115599
|
init_unified_Dsuw2be5_es();
|
|
115554
115600
|
init_lib_CYqLdG4z_es();
|
|
@@ -154578,7 +154624,7 @@ var init_SuperConverter_BSMYiYJm_es = __esm(() => {
|
|
|
154578
154624
|
};
|
|
154579
154625
|
});
|
|
154580
154626
|
|
|
154581
|
-
// ../../packages/superdoc/dist/chunks/create-headless-toolbar-
|
|
154627
|
+
// ../../packages/superdoc/dist/chunks/create-headless-toolbar-BiY_0zZP.es.js
|
|
154582
154628
|
function parseSizeUnit(val = "0") {
|
|
154583
154629
|
const length = val.toString() || "0";
|
|
154584
154630
|
const value = Number.parseFloat(length);
|
|
@@ -164911,10 +164957,10 @@ var CSS_DIMENSION_REGEX, DOM_SIZE_UNITS, normalizeActorId = (value) => {
|
|
|
164911
164957
|
}
|
|
164912
164958
|
};
|
|
164913
164959
|
};
|
|
164914
|
-
var
|
|
164915
|
-
|
|
164960
|
+
var init_create_headless_toolbar_BiY_0zZP_es = __esm(() => {
|
|
164961
|
+
init_SuperConverter_DBsJeu9t_es();
|
|
164916
164962
|
init_uuid_qzgm05fK_es();
|
|
164917
|
-
|
|
164963
|
+
init_constants_D9qj59G2_es();
|
|
164918
164964
|
init_dist_B8HfvhaK_es();
|
|
164919
164965
|
CSS_DIMENSION_REGEX = /[\d-.]+(\w+)$/;
|
|
164920
164966
|
DOM_SIZE_UNITS = [
|
|
@@ -166811,7 +166857,7 @@ var init_decrypt_docx_G2a7hkiV_es = __esm(() => {
|
|
|
166811
166857
|
]);
|
|
166812
166858
|
});
|
|
166813
166859
|
|
|
166814
|
-
// ../../packages/superdoc/dist/chunks/DocxZipper-
|
|
166860
|
+
// ../../packages/superdoc/dist/chunks/DocxZipper-Bu2Fhqkw.es.js
|
|
166815
166861
|
function sniffEncoding(u8) {
|
|
166816
166862
|
if (u8.length >= 2) {
|
|
166817
166863
|
const b0 = u8[0], b1 = u8[1];
|
|
@@ -167484,11 +167530,11 @@ var DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.docum
|
|
|
167484
167530
|
return `image/${MIME_TYPE_FOR_EXT[detectedType] || detectedType}`;
|
|
167485
167531
|
}
|
|
167486
167532
|
}, DocxZipper_default;
|
|
167487
|
-
var
|
|
167533
|
+
var init_DocxZipper_Bu2Fhqkw_es = __esm(() => {
|
|
167488
167534
|
init_rolldown_runtime_Bg48TavK_es();
|
|
167489
167535
|
init_jszip_C49i9kUs_es();
|
|
167490
167536
|
init_xml_js_CqGKpaft_es();
|
|
167491
|
-
|
|
167537
|
+
init_constants_D9qj59G2_es();
|
|
167492
167538
|
init_dist_B8HfvhaK_es();
|
|
167493
167539
|
MANAGED_PACKAGE_PARTS = [
|
|
167494
167540
|
{
|
|
@@ -219596,7 +219642,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
|
|
|
219596
219642
|
init_remark_gfm_BhnWr3yf_es();
|
|
219597
219643
|
});
|
|
219598
219644
|
|
|
219599
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
219645
|
+
// ../../packages/superdoc/dist/chunks/src-DYT7-l3i.es.js
|
|
219600
219646
|
function deleteProps(obj, propOrProps) {
|
|
219601
219647
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
219602
219648
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -264543,8 +264589,15 @@ function calculateChainHeight(chain, blocks2, measures, state) {
|
|
|
264543
264589
|
const firstLineHeight = anchorMeasure.lines[0]?.lineHeight;
|
|
264544
264590
|
const anchorHeight = typeof firstLineHeight === "number" && Number.isFinite(firstLineHeight) && firstLineHeight > 0 ? firstLineHeight : getMeasureHeight(anchorBlock, anchorMeasure);
|
|
264545
264591
|
totalHeight += interParagraphSpacing + anchorHeight;
|
|
264546
|
-
} else if (!(anchorBlock.kind === "table" && anchorBlock.anchor?.isAnchored === true))
|
|
264547
|
-
|
|
264592
|
+
} else if (!(anchorBlock.kind === "table" && anchorBlock.anchor?.isAnchored === true)) {
|
|
264593
|
+
let anchorHeight = getMeasureHeight(anchorBlock, anchorMeasure);
|
|
264594
|
+
if (anchorBlock.kind === "table" && anchorMeasure.kind === "table" && anchorMeasure.rows.length > 0) {
|
|
264595
|
+
const firstRowHeight = anchorMeasure.rows[0]?.height;
|
|
264596
|
+
if (typeof firstRowHeight === "number" && Number.isFinite(firstRowHeight) && firstRowHeight > 0)
|
|
264597
|
+
anchorHeight = firstRowHeight;
|
|
264598
|
+
}
|
|
264599
|
+
totalHeight += prevSpacingAfter + anchorHeight;
|
|
264600
|
+
}
|
|
264548
264601
|
}
|
|
264549
264602
|
}
|
|
264550
264603
|
return totalHeight;
|
|
@@ -281509,28 +281562,61 @@ var Node$13 = class Node$14 {
|
|
|
281509
281562
|
ranges
|
|
281510
281563
|
};
|
|
281511
281564
|
}, resolveCommentById = ({ commentId, importedId, state, tr, dispatch }) => {
|
|
281565
|
+
const converted = resolveCommentsInTr({
|
|
281566
|
+
items: [{
|
|
281567
|
+
commentId,
|
|
281568
|
+
importedId
|
|
281569
|
+
}],
|
|
281570
|
+
state,
|
|
281571
|
+
tr
|
|
281572
|
+
});
|
|
281573
|
+
if (converted)
|
|
281574
|
+
dispatch(tr);
|
|
281575
|
+
return converted;
|
|
281576
|
+
}, resolveCommentsInTr = ({ items = [], state, tr }) => {
|
|
281512
281577
|
const { schema } = state;
|
|
281513
281578
|
const markType = schema.marks?.[CommentMarkName];
|
|
281514
281579
|
if (!markType)
|
|
281515
281580
|
return false;
|
|
281516
|
-
const { segments, ranges } = getCommentMarkRangesById(commentId, state.doc, importedId);
|
|
281517
|
-
if (!segments.length)
|
|
281518
|
-
return false;
|
|
281519
|
-
segments.forEach(({ from: from$1, to, attrs }) => {
|
|
281520
|
-
tr.removeMark(from$1, to, markType.create(attrs));
|
|
281521
|
-
});
|
|
281522
281581
|
const startType = schema.nodes?.commentRangeStart;
|
|
281523
281582
|
const endType = schema.nodes?.commentRangeEnd;
|
|
281524
|
-
|
|
281525
|
-
|
|
281526
|
-
|
|
281527
|
-
|
|
281583
|
+
const insertions = [];
|
|
281584
|
+
const seen = /* @__PURE__ */ new Set;
|
|
281585
|
+
let converted = false;
|
|
281586
|
+
for (const item of items) {
|
|
281587
|
+
if (!item)
|
|
281588
|
+
continue;
|
|
281589
|
+
const { commentId, importedId } = item;
|
|
281590
|
+
if (commentId == null)
|
|
281591
|
+
continue;
|
|
281592
|
+
const key2 = `${commentId}:${importedId ?? ""}`;
|
|
281593
|
+
if (seen.has(key2))
|
|
281594
|
+
continue;
|
|
281595
|
+
seen.add(key2);
|
|
281596
|
+
const { segments, ranges } = getCommentMarkRangesById(commentId, state.doc, importedId);
|
|
281597
|
+
if (!segments.length)
|
|
281598
|
+
continue;
|
|
281599
|
+
converted = true;
|
|
281600
|
+
segments.forEach(({ from: from$1, to, attrs }) => {
|
|
281601
|
+
tr.removeMark(from$1, to, markType.create(attrs));
|
|
281602
|
+
});
|
|
281603
|
+
if (startType && endType && item.preserveAnchor !== false)
|
|
281604
|
+
ranges.forEach(({ from: from$1, to, internal }) => insertions.push({
|
|
281605
|
+
from: from$1,
|
|
281606
|
+
to,
|
|
281607
|
+
internal,
|
|
281608
|
+
commentId
|
|
281609
|
+
}));
|
|
281610
|
+
}
|
|
281611
|
+
if (startType && endType && insertions.length)
|
|
281612
|
+
insertions.sort((a2, b$1) => b$1.from - a2.from || b$1.to - a2.to).forEach(({ from: from$1, to, internal, commentId }) => {
|
|
281613
|
+
tr.insert(tr.mapping.map(to), endType.create({ "w:id": commentId }));
|
|
281614
|
+
tr.insert(tr.mapping.map(from$1), startType.create({
|
|
281528
281615
|
"w:id": commentId,
|
|
281529
281616
|
internal
|
|
281530
281617
|
}));
|
|
281531
281618
|
});
|
|
281532
|
-
|
|
281533
|
-
return true;
|
|
281619
|
+
return converted;
|
|
281534
281620
|
}, getCommentRangeAnchorsById = (commentId, doc$12, importedId) => {
|
|
281535
281621
|
const anchors = [];
|
|
281536
281622
|
doc$12.descendants((node2, pos) => {
|
|
@@ -281825,6 +281911,60 @@ var Node$13 = class Node$14 {
|
|
|
281825
281911
|
});
|
|
281826
281912
|
});
|
|
281827
281913
|
}
|
|
281914
|
+
const nodeAnchorsById = /* @__PURE__ */ new Map;
|
|
281915
|
+
doc$12.descendants((node2, pos) => {
|
|
281916
|
+
const typeName = node2.type?.name;
|
|
281917
|
+
if (typeName !== "commentRangeStart" && typeName !== "commentRangeEnd")
|
|
281918
|
+
return;
|
|
281919
|
+
const anchorId = node2.attrs?.["w:id"];
|
|
281920
|
+
if (anchorId == null)
|
|
281921
|
+
return;
|
|
281922
|
+
const entry = nodeAnchorsById.get(anchorId) || {};
|
|
281923
|
+
if (typeName === "commentRangeStart")
|
|
281924
|
+
entry.startPos = pos;
|
|
281925
|
+
else
|
|
281926
|
+
entry.endPos = pos;
|
|
281927
|
+
nodeAnchorsById.set(anchorId, entry);
|
|
281928
|
+
});
|
|
281929
|
+
const isRepresented = (c) => seen.has(c.commentId) || c.importedId != null && seen.has(c.importedId) || nodeAnchorsById.has(c.commentId) || c.importedId != null && nodeAnchorsById.has(c.importedId);
|
|
281930
|
+
const findAncestorNodeAnchor = (comment2) => {
|
|
281931
|
+
let current = comment2;
|
|
281932
|
+
const visited = /* @__PURE__ */ new Set;
|
|
281933
|
+
while (current) {
|
|
281934
|
+
const parentId = getThreadingParentId(current);
|
|
281935
|
+
if (parentId == null || visited.has(parentId))
|
|
281936
|
+
return null;
|
|
281937
|
+
visited.add(parentId);
|
|
281938
|
+
const parent = commentMap.get(parentId) || comments.find((c) => c.importedId === parentId || c.commentId === parentId);
|
|
281939
|
+
const anchor = nodeAnchorsById.get(parentId) ?? (parent ? nodeAnchorsById.get(parent.commentId) ?? nodeAnchorsById.get(parent.importedId) : undefined);
|
|
281940
|
+
if (anchor?.startPos != null && anchor?.endPos != null)
|
|
281941
|
+
return anchor;
|
|
281942
|
+
current = parent;
|
|
281943
|
+
}
|
|
281944
|
+
return null;
|
|
281945
|
+
};
|
|
281946
|
+
comments.filter((c) => !c.trackedChange && c.commentId != null && !isRepresented(c)).sort((a2, b$1) => (a2.createdTime || 0) - (b$1.createdTime || 0)).forEach((c) => {
|
|
281947
|
+
const anchor = findAncestorNodeAnchor(c);
|
|
281948
|
+
if (!anchor)
|
|
281949
|
+
return;
|
|
281950
|
+
seen.add(c.commentId);
|
|
281951
|
+
const childAttrs = getPreparedComment({
|
|
281952
|
+
commentId: c.commentId,
|
|
281953
|
+
internal: c.isInternal
|
|
281954
|
+
});
|
|
281955
|
+
startNodes.push({
|
|
281956
|
+
pos: anchor.startPos + 1,
|
|
281957
|
+
node: schema.nodes.commentRangeStart.create(childAttrs),
|
|
281958
|
+
commentId: c.commentId,
|
|
281959
|
+
parentCommentId: getThreadingParentId(c)
|
|
281960
|
+
});
|
|
281961
|
+
endNodes.push({
|
|
281962
|
+
pos: anchor.endPos + 1,
|
|
281963
|
+
node: schema.nodes.commentRangeEnd.create(childAttrs),
|
|
281964
|
+
commentId: c.commentId,
|
|
281965
|
+
parentCommentId: getThreadingParentId(c)
|
|
281966
|
+
});
|
|
281967
|
+
});
|
|
281828
281968
|
startNodes.sort((a2, b$1) => {
|
|
281829
281969
|
if (a2.pos !== b$1.pos)
|
|
281830
281970
|
return a2.pos - b$1.pos;
|
|
@@ -299381,6 +299521,45 @@ menclose::after {
|
|
|
299381
299521
|
if (explicitSpec)
|
|
299382
299522
|
return explicitSpec;
|
|
299383
299523
|
return borderValueToSpec(fallback);
|
|
299524
|
+
}, BORDER_STYLE_NUMBER, BORDER_STYLE_LINES, isPresentBorder = (b$1) => !!b$1 && b$1.style !== undefined && b$1.style !== "none" && (b$1.width === undefined || b$1.width > 0), isExplicitNoneBorder = (b$1) => {
|
|
299525
|
+
if (!b$1 || typeof b$1 !== "object")
|
|
299526
|
+
return false;
|
|
299527
|
+
const r$1 = b$1;
|
|
299528
|
+
return r$1.style === "none" || r$1.none === true;
|
|
299529
|
+
}, borderWeight = (b$1) => (BORDER_STYLE_LINES[b$1.style] ?? 1) * (BORDER_STYLE_NUMBER[b$1.style] ?? 1), colorBrightness = (color2, formula) => {
|
|
299530
|
+
const hex3 = (color2 ?? "#000000").replace("#", "");
|
|
299531
|
+
if (hex3.length < 6)
|
|
299532
|
+
return 0;
|
|
299533
|
+
return formula(parseInt(hex3.slice(0, 2), 16), parseInt(hex3.slice(2, 4), 16), parseInt(hex3.slice(4, 6), 16));
|
|
299534
|
+
}, resolveBorderConflict = (a2, b$1) => {
|
|
299535
|
+
const pa = isPresentBorder(a2);
|
|
299536
|
+
const pb = isPresentBorder(b$1);
|
|
299537
|
+
if (!pa && !pb)
|
|
299538
|
+
return;
|
|
299539
|
+
if (!pa)
|
|
299540
|
+
return b$1;
|
|
299541
|
+
if (!pb)
|
|
299542
|
+
return a2;
|
|
299543
|
+
const wa = borderWeight(a2);
|
|
299544
|
+
const wb = borderWeight(b$1);
|
|
299545
|
+
if (wa !== wb)
|
|
299546
|
+
return wa > wb ? a2 : b$1;
|
|
299547
|
+
const na = BORDER_STYLE_NUMBER[a2.style] ?? 99;
|
|
299548
|
+
const nb = BORDER_STYLE_NUMBER[b$1.style] ?? 99;
|
|
299549
|
+
if (na !== nb)
|
|
299550
|
+
return na < nb ? a2 : b$1;
|
|
299551
|
+
const formulas = [
|
|
299552
|
+
(r$1, g$1, bl) => r$1 + bl + 2 * g$1,
|
|
299553
|
+
(_r, g$1, bl) => bl + 2 * g$1,
|
|
299554
|
+
(_r, g$1) => g$1
|
|
299555
|
+
];
|
|
299556
|
+
for (const f2 of formulas) {
|
|
299557
|
+
const ba = colorBrightness(a2.color, f2);
|
|
299558
|
+
const bb = colorBrightness(b$1.color, f2);
|
|
299559
|
+
if (ba !== bb)
|
|
299560
|
+
return ba < bb ? a2 : b$1;
|
|
299561
|
+
}
|
|
299562
|
+
return a2;
|
|
299384
299563
|
}, hasExplicitCellBorders = (cellBorders) => Boolean(cellBorders && (cellBorders.top !== undefined || cellBorders.right !== undefined || cellBorders.bottom !== undefined || cellBorders.left !== undefined)), resolveTableCellBorders = (tableBorders, cellPosition) => {
|
|
299385
299564
|
const cellBounds = getTableCellGridBounds(cellPosition);
|
|
299386
299565
|
return {
|
|
@@ -301220,8 +301399,21 @@ menclose::after {
|
|
|
301220
301399
|
}
|
|
301221
301400
|
}
|
|
301222
301401
|
return { cellElement: cellEl };
|
|
301223
|
-
}, hasAnyResolvedBorder = (borders) => Boolean(borders.top || borders.right || borders.bottom || borders.left), resolveRenderedCellBorders = ({ cellBorders, hasBordersAttribute, tableBorders, cellPosition, cellSpacingPx, continuesFromPrev, continuesOnNext }) => {
|
|
301402
|
+
}, hasAnyResolvedBorder = (borders) => Boolean(borders.top || borders.right || borders.bottom || borders.left), resolveRenderedCellBorders = ({ cellBorders, hasBordersAttribute, tableBorders, cellPosition, cellSpacingPx, continuesFromPrev, continuesOnNext, aboveCellBorders, leftCellBorders, rightCellBorders, nextRowLeavesRightGap, deferTopToAboveCell, nextRowSuppressesSharedTop }) => {
|
|
301224
301403
|
const hasExplicitBorders = hasExplicitCellBorders(cellBorders);
|
|
301404
|
+
const cellBounds = getTableCellGridBounds(cellPosition);
|
|
301405
|
+
const touchesTopBoundary = cellBounds.touchesTopEdge || continuesFromPrev;
|
|
301406
|
+
const touchesBottomBoundary = cellBounds.touchesBottomEdge || continuesOnNext || nextRowLeavesRightGap === true;
|
|
301407
|
+
const hasInteriorNeighborBorder = !touchesTopBoundary && !deferTopToAboveCell && isPresentBorder(aboveCellBorders?.bottom) || !cellBounds.touchesLeftEdge && isPresentBorder(leftCellBorders?.right);
|
|
301408
|
+
if (cellSpacingPx === 0 && (hasExplicitBorders || hasInteriorNeighborBorder)) {
|
|
301409
|
+
const cb = cellBorders ?? {};
|
|
301410
|
+
return {
|
|
301411
|
+
top: touchesTopBoundary ? resolveTableBorderValue(cb.top, tableBorders?.top) : deferTopToAboveCell ? undefined : resolveBorderConflict(cb.top, aboveCellBorders?.bottom) ?? (isExplicitNoneBorder(cb.top) && isExplicitNoneBorder(aboveCellBorders?.bottom) ? undefined : borderValueToSpec(tableBorders?.insideH)),
|
|
301412
|
+
left: cellBounds.touchesLeftEdge ? resolveTableBorderValue(cb.left, tableBorders?.left) : isPresentBorder(cb.left) ? resolveBorderConflict(cb.left, leftCellBorders?.right) ?? borderValueToSpec(tableBorders?.insideV) : isPresentBorder(leftCellBorders?.right) ? undefined : isExplicitNoneBorder(cb.left) && isExplicitNoneBorder(leftCellBorders?.right) ? undefined : borderValueToSpec(tableBorders?.insideV),
|
|
301413
|
+
right: cellBounds.touchesRightEdge ? resolveTableBorderValue(cb.right, tableBorders?.right) : isPresentBorder(cb.right) && !isPresentBorder(rightCellBorders?.left) ? cb.right : undefined,
|
|
301414
|
+
bottom: touchesBottomBoundary ? resolveTableBorderValue(cb.bottom, tableBorders?.bottom) : undefined
|
|
301415
|
+
};
|
|
301416
|
+
}
|
|
301225
301417
|
if (hasBordersAttribute && !hasExplicitBorders)
|
|
301226
301418
|
return;
|
|
301227
301419
|
if (!tableBorders)
|
|
@@ -301231,24 +301423,13 @@ menclose::after {
|
|
|
301231
301423
|
bottom: cellBorders.bottom,
|
|
301232
301424
|
left: cellBorders.left
|
|
301233
301425
|
} : undefined;
|
|
301234
|
-
|
|
301235
|
-
const touchesTopBoundary = cellBounds.touchesTopEdge || continuesFromPrev;
|
|
301236
|
-
const touchesBottomBoundary = cellBounds.touchesBottomEdge || continuesOnNext;
|
|
301237
|
-
if (hasExplicitBorders) {
|
|
301238
|
-
if (cellSpacingPx === 0)
|
|
301239
|
-
return {
|
|
301240
|
-
top: resolveTableBorderValue(cellBorders.top, touchesTopBoundary ? tableBorders.top : tableBorders.insideH),
|
|
301241
|
-
right: cellBounds.touchesRightEdge ? resolveTableBorderValue(cellBorders.right, tableBorders.right) : undefined,
|
|
301242
|
-
bottom: touchesBottomBoundary ? resolveTableBorderValue(cellBorders.bottom, tableBorders.bottom) : undefined,
|
|
301243
|
-
left: resolveTableBorderValue(cellBorders.left, cellBounds.touchesLeftEdge ? tableBorders.left : tableBorders.insideV)
|
|
301244
|
-
};
|
|
301426
|
+
if (hasExplicitBorders)
|
|
301245
301427
|
return {
|
|
301246
301428
|
top: resolveTableBorderValue(cellBorders.top, touchesTopBoundary ? tableBorders.top : tableBorders.insideH),
|
|
301247
301429
|
right: resolveTableBorderValue(cellBorders.right, cellBounds.touchesRightEdge ? tableBorders.right : undefined),
|
|
301248
301430
|
bottom: resolveTableBorderValue(cellBorders.bottom, touchesBottomBoundary ? tableBorders.bottom : undefined),
|
|
301249
301431
|
left: resolveTableBorderValue(cellBorders.left, cellBounds.touchesLeftEdge ? tableBorders.left : tableBorders.insideV)
|
|
301250
301432
|
};
|
|
301251
|
-
}
|
|
301252
301433
|
if (cellSpacingPx > 0) {
|
|
301253
301434
|
const interiorBorders = {
|
|
301254
301435
|
top: touchesTopBoundary ? undefined : borderValueToSpec(tableBorders.insideH),
|
|
@@ -301259,15 +301440,29 @@ menclose::after {
|
|
|
301259
301440
|
return hasAnyResolvedBorder(interiorBorders) ? interiorBorders : undefined;
|
|
301260
301441
|
}
|
|
301261
301442
|
const baseBorders = resolveTableCellBorders(tableBorders, cellPosition);
|
|
301443
|
+
const insideHSpec = borderValueToSpec(tableBorders.insideH);
|
|
301444
|
+
const interiorBottom = nextRowSuppressesSharedTop && isPresentBorder(insideHSpec) ? insideHSpec : baseBorders.bottom;
|
|
301262
301445
|
return {
|
|
301263
301446
|
top: touchesTopBoundary ? borderValueToSpec(tableBorders.top) : baseBorders.top,
|
|
301264
301447
|
right: baseBorders.right,
|
|
301265
|
-
bottom: touchesBottomBoundary ? borderValueToSpec(tableBorders.bottom) :
|
|
301448
|
+
bottom: touchesBottomBoundary ? borderValueToSpec(tableBorders.bottom) : interiorBottom,
|
|
301266
301449
|
left: baseBorders.left
|
|
301267
301450
|
};
|
|
301268
301451
|
}, renderTableRow = (deps) => {
|
|
301269
|
-
const { doc: doc$12, container, rowIndex, y: y$1, rowMeasure, row: row2, totalRows, tableBorders, columnWidths, allRowHeights, tableIndent, isRtl, context, renderLine: renderLine$1, captureLineSnapshot, renderDrawingContent, applySdtDataset: applySdtDataset$1, ancestorContainerKey, ancestorContainerSdt, ancestorContainerKeys, ancestorContainerSdts, onSdtContainerChrome, continuesFromPrev, continuesOnNext, partialRow, cellSpacingPx = 0, chrome: chrome2, resolvePhysical } = deps;
|
|
301452
|
+
const { doc: doc$12, container, rowIndex, y: y$1, rowMeasure, row: row2, prevRow, prevRowMeasure, nextRow, nextRowMeasure, rowOccupiedRightCol, nextRowOccupiedRightCol, totalRows, tableBorders, columnWidths, allRowHeights, tableIndent, isRtl, context, renderLine: renderLine$1, captureLineSnapshot, renderDrawingContent, applySdtDataset: applySdtDataset$1, ancestorContainerKey, ancestorContainerSdt, ancestorContainerKeys, ancestorContainerSdts, onSdtContainerChrome, continuesFromPrev, continuesOnNext, partialRow, cellSpacingPx = 0, chrome: chrome2, resolvePhysical } = deps;
|
|
301270
301453
|
const totalCols = columnWidths.length;
|
|
301454
|
+
const rowRightEdgeCol = rowOccupiedRightCol != null && rowOccupiedRightCol > 0 ? Math.min(totalCols, rowOccupiedRightCol) : rowMeasure.cells.length ? Math.min(totalCols, Math.max(...rowMeasure.cells.map((c) => (c.gridColumnStart ?? 0) + (c.colSpan ?? 1)))) : totalCols;
|
|
301455
|
+
const rowBorderOverride = row2?.attrs?.borders;
|
|
301456
|
+
const effectiveTableBorders = rowBorderOverride ? {
|
|
301457
|
+
...tableBorders ?? {},
|
|
301458
|
+
...rowBorderOverride
|
|
301459
|
+
} : tableBorders;
|
|
301460
|
+
const nextRowBorderOverride = nextRow?.attrs?.borders;
|
|
301461
|
+
const nextRowEffectiveInsideH = nextRowBorderOverride ? {
|
|
301462
|
+
...tableBorders ?? {},
|
|
301463
|
+
...nextRowBorderOverride
|
|
301464
|
+
}.insideH : undefined;
|
|
301465
|
+
const nextRowSuppressesSharedTop = nextRowBorderOverride !== undefined && !isPresentBorder(borderValueToSpec(nextRowEffectiveInsideH));
|
|
301271
301466
|
const calculateXPosition = (gridColumnStart) => {
|
|
301272
301467
|
let x = cellSpacingPx;
|
|
301273
301468
|
for (let i4 = 0;i4 < gridColumnStart && i4 < columnWidths.length; i4++)
|
|
@@ -301292,6 +301487,27 @@ menclose::after {
|
|
|
301292
301487
|
width += columnWidths[i4];
|
|
301293
301488
|
return width;
|
|
301294
301489
|
};
|
|
301490
|
+
const findCellBordersAtColumn = (cells, measureCells, gridCol) => {
|
|
301491
|
+
if (!cells || !measureCells)
|
|
301492
|
+
return;
|
|
301493
|
+
for (let i4 = 0;i4 < measureCells.length; i4++) {
|
|
301494
|
+
const start$1 = measureCells[i4].gridColumnStart ?? i4;
|
|
301495
|
+
const span = measureCells[i4].colSpan ?? 1;
|
|
301496
|
+
if (gridCol >= start$1 && gridCol < start$1 + span)
|
|
301497
|
+
return cells[i4]?.attrs?.borders;
|
|
301498
|
+
}
|
|
301499
|
+
};
|
|
301500
|
+
const findCellRightEdgeAtColumn = (measureCells, gridCol) => {
|
|
301501
|
+
if (!measureCells)
|
|
301502
|
+
return;
|
|
301503
|
+
for (let i4 = 0;i4 < measureCells.length; i4++) {
|
|
301504
|
+
const start$1 = measureCells[i4].gridColumnStart ?? i4;
|
|
301505
|
+
const span = measureCells[i4].colSpan ?? 1;
|
|
301506
|
+
if (gridCol >= start$1 && gridCol < start$1 + span)
|
|
301507
|
+
return start$1 + span;
|
|
301508
|
+
}
|
|
301509
|
+
};
|
|
301510
|
+
const nextRowMaxCol = nextRowOccupiedRightCol != null && nextRowOccupiedRightCol > 0 ? nextRowOccupiedRightCol : nextRowMeasure?.cells?.length ? Math.max(...nextRowMeasure.cells.map((c) => (c.gridColumnStart ?? 0) + (c.colSpan ?? 1))) : Infinity;
|
|
301295
301511
|
for (let cellIndex = 0;cellIndex < rowMeasure.cells.length; cellIndex += 1) {
|
|
301296
301512
|
const cellMeasure = rowMeasure.cells[cellIndex];
|
|
301297
301513
|
const cell2 = row2?.cells?.[cellIndex];
|
|
@@ -301300,21 +301516,34 @@ menclose::after {
|
|
|
301300
301516
|
const colSpan = cellMeasure.colSpan ?? 1;
|
|
301301
301517
|
let x = calculateXPosition(gridColumnStart);
|
|
301302
301518
|
const cellBordersAttr = cell2?.attrs?.borders;
|
|
301519
|
+
const hasBordersAttribute = cellBordersAttr !== undefined;
|
|
301520
|
+
const cellPosition = {
|
|
301521
|
+
rowIndex,
|
|
301522
|
+
rowSpan,
|
|
301523
|
+
gridColumnStart,
|
|
301524
|
+
colSpan,
|
|
301525
|
+
totalRows,
|
|
301526
|
+
totalCols: rowRightEdgeCol
|
|
301527
|
+
};
|
|
301528
|
+
const aboveCellBorders = findCellBordersAtColumn(prevRow?.cells, prevRowMeasure?.cells, gridColumnStart);
|
|
301529
|
+
const leftCellBorders = gridColumnStart > 0 ? findCellBordersAtColumn(row2?.cells, rowMeasure.cells, gridColumnStart - 1) : undefined;
|
|
301530
|
+
const rightCellBorders = findCellBordersAtColumn(row2?.cells, rowMeasure.cells, gridColumnStart + colSpan);
|
|
301531
|
+
const nextRowLeavesRightGap = gridColumnStart + colSpan > nextRowMaxCol;
|
|
301532
|
+
const aboveCellRightEdge = findCellRightEdgeAtColumn(prevRowMeasure?.cells, gridColumnStart);
|
|
301303
301533
|
const resolvedBorders = resolveRenderedCellBorders({
|
|
301304
301534
|
cellBorders: cellBordersAttr,
|
|
301305
|
-
hasBordersAttribute
|
|
301306
|
-
tableBorders,
|
|
301307
|
-
cellPosition
|
|
301308
|
-
rowIndex,
|
|
301309
|
-
rowSpan,
|
|
301310
|
-
gridColumnStart,
|
|
301311
|
-
colSpan,
|
|
301312
|
-
totalRows,
|
|
301313
|
-
totalCols
|
|
301314
|
-
},
|
|
301535
|
+
hasBordersAttribute,
|
|
301536
|
+
tableBorders: effectiveTableBorders,
|
|
301537
|
+
cellPosition,
|
|
301315
301538
|
cellSpacingPx,
|
|
301316
301539
|
continuesFromPrev: continuesFromPrev === true,
|
|
301317
|
-
continuesOnNext: continuesOnNext === true
|
|
301540
|
+
continuesOnNext: continuesOnNext === true,
|
|
301541
|
+
aboveCellBorders,
|
|
301542
|
+
leftCellBorders,
|
|
301543
|
+
rightCellBorders,
|
|
301544
|
+
nextRowLeavesRightGap,
|
|
301545
|
+
deferTopToAboveCell: aboveCellRightEdge !== undefined && aboveCellRightEdge > rowRightEdgeCol,
|
|
301546
|
+
nextRowSuppressesSharedTop
|
|
301318
301547
|
});
|
|
301319
301548
|
const finalBorders = isRtl && resolvedBorders ? swapCellBordersLR(resolvedBorders) : resolvedBorders;
|
|
301320
301549
|
let cellHeight;
|
|
@@ -301447,12 +301676,22 @@ menclose::after {
|
|
|
301447
301676
|
if (!rowMeasure)
|
|
301448
301677
|
continue;
|
|
301449
301678
|
const boundariesInRow = /* @__PURE__ */ new Set;
|
|
301679
|
+
const occupiedCols = /* @__PURE__ */ new Set;
|
|
301680
|
+
for (const cellMeasure of rowMeasure.cells) {
|
|
301681
|
+
const s2 = cellMeasure.gridColumnStart ?? 0;
|
|
301682
|
+
const sp = cellMeasure.colSpan ?? 1;
|
|
301683
|
+
for (let c = s2;c < s2 + sp; c++)
|
|
301684
|
+
occupiedCols.add(c);
|
|
301685
|
+
}
|
|
301686
|
+
const lastColIndex = columnCount - 1;
|
|
301687
|
+
const lastColMeta = fragment.metadata.columnBoundaries[lastColIndex];
|
|
301688
|
+
const skipTrailingSpacerBoundary = lastColIndex > 0 && !occupiedCols.has(lastColIndex) && !!lastColMeta && typeof lastColMeta.width === "number" && typeof lastColMeta.minWidth === "number" && lastColMeta.width < lastColMeta.minWidth;
|
|
301450
301689
|
for (const cellMeasure of rowMeasure.cells) {
|
|
301451
301690
|
const startCol = cellMeasure.gridColumnStart ?? 0;
|
|
301452
301691
|
const endCol = startCol + (cellMeasure.colSpan ?? 1);
|
|
301453
301692
|
if (startCol > 0)
|
|
301454
301693
|
boundariesInRow.add(startCol);
|
|
301455
|
-
if (endCol < columnCount)
|
|
301694
|
+
if (endCol < columnCount && !(skipTrailingSpacerBoundary && endCol === lastColIndex))
|
|
301456
301695
|
boundariesInRow.add(endCol);
|
|
301457
301696
|
}
|
|
301458
301697
|
for (const boundaryCol of boundariesInRow) {
|
|
@@ -301509,6 +301748,16 @@ menclose::after {
|
|
|
301509
301748
|
return fragment.partialRow.partialHeight;
|
|
301510
301749
|
return r$1?.height ?? 0;
|
|
301511
301750
|
});
|
|
301751
|
+
const rowOccupiedRightCols = new Array(measure.rows.length).fill(0);
|
|
301752
|
+
measure.rows.forEach((rowM, r$1) => {
|
|
301753
|
+
for (const c of rowM?.cells ?? []) {
|
|
301754
|
+
const right$1 = (c.gridColumnStart ?? 0) + (c.colSpan ?? 1);
|
|
301755
|
+
const lastRow = Math.min(measure.rows.length - 1, r$1 + (c.rowSpan ?? 1) - 1);
|
|
301756
|
+
for (let rr = r$1;rr <= lastRow; rr += 1)
|
|
301757
|
+
if (right$1 > rowOccupiedRightCols[rr])
|
|
301758
|
+
rowOccupiedRightCols[rr] = right$1;
|
|
301759
|
+
}
|
|
301760
|
+
});
|
|
301512
301761
|
let y$1 = cellSpacingPx;
|
|
301513
301762
|
if (fragment.repeatHeaderCount && fragment.repeatHeaderCount > 0)
|
|
301514
301763
|
for (let r$1 = 0;r$1 < fragment.repeatHeaderCount; r$1 += 1) {
|
|
@@ -301522,6 +301771,12 @@ menclose::after {
|
|
|
301522
301771
|
y: y$1,
|
|
301523
301772
|
rowMeasure,
|
|
301524
301773
|
row: block.rows[r$1],
|
|
301774
|
+
prevRow: r$1 > 0 ? block.rows[r$1 - 1] : undefined,
|
|
301775
|
+
prevRowMeasure: r$1 > 0 ? measure.rows[r$1 - 1] : undefined,
|
|
301776
|
+
nextRow: r$1 < block.rows.length - 1 ? block.rows[r$1 + 1] : undefined,
|
|
301777
|
+
nextRowMeasure: r$1 < block.rows.length - 1 ? measure.rows[r$1 + 1] : undefined,
|
|
301778
|
+
rowOccupiedRightCol: rowOccupiedRightCols[r$1],
|
|
301779
|
+
nextRowOccupiedRightCol: rowOccupiedRightCols[r$1 + 1],
|
|
301525
301780
|
totalRows: block.rows.length,
|
|
301526
301781
|
tableBorders,
|
|
301527
301782
|
columnWidths: effectiveColumnWidths,
|
|
@@ -301640,6 +301895,12 @@ menclose::after {
|
|
|
301640
301895
|
y: y$1,
|
|
301641
301896
|
rowMeasure,
|
|
301642
301897
|
row: block.rows[r$1],
|
|
301898
|
+
prevRow: r$1 > 0 ? block.rows[r$1 - 1] : undefined,
|
|
301899
|
+
prevRowMeasure: r$1 > 0 ? measure.rows[r$1 - 1] : undefined,
|
|
301900
|
+
nextRow: r$1 < block.rows.length - 1 ? block.rows[r$1 + 1] : undefined,
|
|
301901
|
+
nextRowMeasure: r$1 < block.rows.length - 1 ? measure.rows[r$1 + 1] : undefined,
|
|
301902
|
+
rowOccupiedRightCol: rowOccupiedRightCols[r$1],
|
|
301903
|
+
nextRowOccupiedRightCol: rowOccupiedRightCols[r$1 + 1],
|
|
301643
301904
|
totalRows: block.rows.length,
|
|
301644
301905
|
tableBorders,
|
|
301645
301906
|
columnWidths: effectiveColumnWidths,
|
|
@@ -315517,19 +315778,19 @@ menclose::after {
|
|
|
315517
315778
|
return;
|
|
315518
315779
|
console.log(...args$1);
|
|
315519
315780
|
}, HEADER_FOOTER_INIT_BUDGET_MS = 200, MAX_ZOOM_WARNING_THRESHOLD = 10, MAX_SELECTION_RECTS_PER_USER = 100, SEMANTIC_RESIZE_DEBOUNCE_MS = 120, MIN_SEMANTIC_CONTENT_WIDTH_PX = 1, GLOBAL_PERFORMANCE, PresentationEditor, ICONS, TEXTS, tableActionsOptions, TRACKED_MARK_NAMES;
|
|
315520
|
-
var
|
|
315781
|
+
var init_src_DYT7_l3i_es = __esm(() => {
|
|
315521
315782
|
init_rolldown_runtime_Bg48TavK_es();
|
|
315522
|
-
|
|
315783
|
+
init_SuperConverter_DBsJeu9t_es();
|
|
315523
315784
|
init_jszip_C49i9kUs_es();
|
|
315524
315785
|
init_xml_js_CqGKpaft_es();
|
|
315525
315786
|
init_uuid_qzgm05fK_es();
|
|
315526
|
-
|
|
315527
|
-
|
|
315787
|
+
init_create_headless_toolbar_BiY_0zZP_es();
|
|
315788
|
+
init_constants_D9qj59G2_es();
|
|
315528
315789
|
init_dist_B8HfvhaK_es();
|
|
315529
315790
|
init_unified_Dsuw2be5_es();
|
|
315530
315791
|
init_remark_gfm_BhnWr3yf_es();
|
|
315531
315792
|
init_remark_stringify_6MMJfY0k_es();
|
|
315532
|
-
|
|
315793
|
+
init_DocxZipper_Bu2Fhqkw_es();
|
|
315533
315794
|
init__plugin_vue_export_helper_5t5P5NuM_es();
|
|
315534
315795
|
init_eventemitter3_BnGqBE_Q_es();
|
|
315535
315796
|
init_errors_CNaD6vcg_es();
|
|
@@ -318604,6 +318865,17 @@ ${err.toString()}`);
|
|
|
318604
318865
|
dispatch
|
|
318605
318866
|
});
|
|
318606
318867
|
},
|
|
318868
|
+
resolveCommentThread: ({ comments } = {}) => ({ tr, dispatch, state }) => {
|
|
318869
|
+
tr.setMeta(CommentsPluginKey, { event: "update" });
|
|
318870
|
+
const converted = resolveCommentsInTr({
|
|
318871
|
+
items: comments,
|
|
318872
|
+
state,
|
|
318873
|
+
tr
|
|
318874
|
+
});
|
|
318875
|
+
if (converted)
|
|
318876
|
+
dispatch(tr);
|
|
318877
|
+
return converted;
|
|
318878
|
+
},
|
|
318607
318879
|
reopenComment: ({ commentId, importedId, internal }) => ({ tr, dispatch, state }) => {
|
|
318608
318880
|
tr.setMeta(CommentsPluginKey, { event: "update" });
|
|
318609
318881
|
return reopenCommentById({
|
|
@@ -342392,6 +342664,30 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
342392
342664
|
"wave",
|
|
342393
342665
|
"doubleWave"
|
|
342394
342666
|
]);
|
|
342667
|
+
BORDER_STYLE_NUMBER = {
|
|
342668
|
+
single: 1,
|
|
342669
|
+
thick: 2,
|
|
342670
|
+
double: 3,
|
|
342671
|
+
dotted: 4,
|
|
342672
|
+
dashed: 5,
|
|
342673
|
+
dotDash: 6,
|
|
342674
|
+
dotDotDash: 7,
|
|
342675
|
+
triple: 8,
|
|
342676
|
+
wave: 18,
|
|
342677
|
+
doubleWave: 19
|
|
342678
|
+
};
|
|
342679
|
+
BORDER_STYLE_LINES = {
|
|
342680
|
+
single: 1,
|
|
342681
|
+
thick: 1,
|
|
342682
|
+
double: 2,
|
|
342683
|
+
dotted: 1,
|
|
342684
|
+
dashed: 1,
|
|
342685
|
+
dotDash: 1,
|
|
342686
|
+
dotDotDash: 1,
|
|
342687
|
+
triple: 3,
|
|
342688
|
+
wave: 1,
|
|
342689
|
+
doubleWave: 2
|
|
342690
|
+
};
|
|
342395
342691
|
SETTLED_STATUSES = [
|
|
342396
342692
|
"loaded",
|
|
342397
342693
|
"failed",
|
|
@@ -342403,7 +342699,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
342403
342699
|
cambria: "Caladea",
|
|
342404
342700
|
arial: "Liberation Sans",
|
|
342405
342701
|
"times new roman": "Liberation Serif",
|
|
342406
|
-
"courier new": "Liberation Mono"
|
|
342702
|
+
"courier new": "Liberation Mono",
|
|
342703
|
+
helvetica: "Liberation Sans"
|
|
342407
342704
|
});
|
|
342408
342705
|
defaultResolver = new FontResolver;
|
|
342409
342706
|
DEFAULT_FONT_MEASURE_CONTEXT = Object.freeze({
|
|
@@ -350232,11 +350529,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
350232
350529
|
]);
|
|
350233
350530
|
});
|
|
350234
350531
|
|
|
350235
|
-
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-
|
|
350532
|
+
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-k5vyPmpN.es.js
|
|
350236
350533
|
var MOD_ALIASES, ALT_ALIASES, CTRL_ALIASES, SHIFT_ALIASES, BUILTIN_CONTEXT_MENU_GROUPS, BUILTIN_GROUP_ORDER, RESERVED_PROXY_PROPERTY_NAMES, ALL_TOOLBAR_COMMAND_IDS, EMPTY_ACTIVE_IDS;
|
|
350237
|
-
var
|
|
350238
|
-
|
|
350239
|
-
|
|
350534
|
+
var init_create_super_doc_ui_k5vyPmpN_es = __esm(() => {
|
|
350535
|
+
init_SuperConverter_DBsJeu9t_es();
|
|
350536
|
+
init_create_headless_toolbar_BiY_0zZP_es();
|
|
350240
350537
|
MOD_ALIASES = new Set([
|
|
350241
350538
|
"Mod",
|
|
350242
350539
|
"Meta",
|
|
@@ -350278,16 +350575,16 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
|
|
|
350278
350575
|
|
|
350279
350576
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
350280
350577
|
var init_super_editor_es = __esm(() => {
|
|
350281
|
-
|
|
350282
|
-
|
|
350578
|
+
init_src_DYT7_l3i_es();
|
|
350579
|
+
init_SuperConverter_DBsJeu9t_es();
|
|
350283
350580
|
init_jszip_C49i9kUs_es();
|
|
350284
350581
|
init_xml_js_CqGKpaft_es();
|
|
350285
|
-
|
|
350286
|
-
|
|
350582
|
+
init_create_headless_toolbar_BiY_0zZP_es();
|
|
350583
|
+
init_constants_D9qj59G2_es();
|
|
350287
350584
|
init_dist_B8HfvhaK_es();
|
|
350288
350585
|
init_unified_Dsuw2be5_es();
|
|
350289
|
-
|
|
350290
|
-
|
|
350586
|
+
init_DocxZipper_Bu2Fhqkw_es();
|
|
350587
|
+
init_create_super_doc_ui_k5vyPmpN_es();
|
|
350291
350588
|
init_ui_C5PAS9hY_es();
|
|
350292
350589
|
init_eventemitter3_BnGqBE_Q_es();
|
|
350293
350590
|
init_errors_CNaD6vcg_es();
|
|
@@ -377735,7 +378032,7 @@ var import_xml_js, CRC32_TABLE2, PIXELS_PER_INCH3 = 96, EIGHTHS_PER_POINT2 = 8,
|
|
|
377735
378032
|
return a2.length === 1 ? "0" + a2 : a2;
|
|
377736
378033
|
}, rgbToHex3 = (rgb) => {
|
|
377737
378034
|
return "#" + rgb.match(/\d+/g).map(componentToHex2).join("");
|
|
377738
|
-
}, DEFAULT_SHADING_FOREGROUND_COLOR2 = "#000000", hexToRgb3 = (hex3) => {
|
|
378035
|
+
}, DEFAULT_SHADING_FOREGROUND_COLOR2 = "#000000", DEFAULT_SHADING_FILL_COLOR2 = "#FFFFFF", hexToRgb3 = (hex3) => {
|
|
377739
378036
|
const normalized = normalizeHexColor4(hex3);
|
|
377740
378037
|
if (!normalized)
|
|
377741
378038
|
return null;
|
|
@@ -377762,18 +378059,22 @@ var import_xml_js, CRC32_TABLE2, PIXELS_PER_INCH3 = 96, EIGHTHS_PER_POINT2 = 8,
|
|
|
377762
378059
|
}, resolveShadingFillColor2 = (shading) => {
|
|
377763
378060
|
if (!shading || typeof shading !== "object")
|
|
377764
378061
|
return null;
|
|
377765
|
-
const fill = normalizeHexColor4(shading.fill);
|
|
377766
|
-
if (!fill)
|
|
377767
|
-
return null;
|
|
377768
378062
|
const val = typeof shading.val === "string" ? shading.val.trim().toLowerCase() : "";
|
|
378063
|
+
if (val === "nil" || val === "none")
|
|
378064
|
+
return null;
|
|
378065
|
+
const fillIsAuto = typeof shading.fill === "string" && shading.fill.trim().toLowerCase() === "auto";
|
|
378066
|
+
const fillHex = fillIsAuto ? null : normalizeHexColor4(shading.fill);
|
|
377769
378067
|
const pctMatch = val.match(/^pct(\d{1,3})$/);
|
|
377770
|
-
|
|
377771
|
-
|
|
377772
|
-
|
|
378068
|
+
const isPattern = Boolean(pctMatch) || val === "solid";
|
|
378069
|
+
if (!isPattern)
|
|
378070
|
+
return fillHex;
|
|
378071
|
+
const baseHex = fillHex ?? DEFAULT_SHADING_FILL_COLOR2;
|
|
378072
|
+
const colorIsAuto = typeof shading.color !== "string" || shading.color.trim() === "" || shading.color.trim().toLowerCase() === "auto";
|
|
378073
|
+
const foregroundHex = colorIsAuto ? DEFAULT_SHADING_FOREGROUND_COLOR2 : normalizeHexColor4(shading.color) ?? DEFAULT_SHADING_FOREGROUND_COLOR2;
|
|
378074
|
+
const pct = pctMatch ? Number.parseInt(pctMatch[1], 10) : 100;
|
|
377773
378075
|
if (!Number.isFinite(pct) || pct < 0 || pct > 100)
|
|
377774
|
-
return
|
|
377775
|
-
|
|
377776
|
-
return blendHexColors2(fill, foreground, pct / 100) ?? fill;
|
|
378076
|
+
return fillHex;
|
|
378077
|
+
return blendHexColors2(baseHex, foregroundHex, pct / 100) ?? fillHex;
|
|
377777
378078
|
}, deobfuscateFont2 = (arrayBuffer, guidHex) => {
|
|
377778
378079
|
const dta = new Uint8Array(arrayBuffer);
|
|
377779
378080
|
const guidStr = guidHex.replace(/[-{}]/g, "");
|
|
@@ -382057,16 +382358,15 @@ var isTableRowNode2 = (node3) => node3.type === "tableRow" || node3.type === "ta
|
|
|
382057
382358
|
}
|
|
382058
382359
|
}
|
|
382059
382360
|
if (!cellBackgroundColor && resolvedTcProps?.shading) {
|
|
382060
|
-
const { fill, themeFill, themeFillTint, themeFillShade } = resolvedTcProps.shading;
|
|
382061
|
-
|
|
382062
|
-
if (
|
|
382063
|
-
|
|
382064
|
-
|
|
382065
|
-
|
|
382066
|
-
|
|
382067
|
-
|
|
382068
|
-
|
|
382069
|
-
}
|
|
382361
|
+
const { fill, color: color2, val, themeFill, themeFillTint, themeFillShade } = resolvedTcProps.shading;
|
|
382362
|
+
let fillBase = normalizeShadingColor2(fill);
|
|
382363
|
+
if (!fillBase && themeFill && context.themeColors) {
|
|
382364
|
+
const resolvedTheme = resolveThemeColorValue2(themeFill, themeFillTint, themeFillShade, context.themeColors);
|
|
382365
|
+
fillBase = normalizeShadingColor2(resolvedTheme);
|
|
382366
|
+
}
|
|
382367
|
+
const resolved = resolveShadingFillColor2({ val, color: color2, fill: fillBase ?? fill });
|
|
382368
|
+
if (resolved) {
|
|
382369
|
+
cellBackgroundColor = resolved.startsWith("#") ? resolved : `#${resolved}`;
|
|
382070
382370
|
}
|
|
382071
382371
|
}
|
|
382072
382372
|
const cellConverterContext = tableInfo || cellBackgroundColor ? {
|
|
@@ -382328,9 +382628,12 @@ var isTableRowNode2 = (node3) => node3.type === "tableRow" || node3.type === "ta
|
|
|
382328
382628
|
return null;
|
|
382329
382629
|
const rowProps = rowNode.attrs?.tableRowProperties;
|
|
382330
382630
|
const rowHeight = normalizeRowHeight2(rowProps);
|
|
382631
|
+
const tblPrExBordersRaw = rowProps?.tblPrExBorders;
|
|
382632
|
+
const rowBorders = tblPrExBordersRaw && typeof tblPrExBordersRaw === "object" ? extractTableBorders2(tblPrExBordersRaw, { unit: "eighthPoints" }) : undefined;
|
|
382331
382633
|
const attrs = rowProps && typeof rowProps === "object" ? {
|
|
382332
382634
|
tableRowProperties: rowProps,
|
|
382333
|
-
...rowHeight ? { rowHeight } : {}
|
|
382635
|
+
...rowHeight ? { rowHeight } : {},
|
|
382636
|
+
...rowBorders ? { borders: rowBorders } : {}
|
|
382334
382637
|
} : rowHeight ? { rowHeight } : undefined;
|
|
382335
382638
|
return {
|
|
382336
382639
|
id: context.nextBlockId(`row-${rowIndex}`),
|
|
@@ -382343,6 +382646,7 @@ var init_table = __esm(() => {
|
|
|
382343
382646
|
init_attributes();
|
|
382344
382647
|
init_utilities();
|
|
382345
382648
|
init_table_styles();
|
|
382649
|
+
init_helpers();
|
|
382346
382650
|
init_marks();
|
|
382347
382651
|
init_tracked_changes();
|
|
382348
382652
|
init_sdt();
|
|
@@ -450757,6 +451061,42 @@ var prepareCommentParaIds2 = (comment2) => {
|
|
|
450757
451061
|
commentParaId: generateDocxRandomId2()
|
|
450758
451062
|
};
|
|
450759
451063
|
return newComment;
|
|
451064
|
+
}, getCommentIds2 = (comment2) => {
|
|
451065
|
+
if (!comment2)
|
|
451066
|
+
return [];
|
|
451067
|
+
return [comment2.commentId, comment2.importedId, comment2.internalId].filter((id2) => id2 != null).map((id2) => String(id2));
|
|
451068
|
+
}, buildCommentLookup2 = (comments = []) => {
|
|
451069
|
+
const byId = new Map;
|
|
451070
|
+
for (const comment2 of comments) {
|
|
451071
|
+
getCommentIds2(comment2).forEach((id2) => byId.set(id2, comment2));
|
|
451072
|
+
}
|
|
451073
|
+
return byId;
|
|
451074
|
+
}, findCommentById2 = (comments = [], id2) => {
|
|
451075
|
+
if (id2 == null)
|
|
451076
|
+
return null;
|
|
451077
|
+
const lookup3 = buildCommentLookup2(comments);
|
|
451078
|
+
return lookup3.get(String(id2)) || null;
|
|
451079
|
+
}, isCommentResolvedInThread2 = (comment2, allComments = []) => {
|
|
451080
|
+
const isDone = (c) => Boolean(c?.resolvedTime || c?.isDone);
|
|
451081
|
+
if (isDone(comment2))
|
|
451082
|
+
return true;
|
|
451083
|
+
const byId = buildCommentLookup2(allComments);
|
|
451084
|
+
const seen = new Set;
|
|
451085
|
+
let current = comment2;
|
|
451086
|
+
while (current) {
|
|
451087
|
+
const parentId = current.threadingParentCommentId || current.parentCommentId;
|
|
451088
|
+
const parentKey = parentId != null ? String(parentId) : null;
|
|
451089
|
+
if (parentKey == null || seen.has(parentKey))
|
|
451090
|
+
break;
|
|
451091
|
+
seen.add(parentKey);
|
|
451092
|
+
const parent = byId.get(parentKey);
|
|
451093
|
+
if (!parent)
|
|
451094
|
+
break;
|
|
451095
|
+
if (isDone(parent))
|
|
451096
|
+
return true;
|
|
451097
|
+
current = parent;
|
|
451098
|
+
}
|
|
451099
|
+
return false;
|
|
450760
451100
|
}, getCommentDefinition2 = (comment2, commentId, allComments, editor) => {
|
|
450761
451101
|
const nodes = Array.isArray(comment2.commentJSON) ? comment2.commentJSON : comment2.commentJSON ? [comment2.commentJSON] : [];
|
|
450762
451102
|
const translatedParagraphs = nodes.map((node4) => translator121.decode({ editor, node: node4 })).filter(Boolean);
|
|
@@ -450765,7 +451105,7 @@ var prepareCommentParaIds2 = (comment2) => {
|
|
|
450765
451105
|
"w:author": comment2.creatorName || comment2.importedAuthor?.name,
|
|
450766
451106
|
"w:date": toIsoNoFractional2(comment2.createdTime),
|
|
450767
451107
|
"w:initials": getInitials2(comment2.creatorName),
|
|
450768
|
-
"w:done": comment2
|
|
451108
|
+
"w:done": isCommentResolvedInThread2(comment2, allComments) ? "1" : "0",
|
|
450769
451109
|
"w15:paraId": comment2.commentParaId,
|
|
450770
451110
|
"custom:internalId": comment2.commentId || comment2.internalId,
|
|
450771
451111
|
"custom:trackedChange": comment2.trackedChange,
|
|
@@ -450776,7 +451116,7 @@ var prepareCommentParaIds2 = (comment2) => {
|
|
|
450776
451116
|
"custom:email": comment2.creatorEmail || comment2.importedAuthor?.email
|
|
450777
451117
|
};
|
|
450778
451118
|
if (comment2?.parentCommentId) {
|
|
450779
|
-
const parentComment = allComments
|
|
451119
|
+
const parentComment = findCommentById2(allComments, comment2.parentCommentId);
|
|
450780
451120
|
if (parentComment && !parentComment.trackedChange) {
|
|
450781
451121
|
attributes["w15:paraIdParent"] = parentComment.commentParaId;
|
|
450782
451122
|
}
|
|
@@ -450861,7 +451201,7 @@ var prepareCommentParaIds2 = (comment2) => {
|
|
|
450861
451201
|
}
|
|
450862
451202
|
const xmlCopy = carbonCopy2(commentsExtendedXml);
|
|
450863
451203
|
const commentsEx = comments.map((comment2) => {
|
|
450864
|
-
const isResolved = comment2
|
|
451204
|
+
const isResolved = isCommentResolvedInThread2(comment2, comments);
|
|
450865
451205
|
const attributes = {
|
|
450866
451206
|
"w15:paraId": comment2.commentParaId,
|
|
450867
451207
|
"w15:done": isResolved ? "1" : "0"
|
|
@@ -450869,7 +451209,7 @@ var prepareCommentParaIds2 = (comment2) => {
|
|
|
450869
451209
|
const parentId = comment2.threadingParentCommentId || comment2.parentCommentId;
|
|
450870
451210
|
const threadingStyle = resolveThreadingStyle2(comment2, profile);
|
|
450871
451211
|
if (parentId && (threadingStyle === "commentsExtended" || shouldIncludeForThreads)) {
|
|
450872
|
-
const parentComment = comments
|
|
451212
|
+
const parentComment = findCommentById2(comments, parentId);
|
|
450873
451213
|
const allowTrackedParent = profile?.defaultStyle === "commentsExtended";
|
|
450874
451214
|
if (parentComment && (allowTrackedParent || !parentComment.trackedChange)) {
|
|
450875
451215
|
attributes["w15:paraIdParent"] = parentComment.commentParaId;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc-dev/mcp",
|
|
3
|
-
"version": "0.11.0-next.
|
|
3
|
+
"version": "0.11.0-next.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=20"
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"@types/bun": "^1.3.8",
|
|
20
20
|
"@types/node": "22.19.2",
|
|
21
21
|
"typescript": "^5.9.2",
|
|
22
|
+
"@superdoc/super-editor": "0.0.1",
|
|
22
23
|
"@superdoc/document-api": "0.0.1",
|
|
23
|
-
"superdoc": "1.38.0"
|
|
24
|
-
"@superdoc/super-editor": "0.0.1"
|
|
24
|
+
"superdoc": "1.38.0"
|
|
25
25
|
},
|
|
26
26
|
"publishConfig": {
|
|
27
27
|
"access": "public"
|