@superdoc-dev/cli 0.16.0-next.32 → 0.16.0-next.33
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 +167 -84
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -3382,7 +3382,7 @@ More content with **bold** and *italic*.`
|
|
|
3382
3382
|
"trackChanges.list": {
|
|
3383
3383
|
memberPath: "trackChanges.list",
|
|
3384
3384
|
description: "List all tracked changes in the document.",
|
|
3385
|
-
expectedResult: "Returns a TrackChangesListResult with tracked change entries (`insert`, `delete`, `replacement`, `format
|
|
3385
|
+
expectedResult: "Returns a TrackChangesListResult with tracked change entries (`insert`, `delete`, `replacement`, `format`), total count, and raw imported Word OOXML revision IDs (`w:id`) when available. Whole-table tracked insertions and deletions are surfaced through the legacy `insert` / `delete` types.",
|
|
3386
3386
|
requiresDocumentContext: true,
|
|
3387
3387
|
metadata: readOperation({
|
|
3388
3388
|
idempotency: "idempotent",
|
|
@@ -3396,7 +3396,7 @@ More content with **bold** and *italic*.`
|
|
|
3396
3396
|
"trackChanges.get": {
|
|
3397
3397
|
memberPath: "trackChanges.get",
|
|
3398
3398
|
description: "Retrieve a single tracked change by ID.",
|
|
3399
|
-
expectedResult: "Returns a TrackChangeInfo object with the change type (`insert`, `delete`, `replacement`, `format
|
|
3399
|
+
expectedResult: "Returns a TrackChangeInfo object with the change type (`insert`, `delete`, `replacement`, `format`), author, date, affected content, and raw imported Word OOXML revision IDs (`w:id`) when available. Whole-table tracked insertions and deletions are surfaced through the legacy `insert` / `delete` types.",
|
|
3400
3400
|
requiresDocumentContext: true,
|
|
3401
3401
|
metadata: readOperation({
|
|
3402
3402
|
idempotency: "idempotent",
|
|
@@ -3416,6 +3416,7 @@ More content with **bold** and *italic*.`
|
|
|
3416
3416
|
supportsTrackedMode: false,
|
|
3417
3417
|
possibleFailureCodes: [
|
|
3418
3418
|
"NO_OP",
|
|
3419
|
+
"INVALID_INPUT",
|
|
3419
3420
|
"INVALID_TARGET",
|
|
3420
3421
|
"TARGET_NOT_FOUND",
|
|
3421
3422
|
"CAPABILITY_UNAVAILABLE",
|
|
@@ -8780,7 +8781,7 @@ var init_schemas = __esm(() => {
|
|
|
8780
8781
|
init_style_policy_types();
|
|
8781
8782
|
init_paragraphs();
|
|
8782
8783
|
init_styles();
|
|
8783
|
-
trackChangeTypeValues = ["insert", "delete", "replacement", "format"
|
|
8784
|
+
trackChangeTypeValues = ["insert", "delete", "replacement", "format"];
|
|
8784
8785
|
nodeTypeValues = NODE_TYPES;
|
|
8785
8786
|
blockNodeTypeValues = BLOCK_NODE_TYPES;
|
|
8786
8787
|
deletableBlockNodeTypeValues = DELETABLE_BLOCK_NODE_TYPES;
|
|
@@ -9550,10 +9551,6 @@ var init_schemas = __esm(() => {
|
|
|
9550
9551
|
address: trackedChangeAddressSchema,
|
|
9551
9552
|
id: { type: "string" },
|
|
9552
9553
|
type: { enum: [...trackChangeTypeValues] },
|
|
9553
|
-
subtype: {
|
|
9554
|
-
enum: ["table-insert", "table-delete"],
|
|
9555
|
-
description: "Finer classification for structural changes (type === 'structural')."
|
|
9556
|
-
},
|
|
9557
9554
|
grouping: { enum: ["standalone", "replacement-pair", "unknown"] },
|
|
9558
9555
|
pairedWithChangeId: { type: ["string", "null"] },
|
|
9559
9556
|
wordRevisionIds: trackChangeWordRevisionIdsSchema,
|
|
@@ -9568,10 +9565,6 @@ var init_schemas = __esm(() => {
|
|
|
9568
9565
|
trackChangeDomainItemSchema = discoveryItemSchema({
|
|
9569
9566
|
address: trackedChangeAddressSchema,
|
|
9570
9567
|
type: { enum: [...trackChangeTypeValues] },
|
|
9571
|
-
subtype: {
|
|
9572
|
-
enum: ["table-insert", "table-delete"],
|
|
9573
|
-
description: "Finer classification for structural changes (type === 'structural')."
|
|
9574
|
-
},
|
|
9575
9568
|
grouping: { enum: ["standalone", "replacement-pair", "unknown"] },
|
|
9576
9569
|
pairedWithChangeId: { type: ["string", "null"] },
|
|
9577
9570
|
wordRevisionIds: trackChangeWordRevisionIdsSchema,
|
|
@@ -11885,7 +11878,7 @@ var init_schemas = __esm(() => {
|
|
|
11885
11878
|
offset: { type: "integer", description: "Number of tracked changes to skip for pagination." },
|
|
11886
11879
|
type: {
|
|
11887
11880
|
enum: [...trackChangeTypeValues],
|
|
11888
|
-
description: "Filter by change type: 'insert', 'delete', 'replacement',
|
|
11881
|
+
description: "Filter by change type: 'insert', 'delete', 'replacement', or 'format'."
|
|
11889
11882
|
},
|
|
11890
11883
|
in: {
|
|
11891
11884
|
oneOf: [storyLocatorSchema, { const: "all" }],
|
|
@@ -68373,7 +68366,7 @@ var init_remark_gfm_BhnWr3yf_es = __esm(() => {
|
|
|
68373
68366
|
emptyOptions2 = {};
|
|
68374
68367
|
});
|
|
68375
68368
|
|
|
68376
|
-
// ../../packages/superdoc/dist/chunks/SuperConverter-
|
|
68369
|
+
// ../../packages/superdoc/dist/chunks/SuperConverter-DOoAJ6Zk.es.js
|
|
68377
68370
|
function getExtensionConfigField(extension$1, field, context = { name: "" }) {
|
|
68378
68371
|
const fieldValue = extension$1.config[field];
|
|
68379
68372
|
if (typeof fieldValue === "function")
|
|
@@ -108582,6 +108575,9 @@ function writeSectPrPageNumbering(sectPr, numbering) {
|
|
|
108582
108575
|
if (numbering.chapterSeparator !== undefined)
|
|
108583
108576
|
setStringAttr(pgNumType, "w:chapSep", numbering.chapterSeparator);
|
|
108584
108577
|
}
|
|
108578
|
+
function readSectPrTitlePage(sectPr) {
|
|
108579
|
+
return Boolean(findChild(sectPr, "w:titlePg"));
|
|
108580
|
+
}
|
|
108585
108581
|
function writeSectPrTitlePage(sectPr, enabled) {
|
|
108586
108582
|
if (enabled) {
|
|
108587
108583
|
ensureChild(sectPr, "w:titlePg");
|
|
@@ -111263,6 +111259,13 @@ function getTextAdapter(editor, input) {
|
|
|
111263
111259
|
`, `
|
|
111264
111260
|
`, { textModel: "visible" });
|
|
111265
111261
|
}
|
|
111262
|
+
function projectInternalTrackChangeType(type, structural) {
|
|
111263
|
+
if (type !== "structural")
|
|
111264
|
+
return type;
|
|
111265
|
+
if (structural?.subtype === "table-delete" || structural?.side === "deletion")
|
|
111266
|
+
return "delete";
|
|
111267
|
+
return "insert";
|
|
111268
|
+
}
|
|
111266
111269
|
function rangesOverlap(a, b) {
|
|
111267
111270
|
return a[0] < b[1] && b[0] < a[1];
|
|
111268
111271
|
}
|
|
@@ -111366,17 +111369,18 @@ function buildPublicTrackedChangeIdMap(grouped, replacements) {
|
|
|
111366
111369
|
return publicIdByChange;
|
|
111367
111370
|
}
|
|
111368
111371
|
function layerFromChange(change, relationship) {
|
|
111372
|
+
const type = resolveTrackedChangeType(change);
|
|
111369
111373
|
return {
|
|
111370
111374
|
id: change.id,
|
|
111371
111375
|
rawId: change.rawId,
|
|
111372
111376
|
commandRawId: change.commandRawId,
|
|
111373
|
-
type:
|
|
111377
|
+
type: projectInternalTrackChangeType(type, change.structural),
|
|
111374
111378
|
relationship
|
|
111375
111379
|
};
|
|
111376
111380
|
}
|
|
111377
111381
|
function compareOverlapChildren(a, b) {
|
|
111378
|
-
const aType = resolveTrackedChangeType(a);
|
|
111379
|
-
const bType = resolveTrackedChangeType(b);
|
|
111382
|
+
const aType = projectInternalTrackChangeType(resolveTrackedChangeType(a), a.structural);
|
|
111383
|
+
const bType = projectInternalTrackChangeType(resolveTrackedChangeType(b), b.structural);
|
|
111380
111384
|
if (aType !== bType) {
|
|
111381
111385
|
if (aType === "delete")
|
|
111382
111386
|
return -1;
|
|
@@ -134033,7 +134037,7 @@ var isRegExp = (value) => {
|
|
|
134033
134037
|
state.kern = kernNode.attributes["w:val"];
|
|
134034
134038
|
}
|
|
134035
134039
|
}, SuperConverter;
|
|
134036
|
-
var
|
|
134040
|
+
var init_SuperConverter_DOoAJ6Zk_es = __esm(() => {
|
|
134037
134041
|
init_rolldown_runtime_Bg48TavK_es();
|
|
134038
134042
|
init_jszip_C49i9kUs_es();
|
|
134039
134043
|
init_xml_js_CqGKpaft_es();
|
|
@@ -139049,7 +139053,7 @@ var init_SuperConverter_BVWG4qnQ_es = __esm(() => {
|
|
|
139049
139053
|
"trackChanges.list": {
|
|
139050
139054
|
memberPath: "trackChanges.list",
|
|
139051
139055
|
description: "List all tracked changes in the document.",
|
|
139052
|
-
expectedResult: "Returns a TrackChangesListResult with tracked change entries (`insert`, `delete`, `replacement`, `format
|
|
139056
|
+
expectedResult: "Returns a TrackChangesListResult with tracked change entries (`insert`, `delete`, `replacement`, `format`), total count, and raw imported Word OOXML revision IDs (`w:id`) when available. Whole-table tracked insertions and deletions are surfaced through the legacy `insert` / `delete` types.",
|
|
139053
139057
|
requiresDocumentContext: true,
|
|
139054
139058
|
metadata: readOperation2({
|
|
139055
139059
|
idempotency: "idempotent",
|
|
@@ -139063,7 +139067,7 @@ var init_SuperConverter_BVWG4qnQ_es = __esm(() => {
|
|
|
139063
139067
|
"trackChanges.get": {
|
|
139064
139068
|
memberPath: "trackChanges.get",
|
|
139065
139069
|
description: "Retrieve a single tracked change by ID.",
|
|
139066
|
-
expectedResult: "Returns a TrackChangeInfo object with the change type (`insert`, `delete`, `replacement`, `format
|
|
139070
|
+
expectedResult: "Returns a TrackChangeInfo object with the change type (`insert`, `delete`, `replacement`, `format`), author, date, affected content, and raw imported Word OOXML revision IDs (`w:id`) when available. Whole-table tracked insertions and deletions are surfaced through the legacy `insert` / `delete` types.",
|
|
139067
139071
|
requiresDocumentContext: true,
|
|
139068
139072
|
metadata: readOperation2({
|
|
139069
139073
|
idempotency: "idempotent",
|
|
@@ -139083,6 +139087,7 @@ var init_SuperConverter_BVWG4qnQ_es = __esm(() => {
|
|
|
139083
139087
|
supportsTrackedMode: false,
|
|
139084
139088
|
possibleFailureCodes: [
|
|
139085
139089
|
"NO_OP",
|
|
139090
|
+
"INVALID_INPUT",
|
|
139086
139091
|
"INVALID_TARGET",
|
|
139087
139092
|
"TARGET_NOT_FOUND",
|
|
139088
139093
|
"CAPABILITY_UNAVAILABLE",
|
|
@@ -143562,8 +143567,7 @@ var init_SuperConverter_BVWG4qnQ_es = __esm(() => {
|
|
|
143562
143567
|
"insert",
|
|
143563
143568
|
"delete",
|
|
143564
143569
|
"replacement",
|
|
143565
|
-
"format"
|
|
143566
|
-
"structural"
|
|
143570
|
+
"format"
|
|
143567
143571
|
];
|
|
143568
143572
|
nodeTypeValues2 = NODE_TYPES2;
|
|
143569
143573
|
blockNodeTypeValues2 = BLOCK_NODE_TYPES2;
|
|
@@ -144593,10 +144597,6 @@ var init_SuperConverter_BVWG4qnQ_es = __esm(() => {
|
|
|
144593
144597
|
address: trackedChangeAddressSchema2,
|
|
144594
144598
|
id: { type: "string" },
|
|
144595
144599
|
type: { enum: [...trackChangeTypeValues2] },
|
|
144596
|
-
subtype: {
|
|
144597
|
-
enum: ["table-insert", "table-delete"],
|
|
144598
|
-
description: "Finer classification for structural changes (type === 'structural')."
|
|
144599
|
-
},
|
|
144600
144600
|
grouping: { enum: [
|
|
144601
144601
|
"standalone",
|
|
144602
144602
|
"replacement-pair",
|
|
@@ -144619,10 +144619,6 @@ var init_SuperConverter_BVWG4qnQ_es = __esm(() => {
|
|
|
144619
144619
|
discoveryResultSchema2(discoveryItemSchema2({
|
|
144620
144620
|
address: trackedChangeAddressSchema2,
|
|
144621
144621
|
type: { enum: [...trackChangeTypeValues2] },
|
|
144622
|
-
subtype: {
|
|
144623
|
-
enum: ["table-insert", "table-delete"],
|
|
144624
|
-
description: "Finer classification for structural changes (type === 'structural')."
|
|
144625
|
-
},
|
|
144626
144622
|
grouping: { enum: [
|
|
144627
144623
|
"standalone",
|
|
144628
144624
|
"replacement-pair",
|
|
@@ -147117,7 +147113,7 @@ var init_SuperConverter_BVWG4qnQ_es = __esm(() => {
|
|
|
147117
147113
|
},
|
|
147118
147114
|
type: {
|
|
147119
147115
|
enum: [...trackChangeTypeValues2],
|
|
147120
|
-
description: "Filter by change type: 'insert', 'delete', 'replacement',
|
|
147116
|
+
description: "Filter by change type: 'insert', 'delete', 'replacement', or 'format'."
|
|
147121
147117
|
},
|
|
147122
147118
|
in: {
|
|
147123
147119
|
oneOf: [storyLocatorSchema2, { const: "all" }],
|
|
@@ -173378,7 +173374,7 @@ var init_SuperConverter_BVWG4qnQ_es = __esm(() => {
|
|
|
173378
173374
|
};
|
|
173379
173375
|
});
|
|
173380
173376
|
|
|
173381
|
-
// ../../packages/superdoc/dist/chunks/create-headless-toolbar-
|
|
173377
|
+
// ../../packages/superdoc/dist/chunks/create-headless-toolbar-DUhzXJ4D.es.js
|
|
173382
173378
|
function parseSizeUnit(val = "0") {
|
|
173383
173379
|
const length3 = val.toString() || "0";
|
|
173384
173380
|
const value = Number.parseFloat(length3);
|
|
@@ -183711,8 +183707,8 @@ var CSS_DIMENSION_REGEX, DOM_SIZE_UNITS, normalizeActorId = (value) => {
|
|
|
183711
183707
|
}
|
|
183712
183708
|
};
|
|
183713
183709
|
};
|
|
183714
|
-
var
|
|
183715
|
-
|
|
183710
|
+
var init_create_headless_toolbar_DUhzXJ4D_es = __esm(() => {
|
|
183711
|
+
init_SuperConverter_DOoAJ6Zk_es();
|
|
183716
183712
|
init_uuid_qzgm05fK_es();
|
|
183717
183713
|
init_constants_D9qj59G2_es();
|
|
183718
183714
|
init_dist_B8HfvhaK_es();
|
|
@@ -232875,7 +232871,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
|
|
|
232875
232871
|
init_remark_gfm_BhnWr3yf_es();
|
|
232876
232872
|
});
|
|
232877
232873
|
|
|
232878
|
-
// ../../packages/superdoc/dist/chunks/src-
|
|
232874
|
+
// ../../packages/superdoc/dist/chunks/src-DEnygTyz.es.js
|
|
232879
232875
|
function deleteProps(obj, propOrProps) {
|
|
232880
232876
|
const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
|
|
232881
232877
|
const removeNested = (target, pathParts, index2 = 0) => {
|
|
@@ -249667,7 +249663,7 @@ function buildChangedTextFields(type, excerpt) {
|
|
|
249667
249663
|
}
|
|
249668
249664
|
function buildProjectedInfo(snapshot2, options = {}) {
|
|
249669
249665
|
const id2 = options.id ?? snapshot2.address.entityId;
|
|
249670
|
-
const type = options.type ?? snapshot2.type;
|
|
249666
|
+
const type = options.type ?? projectInternalTrackChangeType(snapshot2.type, { subtype: snapshot2.subtype });
|
|
249671
249667
|
return {
|
|
249672
249668
|
info: {
|
|
249673
249669
|
address: {
|
|
@@ -249676,7 +249672,6 @@ function buildProjectedInfo(snapshot2, options = {}) {
|
|
|
249676
249672
|
},
|
|
249677
249673
|
id: id2,
|
|
249678
249674
|
type,
|
|
249679
|
-
...type === "structural" && snapshot2.subtype ? { subtype: snapshot2.subtype } : {},
|
|
249680
249675
|
grouping: options.grouping,
|
|
249681
249676
|
pairedWithChangeId: options.pairedWithChangeId ?? undefined,
|
|
249682
249677
|
wordRevisionIds: normalizeWordRevisionIds(snapshot2.wordRevisionIds),
|
|
@@ -249707,7 +249702,7 @@ function replacementPairKey2(snapshot2) {
|
|
|
249707
249702
|
return null;
|
|
249708
249703
|
}
|
|
249709
249704
|
function projectedSnapshotType(snapshot2) {
|
|
249710
|
-
return isCombinedReplacementSnapshot(snapshot2) ? "replacement" : snapshot2.type;
|
|
249705
|
+
return isCombinedReplacementSnapshot(snapshot2) ? "replacement" : projectInternalTrackChangeType(snapshot2.type, { subtype: snapshot2.subtype });
|
|
249711
249706
|
}
|
|
249712
249707
|
function snapshotGrouping(snapshot2) {
|
|
249713
249708
|
return isCombinedReplacementSnapshot(snapshot2) ? "replacement-pair" : "standalone";
|
|
@@ -249932,11 +249927,10 @@ function trackChangesListWrapper(editor, input2) {
|
|
|
249932
249927
|
const items = paged.items.map((row2) => {
|
|
249933
249928
|
const info = row2.info;
|
|
249934
249929
|
const handle3 = buildResolvedHandle(row2.handleKey, "stable", "trackedChange");
|
|
249935
|
-
const { address: address2, type,
|
|
249930
|
+
const { address: address2, type, grouping, pairedWithChangeId, wordRevisionIds, overlap, author, authorEmail, authorImage, date, excerpt, insertedText, deletedText, origin, imported } = info;
|
|
249936
249931
|
return buildDiscoveryItem(info.id, handle3, {
|
|
249937
249932
|
address: address2,
|
|
249938
249933
|
type,
|
|
249939
|
-
...subtype ? { subtype } : {},
|
|
249940
249934
|
grouping,
|
|
249941
249935
|
pairedWithChangeId,
|
|
249942
249936
|
wordRevisionIds,
|
|
@@ -249987,7 +249981,7 @@ function trackChangesGetWrapper(editor, input2) {
|
|
|
249987
249981
|
const snapshot2 = snapshots.find((item) => item.anchorKey === anchorKey || item.address.entityId === baseId);
|
|
249988
249982
|
if (snapshot2)
|
|
249989
249983
|
return snapshotToInfo(snapshot2);
|
|
249990
|
-
const type = resolveTrackedChangeType(resolved.change);
|
|
249984
|
+
const type = projectInternalTrackChangeType(resolveTrackedChangeType(resolved.change), resolved.change.structural);
|
|
249991
249985
|
const excerpt = (resolved.change.excerpt !== undefined ? resolved.change.excerpt : undefined) ?? normalizeExcerpt(resolved.editor.state.doc.textBetween(resolved.change.from, resolved.change.to, " ", ""));
|
|
249992
249986
|
const grouping = resolved.change.hasInsert && resolved.change.hasDelete && !resolved.change.hasFormat ? "replacement-pair" : undefined;
|
|
249993
249987
|
return {
|
|
@@ -249999,7 +249993,6 @@ function trackChangesGetWrapper(editor, input2) {
|
|
|
249999
249993
|
},
|
|
250000
249994
|
id: resolved.change.id,
|
|
250001
249995
|
type,
|
|
250002
|
-
...type === "structural" && resolved.change.structural ? { subtype: resolved.change.structural.subtype } : {},
|
|
250003
249996
|
grouping,
|
|
250004
249997
|
wordRevisionIds: normalizeWordRevisionIds(resolved.change.wordRevisionIds),
|
|
250005
249998
|
overlap: resolved.change.overlap,
|
|
@@ -250238,12 +250231,20 @@ function isTrackedChangeCommentTargetShape(target) {
|
|
|
250238
250231
|
return false;
|
|
250239
250232
|
return typeof value.trackedChangeId === "string" && value.trackedChangeId.length > 0;
|
|
250240
250233
|
}
|
|
250234
|
+
function trackedChangeDisplayType(snapshot2) {
|
|
250235
|
+
if (snapshot2.type !== "structural")
|
|
250236
|
+
return null;
|
|
250237
|
+
return snapshot2.subtype === "table-delete" ? "tableDelete" : "tableInsert";
|
|
250238
|
+
}
|
|
250239
|
+
function publicTrackedChangeType(snapshot2) {
|
|
250240
|
+
return projectInternalTrackChangeType(snapshot2.type, { subtype: snapshot2.subtype });
|
|
250241
|
+
}
|
|
250241
250242
|
function buildTrackedChangeLink(snapshot2) {
|
|
250242
250243
|
const { trackedChangeText, deletedText } = trackedChangeTextFields(snapshot2);
|
|
250243
250244
|
return {
|
|
250244
250245
|
trackedChange: true,
|
|
250245
|
-
trackedChangeType: snapshot2
|
|
250246
|
-
trackedChangeDisplayType:
|
|
250246
|
+
trackedChangeType: publicTrackedChangeType(snapshot2),
|
|
250247
|
+
trackedChangeDisplayType: trackedChangeDisplayType(snapshot2),
|
|
250247
250248
|
trackedChangeStory: snapshot2.story,
|
|
250248
250249
|
trackedChangeAnchorKey: snapshot2.anchorKey,
|
|
250249
250250
|
trackedChangeText,
|
|
@@ -250287,7 +250288,7 @@ function choosePreferredTrackedChangeSnapshot(snapshots, preferredId) {
|
|
|
250287
250288
|
const rightLength = Math.max(0, right$1.range.to - right$1.range.from);
|
|
250288
250289
|
if (leftLength !== rightLength)
|
|
250289
250290
|
return leftLength - rightLength;
|
|
250290
|
-
const typeDelta = trackedChangeTypePriority(left$1
|
|
250291
|
+
const typeDelta = trackedChangeTypePriority(publicTrackedChangeType(left$1)) - trackedChangeTypePriority(publicTrackedChangeType(right$1));
|
|
250291
250292
|
if (typeDelta !== 0)
|
|
250292
250293
|
return typeDelta;
|
|
250293
250294
|
if (left$1.range.from !== right$1.range.from)
|
|
@@ -250504,7 +250505,7 @@ function parseCreatedTime(value) {
|
|
|
250504
250505
|
}
|
|
250505
250506
|
function trackedChangeTextFields(snapshot2) {
|
|
250506
250507
|
const excerpt = snapshot2.excerpt ?? "";
|
|
250507
|
-
if (snapshot2
|
|
250508
|
+
if (publicTrackedChangeType(snapshot2) === "delete")
|
|
250508
250509
|
return {
|
|
250509
250510
|
trackedChangeText: "",
|
|
250510
250511
|
deletedText: excerpt
|
|
@@ -250531,7 +250532,8 @@ function toTrackedChangeCommentInfo(snapshot2) {
|
|
|
250531
250532
|
anchoredText: snapshot2.excerpt,
|
|
250532
250533
|
story: snapshot2.story,
|
|
250533
250534
|
trackedChange: true,
|
|
250534
|
-
trackedChangeType: snapshot2
|
|
250535
|
+
trackedChangeType: publicTrackedChangeType(snapshot2),
|
|
250536
|
+
trackedChangeDisplayType: trackedChangeDisplayType(snapshot2),
|
|
250535
250537
|
trackedChangeStory: snapshot2.story,
|
|
250536
250538
|
trackedChangeAnchorKey: snapshot2.anchorKey,
|
|
250537
250539
|
trackedChangeText,
|
|
@@ -251398,7 +251400,7 @@ function listCommentsHandler(editor, query2) {
|
|
|
251398
251400
|
const paged = paginate(filtered, query2?.offset, query2?.limit);
|
|
251399
251401
|
const items = paged.items.map((comment2) => {
|
|
251400
251402
|
const handle3 = buildResolvedHandle(`comment:${comment2.commentId}`, "stable", "comment");
|
|
251401
|
-
const { importedId, parentCommentId, text: text5, isInternal, status, target, anchoredText, createdTime, creatorName, creatorEmail, address: address2, story, trackedChange, trackedChangeType, trackedChangeDisplayType, trackedChangeStory, trackedChangeAnchorKey, trackedChangeText, deletedText, trackedChangeLink } = comment2;
|
|
251403
|
+
const { importedId, parentCommentId, text: text5, isInternal, status, target, anchoredText, createdTime, creatorName, creatorEmail, address: address2, story, trackedChange, trackedChangeType, trackedChangeDisplayType: trackedChangeDisplayType$1, trackedChangeStory, trackedChangeAnchorKey, trackedChangeText, deletedText, trackedChangeLink } = comment2;
|
|
251402
251404
|
return buildDiscoveryItem(comment2.commentId, handle3, {
|
|
251403
251405
|
address: address2,
|
|
251404
251406
|
importedId,
|
|
@@ -251414,7 +251416,7 @@ function listCommentsHandler(editor, query2) {
|
|
|
251414
251416
|
story,
|
|
251415
251417
|
trackedChange,
|
|
251416
251418
|
trackedChangeType,
|
|
251417
|
-
trackedChangeDisplayType,
|
|
251419
|
+
trackedChangeDisplayType: trackedChangeDisplayType$1,
|
|
251418
251420
|
trackedChangeStory,
|
|
251419
251421
|
trackedChangeAnchorKey,
|
|
251420
251422
|
trackedChangeText,
|
|
@@ -252351,6 +252353,27 @@ function rewriteImportedStyleNumbering(importedStyleEls, numRemap) {
|
|
|
252351
252353
|
function numAttr(el, attr) {
|
|
252352
252354
|
return el.attributes?.[attr];
|
|
252353
252355
|
}
|
|
252356
|
+
function reorderNumberingChildren(numberingEl) {
|
|
252357
|
+
if (!numberingEl.elements)
|
|
252358
|
+
return;
|
|
252359
|
+
const other = [];
|
|
252360
|
+
const abstracts = [];
|
|
252361
|
+
const nums = [];
|
|
252362
|
+
for (const el of numberingEl.elements) {
|
|
252363
|
+
const ln = localName$1(el);
|
|
252364
|
+
if (ln === "abstractNum")
|
|
252365
|
+
abstracts.push(el);
|
|
252366
|
+
else if (ln === "num")
|
|
252367
|
+
nums.push(el);
|
|
252368
|
+
else
|
|
252369
|
+
other.push(el);
|
|
252370
|
+
}
|
|
252371
|
+
numberingEl.elements = [
|
|
252372
|
+
...other,
|
|
252373
|
+
...abstracts,
|
|
252374
|
+
...nums
|
|
252375
|
+
];
|
|
252376
|
+
}
|
|
252354
252377
|
function mergeNumberingGraph(currentRoot, sourceRoot) {
|
|
252355
252378
|
const result = {
|
|
252356
252379
|
numRemap: /* @__PURE__ */ new Map,
|
|
@@ -252434,6 +252457,7 @@ function mergeNumberingGraph(currentRoot, sourceRoot) {
|
|
|
252434
252457
|
usedNum.add(id2);
|
|
252435
252458
|
cur.elements.push(next2);
|
|
252436
252459
|
}
|
|
252460
|
+
reorderNumberingChildren(cur);
|
|
252437
252461
|
return result;
|
|
252438
252462
|
}
|
|
252439
252463
|
function reconcileSettings(currentRoot, sourceRoot) {
|
|
@@ -252623,18 +252647,21 @@ function importHeaderFooterAssets(editor, converter, byName, dryRun) {
|
|
|
252623
252647
|
usedMedia.add(allocated);
|
|
252624
252648
|
return allocated;
|
|
252625
252649
|
};
|
|
252626
|
-
const
|
|
252650
|
+
const sourceRelIdsByTarget = /* @__PURE__ */ new Map;
|
|
252627
252651
|
for (const rel of srcRelEls) {
|
|
252628
252652
|
const type = rel.attributes?.Type;
|
|
252629
252653
|
const target = rel.attributes?.Target;
|
|
252630
252654
|
const id2 = rel.attributes?.Id;
|
|
252631
252655
|
if (!type || !target || !id2)
|
|
252632
252656
|
continue;
|
|
252633
|
-
if (type === HEADER_REL_TYPE2 || type === FOOTER_REL_TYPE2)
|
|
252634
|
-
|
|
252635
|
-
|
|
252636
|
-
|
|
252637
|
-
|
|
252657
|
+
if (type === HEADER_REL_TYPE2 || type === FOOTER_REL_TYPE2) {
|
|
252658
|
+
const sourceTarget = relTargetToWordPath(target).replace(/^word\//, "");
|
|
252659
|
+
const existing = sourceRelIdsByTarget.get(sourceTarget);
|
|
252660
|
+
if (existing)
|
|
252661
|
+
existing.push(id2);
|
|
252662
|
+
else
|
|
252663
|
+
sourceRelIdsByTarget.set(sourceTarget, [id2]);
|
|
252664
|
+
}
|
|
252638
252665
|
}
|
|
252639
252666
|
const setHeaderIdsArray = (idsHolder, relId) => {
|
|
252640
252667
|
if (!Array.isArray(idsHolder.ids))
|
|
@@ -252725,12 +252752,12 @@ function importHeaderFooterAssets(editor, converter, byName, dryRun) {
|
|
|
252725
252752
|
}
|
|
252726
252753
|
});
|
|
252727
252754
|
docRelsChanged = true;
|
|
252728
|
-
const
|
|
252729
|
-
|
|
252730
|
-
result.relIdRemap.set(
|
|
252755
|
+
const sourceRelIds = sourceRelIdsByTarget.get(sourceTarget) ?? [];
|
|
252756
|
+
for (const sourceRelId of sourceRelIds) {
|
|
252757
|
+
result.relIdRemap.set(sourceRelId, relId);
|
|
252731
252758
|
result.mappings.push({
|
|
252732
252759
|
kind: "relationship",
|
|
252733
|
-
from:
|
|
252760
|
+
from: sourceRelId,
|
|
252734
252761
|
to: relId
|
|
252735
252762
|
});
|
|
252736
252763
|
}
|
|
@@ -252780,6 +252807,29 @@ function ensureContentTypeOverride$1(converter, partPath, contentType) {
|
|
|
252780
252807
|
});
|
|
252781
252808
|
return true;
|
|
252782
252809
|
}
|
|
252810
|
+
function toSectionXmlElement(node3) {
|
|
252811
|
+
if (!node3.name)
|
|
252812
|
+
throw new Error("Expected named XML element.");
|
|
252813
|
+
return {
|
|
252814
|
+
type: node3.type,
|
|
252815
|
+
name: node3.name,
|
|
252816
|
+
attributes: node3.attributes ? { ...node3.attributes } : undefined,
|
|
252817
|
+
elements: node3.elements?.filter((child) => typeof child.name === "string").map((child) => toSectionXmlElement(child))
|
|
252818
|
+
};
|
|
252819
|
+
}
|
|
252820
|
+
function mergePageOneHeaderFooterModel(targetSectPr, sourceSectPr) {
|
|
252821
|
+
const mergedSectPr = ensureSectPrElement(targetSectPr);
|
|
252822
|
+
for (const kind of HEADER_FOOTER_KINDS4)
|
|
252823
|
+
for (const variant of HEADER_FOOTER_VARIANTS$2) {
|
|
252824
|
+
const sourceRef = getSectPrHeaderFooterRef(sourceSectPr, kind, variant);
|
|
252825
|
+
if (sourceRef)
|
|
252826
|
+
setSectPrHeaderFooterRef(mergedSectPr, kind, variant, sourceRef);
|
|
252827
|
+
else
|
|
252828
|
+
clearSectPrHeaderFooterRef(mergedSectPr, kind, variant);
|
|
252829
|
+
}
|
|
252830
|
+
writeSectPrTitlePage(mergedSectPr, readSectPrTitlePage(sourceSectPr));
|
|
252831
|
+
return mergedSectPr;
|
|
252832
|
+
}
|
|
252783
252833
|
function applyPageOneSectionDefaults(editor, sourceDocumentXml, relIdRemap, parseXml2, dryRun) {
|
|
252784
252834
|
const result = {
|
|
252785
252835
|
detected: false,
|
|
@@ -252798,8 +252848,18 @@ function applyPageOneSectionDefaults(editor, sourceDocumentXml, relIdRemap, pars
|
|
|
252798
252848
|
if (!sourceSectPr)
|
|
252799
252849
|
return result;
|
|
252800
252850
|
result.detected = true;
|
|
252801
|
-
|
|
252802
|
-
|
|
252851
|
+
let sectPr;
|
|
252852
|
+
try {
|
|
252853
|
+
const rewrittenSectPr = clone(sourceSectPr);
|
|
252854
|
+
rewriteSectPrRefs(rewrittenSectPr, relIdRemap);
|
|
252855
|
+
sectPr = toSectionXmlElement(rewrittenSectPr);
|
|
252856
|
+
} catch {
|
|
252857
|
+
result.warnings.push({
|
|
252858
|
+
code: "SECTION_DEFAULTS_UNAVAILABLE",
|
|
252859
|
+
message: "Could not normalize the source page-1 sectPr."
|
|
252860
|
+
});
|
|
252861
|
+
return result;
|
|
252862
|
+
}
|
|
252803
252863
|
let projections;
|
|
252804
252864
|
try {
|
|
252805
252865
|
projections = resolveSectionProjections(editor);
|
|
@@ -252810,26 +252870,43 @@ function applyPageOneSectionDefaults(editor, sourceDocumentXml, relIdRemap, pars
|
|
|
252810
252870
|
});
|
|
252811
252871
|
return result;
|
|
252812
252872
|
}
|
|
252813
|
-
|
|
252814
|
-
if (!bodyProjection) {
|
|
252873
|
+
if (projections.length === 0) {
|
|
252815
252874
|
result.warnings.push({
|
|
252816
252875
|
code: "SECTION_DEFAULTS_UNAVAILABLE",
|
|
252817
|
-
message: "No
|
|
252876
|
+
message: "No section projections found for page-1 sectPr adoption."
|
|
252818
252877
|
});
|
|
252819
252878
|
return result;
|
|
252820
252879
|
}
|
|
252821
|
-
|
|
252880
|
+
const bodyProjection = [...projections].reverse().find((projection) => projection.target.kind === "body") ?? projections[projections.length - 1];
|
|
252881
|
+
const sectionUpdates = projections.map((projection) => {
|
|
252882
|
+
const currentSectPr = readTargetSectPr(editor, projection);
|
|
252883
|
+
const nextSectPr = projection.sectionId === bodyProjection.sectionId ? clone(sectPr) : mergePageOneHeaderFooterModel(currentSectPr, sectPr);
|
|
252884
|
+
if (xmlDeepEqual(currentSectPr, nextSectPr))
|
|
252885
|
+
return null;
|
|
252886
|
+
return {
|
|
252887
|
+
sectionId: projection.sectionId,
|
|
252888
|
+
nextSectPr
|
|
252889
|
+
};
|
|
252890
|
+
}).filter((update) => Boolean(update));
|
|
252891
|
+
if (sectionUpdates.length === 0)
|
|
252822
252892
|
return result;
|
|
252823
252893
|
result.changed = true;
|
|
252824
252894
|
result.changedParts.push({
|
|
252825
252895
|
part: "word/document.xml",
|
|
252826
252896
|
scope: "sectionDefaults",
|
|
252827
|
-
change: "replaced"
|
|
252897
|
+
change: sectionUpdates.some((update) => update.sectionId !== bodyProjection.sectionId) ? "merged" : "replaced"
|
|
252828
252898
|
});
|
|
252829
252899
|
if (dryRun)
|
|
252830
252900
|
return result;
|
|
252831
252901
|
try {
|
|
252832
|
-
|
|
252902
|
+
for (let index2 = 0;index2 < sectionUpdates.length; index2 += 1) {
|
|
252903
|
+
const update = sectionUpdates[index2];
|
|
252904
|
+
const liveProjection = resolveSectionProjections(editor).find((projection) => projection.sectionId === update.sectionId);
|
|
252905
|
+
if (!liveProjection)
|
|
252906
|
+
throw new Error(`Section ${update.sectionId} disappeared during page-1 sectPr adoption.`);
|
|
252907
|
+
applySectPrToProjection(editor, liveProjection, clone(update.nextSectPr), { addToHistory: index2 === sectionUpdates.length - 1 });
|
|
252908
|
+
}
|
|
252909
|
+
clearIndexCache(editor);
|
|
252833
252910
|
result.applied = true;
|
|
252834
252911
|
} catch (err) {
|
|
252835
252912
|
result.changed = false;
|
|
@@ -253297,7 +253374,7 @@ async function applyTemplateAsync(editor, converter, input2, options) {
|
|
|
253297
253374
|
});
|
|
253298
253375
|
} else if (sec.detected) {
|
|
253299
253376
|
warnings.push(...sec.warnings);
|
|
253300
|
-
pushNoChangeSkip(skippedScopes, "sectionDefaults", "word/document.xml", sec.warnings.length > 0 ? "Source page-1 section defaults could not be applied." : "Source page-1 section defaults already match the active section defaults.");
|
|
253377
|
+
pushNoChangeSkip(skippedScopes, "sectionDefaults", "word/document.xml", sec.warnings.length > 0 ? "Source page-1 section defaults could not be applied." : "Source page-1 section defaults already match the current document's active section defaults and section header/footer visibility model.");
|
|
253301
253378
|
}
|
|
253302
253379
|
}
|
|
253303
253380
|
if (styleMappings.length > 0)
|
|
@@ -296564,7 +296641,7 @@ var Node$13 = class Node$14 {
|
|
|
296564
296641
|
}, getTrackedChangeText = ({ nodes, mark: mark2, trackedChangeType, isReplacement }) => {
|
|
296565
296642
|
let trackedChangeText = "";
|
|
296566
296643
|
let deletionText = "";
|
|
296567
|
-
let trackedChangeDisplayType = null;
|
|
296644
|
+
let trackedChangeDisplayType$1 = null;
|
|
296568
296645
|
if (trackedChangeType === "trackDelete" || isReplacement)
|
|
296569
296646
|
deletionText = nodes.reduce((acc, node3) => {
|
|
296570
296647
|
if (!node3.marks.find((nodeMark) => nodeMark.type.name === "trackDelete"))
|
|
@@ -296589,14 +296666,14 @@ var Node$13 = class Node$14 {
|
|
|
296589
296666
|
});
|
|
296590
296667
|
if (trackedFormatDisplay) {
|
|
296591
296668
|
trackedChangeText = trackedFormatDisplay.trackedChangeText;
|
|
296592
|
-
trackedChangeDisplayType = trackedFormatDisplay.trackedChangeDisplayType;
|
|
296669
|
+
trackedChangeDisplayType$1 = trackedFormatDisplay.trackedChangeDisplayType;
|
|
296593
296670
|
} else
|
|
296594
296671
|
trackedChangeText = translateFormatChangesToEnglish(normalizedFormatAttrs);
|
|
296595
296672
|
}
|
|
296596
296673
|
return {
|
|
296597
296674
|
deletionText,
|
|
296598
296675
|
trackedChangeText,
|
|
296599
|
-
trackedChangeDisplayType
|
|
296676
|
+
trackedChangeDisplayType: trackedChangeDisplayType$1
|
|
296600
296677
|
};
|
|
296601
296678
|
}, createOrUpdateTrackedChangeComment = ({ event, marks, deletionNodes, nodes, newEditorState, documentId, trackedChangesForId }) => {
|
|
296602
296679
|
const node3 = nodes[0];
|
|
@@ -296640,7 +296717,7 @@ var Node$13 = class Node$14 {
|
|
|
296640
296717
|
nodesToUse = nodesWithMark.length ? nodesWithMark : node3 ? [node3] : [];
|
|
296641
296718
|
if (!nodesToUse.length)
|
|
296642
296719
|
return;
|
|
296643
|
-
const { deletionText, trackedChangeText, trackedChangeDisplayType } = getTrackedChangeText({
|
|
296720
|
+
const { deletionText, trackedChangeText, trackedChangeDisplayType: trackedChangeDisplayType$1 } = getTrackedChangeText({
|
|
296644
296721
|
nodes: nodesToUse,
|
|
296645
296722
|
mark: trackedMark,
|
|
296646
296723
|
trackedChangeType,
|
|
@@ -296656,7 +296733,7 @@ var Node$13 = class Node$14 {
|
|
|
296656
296733
|
changeId: id2,
|
|
296657
296734
|
trackedChangeType: isReplacement ? "both" : trackedChangeType,
|
|
296658
296735
|
trackedChangeText,
|
|
296659
|
-
trackedChangeDisplayType,
|
|
296736
|
+
trackedChangeDisplayType: trackedChangeDisplayType$1,
|
|
296660
296737
|
deletedText: isReplacement || marks.deletionMark ? deletionText : null,
|
|
296661
296738
|
author,
|
|
296662
296739
|
...authorId && { authorId },
|
|
@@ -310343,7 +310420,7 @@ var Node$13 = class Node$14 {
|
|
|
310343
310420
|
listener(snapshot2);
|
|
310344
310421
|
} catch {}
|
|
310345
310422
|
}
|
|
310346
|
-
}, projectedTrackedChangeCache, TRACK_MARK_TYPE_BY_NAME, EMITTABLE_BLOCK_TYPES, SDT_BLOCK_NODE_NAMES, REQUIRED_COMMANDS, VALID_CAPABILITY_REASON_CODES, REQUIRED_HELPERS, SCHEMA_NODE_GATES, schemaGatedIds, SUPPORTED_NON_UNIFORM_STRATEGIES, SUPPORTED_SET_MARKS, REGEX_MAX_PATTERN_LENGTH = 1024, STYLES_PART = "word/styles.xml", PROPERTIES_KEY_BY_CHANNEL, XML_PATH_BY_CHANNEL2, UNDERLINE_API_TO_STORAGE, UNDERLINE_STORAGE_TO_API, HEX_SUBKEYS_BY_PROPERTY, import_jszip_min2, LAYOUT_AFFECTING_SETTING_NAMES, HEADER_REL_TYPE2 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header", FOOTER_REL_TYPE2 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer", IMAGE_REL_TYPE2 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image", HEADER_CONTENT_TYPE = "application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml", FOOTER_CONTENT_TYPE = "application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml", CONTENT_TYPES_PART$1 = "[Content_Types].xml", DOCUMENT_RELS_PART$1 = "word/_rels/document.xml.rels", SUBSTRATE_SCOPE_ORDER, CONTENT_TYPE_BY_SCOPE, REL_TYPE_BY_PART, CONTENT_TYPES_PART = "[Content_Types].xml", DOCUMENT_RELS_PART = "word/_rels/document.xml.rels", SUPPORTED_DELETE_NODE_TYPES3, REJECTED_DELETE_NODE_TYPES3, TEXT_PREVIEW_MAX_LENGTH = 80, RANGE_DELETE_SAFE_NODE_TYPES, HEADING_PATTERN, OOXML_DEFAULT_FONT_SIZE_PT = 10, INDENT_PER_LEVEL_TWIPS = 720, HANGING_INDENT_TWIPS = 360, SYMBOL_FONT_NAMES, RFONTS_FAMILY_ATTRS, ORDERED_PRESET_CONFIG, BULLET_PRESET_CONFIG, PRESET_TEMPLATES, LevelFormattingHelpers, PRESET_KIND_MAP, NUMBERING_PART = "word/numbering.xml", DEFAULT_PRESET_FOR_KIND, _setValueDelegate, PREVIEW_TEXT_MAX_LENGTH = 2000, BLOCK_PREVIEW_MAX_LENGTH = 200, EDGE_NODE_TYPES$1, COMMENT_MARK_NAME2 = "commentMark", TRACK_CHANGE_MARK_NAMES, POINTS_TO_PIXELS, POINTS_TO_TWIPS = 20, PIXELS_TO_TWIPS, DEFAULT_TABLE_GRID_WIDTH_TWIPS = 1500, SETTINGS_PART$1 = "word/settings.xml", PRESET_GREY = "999999", PRESET_BLACK = "000000", STATIC_PRESETS, IDENTITY_BLOCK_ATTRS, WORD_DEFAULT_TBL_LOOK, FLAG_TO_OOXML_KEY, INVERTED_FLAGS, XML_KEY_TO_STYLE_OPTION, CLEARED_BORDER_OOXML, TABLE_MARGIN_KEY_GROUPS, TABLE_ADAPTER_DISPATCH, ROW_TARGETED_TABLE_OPS, registered = false, STYLES_PART_ID = "word/styles.xml", stylesPartDescriptor, settingsPartDescriptor, RELS_PART_ID2 = "word/_rels/document.xml.rels", HEADER_RELATIONSHIP_TYPE$1 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header", FOOTER_RELATIONSHIP_TYPE$1 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer", relsPartDescriptor, BatchHistoryAdapter = class {
|
|
310423
|
+
}, projectedTrackedChangeCache, TRACK_MARK_TYPE_BY_NAME, EMITTABLE_BLOCK_TYPES, SDT_BLOCK_NODE_NAMES, REQUIRED_COMMANDS, VALID_CAPABILITY_REASON_CODES, REQUIRED_HELPERS, SCHEMA_NODE_GATES, schemaGatedIds, SUPPORTED_NON_UNIFORM_STRATEGIES, SUPPORTED_SET_MARKS, REGEX_MAX_PATTERN_LENGTH = 1024, STYLES_PART = "word/styles.xml", PROPERTIES_KEY_BY_CHANNEL, XML_PATH_BY_CHANNEL2, UNDERLINE_API_TO_STORAGE, UNDERLINE_STORAGE_TO_API, HEX_SUBKEYS_BY_PROPERTY, import_jszip_min2, LAYOUT_AFFECTING_SETTING_NAMES, HEADER_REL_TYPE2 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header", FOOTER_REL_TYPE2 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer", IMAGE_REL_TYPE2 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image", HEADER_CONTENT_TYPE = "application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml", FOOTER_CONTENT_TYPE = "application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml", CONTENT_TYPES_PART$1 = "[Content_Types].xml", DOCUMENT_RELS_PART$1 = "word/_rels/document.xml.rels", HEADER_FOOTER_KINDS4, HEADER_FOOTER_VARIANTS$2, SUBSTRATE_SCOPE_ORDER, CONTENT_TYPE_BY_SCOPE, REL_TYPE_BY_PART, CONTENT_TYPES_PART = "[Content_Types].xml", DOCUMENT_RELS_PART = "word/_rels/document.xml.rels", SUPPORTED_DELETE_NODE_TYPES3, REJECTED_DELETE_NODE_TYPES3, TEXT_PREVIEW_MAX_LENGTH = 80, RANGE_DELETE_SAFE_NODE_TYPES, HEADING_PATTERN, OOXML_DEFAULT_FONT_SIZE_PT = 10, INDENT_PER_LEVEL_TWIPS = 720, HANGING_INDENT_TWIPS = 360, SYMBOL_FONT_NAMES, RFONTS_FAMILY_ATTRS, ORDERED_PRESET_CONFIG, BULLET_PRESET_CONFIG, PRESET_TEMPLATES, LevelFormattingHelpers, PRESET_KIND_MAP, NUMBERING_PART = "word/numbering.xml", DEFAULT_PRESET_FOR_KIND, _setValueDelegate, PREVIEW_TEXT_MAX_LENGTH = 2000, BLOCK_PREVIEW_MAX_LENGTH = 200, EDGE_NODE_TYPES$1, COMMENT_MARK_NAME2 = "commentMark", TRACK_CHANGE_MARK_NAMES, POINTS_TO_PIXELS, POINTS_TO_TWIPS = 20, PIXELS_TO_TWIPS, DEFAULT_TABLE_GRID_WIDTH_TWIPS = 1500, SETTINGS_PART$1 = "word/settings.xml", PRESET_GREY = "999999", PRESET_BLACK = "000000", STATIC_PRESETS, IDENTITY_BLOCK_ATTRS, WORD_DEFAULT_TBL_LOOK, FLAG_TO_OOXML_KEY, INVERTED_FLAGS, XML_KEY_TO_STYLE_OPTION, CLEARED_BORDER_OOXML, TABLE_MARGIN_KEY_GROUPS, TABLE_ADAPTER_DISPATCH, ROW_TARGETED_TABLE_OPS, registered = false, STYLES_PART_ID = "word/styles.xml", stylesPartDescriptor, settingsPartDescriptor, RELS_PART_ID2 = "word/_rels/document.xml.rels", HEADER_RELATIONSHIP_TYPE$1 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header", FOOTER_RELATIONSHIP_TYPE$1 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer", relsPartDescriptor, BatchHistoryAdapter = class {
|
|
310347
310424
|
#done = [];
|
|
310348
310425
|
#redone = [];
|
|
310349
310426
|
#listeners = /* @__PURE__ */ new Set;
|
|
@@ -330112,13 +330189,13 @@ menclose::after {
|
|
|
330112
330189
|
return;
|
|
330113
330190
|
console.log(...args$1);
|
|
330114
330191
|
}, 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;
|
|
330115
|
-
var
|
|
330192
|
+
var init_src_DEnygTyz_es = __esm(() => {
|
|
330116
330193
|
init_rolldown_runtime_Bg48TavK_es();
|
|
330117
|
-
|
|
330194
|
+
init_SuperConverter_DOoAJ6Zk_es();
|
|
330118
330195
|
init_jszip_C49i9kUs_es();
|
|
330119
330196
|
init_xml_js_CqGKpaft_es();
|
|
330120
330197
|
init_uuid_qzgm05fK_es();
|
|
330121
|
-
|
|
330198
|
+
init_create_headless_toolbar_DUhzXJ4D_es();
|
|
330122
330199
|
init_constants_D9qj59G2_es();
|
|
330123
330200
|
init_dist_B8HfvhaK_es();
|
|
330124
330201
|
init_unified_Dsuw2be5_es();
|
|
@@ -353787,6 +353864,12 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
353787
353864
|
"noPunctuationKerning",
|
|
353788
353865
|
"kerning"
|
|
353789
353866
|
]);
|
|
353867
|
+
HEADER_FOOTER_KINDS4 = ["header", "footer"];
|
|
353868
|
+
HEADER_FOOTER_VARIANTS$2 = [
|
|
353869
|
+
"default",
|
|
353870
|
+
"first",
|
|
353871
|
+
"even"
|
|
353872
|
+
];
|
|
353790
353873
|
SUBSTRATE_SCOPE_ORDER = [
|
|
353791
353874
|
"styles",
|
|
353792
353875
|
"numbering",
|
|
@@ -364952,11 +365035,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
364952
365035
|
]);
|
|
364953
365036
|
});
|
|
364954
365037
|
|
|
364955
|
-
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-
|
|
365038
|
+
// ../../packages/superdoc/dist/chunks/create-super-doc-ui-CmcU7hTR.es.js
|
|
364956
365039
|
var headlessToolbarConstants, 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;
|
|
364957
|
-
var
|
|
364958
|
-
|
|
364959
|
-
|
|
365040
|
+
var init_create_super_doc_ui_CmcU7hTR_es = __esm(() => {
|
|
365041
|
+
init_SuperConverter_DOoAJ6Zk_es();
|
|
365042
|
+
init_create_headless_toolbar_DUhzXJ4D_es();
|
|
364960
365043
|
headlessToolbarConstants = {
|
|
364961
365044
|
DEFAULT_TEXT_ALIGN_OPTIONS: [
|
|
364962
365045
|
{
|
|
@@ -365238,16 +365321,16 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
|
|
|
365238
365321
|
|
|
365239
365322
|
// ../../packages/superdoc/dist/super-editor.es.js
|
|
365240
365323
|
var init_super_editor_es = __esm(() => {
|
|
365241
|
-
|
|
365242
|
-
|
|
365324
|
+
init_src_DEnygTyz_es();
|
|
365325
|
+
init_SuperConverter_DOoAJ6Zk_es();
|
|
365243
365326
|
init_jszip_C49i9kUs_es();
|
|
365244
365327
|
init_xml_js_CqGKpaft_es();
|
|
365245
|
-
|
|
365328
|
+
init_create_headless_toolbar_DUhzXJ4D_es();
|
|
365246
365329
|
init_constants_D9qj59G2_es();
|
|
365247
365330
|
init_dist_B8HfvhaK_es();
|
|
365248
365331
|
init_unified_Dsuw2be5_es();
|
|
365249
365332
|
init_DocxZipper_Bu2Fhqkw_es();
|
|
365250
|
-
|
|
365333
|
+
init_create_super_doc_ui_CmcU7hTR_es();
|
|
365251
365334
|
init_ui_C5PAS9hY_es();
|
|
365252
365335
|
init_eventemitter3_BnGqBE_Q_es();
|
|
365253
365336
|
init_errors_CNaD6vcg_es();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc-dev/cli",
|
|
3
|
-
"version": "0.16.0-next.
|
|
3
|
+
"version": "0.16.0-next.33",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"superdoc": "./dist/index.js"
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
35
|
"optionalDependencies": {
|
|
36
|
-
"@superdoc-dev/cli-darwin-arm64": "0.16.0-next.
|
|
37
|
-
"@superdoc-dev/cli-darwin-x64": "0.16.0-next.
|
|
38
|
-
"@superdoc-dev/cli-linux-x64": "0.16.0-next.
|
|
39
|
-
"@superdoc-dev/cli-
|
|
40
|
-
"@superdoc-dev/cli-
|
|
36
|
+
"@superdoc-dev/cli-darwin-arm64": "0.16.0-next.33",
|
|
37
|
+
"@superdoc-dev/cli-darwin-x64": "0.16.0-next.33",
|
|
38
|
+
"@superdoc-dev/cli-linux-x64": "0.16.0-next.33",
|
|
39
|
+
"@superdoc-dev/cli-linux-arm64": "0.16.0-next.33",
|
|
40
|
+
"@superdoc-dev/cli-windows-x64": "0.16.0-next.33"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"predev": "node scripts/ensure-superdoc-build.js",
|