@docx-editor.dev/core 2.10.0 → 2.12.0

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 (136) hide show
  1. package/dist/automation.cjs +1 -1
  2. package/dist/automation.d.cts +14 -5
  3. package/dist/automation.d.ts +14 -5
  4. package/dist/automation.js +1 -1
  5. package/dist/binding.cjs +1 -1
  6. package/dist/binding.d.cts +12 -11
  7. package/dist/binding.d.ts +12 -11
  8. package/dist/binding.js +1 -1
  9. package/dist/chunk-3JON7JMD.cjs +1 -0
  10. package/dist/chunk-5V6FNKBE.cjs +2 -0
  11. package/dist/chunk-6JIJOZDW.js +1 -0
  12. package/dist/chunk-BTQKU64Q.cjs +1 -0
  13. package/dist/chunk-BXRVGHTY.cjs +18 -0
  14. package/dist/chunk-BXTTPJSH.js +5 -0
  15. package/dist/chunk-D5EHDHYV.js +1 -0
  16. package/dist/{chunk-PSZH2VXP.js → chunk-GOEBQ26R.js} +1 -1
  17. package/dist/chunk-ILTZTY3K.cjs +10 -0
  18. package/dist/chunk-IUM7FZPA.js +2 -0
  19. package/dist/chunk-JWZG4QJ5.cjs +2 -0
  20. package/dist/chunk-JXZYDBKU.cjs +19 -0
  21. package/dist/chunk-KBOOIC2Q.js +19 -0
  22. package/dist/chunk-L6XZTLPS.js +10 -0
  23. package/dist/chunk-L7OR5TJK.cjs +5 -0
  24. package/dist/chunk-MHQNR2OU.js +2 -0
  25. package/dist/chunk-MLGPISGH.js +1 -0
  26. package/dist/chunk-NJXQABQU.js +18 -0
  27. package/dist/{chunk-YMYCPY5Y.cjs → chunk-OHJQ7GPZ.cjs} +1 -1
  28. package/dist/chunk-TKEGK4GQ.cjs +2 -0
  29. package/dist/chunk-VGFMPWND.js +2 -0
  30. package/dist/chunk-W77HJGYX.js +1 -0
  31. package/dist/chunk-XCFM3G5L.cjs +1 -0
  32. package/dist/chunk-ZKWRCLT2.cjs +1 -0
  33. package/dist/collaboration/replication.cjs +1 -0
  34. package/dist/collaboration/replication.d.cts +216 -0
  35. package/dist/collaboration/replication.d.ts +216 -0
  36. package/dist/collaboration/replication.js +1 -0
  37. package/dist/collaboration.cjs +1 -0
  38. package/dist/collaboration.d.cts +176 -0
  39. package/dist/collaboration.d.ts +176 -0
  40. package/dist/collaboration.js +1 -0
  41. package/dist/contracts/editor.cjs +1 -1
  42. package/dist/contracts/editor.d.cts +8 -9
  43. package/dist/contracts/editor.d.ts +8 -9
  44. package/dist/contracts/editor.js +1 -1
  45. package/dist/contracts/interaction.d.cts +8 -9
  46. package/dist/contracts/interaction.d.ts +8 -9
  47. package/dist/contracts/modules.cjs +1 -1
  48. package/dist/contracts/modules.d.cts +21 -8
  49. package/dist/contracts/modules.d.ts +21 -8
  50. package/dist/contracts/modules.js +1 -1
  51. package/dist/custom-node-writes-CcNeHH5C.d.ts +310 -0
  52. package/dist/custom-node-writes-D4rMJIES.d.cts +310 -0
  53. package/dist/document-properties-D6Ahr8D6.d.cts +28 -0
  54. package/dist/document-properties-D6Ahr8D6.d.ts +28 -0
  55. package/dist/{editor-CwzY2Hcg.d.cts → editor-B76SEMZw.d.cts} +145 -49
  56. package/dist/{editor-C0my6Uta.d.ts → editor-BcdsPdbY.d.ts} +145 -49
  57. package/dist/editor.cjs +1 -1
  58. package/dist/editor.css +1 -7299
  59. package/dist/editor.d.cts +60 -26
  60. package/dist/editor.d.ts +60 -26
  61. package/dist/editor.js +1 -1
  62. package/dist/failure-BnGjoXf0.d.cts +64 -0
  63. package/dist/failure-BnGjoXf0.d.ts +64 -0
  64. package/dist/{index-kID8Ymkp.d.ts → index-BYTvklN5.d.ts} +262 -81
  65. package/dist/{index-nLFwo_17.d.cts → index-CDGhPib1.d.cts} +262 -81
  66. package/dist/index.cjs +1 -1
  67. package/dist/index.d.cts +19 -18
  68. package/dist/index.d.ts +19 -18
  69. package/dist/index.js +1 -1
  70. package/dist/layout.cjs +1 -1
  71. package/dist/layout.d.cts +82 -53
  72. package/dist/layout.d.ts +82 -53
  73. package/dist/layout.js +1 -1
  74. package/dist/{note-properties-jvnw_DGG.d.ts → note-properties-Bx7rXruA.d.ts} +1 -1
  75. package/dist/{note-properties-CQlxjic_.d.cts → note-properties-zQ8w04en.d.cts} +1 -1
  76. package/dist/{omml-equation-Dd3mBep-.d.ts → omml-equation-69O1Pd8G.d.ts} +1 -1
  77. package/dist/{omml-equation-BD-LsmWE.d.cts → omml-equation-BmV51rim.d.cts} +1 -1
  78. package/dist/output.cjs +1 -1
  79. package/dist/output.d.cts +6 -8
  80. package/dist/output.d.ts +6 -8
  81. package/dist/output.js +1 -1
  82. package/dist/{protocol-C7ahrdUx.d.ts → protocol-DC7ueVuo.d.ts} +2 -2
  83. package/dist/{protocol-UuZOcOp7.d.cts → protocol-FTXtrAIT.d.cts} +2 -2
  84. package/dist/{review-items-Dw-8a6Ie.d.ts → review-items-B78OsJU2.d.ts} +1 -2
  85. package/dist/{review-items-CwixiHNe.d.cts → review-items-C-2WQdEb.d.cts} +1 -2
  86. package/dist/{review-reads-BqkiJTeR.d.cts → review-reads-CbBQlb-n.d.cts} +2 -2
  87. package/dist/{review-reads-C0u-IKEA.d.ts → review-reads-UexYBp-m.d.ts} +2 -2
  88. package/dist/{revision-projection-Cc4wz30g.d.cts → revision-projection-6u8lae9J.d.cts} +1 -1
  89. package/dist/{revision-projection-CILpvv4M.d.ts → revision-projection-B2v9U3qx.d.ts} +1 -1
  90. package/dist/{semantic-cell-selection-Utrf0lz7.d.ts → semantic-cell-selection-DsYz2Vg3.d.ts} +4 -4
  91. package/dist/{semantic-cell-selection-DT9x9WLf.d.cts → semantic-cell-selection-nEE7E3Z8.d.cts} +4 -4
  92. package/dist/{semantic-interaction-B6hFRQLy.d.ts → semantic-interaction-C00BpIyC.d.ts} +1 -1
  93. package/dist/{semantic-interaction-Z0xKQcB4.d.cts → semantic-interaction-DiOX0FIH.d.cts} +1 -1
  94. package/dist/{semantic-paint-CQEOC0Od.d.cts → semantic-paint-Cc11nrDL.d.cts} +2 -2
  95. package/dist/{semantic-paint-quke354p.d.ts → semantic-paint-ofuoBsYo.d.ts} +2 -2
  96. package/dist/{semantic-records-Do3-i5oB.d.ts → semantic-records-CRG1r6-a.d.cts} +5 -4
  97. package/dist/{semantic-records-CMakzQ1X.d.cts → semantic-records-CzI0ZEuR.d.ts} +5 -4
  98. package/dist/{shaped-measurer-BxwTUluj.d.ts → shaped-measurer-CkOGZQn9.d.ts} +1 -1
  99. package/dist/{shaped-measurer-DzRwWrL5.d.cts → shaped-measurer-CneACGcP.d.cts} +1 -1
  100. package/dist/store.cjs +1 -1
  101. package/dist/store.d.cts +81 -17
  102. package/dist/store.d.ts +81 -17
  103. package/dist/store.js +1 -1
  104. package/dist/{tree-op-types-DSJYmf5b.d.cts → tree-op-types-CA7qgAUF.d.cts} +1288 -18
  105. package/dist/{tree-op-types-BuOfCrkp.d.ts → tree-op-types-HKfUzt_-.d.ts} +1288 -18
  106. package/dist/{custom-node-writes-BvpWCnW8.d.ts → tree-package-fragment-Cz-v-0B3.d.cts} +107 -322
  107. package/dist/{custom-node-writes-Db8H6Z3n.d.cts → tree-package-fragment-oJZX_5iN.d.ts} +107 -322
  108. package/dist/{tree-session-contract-ByWx8eew.d.cts → tree-session-contract-BPDLrEPX.d.ts} +16 -10
  109. package/dist/{tree-session-contract-C1dfE9hy.d.ts → tree-session-contract-Cbl87xa8.d.cts} +16 -10
  110. package/dist/{tree-store-ASBtz7UB.d.ts → tree-store-B7hd6cEa.d.ts} +130 -25
  111. package/dist/{tree-store-CWOUMGN8.d.cts → tree-store-BenW0Mg_.d.cts} +130 -25
  112. package/package.json +14 -3
  113. package/dist/chunk-27APDXY2.js +0 -2
  114. package/dist/chunk-35MI6K7M.cjs +0 -10
  115. package/dist/chunk-4XL7SOWQ.cjs +0 -2
  116. package/dist/chunk-6K6QQVAZ.cjs +0 -18
  117. package/dist/chunk-7VQ7YLW3.cjs +0 -1
  118. package/dist/chunk-7ZJL5AEY.cjs +0 -1
  119. package/dist/chunk-C6LK2BYA.cjs +0 -2
  120. package/dist/chunk-GQQOL4PV.js +0 -1
  121. package/dist/chunk-HBEBUCRM.cjs +0 -5
  122. package/dist/chunk-LG5K46OM.js +0 -2
  123. package/dist/chunk-LWADHMVV.js +0 -5
  124. package/dist/chunk-N725IUO7.js +0 -18
  125. package/dist/chunk-N7DBENH4.js +0 -10
  126. package/dist/chunk-NVGFWMCO.js +0 -1
  127. package/dist/chunk-SYTWKJPJ.cjs +0 -18
  128. package/dist/chunk-YI6JXF7U.js +0 -18
  129. package/dist/hf-references-Dvk6De4Q.d.cts +0 -70
  130. package/dist/hf-references-z5Y4N1ab.d.ts +0 -70
  131. package/dist/note-nodes-BNCANoGN.d.ts +0 -108
  132. package/dist/note-nodes-DL-Au22P.d.cts +0 -108
  133. package/dist/ooxml-package-CdEy9ufK.d.cts +0 -1222
  134. package/dist/ooxml-package-CdEy9ufK.d.ts +0 -1222
  135. package/dist/tree-op-revision-attribution-CN06Xshv.d.cts +0 -24
  136. package/dist/tree-op-revision-attribution-CN06Xshv.d.ts +0 -24
package/dist/editor.d.cts CHANGED
@@ -1,33 +1,34 @@
1
- import { l as TreeDocColorValue, d as DrawingPositionInput } from './tree-op-types-DSJYmf5b.cjs';
2
- export { m as DEFAULT_IMAGE_RESOURCE_LIMITS, n as IMAGE_WRAP_TARGETS, j as ImageDecodePort, o as ImageResourceLimits, b as ImageWrapTarget, R as RenderableImageMime, c as SupportedImageMime, i as VectorImageMime, r as resolveImageResourceLimits, p as resolveSvgIntrinsicSize, s as sniffImageMime, v as validateRasterHeader } from './tree-op-types-DSJYmf5b.cjs';
1
+ import { O as OoxmlPart, N as TreeDocColorValue, v as DrawingPositionInput } from './tree-op-types-CA7qgAUF.cjs';
2
+ export { Q as DEFAULT_IMAGE_RESOURCE_LIMITS, U as IMAGE_WRAP_TARGETS, C as ImageDecodePort, W as ImageResourceLimits, u as ImageWrapTarget, t as RenderableImageMime, y as SupportedImageMime, B as VectorImageMime, X as resolveImageResourceLimits, Y as resolveSvgIntrinsicSize, Z as sniffImageMime, _ as validateRasterHeader } from './tree-op-types-CA7qgAUF.cjs';
3
3
  import { ColorValue } from './contracts/types.cjs';
4
4
  export { ParagraphFlags, ParagraphTabStop } from './contracts/types.cjs';
5
- export { R as ReviewModelInput } from './review-items-CwixiHNe.cjs';
5
+ export { R as ReviewModelInput } from './review-items-C-2WQdEb.cjs';
6
6
  export { CollectReviewItems, EditorModule, EditorModuleRegistry, ReviewModuleContribution, resolveEditorModules } from './contracts/modules.cjs';
7
- import { T as TreeDocxSessionView, e as DocumentThemeColorEntry } from './tree-session-contract-ByWx8eew.cjs';
8
- export { a as TreeApplyResult } from './tree-session-contract-ByWx8eew.cjs';
9
- import { F as FontConfiguration, E as EditorFontError, a as EditorSnapshot, b as EditorCommand, C as CanResult, Z as ZoomMode } from './editor-CwzY2Hcg.cjs';
10
- export { I as ImageContext, c as ImageCropPercent, d as ImageCropPermille, S as SelectedImageState, e as cropPercentFromCropPermille, f as cropPercentFromPermille, g as cropPercentFromSourceCrop, h as cropPermilleFromCropPercent, i as cropPermilleFromPercent, s as sourceCropFromCropPercent, v as validateImageCropPercent } from './editor-CwzY2Hcg.cjs';
11
- import { L as LayoutShapingOptions } from './shaped-measurer-DzRwWrL5.cjs';
12
- import { P as PaginatedSurfaceOptions, O as OpenPaginatedResult, a as PaginatedSurface, T as TableCommandPlan, D as DocxEditorInstance } from './index-nLFwo_17.cjs';
13
- export { A as AnchorFrameOrigin, C as CHROME_GROUPS, b as CHROME_MENUS, c as CHROME_UNAVAILABLE_KEY, d as ChromeControl, e as ChromeControlId, f as ChromeControlState, g as ChromeGroup, h as ChromeGroupId, i as ChromeMenu, j as ChromeMenuEntry, k as ChromeMenuId, l as ChromeMenuItemEntry, m as ChromeMenuSeparatorEntry, n as ChromeMenuSubmenuEntry, o as ChromeSlotId, p as DEFAULT_TABLE_CHROME_DRAFT, q as DocxEditorConfig, r as DrawingSelectionIntent, E as EMU_PER_POINT, s as EquationActivation, t as EquationChromeHandlers, u as EquationOps, F as FinalizedImageOverlayInteraction, v as FontConfigurationBase, w as FontConfigurationFragment, x as FontLoadFailure, y as FontLoadFailureReason, z as FontMeasurementState, B as FontResolutionRequest, G as FontResolver, H as FontUrlSource, I as HyperlinkActivation, J as HyperlinkChromeHandlers, K as HyperlinkOps, L as IMAGE_OVERLAY_NUDGE_PT, M as IMAGE_OVERLAY_NUDGE_SHIFT_PT, N as ImageInteractionSession, Q as ImageOverlayScrollPort, R as ImageResizeHandle, S as ImageResizeResult, U as LoadFontsRequest, V as LoadFontsResult, W as MAX_RESOLVER_FAMILIES, X as OverlayFrameRect, Y as PaginatedSurfaceState, Z as ParagraphPropertyEdit, _ as RunTableChromeCommandResult, $ as SectionAnchor, a0 as SectionBreakInsertType, a1 as SelectedDrawingOverlayTarget, a2 as SurfaceEquation, a3 as SurfaceFormatting, a4 as SurfaceHyperlink, a5 as SurfaceNavigation, a6 as SurfaceOverlayCoordinates, a7 as SurfaceParagraphFormat, a8 as TABLE_BORDER_STYLE_OPTIONS, a9 as TABLE_BORDER_TARGET_OPTIONS, aa as TABLE_BORDER_WIDTH_OPTIONS, ab as TABLE_CHROME_SLOT_IDS, ac as TableBorderStyleOption, ad as TableBorderTargetOption, ae as TableBorderTargetValue, af as TableBorderWidthOption, ag as TableChromeDraft, ah as TableChromePick, ai as TableChromeSlotId, aj as TableInteractionLabelKey, ak as ToolbarCommandState, al as WORD_DEFAULT_FONT, am as applyTableChromePick, an as blankDocumentBytes, ao as canExecuteImageCommand, ap as captureImageMutationPreconditions, aq as chromeControlCount, ar as chromeMenuSlots, as as chromeProbeForSlot, at as chromeSlotId, au as commandForSlot, av as commandForSlotValue, aw as commandForTableChromeSlotValue, ax as composeFontConfiguration, ay as computeImageResizeResult, az as computeMovedImagePosition, aA as computeResizedImageExtentEmu, aB as createDocxEditor, aC as createFontSource, aD as createImageOverlayScrollPort, aE as cssPixelsToLayoutPoints, aF as defaultChromeGroups, aG as defaultTableLabel, aH as emuToOverlayPoints, aI as equationAtPosition, aJ as executeImageCommand, aK as finalizeImageOverlayInteraction, aL as formattingBarChromeGroups, aM as isStaleImageInteractionCommit, aN as isTableChromeSlot, aO as layoutPointsToCssPixels, aP as loadFonts, aQ as overlayFrameToSheetCssPixels, aR as overlayHostOrigin, aS as pointsToEmu, aT as probeTableChromeCommand, aU as resizePreservesAspect, aV as runSave, aW as runTableChromeCommand, aX as runTableCommand, aY as runToolbarCommand, aZ as selectedDrawingOverlayTargetOf, a_ as selectedImageStateOf, a$ as surfacePaintScale, b0 as tableChromeIconPaths, b1 as tableChromeLabelKeyForTarget, b2 as tableChromeToolbarState, b3 as tableChromeVisible, b4 as tableCommandToolbarState, b5 as toolbarCommandState, b6 as toolbarCommandStates } from './index-nLFwo_17.cjs';
14
- import { O as OoxmlPart } from './ooxml-package-CdEy9ufK.cjs';
15
- import { A as AutomationCapabilities, a as AutomationHost } from './protocol-UuZOcOp7.cjs';
16
- import { S as SemanticLayout } from './semantic-records-CMakzQ1X.cjs';
17
- export { T as TextMeasurer } from './semantic-records-CMakzQ1X.cjs';
18
- export { S as SectionProperties } from './semantic-cell-selection-DT9x9WLf.cjs';
19
- export { N as NavigationCommand, S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-Z0xKQcB4.cjs';
20
- export { F as FieldShadingMode, R as ReviewAuthorInfo, a as RevisionAuthorAssignments, b as RevisionAuthorStyle, c as RevisionStyles } from './semantic-paint-CQEOC0Od.cjs';
21
- import './tree-op-revision-attribution-CN06Xshv.cjs';
22
- import './revision-projection-Cc4wz30g.cjs';
23
- import './custom-node-writes-Db8H6Z3n.cjs';
24
- import './hf-references-Dvk6De4Q.cjs';
25
- import './note-nodes-DL-Au22P.cjs';
26
- import './tree-store-CWOUMGN8.cjs';
7
+ import { T as TreeDocxSessionView, f as DocumentThemeColorEntry } from './tree-session-contract-Cbl87xa8.cjs';
8
+ export { a as TreeApplyResult } from './tree-session-contract-Cbl87xa8.cjs';
9
+ import { F as FontConfiguration, E as EditorFontError, a as EditorSnapshot, b as EditorCommand, C as CanResult, Z as ZoomMode } from './editor-B76SEMZw.cjs';
10
+ export { I as ImageContext, c as ImageCropPercent, d as ImageCropPermille, S as SelectedImageState, e as cropPercentFromCropPermille, f as cropPercentFromPermille, g as cropPercentFromSourceCrop, h as cropPermilleFromCropPercent, i as cropPermilleFromPercent, s as sourceCropFromCropPercent, v as validateImageCropPercent } from './editor-B76SEMZw.cjs';
11
+ import { L as LayoutShapingOptions } from './shaped-measurer-CneACGcP.cjs';
12
+ import { P as PaginatedSurfaceOptions, O as OpenPaginatedResult, a as PaginatedSurface, T as TableCommandPlan, D as DocxEditorInstance } from './index-CDGhPib1.cjs';
13
+ export { A as AnchorFrameOrigin, C as CHROME_GROUPS, b as CHROME_MENUS, c as CHROME_UNAVAILABLE_KEY, d as ChromeControl, e as ChromeControlId, f as ChromeControlState, g as ChromeGroup, h as ChromeGroupId, i as ChromeMenu, j as ChromeMenuEntry, k as ChromeMenuId, l as ChromeMenuItemEntry, m as ChromeMenuSeparatorEntry, n as ChromeMenuSubmenuEntry, o as ChromeSlotId, p as DEFAULT_TABLE_CHROME_DRAFT, q as DocxEditorConfig, r as DrawingSelectionIntent, E as EMU_PER_POINT, s as EquationActivation, t as EquationChromeHandlers, u as EquationOps, F as FinalizedImageOverlayInteraction, v as FontConfigurationBase, w as FontConfigurationFragment, x as FontLoadFailure, y as FontLoadFailureReason, z as FontMeasurementState, B as FontResolutionRequest, G as FontResolver, H as FontUrlSource, I as HyperlinkActivation, J as HyperlinkChromeHandlers, K as HyperlinkOps, L as IMAGE_OVERLAY_NUDGE_PT, M as IMAGE_OVERLAY_NUDGE_SHIFT_PT, N as ImageInteractionSession, Q as ImageOverlayScrollPort, R as ImageResizeHandle, S as ImageResizeResult, U as LoadFontsRequest, V as LoadFontsResult, W as MAX_RESOLVER_FAMILIES, X as OverlayFrameRect, Y as PaginatedSurfaceState, Z as ParagraphPropertyEdit, _ as RemoteCaretLabelAnchor, $ as RemoteCaretLabelHost, a0 as ReviewWriteIntent, a1 as RunTableChromeCommandResult, a2 as SectionAnchor, a3 as SectionBreakInsertType, a4 as SelectedDrawingOverlayTarget, a5 as SurfaceEquation, a6 as SurfaceFormatting, a7 as SurfaceHyperlink, a8 as SurfaceInsertImageInput, a9 as SurfaceNavigation, aa as SurfaceOverlayCoordinates, ab as SurfaceParagraphFormat, ac as TABLE_BORDER_STYLE_OPTIONS, ad as TABLE_BORDER_TARGET_OPTIONS, ae as TABLE_BORDER_WIDTH_OPTIONS, af as TABLE_CHROME_SLOT_IDS, ag as TableBorderStyleOption, ah as TableBorderTargetOption, ai as TableBorderTargetValue, aj as TableBorderWidthOption, ak as TableChromeDraft, al as TableChromePick, am as TableChromeSlotId, an as TableInteractionLabelKey, ao as ToolbarCommandState, ap as WORD_DEFAULT_FONT, aq as applyTableChromePick, ar as blankDocumentBytes, as as canExecuteImageCommand, at as captureImageMutationPreconditions, au as chromeControlCount, av as chromeMenuSlots, aw as chromeProbeForSlot, ax as chromeSlotId, ay as chromeSlotIsToggle, az as commandForSlot, aA as commandForSlotValue, aB as commandForTableChromeSlotValue, aC as composeFontConfiguration, aD as computeImageResizeResult, aE as computeMovedImagePosition, aF as computeResizedImageExtentEmu, aG as createDocxEditor, aH as createFontSource, aI as createImageOverlayScrollPort, aJ as cssPixelsToLayoutPoints, aK as defaultChromeGroups, aL as defaultTableLabel, aM as emuToOverlayPoints, aN as equationAtPosition, aO as executeImageCommand, aP as finalizeImageOverlayInteraction, aQ as formattingBarChromeGroups, aR as isStaleImageInteractionCommit, aS as isTableChromeSlot, aT as layoutPointsToCssPixels, aU as loadFonts, aV as overlayFrameToSheetCssPixels, aW as overlayHostOrigin, aX as pointsToEmu, aY as probeTableChromeCommand, aZ as resizePreservesAspect, a_ as runSave, a$ as runTableChromeCommand, b0 as runTableCommand, b1 as runToolbarCommand, b2 as selectedDrawingOverlayTargetOf, b3 as selectedImageStateOf, b4 as surfacePaintScale, b5 as tableChromeIconPaths, b6 as tableChromeLabelKeyForTarget, b7 as tableChromeToolbarState, b8 as tableChromeVisible, b9 as tableCommandToolbarState, ba as toolbarCommandState, bb as toolbarCommandStates } from './index-CDGhPib1.cjs';
14
+ import { A as AutomationCapabilities, a as AutomationHost } from './protocol-FTXtrAIT.cjs';
15
+ import { S as SemanticLayout } from './semantic-records-CRG1r6-a.cjs';
16
+ export { T as TextMeasurer } from './semantic-records-CRG1r6-a.cjs';
17
+ export { S as SectionProperties } from './semantic-cell-selection-nEE7E3Z8.cjs';
18
+ export { N as NavigationCommand, S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-DiOX0FIH.cjs';
19
+ export { F as FieldShadingMode, R as ReviewAuthorInfo, a as RevisionAuthorAssignments, b as RevisionAuthorStyle, c as RevisionStyles } from './semantic-paint-Cc11nrDL.cjs';
20
+ export { CollaborationModuleContribution } from './collaboration.cjs';
21
+ import './revision-projection-6u8lae9J.cjs';
22
+ import './tree-package-fragment-Cz-v-0B3.cjs';
23
+ import './tree-store-BenW0Mg_.cjs';
24
+ import './collaboration/replication.cjs';
25
+ import './failure-BnGjoXf0.cjs';
26
+ import './custom-node-writes-D4rMJIES.cjs';
27
+ import './document-properties-D6Ahr8D6.cjs';
27
28
  import 'prosemirror-model';
28
29
  import './contracts/document.cjs';
29
- import './note-properties-CQlxjic_.cjs';
30
- import './omml-equation-BD-LsmWE.cjs';
30
+ import './note-properties-zQ8w04en.cjs';
31
+ import './omml-equation-BmV51rim.cjs';
31
32
 
32
33
  interface LayoutShapingInstrumentation {
33
34
  readonly onFontByteCopy?: () => void;
@@ -60,6 +61,39 @@ declare function disposeLayoutShaping(shaping: LayoutShapingOptions): void;
60
61
  */
61
62
  declare const LOADING_SNAPSHOT: EditorSnapshot;
62
63
 
64
+ /**
65
+ * True when the engine's PASTE lanes will land user-visible content from this payload, so
66
+ * a host's image-FILE lane must stand down or insert a duplicate.
67
+ *
68
+ * In order of cost: visible `text/plain` (the plain lane's unconditional fallback), visible
69
+ * HTML text (the projection and the plain lane's HTML fallback both land it), a
70
+ * zip-shaped embedded fragment, and finally the projection probe for text-free HTML.
71
+ *
72
+ * Deliberate asymmetries against the router's letter: text made only of invisible
73
+ * characters (zero-width wrappers, bidi marks, a bare newline) does not count — the router
74
+ * technically lands it, but standing down for it would drop a real image for characters
75
+ * nobody can see. And engine-state gates the adapter cannot observe (suggesting mode, cell
76
+ * selections, the force-plain window) are ignored; in those states the engine may land
77
+ * nothing where this predicate said it would.
78
+ *
79
+ * @internal
80
+ */
81
+ declare function clipboardPasteLandsContent(transfer: DataTransfer | null | undefined): boolean;
82
+ /**
83
+ * True when the engine's DROP lane will land text from this payload, so a host's
84
+ * image-FILE drop lane must stand down — by NOT preventing the default, which is what
85
+ * lets the browser fire `insertFromDrop`, the engine's only drop path.
86
+ *
87
+ * Only visible HTML text counts. The drop lane is plain text end to end, so fragments and
88
+ * `data:` images never land from a drop — and `text/plain` says nothing about intent here,
89
+ * because image-file drags routinely mirror the file's path or URL into it. A text drag
90
+ * that carries an image file beside it (Word's rendering PNG again) always carries the
91
+ * text in HTML too.
92
+ *
93
+ * @internal
94
+ */
95
+ declare function clipboardDropLandsText(transfer: DataTransfer | null | undefined): boolean;
96
+
63
97
  /**
64
98
  * Mount a paginated surface over DOCX bytes.
65
99
  *
@@ -356,4 +390,4 @@ declare function validateSetImagePositionCommand(command: {
356
390
  readonly relativeToV?: string;
357
391
  }, mode: 'frame' | 'simple'): boolean;
358
392
 
359
- export { AUTO_ZOOM_MODE, BROWSER_AUTOMATION_CAPABILITIES, type ColorLowerResult, DRAWING_REL_FROM_H, DRAWING_REL_FROM_V, DocxEditorInstance, DrawingPositionInput, FIT_WIDTH_ZOOM_MODE, LOADING_SNAPSHOT, OpenPaginatedResult, PX_PER_CM, PX_PER_INCH, PaginatedSurface, PaginatedSurfaceOptions, type RulerDragOptions, type RulerIndent, type RulerIndentHandle, type RulerPageMetrics, type RulerTick, type RulerUnit, SNAP_TWIPS_CM, SNAP_TWIPS_INCH, type SurfaceExtent, TWIPS_PER_CM, TWIPS_PER_INCH, TreeDocxSessionView, ZOOM_MAX, ZOOM_MIN, applyThemeShade, applyThemeTint, createBrowserAutomationHost, createLayoutShaping, disposeLayoutShaping, dragIndent, editorCommandKey, generateRulerTicks, handlePosition, lowerColorValueForBorder, lowerColorValueForFill, mountPaginatedSurface, partOfNodeId, positionInputFromPropertiesCommand, propertiesCommandHasPositionFields, resolveColorValueToCss, resolveThemeColorHex, resolveZoomMode, rulerPageBox, sameZoomMode, snapTwips, surfaceExtent, tableCommandState, toEditorFontError, validateDrawingPositionInput, validateSetImagePositionCommand, validateThemeModifier };
393
+ export { AUTO_ZOOM_MODE, BROWSER_AUTOMATION_CAPABILITIES, type ColorLowerResult, DRAWING_REL_FROM_H, DRAWING_REL_FROM_V, DocxEditorInstance, DrawingPositionInput, FIT_WIDTH_ZOOM_MODE, LOADING_SNAPSHOT, OpenPaginatedResult, PX_PER_CM, PX_PER_INCH, PaginatedSurface, PaginatedSurfaceOptions, type RulerDragOptions, type RulerIndent, type RulerIndentHandle, type RulerPageMetrics, type RulerTick, type RulerUnit, SNAP_TWIPS_CM, SNAP_TWIPS_INCH, type SurfaceExtent, TWIPS_PER_CM, TWIPS_PER_INCH, TreeDocxSessionView, ZOOM_MAX, ZOOM_MIN, applyThemeShade, applyThemeTint, clipboardDropLandsText, clipboardPasteLandsContent, createBrowserAutomationHost, createLayoutShaping, disposeLayoutShaping, dragIndent, editorCommandKey, generateRulerTicks, handlePosition, lowerColorValueForBorder, lowerColorValueForFill, mountPaginatedSurface, partOfNodeId, positionInputFromPropertiesCommand, propertiesCommandHasPositionFields, resolveColorValueToCss, resolveThemeColorHex, resolveZoomMode, rulerPageBox, sameZoomMode, snapTwips, surfaceExtent, tableCommandState, toEditorFontError, validateDrawingPositionInput, validateSetImagePositionCommand, validateThemeModifier };
package/dist/editor.d.ts CHANGED
@@ -1,33 +1,34 @@
1
- import { l as TreeDocColorValue, d as DrawingPositionInput } from './tree-op-types-BuOfCrkp.js';
2
- export { m as DEFAULT_IMAGE_RESOURCE_LIMITS, n as IMAGE_WRAP_TARGETS, j as ImageDecodePort, o as ImageResourceLimits, b as ImageWrapTarget, R as RenderableImageMime, c as SupportedImageMime, i as VectorImageMime, r as resolveImageResourceLimits, p as resolveSvgIntrinsicSize, s as sniffImageMime, v as validateRasterHeader } from './tree-op-types-BuOfCrkp.js';
1
+ import { O as OoxmlPart, N as TreeDocColorValue, v as DrawingPositionInput } from './tree-op-types-HKfUzt_-.js';
2
+ export { Q as DEFAULT_IMAGE_RESOURCE_LIMITS, U as IMAGE_WRAP_TARGETS, C as ImageDecodePort, W as ImageResourceLimits, u as ImageWrapTarget, t as RenderableImageMime, y as SupportedImageMime, B as VectorImageMime, X as resolveImageResourceLimits, Y as resolveSvgIntrinsicSize, Z as sniffImageMime, _ as validateRasterHeader } from './tree-op-types-HKfUzt_-.js';
3
3
  import { ColorValue } from './contracts/types.js';
4
4
  export { ParagraphFlags, ParagraphTabStop } from './contracts/types.js';
5
- export { R as ReviewModelInput } from './review-items-Dw-8a6Ie.js';
5
+ export { R as ReviewModelInput } from './review-items-B78OsJU2.js';
6
6
  export { CollectReviewItems, EditorModule, EditorModuleRegistry, ReviewModuleContribution, resolveEditorModules } from './contracts/modules.js';
7
- import { T as TreeDocxSessionView, e as DocumentThemeColorEntry } from './tree-session-contract-C1dfE9hy.js';
8
- export { a as TreeApplyResult } from './tree-session-contract-C1dfE9hy.js';
9
- import { F as FontConfiguration, E as EditorFontError, a as EditorSnapshot, b as EditorCommand, C as CanResult, Z as ZoomMode } from './editor-C0my6Uta.js';
10
- export { I as ImageContext, c as ImageCropPercent, d as ImageCropPermille, S as SelectedImageState, e as cropPercentFromCropPermille, f as cropPercentFromPermille, g as cropPercentFromSourceCrop, h as cropPermilleFromCropPercent, i as cropPermilleFromPercent, s as sourceCropFromCropPercent, v as validateImageCropPercent } from './editor-C0my6Uta.js';
11
- import { L as LayoutShapingOptions } from './shaped-measurer-BxwTUluj.js';
12
- import { P as PaginatedSurfaceOptions, O as OpenPaginatedResult, a as PaginatedSurface, T as TableCommandPlan, D as DocxEditorInstance } from './index-kID8Ymkp.js';
13
- export { A as AnchorFrameOrigin, C as CHROME_GROUPS, b as CHROME_MENUS, c as CHROME_UNAVAILABLE_KEY, d as ChromeControl, e as ChromeControlId, f as ChromeControlState, g as ChromeGroup, h as ChromeGroupId, i as ChromeMenu, j as ChromeMenuEntry, k as ChromeMenuId, l as ChromeMenuItemEntry, m as ChromeMenuSeparatorEntry, n as ChromeMenuSubmenuEntry, o as ChromeSlotId, p as DEFAULT_TABLE_CHROME_DRAFT, q as DocxEditorConfig, r as DrawingSelectionIntent, E as EMU_PER_POINT, s as EquationActivation, t as EquationChromeHandlers, u as EquationOps, F as FinalizedImageOverlayInteraction, v as FontConfigurationBase, w as FontConfigurationFragment, x as FontLoadFailure, y as FontLoadFailureReason, z as FontMeasurementState, B as FontResolutionRequest, G as FontResolver, H as FontUrlSource, I as HyperlinkActivation, J as HyperlinkChromeHandlers, K as HyperlinkOps, L as IMAGE_OVERLAY_NUDGE_PT, M as IMAGE_OVERLAY_NUDGE_SHIFT_PT, N as ImageInteractionSession, Q as ImageOverlayScrollPort, R as ImageResizeHandle, S as ImageResizeResult, U as LoadFontsRequest, V as LoadFontsResult, W as MAX_RESOLVER_FAMILIES, X as OverlayFrameRect, Y as PaginatedSurfaceState, Z as ParagraphPropertyEdit, _ as RunTableChromeCommandResult, $ as SectionAnchor, a0 as SectionBreakInsertType, a1 as SelectedDrawingOverlayTarget, a2 as SurfaceEquation, a3 as SurfaceFormatting, a4 as SurfaceHyperlink, a5 as SurfaceNavigation, a6 as SurfaceOverlayCoordinates, a7 as SurfaceParagraphFormat, a8 as TABLE_BORDER_STYLE_OPTIONS, a9 as TABLE_BORDER_TARGET_OPTIONS, aa as TABLE_BORDER_WIDTH_OPTIONS, ab as TABLE_CHROME_SLOT_IDS, ac as TableBorderStyleOption, ad as TableBorderTargetOption, ae as TableBorderTargetValue, af as TableBorderWidthOption, ag as TableChromeDraft, ah as TableChromePick, ai as TableChromeSlotId, aj as TableInteractionLabelKey, ak as ToolbarCommandState, al as WORD_DEFAULT_FONT, am as applyTableChromePick, an as blankDocumentBytes, ao as canExecuteImageCommand, ap as captureImageMutationPreconditions, aq as chromeControlCount, ar as chromeMenuSlots, as as chromeProbeForSlot, at as chromeSlotId, au as commandForSlot, av as commandForSlotValue, aw as commandForTableChromeSlotValue, ax as composeFontConfiguration, ay as computeImageResizeResult, az as computeMovedImagePosition, aA as computeResizedImageExtentEmu, aB as createDocxEditor, aC as createFontSource, aD as createImageOverlayScrollPort, aE as cssPixelsToLayoutPoints, aF as defaultChromeGroups, aG as defaultTableLabel, aH as emuToOverlayPoints, aI as equationAtPosition, aJ as executeImageCommand, aK as finalizeImageOverlayInteraction, aL as formattingBarChromeGroups, aM as isStaleImageInteractionCommit, aN as isTableChromeSlot, aO as layoutPointsToCssPixels, aP as loadFonts, aQ as overlayFrameToSheetCssPixels, aR as overlayHostOrigin, aS as pointsToEmu, aT as probeTableChromeCommand, aU as resizePreservesAspect, aV as runSave, aW as runTableChromeCommand, aX as runTableCommand, aY as runToolbarCommand, aZ as selectedDrawingOverlayTargetOf, a_ as selectedImageStateOf, a$ as surfacePaintScale, b0 as tableChromeIconPaths, b1 as tableChromeLabelKeyForTarget, b2 as tableChromeToolbarState, b3 as tableChromeVisible, b4 as tableCommandToolbarState, b5 as toolbarCommandState, b6 as toolbarCommandStates } from './index-kID8Ymkp.js';
14
- import { O as OoxmlPart } from './ooxml-package-CdEy9ufK.js';
15
- import { A as AutomationCapabilities, a as AutomationHost } from './protocol-C7ahrdUx.js';
16
- import { S as SemanticLayout } from './semantic-records-Do3-i5oB.js';
17
- export { T as TextMeasurer } from './semantic-records-Do3-i5oB.js';
18
- export { S as SectionProperties } from './semantic-cell-selection-Utrf0lz7.js';
19
- export { N as NavigationCommand, S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-B6hFRQLy.js';
20
- export { F as FieldShadingMode, R as ReviewAuthorInfo, a as RevisionAuthorAssignments, b as RevisionAuthorStyle, c as RevisionStyles } from './semantic-paint-quke354p.js';
21
- import './tree-op-revision-attribution-CN06Xshv.js';
22
- import './revision-projection-CILpvv4M.js';
23
- import './custom-node-writes-BvpWCnW8.js';
24
- import './hf-references-z5Y4N1ab.js';
25
- import './note-nodes-BNCANoGN.js';
26
- import './tree-store-ASBtz7UB.js';
7
+ import { T as TreeDocxSessionView, f as DocumentThemeColorEntry } from './tree-session-contract-BPDLrEPX.js';
8
+ export { a as TreeApplyResult } from './tree-session-contract-BPDLrEPX.js';
9
+ import { F as FontConfiguration, E as EditorFontError, a as EditorSnapshot, b as EditorCommand, C as CanResult, Z as ZoomMode } from './editor-BcdsPdbY.js';
10
+ export { I as ImageContext, c as ImageCropPercent, d as ImageCropPermille, S as SelectedImageState, e as cropPercentFromCropPermille, f as cropPercentFromPermille, g as cropPercentFromSourceCrop, h as cropPermilleFromCropPercent, i as cropPermilleFromPercent, s as sourceCropFromCropPercent, v as validateImageCropPercent } from './editor-BcdsPdbY.js';
11
+ import { L as LayoutShapingOptions } from './shaped-measurer-CkOGZQn9.js';
12
+ import { P as PaginatedSurfaceOptions, O as OpenPaginatedResult, a as PaginatedSurface, T as TableCommandPlan, D as DocxEditorInstance } from './index-BYTvklN5.js';
13
+ export { A as AnchorFrameOrigin, C as CHROME_GROUPS, b as CHROME_MENUS, c as CHROME_UNAVAILABLE_KEY, d as ChromeControl, e as ChromeControlId, f as ChromeControlState, g as ChromeGroup, h as ChromeGroupId, i as ChromeMenu, j as ChromeMenuEntry, k as ChromeMenuId, l as ChromeMenuItemEntry, m as ChromeMenuSeparatorEntry, n as ChromeMenuSubmenuEntry, o as ChromeSlotId, p as DEFAULT_TABLE_CHROME_DRAFT, q as DocxEditorConfig, r as DrawingSelectionIntent, E as EMU_PER_POINT, s as EquationActivation, t as EquationChromeHandlers, u as EquationOps, F as FinalizedImageOverlayInteraction, v as FontConfigurationBase, w as FontConfigurationFragment, x as FontLoadFailure, y as FontLoadFailureReason, z as FontMeasurementState, B as FontResolutionRequest, G as FontResolver, H as FontUrlSource, I as HyperlinkActivation, J as HyperlinkChromeHandlers, K as HyperlinkOps, L as IMAGE_OVERLAY_NUDGE_PT, M as IMAGE_OVERLAY_NUDGE_SHIFT_PT, N as ImageInteractionSession, Q as ImageOverlayScrollPort, R as ImageResizeHandle, S as ImageResizeResult, U as LoadFontsRequest, V as LoadFontsResult, W as MAX_RESOLVER_FAMILIES, X as OverlayFrameRect, Y as PaginatedSurfaceState, Z as ParagraphPropertyEdit, _ as RemoteCaretLabelAnchor, $ as RemoteCaretLabelHost, a0 as ReviewWriteIntent, a1 as RunTableChromeCommandResult, a2 as SectionAnchor, a3 as SectionBreakInsertType, a4 as SelectedDrawingOverlayTarget, a5 as SurfaceEquation, a6 as SurfaceFormatting, a7 as SurfaceHyperlink, a8 as SurfaceInsertImageInput, a9 as SurfaceNavigation, aa as SurfaceOverlayCoordinates, ab as SurfaceParagraphFormat, ac as TABLE_BORDER_STYLE_OPTIONS, ad as TABLE_BORDER_TARGET_OPTIONS, ae as TABLE_BORDER_WIDTH_OPTIONS, af as TABLE_CHROME_SLOT_IDS, ag as TableBorderStyleOption, ah as TableBorderTargetOption, ai as TableBorderTargetValue, aj as TableBorderWidthOption, ak as TableChromeDraft, al as TableChromePick, am as TableChromeSlotId, an as TableInteractionLabelKey, ao as ToolbarCommandState, ap as WORD_DEFAULT_FONT, aq as applyTableChromePick, ar as blankDocumentBytes, as as canExecuteImageCommand, at as captureImageMutationPreconditions, au as chromeControlCount, av as chromeMenuSlots, aw as chromeProbeForSlot, ax as chromeSlotId, ay as chromeSlotIsToggle, az as commandForSlot, aA as commandForSlotValue, aB as commandForTableChromeSlotValue, aC as composeFontConfiguration, aD as computeImageResizeResult, aE as computeMovedImagePosition, aF as computeResizedImageExtentEmu, aG as createDocxEditor, aH as createFontSource, aI as createImageOverlayScrollPort, aJ as cssPixelsToLayoutPoints, aK as defaultChromeGroups, aL as defaultTableLabel, aM as emuToOverlayPoints, aN as equationAtPosition, aO as executeImageCommand, aP as finalizeImageOverlayInteraction, aQ as formattingBarChromeGroups, aR as isStaleImageInteractionCommit, aS as isTableChromeSlot, aT as layoutPointsToCssPixels, aU as loadFonts, aV as overlayFrameToSheetCssPixels, aW as overlayHostOrigin, aX as pointsToEmu, aY as probeTableChromeCommand, aZ as resizePreservesAspect, a_ as runSave, a$ as runTableChromeCommand, b0 as runTableCommand, b1 as runToolbarCommand, b2 as selectedDrawingOverlayTargetOf, b3 as selectedImageStateOf, b4 as surfacePaintScale, b5 as tableChromeIconPaths, b6 as tableChromeLabelKeyForTarget, b7 as tableChromeToolbarState, b8 as tableChromeVisible, b9 as tableCommandToolbarState, ba as toolbarCommandState, bb as toolbarCommandStates } from './index-BYTvklN5.js';
14
+ import { A as AutomationCapabilities, a as AutomationHost } from './protocol-DC7ueVuo.js';
15
+ import { S as SemanticLayout } from './semantic-records-CzI0ZEuR.js';
16
+ export { T as TextMeasurer } from './semantic-records-CzI0ZEuR.js';
17
+ export { S as SectionProperties } from './semantic-cell-selection-DsYz2Vg3.js';
18
+ export { N as NavigationCommand, S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-C00BpIyC.js';
19
+ export { F as FieldShadingMode, R as ReviewAuthorInfo, a as RevisionAuthorAssignments, b as RevisionAuthorStyle, c as RevisionStyles } from './semantic-paint-ofuoBsYo.js';
20
+ export { CollaborationModuleContribution } from './collaboration.js';
21
+ import './revision-projection-B2v9U3qx.js';
22
+ import './tree-package-fragment-oJZX_5iN.js';
23
+ import './tree-store-B7hd6cEa.js';
24
+ import './collaboration/replication.js';
25
+ import './failure-BnGjoXf0.js';
26
+ import './custom-node-writes-CcNeHH5C.js';
27
+ import './document-properties-D6Ahr8D6.js';
27
28
  import 'prosemirror-model';
28
29
  import './contracts/document.js';
29
- import './note-properties-jvnw_DGG.js';
30
- import './omml-equation-Dd3mBep-.js';
30
+ import './note-properties-Bx7rXruA.js';
31
+ import './omml-equation-69O1Pd8G.js';
31
32
 
32
33
  interface LayoutShapingInstrumentation {
33
34
  readonly onFontByteCopy?: () => void;
@@ -60,6 +61,39 @@ declare function disposeLayoutShaping(shaping: LayoutShapingOptions): void;
60
61
  */
61
62
  declare const LOADING_SNAPSHOT: EditorSnapshot;
62
63
 
64
+ /**
65
+ * True when the engine's PASTE lanes will land user-visible content from this payload, so
66
+ * a host's image-FILE lane must stand down or insert a duplicate.
67
+ *
68
+ * In order of cost: visible `text/plain` (the plain lane's unconditional fallback), visible
69
+ * HTML text (the projection and the plain lane's HTML fallback both land it), a
70
+ * zip-shaped embedded fragment, and finally the projection probe for text-free HTML.
71
+ *
72
+ * Deliberate asymmetries against the router's letter: text made only of invisible
73
+ * characters (zero-width wrappers, bidi marks, a bare newline) does not count — the router
74
+ * technically lands it, but standing down for it would drop a real image for characters
75
+ * nobody can see. And engine-state gates the adapter cannot observe (suggesting mode, cell
76
+ * selections, the force-plain window) are ignored; in those states the engine may land
77
+ * nothing where this predicate said it would.
78
+ *
79
+ * @internal
80
+ */
81
+ declare function clipboardPasteLandsContent(transfer: DataTransfer | null | undefined): boolean;
82
+ /**
83
+ * True when the engine's DROP lane will land text from this payload, so a host's
84
+ * image-FILE drop lane must stand down — by NOT preventing the default, which is what
85
+ * lets the browser fire `insertFromDrop`, the engine's only drop path.
86
+ *
87
+ * Only visible HTML text counts. The drop lane is plain text end to end, so fragments and
88
+ * `data:` images never land from a drop — and `text/plain` says nothing about intent here,
89
+ * because image-file drags routinely mirror the file's path or URL into it. A text drag
90
+ * that carries an image file beside it (Word's rendering PNG again) always carries the
91
+ * text in HTML too.
92
+ *
93
+ * @internal
94
+ */
95
+ declare function clipboardDropLandsText(transfer: DataTransfer | null | undefined): boolean;
96
+
63
97
  /**
64
98
  * Mount a paginated surface over DOCX bytes.
65
99
  *
@@ -356,4 +390,4 @@ declare function validateSetImagePositionCommand(command: {
356
390
  readonly relativeToV?: string;
357
391
  }, mode: 'frame' | 'simple'): boolean;
358
392
 
359
- export { AUTO_ZOOM_MODE, BROWSER_AUTOMATION_CAPABILITIES, type ColorLowerResult, DRAWING_REL_FROM_H, DRAWING_REL_FROM_V, DocxEditorInstance, DrawingPositionInput, FIT_WIDTH_ZOOM_MODE, LOADING_SNAPSHOT, OpenPaginatedResult, PX_PER_CM, PX_PER_INCH, PaginatedSurface, PaginatedSurfaceOptions, type RulerDragOptions, type RulerIndent, type RulerIndentHandle, type RulerPageMetrics, type RulerTick, type RulerUnit, SNAP_TWIPS_CM, SNAP_TWIPS_INCH, type SurfaceExtent, TWIPS_PER_CM, TWIPS_PER_INCH, TreeDocxSessionView, ZOOM_MAX, ZOOM_MIN, applyThemeShade, applyThemeTint, createBrowserAutomationHost, createLayoutShaping, disposeLayoutShaping, dragIndent, editorCommandKey, generateRulerTicks, handlePosition, lowerColorValueForBorder, lowerColorValueForFill, mountPaginatedSurface, partOfNodeId, positionInputFromPropertiesCommand, propertiesCommandHasPositionFields, resolveColorValueToCss, resolveThemeColorHex, resolveZoomMode, rulerPageBox, sameZoomMode, snapTwips, surfaceExtent, tableCommandState, toEditorFontError, validateDrawingPositionInput, validateSetImagePositionCommand, validateThemeModifier };
393
+ export { AUTO_ZOOM_MODE, BROWSER_AUTOMATION_CAPABILITIES, type ColorLowerResult, DRAWING_REL_FROM_H, DRAWING_REL_FROM_V, DocxEditorInstance, DrawingPositionInput, FIT_WIDTH_ZOOM_MODE, LOADING_SNAPSHOT, OpenPaginatedResult, PX_PER_CM, PX_PER_INCH, PaginatedSurface, PaginatedSurfaceOptions, type RulerDragOptions, type RulerIndent, type RulerIndentHandle, type RulerPageMetrics, type RulerTick, type RulerUnit, SNAP_TWIPS_CM, SNAP_TWIPS_INCH, type SurfaceExtent, TWIPS_PER_CM, TWIPS_PER_INCH, TreeDocxSessionView, ZOOM_MAX, ZOOM_MIN, applyThemeShade, applyThemeTint, clipboardDropLandsText, clipboardPasteLandsContent, createBrowserAutomationHost, createLayoutShaping, disposeLayoutShaping, dragIndent, editorCommandKey, generateRulerTicks, handlePosition, lowerColorValueForBorder, lowerColorValueForFill, mountPaginatedSurface, partOfNodeId, positionInputFromPropertiesCommand, propertiesCommandHasPositionFields, resolveColorValueToCss, resolveThemeColorHex, resolveZoomMode, rulerPageBox, sameZoomMode, snapTwips, surfaceExtent, tableCommandState, toEditorFontError, validateDrawingPositionInput, validateSetImagePositionCommand, validateThemeModifier };
package/dist/editor.js CHANGED
@@ -1 +1 @@
1
- export{Ia as AUTO_ZOOM_MODE,Na as BROWSER_AUTOMATION_CAPABILITIES,va as CHROME_GROUPS,za as CHROME_MENUS,Ca as CHROME_UNAVAILABLE_KEY,Y as DEFAULT_TABLE_CHROME_DRAFT,Q as EMU_PER_POINT,Ja as FIT_WIDTH_ZOOM_MODE,O as IMAGE_OVERLAY_NUDGE_PT,P as IMAGE_OVERLAY_NUDGE_SHIFT_PT,d as LOADING_SNAPSHOT,e as MAX_RESOLVER_FAMILIES,m as PX_PER_CM,l as PX_PER_INCH,s as SNAP_TWIPS_CM,r as SNAP_TWIPS_INCH,ca as TABLE_BORDER_STYLE_OPTIONS,ba as TABLE_BORDER_TARGET_OPTIONS,da as TABLE_BORDER_WIDTH_OPTIONS,Z as TABLE_CHROME_SLOT_IDS,q as TWIPS_PER_CM,p as TWIPS_PER_INCH,f as WORD_DEFAULT_FONT,Ha as ZOOM_MAX,Ga as ZOOM_MIN,ea as applyTableChromePick,y as applyThemeShade,x as applyThemeTint,h as blankDocumentBytes,M as canExecuteImageCommand,L as captureImageMutationPreconditions,Ba as chromeControlCount,Aa as chromeMenuSlots,ia as chromeProbeForSlot,wa as chromeSlotId,ja as commandForSlot,la as commandForSlotValue,ka as commandForTableChromeSlotValue,g as composeFontConfiguration,Va as computeImageResizeResult,V as computeMovedImagePosition,U as computeResizedImageExtentEmu,Oa as createBrowserAutomationHost,Ma as createDocxEditor,k as createFontSource,Wa as createImageOverlayScrollPort,b as createLayoutShaping,I as cropPercentFromCropPermille,G as cropPercentFromPermille,D as cropPercentFromSourceCrop,H as cropPermilleFromCropPercent,F as cropPermilleFromPercent,Ra as cssPixelsToLayoutPoints,xa as defaultChromeGroups,_ as defaultTableLabel,c as disposeLayoutShaping,v as dragIndent,ua as editorCommandKey,T as emuToOverlayPoints,Ea as equationAtPosition,N as executeImageCommand,Xa as finalizeImageOverlayInteraction,ya as formattingBarChromeGroups,n as generateRulerTicks,t as handlePosition,W as isStaleImageInteractionCommit,$ as isTableChromeSlot,Qa as layoutPointsToCssPixels,j as loadFonts,A as lowerColorValueForBorder,B as lowerColorValueForFill,Fa as mountPaginatedSurface,Sa as overlayFrameToSheetCssPixels,Ta as overlayHostOrigin,i as partOfNodeId,S as pointsToEmu,fa as probeTableChromeCommand,Ua as resizePreservesAspect,C as resolveColorValueToCss,z as resolveThemeColorHex,Ka as resolveZoomMode,o as rulerPageBox,ra as runSave,pa as runTableChromeCommand,ta as runTableCommand,qa as runToolbarCommand,La as sameZoomMode,R as selectedDrawingOverlayTargetOf,K as selectedImageStateOf,u as snapTwips,E as sourceCropFromCropPercent,Da as surfaceExtent,Pa as surfacePaintScale,ha as tableChromeIconPaths,ga as tableChromeLabelKeyForTarget,ma as tableChromeToolbarState,aa as tableChromeVisible,X as tableCommandState,sa as tableCommandToolbarState,a as toEditorFontError,na as toolbarCommandState,oa as toolbarCommandStates,J as validateImageCropPercent,w as validateThemeModifier}from'./chunk-YI6JXF7U.js';import'./chunk-27APDXY2.js';import'./chunk-N725IUO7.js';import'./chunk-WU7PUTVA.js';import'./chunk-NVGFWMCO.js';import'./chunk-LWADHMVV.js';import'./chunk-LG5K46OM.js';export{m as DEFAULT_IMAGE_RESOURCE_LIMITS,Pf as DRAWING_REL_FROM_H,Qf as DRAWING_REL_FROM_V,Ra as IMAGE_WRAP_TARGETS,Sf as positionInputFromPropertiesCommand,Rf as propertiesCommandHasPositionFields,n as resolveImageResourceLimits,ib as resolveSvgIntrinsicSize,eb as sniffImageMime,Of as validateDrawingPositionInput,jb as validateRasterHeader,Tf as validateSetImagePositionCommand}from'./chunk-N7DBENH4.js';import'./chunk-PSZH2VXP.js';export{a as resolveEditorModules}from'./chunk-GQQOL4PV.js';
1
+ export{La as AUTO_ZOOM_MODE,Qa as BROWSER_AUTOMATION_CAPABILITIES,ya as CHROME_GROUPS,Ca as CHROME_MENUS,Fa as CHROME_UNAVAILABLE_KEY,_ as DEFAULT_TABLE_CHROME_DRAFT,S as EMU_PER_POINT,Ma as FIT_WIDTH_ZOOM_MODE,Q as IMAGE_OVERLAY_NUDGE_PT,R as IMAGE_OVERLAY_NUDGE_SHIFT_PT,d as LOADING_SNAPSHOT,e as MAX_RESOLVER_FAMILIES,o as PX_PER_CM,n as PX_PER_INCH,u as SNAP_TWIPS_CM,t as SNAP_TWIPS_INCH,ea as TABLE_BORDER_STYLE_OPTIONS,da as TABLE_BORDER_TARGET_OPTIONS,fa as TABLE_BORDER_WIDTH_OPTIONS,$ as TABLE_CHROME_SLOT_IDS,s as TWIPS_PER_CM,r as TWIPS_PER_INCH,f as WORD_DEFAULT_FONT,Ka as ZOOM_MAX,Ja as ZOOM_MIN,ga as applyTableChromePick,A as applyThemeShade,z as applyThemeTint,h as blankDocumentBytes,O as canExecuteImageCommand,N as captureImageMutationPreconditions,Ea as chromeControlCount,Da as chromeMenuSlots,ka as chromeProbeForSlot,za as chromeSlotId,qa as chromeSlotIsToggle,j as clipboardDropLandsText,i as clipboardPasteLandsContent,la as commandForSlot,na as commandForSlotValue,ma as commandForTableChromeSlotValue,g as composeFontConfiguration,Ya as computeImageResizeResult,X as computeMovedImagePosition,W as computeResizedImageExtentEmu,Ra as createBrowserAutomationHost,Pa as createDocxEditor,m as createFontSource,Za as createImageOverlayScrollPort,b as createLayoutShaping,K as cropPercentFromCropPermille,I as cropPercentFromPermille,F as cropPercentFromSourceCrop,J as cropPermilleFromCropPercent,H as cropPermilleFromPercent,Ua as cssPixelsToLayoutPoints,Aa as defaultChromeGroups,aa as defaultTableLabel,c as disposeLayoutShaping,x as dragIndent,xa as editorCommandKey,V as emuToOverlayPoints,Ha as equationAtPosition,P as executeImageCommand,_a as finalizeImageOverlayInteraction,Ba as formattingBarChromeGroups,p as generateRulerTicks,v as handlePosition,Y as isStaleImageInteractionCommit,ba as isTableChromeSlot,Ta as layoutPointsToCssPixels,l as loadFonts,C as lowerColorValueForBorder,D as lowerColorValueForFill,Ia as mountPaginatedSurface,Va as overlayFrameToSheetCssPixels,Wa as overlayHostOrigin,k as partOfNodeId,U as pointsToEmu,ha as probeTableChromeCommand,Xa as resizePreservesAspect,E as resolveColorValueToCss,B as resolveThemeColorHex,Na as resolveZoomMode,q as rulerPageBox,ua as runSave,sa as runTableChromeCommand,wa as runTableCommand,ta as runToolbarCommand,Oa as sameZoomMode,T as selectedDrawingOverlayTargetOf,M as selectedImageStateOf,w as snapTwips,G as sourceCropFromCropPercent,Ga as surfaceExtent,Sa as surfacePaintScale,ja as tableChromeIconPaths,ia as tableChromeLabelKeyForTarget,oa as tableChromeToolbarState,ca as tableChromeVisible,Z as tableCommandState,va as tableCommandToolbarState,a as toEditorFontError,pa as toolbarCommandState,ra as toolbarCommandStates,L as validateImageCropPercent,y as validateThemeModifier}from'./chunk-KBOOIC2Q.js';export{a as resolveEditorModules}from'./chunk-D5EHDHYV.js';import'./chunk-MHQNR2OU.js';import'./chunk-NJXQABQU.js';import'./chunk-WU7PUTVA.js';import'./chunk-MLGPISGH.js';import'./chunk-BXTTPJSH.js';import'./chunk-VGFMPWND.js';import'./chunk-IUM7FZPA.js';import'./chunk-6JIJOZDW.js';import'./chunk-W77HJGYX.js';export{m as DEFAULT_IMAGE_RESOURCE_LIMITS,Ng as DRAWING_REL_FROM_H,Og as DRAWING_REL_FROM_V,Ya as IMAGE_WRAP_TARGETS,Qg as positionInputFromPropertiesCommand,Pg as propertiesCommandHasPositionFields,n as resolveImageResourceLimits,pb as resolveSvgIntrinsicSize,lb as sniffImageMime,Mg as validateDrawingPositionInput,qb as validateRasterHeader,Rg as validateSetImagePositionCommand}from'./chunk-L6XZTLPS.js';import'./chunk-GOEBQ26R.js';
@@ -0,0 +1,64 @@
1
+ /**
2
+ * Lifecycle state of one collaboration replica.
3
+ *
4
+ * One axis, because the only question a host has to answer is whether to tell the reader to
5
+ * wait or to reload:
6
+ *
7
+ * - `initializing` — joining. Edits are refused. Recovers on its own.
8
+ * - `ready` — replicating. The only state that accepts edits.
9
+ * - `disconnected` — the transport dropped. The replica is intact and recovers on its own,
10
+ * so wait rather than reload. Edits are refused until reconnect by default; a session
11
+ * created with offline editing enabled keeps accepting them, and the buffered updates
12
+ * merge on reconnect.
13
+ * - `error` — this replica no longer agrees with the room. It does not recover: only a
14
+ * reload rejoins. {@link CollaborationStatusSnapshot.reason} says why.
15
+ * - `destroyed` — torn down. Terminal.
16
+ *
17
+ * @public
18
+ */
19
+ type CollaborationStatus = 'initializing' | 'ready' | 'disconnected' | 'error' | 'destroyed';
20
+ /**
21
+ * Why a replica refused work, left `ready`, or failed a schema check.
22
+ *
23
+ * Free-form extras (a transport phrase, a blob key, a store refusal) travel in
24
+ * {@link CollaborationFailure.detail}, not here. `invalid-shared-metadata` follows that rule:
25
+ * it names one malformed field of the room's shared metadata, and which field is the detail.
26
+ * Distinct from `invalid-document-id`, which rejects a document id this host passed in.
27
+ * `concurrent-seed` reports two merged seed transactions in one room; the room cannot be
28
+ * repaired client-side — create a new room from saved bytes.
29
+ *
30
+ * Two of these name a transport condition a host has to tell apart, because the answers are
31
+ * opposite. `transport-disconnected` recovers on its own, so wait. `authentication-failed`
32
+ * never does: the credential the provider re-sent was rejected, so refresh it and rejoin.
33
+ * `transport` remains the catch-all for a provider that reported neither.
34
+ *
35
+ * @public
36
+ */
37
+ type CollaborationFailureCode = 'already-initialized' | 'authentication-failed' | 'baseline-digest-mismatch' | 'baseline-too-large' | 'blob-digest-mismatch' | 'blob-read' | 'blob-store-full' | 'blob-too-large' | 'collaboration-session-destroyed' | 'collaboration-session-not-attached' | 'collaboration-session-not-ready' | 'collaboration-text-limit' | 'concurrent-seed' | 'document-id-mismatch' | 'duplicate-paragraph-id' | 'experimental-collaboration-body-text-only' | 'experimental-collaboration-existing-paragraphs-only' | 'experimental-collaboration-text-only' | 'experimental-collaboration-untracked-text-only' | 'immutable-baseline-changed' | 'immutable-metadata-changed' | 'initialization-aborted' | 'initialization-timeout' | 'invalid-baseline' | 'invalid-blob-descriptor' | 'invalid-bound' | 'invalid-document-id' | 'invalid-identity' | 'invalid-identity-color' | 'invalid-logical-id' | 'invalid-relationships' | 'invalid-session-id' | 'invalid-shared-metadata' | 'invalid-string' | 'local-mirror-failed' | 'materialize-dropped-content' | 'missing-blob' | 'missing-local-blob' | 'missing-root' | 'no-main-document-part' | 'not-initialized' | 'paragraph-set-mismatch' | 'port-already-attached' | 'protocol-version-mismatch' | 'prototype-key' | 'remote-apply-failed' | 'schema-version-mismatch' | 'shared-schema-invalid' | 'text-too-long' | 'too-many-attributes' | 'too-many-children' | 'too-many-nodes' | 'too-many-parts' | 'too-many-relationships' | 'transport' | 'transport-disconnected' | 'tree-too-deep' | 'unknown-logical-id' | 'unknown-paragraph-id' | 'unsafe-part-name' | 'unsupported-root-key';
38
+ /** True when `value` is a {@link CollaborationFailureCode} member. @public */
39
+ declare function isCollaborationFailureCode(value: string): value is CollaborationFailureCode;
40
+ /** One collaboration failure: a typed code plus optional free-form detail. @public */
41
+ interface CollaborationFailure {
42
+ readonly code: CollaborationFailureCode;
43
+ readonly detail?: string;
44
+ }
45
+ /**
46
+ * Cached status read. Same reference until status, reason, or last failure change.
47
+ *
48
+ * @public
49
+ */
50
+ interface CollaborationStatusSnapshot {
51
+ readonly status: CollaborationStatus;
52
+ readonly reason: CollaborationFailure | undefined;
53
+ readonly lastFailure: CollaborationFailure | undefined;
54
+ }
55
+ /** @internal */
56
+ interface CollaborationStatusTracker {
57
+ status(): CollaborationStatus;
58
+ snapshot(): CollaborationStatusSnapshot;
59
+ set(status: CollaborationStatus, code?: CollaborationFailureCode, detail?: string): boolean;
60
+ }
61
+ /** @internal */
62
+ declare function createCollaborationStatusTracker(initial?: CollaborationStatus): CollaborationStatusTracker;
63
+
64
+ export { type CollaborationStatus as C, type CollaborationStatusSnapshot as a, type CollaborationFailureCode as b, type CollaborationFailure as c, createCollaborationStatusTracker as d, isCollaborationFailureCode as i };
@@ -0,0 +1,64 @@
1
+ /**
2
+ * Lifecycle state of one collaboration replica.
3
+ *
4
+ * One axis, because the only question a host has to answer is whether to tell the reader to
5
+ * wait or to reload:
6
+ *
7
+ * - `initializing` — joining. Edits are refused. Recovers on its own.
8
+ * - `ready` — replicating. The only state that accepts edits.
9
+ * - `disconnected` — the transport dropped. The replica is intact and recovers on its own,
10
+ * so wait rather than reload. Edits are refused until reconnect by default; a session
11
+ * created with offline editing enabled keeps accepting them, and the buffered updates
12
+ * merge on reconnect.
13
+ * - `error` — this replica no longer agrees with the room. It does not recover: only a
14
+ * reload rejoins. {@link CollaborationStatusSnapshot.reason} says why.
15
+ * - `destroyed` — torn down. Terminal.
16
+ *
17
+ * @public
18
+ */
19
+ type CollaborationStatus = 'initializing' | 'ready' | 'disconnected' | 'error' | 'destroyed';
20
+ /**
21
+ * Why a replica refused work, left `ready`, or failed a schema check.
22
+ *
23
+ * Free-form extras (a transport phrase, a blob key, a store refusal) travel in
24
+ * {@link CollaborationFailure.detail}, not here. `invalid-shared-metadata` follows that rule:
25
+ * it names one malformed field of the room's shared metadata, and which field is the detail.
26
+ * Distinct from `invalid-document-id`, which rejects a document id this host passed in.
27
+ * `concurrent-seed` reports two merged seed transactions in one room; the room cannot be
28
+ * repaired client-side — create a new room from saved bytes.
29
+ *
30
+ * Two of these name a transport condition a host has to tell apart, because the answers are
31
+ * opposite. `transport-disconnected` recovers on its own, so wait. `authentication-failed`
32
+ * never does: the credential the provider re-sent was rejected, so refresh it and rejoin.
33
+ * `transport` remains the catch-all for a provider that reported neither.
34
+ *
35
+ * @public
36
+ */
37
+ type CollaborationFailureCode = 'already-initialized' | 'authentication-failed' | 'baseline-digest-mismatch' | 'baseline-too-large' | 'blob-digest-mismatch' | 'blob-read' | 'blob-store-full' | 'blob-too-large' | 'collaboration-session-destroyed' | 'collaboration-session-not-attached' | 'collaboration-session-not-ready' | 'collaboration-text-limit' | 'concurrent-seed' | 'document-id-mismatch' | 'duplicate-paragraph-id' | 'experimental-collaboration-body-text-only' | 'experimental-collaboration-existing-paragraphs-only' | 'experimental-collaboration-text-only' | 'experimental-collaboration-untracked-text-only' | 'immutable-baseline-changed' | 'immutable-metadata-changed' | 'initialization-aborted' | 'initialization-timeout' | 'invalid-baseline' | 'invalid-blob-descriptor' | 'invalid-bound' | 'invalid-document-id' | 'invalid-identity' | 'invalid-identity-color' | 'invalid-logical-id' | 'invalid-relationships' | 'invalid-session-id' | 'invalid-shared-metadata' | 'invalid-string' | 'local-mirror-failed' | 'materialize-dropped-content' | 'missing-blob' | 'missing-local-blob' | 'missing-root' | 'no-main-document-part' | 'not-initialized' | 'paragraph-set-mismatch' | 'port-already-attached' | 'protocol-version-mismatch' | 'prototype-key' | 'remote-apply-failed' | 'schema-version-mismatch' | 'shared-schema-invalid' | 'text-too-long' | 'too-many-attributes' | 'too-many-children' | 'too-many-nodes' | 'too-many-parts' | 'too-many-relationships' | 'transport' | 'transport-disconnected' | 'tree-too-deep' | 'unknown-logical-id' | 'unknown-paragraph-id' | 'unsafe-part-name' | 'unsupported-root-key';
38
+ /** True when `value` is a {@link CollaborationFailureCode} member. @public */
39
+ declare function isCollaborationFailureCode(value: string): value is CollaborationFailureCode;
40
+ /** One collaboration failure: a typed code plus optional free-form detail. @public */
41
+ interface CollaborationFailure {
42
+ readonly code: CollaborationFailureCode;
43
+ readonly detail?: string;
44
+ }
45
+ /**
46
+ * Cached status read. Same reference until status, reason, or last failure change.
47
+ *
48
+ * @public
49
+ */
50
+ interface CollaborationStatusSnapshot {
51
+ readonly status: CollaborationStatus;
52
+ readonly reason: CollaborationFailure | undefined;
53
+ readonly lastFailure: CollaborationFailure | undefined;
54
+ }
55
+ /** @internal */
56
+ interface CollaborationStatusTracker {
57
+ status(): CollaborationStatus;
58
+ snapshot(): CollaborationStatusSnapshot;
59
+ set(status: CollaborationStatus, code?: CollaborationFailureCode, detail?: string): boolean;
60
+ }
61
+ /** @internal */
62
+ declare function createCollaborationStatusTracker(initial?: CollaborationStatus): CollaborationStatusTracker;
63
+
64
+ export { type CollaborationStatus as C, type CollaborationStatusSnapshot as a, type CollaborationFailureCode as b, type CollaborationFailure as c, createCollaborationStatusTracker as d, isCollaborationFailureCode as i };