@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.
Files changed (98) hide show
  1. package/dist/api/public-types.cjs +679 -157
  2. package/dist/api/public-types.d.cts +2 -2
  3. package/dist/api/public-types.d.ts +2 -2
  4. package/dist/api/public-types.js +5 -3
  5. package/dist/api/v3.cjs +371 -32
  6. package/dist/api/v3.d.cts +3 -3
  7. package/dist/api/v3.d.ts +3 -3
  8. package/dist/api/v3.js +10 -10
  9. package/dist/{canonical-document-BMtONpgf.d.cts → canonical-document-CfZIc-fC.d.cts} +1 -1
  10. package/dist/{canonical-document-BMtONpgf.d.ts → canonical-document-CfZIc-fC.d.ts} +1 -1
  11. package/dist/{chunk-YLL7MF5C.js → chunk-43JAPM2F.js} +24 -17
  12. package/dist/{chunk-4YCWECLZ.js → chunk-4HGFJ6Z2.js} +1 -1
  13. package/dist/{chunk-HYHCRMR7.js → chunk-6736GA6J.js} +1 -1
  14. package/dist/{chunk-Q7Y57KOK.js → chunk-6TLZ6CMP.js} +2 -2
  15. package/dist/{chunk-DGA7M77X.js → chunk-ALWXYGXP.js} +2 -2
  16. package/dist/{chunk-PHMWH23E.js → chunk-C5LXKR54.js} +1 -1
  17. package/dist/{chunk-6TBLDBCL.js → chunk-CDEZGLQ3.js} +1 -1
  18. package/dist/{chunk-VRKK2CSZ.js → chunk-JVTDBX67.js} +2 -2
  19. package/dist/{chunk-THVM6EP5.js → chunk-LPLJZJT2.js} +1196 -35
  20. package/dist/{chunk-T5YYFDZB.js → chunk-N5FTU4HZ.js} +1 -1
  21. package/dist/{chunk-3YCQM2RV.js → chunk-QUTVR72L.js} +8 -7
  22. package/dist/{chunk-M7YRJX6V.js → chunk-RBWJHRNP.js} +1 -1
  23. package/dist/{chunk-A66ZVUAT.js → chunk-RYMMKOFI.js} +204 -10
  24. package/dist/{chunk-QXKQPUOM.js → chunk-SZ6BJA4Q.js} +3 -3
  25. package/dist/{chunk-A3GSNB4G.js → chunk-U3UMKA7B.js} +147 -13
  26. package/dist/{chunk-KNHMXKC6.js → chunk-UFPBYJMA.js} +2 -2
  27. package/dist/{chunk-35RHOE6I.js → chunk-UP2KDOYE.js} +6 -1162
  28. package/dist/{chunk-CI2TD3T4.js → chunk-W2I47J2Q.js} +1 -1
  29. package/dist/{chunk-7G5GR3VV.js → chunk-XYTWOJII.js} +5 -5
  30. package/dist/{chunk-WZDKNF37.js → chunk-YUHNDEV5.js} +7 -7
  31. package/dist/{chunk-ZVC23LKV.js → chunk-ZDYGRO2Z.js} +1 -1
  32. package/dist/compare.d.cts +1 -1
  33. package/dist/compare.d.ts +1 -1
  34. package/dist/core/commands/formatting-commands.d.cts +2 -2
  35. package/dist/core/commands/formatting-commands.d.ts +2 -2
  36. package/dist/core/commands/image-commands.cjs +312 -20
  37. package/dist/core/commands/image-commands.d.cts +2 -2
  38. package/dist/core/commands/image-commands.d.ts +2 -2
  39. package/dist/core/commands/image-commands.js +5 -5
  40. package/dist/core/commands/section-layout-commands.d.cts +2 -2
  41. package/dist/core/commands/section-layout-commands.d.ts +2 -2
  42. package/dist/core/commands/style-commands.d.cts +2 -2
  43. package/dist/core/commands/style-commands.d.ts +2 -2
  44. package/dist/core/commands/table-structure-commands.cjs +312 -20
  45. package/dist/core/commands/table-structure-commands.d.cts +2 -2
  46. package/dist/core/commands/table-structure-commands.d.ts +2 -2
  47. package/dist/core/commands/table-structure-commands.js +4 -4
  48. package/dist/core/commands/text-commands.cjs +312 -20
  49. package/dist/core/commands/text-commands.d.cts +2 -2
  50. package/dist/core/commands/text-commands.d.ts +2 -2
  51. package/dist/core/commands/text-commands.js +5 -5
  52. package/dist/core/selection/mapping.d.cts +2 -2
  53. package/dist/core/selection/mapping.d.ts +2 -2
  54. package/dist/core/state/editor-state.d.cts +2 -2
  55. package/dist/core/state/editor-state.d.ts +2 -2
  56. package/dist/index.cjs +3015 -2213
  57. package/dist/index.d.cts +5 -5
  58. package/dist/index.d.ts +5 -5
  59. package/dist/index.js +554 -99
  60. package/dist/io/docx-session.d.cts +4 -4
  61. package/dist/io/docx-session.d.ts +4 -4
  62. package/dist/io/docx-session.js +4 -4
  63. package/dist/legal.d.cts +1 -1
  64. package/dist/legal.d.ts +1 -1
  65. package/dist/legal.js +3 -3
  66. package/dist/{loader-B-aL5HGD.d.ts → loader-CfpeEPAa.d.ts} +3 -3
  67. package/dist/{loader-DiY_ZgKl.d.cts → loader-MAa8VpzW.d.cts} +3 -3
  68. package/dist/{public-types-gvubspUI.d.cts → public-types-Cjs8glST.d.ts} +137 -2
  69. package/dist/{public-types-DyqnxxO9.d.ts → public-types-KBS6JnOs.d.cts} +137 -2
  70. package/dist/public-types.cjs +679 -157
  71. package/dist/public-types.d.cts +2 -2
  72. package/dist/public-types.d.ts +2 -2
  73. package/dist/public-types.js +5 -3
  74. package/dist/runtime/collab.d.cts +3 -3
  75. package/dist/runtime/collab.d.ts +3 -3
  76. package/dist/runtime/document-runtime.cjs +371 -22
  77. package/dist/runtime/document-runtime.d.cts +2 -2
  78. package/dist/runtime/document-runtime.d.ts +2 -2
  79. package/dist/runtime/document-runtime.js +14 -14
  80. package/dist/{session-CDB0hohT.d.ts → session-CkoH8FoY.d.ts} +3 -3
  81. package/dist/{session-BUN6B-Vj.d.cts → session-wwe0Gib-.d.cts} +3 -3
  82. package/dist/session.d.cts +5 -5
  83. package/dist/session.d.ts +5 -5
  84. package/dist/session.js +5 -5
  85. package/dist/tailwind.cjs +492 -202
  86. package/dist/tailwind.d.cts +2 -2
  87. package/dist/tailwind.d.ts +2 -2
  88. package/dist/tailwind.js +7 -7
  89. package/dist/{types-C4bz3kDU.d.cts → types-B3SGRW0w.d.cts} +2 -2
  90. package/dist/{types-VWH6CRvG.d.ts → types-CH7NWqVL.d.ts} +2 -2
  91. package/dist/ui-tailwind/editor-surface/search-plugin.d.cts +3 -3
  92. package/dist/ui-tailwind/editor-surface/search-plugin.d.ts +3 -3
  93. package/dist/ui-tailwind/editor-surface/search-plugin.js +4 -4
  94. package/dist/ui-tailwind.cjs +492 -202
  95. package/dist/ui-tailwind.d.cts +3 -3
  96. package/dist/ui-tailwind.d.ts +3 -3
  97. package/dist/ui-tailwind.js +7 -7
  98. package/package.json +1 -1
@@ -5041,11 +5041,14 @@ function collectEditableTargetRefs(doc, cache) {
5041
5041
  collectEditableTargetsInBlocks(
5042
5042
  context.blocks,
5043
5043
  {
5044
+ doc,
5044
5045
  storyKey: context.storyKey,
5045
5046
  basePath: context.basePath,
5046
5047
  insideSdt: false,
5047
5048
  insideTextBox: false,
5048
- tableDepth: 0
5049
+ tableDepth: 0,
5050
+ numberingCatalogHash: createNumberingCatalogRevisionHash(doc),
5051
+ numberingTargetRevisionHash: createNumberingTargetRevisionHash(doc)
5049
5052
  },
5050
5053
  targets,
5051
5054
  cache
@@ -5065,11 +5068,14 @@ function collectEditableTargetRefsForStoryBlockRanges(doc, storyKey2, ranges, ca
5065
5068
  collectEditableTargetsInBlocks(
5066
5069
  context.blocks.slice(range.start, range.end),
5067
5070
  {
5071
+ doc,
5068
5072
  storyKey: context.storyKey,
5069
5073
  basePath: context.basePath,
5070
5074
  insideSdt: false,
5071
5075
  insideTextBox: false,
5072
- tableDepth: 0
5076
+ tableDepth: 0,
5077
+ numberingCatalogHash: createNumberingCatalogRevisionHash(doc),
5078
+ numberingTargetRevisionHash: createNumberingTargetRevisionHash(doc)
5073
5079
  },
5074
5080
  targets,
5075
5081
  cache,
@@ -5095,6 +5101,7 @@ function buildBlockCacheSignature(context, blockIndex) {
5095
5101
  const owner = tt?.editableOwnersByChildIndex?.get(blockIndex);
5096
5102
  return [
5097
5103
  context.storyKey,
5104
+ context.numberingTargetRevisionHash,
5098
5105
  context.insideSdt ? "1" : "0",
5099
5106
  context.insideTextBox ? "1" : "0",
5100
5107
  String(context.tableDepth),
@@ -5140,7 +5147,8 @@ function collectEditableTargetsInBlocks(blocks, context, targets, cache, blockIn
5140
5147
  editableParagraphTargetPosture(targetKind),
5141
5148
  context.contentControl,
5142
5149
  context.tableTarget,
5143
- context.tableTarget?.editableOwnersByChildIndex?.get(blockIndex)
5150
+ context.tableTarget?.editableOwnersByChildIndex?.get(blockIndex),
5151
+ resolveEditableParagraphListIdentity(block, context)
5144
5152
  )
5145
5153
  );
5146
5154
  }
@@ -5685,7 +5693,7 @@ function collectEditableTargetsInInlines(inlines, basePath, context, targets) {
5685
5693
  }
5686
5694
  }
5687
5695
  }
5688
- function createParagraphEditableTarget(paragraph, kind, storyKey2, blockPath, targetPosture = { editability: "editable", posture: { blockers: [] } }, contentControl, tableTarget, editableOwner) {
5696
+ function createParagraphEditableTarget(paragraph, kind, storyKey2, blockPath, targetPosture = { editability: "editable", posture: { blockers: [] } }, contentControl, tableTarget, editableOwner, listIdentity) {
5689
5697
  const paragraphText = collectParagraphText(paragraph);
5690
5698
  const paragraphTextHash = hashText(paragraphText);
5691
5699
  const sourceRef = paragraph.sourceRef;
@@ -5696,19 +5704,39 @@ function createParagraphEditableTarget(paragraph, kind, storyKey2, blockPath, ta
5696
5704
  context: { storyKey: storyKey2, insideSdt: contentControl !== void 0 },
5697
5705
  ...tableTarget
5698
5706
  }) : void 0;
5699
- const listAddress = paragraph.numbering !== void 0 ? createCanonicalAddress({
5707
+ const listAddress = listIdentity !== void 0 ? createCanonicalAddress({
5700
5708
  addressKind: "list-item-text",
5701
5709
  storyKey: storyKey2,
5702
5710
  staleCheckKind: "paragraph",
5703
5711
  operationScope: "list-text",
5704
- sourceRefs: [sourceRef],
5712
+ sourceRefs: [
5713
+ sourceRef,
5714
+ listIdentity.paragraphNumberingSourceRef,
5715
+ listIdentity.instanceSourceRef,
5716
+ listIdentity.abstractSourceRef
5717
+ ],
5705
5718
  staleHash: paragraphTextHash,
5706
5719
  rangeBoundary: { boundaryKind: "list-item-text" },
5720
+ list: {
5721
+ numberingOrigin: listIdentity.numberingOrigin,
5722
+ numberingInstanceId: listIdentity.numberingInstanceId,
5723
+ ...listIdentity.abstractNumberingId !== void 0 ? { abstractNumberingId: listIdentity.abstractNumberingId } : {},
5724
+ level: listIdentity.level,
5725
+ ...listIdentity.overrideHash !== void 0 ? { overrideHash: listIdentity.overrideHash } : {},
5726
+ numberingCatalogHash: listIdentity.numberingCatalogHash
5727
+ },
5707
5728
  discriminator: {
5708
5729
  blockPath,
5709
- numberingInstanceId: paragraph.numbering.numberingInstanceId,
5710
- level: paragraph.numbering.level,
5730
+ numberingOrigin: listIdentity.numberingOrigin,
5731
+ numberingInstanceId: listIdentity.numberingInstanceId,
5732
+ abstractNumberingId: listIdentity.abstractNumberingId ?? null,
5733
+ level: listIdentity.level,
5734
+ overrideHash: listIdentity.overrideHash ?? null,
5735
+ numberingCatalogHash: listIdentity.numberingCatalogHash,
5711
5736
  sourceId: sourceRef?.sourceId ?? null,
5737
+ numberingSourceId: listIdentity.paragraphNumberingSourceRef?.sourceId ?? null,
5738
+ numberingInstanceSourceId: listIdentity.instanceSourceRef?.sourceId ?? null,
5739
+ abstractNumberingSourceId: listIdentity.abstractSourceRef?.sourceId ?? null,
5712
5740
  paraId: paragraph.wordExtensionIds?.paraId ?? null,
5713
5741
  textId: paragraph.wordExtensionIds?.textId ?? null
5714
5742
  }
@@ -5749,11 +5777,62 @@ function createParagraphEditableTarget(paragraph, kind, storyKey2, blockPath, ta
5749
5777
  blockType: "paragraph",
5750
5778
  ...paragraph.wordExtensionIds?.paraId !== void 0 ? { wordParaId: paragraph.wordExtensionIds.paraId } : {},
5751
5779
  ...paragraph.wordExtensionIds?.textId !== void 0 ? { wordTextId: paragraph.wordExtensionIds.textId } : {},
5752
- ...sourceRef !== void 0 ? { sourceRef } : {}
5780
+ ...sourceRef !== void 0 ? { sourceRef } : {},
5781
+ ...listIdentity !== void 0 ? {
5782
+ listNumberingOrigin: listIdentity.numberingOrigin,
5783
+ listNumberingInstanceId: listIdentity.numberingInstanceId,
5784
+ ...listIdentity.abstractNumberingId !== void 0 ? { listAbstractNumberingId: listIdentity.abstractNumberingId } : {},
5785
+ listLevel: listIdentity.level,
5786
+ ...listIdentity.overrideHash !== void 0 ? { listOverrideHash: listIdentity.overrideHash } : {},
5787
+ numberingCatalogHash: listIdentity.numberingCatalogHash
5788
+ } : {}
5753
5789
  },
5754
5790
  posture
5755
5791
  };
5756
5792
  }
5793
+ function resolveEditableParagraphListIdentity(paragraph, context) {
5794
+ const directNumbering = paragraph.numbering;
5795
+ const styleNumbering = directNumbering === void 0 && paragraph.styleId !== void 0 ? resolveParagraphStyleNumbering(context.doc, paragraph.styleId) : void 0;
5796
+ const numbering = directNumbering ?? styleNumbering;
5797
+ if (numbering === void 0) return void 0;
5798
+ const numberingCatalog = context.doc.numbering ?? { abstractDefinitions: {}, instances: {} };
5799
+ const instances = numberingCatalog.instances ?? {};
5800
+ const abstractDefinitions = numberingCatalog.abstractDefinitions ?? {};
5801
+ const instance = instances[numbering.numberingInstanceId];
5802
+ const abstractDefinition = instance !== void 0 ? abstractDefinitions[instance.abstractNumberingId] : void 0;
5803
+ const level = numbering.level ?? 0;
5804
+ const override = instance?.overrides.find((entry) => entry.level === level);
5805
+ const overrideHash = override !== void 0 ? hashText(JSON.stringify(numberingOverrideDiscriminator(override))) : void 0;
5806
+ return {
5807
+ numberingOrigin: directNumbering !== void 0 ? "paragraph" : "paragraph-style",
5808
+ numberingInstanceId: numbering.numberingInstanceId,
5809
+ ...instance?.abstractNumberingId !== void 0 ? { abstractNumberingId: instance.abstractNumberingId } : {},
5810
+ level,
5811
+ ...overrideHash !== void 0 ? { overrideHash } : {},
5812
+ numberingCatalogHash: context.numberingCatalogHash,
5813
+ ...directNumbering?.sourceRef !== void 0 ? { paragraphNumberingSourceRef: directNumbering.sourceRef } : {},
5814
+ ...instance?.sourceRef !== void 0 ? { instanceSourceRef: instance.sourceRef } : {},
5815
+ ...abstractDefinition?.sourceRef !== void 0 ? { abstractSourceRef: abstractDefinition.sourceRef } : {}
5816
+ };
5817
+ }
5818
+ function numberingOverrideDiscriminator(override) {
5819
+ return {
5820
+ level: override.level,
5821
+ startAt: override.startAt ?? null,
5822
+ sourceId: override.sourceRef?.sourceId ?? null,
5823
+ levelDefinition: override.levelDefinition === void 0 ? null : {
5824
+ sourceId: override.levelDefinition.sourceRef?.sourceId ?? null,
5825
+ format: override.levelDefinition.format ?? null,
5826
+ text: override.levelDefinition.text ?? null,
5827
+ startAt: override.levelDefinition.startAt ?? null,
5828
+ paragraphStyleId: override.levelDefinition.paragraphStyleId ?? null,
5829
+ isLegalNumbering: override.levelDefinition.isLegalNumbering ?? null,
5830
+ suffix: override.levelDefinition.suffix ?? null,
5831
+ restartAfterLevel: override.levelDefinition.restartAfterLevel ?? null,
5832
+ picBulletId: override.levelDefinition.picBulletId ?? null
5833
+ }
5834
+ };
5835
+ }
5757
5836
  function contentControlLocksContent(contentControl) {
5758
5837
  return contentControl?.lock !== void 0 && contentControl.lock !== "unlocked" && contentControl.lock !== "none";
5759
5838
  }
@@ -6522,6 +6601,7 @@ function createCanonicalAddress(input) {
6522
6601
  ...input.rowRange !== void 0 ? { rowRange: input.rowRange } : {},
6523
6602
  ...input.columnRange !== void 0 ? { columnRange: input.columnRange } : {},
6524
6603
  ...sourceHash !== void 0 ? { sourceJoinHash: sourceHash } : {},
6604
+ ...input.list !== void 0 ? { list: input.list } : {},
6525
6605
  ...input.secondaryStory === true ? { secondaryStory: true } : {},
6526
6606
  ...input.nestedTable === true ? { nestedTable: true } : {},
6527
6607
  ...input.insideSdt === true ? { insideSdt: true } : {},
@@ -6556,6 +6636,71 @@ function sourceJoinHash(refs) {
6556
6636
  if (sourceIds.length === 0) return void 0;
6557
6637
  return hashText(sourceIds.join("\0"));
6558
6638
  }
6639
+ function createNumberingCatalogRevisionHash(doc) {
6640
+ const catalog = doc.numbering ?? { abstractDefinitions: {}, instances: {} };
6641
+ const abstractDefinitions = catalog.abstractDefinitions ?? {};
6642
+ const instances = catalog.instances ?? {};
6643
+ const numPicBullets = catalog.numPicBullets ?? {};
6644
+ return hashText(JSON.stringify({
6645
+ abstractDefinitions: Object.keys(abstractDefinitions).sort().map((abstractNumberingId) => {
6646
+ const definition = abstractDefinitions[abstractNumberingId];
6647
+ return {
6648
+ abstractNumberingId,
6649
+ sourceId: definition.sourceRef?.sourceId ?? null,
6650
+ nsid: definition.nsid ?? null,
6651
+ tplc: definition.tplc ?? null,
6652
+ styleLink: definition.styleLink ?? null,
6653
+ numStyleLink: definition.numStyleLink ?? null,
6654
+ levels: definition.levels.map((level) => ({
6655
+ sourceId: level.sourceRef?.sourceId ?? null,
6656
+ level: level.level,
6657
+ format: level.format,
6658
+ text: level.text,
6659
+ startAt: level.startAt ?? null,
6660
+ paragraphStyleId: level.paragraphStyleId ?? null,
6661
+ isLegalNumbering: level.isLegalNumbering ?? null,
6662
+ suffix: level.suffix ?? null,
6663
+ restartAfterLevel: level.restartAfterLevel ?? null,
6664
+ picBulletId: level.picBulletId ?? null
6665
+ }))
6666
+ };
6667
+ }),
6668
+ instances: Object.keys(instances).sort().map((numberingInstanceId) => {
6669
+ const instance = instances[numberingInstanceId];
6670
+ return {
6671
+ numberingInstanceId,
6672
+ sourceId: instance.sourceRef?.sourceId ?? null,
6673
+ abstractNumberingId: instance.abstractNumberingId,
6674
+ overrides: instance.overrides.map(numberingOverrideDiscriminator)
6675
+ };
6676
+ }),
6677
+ numPicBullets: Object.keys(numPicBullets).sort().map((numPicBulletId) => {
6678
+ const picBullet = numPicBullets[numPicBulletId];
6679
+ return {
6680
+ numPicBulletId,
6681
+ sourceId: picBullet.sourceRef?.sourceId ?? null,
6682
+ mediaId: picBullet.mediaId ?? null,
6683
+ widthEmu: picBullet.widthEmu ?? null,
6684
+ heightEmu: picBullet.heightEmu ?? null
6685
+ };
6686
+ })
6687
+ }));
6688
+ }
6689
+ function createNumberingTargetRevisionHash(doc) {
6690
+ const paragraphStyles = doc.styles?.paragraphs ?? {};
6691
+ return hashText(JSON.stringify({
6692
+ numberingCatalogHash: createNumberingCatalogRevisionHash(doc),
6693
+ paragraphStyleNumbering: Object.keys(paragraphStyles).sort().map((styleId) => {
6694
+ const style = paragraphStyles[styleId];
6695
+ return {
6696
+ styleId,
6697
+ basedOn: style.basedOn ?? null,
6698
+ numberingInstanceId: style.numbering?.numberingInstanceId ?? null,
6699
+ level: style.numbering?.level ?? null
6700
+ };
6701
+ })
6702
+ }));
6703
+ }
6559
6704
  function validateEditableTargetRef(value, path = "$") {
6560
6705
  const issues = [];
6561
6706
  const record = asPlainObject(value, path, issues);
@@ -6655,6 +6800,32 @@ function validateEditableTargetRef(value, path = "$") {
6655
6800
  if (staleCheck.sourceRef !== void 0) {
6656
6801
  validateTargetSourceRef(staleCheck.sourceRef, `${path}.staleCheck.sourceRef`, issues);
6657
6802
  }
6803
+ if (staleCheck.listNumberingOrigin !== void 0) {
6804
+ validateEnum(
6805
+ staleCheck.listNumberingOrigin,
6806
+ EDITABLE_TARGET_LIST_NUMBERING_ORIGINS,
6807
+ `${path}.staleCheck.listNumberingOrigin`,
6808
+ issues
6809
+ );
6810
+ }
6811
+ if (staleCheck.listNumberingInstanceId !== void 0) {
6812
+ expectString(staleCheck.listNumberingInstanceId, `${path}.staleCheck.listNumberingInstanceId`, issues);
6813
+ }
6814
+ if (staleCheck.listAbstractNumberingId !== void 0) {
6815
+ expectString(staleCheck.listAbstractNumberingId, `${path}.staleCheck.listAbstractNumberingId`, issues);
6816
+ }
6817
+ if (staleCheck.listLevel !== void 0 && (typeof staleCheck.listLevel !== "number" || !Number.isInteger(staleCheck.listLevel) || staleCheck.listLevel < 0)) {
6818
+ issues.push({
6819
+ path: `${path}.staleCheck.listLevel`,
6820
+ message: "listLevel must be a non-negative integer when present."
6821
+ });
6822
+ }
6823
+ if (staleCheck.listOverrideHash !== void 0) {
6824
+ validateSha256(staleCheck.listOverrideHash, `${path}.staleCheck.listOverrideHash`, issues);
6825
+ }
6826
+ if (staleCheck.numberingCatalogHash !== void 0) {
6827
+ validateSha256(staleCheck.numberingCatalogHash, `${path}.staleCheck.numberingCatalogHash`, issues);
6828
+ }
6658
6829
  }
6659
6830
  const posture = asPlainObject(record.posture, `${path}.posture`, issues);
6660
6831
  if (posture) {
@@ -6872,6 +7043,9 @@ function validateTargetCanonicalAddress(value, path, issues) {
6872
7043
  if (record.sourceJoinHash !== void 0) {
6873
7044
  validateSha256(record.sourceJoinHash, `${path}.sourceJoinHash`, issues);
6874
7045
  }
7046
+ if (record.list !== void 0) {
7047
+ validateTargetListAddressIdentity(record.list, `${path}.list`, issues);
7048
+ }
6875
7049
  if (record.resolver !== void 0) {
6876
7050
  validateTargetCanonicalAddressResolver(record.resolver, `${path}.resolver`, issues);
6877
7051
  }
@@ -6881,6 +7055,22 @@ function validateTargetCanonicalAddress(value, path, issues) {
6881
7055
  }
6882
7056
  }
6883
7057
  }
7058
+ function validateTargetListAddressIdentity(value, path, issues) {
7059
+ const record = asPlainObject(value, path, issues);
7060
+ if (!record) return;
7061
+ validateEnum(record.numberingOrigin, EDITABLE_TARGET_LIST_NUMBERING_ORIGINS, `${path}.numberingOrigin`, issues);
7062
+ expectString(record.numberingInstanceId, `${path}.numberingInstanceId`, issues);
7063
+ if (record.abstractNumberingId !== void 0) {
7064
+ expectString(record.abstractNumberingId, `${path}.abstractNumberingId`, issues);
7065
+ }
7066
+ if (typeof record.level !== "number" || !Number.isInteger(record.level) || record.level < 0) {
7067
+ issues.push({ path: `${path}.level`, message: "level must be a non-negative integer." });
7068
+ }
7069
+ if (record.overrideHash !== void 0) {
7070
+ validateSha256(record.overrideHash, `${path}.overrideHash`, issues);
7071
+ }
7072
+ validateSha256(record.numberingCatalogHash, `${path}.numberingCatalogHash`, issues);
7073
+ }
6884
7074
  function validateTargetCanonicalAddressResolver(value, path, issues) {
6885
7075
  const record = asPlainObject(value, path, issues);
6886
7076
  if (!record) return;
@@ -7018,6 +7208,10 @@ var EDITABLE_TARGET_COMMAND_FAMILIES = /* @__PURE__ */ new Set([
7018
7208
  "preserve-only-refusal"
7019
7209
  ]);
7020
7210
  var EDITABLE_TARGET_EDITABILITY = /* @__PURE__ */ new Set(["editable", "non-editable"]);
7211
+ var EDITABLE_TARGET_LIST_NUMBERING_ORIGINS = /* @__PURE__ */ new Set([
7212
+ "paragraph",
7213
+ "paragraph-style"
7214
+ ]);
7021
7215
  var EDITABLE_TARGET_BLOCKERS = /* @__PURE__ */ new Set([
7022
7216
  "protected-section",
7023
7217
  "protected-range",
@@ -7217,7 +7411,7 @@ function resolveParagraphStyleNumbering(doc, styleId) {
7217
7411
  let currentStyleId = styleId;
7218
7412
  while (currentStyleId !== void 0 && !visited.has(currentStyleId)) {
7219
7413
  visited.add(currentStyleId);
7220
- const style = doc.styles.paragraphs[currentStyleId];
7414
+ const style = doc.styles?.paragraphs?.[currentStyleId];
7221
7415
  if (style === void 0) {
7222
7416
  return void 0;
7223
7417
  }
@@ -9431,6 +9625,10 @@ function createNumberingPrefixResolver(catalog) {
9431
9625
  ])
9432
9626
  ) : resolved.effectiveLevels;
9433
9627
  const picBulletId = resolved.effectiveLevel.picBulletId;
9628
+ const pictureBulletPosture = resolvePictureBulletRenderPosture(
9629
+ picBulletId,
9630
+ picBulletId != null ? catalog.numPicBullets?.[picBulletId] : void 0
9631
+ );
9434
9632
  const text = renderLevelText(
9435
9633
  resolved.effectiveLevel.text,
9436
9634
  workingState.counters,
@@ -9439,14 +9637,20 @@ function createNumberingPrefixResolver(catalog) {
9439
9637
  if (picBulletId == null && resolved.effectiveLevel.format !== "none" && text === null) {
9440
9638
  return null;
9441
9639
  }
9442
- const visibleText = resolved.effectiveLevel.format === "none" ? null : text;
9640
+ const visibleText = resolved.effectiveLevel.format === "none" ? null : text ?? pictureBulletPosture?.fallbackGlyph ?? null;
9641
+ const normalizedMarkerText = normalizeMarkerText(
9642
+ visibleText,
9643
+ resolved.effectiveLevel.format,
9644
+ resolved.geometry.markerRunProperties
9645
+ );
9443
9646
  const formatPosture = getNumberingFormatPosture(
9444
9647
  resolved.effectiveLevel.format,
9445
9648
  currentCounter
9446
9649
  );
9447
- const picBulletMediaId = picBulletId != null ? catalog.numPicBullets?.[picBulletId]?.mediaId : void 0;
9650
+ const picBulletMediaId = pictureBulletPosture?.mediaId;
9448
9651
  return {
9449
- text: visibleText,
9652
+ text: normalizedMarkerText.text,
9653
+ ...normalizedMarkerText.posture !== void 0 ? { markerTextPosture: normalizedMarkerText.posture } : {},
9450
9654
  level: resolved.effectiveLevel.level,
9451
9655
  format: resolved.effectiveLevel.format,
9452
9656
  ...formatPosture !== void 0 ? { formatPosture } : {},
@@ -9456,7 +9660,9 @@ function createNumberingPrefixResolver(catalog) {
9456
9660
  ...resolved.effectiveLevel.isLegalNumbering ? { isLegalNumbering: true } : {},
9457
9661
  ...resolved.geometry.markerRunProperties ? { markerRunProperties: resolved.geometry.markerRunProperties } : {},
9458
9662
  geometry: resolved.geometry,
9459
- ...picBulletMediaId != null ? { picBulletMediaId } : {}
9663
+ ...picBulletId != null ? { picBulletId } : {},
9664
+ ...picBulletMediaId != null ? { picBulletMediaId } : {},
9665
+ ...pictureBulletPosture !== void 0 ? { pictureBulletPosture } : {}
9460
9666
  };
9461
9667
  }
9462
9668
  return {
@@ -9472,6 +9678,69 @@ function createNumberingPrefixResolver(catalog) {
9472
9678
  }
9473
9679
  };
9474
9680
  }
9681
+ function normalizeMarkerText(text, format, markerRunProperties) {
9682
+ if (text === null || format !== "bullet") {
9683
+ return { text };
9684
+ }
9685
+ const fontFamily = getMarkerFontFamily(markerRunProperties);
9686
+ if (!isKnownSymbolBulletFont(fontFamily)) {
9687
+ return { text };
9688
+ }
9689
+ const renderedText = Array.from(text, (char) => SYMBOL_BULLET_GLYPH_MAP.get(char) ?? char).join("");
9690
+ if (renderedText === text) {
9691
+ return { text };
9692
+ }
9693
+ return {
9694
+ text: renderedText,
9695
+ posture: {
9696
+ status: "normalized",
9697
+ sourceText: text,
9698
+ renderedText,
9699
+ reason: "symbol-font-bullet-normalized",
9700
+ ...fontFamily ? { fontFamily } : {}
9701
+ }
9702
+ };
9703
+ }
9704
+ function getMarkerFontFamily(markerRunProperties) {
9705
+ return markerRunProperties?.fontFamilyAscii ?? markerRunProperties?.fontFamilyHAnsi ?? markerRunProperties?.fontFamilyEastAsia ?? markerRunProperties?.fontFamilyCs ?? markerRunProperties?.fontFamily;
9706
+ }
9707
+ function isKnownSymbolBulletFont(fontFamily) {
9708
+ return fontFamily !== void 0 && /^(?:symbol|wingdings|wingdings 2|wingdings 3|webdings)$/iu.test(
9709
+ fontFamily.trim()
9710
+ );
9711
+ }
9712
+ var SYMBOL_BULLET_GLYPH_MAP = /* @__PURE__ */ new Map([
9713
+ ["\uF0B7", "\u2022"],
9714
+ ["\uF0A7", "\u25AA"],
9715
+ ["\uF0FC", "\u2713"]
9716
+ ]);
9717
+ function resolvePictureBulletRenderPosture(picBulletId, picBullet) {
9718
+ if (picBulletId == null) return void 0;
9719
+ if (!picBullet) {
9720
+ return {
9721
+ status: "preserve-only",
9722
+ picBulletId,
9723
+ fallbackGlyph: "\u2022",
9724
+ reason: "picture-bullet-catalog-entry-missing"
9725
+ };
9726
+ }
9727
+ if (picBullet.mediaId) {
9728
+ return {
9729
+ status: "media-rendered",
9730
+ picBulletId,
9731
+ mediaId: picBullet.mediaId,
9732
+ ...picBullet.sourceRef ? { sourceRef: picBullet.sourceRef } : {},
9733
+ reason: "picture-bullet-media-rendered"
9734
+ };
9735
+ }
9736
+ return {
9737
+ status: "glyph-fallback",
9738
+ picBulletId,
9739
+ fallbackGlyph: "\u2022",
9740
+ ...picBullet.sourceRef ? { sourceRef: picBullet.sourceRef } : {},
9741
+ reason: "picture-bullet-media-unavailable"
9742
+ };
9743
+ }
9475
9744
  function getSequenceState(states, numberingInstanceId, options = { create: true }) {
9476
9745
  const existing = states.get(numberingInstanceId);
9477
9746
  if (existing) {
@@ -9534,7 +9803,7 @@ function getNumberingFormatPosture(format, value) {
9534
9803
  reason: registryEntry?.fallbackReason ?? "unsupported-numbering-format-decimal-fallback"
9535
9804
  };
9536
9805
  }
9537
- 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)) {
9806
+ 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)) {
9538
9807
  return {
9539
9808
  status: "approximated",
9540
9809
  requestedFormat: format,
@@ -9628,6 +9897,37 @@ var exactNumberingFormatEntries = [
9628
9897
  supportsMutation: true,
9629
9898
  render: toOrdinal2
9630
9899
  },
9900
+ {
9901
+ format: "decimalFullWidth",
9902
+ renderSupport: "supported",
9903
+ renderedFormat: "decimalFullWidth",
9904
+ supportsMutation: false,
9905
+ render: toFullWidthDecimal
9906
+ },
9907
+ {
9908
+ format: "decimalEnclosedCircle",
9909
+ renderSupport: "supported",
9910
+ renderedFormat: "decimalEnclosedCircle",
9911
+ supportsMutation: false,
9912
+ render: toCircledDecimal,
9913
+ isInRange: (value) => Number.isInteger(value) && value >= 0 && value <= 50
9914
+ },
9915
+ {
9916
+ format: "decimalEnclosedParen",
9917
+ renderSupport: "supported",
9918
+ renderedFormat: "decimalEnclosedParen",
9919
+ supportsMutation: false,
9920
+ render: (value) => Number.isInteger(value) && value > 0 ? `(${value})` : String(value),
9921
+ isInRange: (value) => Number.isInteger(value) && value > 0
9922
+ },
9923
+ {
9924
+ format: "decimalEnclosedFullstop",
9925
+ renderSupport: "supported",
9926
+ renderedFormat: "decimalEnclosedFullstop",
9927
+ supportsMutation: false,
9928
+ render: (value) => Number.isInteger(value) && value > 0 ? `${value}.` : String(value),
9929
+ isInRange: (value) => Number.isInteger(value) && value > 0
9930
+ },
9631
9931
  {
9632
9932
  format: "cardinalText",
9633
9933
  renderSupport: "supported",
@@ -9665,10 +9965,6 @@ var exactNumberingFormatEntries = [
9665
9965
  }
9666
9966
  ];
9667
9967
  var approximatedDecimalFormats = [
9668
- "decimalEnclosedCircle",
9669
- "decimalEnclosedFullstop",
9670
- "decimalEnclosedParen",
9671
- "decimalFullWidth",
9672
9968
  "decimalHalfWidth",
9673
9969
  "aiueo",
9674
9970
  "iroha",
@@ -9720,6 +10016,30 @@ function toOrdinal2(value) {
9720
10016
  return `${value}th`;
9721
10017
  }
9722
10018
  }
10019
+ function toFullWidthDecimal(value) {
10020
+ return String(value).replace(
10021
+ /[0-9]/g,
10022
+ (digit) => String.fromCharCode(65296 + Number.parseInt(digit, 10))
10023
+ );
10024
+ }
10025
+ var CIRCLED_DECIMAL_BY_VALUE = new Map([
10026
+ [0, "\u24EA"],
10027
+ ...Array.from({ length: 20 }, (_, index) => [
10028
+ index + 1,
10029
+ String.fromCodePoint(9312 + index)
10030
+ ]),
10031
+ ...Array.from({ length: 15 }, (_, index) => [
10032
+ index + 21,
10033
+ String.fromCodePoint(12881 + index)
10034
+ ]),
10035
+ ...Array.from({ length: 15 }, (_, index) => [
10036
+ index + 36,
10037
+ String.fromCodePoint(12977 + index)
10038
+ ])
10039
+ ]);
10040
+ function toCircledDecimal(value) {
10041
+ return CIRCLED_DECIMAL_BY_VALUE.get(value) ?? String(value);
10042
+ }
9723
10043
  function toAlphabetic2(value) {
9724
10044
  if (value <= 0) {
9725
10045
  return String(value);
@@ -10493,6 +10813,7 @@ function toNumberingLayoutInput(numbering) {
10493
10813
  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);
10494
10814
  return {
10495
10815
  markerText: numbering.text,
10816
+ ...numbering.markerTextPosture ? { markerTextPosture: { ...numbering.markerTextPosture } } : {},
10496
10817
  ...numbering.markerRunProperties ? { markerRunFormatting: numbering.markerRunProperties } : {},
10497
10818
  markerSuffix: normalizeNumberingMarkerSuffix(numbering.suffix),
10498
10819
  ...markerLane ? { markerLaneStartTwips: markerLane.start } : {},
@@ -10505,7 +10826,9 @@ function toNumberingLayoutInput(numbering) {
10505
10826
  ...numbering.formatPosture !== void 0 ? { formatPosture: { ...numbering.formatPosture } } : {},
10506
10827
  startAt: numbering.startAt,
10507
10828
  ...numbering.isLegalNumbering ? { isLegalNumbering: true } : {},
10508
- ...numbering.picBulletMediaId ? { pictureBulletMediaId: numbering.picBulletMediaId } : {}
10829
+ ...numbering.picBulletId ? { pictureBulletId: numbering.picBulletId } : {},
10830
+ ...numbering.picBulletMediaId ? { pictureBulletMediaId: numbering.picBulletMediaId } : {},
10831
+ ...numbering.pictureBulletPosture ? { pictureBulletPosture: { ...numbering.pictureBulletPosture } } : {}
10509
10832
  };
10510
10833
  }
10511
10834
  function toFieldLayoutInput(entry, resolved, region) {
@@ -11017,6 +11340,7 @@ function buildEffectiveNumbering(detail) {
11017
11340
  const result = {
11018
11341
  level: detail.level,
11019
11342
  ...detail.text !== null ? { marker: detail.text } : {},
11343
+ ...detail.markerTextPosture ? { markerTextPosture: { ...detail.markerTextPosture } } : {},
11020
11344
  ...detail.markerRunProperties ? { markerRunFormatting: detail.markerRunProperties } : {},
11021
11345
  ...detail.geometry ? {
11022
11346
  indentation: {
@@ -11026,7 +11350,8 @@ function buildEffectiveNumbering(detail) {
11026
11350
  ...detail.geometry.tabStops && detail.geometry.tabStops.length > 0 ? { tab: detail.geometry.tabStops[0].position } : {}
11027
11351
  }
11028
11352
  } : {},
11029
- ...detail.picBulletMediaId ? { pictureBulletRef: detail.picBulletMediaId } : {}
11353
+ ...detail.picBulletMediaId ? { pictureBulletRef: detail.picBulletMediaId } : {},
11354
+ ...detail.pictureBulletPosture ? { pictureBulletPosture: { ...detail.pictureBulletPosture } } : {}
11030
11355
  };
11031
11356
  return result;
11032
11357
  }
@@ -13024,6 +13349,7 @@ function toSurfaceResolvedNumbering(numbering) {
13024
13349
  format: numbering.format,
13025
13350
  ...numbering.formatPosture !== void 0 ? { formatPosture: { ...numbering.formatPosture } } : {},
13026
13351
  ...numbering.text !== null ? { text: numbering.text } : {},
13352
+ ...numbering.markerTextPosture !== void 0 ? { markerTextPosture: { ...numbering.markerTextPosture } } : {},
13027
13353
  startAt: numbering.startAt,
13028
13354
  ...numbering.paragraphStyleId ? { paragraphStyleId: numbering.paragraphStyleId } : {},
13029
13355
  ...numbering.isLegalNumbering ? { isLegalNumbering: true } : {},
@@ -13036,7 +13362,9 @@ function toSurfaceResolvedNumbering(numbering) {
13036
13362
  ...numbering.geometry.markerLane ? { markerLane: { ...numbering.geometry.markerLane } } : {},
13037
13363
  ...numbering.geometry.textColumn ? { textColumn: { ...numbering.geometry.textColumn } } : {}
13038
13364
  },
13039
- ...numbering.picBulletMediaId ? { picBulletMediaId: numbering.picBulletMediaId } : {}
13365
+ ...numbering.picBulletId ? { picBulletId: numbering.picBulletId } : {},
13366
+ ...numbering.picBulletMediaId ? { picBulletMediaId: numbering.picBulletMediaId } : {},
13367
+ ...numbering.pictureBulletPosture ? { pictureBulletPosture: { ...numbering.pictureBulletPosture } } : {}
13040
13368
  };
13041
13369
  }
13042
13370
  function describePreservedInlinePreview(payloadReference) {
@@ -45010,6 +45338,11 @@ function freezeNumberingLayoutFacts(numbering) {
45010
45338
  if (numbering.numberingSourceRef) Object.freeze(numbering.numberingSourceRef);
45011
45339
  if (numbering.numberingInstanceSourceRef) Object.freeze(numbering.numberingInstanceSourceRef);
45012
45340
  if (numbering.abstractNumberingSourceRef) Object.freeze(numbering.abstractNumberingSourceRef);
45341
+ if (numbering.markerTextPosture) Object.freeze(numbering.markerTextPosture);
45342
+ if (numbering.pictureBulletPosture) {
45343
+ if (numbering.pictureBulletPosture.sourceRef) Object.freeze(numbering.pictureBulletPosture.sourceRef);
45344
+ Object.freeze(numbering.pictureBulletPosture);
45345
+ }
45013
45346
  if (numbering.markerLane) Object.freeze(numbering.markerLane);
45014
45347
  if (numbering.textColumn) Object.freeze(numbering.textColumn);
45015
45348
  if (numbering.tabStops) {
@@ -45985,8 +46318,17 @@ function collectNumberingLayoutFacts(block) {
45985
46318
  ...block.resolvedNumbering?.format !== void 0 ? { format: block.resolvedNumbering.format } : {},
45986
46319
  ...block.resolvedNumbering?.formatPosture !== void 0 ? { formatPosture: { ...block.resolvedNumbering.formatPosture } } : {},
45987
46320
  ...block.numberingPrefix !== void 0 ? { markerText: block.numberingPrefix } : {},
46321
+ ...block.resolvedNumbering?.markerTextPosture !== void 0 ? { markerTextPosture: { ...block.resolvedNumbering.markerTextPosture } } : {},
45988
46322
  ...block.numberingSuffix !== void 0 ? { markerSuffix: block.numberingSuffix } : {},
45989
46323
  ...block.resolvedNumbering?.geometry.markerJustification !== void 0 ? { markerJustification: block.resolvedNumbering.geometry.markerJustification } : {},
46324
+ ...block.resolvedNumbering?.picBulletId !== void 0 ? { picBulletId: block.resolvedNumbering.picBulletId } : {},
46325
+ ...block.resolvedNumbering?.picBulletMediaId !== void 0 ? { picBulletMediaId: block.resolvedNumbering.picBulletMediaId } : {},
46326
+ ...block.resolvedNumbering?.pictureBulletPosture !== void 0 ? {
46327
+ pictureBulletPosture: {
46328
+ ...block.resolvedNumbering.pictureBulletPosture,
46329
+ ...block.resolvedNumbering.pictureBulletPosture.sourceRef !== void 0 ? { sourceRef: { ...block.resolvedNumbering.pictureBulletPosture.sourceRef } } : {}
46330
+ }
46331
+ } : {},
45990
46332
  ...markerLane ? {
45991
46333
  markerLane: {
45992
46334
  startTwips: markerLane.start,
@@ -51540,6 +51882,13 @@ function cloneNumberingLayoutFacts(numbering) {
51540
51882
  ...numbering.numberingSourceRef !== void 0 ? { numberingSourceRef: { ...numbering.numberingSourceRef } } : {},
51541
51883
  ...numbering.numberingInstanceSourceRef !== void 0 ? { numberingInstanceSourceRef: { ...numbering.numberingInstanceSourceRef } } : {},
51542
51884
  ...numbering.abstractNumberingSourceRef !== void 0 ? { abstractNumberingSourceRef: { ...numbering.abstractNumberingSourceRef } } : {},
51885
+ ...numbering.markerTextPosture !== void 0 ? { markerTextPosture: { ...numbering.markerTextPosture } } : {},
51886
+ ...numbering.pictureBulletPosture !== void 0 ? {
51887
+ pictureBulletPosture: {
51888
+ ...numbering.pictureBulletPosture,
51889
+ ...numbering.pictureBulletPosture.sourceRef !== void 0 ? { sourceRef: { ...numbering.pictureBulletPosture.sourceRef } } : {}
51890
+ }
51891
+ } : {},
51543
51892
  ...numbering.markerLane !== void 0 ? { markerLane: { ...numbering.markerLane } } : {},
51544
51893
  ...numbering.textColumn !== void 0 ? { textColumn: { ...numbering.textColumn } } : {},
51545
51894
  ...numbering.tabStops !== void 0 ? { tabStops: numbering.tabStops.map((tab) => ({ ...tab })) } : {}
@@ -1,5 +1,5 @@
1
- export { gz as ActiveStoryTextCommand, gA as CommandAppliedMeta, gB as CreateDocumentRuntimeOptions, gC as DocumentRuntime, gD as DocumentRuntimeEvent, gE as RemoteCommandEnvelope, gF as Unsubscribe, gG as __buildTocInlineNodes, gH as __collectFontLoaderInputUncached, gI as __fontFamiliesEqual, gJ as createDocumentRuntime, gK as getThemeColorResolver } from '../public-types-gvubspUI.cjs';
2
- import '../canonical-document-BMtONpgf.cjs';
1
+ export { gz as ActiveStoryTextCommand, gA as CommandAppliedMeta, gB as CreateDocumentRuntimeOptions, gC as DocumentRuntime, gD as DocumentRuntimeEvent, gE as RemoteCommandEnvelope, gF as Unsubscribe, gG as __buildTocInlineNodes, gH as __collectFontLoaderInputUncached, gI as __fontFamiliesEqual, gJ as createDocumentRuntime, gK as getThemeColorResolver } from '../public-types-KBS6JnOs.cjs';
2
+ import '../canonical-document-CfZIc-fC.cjs';
3
3
  import 'react';
4
4
  import 'yjs';
5
5
  import 'y-protocols/awareness';
@@ -1,5 +1,5 @@
1
- export { gz as ActiveStoryTextCommand, gA as CommandAppliedMeta, gB as CreateDocumentRuntimeOptions, gC as DocumentRuntime, gD as DocumentRuntimeEvent, gE as RemoteCommandEnvelope, gF as Unsubscribe, gG as __buildTocInlineNodes, gH as __collectFontLoaderInputUncached, gI as __fontFamiliesEqual, gJ as createDocumentRuntime, gK as getThemeColorResolver } from '../public-types-DyqnxxO9.js';
2
- import '../canonical-document-BMtONpgf.js';
1
+ export { gz as ActiveStoryTextCommand, gA as CommandAppliedMeta, gB as CreateDocumentRuntimeOptions, gC as DocumentRuntime, gD as DocumentRuntimeEvent, gE as RemoteCommandEnvelope, gF as Unsubscribe, gG as __buildTocInlineNodes, gH as __collectFontLoaderInputUncached, gI as __fontFamiliesEqual, gJ as createDocumentRuntime, gK as getThemeColorResolver } from '../public-types-Cjs8glST.js';
2
+ import '../canonical-document-CfZIc-fC.js';
3
3
  import 'react';
4
4
  import 'yjs';
5
5
  import 'y-protocols/awareness';