@docx-editor.dev/core 2.27.0 → 2.29.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 (124) hide show
  1. package/dist/automation.cjs +1 -1
  2. package/dist/automation.d.ts +76 -16
  3. package/dist/automation.js +1 -1
  4. package/dist/binding.cjs +1 -1
  5. package/dist/binding.d.ts +31 -12
  6. package/dist/binding.js +1 -1
  7. package/dist/{index-CkQVRJtJ.d.ts → chrome-print-CAs51cpq.d.ts} +248 -115
  8. package/dist/chunk-236O4YQW.js +2 -0
  9. package/dist/chunk-4HENIAFG.js +1 -0
  10. package/dist/chunk-6JPL6ZAS.cjs +5 -0
  11. package/dist/chunk-6ZQP4HQ7.js +3 -0
  12. package/dist/{chunk-2GK7YQB2.cjs → chunk-7WQ7AAHW.cjs} +1 -1
  13. package/dist/chunk-BCXH4BXB.js +5 -0
  14. package/dist/chunk-BY2ACZZ6.cjs +1 -0
  15. package/dist/chunk-CAJEXXVG.cjs +4 -0
  16. package/dist/chunk-CPWLFPWC.js +30 -0
  17. package/dist/chunk-D7ZMDMPX.cjs +3 -0
  18. package/dist/chunk-DOHF6FA7.cjs +30 -0
  19. package/dist/chunk-DVX32P2P.js +27 -0
  20. package/dist/chunk-E4LOMDNL.js +1 -0
  21. package/dist/chunk-EKLM7NWB.cjs +7 -0
  22. package/dist/chunk-G3K63G7P.cjs +27 -0
  23. package/dist/chunk-G4HOFIKJ.js +1 -0
  24. package/dist/chunk-JLVBDYVQ.cjs +2 -0
  25. package/dist/chunk-LQX36Z5P.js +7 -0
  26. package/dist/chunk-LSZ6KPKK.js +1 -0
  27. package/dist/chunk-MM5QBMTE.cjs +1 -0
  28. package/dist/chunk-OMCG63ZF.js +1 -0
  29. package/dist/chunk-OSFOJTHU.cjs +18 -0
  30. package/dist/chunk-RCLZXP3B.js +2 -0
  31. package/dist/chunk-T6K2QYNZ.cjs +2 -0
  32. package/dist/chunk-TRGAVV2Y.js +4 -0
  33. package/dist/chunk-U4JZVSOE.js +2 -0
  34. package/dist/chunk-UHHYFIDT.cjs +1 -0
  35. package/dist/chunk-V3N4SOAK.cjs +1 -0
  36. package/dist/chunk-W35WTWAO.cjs +1 -0
  37. package/dist/chunk-YQ5G6LC7.js +18 -0
  38. package/dist/collaboration/replication.cjs +1 -1
  39. package/dist/collaboration/replication.d.ts +42 -6
  40. package/dist/collaboration/replication.js +1 -1
  41. package/dist/collaboration.cjs +1 -1
  42. package/dist/collaboration.d.ts +99 -7
  43. package/dist/collaboration.js +1 -1
  44. package/dist/contracts/document.d.ts +18 -3
  45. package/dist/contracts/editor.d.ts +19 -10
  46. package/dist/contracts/interaction.d.ts +31 -2
  47. package/dist/contracts/modules.cjs +1 -1
  48. package/dist/contracts/modules.d.ts +56 -8
  49. package/dist/contracts/modules.js +1 -1
  50. package/dist/contracts/types.d.ts +11 -2
  51. package/dist/{custom-node-writes-Vzpq9I8_.d.ts → custom-node-writes-Bn6uciLb.d.ts} +2 -2
  52. package/dist/diagnostic-context-B8M79cfK.d.ts +30 -0
  53. package/dist/diagnostic-hints-BeVjfNOv.d.ts +113 -0
  54. package/dist/{document-protection-9zpIHWTE.d.ts → document-protection-CUb55pl_.d.ts} +2 -2
  55. package/dist/{editor-B3OBYNrF.d.ts → editor-CZQZmTIU.d.ts} +770 -141
  56. package/dist/{editor-scope-OHPwVQ5l.d.ts → editor-scope-7o9xweiJ.d.ts} +1 -1
  57. package/dist/editor.cjs +1 -1
  58. package/dist/editor.css +5 -5
  59. package/dist/editor.d.ts +439 -33
  60. package/dist/editor.js +1 -1
  61. package/dist/export.cjs +2 -2
  62. package/dist/export.d.ts +23 -14
  63. package/dist/export.js +2 -2
  64. package/dist/failure-NS2lsya4.d.ts +115 -0
  65. package/dist/{font-resolver-DN0xNOf_.d.ts → font-resolver-lSBLirLR.d.ts} +3 -3
  66. package/dist/{headless-document-view-ICYqNkQ1.d.ts → headless-document-view-pp3q7wIh.d.ts} +2 -2
  67. package/dist/{image-resources-BDFxcu7W.d.ts → image-resources-tXLQShoC.d.ts} +10 -10
  68. package/dist/index.cjs +1 -1
  69. package/dist/index.d.ts +92 -20
  70. package/dist/index.js +1 -1
  71. package/dist/{layout-shaping-BvZD_VKP.d.ts → layout-shaping-BD-dF_rn.d.ts} +1 -1
  72. package/dist/layout.cjs +1 -1
  73. package/dist/layout.d.ts +168 -79
  74. package/dist/layout.js +1 -1
  75. package/dist/{note-properties-CkAk7g-n.d.ts → note-properties-qQUjO1GQ.d.ts} +3 -3
  76. package/dist/{omml-equation-DuczgG5o.d.ts → omml-equation-BUbU0utM.d.ts} +1 -1
  77. package/dist/output.cjs +1 -1
  78. package/dist/output.d.ts +18 -9
  79. package/dist/output.js +1 -1
  80. package/dist/{protocol-aKYr8r3u.d.ts → protocol-DYzzz2ej.d.ts} +44 -4
  81. package/dist/{review-paragraph-order-Ddj5d6rp.d.ts → review-paragraph-order-CN_0l2Cb.d.ts} +5 -2
  82. package/dist/{semantic-cell-selection-DoqYCz_F.d.ts → semantic-cell-selection-eYag3P47.d.ts} +8 -213
  83. package/dist/{semantic-interaction-G0bjmmmk.d.ts → semantic-interaction-kR_QB845.d.ts} +25 -34
  84. package/dist/{semantic-paint-CsMzF8-O.d.ts → semantic-paint-ZayFF3tD.d.ts} +17 -5
  85. package/dist/{semantic-record-queries-1du6lQqS.d.ts → semantic-record-queries-Bsgth6lv.d.ts} +1 -1
  86. package/dist/{semantic-records-B9OolWGN.d.ts → semantic-records-DQmumPgL.d.ts} +1367 -884
  87. package/dist/store.cjs +1 -1
  88. package/dist/store.d.ts +1611 -1586
  89. package/dist/store.js +1 -1
  90. package/dist/{tree-package-fragment-DYZIk1rY.d.ts → tree-package-store-CovjNARF.d.ts} +157 -137
  91. package/dist/{tree-session-contract-DQVJOOkv.d.ts → tree-session-contract-CZVAGl51.d.ts} +8 -6
  92. package/dist/{types-barrel-BFKR8Pzp.d.ts → types-barrel-DuC5QBNC.d.ts} +352 -231
  93. package/package.json +3 -3
  94. package/dist/chunk-4KZ6L5YF.cjs +0 -15
  95. package/dist/chunk-55AT3MOU.cjs +0 -25
  96. package/dist/chunk-6ZQMII6V.js +0 -1
  97. package/dist/chunk-7IGCWG4H.js +0 -2
  98. package/dist/chunk-7MYITTAH.js +0 -5
  99. package/dist/chunk-AVKVRU7Z.cjs +0 -5
  100. package/dist/chunk-CWRBFNK5.cjs +0 -5
  101. package/dist/chunk-DGPA3TST.cjs +0 -27
  102. package/dist/chunk-DNXVNQEO.js +0 -1
  103. package/dist/chunk-FQN4KSFL.cjs +0 -7
  104. package/dist/chunk-GVUOWHTO.cjs +0 -1
  105. package/dist/chunk-GWQJ5774.js +0 -5
  106. package/dist/chunk-HAQ72KD7.js +0 -1
  107. package/dist/chunk-HO5XFO32.cjs +0 -3
  108. package/dist/chunk-IGR23DV2.js +0 -1
  109. package/dist/chunk-JSIX2EOH.js +0 -3
  110. package/dist/chunk-K246T47S.cjs +0 -1
  111. package/dist/chunk-KAXOGCGA.js +0 -1
  112. package/dist/chunk-LZLTN5A3.cjs +0 -1
  113. package/dist/chunk-NBCVVZOM.cjs +0 -1
  114. package/dist/chunk-O5INAWZQ.js +0 -1
  115. package/dist/chunk-OHAXVTWG.cjs +0 -1
  116. package/dist/chunk-S74GRBNE.js +0 -7
  117. package/dist/chunk-UBLUVNZR.js +0 -27
  118. package/dist/chunk-UMRSBLO7.js +0 -15
  119. package/dist/chunk-VIPMGGUT.js +0 -25
  120. package/dist/chunk-WG4KMSX2.cjs +0 -2
  121. package/dist/chunk-WRLKVNNR.cjs +0 -1
  122. package/dist/chunk-ZU7IVN6G.js +0 -2
  123. package/dist/failure-BIPVQbRm.d.ts +0 -65
  124. package/dist/revision-projection-CSNFudZY.d.ts +0 -242
package/dist/editor.d.ts CHANGED
@@ -1,37 +1,48 @@
1
- import { O as OoxmlPart, aD as TreeDocColorValue, r as ColorValue, ab as DrawingPositionInput, A as ParagraphTabStop } from './types-barrel-BFKR8Pzp.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-BFKR8Pzp.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-BDFxcu7W.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 { F as FieldResultsMode } from './tree-package-store-CovjNARF.js';
13
+ import { O as OoxmlPart, aJ as TreeDocColorValue, r as ColorValue, _ as DrawingPositionInput, A as ParagraphTabStop } from './types-barrel-DuC5QBNC.js';
14
+ export { aK as IMAGE_WRAP_TARGETS, a1 as ImageWrapTarget, z as ParagraphFlags, R as ReviewModelInput, aL as TEXT_FORM_FORMATS } from './types-barrel-DuC5QBNC.js';
15
+ export { D as DEFAULT_IMAGE_RESOURCE_LIMITS, c as ImageDecodePort, b as ImageResourceLimits, R as RenderableImageMime, S as SupportedImageMime, a as VectorImageMime, r as resolveImageResourceLimits, d as resolveSvgIntrinsicSize, s as sniffImageMime, v as validateRasterHeader } from './image-resources-tXLQShoC.js';
4
16
  export { CollectReviewItems, EditorModule, EditorModuleRegistry, ReviewModuleContribution, RevisionMarkupDialog, RevisionMarkupDialogHost, resolveEditorModules } from './contracts/modules.js';
5
- import { T as TreeDocxSessionView, f as DocumentThemeColorEntry } from './tree-session-contract-DQVJOOkv.js';
6
- export { a as TreeApplyResult } from './tree-session-contract-DQVJOOkv.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-B3OBYNrF.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-B3OBYNrF.js';
9
- import { L as LayoutShapingInstrumentation, a as LayoutShapingOptions } from './layout-shaping-BvZD_VKP.js';
10
- export { d as disposeLayoutShaping } from './layout-shaping-BvZD_VKP.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-DN0xNOf_.js';
12
- import { P as PaginatedSurfaceOptions, O as OpenPaginatedResult, a as PaginatedSurface, T as TableCommandPlan, D as DocxEditorInstance } from './index-CkQVRJtJ.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 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 OverlayFrameRect, a9 as PaginatedSurfaceState, aa as ParagraphPropertyEdit, ab as PopupChromeRegistrationOptions, ac as RemoteCaretLabelAnchor, ad as RemoteCaretLabelHost, ae as ReviewWriteIntent, af as RunTableChromeCommandResult, ag as SectionAnchor, ah as SectionBreakInsertType, ai as SelectedDrawingOverlayTarget, aj as SurfaceEquation, ak as SurfaceFormatting, al as SurfaceHyperlink, am as SurfaceInsertImageInput, an as SurfaceNavigation, ao as SurfaceOverlayCoordinates, ap as SurfaceParagraphFormat, aq as TABLE_BORDER_STYLE_OPTIONS, ar as TABLE_BORDER_TARGET_OPTIONS, as as TABLE_BORDER_WIDTH_OPTIONS, at as TABLE_CHROME_SLOT_IDS, au as TableBorderStyleOption, av as TableBorderTargetOption, aw as TableBorderTargetValue, ax as TableBorderWidthOption, ay as TableChromeDraft, az as TableChromePick, aA as TableChromeSlotId, aB as TableInteractionLabelKey, aC as TextFormFieldChromeHandlers, aD as TextFormFieldDialogSession, aE as ToolbarCommandState, aF as ToolbarSlotValue, aG as ToolbarValueMap, aH as ToolbarValueSlot, aI as applyTableChromePick, aJ as bindHistoryGroup, aK as blankDocumentBytes, aL as canExecuteImageCommand, aM as captureImageMutationPreconditions, aN as chromeControlCount, aO as chromeMenuSlots, aP as chromeProbeForSlot, aQ as chromeSlotId, aR as chromeSlotIsToggle, aS as commandExecOptions, aT as commandForSlot, aU as commandForSlotValue, aV as commandForTableChromeSlotValue, aW as computeImageResizeResult, aX as computeMovedImagePosition, aY as computeResizedImageExtentEmu, aZ as createDocxEditor, a_ as createFontSource, a$ as createImageOverlayScrollPort, b0 as cssPixelsToLayoutPoints, b1 as customFonts, b2 as defaultChromeGroups, b3 as defaultTableLabel, b4 as emuToOverlayPoints, b5 as equationAtPosition, b6 as executeImageCommand, b7 as finalizeImageOverlayInteraction, b8 as formattingBarChromeGroups, b9 as isChromePrintShortcut, ba as isStaleImageInteractionCommit, bb as isTableChromeSlot, bc as layoutPointsToCssPixels, bd as loadFonts, be as overlayFrameToSheetCssPixels, bf as overlayHostOrigin, bg as pointsToEmu, bh as probeTableChromeCommand, bi as resizePreservesAspect, bj as runChromeExport, bk as runChromePrint, bl as runSave, bm as runTableChromeCommand, bn as runTableCommand, bo as runToolbarCommand, bp as selectedDrawingOverlayTargetOf, bq as selectedImageStateOf, br as surfacePaintScale, bs as tableChromeIconPaths, bt as tableChromeLabelKeyForTarget, bu as tableChromeToolbarState, bv as tableChromeVisible, bw as tableCommandToolbarState, bx as toolbarCommandState, by as toolbarCommandStates } from './index-CkQVRJtJ.js';
14
- import { a as AutomationCapabilities, b as AutomationHost } from './protocol-aKYr8r3u.js';
15
- import { S as SemanticLayout } from './semantic-records-B9OolWGN.js';
16
- export { T as TextMeasurer } from './semantic-records-B9OolWGN.js';
17
- 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-CSNFudZY.js';
18
- export { N as NavigationCommand, S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-G0bjmmmk.js';
19
- export { S as SectionProperties } from './semantic-cell-selection-DoqYCz_F.js';
20
- export { F as FieldShadingMode, R as ReviewAuthorInfo, b as RevisionAuthorAssignments, c as RevisionAuthorStyle, d as RevisionStyles } from './semantic-paint-CsMzF8-O.js';
17
+ import { T as TreeDocxSessionView, f as DocumentThemeColorEntry } from './tree-session-contract-CZVAGl51.js';
18
+ export { a as TreeApplyResult } from './tree-session-contract-CZVAGl51.js';
19
+ import { P as FontConfiguration, y as EditorFontError, O as EditorSnapshot, b as EditorCommand, C as CanResult, aK as ZoomMode, aL as ReviewPaneOverflow, e as ClearAnchorHighlightOptions, c as AnchorHighlightOptions, as as ScrollToAnchorOptions, ar as ScrollPlacement, A as AnchorHighlightAnimation, a1 as HighlightRange, s as Editor, a3 as HighlightResult, a0 as HighlightOptions, aF as TextMatch } from './editor-CZQZmTIU.js';
20
+ export { aM as CommentMarkerStyle, aN as DEFAULT_REVIEW_PANE, $ as HighlightHit, a2 as HighlightRect, a6 as ImageContext, a7 as ImageCropPercent, aO as ImageCropPermille, aP as ResolvedReviewPane, aj as ReviewItemHit, aQ as ReviewPaneItemFields, aR as ReviewPaneOpening, R as ReviewPaneOptions, aS as RevisionDisplay, at as SelectedImageState, aH as TrackedChangeFilterMode, aI as TrackedChangePredicate, aT as cropPercentFromCropPermille, aU as cropPercentFromPermille, aV as cropPercentFromSourceCrop, aW as cropPermilleFromCropPercent, aX as cropPermilleFromPercent, aY as resolveReviewPane, aZ as reviewPaneListsItem, a_ as sourceCropFromCropPercent, a$ as validateImageCropPercent } from './editor-CZQZmTIU.js';
21
+ import { L as LayoutShapingInstrumentation, a as LayoutShapingOptions } from './layout-shaping-BD-dF_rn.js';
22
+ export { d as disposeLayoutShaping } from './layout-shaping-BD-dF_rn.js';
23
+ export { C as ComposeFontOriginsOptions, D as DEFAULT_FONT, F as FONT_RESOLVER_BRAND, a as FONT_RESOLVER_MARK_KEY, b as FontConfigurationBase, c as FontConfigurationFragment, d as FontOrigin, e as FontOriginFailure, f as FontResolutionRequest, g as FontResolver, h as FontResolverMark, m as MAX_RESOLVER_FAMILIES, M as MarkedFontResolver, W as WORD_DEFAULT_FONT, i as composeFontConfiguration, j as composeFontOrigins, k as defineFontResolver, l as isFontResolver } from './font-resolver-lSBLirLR.js';
24
+ import { V as PaginatedSurfaceOptions, W as OpenPaginatedResult, X as PaginatedSurface, Y as TableCommandPlan, s as DocxEditorInstance } from './chrome-print-CAs51cpq.js';
25
+ export { Z as AnchorFrameOrigin, C as CHROME_GROUPS, a as CHROME_MENUS, _ as CHROME_UNAVAILABLE_KEY, $ as ChromeControl, a0 as ChromeControlId, a1 as ChromeControlState, b as ChromeExportError, c as ChromeExportFormat, d as ChromeExportHandlers, e as ChromeExportResult, a2 as ChromeExportView, a3 as ChromeGroup, a4 as ChromeGroupId, f as ChromeMenu, g as ChromeMenuEntry, h as ChromeMenuId, i as ChromeMenuItemEntry, j as ChromeMenuSeparatorEntry, k as ChromeMenuSubmenuEntry, l as ChromePrintError, m as ChromePrintErrorCode, n as ChromePrintJob, o as ChromePrintOptions, p as ChromeSlotId, a5 as ContentControlWidgetChromeHandlers, a6 as ContentControlWidgetSession, q as CustomFontsOptions, r as CustomFontsResolver, a7 as DEFAULT_TABLE_CHROME_DRAFT, D as DocxEditorConfig, a8 as DrawingSelectionIntent, a9 as EMU_PER_POINT, aa as EditorCommandExecute, ab as EquationActivation, ac as EquationChromeHandlers, ad as EquationOps, ae as FinalizedImageOverlayInteraction, F as FontLoadFailure, t as FontLoadFailureReason, u as FontMeasurementState, v as FontUrlSource, H as HistoryGroupBinding, w as HistoryGroupBindingOptions, x as HyperlinkActivation, y as HyperlinkChromeHandlers, af as HyperlinkOps, ag as IMAGE_OVERLAY_NUDGE_PT, ah as IMAGE_OVERLAY_NUDGE_SHIFT_PT, ai as ImageInteractionSession, aj as ImageOverlayScrollPort, ak as ImageResizeHandle, al as ImageResizeResult, am as InvalidTextFormFieldChromeHandlers, an as InvalidTextFormFieldSession, L as LoadFontsRequest, z as LoadFontsResult, ao as OpeningIndicatorHost, ap as OverlayFrameRect, aq as PaginatedSurfaceState, ar as ParagraphPropertyEdit, as as PopupChromeRegistrationOptions, at as RemoteCaretLabelAnchor, au as RemoteCaretLabelHost, av as ReviewWriteIntent, aw as RunTableChromeCommandResult, ax as SectionAnchor, ay as SectionBreakInsertType, az as SelectedDrawingOverlayTarget, aA as SurfaceEquation, aB as SurfaceFormatting, S as SurfaceHyperlink, aC as SurfaceInsertImageInput, aD as SurfaceNavigation, aE as SurfaceOverlayCoordinates, aF as SurfaceParagraphFormat, aG as TABLE_BORDER_STYLE_OPTIONS, aH as TABLE_BORDER_TARGET_OPTIONS, aI as TABLE_BORDER_WIDTH_OPTIONS, aJ as TABLE_CHROME_SLOT_IDS, aK as TableBorderStyleOption, aL as TableBorderTargetOption, aM as TableBorderTargetValue, aN as TableBorderWidthOption, aO as TableChromeDraft, aP as TableChromePick, aQ as TableChromeSlotId, aR as TableInteractionLabelKey, aS as TextFormFieldChromeHandlers, aT as TextFormFieldDialogSession, T as ToolbarCommandState, aU as ToolbarSlotValue, aV as ToolbarValueMap, aW as ToolbarValueSlot, aX as applyTableChromePick, A as bindHistoryGroup, B as blankDocumentBytes, aY as canExecuteImageCommand, aZ as captureImageMutationPreconditions, a_ as chromeControlCount, E as chromeMenuSlots, a$ as chromeProbeForSlot, b0 as chromeSlotId, b1 as chromeSlotIsToggle, b2 as commandExecOptions, G as commandForSlot, I as commandForSlotValue, b3 as commandForTableChromeSlotValue, b4 as computeImageResizeResult, b5 as computeMovedImagePosition, b6 as computeResizedImageExtentEmu, J as createDocxEditor, K as createFontSource, b7 as createImageOverlayScrollPort, b8 as cssPixelsToLayoutPoints, M as customFonts, b9 as defaultChromeGroups, ba as defaultTableLabel, bb as emuToOverlayPoints, bc as equationAtPosition, bd as executeImageCommand, be as finalizeImageOverlayInteraction, bf as formattingBarChromeGroups, N as isChromePrintShortcut, bg as isStaleImageInteractionCommit, bh as isTableChromeSlot, bi as layoutPointsToCssPixels, O as loadFonts, bj as overlayFrameToSheetCssPixels, bk as overlayHostOrigin, bl as pointsToEmu, bm as probeTableChromeCommand, bn as resizePreservesAspect, P as runChromeExport, Q as runChromePrint, bo as runSave, bp as runTableChromeCommand, bq as runTableCommand, R as runToolbarCommand, br as selectedDrawingOverlayTargetOf, bs as selectedImageStateOf, bt as surfacePaintScale, bu as tableChromeIconPaths, bv as tableChromeLabelKeyForTarget, bw as tableChromeToolbarState, bx as tableChromeVisible, by as tableCommandToolbarState, U as toolbarCommandState, bz as toolbarCommandStates } from './chrome-print-CAs51cpq.js';
26
+ import { a as AutomationCapabilities, b as AutomationHost } from './protocol-DYzzz2ej.js';
27
+ import { E as EditDiagnosticCode } from './diagnostic-hints-BeVjfNOv.js';
28
+ import { S as SemanticLayout } from './semantic-records-DQmumPgL.js';
29
+ export { D as DEFAULT_REVISION_MARKUP, w as REVISION_MARKUP_COLORS, q as ResolvedRevisionMarkup, a as ReviewDisplayMode, x as RevisionChangedLinesMark, y as RevisionDeletionMark, z as RevisionMarkupChromeHandlers, E as RevisionMarkupColor, R as RevisionMarkupDialogSession, G as RevisionMarkupMark, J as RevisionMarkupNamedColor, t as RevisionMarkupOptions, K as RevisionMarkupStyle, M as RevisionMarkupTextStyle, O as SectionProperties, T as TextMeasurer, Q as resolveRevisionMarkup } from './semantic-records-DQmumPgL.js';
30
+ export { N as NavigationCommand, S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-kR_QB845.js';
31
+ export { F as FieldShadingMode, R as ReviewAuthorInfo, b as RevisionAuthorAssignments, c as RevisionAuthorStyle, d as RevisionStyles } from './semantic-paint-ZayFF3tD.js';
21
32
  export { CollaborationModuleContribution } from './collaboration.js';
22
- import './editor-scope-OHPwVQ5l.js';
23
- import './tree-package-fragment-DYZIk1rY.js';
24
- import './collaboration/replication.js';
25
- import './failure-BIPVQbRm.js';
26
- import './custom-node-writes-Vzpq9I8_.js';
27
- import './headless-document-view-ICYqNkQ1.js';
28
- import 'prosemirror-model';
33
+ import './editor-scope-7o9xweiJ.js';
34
+ import './omml-equation-BUbU0utM.js';
29
35
  import './contracts/document.js';
30
36
  import './contracts/interaction.js';
31
- import './document-protection-9zpIHWTE.js';
32
- import './note-properties-CkAk7g-n.js';
33
- import './omml-equation-DuczgG5o.js';
34
- import './semantic-record-queries-1du6lQqS.js';
37
+ import './document-protection-CUb55pl_.js';
38
+ import './failure-NS2lsya4.js';
39
+ import './collaboration/replication.js';
40
+ import './custom-node-writes-Bn6uciLb.js';
41
+ import './headless-document-view-pp3q7wIh.js';
42
+ import 'prosemirror-model';
43
+ import './note-properties-qQUjO1GQ.js';
44
+ import './semantic-cell-selection-eYag3P47.js';
45
+ import './semantic-record-queries-Bsgth6lv.js';
35
46
 
36
47
  declare function toEditorFontError(error: unknown): EditorFontError;
37
48
  declare function createLayoutShaping(configuration: FontConfiguration, instrumentation?: LayoutShapingInstrumentation): Promise<LayoutShapingOptions>;
@@ -223,6 +234,284 @@ declare function dragIndent(handle: RulerIndentHandle, positionTwips: number, in
223
234
  */
224
235
  declare function editorCommandKey(command: EditorCommand): string;
225
236
 
237
+ /**
238
+ * Collapse order: the first id here is the first group to leave the bar.
239
+ *
240
+ * Zoom goes first (a document you cannot format is worse than one you cannot scale), then
241
+ * the small standalone groups, then the paragraph controls, and text formatting and history
242
+ * last. A group the registry has but this list does not is collapsed before all of these,
243
+ * in reverse bar order — a host-added group has no declared standing, and the alternative
244
+ * is a new group that silently never collapses.
245
+ *
246
+ * @internal
247
+ */
248
+ declare const TOOLBAR_COLLAPSE_ORDER: readonly string[];
249
+ /**
250
+ * Groups that never move into the overflow menu.
251
+ *
252
+ * `review` holds the comments toggle and the editing-mode pill. The comments rail is
253
+ * reached through that toggle and nothing else, and a narrow window is exactly where a
254
+ * reader needs it, so burying it one menu deep is the wrong trade.
255
+ *
256
+ * @internal
257
+ */
258
+ declare const TOOLBAR_PINNED_GROUPS: ReadonlySet<string>;
259
+ /**
260
+ * Px of surplus a group must find before it comes back OUT of the overflow menu.
261
+ *
262
+ * Without it a value control that widens with its own value (font family going from
263
+ * "Arial" to "Times New Roman") pushes itself out, which frees the width that pulled it
264
+ * back in, forever. One-directional slack breaks the loop.
265
+ *
266
+ * @internal
267
+ */
268
+ declare const TOOLBAR_OVERFLOW_HYSTERESIS = 24;
269
+ /**
270
+ * What {@link toolbarOverflowGroups} measures against.
271
+ *
272
+ * @internal
273
+ */
274
+ interface ToolbarFitInput {
275
+ /** Content width of the bar, in px. `0` or less means "not measured yet". */
276
+ readonly available: number;
277
+ /** Group id -> measured width, separator and gaps included. */
278
+ readonly widths: ReadonlyMap<string, number>;
279
+ /** Collapsible groups, in bar order. */
280
+ readonly groups: readonly string[];
281
+ /** Collapse order; ids missing from it collapse first, in reverse bar order. */
282
+ readonly order: readonly string[];
283
+ /** Width of everything that never collapses: pinned groups, appended children, padding. */
284
+ readonly fixed: number;
285
+ /** Width the "⋯" trigger takes once it is shown. */
286
+ readonly more: number;
287
+ /** The previous answer, for the one-directional slack. */
288
+ readonly previous?: ReadonlySet<string> | undefined;
289
+ readonly hysteresis?: number;
290
+ }
291
+ /**
292
+ * The priority of a declared group: its place in {@link TOOLBAR_COLLAPSE_ORDER}, in steps of
293
+ * 10, so zoom is 10 and history is 90. A host group with a `priority` sorts among these, and
294
+ * a LOWER number leaves the bar first. The steps leave room between two built-in groups.
295
+ *
296
+ * @internal
297
+ */
298
+ declare function toolbarGroupPriority(id: string, order?: readonly string[]): number | undefined;
299
+ /**
300
+ * The collapse order actually used: the declared one, with undeclared groups first.
301
+ *
302
+ * `priorities` gives a group an explicit place among the declared ones (see
303
+ * {@link toolbarGroupPriority}), and overrides a declared group's own priority. Groups with
304
+ * neither collapse first, in reverse bar order. Two groups with the same priority collapse
305
+ * in reverse bar order too: the one further along the bar leaves first.
306
+ *
307
+ * @internal
308
+ */
309
+ declare function collapseOrder(groups: readonly string[], order?: readonly string[], priorities?: ReadonlyMap<string, number>): readonly string[];
310
+ /**
311
+ * One host group's placement request.
312
+ *
313
+ * @internal
314
+ */
315
+ interface ToolbarHostGroupPlacement {
316
+ readonly id: string;
317
+ /** The group this one follows. Absent, or unknown, places it after every group. */
318
+ readonly after?: string | undefined;
319
+ }
320
+ /**
321
+ * Bar order with the host's groups placed.
322
+ *
323
+ * A host group without `after` follows every built-in group, in order of appearance. A group
324
+ * with `after` follows the group it names, after any host groups already placed there, so
325
+ * several groups anchored to one place keep their order of appearance. An anchor may be
326
+ * another host group. An anchor that never resolves (an unknown id, or a cycle) places the
327
+ * group at the end.
328
+ *
329
+ * @internal
330
+ */
331
+ declare function arrangeToolbarGroups(builtIn: readonly string[], hosts: readonly ToolbarHostGroupPlacement[]): readonly string[];
332
+ /**
333
+ * The margin the "⋯" panel keeps from each viewport edge, in px.
334
+ *
335
+ * @internal
336
+ */
337
+ declare const TOOLBAR_PANEL_EDGE_MARGIN = 8;
338
+ /**
339
+ * Where the "⋯" panel opens, in viewport px.
340
+ *
341
+ * @internal
342
+ */
343
+ interface ToolbarPanelPlacement {
344
+ /** The panel's left edge. */
345
+ readonly left: number;
346
+ /** The widest the panel may be: the viewport less both margins. */
347
+ readonly maxWidth: number;
348
+ /** Which trigger edge the panel lines up with, or `clamped` when neither fits. */
349
+ readonly anchor: 'start' | 'end' | 'clamped';
350
+ }
351
+ /**
352
+ * Keep the "⋯" panel inside the viewport.
353
+ *
354
+ * The panel lines up with the trigger's end edge first, which suits a trigger at the end of
355
+ * the bar. When that runs past the left edge (a centered or narrow bar), it lines up with
356
+ * the trigger's start edge instead. When neither fits, it is clamped to the margins.
357
+ *
358
+ * @internal
359
+ */
360
+ declare function toolbarPanelPlacement(input: {
361
+ readonly triggerLeft: number;
362
+ readonly triggerRight: number;
363
+ readonly panelWidth: number;
364
+ readonly viewportWidth: number;
365
+ readonly margin?: number;
366
+ }): ToolbarPanelPlacement;
367
+ declare function sameIds(a: ReadonlySet<string>, b: ReadonlySet<string>): boolean;
368
+ /**
369
+ * True when two answers describe the same bar, so a re-render can be skipped.
370
+ *
371
+ * @internal
372
+ */
373
+ declare const sameOverflow: typeof sameIds;
374
+ /**
375
+ * The groups that must leave the bar for the rest of it to fit in one row.
376
+ *
377
+ * An unmeasured bar (`available <= 0`, which is every server render and every jsdom test)
378
+ * overflows nothing: the full toolbar is the honest answer when nothing is known about the
379
+ * space, and it is also what a host that opted out of overflow renders.
380
+ *
381
+ * @internal
382
+ */
383
+ declare function toolbarOverflowGroups(input: ToolbarFitInput): ReadonlySet<string>;
384
+ /**
385
+ * The left edge, in viewport px, of a popup that opens under a bar control.
386
+ *
387
+ * The popup lines up with the control's start edge, and moves left or right only as far as
388
+ * it must to keep {@link TOOLBAR_PANEL_EDGE_MARGIN} from each viewport edge. A popup wider
389
+ * than the viewport keeps its left margin.
390
+ *
391
+ * @internal
392
+ */
393
+ declare function toolbarPopupLeft(input: {
394
+ readonly anchorLeft: number;
395
+ readonly popupWidth: number;
396
+ readonly viewportWidth: number;
397
+ readonly margin?: number;
398
+ }): number;
399
+
400
+ /**
401
+ * Leading separator slot cost for one collapsible group (px).
402
+ *
403
+ * @internal
404
+ */
405
+ declare function separatorLeadingCost(separatorWidth: number, marginInlineStart: number, marginInlineEnd: number, gap: number): number;
406
+ /**
407
+ * Total width charged for one collapsible group on the bar.
408
+ *
409
+ * @internal
410
+ */
411
+ declare function collapsibleGroupCost(groupWidth: number, separatorLeading: number): number;
412
+ /**
413
+ * Flex gap charged after a fixed group or the More trigger.
414
+ *
415
+ * @internal
416
+ */
417
+ declare function trailingGapCost(width: number, gap: number): number;
418
+ /**
419
+ * Read inline margins from computed style (px).
420
+ *
421
+ * @internal
422
+ */
423
+ declare function readInlineMargins(style: CSSStyleDeclaration): {
424
+ readonly start: number;
425
+ readonly end: number;
426
+ };
427
+ /**
428
+ * Parse column gap from toolbar computed style.
429
+ *
430
+ * @internal
431
+ */
432
+ declare function readColumnGap(style: CSSStyleDeclaration): number;
433
+ /**
434
+ * What {@link barRoomWidth} measures against, all in px.
435
+ *
436
+ * @internal
437
+ */
438
+ interface BarRoomInput {
439
+ /** The bar's current content width: its client width less its inline padding. */
440
+ readonly own: number;
441
+ /** The parent's content-box width. `0` or less means it is unknown. */
442
+ readonly parentContent: number;
443
+ /** Width the bar's siblings take on the same line, gaps included. */
444
+ readonly siblings: number;
445
+ /** The bar's inline margins, auto margins excluded. */
446
+ readonly margins: number;
447
+ /** The bar's inline padding, border, and scrollbar. */
448
+ readonly chrome: number;
449
+ /** The bar's resolved `max-width` as a border-box width, or null for none. */
450
+ readonly maxWidth: number | null;
451
+ }
452
+ /**
453
+ * The content width the bar CAN take, which is what decides what fits.
454
+ *
455
+ * A bar that fills its container can take exactly the box it has. A bar as wide as its
456
+ * content (`width: max-content`, a floating pill) shrinks when a group leaves, so its own box
457
+ * never shows the room outside it, and a collapsed group would never come back. The room is
458
+ * the parent's content width, less the siblings on the same line and the bar's margins,
459
+ * capped by the bar's `max-width`. It is never less than the box the bar already has.
460
+ *
461
+ * @internal
462
+ */
463
+ declare function barRoomWidth(input: BarRoomInput): number;
464
+ /**
465
+ * True when one of the bar's controls runs past its content box, false when they all fit,
466
+ * and null when the bar has no layout to read (a zero-width box, as in a DOM without
467
+ * layout). Measured from the controls, not `scrollWidth`, so an open popup (the More panel,
468
+ * the table grid) that reaches past the bar's edge is not mistaken for an overflow.
469
+ *
470
+ * @internal
471
+ */
472
+ declare function controlsOverflow(bar: HTMLElement, style: CSSStyleDeclaration): boolean | null;
473
+ /**
474
+ * The bar's available content width.
475
+ *
476
+ * The bar's own box, except for a CONTENT-SIZED bar (specified width `auto`, `max-content`,
477
+ * `fit-content`, or `min-content`, and not growing as a flex item) in a layout this file
478
+ * understands: a block-level bar in a `block` or `flow-root` parent, or an item of a
479
+ * single-line flex row. That bar gets the room it can take, see {@link barRoomWidth}. A grid
480
+ * cell, a table cell, an inline bar, a floated bar, an explicit width, an out-of-flow bar, a
481
+ * `max-width` that does not resolve, a growing sibling with content, loose text in the row,
482
+ * and a browser without Typed OM all keep the bar's own box: the safe side, which collapses
483
+ * early rather than overflowing the next column.
484
+ *
485
+ * The parent-based room only ever brings groups BACK. A bar whose controls overflow its box
486
+ * measures its own box, so the fit collapses groups until they fit. When that overflow
487
+ * follows groups that came back from the room, the room was wrong: the bar's width becomes
488
+ * a cap until the parent's width changes, so the bar does not flicker.
489
+ *
490
+ * @internal
491
+ */
492
+ declare function readAvailableWidth(bar: HTMLElement, style: CSSStyleDeclaration): number;
493
+
494
+ /**
495
+ * Which LETTER a chord names, for the accelerators held with Alt.
496
+ *
497
+ * The CHARACTER first. A user reaching for Ctrl+Alt+F presses the key that types `f`,
498
+ * wherever their layout puts it, and Windows resolves accelerators the same way — so reading
499
+ * the physical position first sent Dvorak's footnote chord to the key that types `u`.
500
+ *
501
+ * `event.code` is the fallback, for the case that makes `key` unreadable: a modifier that
502
+ * COMPOSES. macOS turns Option+F into `ƒ`, Option+C into `ç` and Option+D into `∂`, none of
503
+ * them a letter — so falling through to the keycap is the only way those chords work there,
504
+ * and it costs nothing, because a `key` that IS a letter has already answered.
505
+ *
506
+ * Never both for one event: consulting `code` as well would claim a second chord wherever
507
+ * the two disagree, which is every remapped layout.
508
+ *
509
+ * Shared with the adapters, whose Find shortcut reads letters the same way.
510
+ *
511
+ * @internal
512
+ */
513
+ declare function chordLetter(event: KeyboardEvent): string;
514
+
226
515
  /** Planner-backed can/plan pair — production gate for table commands. Task 9 maps chrome slots. */
227
516
  declare function tableCommandState(command: EditorCommand, surface: PaginatedSurface): {
228
517
  readonly can: CanResult;
@@ -250,6 +539,29 @@ declare const BROWSER_AUTOMATION_CAPABILITIES: AutomationCapabilities;
250
539
  */
251
540
  declare function createBrowserAutomationHost(editor: DocxEditorInstance): AutomationHost;
252
541
 
542
+ /**
543
+ * The facade's anonymous diagnostics: builds each {@link EditorDiagnostic} from codes and
544
+ * buckets, and delivers it to module listeners and `editor.on('diagnostic')`.
545
+ *
546
+ * Privacy is decided here, where the event is made. Nothing below reads document text, part
547
+ * names, relationship targets, author names or font names: a raw reason goes through
548
+ * `diagnostic-codes.ts` and only the public code comes out.
549
+ */
550
+
551
+ /**
552
+ * Report a refused editing API batch into the diagnostics of the editor it ran on. A runtime
553
+ * from `DocxEditor.createBrowser` calls this, so its refusals reach the editor's telemetry.
554
+ * Does nothing for an object that is not an editor. `cause` is the engine reason behind the
555
+ * refusal; a value the engine does not know is left out of the diagnostic.
556
+ */
557
+ declare function reportAutomationRefusal(editor: object, code: EditDiagnosticCode, tracked: boolean, cause?: string): void;
558
+ /**
559
+ * Report an editing API batch that threw an engine error, not a refusal, into the diagnostics of
560
+ * the editor it ran on: `edit.internal-invariant` with the error's class, never its message.
561
+ * Does nothing for an object that is not an editor.
562
+ */
563
+ declare function reportAutomationException(editor: object, error: unknown, tracked: boolean): void;
564
+
253
565
  /** Clamp and validate an OOXML theme modifier fraction (0, 1]. */
254
566
  declare function validateThemeModifier(value: unknown): value is number;
255
567
  /** Blend toward white. `keep` is the fraction of the base colour retained (OOXML themeTint byte). */
@@ -302,6 +614,15 @@ interface SurfaceExtent {
302
614
  }
303
615
  declare function surfaceExtent(layout: SemanticLayout, materialize: ReadonlySet<number> | undefined): SurfaceExtent;
304
616
 
617
+ /**
618
+ * The review pane's marker strip on one page edge, in CSS px: the markers and the
619
+ * add-comment button. The adapters' review gutters and the zoom fit share this value.
620
+ *
621
+ * Shared adapter glue, not for hosts.
622
+ *
623
+ * @internal
624
+ */
625
+ declare const REVIEW_MARKERS_GUTTER_PX = 44;
305
626
  /** The narrowest scale the editor contract accepts. One definition, every user. */
306
627
  declare const ZOOM_MIN = 0.1;
307
628
  /** The widest scale the editor contract accepts. */
@@ -341,6 +662,91 @@ declare function resolveZoomMode(mode: ZoomMode | 'auto'): ZoomMode | null;
341
662
  * memoization exists to keep asleep. The lane holds its object and compares by value here.
342
663
  */
343
664
  declare function sameZoomMode(a: ZoomMode, b: ZoomMode): boolean;
665
+ /**
666
+ * The scale the page is ENTITLED to when the review rail decides whether its full card
667
+ * column fits beside the page, or `null` when the page has no entitlement to measure.
668
+ *
669
+ * The rail must never measure the LIVE zoom under a fit: that zoom already includes the
670
+ * room the rail reserved last frame, so a threshold computed from it chases itself. The
671
+ * entitlement depends only on the mode (and on the held scale for a fixed mode), so the
672
+ * rail settles in one pass.
673
+ *
674
+ * - A fixed mode is entitled to the scale in force.
675
+ * - A fit with the review pane's `overflow: 'shrinkPage'` is entitled to its lower bound: the column stands
676
+ * whenever ANY scale the fit may take leaves room for it, and the fit then paints at
677
+ * the largest of those inside the padded box.
678
+ * - A capped fit is entitled to its cap.
679
+ * - An uncapped fit returns `null`: it fills whatever box it is given, so the full column
680
+ * always stands.
681
+ *
682
+ * Shared adapter glue for the review gutter, not for hosts.
683
+ *
684
+ * @internal
685
+ */
686
+ declare function reviewPaneEntitledZoom(mode: ZoomMode | undefined, zoom: number, overflow?: ReviewPaneOverflow): number | null;
687
+
688
+ /** How {@link listenForPopupEscape} decides and acts. @internal */
689
+ interface PopupEscapeOptions {
690
+ /** The popup's root. Its `ownerDocument` receives the listener. */
691
+ readonly popup: HTMLElement;
692
+ /** Whether a node belongs to the popup (its trigger, list, or a separate panel). */
693
+ readonly contains: (node: Node) => boolean;
694
+ /** Elements of this editor beyond its `.docx-editor` container, such as the viewport. */
695
+ readonly editorElements?: () => readonly (Element | null | undefined)[];
696
+ /**
697
+ * The chrome root that holds the popup, such as the toolbar or the menu bar. It scopes
698
+ * itself with its own `.docx-editor` class, and a key from it counts as this editor's.
699
+ */
700
+ readonly chromeRoot?: () => Element | null | undefined;
701
+ /** Return true to leave this Escape to someone else (an input that owns the key). */
702
+ readonly skip?: (event: KeyboardEvent) => boolean;
703
+ /** Close the popup. `fromInside` is true when the key came from inside the popup. */
704
+ readonly close: (fromInside: boolean) => void;
705
+ }
706
+ /**
707
+ * The nearest `.docx-editor` around `from` that holds the painted pages, or null.
708
+ *
709
+ * Chrome parts carry their own styling-only `docx-editor` class, so the first match from
710
+ * a toolbar is the toolbar. The instance container is the first one with pages inside.
711
+ *
712
+ * @internal
713
+ */
714
+ declare function editorInstanceScope(from: Element | null): Element | null;
715
+ /**
716
+ * Close an open toolbar popup on Escape, ahead of the surface. Returns the disposer.
717
+ *
718
+ * Shared adapter glue, not for hosts.
719
+ *
720
+ * @internal
721
+ */
722
+ declare function listenForPopupEscape(options: PopupEscapeOptions): () => void;
723
+ /**
724
+ * Whether a nested popup inside `panel` is open. Its own Escape listener closes it, and
725
+ * the panel stays open for the next Escape.
726
+ *
727
+ * @internal
728
+ */
729
+ declare function hasOpenNestedPopup(panel: Element | null): boolean;
730
+ /** How {@link listenForPopupFocusLeave} decides. @internal */
731
+ interface PopupFocusLeaveOptions {
732
+ /** The popup's root. Its `ownerDocument` receives the listener. */
733
+ readonly popup: HTMLElement;
734
+ /** Whether a node belongs to the popup (its trigger, list, or a separate panel). */
735
+ readonly contains: (node: Node) => boolean;
736
+ /** Close the popup. */
737
+ readonly close: () => void;
738
+ }
739
+ /**
740
+ * Close an open popup when focus moves outside it, for example to the find field after
741
+ * Ctrl+F or to a host input. Two moves keep the popup open: focus that lands in the painted
742
+ * pages, because a toolbar click leaves the caret there while the popup is open, and focus
743
+ * that enters one of this editor's modal dialogs, because the popup may have opened it and
744
+ * the dialog returns focus to its opener when it closes. A host's own modal dialog closes
745
+ * the popup like any other control. Returns the disposer.
746
+ *
747
+ * @internal
748
+ */
749
+ declare function listenForPopupFocusLeave(options: PopupFocusLeaveOptions): () => void;
344
750
 
345
751
  /** Validate a position input, refusing offsets or bases outside what OOXML allows. */
346
752
  declare function validateDrawingPositionInput(position: DrawingPositionInput): boolean;
@@ -826,7 +1232,7 @@ interface NavigateToChangeOptions extends ScrollToAnchorOptions {
826
1232
  /** Move the caret and focus to the changed range start. Default: false. */
827
1233
  readonly focus?: boolean;
828
1234
  /** Target alignment. Default: center. centerIfNeeded preserves scroll for an already visible target. */
829
- readonly block?: 'start' | 'center' | 'centerIfNeeded' | 'nearest';
1235
+ readonly block?: ScrollPlacement;
830
1236
  }
831
1237
  /** External file transport stays in your application. Reload resets selection and undo history. @public */
832
1238
  interface DocumentRefresh {
@@ -1005,5 +1411,5 @@ interface DocumentSearch {
1005
1411
  */
1006
1412
  declare function createDocumentSearch(editor: Editor): DocumentSearch;
1007
1413
 
1008
- 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 };
1009
- 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 };
1414
+ 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, reportAutomationException, reportAutomationRefusal, 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 };
1415
+ 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-UBLUVNZR.js';export{a as resolveEditorModules}from'./chunk-O5INAWZQ.js';import'./chunk-7IGCWG4H.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-IGR23DV2.js';export{r as disposeLayoutShaping}from'./chunk-JSIX2EOH.js';import'./chunk-RIYSCEFQ.js';import'./chunk-S74GRBNE.js';import'./chunk-KAXOGCGA.js';export{Sa as DEFAULT_REVISION_MARKUP,Ra as REVISION_MARKUP_COLORS,Ta as resolveRevisionMarkup}from'./chunk-VIPMGGUT.js';import'./chunk-7MYITTAH.js';import'./chunk-HAQ72KD7.js';import'./chunk-ZU7IVN6G.js';import'./chunk-6ZQMII6V.js';import'./chunk-GWQJ5774.js';import'./chunk-6JIJOZDW.js';import'./chunk-DNXVNQEO.js';export{m as DEFAULT_IMAGE_RESOURCE_LIMITS,Oj as DRAWING_REL_FROM_H,Pj as DRAWING_REL_FROM_V,pd as IMAGE_WRAP_TARGETS,wi as TEXT_FORM_FORMATS,Rj as positionInputFromPropertiesCommand,Qj as propertiesCommandHasPositionFields,n as resolveImageResourceLimits,Ud as resolveSvgIntrinsicSize,Qd as sniffImageMime,Nj as validateDrawingPositionInput,Vd as validateRasterHeader,Sj as validateSetImagePositionCommand}from'./chunk-UMRSBLO7.js';import'./chunk-S6J4O5XP.js';
1
+ export{zb as AUTO_ZOOM_MODE,Fb as BROWSER_AUTOMATION_CAPABILITIES,Ta as CHROME_GROUPS,Xa as CHROME_MENUS,_a as CHROME_UNAVAILABLE_KEY,db as CONTENT_CONTROL_PICTURE_ACCEPT,qc as ChromeExportError,sc as ChromePrintError,c as DEFAULT_REVIEW_PANE,$ as DEFAULT_TABLE_CHROME_DRAFT,hc as DocumentRefreshError,N as EMU_PER_POINT,Ab as FIT_WIDTH_ZOOM_MODE,jc as HIGHLIGHT_REFRESH_MS,W as IMAGE_OVERLAY_NUDGE_PT,X as IMAGE_OVERLAY_NUDGE_SHIFT_PT,f as LOADING_SNAPSHOT,$b as NO_MIXED_FIELDS,o as PX_PER_CM,n as PX_PER_INCH,wb as REVIEW_MARKERS_GUTTER_PX,lc as SEARCH_DEBOUNCE_MS,oc as SEARCH_HIGHLIGHT_PRIORITY,nc as SEARCH_HIGHLIGHT_SET,mc 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,Xb 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,yb as ZOOM_MAX,xb as ZOOM_MIN,dc as alignmentAfterDirectionChange,ha as applyTableChromePick,B as applyThemeShade,A as applyThemeTint,Ea as arrangeToolbarGroups,Pa as barRoomWidth,gc 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,cc 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,Rb as computeImageResizeResult,R as computeMovedImagePosition,Q as computeResizedImageExtentEmu,bb as contentControlPopupKeyDown,cb as contentControlPopupOpener,Qa as controlsOverflow,Gb as createBrowserAutomationHost,pb as createContentControlListNavigation,ic as createDocumentRefresh,pc as createDocumentSearch,Eb as createDocxEditor,l as createFontSource,Sb as createImageOverlayScrollPort,b as createLayoutShaping,L as cropPercentFromCropPermille,J as cropPercentFromPermille,G as cropPercentFromSourceCrop,K as cropPermilleFromCropPercent,I as cropPermilleFromPercent,Nb as cssPixelsToLayoutPoints,m as customFonts,Va as defaultChromeGroups,ba as defaultTableLabel,x as dragIndent,ya as editorCommandKey,Hb as editorInstanceScope,P as emuToOverlayPoints,qb as equationAtPosition,V as executeImageCommand,Tb as finalizeImageOverlayInteraction,gb as firstDayOfWeek,Vb as formatInches,Wa as formattingBarChromeGroups,p as generateRulerTicks,v as handlePosition,Jb as hasOpenNestedPopup,Wb as inchesToTwips,tc as isChromePrintShortcut,Z as isStaleImageInteractionCommit,ca as isTableChromeSlot,eb as isoDateOf,Mb as layoutPointsToCssPixels,Ib as listenForPopupEscape,Kb as listenForPopupFocusLeave,k as loadFonts,D as lowerColorValueForBorder,E as lowerColorValueForFill,ac as mixedFieldsOf,sb as mountPaginatedSurface,ab as observeContentControlPopup,Ob as overlayFrameToSheetCssPixels,Pb 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,vb as reportAutomationException,ub as reportAutomationRefusal,Qb as resizePreservesAspect,F as resolveColorValueToCss,d as resolveReviewPane,C as resolveThemeColorHex,Bb as resolveZoomMode,Db as reviewPaneEntitledZoom,e as reviewPaneListsItem,q as rulerPageBox,rc as runChromeExport,uc as runChromePrint,va as runSave,ta as runTableChromeCommand,xa as runTableCommand,ua as runToolbarCommand,Ha as sameOverflow,bc as sameTabStops,Cb as sameZoomMode,_b as seedFields,Y as selectedDrawingOverlayTargetOf,S as selectedImageStateOf,Ka as separatorLeadingCost,kb as shiftMonth,Zb as signedFirstLineOf,w as snapTwips,H as sourceCropFromCropPercent,Yb as specialOf,rb as surfaceExtent,Lb 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,fc as trapTabWithin,Ub as twipsToInches,M as validateImageCropPercent,z as validateThemeModifier,kc as watchHighlights,ec as withTabStop}from'./chunk-DVX32P2P.js';export{a as resolveEditorModules}from'./chunk-4HENIAFG.js';import'./chunk-TRGAVV2Y.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-236O4YQW.js';export{r as disposeLayoutShaping}from'./chunk-6ZQP4HQ7.js';import'./chunk-RIYSCEFQ.js';import'./chunk-LQX36Z5P.js';import'./chunk-E4LOMDNL.js';export{Ua as DEFAULT_REVISION_MARKUP,Ta as REVISION_MARKUP_COLORS,Va as resolveRevisionMarkup}from'./chunk-CPWLFPWC.js';import'./chunk-BCXH4BXB.js';import'./chunk-G4HOFIKJ.js';import'./chunk-RCLZXP3B.js';import'./chunk-LSZ6KPKK.js';import'./chunk-U4JZVSOE.js';import'./chunk-6JIJOZDW.js';import'./chunk-OMCG63ZF.js';export{r as DEFAULT_IMAGE_RESOURCE_LIMITS,Mk as DRAWING_REL_FROM_H,Nk as DRAWING_REL_FROM_V,Ed as IMAGE_WRAP_TARGETS,Qi as TEXT_FORM_FORMATS,Pk as positionInputFromPropertiesCommand,Ok as propertiesCommandHasPositionFields,s as resolveImageResourceLimits,he as resolveSvgIntrinsicSize,de as sniffImageMime,Lk as validateDrawingPositionInput,ie as validateRasterHeader,Qk as validateSetImagePositionCommand}from'./chunk-YQ5G6LC7.js';import'./chunk-S6J4O5XP.js';