@beyondwork/docx-react-component 1.0.131 → 1.0.132
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/api/public-types.cjs +679 -157
- package/dist/api/public-types.d.cts +2 -2
- package/dist/api/public-types.d.ts +2 -2
- package/dist/api/public-types.js +5 -3
- package/dist/api/v3.cjs +371 -32
- package/dist/api/v3.d.cts +3 -3
- package/dist/api/v3.d.ts +3 -3
- package/dist/api/v3.js +10 -10
- package/dist/{canonical-document-BMtONpgf.d.cts → canonical-document-CfZIc-fC.d.cts} +1 -1
- package/dist/{canonical-document-BMtONpgf.d.ts → canonical-document-CfZIc-fC.d.ts} +1 -1
- package/dist/{chunk-YLL7MF5C.js → chunk-43JAPM2F.js} +24 -17
- package/dist/{chunk-4YCWECLZ.js → chunk-4HGFJ6Z2.js} +1 -1
- package/dist/{chunk-HYHCRMR7.js → chunk-6736GA6J.js} +1 -1
- package/dist/{chunk-Q7Y57KOK.js → chunk-6TLZ6CMP.js} +2 -2
- package/dist/{chunk-DGA7M77X.js → chunk-ALWXYGXP.js} +2 -2
- package/dist/{chunk-PHMWH23E.js → chunk-C5LXKR54.js} +1 -1
- package/dist/{chunk-6TBLDBCL.js → chunk-CDEZGLQ3.js} +1 -1
- package/dist/{chunk-VRKK2CSZ.js → chunk-JVTDBX67.js} +2 -2
- package/dist/{chunk-THVM6EP5.js → chunk-LPLJZJT2.js} +1196 -35
- package/dist/{chunk-T5YYFDZB.js → chunk-N5FTU4HZ.js} +1 -1
- package/dist/{chunk-3YCQM2RV.js → chunk-QUTVR72L.js} +8 -7
- package/dist/{chunk-M7YRJX6V.js → chunk-RBWJHRNP.js} +1 -1
- package/dist/{chunk-A66ZVUAT.js → chunk-RYMMKOFI.js} +204 -10
- package/dist/{chunk-QXKQPUOM.js → chunk-SZ6BJA4Q.js} +3 -3
- package/dist/{chunk-A3GSNB4G.js → chunk-U3UMKA7B.js} +147 -13
- package/dist/{chunk-KNHMXKC6.js → chunk-UFPBYJMA.js} +2 -2
- package/dist/{chunk-35RHOE6I.js → chunk-UP2KDOYE.js} +6 -1162
- package/dist/{chunk-CI2TD3T4.js → chunk-W2I47J2Q.js} +1 -1
- package/dist/{chunk-7G5GR3VV.js → chunk-XYTWOJII.js} +5 -5
- package/dist/{chunk-WZDKNF37.js → chunk-YUHNDEV5.js} +7 -7
- package/dist/{chunk-ZVC23LKV.js → chunk-ZDYGRO2Z.js} +1 -1
- package/dist/compare.d.cts +1 -1
- package/dist/compare.d.ts +1 -1
- package/dist/core/commands/formatting-commands.d.cts +2 -2
- package/dist/core/commands/formatting-commands.d.ts +2 -2
- package/dist/core/commands/image-commands.cjs +312 -20
- package/dist/core/commands/image-commands.d.cts +2 -2
- package/dist/core/commands/image-commands.d.ts +2 -2
- package/dist/core/commands/image-commands.js +5 -5
- package/dist/core/commands/section-layout-commands.d.cts +2 -2
- package/dist/core/commands/section-layout-commands.d.ts +2 -2
- package/dist/core/commands/style-commands.d.cts +2 -2
- package/dist/core/commands/style-commands.d.ts +2 -2
- package/dist/core/commands/table-structure-commands.cjs +312 -20
- package/dist/core/commands/table-structure-commands.d.cts +2 -2
- package/dist/core/commands/table-structure-commands.d.ts +2 -2
- package/dist/core/commands/table-structure-commands.js +4 -4
- package/dist/core/commands/text-commands.cjs +312 -20
- package/dist/core/commands/text-commands.d.cts +2 -2
- package/dist/core/commands/text-commands.d.ts +2 -2
- package/dist/core/commands/text-commands.js +5 -5
- package/dist/core/selection/mapping.d.cts +2 -2
- package/dist/core/selection/mapping.d.ts +2 -2
- package/dist/core/state/editor-state.d.cts +2 -2
- package/dist/core/state/editor-state.d.ts +2 -2
- package/dist/index.cjs +3015 -2213
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +554 -99
- package/dist/io/docx-session.d.cts +4 -4
- package/dist/io/docx-session.d.ts +4 -4
- package/dist/io/docx-session.js +4 -4
- package/dist/legal.d.cts +1 -1
- package/dist/legal.d.ts +1 -1
- package/dist/legal.js +3 -3
- package/dist/{loader-B-aL5HGD.d.ts → loader-CfpeEPAa.d.ts} +3 -3
- package/dist/{loader-DiY_ZgKl.d.cts → loader-MAa8VpzW.d.cts} +3 -3
- package/dist/{public-types-gvubspUI.d.cts → public-types-Cjs8glST.d.ts} +137 -2
- package/dist/{public-types-DyqnxxO9.d.ts → public-types-KBS6JnOs.d.cts} +137 -2
- package/dist/public-types.cjs +679 -157
- package/dist/public-types.d.cts +2 -2
- package/dist/public-types.d.ts +2 -2
- package/dist/public-types.js +5 -3
- package/dist/runtime/collab.d.cts +3 -3
- package/dist/runtime/collab.d.ts +3 -3
- package/dist/runtime/document-runtime.cjs +371 -22
- package/dist/runtime/document-runtime.d.cts +2 -2
- package/dist/runtime/document-runtime.d.ts +2 -2
- package/dist/runtime/document-runtime.js +14 -14
- package/dist/{session-CDB0hohT.d.ts → session-CkoH8FoY.d.ts} +3 -3
- package/dist/{session-BUN6B-Vj.d.cts → session-wwe0Gib-.d.cts} +3 -3
- package/dist/session.d.cts +5 -5
- package/dist/session.d.ts +5 -5
- package/dist/session.js +5 -5
- package/dist/tailwind.cjs +492 -202
- package/dist/tailwind.d.cts +2 -2
- package/dist/tailwind.d.ts +2 -2
- package/dist/tailwind.js +7 -7
- package/dist/{types-C4bz3kDU.d.cts → types-B3SGRW0w.d.cts} +2 -2
- package/dist/{types-VWH6CRvG.d.ts → types-CH7NWqVL.d.ts} +2 -2
- package/dist/ui-tailwind/editor-surface/search-plugin.d.cts +3 -3
- package/dist/ui-tailwind/editor-surface/search-plugin.d.ts +3 -3
- package/dist/ui-tailwind/editor-surface/search-plugin.js +4 -4
- package/dist/ui-tailwind.cjs +492 -202
- package/dist/ui-tailwind.d.cts +3 -3
- package/dist/ui-tailwind.d.ts +3 -3
- package/dist/ui-tailwind.js +7 -7
- package/package.json +1 -1
package/dist/api/v3.cjs
CHANGED
|
@@ -13025,11 +13025,14 @@ function collectEditableTargetRefs(doc, cache) {
|
|
|
13025
13025
|
collectEditableTargetsInBlocks(
|
|
13026
13026
|
context.blocks,
|
|
13027
13027
|
{
|
|
13028
|
+
doc,
|
|
13028
13029
|
storyKey: context.storyKey,
|
|
13029
13030
|
basePath: context.basePath,
|
|
13030
13031
|
insideSdt: false,
|
|
13031
13032
|
insideTextBox: false,
|
|
13032
|
-
tableDepth: 0
|
|
13033
|
+
tableDepth: 0,
|
|
13034
|
+
numberingCatalogHash: createNumberingCatalogRevisionHash(doc),
|
|
13035
|
+
numberingTargetRevisionHash: createNumberingTargetRevisionHash(doc)
|
|
13033
13036
|
},
|
|
13034
13037
|
targets,
|
|
13035
13038
|
cache
|
|
@@ -13046,6 +13049,7 @@ function buildBlockCacheSignature(context, blockIndex) {
|
|
|
13046
13049
|
const owner = tt?.editableOwnersByChildIndex?.get(blockIndex);
|
|
13047
13050
|
return [
|
|
13048
13051
|
context.storyKey,
|
|
13052
|
+
context.numberingTargetRevisionHash,
|
|
13049
13053
|
context.insideSdt ? "1" : "0",
|
|
13050
13054
|
context.insideTextBox ? "1" : "0",
|
|
13051
13055
|
String(context.tableDepth),
|
|
@@ -13091,7 +13095,8 @@ function collectEditableTargetsInBlocks(blocks, context, targets, cache, blockIn
|
|
|
13091
13095
|
editableParagraphTargetPosture(targetKind),
|
|
13092
13096
|
context.contentControl,
|
|
13093
13097
|
context.tableTarget,
|
|
13094
|
-
context.tableTarget?.editableOwnersByChildIndex?.get(blockIndex)
|
|
13098
|
+
context.tableTarget?.editableOwnersByChildIndex?.get(blockIndex),
|
|
13099
|
+
resolveEditableParagraphListIdentity(block, context)
|
|
13095
13100
|
)
|
|
13096
13101
|
);
|
|
13097
13102
|
}
|
|
@@ -13620,7 +13625,7 @@ function collectEditableTargetsInInlines(inlines, basePath, context, targets) {
|
|
|
13620
13625
|
}
|
|
13621
13626
|
}
|
|
13622
13627
|
}
|
|
13623
|
-
function createParagraphEditableTarget(paragraph, kind, storyKey, blockPath, targetPosture = { editability: "editable", posture: { blockers: [] } }, contentControl, tableTarget, editableOwner) {
|
|
13628
|
+
function createParagraphEditableTarget(paragraph, kind, storyKey, blockPath, targetPosture = { editability: "editable", posture: { blockers: [] } }, contentControl, tableTarget, editableOwner, listIdentity) {
|
|
13624
13629
|
const paragraphText = collectParagraphText(paragraph);
|
|
13625
13630
|
const paragraphTextHash = hashText(paragraphText);
|
|
13626
13631
|
const sourceRef = paragraph.sourceRef;
|
|
@@ -13631,19 +13636,39 @@ function createParagraphEditableTarget(paragraph, kind, storyKey, blockPath, tar
|
|
|
13631
13636
|
context: { storyKey, insideSdt: contentControl !== void 0 },
|
|
13632
13637
|
...tableTarget
|
|
13633
13638
|
}) : void 0;
|
|
13634
|
-
const listAddress =
|
|
13639
|
+
const listAddress = listIdentity !== void 0 ? createCanonicalAddress({
|
|
13635
13640
|
addressKind: "list-item-text",
|
|
13636
13641
|
storyKey,
|
|
13637
13642
|
staleCheckKind: "paragraph",
|
|
13638
13643
|
operationScope: "list-text",
|
|
13639
|
-
sourceRefs: [
|
|
13644
|
+
sourceRefs: [
|
|
13645
|
+
sourceRef,
|
|
13646
|
+
listIdentity.paragraphNumberingSourceRef,
|
|
13647
|
+
listIdentity.instanceSourceRef,
|
|
13648
|
+
listIdentity.abstractSourceRef
|
|
13649
|
+
],
|
|
13640
13650
|
staleHash: paragraphTextHash,
|
|
13641
13651
|
rangeBoundary: { boundaryKind: "list-item-text" },
|
|
13652
|
+
list: {
|
|
13653
|
+
numberingOrigin: listIdentity.numberingOrigin,
|
|
13654
|
+
numberingInstanceId: listIdentity.numberingInstanceId,
|
|
13655
|
+
...listIdentity.abstractNumberingId !== void 0 ? { abstractNumberingId: listIdentity.abstractNumberingId } : {},
|
|
13656
|
+
level: listIdentity.level,
|
|
13657
|
+
...listIdentity.overrideHash !== void 0 ? { overrideHash: listIdentity.overrideHash } : {},
|
|
13658
|
+
numberingCatalogHash: listIdentity.numberingCatalogHash
|
|
13659
|
+
},
|
|
13642
13660
|
discriminator: {
|
|
13643
13661
|
blockPath,
|
|
13644
|
-
|
|
13645
|
-
|
|
13662
|
+
numberingOrigin: listIdentity.numberingOrigin,
|
|
13663
|
+
numberingInstanceId: listIdentity.numberingInstanceId,
|
|
13664
|
+
abstractNumberingId: listIdentity.abstractNumberingId ?? null,
|
|
13665
|
+
level: listIdentity.level,
|
|
13666
|
+
overrideHash: listIdentity.overrideHash ?? null,
|
|
13667
|
+
numberingCatalogHash: listIdentity.numberingCatalogHash,
|
|
13646
13668
|
sourceId: sourceRef?.sourceId ?? null,
|
|
13669
|
+
numberingSourceId: listIdentity.paragraphNumberingSourceRef?.sourceId ?? null,
|
|
13670
|
+
numberingInstanceSourceId: listIdentity.instanceSourceRef?.sourceId ?? null,
|
|
13671
|
+
abstractNumberingSourceId: listIdentity.abstractSourceRef?.sourceId ?? null,
|
|
13647
13672
|
paraId: paragraph.wordExtensionIds?.paraId ?? null,
|
|
13648
13673
|
textId: paragraph.wordExtensionIds?.textId ?? null
|
|
13649
13674
|
}
|
|
@@ -13684,11 +13709,62 @@ function createParagraphEditableTarget(paragraph, kind, storyKey, blockPath, tar
|
|
|
13684
13709
|
blockType: "paragraph",
|
|
13685
13710
|
...paragraph.wordExtensionIds?.paraId !== void 0 ? { wordParaId: paragraph.wordExtensionIds.paraId } : {},
|
|
13686
13711
|
...paragraph.wordExtensionIds?.textId !== void 0 ? { wordTextId: paragraph.wordExtensionIds.textId } : {},
|
|
13687
|
-
...sourceRef !== void 0 ? { sourceRef } : {}
|
|
13712
|
+
...sourceRef !== void 0 ? { sourceRef } : {},
|
|
13713
|
+
...listIdentity !== void 0 ? {
|
|
13714
|
+
listNumberingOrigin: listIdentity.numberingOrigin,
|
|
13715
|
+
listNumberingInstanceId: listIdentity.numberingInstanceId,
|
|
13716
|
+
...listIdentity.abstractNumberingId !== void 0 ? { listAbstractNumberingId: listIdentity.abstractNumberingId } : {},
|
|
13717
|
+
listLevel: listIdentity.level,
|
|
13718
|
+
...listIdentity.overrideHash !== void 0 ? { listOverrideHash: listIdentity.overrideHash } : {},
|
|
13719
|
+
numberingCatalogHash: listIdentity.numberingCatalogHash
|
|
13720
|
+
} : {}
|
|
13688
13721
|
},
|
|
13689
13722
|
posture
|
|
13690
13723
|
};
|
|
13691
13724
|
}
|
|
13725
|
+
function resolveEditableParagraphListIdentity(paragraph, context) {
|
|
13726
|
+
const directNumbering = paragraph.numbering;
|
|
13727
|
+
const styleNumbering = directNumbering === void 0 && paragraph.styleId !== void 0 ? resolveParagraphStyleNumbering(context.doc, paragraph.styleId) : void 0;
|
|
13728
|
+
const numbering = directNumbering ?? styleNumbering;
|
|
13729
|
+
if (numbering === void 0) return void 0;
|
|
13730
|
+
const numberingCatalog = context.doc.numbering ?? { abstractDefinitions: {}, instances: {} };
|
|
13731
|
+
const instances = numberingCatalog.instances ?? {};
|
|
13732
|
+
const abstractDefinitions = numberingCatalog.abstractDefinitions ?? {};
|
|
13733
|
+
const instance = instances[numbering.numberingInstanceId];
|
|
13734
|
+
const abstractDefinition = instance !== void 0 ? abstractDefinitions[instance.abstractNumberingId] : void 0;
|
|
13735
|
+
const level = numbering.level ?? 0;
|
|
13736
|
+
const override = instance?.overrides.find((entry) => entry.level === level);
|
|
13737
|
+
const overrideHash = override !== void 0 ? hashText(JSON.stringify(numberingOverrideDiscriminator(override))) : void 0;
|
|
13738
|
+
return {
|
|
13739
|
+
numberingOrigin: directNumbering !== void 0 ? "paragraph" : "paragraph-style",
|
|
13740
|
+
numberingInstanceId: numbering.numberingInstanceId,
|
|
13741
|
+
...instance?.abstractNumberingId !== void 0 ? { abstractNumberingId: instance.abstractNumberingId } : {},
|
|
13742
|
+
level,
|
|
13743
|
+
...overrideHash !== void 0 ? { overrideHash } : {},
|
|
13744
|
+
numberingCatalogHash: context.numberingCatalogHash,
|
|
13745
|
+
...directNumbering?.sourceRef !== void 0 ? { paragraphNumberingSourceRef: directNumbering.sourceRef } : {},
|
|
13746
|
+
...instance?.sourceRef !== void 0 ? { instanceSourceRef: instance.sourceRef } : {},
|
|
13747
|
+
...abstractDefinition?.sourceRef !== void 0 ? { abstractSourceRef: abstractDefinition.sourceRef } : {}
|
|
13748
|
+
};
|
|
13749
|
+
}
|
|
13750
|
+
function numberingOverrideDiscriminator(override) {
|
|
13751
|
+
return {
|
|
13752
|
+
level: override.level,
|
|
13753
|
+
startAt: override.startAt ?? null,
|
|
13754
|
+
sourceId: override.sourceRef?.sourceId ?? null,
|
|
13755
|
+
levelDefinition: override.levelDefinition === void 0 ? null : {
|
|
13756
|
+
sourceId: override.levelDefinition.sourceRef?.sourceId ?? null,
|
|
13757
|
+
format: override.levelDefinition.format ?? null,
|
|
13758
|
+
text: override.levelDefinition.text ?? null,
|
|
13759
|
+
startAt: override.levelDefinition.startAt ?? null,
|
|
13760
|
+
paragraphStyleId: override.levelDefinition.paragraphStyleId ?? null,
|
|
13761
|
+
isLegalNumbering: override.levelDefinition.isLegalNumbering ?? null,
|
|
13762
|
+
suffix: override.levelDefinition.suffix ?? null,
|
|
13763
|
+
restartAfterLevel: override.levelDefinition.restartAfterLevel ?? null,
|
|
13764
|
+
picBulletId: override.levelDefinition.picBulletId ?? null
|
|
13765
|
+
}
|
|
13766
|
+
};
|
|
13767
|
+
}
|
|
13692
13768
|
function contentControlLocksContent(contentControl) {
|
|
13693
13769
|
return contentControl?.lock !== void 0 && contentControl.lock !== "unlocked" && contentControl.lock !== "none";
|
|
13694
13770
|
}
|
|
@@ -14457,6 +14533,7 @@ function createCanonicalAddress(input) {
|
|
|
14457
14533
|
...input.rowRange !== void 0 ? { rowRange: input.rowRange } : {},
|
|
14458
14534
|
...input.columnRange !== void 0 ? { columnRange: input.columnRange } : {},
|
|
14459
14535
|
...sourceHash !== void 0 ? { sourceJoinHash: sourceHash } : {},
|
|
14536
|
+
...input.list !== void 0 ? { list: input.list } : {},
|
|
14460
14537
|
...input.secondaryStory === true ? { secondaryStory: true } : {},
|
|
14461
14538
|
...input.nestedTable === true ? { nestedTable: true } : {},
|
|
14462
14539
|
...input.insideSdt === true ? { insideSdt: true } : {},
|
|
@@ -14491,6 +14568,71 @@ function sourceJoinHash(refs) {
|
|
|
14491
14568
|
if (sourceIds.length === 0) return void 0;
|
|
14492
14569
|
return hashText(sourceIds.join("\0"));
|
|
14493
14570
|
}
|
|
14571
|
+
function createNumberingCatalogRevisionHash(doc) {
|
|
14572
|
+
const catalog = doc.numbering ?? { abstractDefinitions: {}, instances: {} };
|
|
14573
|
+
const abstractDefinitions = catalog.abstractDefinitions ?? {};
|
|
14574
|
+
const instances = catalog.instances ?? {};
|
|
14575
|
+
const numPicBullets = catalog.numPicBullets ?? {};
|
|
14576
|
+
return hashText(JSON.stringify({
|
|
14577
|
+
abstractDefinitions: Object.keys(abstractDefinitions).sort().map((abstractNumberingId) => {
|
|
14578
|
+
const definition = abstractDefinitions[abstractNumberingId];
|
|
14579
|
+
return {
|
|
14580
|
+
abstractNumberingId,
|
|
14581
|
+
sourceId: definition.sourceRef?.sourceId ?? null,
|
|
14582
|
+
nsid: definition.nsid ?? null,
|
|
14583
|
+
tplc: definition.tplc ?? null,
|
|
14584
|
+
styleLink: definition.styleLink ?? null,
|
|
14585
|
+
numStyleLink: definition.numStyleLink ?? null,
|
|
14586
|
+
levels: definition.levels.map((level) => ({
|
|
14587
|
+
sourceId: level.sourceRef?.sourceId ?? null,
|
|
14588
|
+
level: level.level,
|
|
14589
|
+
format: level.format,
|
|
14590
|
+
text: level.text,
|
|
14591
|
+
startAt: level.startAt ?? null,
|
|
14592
|
+
paragraphStyleId: level.paragraphStyleId ?? null,
|
|
14593
|
+
isLegalNumbering: level.isLegalNumbering ?? null,
|
|
14594
|
+
suffix: level.suffix ?? null,
|
|
14595
|
+
restartAfterLevel: level.restartAfterLevel ?? null,
|
|
14596
|
+
picBulletId: level.picBulletId ?? null
|
|
14597
|
+
}))
|
|
14598
|
+
};
|
|
14599
|
+
}),
|
|
14600
|
+
instances: Object.keys(instances).sort().map((numberingInstanceId) => {
|
|
14601
|
+
const instance = instances[numberingInstanceId];
|
|
14602
|
+
return {
|
|
14603
|
+
numberingInstanceId,
|
|
14604
|
+
sourceId: instance.sourceRef?.sourceId ?? null,
|
|
14605
|
+
abstractNumberingId: instance.abstractNumberingId,
|
|
14606
|
+
overrides: instance.overrides.map(numberingOverrideDiscriminator)
|
|
14607
|
+
};
|
|
14608
|
+
}),
|
|
14609
|
+
numPicBullets: Object.keys(numPicBullets).sort().map((numPicBulletId) => {
|
|
14610
|
+
const picBullet = numPicBullets[numPicBulletId];
|
|
14611
|
+
return {
|
|
14612
|
+
numPicBulletId,
|
|
14613
|
+
sourceId: picBullet.sourceRef?.sourceId ?? null,
|
|
14614
|
+
mediaId: picBullet.mediaId ?? null,
|
|
14615
|
+
widthEmu: picBullet.widthEmu ?? null,
|
|
14616
|
+
heightEmu: picBullet.heightEmu ?? null
|
|
14617
|
+
};
|
|
14618
|
+
})
|
|
14619
|
+
}));
|
|
14620
|
+
}
|
|
14621
|
+
function createNumberingTargetRevisionHash(doc) {
|
|
14622
|
+
const paragraphStyles = doc.styles?.paragraphs ?? {};
|
|
14623
|
+
return hashText(JSON.stringify({
|
|
14624
|
+
numberingCatalogHash: createNumberingCatalogRevisionHash(doc),
|
|
14625
|
+
paragraphStyleNumbering: Object.keys(paragraphStyles).sort().map((styleId) => {
|
|
14626
|
+
const style = paragraphStyles[styleId];
|
|
14627
|
+
return {
|
|
14628
|
+
styleId,
|
|
14629
|
+
basedOn: style.basedOn ?? null,
|
|
14630
|
+
numberingInstanceId: style.numbering?.numberingInstanceId ?? null,
|
|
14631
|
+
level: style.numbering?.level ?? null
|
|
14632
|
+
};
|
|
14633
|
+
})
|
|
14634
|
+
}));
|
|
14635
|
+
}
|
|
14494
14636
|
function validateEditableTargetRef(value, path = "$") {
|
|
14495
14637
|
const issues = [];
|
|
14496
14638
|
const record = asPlainObject(value, path, issues);
|
|
@@ -14590,6 +14732,32 @@ function validateEditableTargetRef(value, path = "$") {
|
|
|
14590
14732
|
if (staleCheck.sourceRef !== void 0) {
|
|
14591
14733
|
validateTargetSourceRef(staleCheck.sourceRef, `${path}.staleCheck.sourceRef`, issues);
|
|
14592
14734
|
}
|
|
14735
|
+
if (staleCheck.listNumberingOrigin !== void 0) {
|
|
14736
|
+
validateEnum(
|
|
14737
|
+
staleCheck.listNumberingOrigin,
|
|
14738
|
+
EDITABLE_TARGET_LIST_NUMBERING_ORIGINS,
|
|
14739
|
+
`${path}.staleCheck.listNumberingOrigin`,
|
|
14740
|
+
issues
|
|
14741
|
+
);
|
|
14742
|
+
}
|
|
14743
|
+
if (staleCheck.listNumberingInstanceId !== void 0) {
|
|
14744
|
+
expectString(staleCheck.listNumberingInstanceId, `${path}.staleCheck.listNumberingInstanceId`, issues);
|
|
14745
|
+
}
|
|
14746
|
+
if (staleCheck.listAbstractNumberingId !== void 0) {
|
|
14747
|
+
expectString(staleCheck.listAbstractNumberingId, `${path}.staleCheck.listAbstractNumberingId`, issues);
|
|
14748
|
+
}
|
|
14749
|
+
if (staleCheck.listLevel !== void 0 && (typeof staleCheck.listLevel !== "number" || !Number.isInteger(staleCheck.listLevel) || staleCheck.listLevel < 0)) {
|
|
14750
|
+
issues.push({
|
|
14751
|
+
path: `${path}.staleCheck.listLevel`,
|
|
14752
|
+
message: "listLevel must be a non-negative integer when present."
|
|
14753
|
+
});
|
|
14754
|
+
}
|
|
14755
|
+
if (staleCheck.listOverrideHash !== void 0) {
|
|
14756
|
+
validateSha256(staleCheck.listOverrideHash, `${path}.staleCheck.listOverrideHash`, issues);
|
|
14757
|
+
}
|
|
14758
|
+
if (staleCheck.numberingCatalogHash !== void 0) {
|
|
14759
|
+
validateSha256(staleCheck.numberingCatalogHash, `${path}.staleCheck.numberingCatalogHash`, issues);
|
|
14760
|
+
}
|
|
14593
14761
|
}
|
|
14594
14762
|
const posture = asPlainObject(record.posture, `${path}.posture`, issues);
|
|
14595
14763
|
if (posture) {
|
|
@@ -14807,6 +14975,9 @@ function validateTargetCanonicalAddress(value, path, issues) {
|
|
|
14807
14975
|
if (record.sourceJoinHash !== void 0) {
|
|
14808
14976
|
validateSha256(record.sourceJoinHash, `${path}.sourceJoinHash`, issues);
|
|
14809
14977
|
}
|
|
14978
|
+
if (record.list !== void 0) {
|
|
14979
|
+
validateTargetListAddressIdentity(record.list, `${path}.list`, issues);
|
|
14980
|
+
}
|
|
14810
14981
|
if (record.resolver !== void 0) {
|
|
14811
14982
|
validateTargetCanonicalAddressResolver(record.resolver, `${path}.resolver`, issues);
|
|
14812
14983
|
}
|
|
@@ -14816,6 +14987,22 @@ function validateTargetCanonicalAddress(value, path, issues) {
|
|
|
14816
14987
|
}
|
|
14817
14988
|
}
|
|
14818
14989
|
}
|
|
14990
|
+
function validateTargetListAddressIdentity(value, path, issues) {
|
|
14991
|
+
const record = asPlainObject(value, path, issues);
|
|
14992
|
+
if (!record) return;
|
|
14993
|
+
validateEnum(record.numberingOrigin, EDITABLE_TARGET_LIST_NUMBERING_ORIGINS, `${path}.numberingOrigin`, issues);
|
|
14994
|
+
expectString(record.numberingInstanceId, `${path}.numberingInstanceId`, issues);
|
|
14995
|
+
if (record.abstractNumberingId !== void 0) {
|
|
14996
|
+
expectString(record.abstractNumberingId, `${path}.abstractNumberingId`, issues);
|
|
14997
|
+
}
|
|
14998
|
+
if (typeof record.level !== "number" || !Number.isInteger(record.level) || record.level < 0) {
|
|
14999
|
+
issues.push({ path: `${path}.level`, message: "level must be a non-negative integer." });
|
|
15000
|
+
}
|
|
15001
|
+
if (record.overrideHash !== void 0) {
|
|
15002
|
+
validateSha256(record.overrideHash, `${path}.overrideHash`, issues);
|
|
15003
|
+
}
|
|
15004
|
+
validateSha256(record.numberingCatalogHash, `${path}.numberingCatalogHash`, issues);
|
|
15005
|
+
}
|
|
14819
15006
|
function validateTargetCanonicalAddressResolver(value, path, issues) {
|
|
14820
15007
|
const record = asPlainObject(value, path, issues);
|
|
14821
15008
|
if (!record) return;
|
|
@@ -14953,6 +15140,10 @@ var EDITABLE_TARGET_COMMAND_FAMILIES = /* @__PURE__ */ new Set([
|
|
|
14953
15140
|
"preserve-only-refusal"
|
|
14954
15141
|
]);
|
|
14955
15142
|
var EDITABLE_TARGET_EDITABILITY = /* @__PURE__ */ new Set(["editable", "non-editable"]);
|
|
15143
|
+
var EDITABLE_TARGET_LIST_NUMBERING_ORIGINS = /* @__PURE__ */ new Set([
|
|
15144
|
+
"paragraph",
|
|
15145
|
+
"paragraph-style"
|
|
15146
|
+
]);
|
|
14956
15147
|
var EDITABLE_TARGET_BLOCKERS = /* @__PURE__ */ new Set([
|
|
14957
15148
|
"protected-section",
|
|
14958
15149
|
"protected-range",
|
|
@@ -15152,7 +15343,7 @@ function resolveParagraphStyleNumbering(doc, styleId) {
|
|
|
15152
15343
|
let currentStyleId = styleId;
|
|
15153
15344
|
while (currentStyleId !== void 0 && !visited.has(currentStyleId)) {
|
|
15154
15345
|
visited.add(currentStyleId);
|
|
15155
|
-
const style = doc.styles
|
|
15346
|
+
const style = doc.styles?.paragraphs?.[currentStyleId];
|
|
15156
15347
|
if (style === void 0) {
|
|
15157
15348
|
return void 0;
|
|
15158
15349
|
}
|
|
@@ -32843,7 +33034,7 @@ async function computeStructuralHash(blocks) {
|
|
|
32843
33034
|
|
|
32844
33035
|
// src/runtime/layout/layout-engine-version.ts
|
|
32845
33036
|
var LAYOUT_ENGINE_VERSION = 93;
|
|
32846
|
-
var LAYCACHE_SCHEMA_VERSION =
|
|
33037
|
+
var LAYCACHE_SCHEMA_VERSION = 13;
|
|
32847
33038
|
|
|
32848
33039
|
// src/runtime/prerender/customxml-cache.ts
|
|
32849
33040
|
var LAYCACHE_NAMESPACE_NAME = "laycache";
|
|
@@ -37366,6 +37557,10 @@ function createNumberingPrefixResolver(catalog) {
|
|
|
37366
37557
|
])
|
|
37367
37558
|
) : resolved.effectiveLevels;
|
|
37368
37559
|
const picBulletId = resolved.effectiveLevel.picBulletId;
|
|
37560
|
+
const pictureBulletPosture = resolvePictureBulletRenderPosture(
|
|
37561
|
+
picBulletId,
|
|
37562
|
+
picBulletId != null ? catalog.numPicBullets?.[picBulletId] : void 0
|
|
37563
|
+
);
|
|
37369
37564
|
const text = renderLevelText(
|
|
37370
37565
|
resolved.effectiveLevel.text,
|
|
37371
37566
|
workingState.counters,
|
|
@@ -37374,14 +37569,20 @@ function createNumberingPrefixResolver(catalog) {
|
|
|
37374
37569
|
if (picBulletId == null && resolved.effectiveLevel.format !== "none" && text === null) {
|
|
37375
37570
|
return null;
|
|
37376
37571
|
}
|
|
37377
|
-
const visibleText = resolved.effectiveLevel.format === "none" ? null : text;
|
|
37572
|
+
const visibleText = resolved.effectiveLevel.format === "none" ? null : text ?? pictureBulletPosture?.fallbackGlyph ?? null;
|
|
37573
|
+
const normalizedMarkerText = normalizeMarkerText(
|
|
37574
|
+
visibleText,
|
|
37575
|
+
resolved.effectiveLevel.format,
|
|
37576
|
+
resolved.geometry.markerRunProperties
|
|
37577
|
+
);
|
|
37378
37578
|
const formatPosture = getNumberingFormatPosture(
|
|
37379
37579
|
resolved.effectiveLevel.format,
|
|
37380
37580
|
currentCounter
|
|
37381
37581
|
);
|
|
37382
|
-
const picBulletMediaId =
|
|
37582
|
+
const picBulletMediaId = pictureBulletPosture?.mediaId;
|
|
37383
37583
|
return {
|
|
37384
|
-
text:
|
|
37584
|
+
text: normalizedMarkerText.text,
|
|
37585
|
+
...normalizedMarkerText.posture !== void 0 ? { markerTextPosture: normalizedMarkerText.posture } : {},
|
|
37385
37586
|
level: resolved.effectiveLevel.level,
|
|
37386
37587
|
format: resolved.effectiveLevel.format,
|
|
37387
37588
|
...formatPosture !== void 0 ? { formatPosture } : {},
|
|
@@ -37391,7 +37592,9 @@ function createNumberingPrefixResolver(catalog) {
|
|
|
37391
37592
|
...resolved.effectiveLevel.isLegalNumbering ? { isLegalNumbering: true } : {},
|
|
37392
37593
|
...resolved.geometry.markerRunProperties ? { markerRunProperties: resolved.geometry.markerRunProperties } : {},
|
|
37393
37594
|
geometry: resolved.geometry,
|
|
37394
|
-
...
|
|
37595
|
+
...picBulletId != null ? { picBulletId } : {},
|
|
37596
|
+
...picBulletMediaId != null ? { picBulletMediaId } : {},
|
|
37597
|
+
...pictureBulletPosture !== void 0 ? { pictureBulletPosture } : {}
|
|
37395
37598
|
};
|
|
37396
37599
|
}
|
|
37397
37600
|
return {
|
|
@@ -37407,6 +37610,69 @@ function createNumberingPrefixResolver(catalog) {
|
|
|
37407
37610
|
}
|
|
37408
37611
|
};
|
|
37409
37612
|
}
|
|
37613
|
+
function normalizeMarkerText(text, format, markerRunProperties) {
|
|
37614
|
+
if (text === null || format !== "bullet") {
|
|
37615
|
+
return { text };
|
|
37616
|
+
}
|
|
37617
|
+
const fontFamily = getMarkerFontFamily(markerRunProperties);
|
|
37618
|
+
if (!isKnownSymbolBulletFont(fontFamily)) {
|
|
37619
|
+
return { text };
|
|
37620
|
+
}
|
|
37621
|
+
const renderedText = Array.from(text, (char) => SYMBOL_BULLET_GLYPH_MAP.get(char) ?? char).join("");
|
|
37622
|
+
if (renderedText === text) {
|
|
37623
|
+
return { text };
|
|
37624
|
+
}
|
|
37625
|
+
return {
|
|
37626
|
+
text: renderedText,
|
|
37627
|
+
posture: {
|
|
37628
|
+
status: "normalized",
|
|
37629
|
+
sourceText: text,
|
|
37630
|
+
renderedText,
|
|
37631
|
+
reason: "symbol-font-bullet-normalized",
|
|
37632
|
+
...fontFamily ? { fontFamily } : {}
|
|
37633
|
+
}
|
|
37634
|
+
};
|
|
37635
|
+
}
|
|
37636
|
+
function getMarkerFontFamily(markerRunProperties) {
|
|
37637
|
+
return markerRunProperties?.fontFamilyAscii ?? markerRunProperties?.fontFamilyHAnsi ?? markerRunProperties?.fontFamilyEastAsia ?? markerRunProperties?.fontFamilyCs ?? markerRunProperties?.fontFamily;
|
|
37638
|
+
}
|
|
37639
|
+
function isKnownSymbolBulletFont(fontFamily) {
|
|
37640
|
+
return fontFamily !== void 0 && /^(?:symbol|wingdings|wingdings 2|wingdings 3|webdings)$/iu.test(
|
|
37641
|
+
fontFamily.trim()
|
|
37642
|
+
);
|
|
37643
|
+
}
|
|
37644
|
+
var SYMBOL_BULLET_GLYPH_MAP = /* @__PURE__ */ new Map([
|
|
37645
|
+
["\uF0B7", "\u2022"],
|
|
37646
|
+
["\uF0A7", "\u25AA"],
|
|
37647
|
+
["\uF0FC", "\u2713"]
|
|
37648
|
+
]);
|
|
37649
|
+
function resolvePictureBulletRenderPosture(picBulletId, picBullet) {
|
|
37650
|
+
if (picBulletId == null) return void 0;
|
|
37651
|
+
if (!picBullet) {
|
|
37652
|
+
return {
|
|
37653
|
+
status: "preserve-only",
|
|
37654
|
+
picBulletId,
|
|
37655
|
+
fallbackGlyph: "\u2022",
|
|
37656
|
+
reason: "picture-bullet-catalog-entry-missing"
|
|
37657
|
+
};
|
|
37658
|
+
}
|
|
37659
|
+
if (picBullet.mediaId) {
|
|
37660
|
+
return {
|
|
37661
|
+
status: "media-rendered",
|
|
37662
|
+
picBulletId,
|
|
37663
|
+
mediaId: picBullet.mediaId,
|
|
37664
|
+
...picBullet.sourceRef ? { sourceRef: picBullet.sourceRef } : {},
|
|
37665
|
+
reason: "picture-bullet-media-rendered"
|
|
37666
|
+
};
|
|
37667
|
+
}
|
|
37668
|
+
return {
|
|
37669
|
+
status: "glyph-fallback",
|
|
37670
|
+
picBulletId,
|
|
37671
|
+
fallbackGlyph: "\u2022",
|
|
37672
|
+
...picBullet.sourceRef ? { sourceRef: picBullet.sourceRef } : {},
|
|
37673
|
+
reason: "picture-bullet-media-unavailable"
|
|
37674
|
+
};
|
|
37675
|
+
}
|
|
37410
37676
|
function getSequenceState(states, numberingInstanceId, options = { create: true }) {
|
|
37411
37677
|
const existing = states.get(numberingInstanceId);
|
|
37412
37678
|
if (existing) {
|
|
@@ -37469,7 +37735,7 @@ function getNumberingFormatPosture(format, value) {
|
|
|
37469
37735
|
reason: registryEntry?.fallbackReason ?? "unsupported-numbering-format-decimal-fallback"
|
|
37470
37736
|
};
|
|
37471
37737
|
}
|
|
37472
|
-
if (value !== void 0 && ((format === "upperRoman" || format === "lowerRoman") && (value <= 0 || value >= 4e3) || (format === "cardinalText" || format === "ordinalText") && (!Number.isInteger(value) || value < 1 || value > 999) || (format === "upperLetter" || format === "lowerLetter" || format === "chicago") && value < 1)) {
|
|
37738
|
+
if (value !== void 0 && (registryEntry.isInRange !== void 0 && !registryEntry.isInRange(value) || (format === "upperRoman" || format === "lowerRoman") && (value <= 0 || value >= 4e3) || (format === "cardinalText" || format === "ordinalText") && (!Number.isInteger(value) || value < 1 || value > 999) || (format === "upperLetter" || format === "lowerLetter" || format === "chicago") && value < 1)) {
|
|
37473
37739
|
return {
|
|
37474
37740
|
status: "approximated",
|
|
37475
37741
|
requestedFormat: format,
|
|
@@ -37563,6 +37829,37 @@ var exactNumberingFormatEntries = [
|
|
|
37563
37829
|
supportsMutation: true,
|
|
37564
37830
|
render: toOrdinal2
|
|
37565
37831
|
},
|
|
37832
|
+
{
|
|
37833
|
+
format: "decimalFullWidth",
|
|
37834
|
+
renderSupport: "supported",
|
|
37835
|
+
renderedFormat: "decimalFullWidth",
|
|
37836
|
+
supportsMutation: false,
|
|
37837
|
+
render: toFullWidthDecimal
|
|
37838
|
+
},
|
|
37839
|
+
{
|
|
37840
|
+
format: "decimalEnclosedCircle",
|
|
37841
|
+
renderSupport: "supported",
|
|
37842
|
+
renderedFormat: "decimalEnclosedCircle",
|
|
37843
|
+
supportsMutation: false,
|
|
37844
|
+
render: toCircledDecimal,
|
|
37845
|
+
isInRange: (value) => Number.isInteger(value) && value >= 0 && value <= 50
|
|
37846
|
+
},
|
|
37847
|
+
{
|
|
37848
|
+
format: "decimalEnclosedParen",
|
|
37849
|
+
renderSupport: "supported",
|
|
37850
|
+
renderedFormat: "decimalEnclosedParen",
|
|
37851
|
+
supportsMutation: false,
|
|
37852
|
+
render: (value) => Number.isInteger(value) && value > 0 ? `(${value})` : String(value),
|
|
37853
|
+
isInRange: (value) => Number.isInteger(value) && value > 0
|
|
37854
|
+
},
|
|
37855
|
+
{
|
|
37856
|
+
format: "decimalEnclosedFullstop",
|
|
37857
|
+
renderSupport: "supported",
|
|
37858
|
+
renderedFormat: "decimalEnclosedFullstop",
|
|
37859
|
+
supportsMutation: false,
|
|
37860
|
+
render: (value) => Number.isInteger(value) && value > 0 ? `${value}.` : String(value),
|
|
37861
|
+
isInRange: (value) => Number.isInteger(value) && value > 0
|
|
37862
|
+
},
|
|
37566
37863
|
{
|
|
37567
37864
|
format: "cardinalText",
|
|
37568
37865
|
renderSupport: "supported",
|
|
@@ -37600,10 +37897,6 @@ var exactNumberingFormatEntries = [
|
|
|
37600
37897
|
}
|
|
37601
37898
|
];
|
|
37602
37899
|
var approximatedDecimalFormats = [
|
|
37603
|
-
"decimalEnclosedCircle",
|
|
37604
|
-
"decimalEnclosedFullstop",
|
|
37605
|
-
"decimalEnclosedParen",
|
|
37606
|
-
"decimalFullWidth",
|
|
37607
37900
|
"decimalHalfWidth",
|
|
37608
37901
|
"aiueo",
|
|
37609
37902
|
"iroha",
|
|
@@ -37655,6 +37948,30 @@ function toOrdinal2(value) {
|
|
|
37655
37948
|
return `${value}th`;
|
|
37656
37949
|
}
|
|
37657
37950
|
}
|
|
37951
|
+
function toFullWidthDecimal(value) {
|
|
37952
|
+
return String(value).replace(
|
|
37953
|
+
/[0-9]/g,
|
|
37954
|
+
(digit) => String.fromCharCode(65296 + Number.parseInt(digit, 10))
|
|
37955
|
+
);
|
|
37956
|
+
}
|
|
37957
|
+
var CIRCLED_DECIMAL_BY_VALUE = new Map([
|
|
37958
|
+
[0, "\u24EA"],
|
|
37959
|
+
...Array.from({ length: 20 }, (_, index) => [
|
|
37960
|
+
index + 1,
|
|
37961
|
+
String.fromCodePoint(9312 + index)
|
|
37962
|
+
]),
|
|
37963
|
+
...Array.from({ length: 15 }, (_, index) => [
|
|
37964
|
+
index + 21,
|
|
37965
|
+
String.fromCodePoint(12881 + index)
|
|
37966
|
+
]),
|
|
37967
|
+
...Array.from({ length: 15 }, (_, index) => [
|
|
37968
|
+
index + 36,
|
|
37969
|
+
String.fromCodePoint(12977 + index)
|
|
37970
|
+
])
|
|
37971
|
+
]);
|
|
37972
|
+
function toCircledDecimal(value) {
|
|
37973
|
+
return CIRCLED_DECIMAL_BY_VALUE.get(value) ?? String(value);
|
|
37974
|
+
}
|
|
37658
37975
|
function toAlphabetic2(value) {
|
|
37659
37976
|
if (value <= 0) {
|
|
37660
37977
|
return String(value);
|
|
@@ -38428,6 +38745,7 @@ function toNumberingLayoutInput(numbering) {
|
|
|
38428
38745
|
const hangingTwips = textColumn?.hanging ?? numbering.geometry.indentation?.hanging ?? (typeof numbering.geometry.indentation?.firstLine === "number" && numbering.geometry.indentation.firstLine < 0 ? Math.abs(numbering.geometry.indentation.firstLine) : void 0);
|
|
38429
38746
|
return {
|
|
38430
38747
|
markerText: numbering.text,
|
|
38748
|
+
...numbering.markerTextPosture ? { markerTextPosture: { ...numbering.markerTextPosture } } : {},
|
|
38431
38749
|
...numbering.markerRunProperties ? { markerRunFormatting: numbering.markerRunProperties } : {},
|
|
38432
38750
|
markerSuffix: normalizeNumberingMarkerSuffix(numbering.suffix),
|
|
38433
38751
|
...markerLane ? { markerLaneStartTwips: markerLane.start } : {},
|
|
@@ -38440,7 +38758,9 @@ function toNumberingLayoutInput(numbering) {
|
|
|
38440
38758
|
...numbering.formatPosture !== void 0 ? { formatPosture: { ...numbering.formatPosture } } : {},
|
|
38441
38759
|
startAt: numbering.startAt,
|
|
38442
38760
|
...numbering.isLegalNumbering ? { isLegalNumbering: true } : {},
|
|
38443
|
-
...numbering.
|
|
38761
|
+
...numbering.picBulletId ? { pictureBulletId: numbering.picBulletId } : {},
|
|
38762
|
+
...numbering.picBulletMediaId ? { pictureBulletMediaId: numbering.picBulletMediaId } : {},
|
|
38763
|
+
...numbering.pictureBulletPosture ? { pictureBulletPosture: { ...numbering.pictureBulletPosture } } : {}
|
|
38444
38764
|
};
|
|
38445
38765
|
}
|
|
38446
38766
|
function toFieldLayoutInput(entry, resolved, region) {
|
|
@@ -38952,6 +39272,7 @@ function buildEffectiveNumbering(detail) {
|
|
|
38952
39272
|
const result = {
|
|
38953
39273
|
level: detail.level,
|
|
38954
39274
|
...detail.text !== null ? { marker: detail.text } : {},
|
|
39275
|
+
...detail.markerTextPosture ? { markerTextPosture: { ...detail.markerTextPosture } } : {},
|
|
38955
39276
|
...detail.markerRunProperties ? { markerRunFormatting: detail.markerRunProperties } : {},
|
|
38956
39277
|
...detail.geometry ? {
|
|
38957
39278
|
indentation: {
|
|
@@ -38961,7 +39282,8 @@ function buildEffectiveNumbering(detail) {
|
|
|
38961
39282
|
...detail.geometry.tabStops && detail.geometry.tabStops.length > 0 ? { tab: detail.geometry.tabStops[0].position } : {}
|
|
38962
39283
|
}
|
|
38963
39284
|
} : {},
|
|
38964
|
-
...detail.picBulletMediaId ? { pictureBulletRef: detail.picBulletMediaId } : {}
|
|
39285
|
+
...detail.picBulletMediaId ? { pictureBulletRef: detail.picBulletMediaId } : {},
|
|
39286
|
+
...detail.pictureBulletPosture ? { pictureBulletPosture: { ...detail.pictureBulletPosture } } : {}
|
|
38965
39287
|
};
|
|
38966
39288
|
return result;
|
|
38967
39289
|
}
|
|
@@ -46975,6 +47297,16 @@ function getStoryBlocks(document2, target) {
|
|
|
46975
47297
|
}
|
|
46976
47298
|
}
|
|
46977
47299
|
|
|
47300
|
+
// src/runtime/render/render-frame-types.ts
|
|
47301
|
+
var DEFAULT_PX_PER_TWIP = 96 / 1440;
|
|
47302
|
+
var EMPTY_DECORATION_INDEX = Object.freeze({
|
|
47303
|
+
workflow: Object.freeze([]),
|
|
47304
|
+
comments: Object.freeze([]),
|
|
47305
|
+
revisions: Object.freeze([]),
|
|
47306
|
+
search: Object.freeze([]),
|
|
47307
|
+
locked: Object.freeze([])
|
|
47308
|
+
});
|
|
47309
|
+
|
|
46978
47310
|
// src/core/state/editor-state.ts
|
|
46979
47311
|
function createSelectionSnapshot(anchor = 0, head = anchor) {
|
|
46980
47312
|
return {
|
|
@@ -48920,6 +49252,7 @@ function toSurfaceResolvedNumbering(numbering) {
|
|
|
48920
49252
|
format: numbering.format,
|
|
48921
49253
|
...numbering.formatPosture !== void 0 ? { formatPosture: { ...numbering.formatPosture } } : {},
|
|
48922
49254
|
...numbering.text !== null ? { text: numbering.text } : {},
|
|
49255
|
+
...numbering.markerTextPosture !== void 0 ? { markerTextPosture: { ...numbering.markerTextPosture } } : {},
|
|
48923
49256
|
startAt: numbering.startAt,
|
|
48924
49257
|
...numbering.paragraphStyleId ? { paragraphStyleId: numbering.paragraphStyleId } : {},
|
|
48925
49258
|
...numbering.isLegalNumbering ? { isLegalNumbering: true } : {},
|
|
@@ -48932,7 +49265,9 @@ function toSurfaceResolvedNumbering(numbering) {
|
|
|
48932
49265
|
...numbering.geometry.markerLane ? { markerLane: { ...numbering.geometry.markerLane } } : {},
|
|
48933
49266
|
...numbering.geometry.textColumn ? { textColumn: { ...numbering.geometry.textColumn } } : {}
|
|
48934
49267
|
},
|
|
48935
|
-
...numbering.
|
|
49268
|
+
...numbering.picBulletId ? { picBulletId: numbering.picBulletId } : {},
|
|
49269
|
+
...numbering.picBulletMediaId ? { picBulletMediaId: numbering.picBulletMediaId } : {},
|
|
49270
|
+
...numbering.pictureBulletPosture ? { pictureBulletPosture: { ...numbering.pictureBulletPosture } } : {}
|
|
48936
49271
|
};
|
|
48937
49272
|
}
|
|
48938
49273
|
function describePreservedInlinePreview(payloadReference) {
|
|
@@ -53047,6 +53382,11 @@ function freezeNumberingLayoutFacts(numbering) {
|
|
|
53047
53382
|
if (numbering.numberingSourceRef) Object.freeze(numbering.numberingSourceRef);
|
|
53048
53383
|
if (numbering.numberingInstanceSourceRef) Object.freeze(numbering.numberingInstanceSourceRef);
|
|
53049
53384
|
if (numbering.abstractNumberingSourceRef) Object.freeze(numbering.abstractNumberingSourceRef);
|
|
53385
|
+
if (numbering.markerTextPosture) Object.freeze(numbering.markerTextPosture);
|
|
53386
|
+
if (numbering.pictureBulletPosture) {
|
|
53387
|
+
if (numbering.pictureBulletPosture.sourceRef) Object.freeze(numbering.pictureBulletPosture.sourceRef);
|
|
53388
|
+
Object.freeze(numbering.pictureBulletPosture);
|
|
53389
|
+
}
|
|
53050
53390
|
if (numbering.markerLane) Object.freeze(numbering.markerLane);
|
|
53051
53391
|
if (numbering.textColumn) Object.freeze(numbering.textColumn);
|
|
53052
53392
|
if (numbering.tabStops) {
|
|
@@ -53999,8 +54339,17 @@ function collectNumberingLayoutFacts(block) {
|
|
|
53999
54339
|
...block.resolvedNumbering?.format !== void 0 ? { format: block.resolvedNumbering.format } : {},
|
|
54000
54340
|
...block.resolvedNumbering?.formatPosture !== void 0 ? { formatPosture: { ...block.resolvedNumbering.formatPosture } } : {},
|
|
54001
54341
|
...block.numberingPrefix !== void 0 ? { markerText: block.numberingPrefix } : {},
|
|
54342
|
+
...block.resolvedNumbering?.markerTextPosture !== void 0 ? { markerTextPosture: { ...block.resolvedNumbering.markerTextPosture } } : {},
|
|
54002
54343
|
...block.numberingSuffix !== void 0 ? { markerSuffix: block.numberingSuffix } : {},
|
|
54003
54344
|
...block.resolvedNumbering?.geometry.markerJustification !== void 0 ? { markerJustification: block.resolvedNumbering.geometry.markerJustification } : {},
|
|
54345
|
+
...block.resolvedNumbering?.picBulletId !== void 0 ? { picBulletId: block.resolvedNumbering.picBulletId } : {},
|
|
54346
|
+
...block.resolvedNumbering?.picBulletMediaId !== void 0 ? { picBulletMediaId: block.resolvedNumbering.picBulletMediaId } : {},
|
|
54347
|
+
...block.resolvedNumbering?.pictureBulletPosture !== void 0 ? {
|
|
54348
|
+
pictureBulletPosture: {
|
|
54349
|
+
...block.resolvedNumbering.pictureBulletPosture,
|
|
54350
|
+
...block.resolvedNumbering.pictureBulletPosture.sourceRef !== void 0 ? { sourceRef: { ...block.resolvedNumbering.pictureBulletPosture.sourceRef } } : {}
|
|
54351
|
+
}
|
|
54352
|
+
} : {},
|
|
54004
54353
|
...markerLane ? {
|
|
54005
54354
|
markerLane: {
|
|
54006
54355
|
startTwips: markerLane.start,
|
|
@@ -55817,16 +56166,6 @@ function resolveProjectedRuntimeRange(offsetMap, from, to) {
|
|
|
55817
56166
|
return { from: runtimeFrom, to: runtimeTo };
|
|
55818
56167
|
}
|
|
55819
56168
|
|
|
55820
|
-
// src/runtime/render/render-frame-types.ts
|
|
55821
|
-
var DEFAULT_PX_PER_TWIP = 96 / 1440;
|
|
55822
|
-
var EMPTY_DECORATION_INDEX = Object.freeze({
|
|
55823
|
-
workflow: Object.freeze([]),
|
|
55824
|
-
comments: Object.freeze([]),
|
|
55825
|
-
revisions: Object.freeze([]),
|
|
55826
|
-
search: Object.freeze([]),
|
|
55827
|
-
locked: Object.freeze([])
|
|
55828
|
-
});
|
|
55829
|
-
|
|
55830
56169
|
// src/runtime/document-search.ts
|
|
55831
56170
|
function searchDocument(document2, selection, activeStory, navigation, query, options = {}) {
|
|
55832
56171
|
const normalizedQuery = query.trim();
|
package/dist/api/v3.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { u as MockPayload, A as ApiStatus, U as UxIntent, v as RuntimeApiHandle, w as UiControllerFactory, x as ApiV3Ui } from '../public-types-
|
|
2
|
-
export { y as AgentMetadata, z as AiPe2EvidenceOptions, B as AiPe2GraphOracleReference, D as AiPe2OracleEvidence, F as AiPe2OracleEvidenceProvider, G as AiPe2OracleEvidenceProviderInput, H as AiPe2OracleVerdict, J as ApiV3, K as ApiV3FnMetadata, N as ApiV3UiChrome, O as ApiV3UiDebug, Q as ApiV3UiOverlays, V as ApiV3UiSession, W as ApiV3UiSurface, X as ApiV3UiViewport, Y as BroadcastsVia, Z as ChromeDebugMode, _ as ChromeDocumentMode, $ as ChromeHostPosture, a0 as ChromeMarkupDisplay, a1 as ChromePosture, a2 as ChromeReviewMode, a3 as ChromeSurface, a4 as ChromeSurfaceKind, a5 as CreateApiV3Opts, a6 as DebugAttachment, a7 as DebugSession, a8 as GeometryRect, a9 as LiveEvidence, aa as MockShape, ab as OverlayAnchorQuery, ac as PersistsTo, ad as ScrollTarget, ae as ScrollTargetBehavior, af as SelectionRangeInput, ag as SourceLayer, ah as StateClass, ai as SubscriptionShape, aj as UiBinding, ak as UiController, al as UiControllerKind, am as UiListener, an as UiUnsubscribe, ao as ViewportState, ap as createApiV3, aq as validateApiV3Metadata } from '../public-types-
|
|
1
|
+
import { u as MockPayload, A as ApiStatus, U as UxIntent, v as RuntimeApiHandle, w as UiControllerFactory, x as ApiV3Ui } from '../public-types-KBS6JnOs.cjs';
|
|
2
|
+
export { y as AgentMetadata, z as AiPe2EvidenceOptions, B as AiPe2GraphOracleReference, D as AiPe2OracleEvidence, F as AiPe2OracleEvidenceProvider, G as AiPe2OracleEvidenceProviderInput, H as AiPe2OracleVerdict, J as ApiV3, K as ApiV3FnMetadata, N as ApiV3UiChrome, O as ApiV3UiDebug, Q as ApiV3UiOverlays, V as ApiV3UiSession, W as ApiV3UiSurface, X as ApiV3UiViewport, Y as BroadcastsVia, Z as ChromeDebugMode, _ as ChromeDocumentMode, $ as ChromeHostPosture, a0 as ChromeMarkupDisplay, a1 as ChromePosture, a2 as ChromeReviewMode, a3 as ChromeSurface, a4 as ChromeSurfaceKind, a5 as CreateApiV3Opts, a6 as DebugAttachment, a7 as DebugSession, a8 as GeometryRect, a9 as LiveEvidence, aa as MockShape, ab as OverlayAnchorQuery, ac as PersistsTo, ad as ScrollTarget, ae as ScrollTargetBehavior, af as SelectionRangeInput, ag as SourceLayer, ah as StateClass, ai as SubscriptionShape, aj as UiBinding, ak as UiController, al as UiControllerKind, am as UiListener, an as UiUnsubscribe, ao as ViewportState, ap as createApiV3, aq as validateApiV3Metadata } from '../public-types-KBS6JnOs.cjs';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'yjs';
|
|
5
5
|
import 'y-protocols/awareness';
|
|
6
|
-
import '../canonical-document-
|
|
6
|
+
import '../canonical-document-CfZIc-fC.cjs';
|
|
7
7
|
import 'prosemirror-state';
|
|
8
8
|
import 'prosemirror-model';
|
|
9
9
|
|
package/dist/api/v3.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { u as MockPayload, A as ApiStatus, U as UxIntent, v as RuntimeApiHandle, w as UiControllerFactory, x as ApiV3Ui } from '../public-types-
|
|
2
|
-
export { y as AgentMetadata, z as AiPe2EvidenceOptions, B as AiPe2GraphOracleReference, D as AiPe2OracleEvidence, F as AiPe2OracleEvidenceProvider, G as AiPe2OracleEvidenceProviderInput, H as AiPe2OracleVerdict, J as ApiV3, K as ApiV3FnMetadata, N as ApiV3UiChrome, O as ApiV3UiDebug, Q as ApiV3UiOverlays, V as ApiV3UiSession, W as ApiV3UiSurface, X as ApiV3UiViewport, Y as BroadcastsVia, Z as ChromeDebugMode, _ as ChromeDocumentMode, $ as ChromeHostPosture, a0 as ChromeMarkupDisplay, a1 as ChromePosture, a2 as ChromeReviewMode, a3 as ChromeSurface, a4 as ChromeSurfaceKind, a5 as CreateApiV3Opts, a6 as DebugAttachment, a7 as DebugSession, a8 as GeometryRect, a9 as LiveEvidence, aa as MockShape, ab as OverlayAnchorQuery, ac as PersistsTo, ad as ScrollTarget, ae as ScrollTargetBehavior, af as SelectionRangeInput, ag as SourceLayer, ah as StateClass, ai as SubscriptionShape, aj as UiBinding, ak as UiController, al as UiControllerKind, am as UiListener, an as UiUnsubscribe, ao as ViewportState, ap as createApiV3, aq as validateApiV3Metadata } from '../public-types-
|
|
1
|
+
import { u as MockPayload, A as ApiStatus, U as UxIntent, v as RuntimeApiHandle, w as UiControllerFactory, x as ApiV3Ui } from '../public-types-Cjs8glST.js';
|
|
2
|
+
export { y as AgentMetadata, z as AiPe2EvidenceOptions, B as AiPe2GraphOracleReference, D as AiPe2OracleEvidence, F as AiPe2OracleEvidenceProvider, G as AiPe2OracleEvidenceProviderInput, H as AiPe2OracleVerdict, J as ApiV3, K as ApiV3FnMetadata, N as ApiV3UiChrome, O as ApiV3UiDebug, Q as ApiV3UiOverlays, V as ApiV3UiSession, W as ApiV3UiSurface, X as ApiV3UiViewport, Y as BroadcastsVia, Z as ChromeDebugMode, _ as ChromeDocumentMode, $ as ChromeHostPosture, a0 as ChromeMarkupDisplay, a1 as ChromePosture, a2 as ChromeReviewMode, a3 as ChromeSurface, a4 as ChromeSurfaceKind, a5 as CreateApiV3Opts, a6 as DebugAttachment, a7 as DebugSession, a8 as GeometryRect, a9 as LiveEvidence, aa as MockShape, ab as OverlayAnchorQuery, ac as PersistsTo, ad as ScrollTarget, ae as ScrollTargetBehavior, af as SelectionRangeInput, ag as SourceLayer, ah as StateClass, ai as SubscriptionShape, aj as UiBinding, ak as UiController, al as UiControllerKind, am as UiListener, an as UiUnsubscribe, ao as ViewportState, ap as createApiV3, aq as validateApiV3Metadata } from '../public-types-Cjs8glST.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'yjs';
|
|
5
5
|
import 'y-protocols/awareness';
|
|
6
|
-
import '../canonical-document-
|
|
6
|
+
import '../canonical-document-CfZIc-fC.js';
|
|
7
7
|
import 'prosemirror-state';
|
|
8
8
|
import 'prosemirror-model';
|
|
9
9
|
|