@docx-editor.dev/core 2.26.0 → 2.28.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 (122) hide show
  1. package/dist/automation.cjs +1 -1
  2. package/dist/automation.d.ts +30 -13
  3. package/dist/automation.js +1 -1
  4. package/dist/binding.cjs +1 -1
  5. package/dist/binding.d.ts +20 -9
  6. package/dist/binding.js +1 -1
  7. package/dist/chunk-2GO5T2JU.cjs +1 -0
  8. package/dist/chunk-2RC2EPND.js +3 -0
  9. package/dist/chunk-4GBTELJV.cjs +28 -0
  10. package/dist/chunk-4R3TEXMN.js +18 -0
  11. package/dist/chunk-5CSUYANV.js +1 -0
  12. package/dist/chunk-6APGXLBB.cjs +3 -0
  13. package/dist/chunk-6AWEKBLB.cjs +1 -0
  14. package/dist/chunk-6EYYL7FL.js +1 -0
  15. package/dist/chunk-E7BQA6UP.js +2 -0
  16. package/dist/chunk-EO4C5QJW.cjs +2 -0
  17. package/dist/chunk-ETTO6GK3.js +1 -0
  18. package/dist/chunk-FIJZIQXA.cjs +18 -0
  19. package/dist/chunk-FRXAOVTB.js +28 -0
  20. package/dist/chunk-J6BVWIDB.js +2 -0
  21. package/dist/chunk-JGNVNT2A.cjs +2 -0
  22. package/dist/chunk-K5U2PLDP.cjs +2 -0
  23. package/dist/chunk-KKIJG3C6.js +2 -0
  24. package/dist/chunk-LWDSDCMO.js +27 -0
  25. package/dist/chunk-NBCVVZOM.cjs +1 -0
  26. package/dist/chunk-O2AL2HSJ.cjs +1 -0
  27. package/dist/{chunk-AJCCS53D.js → chunk-O5INAWZQ.js} +1 -1
  28. package/dist/chunk-QMLCVPCD.cjs +1 -0
  29. package/dist/chunk-RCHS4ZEH.cjs +27 -0
  30. package/dist/chunk-SRPILEWV.cjs +5 -0
  31. package/dist/chunk-TSLBZ26X.js +1 -0
  32. package/dist/chunk-VDNNLG6X.js +2 -0
  33. package/dist/chunk-VHAVHCQY.js +7 -0
  34. package/dist/chunk-VX43VBAX.cjs +7 -0
  35. package/dist/chunk-Z6WBFXJU.js +5 -0
  36. package/dist/chunk-ZUHOMK52.cjs +2 -0
  37. package/dist/collaboration/replication.cjs +1 -1
  38. package/dist/collaboration/replication.d.ts +50 -5
  39. package/dist/collaboration/replication.js +1 -1
  40. package/dist/collaboration.cjs +1 -1
  41. package/dist/collaboration.d.ts +98 -6
  42. package/dist/collaboration.js +1 -1
  43. package/dist/contracts/document.d.ts +17 -2
  44. package/dist/contracts/editor.d.ts +19 -9
  45. package/dist/contracts/interaction.d.ts +29 -0
  46. package/dist/contracts/modules.cjs +1 -1
  47. package/dist/contracts/modules.d.ts +29 -16
  48. package/dist/contracts/modules.js +1 -1
  49. package/dist/contracts/types.d.ts +10 -1
  50. package/dist/{custom-node-writes-Cy9imOjA.d.ts → custom-node-writes-cvL5rhcD.d.ts} +2 -2
  51. package/dist/{document-protection-Bp19Ad4I.d.ts → document-protection-BAGVGqaP.d.ts} +1 -1
  52. package/dist/{editor-DYUlyKmb.d.ts → editor-Ci7IZGmG.d.ts} +410 -163
  53. package/dist/editor.cjs +1 -1
  54. package/dist/editor.css +5 -5
  55. package/dist/editor.d.ts +417 -31
  56. package/dist/editor.js +1 -1
  57. package/dist/export.cjs +2 -2
  58. package/dist/export.d.ts +37 -15
  59. package/dist/export.js +2 -2
  60. package/dist/failure-NS2lsya4.d.ts +115 -0
  61. package/dist/{font-resolver-u_nE0PI1.d.ts → font-resolver-BVQB14qT.d.ts} +1 -1
  62. package/dist/{headless-document-view-R9bzzepb.d.ts → headless-document-view-qH331moE.d.ts} +2 -2
  63. package/dist/{image-resources-DfagDguq.d.ts → image-resources-BN-hUgCn.d.ts} +9 -9
  64. package/dist/{index-Docw8Dcb.d.ts → index-Bsg7oIKP.d.ts} +270 -115
  65. package/dist/index.cjs +1 -1
  66. package/dist/index.d.ts +46 -18
  67. package/dist/index.js +1 -1
  68. package/dist/{layout-shaping-DWitwY73.d.ts → layout-shaping-BEyuiQOk.d.ts} +1 -1
  69. package/dist/layout.cjs +1 -1
  70. package/dist/layout.d.ts +177 -249
  71. package/dist/layout.js +1 -1
  72. package/dist/{note-properties-CmfvOJsi.d.ts → note-properties-4Y9o6Gyk.d.ts} +1 -1
  73. package/dist/{omml-equation-CZ6IG2ja.d.ts → omml-equation-CuzBL5DD.d.ts} +1 -1
  74. package/dist/output.cjs +1 -1
  75. package/dist/output.d.ts +18 -7
  76. package/dist/output.js +1 -1
  77. package/dist/{protocol-DniKeDb8.d.ts → protocol-Bqk4Izjc.d.ts} +48 -7
  78. package/dist/review-pane-D9jm8DcY.d.ts +128 -0
  79. package/dist/{review-paragraph-order-Dc8Q6tfM.d.ts → review-paragraph-order-DT-n6ouC.d.ts} +5 -2
  80. package/dist/{revision-projection-DfWxdBqA.d.ts → revision-projection-DZ4kKVev.d.ts} +74 -3
  81. package/dist/{semantic-cell-selection-Dy_BmmpL.d.ts → semantic-cell-selection-D9D1KSXq.d.ts} +8 -6
  82. package/dist/{semantic-interaction-CvFAj0GR.d.ts → semantic-interaction-CIC-PooQ.d.ts} +25 -34
  83. package/dist/{semantic-paint-Bk9wIXdZ.d.ts → semantic-paint-BME37OMv.d.ts} +57 -5
  84. package/dist/semantic-record-queries-CBlZqZNa.d.ts +177 -0
  85. package/dist/{semantic-records-COqi8pjP.d.ts → semantic-records-4B3WwFAi.d.ts} +84 -42
  86. package/dist/store.cjs +1 -1
  87. package/dist/store.d.ts +165 -137
  88. package/dist/store.js +1 -1
  89. package/dist/{tree-package-fragment-YPyYC1aD.d.ts → tree-package-fragment-BeeKxDw8.d.ts} +77 -57
  90. package/dist/{tree-session-contract-AeY2v0x9.d.ts → tree-session-contract-CVbmlMlq.d.ts} +7 -5
  91. package/dist/{types-barrel-BO73JqHG.d.ts → types-barrel-D3xCgQX6.d.ts} +595 -471
  92. package/package.json +3 -3
  93. package/dist/chunk-2BK4G4ZN.js +0 -2
  94. package/dist/chunk-2SJX44PC.cjs +0 -2
  95. package/dist/chunk-5BIASAN3.js +0 -1
  96. package/dist/chunk-6SEIXJTX.js +0 -1
  97. package/dist/chunk-73PG6L2X.js +0 -1
  98. package/dist/chunk-7RJSH72J.cjs +0 -5
  99. package/dist/chunk-AGKIHLWQ.cjs +0 -1
  100. package/dist/chunk-AN6WM4X4.js +0 -2
  101. package/dist/chunk-ANZ44KQT.cjs +0 -12
  102. package/dist/chunk-CYT3OQFZ.cjs +0 -1
  103. package/dist/chunk-DDGGSBAN.js +0 -12
  104. package/dist/chunk-EEAV3WIN.js +0 -3
  105. package/dist/chunk-ELQFXMJ5.cjs +0 -1
  106. package/dist/chunk-EYK4K2J6.js +0 -1
  107. package/dist/chunk-JNTETUNZ.cjs +0 -1
  108. package/dist/chunk-L6V3IJ3S.js +0 -5
  109. package/dist/chunk-LWCI65EL.js +0 -1
  110. package/dist/chunk-LZDI4P6I.cjs +0 -1
  111. package/dist/chunk-NS22DVWT.cjs +0 -2
  112. package/dist/chunk-QIE3YTU4.cjs +0 -2
  113. package/dist/chunk-QVBFPAGO.js +0 -5
  114. package/dist/chunk-RCCOLZEQ.js +0 -2
  115. package/dist/chunk-SUN62YU6.cjs +0 -5
  116. package/dist/chunk-TKQH7BNE.cjs +0 -1
  117. package/dist/chunk-TKR2MXX4.cjs +0 -3
  118. package/dist/chunk-UJL2GDIM.cjs +0 -25
  119. package/dist/chunk-WQTADNHK.cjs +0 -27
  120. package/dist/chunk-XSHXBJ2J.js +0 -25
  121. package/dist/chunk-YXZEBTDF.js +0 -27
  122. package/dist/failure-BIPVQbRm.d.ts +0 -65
package/dist/editor.d.ts CHANGED
@@ -1,36 +1,50 @@
1
- import { O as OoxmlPart, aD as TreeDocColorValue, r as ColorValue, ab as DrawingPositionInput, A as ParagraphTabStop } from './types-barrel-BO73JqHG.js';
2
- export { aE as IMAGE_WRAP_TARGETS, aa as ImageWrapTarget, z as ParagraphFlags, R as ReviewModelInput, aF as TEXT_FORM_FORMATS } from './types-barrel-BO73JqHG.js';
3
- export { D as DEFAULT_IMAGE_RESOURCE_LIMITS, a as ImageDecodePort, I as ImageResourceLimits, R as RenderableImageMime, S as SupportedImageMime, c as VectorImageMime, r as resolveImageResourceLimits, d as resolveSvgIntrinsicSize, s as sniffImageMime, v as validateRasterHeader } from './image-resources-DfagDguq.js';
4
- export { CollectReviewItems, EditorModule, EditorModuleRegistry, ReviewModuleContribution, resolveEditorModules } from './contracts/modules.js';
5
- import { T as TreeDocxSessionView, f as DocumentThemeColorEntry } from './tree-session-contract-AeY2v0x9.js';
6
- export { a as TreeApplyResult } from './tree-session-contract-AeY2v0x9.js';
7
- import { a as FontConfiguration, E as EditorFontError, d as EditorSnapshot, e as EditorCommand, C as CanResult, Z as ZoomMode, f as ClearAnchorHighlightOptions, A as AnchorHighlightOptions, S as ScrollToAnchorOptions, g as AnchorHighlightAnimation, H as HighlightRange, h as Editor, i as HighlightResult, j as HighlightOptions, T as TextMatch } from './editor-DYUlyKmb.js';
8
- export { k as HighlightHit, l as HighlightRect, I as ImageContext, m as ImageCropPercent, n as ImageCropPermille, o as SelectedImageState, p as TrackedChangeFilterMode, q as TrackedChangePredicate, r as cropPercentFromCropPermille, s as cropPercentFromPermille, t as cropPercentFromSourceCrop, u as cropPermilleFromCropPercent, v as cropPermilleFromPercent, w as sourceCropFromCropPercent, x as validateImageCropPercent } from './editor-DYUlyKmb.js';
9
- import { L as LayoutShapingInstrumentation, a as LayoutShapingOptions } from './layout-shaping-DWitwY73.js';
10
- export { d as disposeLayoutShaping } from './layout-shaping-DWitwY73.js';
11
- export { C as ComposeFontOriginsOptions, D as DEFAULT_FONT, b as FONT_RESOLVER_BRAND, c as FONT_RESOLVER_MARK_KEY, d as FontConfigurationBase, e as FontConfigurationFragment, a as FontOrigin, F as FontOriginFailure, f as FontResolutionRequest, g as FontResolver, h as FontResolverMark, M as MAX_RESOLVER_FAMILIES, i as MarkedFontResolver, W as WORD_DEFAULT_FONT, j as composeFontConfiguration, k as composeFontOrigins, l as defineFontResolver, m as isFontResolver } from './font-resolver-u_nE0PI1.js';
12
- import { P as PaginatedSurfaceOptions, O as OpenPaginatedResult, a as PaginatedSurface, T as TableCommandPlan, D as DocxEditorInstance } from './index-Docw8Dcb.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 ChromeExportError, h as ChromeExportFormat, i as ChromeExportHandlers, j as ChromeExportResult, k as ChromeGroup, l as ChromeGroupId, m as ChromeMenu, n as ChromeMenuEntry, o as ChromeMenuId, p as ChromeMenuItemEntry, q as ChromeMenuSeparatorEntry, r as ChromeMenuSubmenuEntry, s as ChromePrintError, t as ChromePrintErrorCode, u as ChromePrintJob, v as ChromePrintOptions, w as ChromeSlotId, x as ContentControlWidgetChromeHandlers, y as ContentControlWidgetSession, z as CustomFontsOptions, B as CustomFontsResolver, E as DEFAULT_TABLE_CHROME_DRAFT, F as DocxEditorConfig, G as DrawingSelectionIntent, H as EMU_PER_POINT, I as EditorCommandExecute, J as EquationActivation, K as EquationChromeHandlers, L as EquationOps, M as FinalizedImageOverlayInteraction, N as FontLoadFailure, Q as FontLoadFailureReason, R as FontMeasurementState, S as FontUrlSource, U as HistoryGroupBinding, V as HistoryGroupBindingOptions, W as HyperlinkActivation, X as HyperlinkChromeHandlers, Y as HyperlinkOps, Z as IMAGE_OVERLAY_NUDGE_PT, _ as IMAGE_OVERLAY_NUDGE_SHIFT_PT, $ as ImageInteractionSession, a0 as ImageOverlayScrollPort, a1 as ImageResizeHandle, a2 as ImageResizeResult, a3 as InvalidTextFormFieldChromeHandlers, a4 as InvalidTextFormFieldSession, a5 as LoadFontsRequest, a6 as LoadFontsResult, a7 as OverlayFrameRect, a8 as PaginatedSurfaceState, a9 as ParagraphPropertyEdit, aa as PopupChromeRegistrationOptions, ab as RemoteCaretLabelAnchor, ac as RemoteCaretLabelHost, ad as ReviewWriteIntent, ae as RunTableChromeCommandResult, af as SectionAnchor, ag as SectionBreakInsertType, ah as SelectedDrawingOverlayTarget, ai as SurfaceEquation, aj as SurfaceFormatting, ak as SurfaceHyperlink, al as SurfaceInsertImageInput, am as SurfaceNavigation, an as SurfaceOverlayCoordinates, ao as SurfaceParagraphFormat, ap as TABLE_BORDER_STYLE_OPTIONS, aq as TABLE_BORDER_TARGET_OPTIONS, ar as TABLE_BORDER_WIDTH_OPTIONS, as as TABLE_CHROME_SLOT_IDS, at as TableBorderStyleOption, au as TableBorderTargetOption, av as TableBorderTargetValue, aw as TableBorderWidthOption, ax as TableChromeDraft, ay as TableChromePick, az as TableChromeSlotId, aA as TableInteractionLabelKey, aB as TextFormFieldChromeHandlers, aC as TextFormFieldDialogSession, aD as ToolbarCommandState, aE as ToolbarSlotValue, aF as ToolbarValueMap, aG as ToolbarValueSlot, aH as applyTableChromePick, aI as bindHistoryGroup, aJ as blankDocumentBytes, aK as canExecuteImageCommand, aL as captureImageMutationPreconditions, aM as chromeControlCount, aN as chromeMenuSlots, aO as chromeProbeForSlot, aP as chromeSlotId, aQ as chromeSlotIsToggle, aR as commandExecOptions, aS as commandForSlot, aT as commandForSlotValue, aU as commandForTableChromeSlotValue, aV as computeImageResizeResult, aW as computeMovedImagePosition, aX as computeResizedImageExtentEmu, aY as createDocxEditor, aZ as createFontSource, a_ as createImageOverlayScrollPort, a$ as cssPixelsToLayoutPoints, b0 as customFonts, b1 as defaultChromeGroups, b2 as defaultTableLabel, b3 as emuToOverlayPoints, b4 as equationAtPosition, b5 as executeImageCommand, b6 as finalizeImageOverlayInteraction, b7 as formattingBarChromeGroups, b8 as isChromePrintShortcut, b9 as isStaleImageInteractionCommit, ba as isTableChromeSlot, bb as layoutPointsToCssPixels, bc as loadFonts, bd as overlayFrameToSheetCssPixels, be as overlayHostOrigin, bf as pointsToEmu, bg as probeTableChromeCommand, bh as resizePreservesAspect, bi as runChromeExport, bj as runChromePrint, bk as runSave, bl as runTableChromeCommand, bm as runTableCommand, bn as runToolbarCommand, bo as selectedDrawingOverlayTargetOf, bp as selectedImageStateOf, bq as surfacePaintScale, br as tableChromeIconPaths, bs as tableChromeLabelKeyForTarget, bt as tableChromeToolbarState, bu as tableChromeVisible, bv as tableCommandToolbarState, bw as toolbarCommandState, bx as toolbarCommandStates } from './index-Docw8Dcb.js';
14
- import { a as AutomationCapabilities, b as AutomationHost } from './protocol-DniKeDb8.js';
15
- import { S as SemanticLayout } from './semantic-records-COqi8pjP.js';
16
- export { T as TextMeasurer } from './semantic-records-COqi8pjP.js';
17
- export { N as NavigationCommand, S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-CvFAj0GR.js';
18
- export { S as SectionProperties } from './semantic-cell-selection-Dy_BmmpL.js';
19
- export { F as FieldShadingMode, R as ReviewAuthorInfo, a as RevisionAuthorAssignments, b as RevisionAuthorStyle, c as RevisionStyles } from './semantic-paint-Bk9wIXdZ.js';
1
+ /**
2
+ * `@docx-editor.dev/core/editor` — the editor facade and its chrome vocabulary.
3
+ *
4
+ * `createDocxEditor` implements the full `Editor` contract over a paginated surface, and the
5
+ * chrome registry (`CHROME_GROUPS`, `ChromeSlotId`) is the toolbar taxonomy both adapters derive
6
+ * their default arrangement from. Enabled state has exactly one source — `toolbarCommandState`,
7
+ * which asks the engine — so a control and the engine can never disagree.
8
+ *
9
+ * @packageDocumentation
10
+ * @public
11
+ */
12
+ export { k as FieldResultsMode } from './tree-package-fragment-BeeKxDw8.js';
13
+ import { O as OoxmlPart, aG as TreeDocColorValue, r as ColorValue, ao as DrawingPositionInput, A as ParagraphTabStop } from './types-barrel-D3xCgQX6.js';
14
+ export { aH as IMAGE_WRAP_TARGETS, an as ImageWrapTarget, z as ParagraphFlags, R as ReviewModelInput, aI as TEXT_FORM_FORMATS } from './types-barrel-D3xCgQX6.js';
15
+ export { D as DEFAULT_IMAGE_RESOURCE_LIMITS, a as ImageDecodePort, I as ImageResourceLimits, R as RenderableImageMime, S as SupportedImageMime, c as VectorImageMime, r as resolveImageResourceLimits, d as resolveSvgIntrinsicSize, s as sniffImageMime, v as validateRasterHeader } from './image-resources-BN-hUgCn.js';
16
+ export { CollectReviewItems, EditorModule, EditorModuleRegistry, ReviewModuleContribution, RevisionMarkupDialog, RevisionMarkupDialogHost, resolveEditorModules } from './contracts/modules.js';
17
+ import { T as TreeDocxSessionView, f as DocumentThemeColorEntry } from './tree-session-contract-CVbmlMlq.js';
18
+ export { a as TreeApplyResult } from './tree-session-contract-CVbmlMlq.js';
19
+ import { a as FontConfiguration, E as EditorFontError, d as EditorSnapshot, e as EditorCommand, C as CanResult, Z as ZoomMode, f as ClearAnchorHighlightOptions, A as AnchorHighlightOptions, S as ScrollToAnchorOptions, g as ScrollPlacement, h as AnchorHighlightAnimation, H as HighlightRange, i as Editor, j as HighlightResult, k as HighlightOptions, T as TextMatch } from './editor-Ci7IZGmG.js';
20
+ export { l as HighlightHit, m as HighlightRect, I as ImageContext, n as ImageCropPercent, o as ImageCropPermille, R as ReviewItemHit, p as SelectedImageState, q as TrackedChangeFilterMode, r as TrackedChangePredicate, s as cropPercentFromCropPermille, t as cropPercentFromPermille, u as cropPercentFromSourceCrop, v as cropPermilleFromCropPercent, w as cropPermilleFromPercent, x as sourceCropFromCropPercent, y as validateImageCropPercent } from './editor-Ci7IZGmG.js';
21
+ import { L as LayoutShapingInstrumentation, a as LayoutShapingOptions } from './layout-shaping-BEyuiQOk.js';
22
+ export { d as disposeLayoutShaping } from './layout-shaping-BEyuiQOk.js';
23
+ export { C as ComposeFontOriginsOptions, D as DEFAULT_FONT, b as FONT_RESOLVER_BRAND, c as FONT_RESOLVER_MARK_KEY, d as FontConfigurationBase, e as FontConfigurationFragment, a as FontOrigin, F as FontOriginFailure, f as FontResolutionRequest, g as FontResolver, h as FontResolverMark, M as MAX_RESOLVER_FAMILIES, i as MarkedFontResolver, W as WORD_DEFAULT_FONT, j as composeFontConfiguration, k as composeFontOrigins, l as defineFontResolver, m as isFontResolver } from './font-resolver-BVQB14qT.js';
24
+ import { P as PaginatedSurfaceOptions, O as OpenPaginatedResult, a as PaginatedSurface, T as TableCommandPlan, D as DocxEditorInstance } from './index-Bsg7oIKP.js';
25
+ 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 ChromeExportError, h as ChromeExportFormat, i as ChromeExportHandlers, j as ChromeExportResult, k as ChromeExportView, l as ChromeGroup, m as ChromeGroupId, n as ChromeMenu, o as ChromeMenuEntry, p as ChromeMenuId, q as ChromeMenuItemEntry, r as ChromeMenuSeparatorEntry, s as ChromeMenuSubmenuEntry, t as ChromePrintError, u as ChromePrintErrorCode, v as ChromePrintJob, w as ChromePrintOptions, x as ChromeSlotId, y as ContentControlWidgetChromeHandlers, z as ContentControlWidgetSession, B as CustomFontsOptions, E as CustomFontsResolver, F as DEFAULT_TABLE_CHROME_DRAFT, G as DocxEditorConfig, H as DrawingSelectionIntent, I as EMU_PER_POINT, J as EditorCommandExecute, K as EquationActivation, L as EquationChromeHandlers, M as EquationOps, N as FinalizedImageOverlayInteraction, Q as FontLoadFailure, R as FontLoadFailureReason, S as FontMeasurementState, U as FontUrlSource, V as HistoryGroupBinding, W as HistoryGroupBindingOptions, X as HyperlinkActivation, Y as HyperlinkChromeHandlers, Z as HyperlinkOps, _ as IMAGE_OVERLAY_NUDGE_PT, $ as IMAGE_OVERLAY_NUDGE_SHIFT_PT, a0 as ImageInteractionSession, a1 as ImageOverlayScrollPort, a2 as ImageResizeHandle, a3 as ImageResizeResult, a4 as InvalidTextFormFieldChromeHandlers, a5 as InvalidTextFormFieldSession, a6 as LoadFontsRequest, a7 as LoadFontsResult, a8 as OpeningIndicatorHost, a9 as OverlayFrameRect, aa as PaginatedSurfaceState, ab as ParagraphPropertyEdit, ac as PopupChromeRegistrationOptions, ad as RemoteCaretLabelAnchor, ae as RemoteCaretLabelHost, af as ReviewWriteIntent, ag as RunTableChromeCommandResult, ah as SectionAnchor, ai as SectionBreakInsertType, aj as SelectedDrawingOverlayTarget, ak as SurfaceEquation, al as SurfaceFormatting, am as SurfaceHyperlink, an as SurfaceInsertImageInput, ao as SurfaceNavigation, ap as SurfaceOverlayCoordinates, aq as SurfaceParagraphFormat, ar as TABLE_BORDER_STYLE_OPTIONS, as as TABLE_BORDER_TARGET_OPTIONS, at as TABLE_BORDER_WIDTH_OPTIONS, au as TABLE_CHROME_SLOT_IDS, av as TableBorderStyleOption, aw as TableBorderTargetOption, ax as TableBorderTargetValue, ay as TableBorderWidthOption, az as TableChromeDraft, aA as TableChromePick, aB as TableChromeSlotId, aC as TableInteractionLabelKey, aD as TextFormFieldChromeHandlers, aE as TextFormFieldDialogSession, aF as ToolbarCommandState, aG as ToolbarSlotValue, aH as ToolbarValueMap, aI as ToolbarValueSlot, aJ as applyTableChromePick, aK as bindHistoryGroup, aL as blankDocumentBytes, aM as canExecuteImageCommand, aN as captureImageMutationPreconditions, aO as chromeControlCount, aP as chromeMenuSlots, aQ as chromeProbeForSlot, aR as chromeSlotId, aS as chromeSlotIsToggle, aT as commandExecOptions, aU as commandForSlot, aV as commandForSlotValue, aW as commandForTableChromeSlotValue, aX as computeImageResizeResult, aY as computeMovedImagePosition, aZ as computeResizedImageExtentEmu, a_ as createDocxEditor, a$ as createFontSource, b0 as createImageOverlayScrollPort, b1 as cssPixelsToLayoutPoints, b2 as customFonts, b3 as defaultChromeGroups, b4 as defaultTableLabel, b5 as emuToOverlayPoints, b6 as equationAtPosition, b7 as executeImageCommand, b8 as finalizeImageOverlayInteraction, b9 as formattingBarChromeGroups, ba as isChromePrintShortcut, bb as isStaleImageInteractionCommit, bc as isTableChromeSlot, bd as layoutPointsToCssPixels, be as loadFonts, bf as overlayFrameToSheetCssPixels, bg as overlayHostOrigin, bh as pointsToEmu, bi as probeTableChromeCommand, bj as resizePreservesAspect, bk as runChromeExport, bl as runChromePrint, bm as runSave, bn as runTableChromeCommand, bo as runTableCommand, bp as runToolbarCommand, bq as selectedDrawingOverlayTargetOf, br as selectedImageStateOf, bs as surfacePaintScale, bt as tableChromeIconPaths, bu as tableChromeLabelKeyForTarget, bv as tableChromeToolbarState, bw as tableChromeVisible, bx as tableCommandToolbarState, by as toolbarCommandState, bz as toolbarCommandStates } from './index-Bsg7oIKP.js';
26
+ import { a as AutomationCapabilities, b as AutomationHost } from './protocol-Bqk4Izjc.js';
27
+ import { S as SemanticLayout } from './semantic-records-4B3WwFAi.js';
28
+ export { T as TextMeasurer } from './semantic-records-4B3WwFAi.js';
29
+ import { b as ReviewPaneOverflow } from './review-pane-D9jm8DcY.js';
30
+ export { C as CommentMarkerStyle, D as DEFAULT_REVIEW_PANE, a as ResolvedReviewPane, c as ReviewPaneItemFields, d as ReviewPaneOpening, R as ReviewPaneOptions, e as RevisionDisplay, r as resolveReviewPane, f as reviewPaneListsItem } from './review-pane-D9jm8DcY.js';
31
+ export { D as DEFAULT_REVISION_MARKUP, f as REVISION_MARKUP_COLORS, d as ResolvedRevisionMarkup, a as ReviewDisplayMode, g as RevisionChangedLinesMark, h as RevisionDeletionMark, i as RevisionMarkupChromeHandlers, j as RevisionMarkupColor, R as RevisionMarkupDialogSession, k as RevisionMarkupMark, l as RevisionMarkupNamedColor, e as RevisionMarkupOptions, m as RevisionMarkupStyle, n as RevisionMarkupTextStyle, r as resolveRevisionMarkup } from './revision-projection-DZ4kKVev.js';
32
+ export { N as NavigationCommand, S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-CIC-PooQ.js';
33
+ export { S as SectionProperties } from './semantic-cell-selection-D9D1KSXq.js';
34
+ export { F as FieldShadingMode, R as ReviewAuthorInfo, b as RevisionAuthorAssignments, c as RevisionAuthorStyle, d as RevisionStyles } from './semantic-paint-BME37OMv.js';
20
35
  export { CollaborationModuleContribution } from './collaboration.js';
21
36
  import './editor-scope-OHPwVQ5l.js';
22
- import './revision-projection-DfWxdBqA.js';
23
- import './tree-package-fragment-YPyYC1aD.js';
24
37
  import './collaboration/replication.js';
25
- import './failure-BIPVQbRm.js';
26
- import './custom-node-writes-Cy9imOjA.js';
27
- import './headless-document-view-R9bzzepb.js';
38
+ import './failure-NS2lsya4.js';
39
+ import './custom-node-writes-cvL5rhcD.js';
40
+ import './headless-document-view-qH331moE.js';
28
41
  import 'prosemirror-model';
29
42
  import './contracts/document.js';
30
43
  import './contracts/interaction.js';
31
- import './document-protection-Bp19Ad4I.js';
32
- import './note-properties-CmfvOJsi.js';
33
- import './omml-equation-CZ6IG2ja.js';
44
+ import './document-protection-BAGVGqaP.js';
45
+ import './note-properties-4Y9o6Gyk.js';
46
+ import './omml-equation-CuzBL5DD.js';
47
+ import './semantic-record-queries-CBlZqZNa.js';
34
48
 
35
49
  declare function toEditorFontError(error: unknown): EditorFontError;
36
50
  declare function createLayoutShaping(configuration: FontConfiguration, instrumentation?: LayoutShapingInstrumentation): Promise<LayoutShapingOptions>;
@@ -222,6 +236,284 @@ declare function dragIndent(handle: RulerIndentHandle, positionTwips: number, in
222
236
  */
223
237
  declare function editorCommandKey(command: EditorCommand): string;
224
238
 
239
+ /**
240
+ * Collapse order: the first id here is the first group to leave the bar.
241
+ *
242
+ * Zoom goes first (a document you cannot format is worse than one you cannot scale), then
243
+ * the small standalone groups, then the paragraph controls, and text formatting and history
244
+ * last. A group the registry has but this list does not is collapsed before all of these,
245
+ * in reverse bar order — a host-added group has no declared standing, and the alternative
246
+ * is a new group that silently never collapses.
247
+ *
248
+ * @internal
249
+ */
250
+ declare const TOOLBAR_COLLAPSE_ORDER: readonly string[];
251
+ /**
252
+ * Groups that never move into the overflow menu.
253
+ *
254
+ * `review` holds the comments toggle and the editing-mode pill. The comments rail is
255
+ * reached through that toggle and nothing else, and a narrow window is exactly where a
256
+ * reader needs it, so burying it one menu deep is the wrong trade.
257
+ *
258
+ * @internal
259
+ */
260
+ declare const TOOLBAR_PINNED_GROUPS: ReadonlySet<string>;
261
+ /**
262
+ * Px of surplus a group must find before it comes back OUT of the overflow menu.
263
+ *
264
+ * Without it a value control that widens with its own value (font family going from
265
+ * "Arial" to "Times New Roman") pushes itself out, which frees the width that pulled it
266
+ * back in, forever. One-directional slack breaks the loop.
267
+ *
268
+ * @internal
269
+ */
270
+ declare const TOOLBAR_OVERFLOW_HYSTERESIS = 24;
271
+ /**
272
+ * What {@link toolbarOverflowGroups} measures against.
273
+ *
274
+ * @internal
275
+ */
276
+ interface ToolbarFitInput {
277
+ /** Content width of the bar, in px. `0` or less means "not measured yet". */
278
+ readonly available: number;
279
+ /** Group id -> measured width, separator and gaps included. */
280
+ readonly widths: ReadonlyMap<string, number>;
281
+ /** Collapsible groups, in bar order. */
282
+ readonly groups: readonly string[];
283
+ /** Collapse order; ids missing from it collapse first, in reverse bar order. */
284
+ readonly order: readonly string[];
285
+ /** Width of everything that never collapses: pinned groups, appended children, padding. */
286
+ readonly fixed: number;
287
+ /** Width the "⋯" trigger takes once it is shown. */
288
+ readonly more: number;
289
+ /** The previous answer, for the one-directional slack. */
290
+ readonly previous?: ReadonlySet<string> | undefined;
291
+ readonly hysteresis?: number;
292
+ }
293
+ /**
294
+ * The priority of a declared group: its place in {@link TOOLBAR_COLLAPSE_ORDER}, in steps of
295
+ * 10, so zoom is 10 and history is 90. A host group with a `priority` sorts among these, and
296
+ * a LOWER number leaves the bar first. The steps leave room between two built-in groups.
297
+ *
298
+ * @internal
299
+ */
300
+ declare function toolbarGroupPriority(id: string, order?: readonly string[]): number | undefined;
301
+ /**
302
+ * The collapse order actually used: the declared one, with undeclared groups first.
303
+ *
304
+ * `priorities` gives a group an explicit place among the declared ones (see
305
+ * {@link toolbarGroupPriority}), and overrides a declared group's own priority. Groups with
306
+ * neither collapse first, in reverse bar order. Two groups with the same priority collapse
307
+ * in reverse bar order too: the one further along the bar leaves first.
308
+ *
309
+ * @internal
310
+ */
311
+ declare function collapseOrder(groups: readonly string[], order?: readonly string[], priorities?: ReadonlyMap<string, number>): readonly string[];
312
+ /**
313
+ * One host group's placement request.
314
+ *
315
+ * @internal
316
+ */
317
+ interface ToolbarHostGroupPlacement {
318
+ readonly id: string;
319
+ /** The group this one follows. Absent, or unknown, places it after every group. */
320
+ readonly after?: string | undefined;
321
+ }
322
+ /**
323
+ * Bar order with the host's groups placed.
324
+ *
325
+ * A host group without `after` follows every built-in group, in order of appearance. A group
326
+ * with `after` follows the group it names, after any host groups already placed there, so
327
+ * several groups anchored to one place keep their order of appearance. An anchor may be
328
+ * another host group. An anchor that never resolves (an unknown id, or a cycle) places the
329
+ * group at the end.
330
+ *
331
+ * @internal
332
+ */
333
+ declare function arrangeToolbarGroups(builtIn: readonly string[], hosts: readonly ToolbarHostGroupPlacement[]): readonly string[];
334
+ /**
335
+ * The margin the "⋯" panel keeps from each viewport edge, in px.
336
+ *
337
+ * @internal
338
+ */
339
+ declare const TOOLBAR_PANEL_EDGE_MARGIN = 8;
340
+ /**
341
+ * Where the "⋯" panel opens, in viewport px.
342
+ *
343
+ * @internal
344
+ */
345
+ interface ToolbarPanelPlacement {
346
+ /** The panel's left edge. */
347
+ readonly left: number;
348
+ /** The widest the panel may be: the viewport less both margins. */
349
+ readonly maxWidth: number;
350
+ /** Which trigger edge the panel lines up with, or `clamped` when neither fits. */
351
+ readonly anchor: 'start' | 'end' | 'clamped';
352
+ }
353
+ /**
354
+ * Keep the "⋯" panel inside the viewport.
355
+ *
356
+ * The panel lines up with the trigger's end edge first, which suits a trigger at the end of
357
+ * the bar. When that runs past the left edge (a centered or narrow bar), it lines up with
358
+ * the trigger's start edge instead. When neither fits, it is clamped to the margins.
359
+ *
360
+ * @internal
361
+ */
362
+ declare function toolbarPanelPlacement(input: {
363
+ readonly triggerLeft: number;
364
+ readonly triggerRight: number;
365
+ readonly panelWidth: number;
366
+ readonly viewportWidth: number;
367
+ readonly margin?: number;
368
+ }): ToolbarPanelPlacement;
369
+ declare function sameIds(a: ReadonlySet<string>, b: ReadonlySet<string>): boolean;
370
+ /**
371
+ * True when two answers describe the same bar, so a re-render can be skipped.
372
+ *
373
+ * @internal
374
+ */
375
+ declare const sameOverflow: typeof sameIds;
376
+ /**
377
+ * The groups that must leave the bar for the rest of it to fit in one row.
378
+ *
379
+ * An unmeasured bar (`available <= 0`, which is every server render and every jsdom test)
380
+ * overflows nothing: the full toolbar is the honest answer when nothing is known about the
381
+ * space, and it is also what a host that opted out of overflow renders.
382
+ *
383
+ * @internal
384
+ */
385
+ declare function toolbarOverflowGroups(input: ToolbarFitInput): ReadonlySet<string>;
386
+ /**
387
+ * The left edge, in viewport px, of a popup that opens under a bar control.
388
+ *
389
+ * The popup lines up with the control's start edge, and moves left or right only as far as
390
+ * it must to keep {@link TOOLBAR_PANEL_EDGE_MARGIN} from each viewport edge. A popup wider
391
+ * than the viewport keeps its left margin.
392
+ *
393
+ * @internal
394
+ */
395
+ declare function toolbarPopupLeft(input: {
396
+ readonly anchorLeft: number;
397
+ readonly popupWidth: number;
398
+ readonly viewportWidth: number;
399
+ readonly margin?: number;
400
+ }): number;
401
+
402
+ /**
403
+ * Leading separator slot cost for one collapsible group (px).
404
+ *
405
+ * @internal
406
+ */
407
+ declare function separatorLeadingCost(separatorWidth: number, marginInlineStart: number, marginInlineEnd: number, gap: number): number;
408
+ /**
409
+ * Total width charged for one collapsible group on the bar.
410
+ *
411
+ * @internal
412
+ */
413
+ declare function collapsibleGroupCost(groupWidth: number, separatorLeading: number): number;
414
+ /**
415
+ * Flex gap charged after a fixed group or the More trigger.
416
+ *
417
+ * @internal
418
+ */
419
+ declare function trailingGapCost(width: number, gap: number): number;
420
+ /**
421
+ * Read inline margins from computed style (px).
422
+ *
423
+ * @internal
424
+ */
425
+ declare function readInlineMargins(style: CSSStyleDeclaration): {
426
+ readonly start: number;
427
+ readonly end: number;
428
+ };
429
+ /**
430
+ * Parse column gap from toolbar computed style.
431
+ *
432
+ * @internal
433
+ */
434
+ declare function readColumnGap(style: CSSStyleDeclaration): number;
435
+ /**
436
+ * What {@link barRoomWidth} measures against, all in px.
437
+ *
438
+ * @internal
439
+ */
440
+ interface BarRoomInput {
441
+ /** The bar's current content width: its client width less its inline padding. */
442
+ readonly own: number;
443
+ /** The parent's content-box width. `0` or less means it is unknown. */
444
+ readonly parentContent: number;
445
+ /** Width the bar's siblings take on the same line, gaps included. */
446
+ readonly siblings: number;
447
+ /** The bar's inline margins, auto margins excluded. */
448
+ readonly margins: number;
449
+ /** The bar's inline padding, border, and scrollbar. */
450
+ readonly chrome: number;
451
+ /** The bar's resolved `max-width` as a border-box width, or null for none. */
452
+ readonly maxWidth: number | null;
453
+ }
454
+ /**
455
+ * The content width the bar CAN take, which is what decides what fits.
456
+ *
457
+ * A bar that fills its container can take exactly the box it has. A bar as wide as its
458
+ * content (`width: max-content`, a floating pill) shrinks when a group leaves, so its own box
459
+ * never shows the room outside it, and a collapsed group would never come back. The room is
460
+ * the parent's content width, less the siblings on the same line and the bar's margins,
461
+ * capped by the bar's `max-width`. It is never less than the box the bar already has.
462
+ *
463
+ * @internal
464
+ */
465
+ declare function barRoomWidth(input: BarRoomInput): number;
466
+ /**
467
+ * True when one of the bar's controls runs past its content box, false when they all fit,
468
+ * and null when the bar has no layout to read (a zero-width box, as in a DOM without
469
+ * layout). Measured from the controls, not `scrollWidth`, so an open popup (the More panel,
470
+ * the table grid) that reaches past the bar's edge is not mistaken for an overflow.
471
+ *
472
+ * @internal
473
+ */
474
+ declare function controlsOverflow(bar: HTMLElement, style: CSSStyleDeclaration): boolean | null;
475
+ /**
476
+ * The bar's available content width.
477
+ *
478
+ * The bar's own box, except for a CONTENT-SIZED bar (specified width `auto`, `max-content`,
479
+ * `fit-content`, or `min-content`, and not growing as a flex item) in a layout this file
480
+ * understands: a block-level bar in a `block` or `flow-root` parent, or an item of a
481
+ * single-line flex row. That bar gets the room it can take, see {@link barRoomWidth}. A grid
482
+ * cell, a table cell, an inline bar, a floated bar, an explicit width, an out-of-flow bar, a
483
+ * `max-width` that does not resolve, a growing sibling with content, loose text in the row,
484
+ * and a browser without Typed OM all keep the bar's own box: the safe side, which collapses
485
+ * early rather than overflowing the next column.
486
+ *
487
+ * The parent-based room only ever brings groups BACK. A bar whose controls overflow its box
488
+ * measures its own box, so the fit collapses groups until they fit. When that overflow
489
+ * follows groups that came back from the room, the room was wrong: the bar's width becomes
490
+ * a cap until the parent's width changes, so the bar does not flicker.
491
+ *
492
+ * @internal
493
+ */
494
+ declare function readAvailableWidth(bar: HTMLElement, style: CSSStyleDeclaration): number;
495
+
496
+ /**
497
+ * Which LETTER a chord names, for the accelerators held with Alt.
498
+ *
499
+ * The CHARACTER first. A user reaching for Ctrl+Alt+F presses the key that types `f`,
500
+ * wherever their layout puts it, and Windows resolves accelerators the same way — so reading
501
+ * the physical position first sent Dvorak's footnote chord to the key that types `u`.
502
+ *
503
+ * `event.code` is the fallback, for the case that makes `key` unreadable: a modifier that
504
+ * COMPOSES. macOS turns Option+F into `ƒ`, Option+C into `ç` and Option+D into `∂`, none of
505
+ * them a letter — so falling through to the keycap is the only way those chords work there,
506
+ * and it costs nothing, because a `key` that IS a letter has already answered.
507
+ *
508
+ * Never both for one event: consulting `code` as well would claim a second chord wherever
509
+ * the two disagree, which is every remapped layout.
510
+ *
511
+ * Shared with the adapters, whose Find shortcut reads letters the same way.
512
+ *
513
+ * @internal
514
+ */
515
+ declare function chordLetter(event: KeyboardEvent): string;
516
+
225
517
  /** Planner-backed can/plan pair — production gate for table commands. Task 9 maps chrome slots. */
226
518
  declare function tableCommandState(command: EditorCommand, surface: PaginatedSurface): {
227
519
  readonly can: CanResult;
@@ -301,6 +593,15 @@ interface SurfaceExtent {
301
593
  }
302
594
  declare function surfaceExtent(layout: SemanticLayout, materialize: ReadonlySet<number> | undefined): SurfaceExtent;
303
595
 
596
+ /**
597
+ * The review pane's marker strip on one page edge, in CSS px: the markers and the
598
+ * add-comment button. The adapters' review gutters and the zoom fit share this value.
599
+ *
600
+ * Shared adapter glue, not for hosts.
601
+ *
602
+ * @internal
603
+ */
604
+ declare const REVIEW_MARKERS_GUTTER_PX = 44;
304
605
  /** The narrowest scale the editor contract accepts. One definition, every user. */
305
606
  declare const ZOOM_MIN = 0.1;
306
607
  /** The widest scale the editor contract accepts. */
@@ -340,6 +641,91 @@ declare function resolveZoomMode(mode: ZoomMode | 'auto'): ZoomMode | null;
340
641
  * memoization exists to keep asleep. The lane holds its object and compares by value here.
341
642
  */
342
643
  declare function sameZoomMode(a: ZoomMode, b: ZoomMode): boolean;
644
+ /**
645
+ * The scale the page is ENTITLED to when the review rail decides whether its full card
646
+ * column fits beside the page, or `null` when the page has no entitlement to measure.
647
+ *
648
+ * The rail must never measure the LIVE zoom under a fit: that zoom already includes the
649
+ * room the rail reserved last frame, so a threshold computed from it chases itself. The
650
+ * entitlement depends only on the mode (and on the held scale for a fixed mode), so the
651
+ * rail settles in one pass.
652
+ *
653
+ * - A fixed mode is entitled to the scale in force.
654
+ * - A fit with the review pane's `overflow: 'shrinkPage'` is entitled to its lower bound: the column stands
655
+ * whenever ANY scale the fit may take leaves room for it, and the fit then paints at
656
+ * the largest of those inside the padded box.
657
+ * - A capped fit is entitled to its cap.
658
+ * - An uncapped fit returns `null`: it fills whatever box it is given, so the full column
659
+ * always stands.
660
+ *
661
+ * Shared adapter glue for the review gutter, not for hosts.
662
+ *
663
+ * @internal
664
+ */
665
+ declare function reviewPaneEntitledZoom(mode: ZoomMode | undefined, zoom: number, overflow?: ReviewPaneOverflow): number | null;
666
+
667
+ /** How {@link listenForPopupEscape} decides and acts. @internal */
668
+ interface PopupEscapeOptions {
669
+ /** The popup's root. Its `ownerDocument` receives the listener. */
670
+ readonly popup: HTMLElement;
671
+ /** Whether a node belongs to the popup (its trigger, list, or a separate panel). */
672
+ readonly contains: (node: Node) => boolean;
673
+ /** Elements of this editor beyond its `.docx-editor` container, such as the viewport. */
674
+ readonly editorElements?: () => readonly (Element | null | undefined)[];
675
+ /**
676
+ * The chrome root that holds the popup, such as the toolbar or the menu bar. It scopes
677
+ * itself with its own `.docx-editor` class, and a key from it counts as this editor's.
678
+ */
679
+ readonly chromeRoot?: () => Element | null | undefined;
680
+ /** Return true to leave this Escape to someone else (an input that owns the key). */
681
+ readonly skip?: (event: KeyboardEvent) => boolean;
682
+ /** Close the popup. `fromInside` is true when the key came from inside the popup. */
683
+ readonly close: (fromInside: boolean) => void;
684
+ }
685
+ /**
686
+ * The nearest `.docx-editor` around `from` that holds the painted pages, or null.
687
+ *
688
+ * Chrome parts carry their own styling-only `docx-editor` class, so the first match from
689
+ * a toolbar is the toolbar. The instance container is the first one with pages inside.
690
+ *
691
+ * @internal
692
+ */
693
+ declare function editorInstanceScope(from: Element | null): Element | null;
694
+ /**
695
+ * Close an open toolbar popup on Escape, ahead of the surface. Returns the disposer.
696
+ *
697
+ * Shared adapter glue, not for hosts.
698
+ *
699
+ * @internal
700
+ */
701
+ declare function listenForPopupEscape(options: PopupEscapeOptions): () => void;
702
+ /**
703
+ * Whether a nested popup inside `panel` is open. Its own Escape listener closes it, and
704
+ * the panel stays open for the next Escape.
705
+ *
706
+ * @internal
707
+ */
708
+ declare function hasOpenNestedPopup(panel: Element | null): boolean;
709
+ /** How {@link listenForPopupFocusLeave} decides. @internal */
710
+ interface PopupFocusLeaveOptions {
711
+ /** The popup's root. Its `ownerDocument` receives the listener. */
712
+ readonly popup: HTMLElement;
713
+ /** Whether a node belongs to the popup (its trigger, list, or a separate panel). */
714
+ readonly contains: (node: Node) => boolean;
715
+ /** Close the popup. */
716
+ readonly close: () => void;
717
+ }
718
+ /**
719
+ * Close an open popup when focus moves outside it, for example to the find field after
720
+ * Ctrl+F or to a host input. Two moves keep the popup open: focus that lands in the painted
721
+ * pages, because a toolbar click leaves the caret there while the popup is open, and focus
722
+ * that enters one of this editor's modal dialogs, because the popup may have opened it and
723
+ * the dialog returns focus to its opener when it closes. A host's own modal dialog closes
724
+ * the popup like any other control. Returns the disposer.
725
+ *
726
+ * @internal
727
+ */
728
+ declare function listenForPopupFocusLeave(options: PopupFocusLeaveOptions): () => void;
343
729
 
344
730
  /** Validate a position input, refusing offsets or bases outside what OOXML allows. */
345
731
  declare function validateDrawingPositionInput(position: DrawingPositionInput): boolean;
@@ -709,7 +1095,7 @@ declare function calendarDateFromText(text: string, locale?: string): string | n
709
1095
  declare function calendarMonthNames(locale?: string): readonly string[];
710
1096
 
711
1097
  /** Shared focus and placement for engine and host value pop-ups. */
712
- /** Place an absolute popup against an anchor, within the sheet and visible scroller. @public */
1098
+ /** Place a popup against an anchor, within the viewport or its visible sheet. @public */
713
1099
  declare function positionContentControlPopup(panel: HTMLElement, anchor: HTMLElement): void;
714
1100
  /** Follow scrolling, zoom, and size changes. Call the returned cleanup when the popup closes. @public */
715
1101
  declare function observeContentControlPopup(panel: HTMLElement, anchor: HTMLElement): () => void;
@@ -825,7 +1211,7 @@ interface NavigateToChangeOptions extends ScrollToAnchorOptions {
825
1211
  /** Move the caret and focus to the changed range start. Default: false. */
826
1212
  readonly focus?: boolean;
827
1213
  /** Target alignment. Default: center. centerIfNeeded preserves scroll for an already visible target. */
828
- readonly block?: 'start' | 'center' | 'centerIfNeeded' | 'nearest';
1214
+ readonly block?: ScrollPlacement;
829
1215
  }
830
1216
  /** External file transport stays in your application. Reload resets selection and undo history. @public */
831
1217
  interface DocumentRefresh {
@@ -1004,5 +1390,5 @@ interface DocumentSearch {
1004
1390
  */
1005
1391
  declare function createDocumentSearch(editor: Editor): DocumentSearch;
1006
1392
 
1007
- export { AUTO_ZOOM_MODE, AnchorHighlightAnimation, AnchorHighlightOptions, BROWSER_AUTOMATION_CAPABILITIES, CONTENT_CONTROL_PICTURE_ACCEPT, ClearAnchorHighlightOptions, DRAWING_REL_FROM_H, DRAWING_REL_FROM_V, DocumentRefreshError, DocxEditorInstance, DrawingPositionInput, FIT_WIDTH_ZOOM_MODE, HIGHLIGHT_REFRESH_MS, HighlightOptions, HighlightRange, HighlightResult, LOADING_SNAPSHOT, NO_MIXED_FIELDS, OpenPaginatedResult, PX_PER_CM, PX_PER_INCH, PaginatedSurface, PaginatedSurfaceOptions, ParagraphTabStop, SEARCH_DEBOUNCE_MS, SEARCH_HIGHLIGHT_PRIORITY, SEARCH_HIGHLIGHT_SET, SEARCH_MATCH_LIMIT, SNAP_TWIPS_CM, SNAP_TWIPS_INCH, ScrollToAnchorOptions, TAB_ALIGNMENT_LABELS, TWIPS_PER_CM, TWIPS_PER_INCH, TreeDocxSessionView, ZOOM_MAX, ZOOM_MIN, alignmentAfterDirectionChange, applyThemeShade, applyThemeTint, calendarDateForKey, calendarDateFromText, calendarDateText, calendarMonth, calendarMonthNames, calendarMonthTitle, calendarWeekdays, changedFields, clipboardDropLandsText, clipboardPasteLandsContent, contentControlPopupKeyDown, contentControlPopupOpener, createBrowserAutomationHost, createContentControlListNavigation, createDocumentRefresh, createDocumentSearch, createLayoutShaping, dragIndent, editorCommandKey, firstDayOfWeek, formatInches, generateRulerTicks, handlePosition, inchesToTwips, isoDateOf, lowerColorValueForBorder, lowerColorValueForFill, mixedFieldsOf, mountPaginatedSurface, observeContentControlPopup, parseIsoDate, partOfNodeId, positionContentControlPopup, positionInputFromPropertiesCommand, propertiesCommandHasPositionFields, resolveColorValueToCss, resolveThemeColorHex, resolveZoomMode, rulerPageBox, sameTabStops, sameZoomMode, seedFields, shiftMonth, signedFirstLineOf, snapTwips, specialOf, surfaceExtent, tableCommandState, toEditorFontError, trapTabWithin, twipsToInches, validateDrawingPositionInput, validateSetImagePositionCommand, validateThemeModifier, watchHighlights, withTabStop };
1008
- export type { CalendarDay, CalendarMonth, CalendarMonthOptions, ClearRefreshHighlightsOptions, ColorLowerResult, ContentControlListNavigation, DocumentRefresh, DocumentRefreshState, DocumentSearch, DocumentSearchFindOptions, DocumentSearchHighlight, DocumentSearchNavigateOptions, DocumentSearchOptions, DocumentSearchState, HighlightSource, HighlightWatch, NavigateToChangeOptions, ParagraphDialogFields, ParagraphDialogMixed, ParagraphFlagKey, ParagraphFlagState, ParagraphFormatRead, ParagraphFormatUpdate, RefreshChange, RefreshChangeInput, RefreshFailureCode, RefreshHighlightAnimation, RefreshHighlightOptions, RefreshLocation, RefreshResult, RefreshSubmission, RefreshUpdate, RulerDragOptions, RulerIndent, RulerIndentHandle, RulerPageMetrics, RulerTick, RulerUnit, SpecialIndent, SurfaceExtent, TabAlignment, TabLeaderName, WatchHighlightsOptions };
1393
+ export { AUTO_ZOOM_MODE, AnchorHighlightAnimation, AnchorHighlightOptions, BROWSER_AUTOMATION_CAPABILITIES, CONTENT_CONTROL_PICTURE_ACCEPT, ClearAnchorHighlightOptions, DRAWING_REL_FROM_H, DRAWING_REL_FROM_V, DocumentRefreshError, DocxEditorInstance, DrawingPositionInput, FIT_WIDTH_ZOOM_MODE, HIGHLIGHT_REFRESH_MS, HighlightOptions, HighlightRange, HighlightResult, LOADING_SNAPSHOT, NO_MIXED_FIELDS, OpenPaginatedResult, PX_PER_CM, PX_PER_INCH, PaginatedSurface, PaginatedSurfaceOptions, ParagraphTabStop, REVIEW_MARKERS_GUTTER_PX, ReviewPaneOverflow, SEARCH_DEBOUNCE_MS, SEARCH_HIGHLIGHT_PRIORITY, SEARCH_HIGHLIGHT_SET, SEARCH_MATCH_LIMIT, SNAP_TWIPS_CM, SNAP_TWIPS_INCH, ScrollPlacement, ScrollToAnchorOptions, TAB_ALIGNMENT_LABELS, TOOLBAR_COLLAPSE_ORDER, TOOLBAR_OVERFLOW_HYSTERESIS, TOOLBAR_PANEL_EDGE_MARGIN, TOOLBAR_PINNED_GROUPS, TWIPS_PER_CM, TWIPS_PER_INCH, TreeDocxSessionView, ZOOM_MAX, ZOOM_MIN, alignmentAfterDirectionChange, applyThemeShade, applyThemeTint, arrangeToolbarGroups, barRoomWidth, calendarDateForKey, calendarDateFromText, calendarDateText, calendarMonth, calendarMonthNames, calendarMonthTitle, calendarWeekdays, changedFields, chordLetter, clipboardDropLandsText, clipboardPasteLandsContent, collapseOrder, collapsibleGroupCost, contentControlPopupKeyDown, contentControlPopupOpener, controlsOverflow, createBrowserAutomationHost, createContentControlListNavigation, createDocumentRefresh, createDocumentSearch, createLayoutShaping, dragIndent, editorCommandKey, editorInstanceScope, firstDayOfWeek, formatInches, generateRulerTicks, handlePosition, hasOpenNestedPopup, inchesToTwips, isoDateOf, listenForPopupEscape, listenForPopupFocusLeave, lowerColorValueForBorder, lowerColorValueForFill, mixedFieldsOf, mountPaginatedSurface, observeContentControlPopup, parseIsoDate, partOfNodeId, positionContentControlPopup, positionInputFromPropertiesCommand, propertiesCommandHasPositionFields, readAvailableWidth, readColumnGap, readInlineMargins, resolveColorValueToCss, resolveThemeColorHex, resolveZoomMode, reviewPaneEntitledZoom, rulerPageBox, sameOverflow, sameTabStops, sameZoomMode, seedFields, separatorLeadingCost, shiftMonth, signedFirstLineOf, snapTwips, specialOf, surfaceExtent, tableCommandState, toEditorFontError, toolbarGroupPriority, toolbarOverflowGroups, toolbarPanelPlacement, toolbarPopupLeft, trailingGapCost, trapTabWithin, twipsToInches, validateDrawingPositionInput, validateSetImagePositionCommand, validateThemeModifier, watchHighlights, withTabStop };
1394
+ export type { BarRoomInput, CalendarDay, CalendarMonth, CalendarMonthOptions, ClearRefreshHighlightsOptions, ColorLowerResult, ContentControlListNavigation, DocumentRefresh, DocumentRefreshState, DocumentSearch, DocumentSearchFindOptions, DocumentSearchHighlight, DocumentSearchNavigateOptions, DocumentSearchOptions, DocumentSearchState, HighlightSource, HighlightWatch, NavigateToChangeOptions, ParagraphDialogFields, ParagraphDialogMixed, ParagraphFlagKey, ParagraphFlagState, ParagraphFormatRead, ParagraphFormatUpdate, PopupEscapeOptions, PopupFocusLeaveOptions, RefreshChange, RefreshChangeInput, RefreshFailureCode, RefreshHighlightAnimation, RefreshHighlightOptions, RefreshLocation, RefreshResult, RefreshSubmission, RefreshUpdate, RulerDragOptions, RulerIndent, RulerIndentHandle, RulerPageMetrics, RulerTick, RulerUnit, SpecialIndent, SurfaceExtent, TabAlignment, TabLeaderName, ToolbarFitInput, ToolbarHostGroupPlacement, ToolbarPanelPlacement, WatchHighlightsOptions };
package/dist/editor.js CHANGED
@@ -1 +1 @@
1
- export{_a as AUTO_ZOOM_MODE,db as BROWSER_AUTOMATION_CAPABILITIES,wa as CHROME_GROUPS,Aa as CHROME_MENUS,Da as CHROME_UNAVAILABLE_KEY,Ia as CONTENT_CONTROL_PICTURE_ACCEPT,Mb as ChromeExportError,Ob as ChromePrintError,Y as DEFAULT_TABLE_CHROME_DRAFT,Db as DocumentRefreshError,Q as EMU_PER_POINT,$a as FIT_WIDTH_ZOOM_MODE,Fb as HIGHLIGHT_REFRESH_MS,O as IMAGE_OVERLAY_NUDGE_PT,P as IMAGE_OVERLAY_NUDGE_SHIFT_PT,c as LOADING_SNAPSHOT,vb as NO_MIXED_FIELDS,l as PX_PER_CM,k as PX_PER_INCH,Hb as SEARCH_DEBOUNCE_MS,Kb as SEARCH_HIGHLIGHT_PRIORITY,Jb as SEARCH_HIGHLIGHT_SET,Ib as SEARCH_MATCH_LIMIT,r as SNAP_TWIPS_CM,q 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,rb as TAB_ALIGNMENT_LABELS,p as TWIPS_PER_CM,o as TWIPS_PER_INCH,Za as ZOOM_MAX,Ya as ZOOM_MIN,zb as alignmentAfterDirectionChange,ea as applyTableChromePick,y as applyThemeShade,x as applyThemeTint,Cb as bindHistoryGroup,d as blankDocumentBytes,Qa as calendarDateForKey,Sa as calendarDateFromText,Ra as calendarDateText,Oa as calendarMonth,Ta as calendarMonthNames,Ma as calendarMonthTitle,Na as calendarWeekdays,M as canExecuteImageCommand,L as captureImageMutationPreconditions,yb as changedFields,Ca as chromeControlCount,Ba as chromeMenuSlots,ia as chromeProbeForSlot,xa as chromeSlotId,oa as chromeSlotIsToggle,f as clipboardDropLandsText,e as clipboardPasteLandsContent,v as commandExecOptions,ja as commandForSlot,la as commandForSlotValue,ka as commandForTableChromeSlotValue,lb as computeImageResizeResult,V as computeMovedImagePosition,U as computeResizedImageExtentEmu,Ga as contentControlPopupKeyDown,Ha as contentControlPopupOpener,eb as createBrowserAutomationHost,Ua as createContentControlListNavigation,Eb as createDocumentRefresh,Lb as createDocumentSearch,cb as createDocxEditor,i as createFontSource,mb as createImageOverlayScrollPort,b as createLayoutShaping,I as cropPercentFromCropPermille,G as cropPercentFromPermille,D as cropPercentFromSourceCrop,H as cropPermilleFromCropPercent,F as cropPermilleFromPercent,hb as cssPixelsToLayoutPoints,j as customFonts,ya as defaultChromeGroups,_ as defaultTableLabel,u as dragIndent,va as editorCommandKey,T as emuToOverlayPoints,Va as equationAtPosition,N as executeImageCommand,nb as finalizeImageOverlayInteraction,La as firstDayOfWeek,pb as formatInches,za as formattingBarChromeGroups,m as generateRulerTicks,s as handlePosition,qb as inchesToTwips,Pb as isChromePrintShortcut,W as isStaleImageInteractionCommit,$ as isTableChromeSlot,Ja as isoDateOf,gb as layoutPointsToCssPixels,h as loadFonts,A as lowerColorValueForBorder,B as lowerColorValueForFill,wb as mixedFieldsOf,Xa as mountPaginatedSurface,Fa as observeContentControlPopup,ib as overlayFrameToSheetCssPixels,jb as overlayHostOrigin,Ka as parseIsoDate,g as partOfNodeId,S as pointsToEmu,Ea as positionContentControlPopup,fa as probeTableChromeCommand,kb as resizePreservesAspect,C as resolveColorValueToCss,z as resolveThemeColorHex,ab as resolveZoomMode,n as rulerPageBox,Nb as runChromeExport,Qb as runChromePrint,sa as runSave,qa as runTableChromeCommand,ua as runTableCommand,ra as runToolbarCommand,xb as sameTabStops,bb as sameZoomMode,ub as seedFields,R as selectedDrawingOverlayTargetOf,K as selectedImageStateOf,Pa as shiftMonth,tb as signedFirstLineOf,t as snapTwips,E as sourceCropFromCropPercent,sb as specialOf,Wa as surfaceExtent,fb as surfacePaintScale,ha as tableChromeIconPaths,ga as tableChromeLabelKeyForTarget,ma as tableChromeToolbarState,aa as tableChromeVisible,X as tableCommandState,ta as tableCommandToolbarState,a as toEditorFontError,na as toolbarCommandState,pa as toolbarCommandStates,Bb as trapTabWithin,ob as twipsToInches,J as validateImageCropPercent,w as validateThemeModifier,Gb as watchHighlights,Ab as withTabStop}from'./chunk-YXZEBTDF.js';export{a as resolveEditorModules}from'./chunk-AJCCS53D.js';import'./chunk-AN6WM4X4.js';export{d as DEFAULT_FONT,i as FONT_RESOLVER_BRAND,h as FONT_RESOLVER_MARK_KEY,c as MAX_RESOLVER_FAMILIES,e as WORD_DEFAULT_FONT,f as composeFontConfiguration,n as composeFontOrigins,j as defineFontResolver,k as isFontResolver}from'./chunk-LWCI65EL.js';export{r as disposeLayoutShaping}from'./chunk-EEAV3WIN.js';import'./chunk-RIYSCEFQ.js';import'./chunk-RCCOLZEQ.js';import'./chunk-EYK4K2J6.js';import'./chunk-XSHXBJ2J.js';import'./chunk-QVBFPAGO.js';import'./chunk-5BIASAN3.js';import'./chunk-2BK4G4ZN.js';import'./chunk-73PG6L2X.js';import'./chunk-L6V3IJ3S.js';import'./chunk-6JIJOZDW.js';import'./chunk-6SEIXJTX.js';export{m as DEFAULT_IMAGE_RESOURCE_LIMITS,Ij as DRAWING_REL_FROM_H,Jj as DRAWING_REL_FROM_V,nd as IMAGE_WRAP_TARGETS,ri as TEXT_FORM_FORMATS,Lj as positionInputFromPropertiesCommand,Kj as propertiesCommandHasPositionFields,n as resolveImageResourceLimits,Sd as resolveSvgIntrinsicSize,Od as sniffImageMime,Hj as validateDrawingPositionInput,Td as validateRasterHeader,Mj as validateSetImagePositionCommand}from'./chunk-DDGGSBAN.js';import'./chunk-S6J4O5XP.js';
1
+ export{wb as AUTO_ZOOM_MODE,Cb as BROWSER_AUTOMATION_CAPABILITIES,Ta as CHROME_GROUPS,Xa as CHROME_MENUS,_a as CHROME_UNAVAILABLE_KEY,db as CONTENT_CONTROL_PICTURE_ACCEPT,nc as ChromeExportError,pc as ChromePrintError,c as DEFAULT_REVIEW_PANE,$ as DEFAULT_TABLE_CHROME_DRAFT,ec as DocumentRefreshError,N as EMU_PER_POINT,xb as FIT_WIDTH_ZOOM_MODE,gc as HIGHLIGHT_REFRESH_MS,W as IMAGE_OVERLAY_NUDGE_PT,X as IMAGE_OVERLAY_NUDGE_SHIFT_PT,f as LOADING_SNAPSHOT,Yb as NO_MIXED_FIELDS,o as PX_PER_CM,n as PX_PER_INCH,tb as REVIEW_MARKERS_GUTTER_PX,ic as SEARCH_DEBOUNCE_MS,lc as SEARCH_HIGHLIGHT_PRIORITY,kc as SEARCH_HIGHLIGHT_SET,jc as SEARCH_MATCH_LIMIT,u as SNAP_TWIPS_CM,t as SNAP_TWIPS_INCH,fa as TABLE_BORDER_STYLE_OPTIONS,ea as TABLE_BORDER_TARGET_OPTIONS,ga as TABLE_BORDER_WIDTH_OPTIONS,aa as TABLE_CHROME_SLOT_IDS,Ub as TAB_ALIGNMENT_LABELS,za as TOOLBAR_COLLAPSE_ORDER,Ba as TOOLBAR_OVERFLOW_HYSTERESIS,Fa as TOOLBAR_PANEL_EDGE_MARGIN,Aa as TOOLBAR_PINNED_GROUPS,s as TWIPS_PER_CM,r as TWIPS_PER_INCH,vb as ZOOM_MAX,ub as ZOOM_MIN,ac as alignmentAfterDirectionChange,ha as applyTableChromePick,B as applyThemeShade,A as applyThemeTint,Ea as arrangeToolbarGroups,Pa as barRoomWidth,dc as bindHistoryGroup,g as blankDocumentBytes,lb as calendarDateForKey,nb as calendarDateFromText,mb as calendarDateText,jb as calendarMonth,ob as calendarMonthNames,hb as calendarMonthTitle,ib as calendarWeekdays,U as canExecuteImageCommand,T as captureImageMutationPreconditions,$b as changedFields,Sa as chordLetter,Za as chromeControlCount,Ya as chromeMenuSlots,la as chromeProbeForSlot,Ua as chromeSlotId,ra as chromeSlotIsToggle,i as clipboardDropLandsText,h as clipboardPasteLandsContent,Da as collapseOrder,La as collapsibleGroupCost,y as commandExecOptions,ma as commandForSlot,oa as commandForSlotValue,na as commandForTableChromeSlotValue,Ob as computeImageResizeResult,R as computeMovedImagePosition,Q as computeResizedImageExtentEmu,bb as contentControlPopupKeyDown,cb as contentControlPopupOpener,Qa as controlsOverflow,Db as createBrowserAutomationHost,pb as createContentControlListNavigation,fc as createDocumentRefresh,mc as createDocumentSearch,Bb as createDocxEditor,l as createFontSource,Pb as createImageOverlayScrollPort,b as createLayoutShaping,L as cropPercentFromCropPermille,J as cropPercentFromPermille,G as cropPercentFromSourceCrop,K as cropPermilleFromCropPercent,I as cropPermilleFromPercent,Kb as cssPixelsToLayoutPoints,m as customFonts,Va as defaultChromeGroups,ba as defaultTableLabel,x as dragIndent,ya as editorCommandKey,Eb as editorInstanceScope,P as emuToOverlayPoints,qb as equationAtPosition,V as executeImageCommand,Qb as finalizeImageOverlayInteraction,gb as firstDayOfWeek,Sb as formatInches,Wa as formattingBarChromeGroups,p as generateRulerTicks,v as handlePosition,Gb as hasOpenNestedPopup,Tb as inchesToTwips,qc as isChromePrintShortcut,Z as isStaleImageInteractionCommit,ca as isTableChromeSlot,eb as isoDateOf,Jb as layoutPointsToCssPixels,Fb as listenForPopupEscape,Hb as listenForPopupFocusLeave,k as loadFonts,D as lowerColorValueForBorder,E as lowerColorValueForFill,Zb as mixedFieldsOf,sb as mountPaginatedSurface,ab as observeContentControlPopup,Lb as overlayFrameToSheetCssPixels,Mb as overlayHostOrigin,fb as parseIsoDate,j as partOfNodeId,O as pointsToEmu,$a as positionContentControlPopup,ia as probeTableChromeCommand,Ra as readAvailableWidth,Oa as readColumnGap,Na as readInlineMargins,Nb as resizePreservesAspect,F as resolveColorValueToCss,d as resolveReviewPane,C as resolveThemeColorHex,yb as resolveZoomMode,Ab as reviewPaneEntitledZoom,e as reviewPaneListsItem,q as rulerPageBox,oc as runChromeExport,rc as runChromePrint,va as runSave,ta as runTableChromeCommand,xa as runTableCommand,ua as runToolbarCommand,Ha as sameOverflow,_b as sameTabStops,zb as sameZoomMode,Xb as seedFields,Y as selectedDrawingOverlayTargetOf,S as selectedImageStateOf,Ka as separatorLeadingCost,kb as shiftMonth,Wb as signedFirstLineOf,w as snapTwips,H as sourceCropFromCropPercent,Vb as specialOf,rb as surfaceExtent,Ib as surfacePaintScale,ka as tableChromeIconPaths,ja as tableChromeLabelKeyForTarget,pa as tableChromeToolbarState,da as tableChromeVisible,_ as tableCommandState,wa as tableCommandToolbarState,a as toEditorFontError,qa as toolbarCommandState,sa as toolbarCommandStates,Ca as toolbarGroupPriority,Ia as toolbarOverflowGroups,Ga as toolbarPanelPlacement,Ja as toolbarPopupLeft,Ma as trailingGapCost,cc as trapTabWithin,Rb as twipsToInches,M as validateImageCropPercent,z as validateThemeModifier,hc as watchHighlights,bc as withTabStop}from'./chunk-LWDSDCMO.js';export{a as resolveEditorModules}from'./chunk-O5INAWZQ.js';import'./chunk-KKIJG3C6.js';export{d as DEFAULT_FONT,i as FONT_RESOLVER_BRAND,h as FONT_RESOLVER_MARK_KEY,c as MAX_RESOLVER_FAMILIES,e as WORD_DEFAULT_FONT,f as composeFontConfiguration,n as composeFontOrigins,j as defineFontResolver,k as isFontResolver}from'./chunk-VDNNLG6X.js';export{r as disposeLayoutShaping}from'./chunk-2RC2EPND.js';import'./chunk-RIYSCEFQ.js';import'./chunk-VHAVHCQY.js';import'./chunk-6EYYL7FL.js';export{Ua as DEFAULT_REVISION_MARKUP,Ta as REVISION_MARKUP_COLORS,Va as resolveRevisionMarkup}from'./chunk-FRXAOVTB.js';import'./chunk-Z6WBFXJU.js';import'./chunk-5CSUYANV.js';import'./chunk-E7BQA6UP.js';import'./chunk-TSLBZ26X.js';import'./chunk-J6BVWIDB.js';import'./chunk-6JIJOZDW.js';import'./chunk-ETTO6GK3.js';export{r as DEFAULT_IMAGE_RESOURCE_LIMITS,Lk as DRAWING_REL_FROM_H,Mk as DRAWING_REL_FROM_V,Ed as IMAGE_WRAP_TARGETS,Qi as TEXT_FORM_FORMATS,Ok as positionInputFromPropertiesCommand,Nk as propertiesCommandHasPositionFields,s as resolveImageResourceLimits,he as resolveSvgIntrinsicSize,de as sniffImageMime,Kk as validateDrawingPositionInput,ie as validateRasterHeader,Pk as validateSetImagePositionCommand}from'./chunk-4R3TEXMN.js';import'./chunk-S6J4O5XP.js';