@docx-editor.dev/core 2.9.0 → 2.9.2

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 (87) hide show
  1. package/dist/automation.cjs +1 -1
  2. package/dist/automation.js +1 -1
  3. package/dist/binding.cjs +1 -1
  4. package/dist/binding.d.cts +7 -7
  5. package/dist/binding.d.ts +7 -7
  6. package/dist/binding.js +1 -1
  7. package/dist/chunk-6JWP2H7K.js +2 -0
  8. package/dist/chunk-6KNLLEUW.cjs +18 -0
  9. package/dist/chunk-7ADTI533.cjs +10 -0
  10. package/dist/chunk-7ETDCPF6.cjs +2 -0
  11. package/dist/chunk-7I3BSGGS.js +1 -0
  12. package/dist/{chunk-XMHWBL3K.cjs → chunk-7UU5YFCD.cjs} +1 -1
  13. package/dist/chunk-CKDAK3MV.js +10 -0
  14. package/dist/chunk-DIMEYVNS.js +2 -0
  15. package/dist/{chunk-IEXDXWTA.cjs → chunk-H2656QDI.cjs} +1 -1
  16. package/dist/chunk-KQGENNL5.cjs +15 -0
  17. package/dist/chunk-LIXPSV4T.js +18 -0
  18. package/dist/{chunk-DKMKH77K.cjs → chunk-O4UULRAQ.cjs} +5 -5
  19. package/dist/chunk-SIIFNE6U.js +15 -0
  20. package/dist/chunk-VXYECPKA.js +5 -0
  21. package/dist/contracts/editor.d.cts +6 -6
  22. package/dist/contracts/editor.d.ts +6 -6
  23. package/dist/contracts/interaction.d.cts +6 -6
  24. package/dist/contracts/interaction.d.ts +6 -6
  25. package/dist/contracts/modules.d.cts +3 -3
  26. package/dist/contracts/modules.d.ts +3 -3
  27. package/dist/{custom-node-writes-QyVZdTUA.d.ts → custom-node-writes-D6SGwebL.d.ts} +20 -4
  28. package/dist/{custom-node-writes-7ERv0f_X.d.cts → custom-node-writes-Dy3b20PS.d.cts} +20 -4
  29. package/dist/{editor-PUlv5Pp7.d.ts → editor-Cvd7Geoc.d.ts} +4 -4
  30. package/dist/{editor-CojjwMmF.d.cts → editor-cAEf1uXW.d.cts} +4 -4
  31. package/dist/editor.cjs +1 -1
  32. package/dist/editor.css +14 -5
  33. package/dist/editor.d.cts +18 -18
  34. package/dist/editor.d.ts +18 -18
  35. package/dist/editor.js +1 -1
  36. package/dist/{image-resources-eZqD_-vC.d.ts → image-resources-BgA9EQxY.d.ts} +1 -1
  37. package/dist/{image-resources-DQOiwOuE.d.cts → image-resources-BiA-IXgo.d.cts} +1 -1
  38. package/dist/{index-oN-v8DQ5.d.ts → index-DRqY5JVF.d.ts} +58 -12
  39. package/dist/{index-DGPSeLI0.d.cts → index-wb-iOxfh.d.cts} +58 -12
  40. package/dist/index.cjs +1 -1
  41. package/dist/index.d.cts +12 -12
  42. package/dist/index.d.ts +12 -12
  43. package/dist/index.js +1 -1
  44. package/dist/layout.cjs +1 -1
  45. package/dist/layout.d.cts +334 -306
  46. package/dist/layout.d.ts +334 -306
  47. package/dist/layout.js +1 -1
  48. package/dist/output.cjs +1 -1
  49. package/dist/output.d.cts +5 -5
  50. package/dist/output.d.ts +5 -5
  51. package/dist/output.js +1 -1
  52. package/dist/{review-items-DpsqTHio.d.cts → review-items-B8tffIXj.d.cts} +1 -1
  53. package/dist/{review-items-D5SPFtsO.d.ts → review-items-bdGxFWNA.d.ts} +1 -1
  54. package/dist/{review-reads-CP106AHp.d.cts → review-reads-Bxz03tHG.d.cts} +1 -1
  55. package/dist/{review-reads-B2Ji3fVU.d.ts → review-reads-CHODU0LI.d.ts} +1 -1
  56. package/dist/{semantic-cell-selection-DJPjBWzf.d.cts → semantic-cell-selection-BPzx6DdT.d.cts} +2 -2
  57. package/dist/{semantic-cell-selection-BWhVAk5B.d.ts → semantic-cell-selection-CsHcr-yk.d.ts} +2 -2
  58. package/dist/{semantic-interaction-BjOcDB06.d.cts → semantic-interaction-BfWDD_0V.d.cts} +1 -1
  59. package/dist/{semantic-interaction-Cca1-X_a.d.ts → semantic-interaction-D-RZ9Ust.d.ts} +1 -1
  60. package/dist/{semantic-paint-Ur7pAINj.d.cts → semantic-paint-Bd7EqzXV.d.cts} +2 -2
  61. package/dist/{semantic-paint-CufpIQFw.d.ts → semantic-paint-WhVtSDJK.d.ts} +2 -2
  62. package/dist/{semantic-records-Cc1MJrhM.d.ts → semantic-records-DCt-ZwKU.d.ts} +22 -4
  63. package/dist/{semantic-records-C3Z76KeN.d.cts → semantic-records-DadVT_E1.d.cts} +22 -4
  64. package/dist/{shaped-measurer-CwlTPDJO.d.ts → shaped-measurer-B9f4A7QA.d.ts} +1 -1
  65. package/dist/{shaped-measurer-CYSK20E2.d.cts → shaped-measurer-CninrHr_.d.cts} +1 -1
  66. package/dist/store.cjs +1 -1
  67. package/dist/store.d.cts +131 -131
  68. package/dist/store.d.ts +131 -131
  69. package/dist/store.js +1 -1
  70. package/dist/{tree-op-types-XMVsJSpe.d.ts → tree-op-types-CnRb7AYo.d.ts} +22 -1
  71. package/dist/{tree-op-types-B0-sCtw-.d.cts → tree-op-types-D1vNJ7XC.d.cts} +22 -1
  72. package/dist/{tree-session-D945D43B.d.cts → tree-session-Df02ajqc.d.cts} +5 -5
  73. package/dist/{tree-session-DBJgmdmc.d.ts → tree-session-ZuBFOhIh.d.ts} +5 -5
  74. package/dist/{tree-store-C6vc8E_2.d.cts → tree-store-B_sJBMIS.d.cts} +1 -1
  75. package/dist/{tree-store-ClA-qng4.d.ts → tree-store-DgETo6Mf.d.ts} +1 -1
  76. package/package.json +2 -2
  77. package/dist/chunk-2RDMWJPF.cjs +0 -2
  78. package/dist/chunk-5VC5HGJA.js +0 -2
  79. package/dist/chunk-A2JIBG75.js +0 -1
  80. package/dist/chunk-DTQPINIM.js +0 -15
  81. package/dist/chunk-HHFMXG25.js +0 -2
  82. package/dist/chunk-IMMAG4QP.cjs +0 -10
  83. package/dist/chunk-KBCC66CI.js +0 -5
  84. package/dist/chunk-P5YSGSYC.cjs +0 -15
  85. package/dist/chunk-Q66ZJFRE.js +0 -18
  86. package/dist/chunk-TP4EHWEX.cjs +0 -18
  87. package/dist/chunk-VUJGPCPU.js +0 -10
package/dist/editor.d.ts CHANGED
@@ -1,28 +1,28 @@
1
- export { D as DEFAULT_IMAGE_RESOURCE_LIMITS, b as ImageDecodePort, c 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-eZqD_-vC.js';
2
- import { i as TreeDocColorValue, d as DrawingPositionInput } from './tree-op-types-XMVsJSpe.js';
3
- export { j as IMAGE_WRAP_TARGETS, b as ImageWrapTarget } from './tree-op-types-XMVsJSpe.js';
1
+ export { D as DEFAULT_IMAGE_RESOURCE_LIMITS, b as ImageDecodePort, c 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-BgA9EQxY.js';
2
+ import { j as TreeDocColorValue, d as DrawingPositionInput } from './tree-op-types-CnRb7AYo.js';
3
+ export { k as IMAGE_WRAP_TARGETS, b as ImageWrapTarget } from './tree-op-types-CnRb7AYo.js';
4
4
  import { ColorValue } from './contracts/types.js';
5
5
  export { ParagraphFlags, ParagraphTabStop } from './contracts/types.js';
6
- export { R as ReviewModelInput } from './review-items-D5SPFtsO.js';
7
- import { c as TreeDocxSessionView, g as DocumentThemeColorEntry } from './tree-session-DBJgmdmc.js';
8
- export { a as TreeApplyResult } from './tree-session-DBJgmdmc.js';
9
- import { F as FontConfiguration, E as EditorFontError, a as EditorSnapshot, b as EditorCommand, C as CanResult, Z as ZoomMode } from './editor-PUlv5Pp7.js';
10
- export { I as ImageContext, c as ImageCropPercent, d as ImageCropPermille, S as SelectedImageState, e as cropPercentFromCropPermille, f as cropPercentFromPermille, g as cropPercentFromSourceCrop, h as cropPermilleFromCropPercent, i as cropPermilleFromPercent, s as sourceCropFromCropPercent, v as validateImageCropPercent } from './editor-PUlv5Pp7.js';
11
- import { L as LayoutShapingOptions } from './shaped-measurer-CwlTPDJO.js';
12
- import { P as PaginatedSurfaceOptions, O as OpenPaginatedResult, a as PaginatedSurface, T as TableCommandPlan, D as DocxEditorInstance } from './index-oN-v8DQ5.js';
13
- export { A as AnchorFrameOrigin, C as CHROME_GROUPS, b as CHROME_MENUS, c as CHROME_UNAVAILABLE_KEY, d as ChromeControl, e as ChromeControlId, f as ChromeControlState, g as ChromeGroup, h as ChromeGroupId, i as ChromeMenu, j as ChromeMenuEntry, k as ChromeMenuId, l as ChromeMenuItemEntry, m as ChromeMenuSeparatorEntry, n as ChromeMenuSubmenuEntry, o as ChromeSlotId, p as DEFAULT_TABLE_CHROME_DRAFT, q as DocxEditorConfig, E as EMU_PER_POINT, r as EquationActivation, s as EquationChromeHandlers, t as EquationOps, F as FinalizedImageOverlayInteraction, u as FontConfigurationBase, v as FontConfigurationFragment, w as FontLoadFailure, x as FontLoadFailureReason, y as FontMeasurementState, z as FontResolutionRequest, B as FontResolver, G as FontUrlSource, H as HyperlinkActivation, I as HyperlinkChromeHandlers, J as HyperlinkOps, K as IMAGE_OVERLAY_NUDGE_PT, L as IMAGE_OVERLAY_NUDGE_SHIFT_PT, M as ImageInteractionSession, N as ImageOverlayScrollPort, Q as ImageResizeHandle, R as ImageResizeResult, S as LoadFontsRequest, U as LoadFontsResult, V as MAX_RESOLVER_FAMILIES, W as OverlayFrameRect, X as PaginatedSurfaceState, Y as ParagraphPropertyEdit, Z as RunTableChromeCommandResult, _ as SectionAnchor, $ as SelectedDrawingOverlayTarget, a0 as SurfaceEquation, a1 as SurfaceFormatting, a2 as SurfaceHyperlink, a3 as SurfaceNavigation, a4 as SurfaceOverlayCoordinates, a5 as SurfaceParagraphFormat, a6 as TABLE_BORDER_STYLE_OPTIONS, a7 as TABLE_BORDER_TARGET_OPTIONS, a8 as TABLE_BORDER_WIDTH_OPTIONS, a9 as TABLE_CHROME_SLOT_IDS, aa as TableBorderStyleOption, ab as TableBorderTargetOption, ac as TableBorderTargetValue, ad as TableBorderWidthOption, ae as TableChromeDraft, af as TableChromePick, ag as TableChromeSlotId, ah as TableInteractionLabelKey, ai as ToolbarCommandState, aj as WORD_DEFAULT_FONT, ak as applyTableChromePick, al as blankDocumentBytes, am as canExecuteImageCommand, an as captureImageMutationPreconditions, ao as chromeControlCount, ap as chromeMenuSlots, aq as chromeProbeForSlot, ar as chromeSlotId, as as commandForSlot, at as commandForSlotValue, au as commandForTableChromeSlotValue, av as composeFontConfiguration, aw as computeImageResizeResult, ax as computeMovedImagePosition, ay as computeResizedImageExtentEmu, az as createDocxEditor, aA as createFontSource, aB as createImageOverlayScrollPort, aC as cssPixelsToLayoutPoints, aD as defaultChromeGroups, aE as defaultTableLabel, aF as emuToOverlayPoints, aG as equationAtPosition, aH as executeImageCommand, aI as finalizeImageOverlayInteraction, aJ as formattingBarChromeGroups, aK as isStaleImageInteractionCommit, aL as isTableChromeSlot, aM as layoutPointsToCssPixels, aN as loadFonts, aO as overlayFrameToSheetCssPixels, aP as pointsToEmu, aQ as probeTableChromeCommand, aR as resizePreservesAspect, aS as runSave, aT as runTableChromeCommand, aU as runTableCommand, aV as runToolbarCommand, aW as selectedDrawingOverlayTargetOf, aX as selectedImageStateOf, aY as surfacePaintScale, aZ as tableChromeIconPaths, a_ as tableChromeLabelKeyForTarget, a$ as tableChromeToolbarState, b0 as tableChromeVisible, b1 as tableCommandToolbarState, b2 as toolbarCommandState, b3 as toolbarCommandStates } from './index-oN-v8DQ5.js';
6
+ export { R as ReviewModelInput } from './review-items-bdGxFWNA.js';
7
+ import { c as TreeDocxSessionView, g as DocumentThemeColorEntry } from './tree-session-ZuBFOhIh.js';
8
+ export { a as TreeApplyResult } from './tree-session-ZuBFOhIh.js';
9
+ import { F as FontConfiguration, E as EditorFontError, a as EditorSnapshot, b as EditorCommand, C as CanResult, Z as ZoomMode } from './editor-Cvd7Geoc.js';
10
+ export { I as ImageContext, c as ImageCropPercent, d as ImageCropPermille, S as SelectedImageState, e as cropPercentFromCropPermille, f as cropPercentFromPermille, g as cropPercentFromSourceCrop, h as cropPermilleFromCropPercent, i as cropPermilleFromPercent, s as sourceCropFromCropPercent, v as validateImageCropPercent } from './editor-Cvd7Geoc.js';
11
+ import { L as LayoutShapingOptions } from './shaped-measurer-B9f4A7QA.js';
12
+ import { P as PaginatedSurfaceOptions, O as OpenPaginatedResult, a as PaginatedSurface, T as TableCommandPlan, D as DocxEditorInstance } from './index-DRqY5JVF.js';
13
+ export { A as AnchorFrameOrigin, C as CHROME_GROUPS, b as CHROME_MENUS, c as CHROME_UNAVAILABLE_KEY, d as ChromeControl, e as ChromeControlId, f as ChromeControlState, g as ChromeGroup, h as ChromeGroupId, i as ChromeMenu, j as ChromeMenuEntry, k as ChromeMenuId, l as ChromeMenuItemEntry, m as ChromeMenuSeparatorEntry, n as ChromeMenuSubmenuEntry, o as ChromeSlotId, p as DEFAULT_TABLE_CHROME_DRAFT, q as DocxEditorConfig, r as DrawingSelectionIntent, E as EMU_PER_POINT, s as EquationActivation, t as EquationChromeHandlers, u as EquationOps, F as FinalizedImageOverlayInteraction, v as FontConfigurationBase, w as FontConfigurationFragment, x as FontLoadFailure, y as FontLoadFailureReason, z as FontMeasurementState, B as FontResolutionRequest, G as FontResolver, H as FontUrlSource, I as HyperlinkActivation, J as HyperlinkChromeHandlers, K as HyperlinkOps, L as IMAGE_OVERLAY_NUDGE_PT, M as IMAGE_OVERLAY_NUDGE_SHIFT_PT, N as ImageInteractionSession, Q as ImageOverlayScrollPort, R as ImageResizeHandle, S as ImageResizeResult, U as LoadFontsRequest, V as LoadFontsResult, W as MAX_RESOLVER_FAMILIES, X as OverlayFrameRect, Y as PaginatedSurfaceState, Z as ParagraphPropertyEdit, _ as RunTableChromeCommandResult, $ as SectionAnchor, a0 as SelectedDrawingOverlayTarget, a1 as SurfaceEquation, a2 as SurfaceFormatting, a3 as SurfaceHyperlink, a4 as SurfaceNavigation, a5 as SurfaceOverlayCoordinates, a6 as SurfaceParagraphFormat, a7 as TABLE_BORDER_STYLE_OPTIONS, a8 as TABLE_BORDER_TARGET_OPTIONS, a9 as TABLE_BORDER_WIDTH_OPTIONS, aa as TABLE_CHROME_SLOT_IDS, ab as TableBorderStyleOption, ac as TableBorderTargetOption, ad as TableBorderTargetValue, ae as TableBorderWidthOption, af as TableChromeDraft, ag as TableChromePick, ah as TableChromeSlotId, ai as TableInteractionLabelKey, aj as ToolbarCommandState, ak as WORD_DEFAULT_FONT, al as applyTableChromePick, am as blankDocumentBytes, an as canExecuteImageCommand, ao as captureImageMutationPreconditions, ap as chromeControlCount, aq as chromeMenuSlots, ar as chromeProbeForSlot, as as chromeSlotId, at as commandForSlot, au as commandForSlotValue, av as commandForTableChromeSlotValue, aw as composeFontConfiguration, ax as computeImageResizeResult, ay as computeMovedImagePosition, az as computeResizedImageExtentEmu, aA as createDocxEditor, aB as createFontSource, aC as createImageOverlayScrollPort, aD as cssPixelsToLayoutPoints, aE as defaultChromeGroups, aF as defaultTableLabel, aG as emuToOverlayPoints, aH as equationAtPosition, aI as executeImageCommand, aJ as finalizeImageOverlayInteraction, aK as formattingBarChromeGroups, aL as isStaleImageInteractionCommit, aM as isTableChromeSlot, aN as layoutPointsToCssPixels, aO as loadFonts, aP as overlayFrameToSheetCssPixels, aQ as overlayHostOrigin, aR as pointsToEmu, aS as probeTableChromeCommand, aT as resizePreservesAspect, aU as runSave, aV as runTableChromeCommand, aW as runTableCommand, aX as runToolbarCommand, aY as selectedDrawingOverlayTargetOf, aZ as selectedImageStateOf, a_ as surfacePaintScale, a$ as tableChromeIconPaths, b0 as tableChromeLabelKeyForTarget, b1 as tableChromeToolbarState, b2 as tableChromeVisible, b3 as tableCommandToolbarState, b4 as toolbarCommandState, b5 as toolbarCommandStates } from './index-DRqY5JVF.js';
14
14
  import { O as OoxmlPart } from './ooxml-package-CdEy9ufK.js';
15
15
  import { A as AutomationCapabilities, a as AutomationHost } from './protocol-C7ahrdUx.js';
16
16
  export { CollectReviewItems, EditorModule, EditorModuleRegistry, ReviewModuleContribution, resolveEditorModules } from './contracts/modules.js';
17
- import { S as SemanticLayout } from './semantic-records-Cc1MJrhM.js';
18
- export { T as TextMeasurer } from './semantic-records-Cc1MJrhM.js';
19
- export { S as SectionProperties } from './semantic-cell-selection-BWhVAk5B.js';
20
- export { N as NavigationCommand, S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-Cca1-X_a.js';
21
- export { F as FieldShadingMode, R as ReviewAuthorInfo, a as RevisionAuthorAssignments, b as RevisionAuthorStyle, c as RevisionStyles } from './semantic-paint-CufpIQFw.js';
22
- import './custom-node-writes-QyVZdTUA.js';
17
+ import { S as SemanticLayout } from './semantic-records-DCt-ZwKU.js';
18
+ export { T as TextMeasurer } from './semantic-records-DCt-ZwKU.js';
19
+ export { S as SectionProperties } from './semantic-cell-selection-CsHcr-yk.js';
20
+ export { N as NavigationCommand, S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-D-RZ9Ust.js';
21
+ export { F as FieldShadingMode, R as ReviewAuthorInfo, a as RevisionAuthorAssignments, b as RevisionAuthorStyle, c as RevisionStyles } from './semantic-paint-WhVtSDJK.js';
22
+ import './custom-node-writes-D6SGwebL.js';
23
23
  import './hf-references-z5Y4N1ab.js';
24
24
  import './note-nodes-BNCANoGN.js';
25
- import './tree-store-ClA-qng4.js';
25
+ import './tree-store-DgETo6Mf.js';
26
26
  import 'prosemirror-model';
27
27
  import './contracts/document.js';
28
28
  import './revision-projection-CILpvv4M.js';
package/dist/editor.js CHANGED
@@ -1 +1 @@
1
- export{Ia as AUTO_ZOOM_MODE,Na as BROWSER_AUTOMATION_CAPABILITIES,va as CHROME_GROUPS,za as CHROME_MENUS,Ca as CHROME_UNAVAILABLE_KEY,Y as DEFAULT_TABLE_CHROME_DRAFT,Q as EMU_PER_POINT,Ja as FIT_WIDTH_ZOOM_MODE,O as IMAGE_OVERLAY_NUDGE_PT,P as IMAGE_OVERLAY_NUDGE_SHIFT_PT,d as LOADING_SNAPSHOT,e as MAX_RESOLVER_FAMILIES,m as PX_PER_CM,l as PX_PER_INCH,s as SNAP_TWIPS_CM,r as SNAP_TWIPS_INCH,ca as TABLE_BORDER_STYLE_OPTIONS,ba as TABLE_BORDER_TARGET_OPTIONS,da as TABLE_BORDER_WIDTH_OPTIONS,Z as TABLE_CHROME_SLOT_IDS,q as TWIPS_PER_CM,p as TWIPS_PER_INCH,f as WORD_DEFAULT_FONT,Ha as ZOOM_MAX,Ga as ZOOM_MIN,ea as applyTableChromePick,y as applyThemeShade,x as applyThemeTint,h as blankDocumentBytes,M as canExecuteImageCommand,L as captureImageMutationPreconditions,Ba as chromeControlCount,Aa as chromeMenuSlots,ia as chromeProbeForSlot,wa as chromeSlotId,ja as commandForSlot,la as commandForSlotValue,ka as commandForTableChromeSlotValue,g as composeFontConfiguration,Ua as computeImageResizeResult,V as computeMovedImagePosition,U as computeResizedImageExtentEmu,Oa as createBrowserAutomationHost,Ma as createDocxEditor,k as createFontSource,Va as createImageOverlayScrollPort,b as createLayoutShaping,I as cropPercentFromCropPermille,G as cropPercentFromPermille,D as cropPercentFromSourceCrop,H as cropPermilleFromCropPercent,F as cropPermilleFromPercent,Ra as cssPixelsToLayoutPoints,xa as defaultChromeGroups,_ as defaultTableLabel,c as disposeLayoutShaping,v as dragIndent,ua as editorCommandKey,T as emuToOverlayPoints,Ea as equationAtPosition,N as executeImageCommand,Wa as finalizeImageOverlayInteraction,ya as formattingBarChromeGroups,n as generateRulerTicks,t as handlePosition,W as isStaleImageInteractionCommit,$ as isTableChromeSlot,Qa as layoutPointsToCssPixels,j as loadFonts,A as lowerColorValueForBorder,B as lowerColorValueForFill,Fa as mountPaginatedSurface,Sa as overlayFrameToSheetCssPixels,i as partOfNodeId,S as pointsToEmu,fa as probeTableChromeCommand,Ta as resizePreservesAspect,C as resolveColorValueToCss,z as resolveThemeColorHex,Ka as resolveZoomMode,o as rulerPageBox,ra as runSave,pa as runTableChromeCommand,ta as runTableCommand,qa as runToolbarCommand,La as sameZoomMode,R as selectedDrawingOverlayTargetOf,K as selectedImageStateOf,u as snapTwips,E as sourceCropFromCropPercent,Da as surfaceExtent,Pa as surfacePaintScale,ha as tableChromeIconPaths,ga as tableChromeLabelKeyForTarget,ma as tableChromeToolbarState,aa as tableChromeVisible,X as tableCommandState,sa as tableCommandToolbarState,a as toEditorFontError,na as toolbarCommandState,oa as toolbarCommandStates,J as validateImageCropPercent,w as validateThemeModifier}from'./chunk-DTQPINIM.js';import'./chunk-HHFMXG25.js';import'./chunk-Q66ZJFRE.js';import'./chunk-WU7PUTVA.js';import'./chunk-A2JIBG75.js';import'./chunk-KBCC66CI.js';import'./chunk-5VC5HGJA.js';export{m as DEFAULT_IMAGE_RESOURCE_LIMITS,xf as DRAWING_REL_FROM_H,yf as DRAWING_REL_FROM_V,Na as IMAGE_WRAP_TARGETS,Af as positionInputFromPropertiesCommand,zf as propertiesCommandHasPositionFields,n as resolveImageResourceLimits,eb as resolveSvgIntrinsicSize,ab as sniffImageMime,wf as validateDrawingPositionInput,fb as validateRasterHeader,Bf as validateSetImagePositionCommand}from'./chunk-VUJGPCPU.js';import'./chunk-PSZH2VXP.js';export{a as resolveEditorModules}from'./chunk-GQQOL4PV.js';
1
+ export{Ia as AUTO_ZOOM_MODE,Na as BROWSER_AUTOMATION_CAPABILITIES,va as CHROME_GROUPS,za as CHROME_MENUS,Ca as CHROME_UNAVAILABLE_KEY,Y as DEFAULT_TABLE_CHROME_DRAFT,Q as EMU_PER_POINT,Ja as FIT_WIDTH_ZOOM_MODE,O as IMAGE_OVERLAY_NUDGE_PT,P as IMAGE_OVERLAY_NUDGE_SHIFT_PT,d as LOADING_SNAPSHOT,e as MAX_RESOLVER_FAMILIES,m as PX_PER_CM,l as PX_PER_INCH,s as SNAP_TWIPS_CM,r as SNAP_TWIPS_INCH,ca as TABLE_BORDER_STYLE_OPTIONS,ba as TABLE_BORDER_TARGET_OPTIONS,da as TABLE_BORDER_WIDTH_OPTIONS,Z as TABLE_CHROME_SLOT_IDS,q as TWIPS_PER_CM,p as TWIPS_PER_INCH,f as WORD_DEFAULT_FONT,Ha as ZOOM_MAX,Ga as ZOOM_MIN,ea as applyTableChromePick,y as applyThemeShade,x as applyThemeTint,h as blankDocumentBytes,M as canExecuteImageCommand,L as captureImageMutationPreconditions,Ba as chromeControlCount,Aa as chromeMenuSlots,ia as chromeProbeForSlot,wa as chromeSlotId,ja as commandForSlot,la as commandForSlotValue,ka as commandForTableChromeSlotValue,g as composeFontConfiguration,Va as computeImageResizeResult,V as computeMovedImagePosition,U as computeResizedImageExtentEmu,Oa as createBrowserAutomationHost,Ma as createDocxEditor,k as createFontSource,Wa as createImageOverlayScrollPort,b as createLayoutShaping,I as cropPercentFromCropPermille,G as cropPercentFromPermille,D as cropPercentFromSourceCrop,H as cropPermilleFromCropPercent,F as cropPermilleFromPercent,Ra as cssPixelsToLayoutPoints,xa as defaultChromeGroups,_ as defaultTableLabel,c as disposeLayoutShaping,v as dragIndent,ua as editorCommandKey,T as emuToOverlayPoints,Ea as equationAtPosition,N as executeImageCommand,Xa as finalizeImageOverlayInteraction,ya as formattingBarChromeGroups,n as generateRulerTicks,t as handlePosition,W as isStaleImageInteractionCommit,$ as isTableChromeSlot,Qa as layoutPointsToCssPixels,j as loadFonts,A as lowerColorValueForBorder,B as lowerColorValueForFill,Fa as mountPaginatedSurface,Sa as overlayFrameToSheetCssPixels,Ta as overlayHostOrigin,i as partOfNodeId,S as pointsToEmu,fa as probeTableChromeCommand,Ua as resizePreservesAspect,C as resolveColorValueToCss,z as resolveThemeColorHex,Ka as resolveZoomMode,o as rulerPageBox,ra as runSave,pa as runTableChromeCommand,ta as runTableCommand,qa as runToolbarCommand,La as sameZoomMode,R as selectedDrawingOverlayTargetOf,K as selectedImageStateOf,u as snapTwips,E as sourceCropFromCropPercent,Da as surfaceExtent,Pa as surfacePaintScale,ha as tableChromeIconPaths,ga as tableChromeLabelKeyForTarget,ma as tableChromeToolbarState,aa as tableChromeVisible,X as tableCommandState,sa as tableCommandToolbarState,a as toEditorFontError,na as toolbarCommandState,oa as toolbarCommandStates,J as validateImageCropPercent,w as validateThemeModifier}from'./chunk-SIIFNE6U.js';import'./chunk-6JWP2H7K.js';import'./chunk-LIXPSV4T.js';import'./chunk-WU7PUTVA.js';import'./chunk-7I3BSGGS.js';import'./chunk-VXYECPKA.js';import'./chunk-DIMEYVNS.js';export{m as DEFAULT_IMAGE_RESOURCE_LIMITS,Cf as DRAWING_REL_FROM_H,Df as DRAWING_REL_FROM_V,Na as IMAGE_WRAP_TARGETS,Ff as positionInputFromPropertiesCommand,Ef as propertiesCommandHasPositionFields,n as resolveImageResourceLimits,eb as resolveSvgIntrinsicSize,ab as sniffImageMime,Bf as validateDrawingPositionInput,fb as validateRasterHeader,Gf as validateSetImagePositionCommand}from'./chunk-CKDAK3MV.js';import'./chunk-PSZH2VXP.js';export{a as resolveEditorModules}from'./chunk-GQQOL4PV.js';
@@ -1,4 +1,4 @@
1
- import { D as DrawingProjection } from './tree-op-types-XMVsJSpe.js';
1
+ import { D as DrawingProjection } from './tree-op-types-CnRb7AYo.js';
2
2
  import { c as OoxmlPackage } from './ooxml-package-CdEy9ufK.js';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { D as DrawingProjection } from './tree-op-types-B0-sCtw-.cjs';
1
+ import { D as DrawingProjection } from './tree-op-types-D1vNJ7XC.cjs';
2
2
  import { c as OoxmlPackage } from './ooxml-package-CdEy9ufK.cjs';
3
3
 
4
4
  /**
@@ -1,17 +1,17 @@
1
- import { T as TreeDocOp, d as DrawingPositionInput, l as DrawingTransform, h as DrawingTreeDocOp } from './tree-op-types-XMVsJSpe.js';
2
- import { b as ImageDecodePort, S as SupportedImageMime } from './image-resources-eZqD_-vC.js';
3
- import { g as ReviewRevisionKind } from './review-items-D5SPFtsO.js';
1
+ import { T as TreeDocOp, d as DrawingPositionInput, m as DrawingTransform, i as DrawingTreeDocOp } from './tree-op-types-CnRb7AYo.js';
2
+ import { b as ImageDecodePort, S as SupportedImageMime } from './image-resources-BgA9EQxY.js';
3
+ import { g as ReviewRevisionKind } from './review-items-bdGxFWNA.js';
4
4
  import { EditorModule, ReviewModuleContribution } from './contracts/modules.js';
5
- import { j as FontSource, k as FontSourceSubstitution, F as FontConfiguration, D as DocumentSource, Z as ZoomMode, E as EditorFontError, l as Editor, b as EditorCommand, C as CanResult, S as SelectedImageState, V as ViewScope, m as FontFaceRequest, I as ImageContext, T as TableBorderEdgeTarget, n as TableBorderSpec, o as TableBorderStyle, p as TableContext } from './editor-PUlv5Pp7.js';
5
+ import { j as FontSource, k as FontSourceSubstitution, F as FontConfiguration, D as DocumentSource, Z as ZoomMode, E as EditorFontError, l as Editor, b as EditorCommand, C as CanResult, S as SelectedImageState, V as ViewScope, m as FontFaceRequest, I as ImageContext, T as TableBorderEdgeTarget, n as TableBorderSpec, o as TableBorderStyle, p as TableContext } from './editor-Cvd7Geoc.js';
6
6
  import { R as RevisionDisplayMode } from './revision-projection-CILpvv4M.js';
7
- import { S as SemanticPosition, a as SemanticSelection, N as NavigationCommand } from './semantic-interaction-Cca1-X_a.js';
8
- import { c as RevisionStyles, R as ReviewAuthorInfo, b as RevisionAuthorStyle, F as FieldShadingMode, d as DrawingPaintStrings } from './semantic-paint-CufpIQFw.js';
7
+ import { S as SemanticPosition, a as SemanticSelection, N as NavigationCommand } from './semantic-interaction-D-RZ9Ust.js';
8
+ import { c as RevisionStyles, R as ReviewAuthorInfo, b as RevisionAuthorStyle, F as FieldShadingMode, d as DrawingPaintStrings } from './semantic-paint-WhVtSDJK.js';
9
9
  import { R as ResolvedFootnoteProperties, a as ResolvedEndnoteProperties, A as AuthoredNoteProperties } from './note-properties-jvnw_DGG.js';
10
- import { S as SemanticLayout, C as ContentControlBoundaryRecord, T as TextMeasurer } from './semantic-records-Cc1MJrhM.js';
11
- import { S as StoryScope, A as ApplyImagePropertiesInput, d as ImageIntentResult, c as InsertImageInput, B as BookmarkIndex } from './custom-node-writes-QyVZdTUA.js';
12
- import { C as CellSelection, S as SectionProperties } from './semantic-cell-selection-BWhVAk5B.js';
10
+ import { S as SemanticLayout, C as ContentControlBoundaryRecord, T as TextMeasurer } from './semantic-records-DCt-ZwKU.js';
11
+ import { S as StoryScope, A as ApplyImagePropertiesInput, d as ImageIntentResult, c as InsertImageInput, B as BookmarkIndex } from './custom-node-writes-D6SGwebL.js';
12
+ import { C as CellSelection, S as SectionProperties } from './semantic-cell-selection-CsHcr-yk.js';
13
13
  import { Unsubscribe, ExecResult, ParagraphTabStop, IndentFormatting, ParagraphFlags, ParagraphDisagreements, SelectionPin } from './contracts/types.js';
14
- import { c as TreeDocxSessionView, a as TreeApplyResult } from './tree-session-DBJgmdmc.js';
14
+ import { c as TreeDocxSessionView, a as TreeApplyResult } from './tree-session-ZuBFOhIh.js';
15
15
  import './contracts/document.js';
16
16
 
17
17
  /**
@@ -723,6 +723,21 @@ declare function overlayFrameToSheetCssPixels(layout: SemanticLayout, frame: Ove
723
723
  readonly width: number;
724
724
  readonly height: number;
725
725
  };
726
+ /**
727
+ * Where the painted surface's box begins inside overlay chrome's containing block, in CSS pixels.
728
+ *
729
+ * {@link overlayFrameToSheetCssPixels} produces coordinates relative to the surface element —
730
+ * the box the pages paint into — but overlay chrome portals OUTSIDE that element, and its
731
+ * absolutely positioned pieces resolve against the nearest positioned ancestor. The surface
732
+ * centres itself inside that ancestor with a stylesheet margin, so a frame placed without this
733
+ * origin lands at the far left of the viewport, one full centring margin off the image it rings.
734
+ * `offsetLeft`/`offsetTop` measure against the same positioned ancestor the chrome resolves
735
+ * against — every element between the two is static — which is what makes the two spaces agree.
736
+ */
737
+ declare function overlayHostOrigin(surfaceElement: HTMLElement | null): {
738
+ readonly left: number;
739
+ readonly top: number;
740
+ };
726
741
  /** Whether this handle drag should preserve aspect ratio. */
727
742
  declare function resizePreservesAspect(handle: ImageResizeHandle, aspectLocked: boolean, shiftKey: boolean): boolean;
728
743
  /**
@@ -1142,6 +1157,18 @@ interface RevealOptions {
1142
1157
  readonly offsetPx?: number;
1143
1158
  readonly behavior?: ScrollBehavior;
1144
1159
  }
1160
+ /**
1161
+ * How the current selection came to address a drawing — see
1162
+ * {@link PaginatedSurface.drawingSelectionIntent}.
1163
+ */
1164
+ type DrawingSelectionIntent = {
1165
+ readonly kind: 'none';
1166
+ } | {
1167
+ readonly kind: 'pointer';
1168
+ readonly drawingNodeId: string;
1169
+ } | {
1170
+ readonly kind: 'programmatic';
1171
+ };
1145
1172
  /**
1146
1173
  * Everything observable about the surface right now, as one immutable value.
1147
1174
  *
@@ -1248,7 +1275,13 @@ interface PaginatedSurface {
1248
1275
  * keep calling it directly.
1249
1276
  */
1250
1277
  enqueueType(text: string): void;
1251
- /** Land any queued typed text now, as its own transaction. No-op when empty. */
1278
+ /**
1279
+ * Land any queued typed text now, as its own transaction, AND publish any layout pass a
1280
+ * commit deferred under input pressure — so the caller reads current text and current
1281
+ * geometry at one seam. Both halves are no-ops when nothing is pending, which is the
1282
+ * common case: an isolated commit lays out synchronously in its own tail, and deferral
1283
+ * only happens when the browser reports queued input behind an expensive pass.
1284
+ */
1252
1285
  flushPendingInput(): void;
1253
1286
  /**
1254
1287
  * Insert text whose newlines are PARAGRAPH BOUNDARIES, in one commit.
@@ -1617,6 +1650,19 @@ interface PaginatedSurface {
1617
1650
  * follows the flush republishes it.
1618
1651
  */
1619
1652
  publishedLayout(): SemanticLayout;
1653
+ /**
1654
+ * How the current selection came to address a drawing, if it does at all.
1655
+ *
1656
+ * Word's rule: a caret NEXT TO a floating object is a text caret, never an object
1657
+ * selection — only clicking the object (or an explicit host selection write) selects it.
1658
+ * The engine's selection is a caret at the drawing's anchor offset either way, so the
1659
+ * offsets alone cannot tell the two apart; this is the discriminator. `none` for a fresh
1660
+ * mount (a document must not open with an image selected — the initial caret routinely
1661
+ * coincides with a drawing anchored at offset zero) and after typing, caret keys, or a
1662
+ * pointer press on anything that is not a drawing. `pointer` names the drawing the press
1663
+ * landed on, so a stale press can never claim a different drawing the caret later visits.
1664
+ */
1665
+ drawingSelectionIntent(): DrawingSelectionIntent;
1620
1666
  /**
1621
1667
  * Paint-scale coordinate context for overlay chrome.
1622
1668
  *
@@ -2912,4 +2958,4 @@ declare function runTableCommand(editor: Editor | null, command: EditorCommand):
2912
2958
  */
2913
2959
  declare function createDocxEditor(config: DocxEditorConfig): DocxEditorInstance;
2914
2960
 
2915
- export { type SelectedDrawingOverlayTarget as $, type AnchorFrameOrigin as A, type FontResolver as B, CHROME_GROUPS as C, type DocxEditorInstance as D, EMU_PER_POINT as E, type FinalizedImageOverlayInteraction as F, type FontUrlSource as G, type HyperlinkActivation as H, type HyperlinkChromeHandlers as I, type HyperlinkOps as J, IMAGE_OVERLAY_NUDGE_PT as K, IMAGE_OVERLAY_NUDGE_SHIFT_PT as L, type ImageInteractionSession as M, type ImageOverlayScrollPort as N, type OpenPaginatedResult as O, type PaginatedSurfaceOptions as P, type ImageResizeHandle as Q, type ImageResizeResult as R, type LoadFontsRequest as S, type TableCommandPlan as T, type LoadFontsResult as U, MAX_RESOLVER_FAMILIES as V, type OverlayFrameRect as W, type PaginatedSurfaceState as X, type ParagraphPropertyEdit as Y, type RunTableChromeCommandResult as Z, type SectionAnchor as _, type PaginatedSurface as a, tableChromeToolbarState as a$, type SurfaceEquation as a0, type SurfaceFormatting as a1, type SurfaceHyperlink as a2, type SurfaceNavigation as a3, type SurfaceOverlayCoordinates as a4, type SurfaceParagraphFormat as a5, TABLE_BORDER_STYLE_OPTIONS as a6, TABLE_BORDER_TARGET_OPTIONS as a7, TABLE_BORDER_WIDTH_OPTIONS as a8, TABLE_CHROME_SLOT_IDS as a9, createFontSource as aA, createImageOverlayScrollPort as aB, cssPixelsToLayoutPoints as aC, defaultChromeGroups as aD, defaultTableLabel as aE, emuToOverlayPoints as aF, equationAtPosition as aG, executeImageCommand as aH, finalizeImageOverlayInteraction as aI, formattingBarChromeGroups as aJ, isStaleImageInteractionCommit as aK, isTableChromeSlot as aL, layoutPointsToCssPixels as aM, loadFonts as aN, overlayFrameToSheetCssPixels as aO, pointsToEmu as aP, probeTableChromeCommand as aQ, resizePreservesAspect as aR, runSave as aS, runTableChromeCommand as aT, runTableCommand as aU, runToolbarCommand as aV, selectedDrawingOverlayTargetOf as aW, selectedImageStateOf as aX, surfacePaintScale as aY, tableChromeIconPaths as aZ, tableChromeLabelKeyForTarget as a_, type TableBorderStyleOption as aa, type TableBorderTargetOption as ab, type TableBorderTargetValue as ac, type TableBorderWidthOption as ad, type TableChromeDraft as ae, type TableChromePick as af, type TableChromeSlotId as ag, type TableInteractionLabelKey as ah, type ToolbarCommandState as ai, WORD_DEFAULT_FONT as aj, applyTableChromePick as ak, blankDocumentBytes as al, canExecuteImageCommand as am, captureImageMutationPreconditions as an, chromeControlCount as ao, chromeMenuSlots as ap, chromeProbeForSlot as aq, chromeSlotId as ar, commandForSlot as as, commandForSlotValue as at, commandForTableChromeSlotValue as au, composeFontConfiguration as av, computeImageResizeResult as aw, computeMovedImagePosition as ax, computeResizedImageExtentEmu as ay, createDocxEditor as az, CHROME_MENUS as b, tableChromeVisible as b0, tableCommandToolbarState as b1, toolbarCommandState as b2, toolbarCommandStates as b3, CHROME_UNAVAILABLE_KEY as c, type ChromeControl as d, type ChromeControlId as e, type ChromeControlState as f, type ChromeGroup as g, type ChromeGroupId as h, type ChromeMenu as i, type ChromeMenuEntry as j, type ChromeMenuId as k, type ChromeMenuItemEntry as l, type ChromeMenuSeparatorEntry as m, type ChromeMenuSubmenuEntry as n, type ChromeSlotId as o, DEFAULT_TABLE_CHROME_DRAFT as p, type DocxEditorConfig as q, type EquationActivation as r, type EquationChromeHandlers as s, type EquationOps as t, type FontConfigurationBase as u, type FontConfigurationFragment as v, type FontLoadFailure as w, type FontLoadFailureReason as x, type FontMeasurementState as y, type FontResolutionRequest as z };
2961
+ export { type SectionAnchor as $, type AnchorFrameOrigin as A, type FontResolutionRequest as B, CHROME_GROUPS as C, type DocxEditorInstance as D, EMU_PER_POINT as E, type FinalizedImageOverlayInteraction as F, type FontResolver as G, type FontUrlSource as H, type HyperlinkActivation as I, type HyperlinkChromeHandlers as J, type HyperlinkOps as K, IMAGE_OVERLAY_NUDGE_PT as L, IMAGE_OVERLAY_NUDGE_SHIFT_PT as M, type ImageInteractionSession as N, type OpenPaginatedResult as O, type PaginatedSurfaceOptions as P, type ImageOverlayScrollPort as Q, type ImageResizeHandle as R, type ImageResizeResult as S, type TableCommandPlan as T, type LoadFontsRequest as U, type LoadFontsResult as V, MAX_RESOLVER_FAMILIES as W, type OverlayFrameRect as X, type PaginatedSurfaceState as Y, type ParagraphPropertyEdit as Z, type RunTableChromeCommandResult as _, type PaginatedSurface as a, tableChromeIconPaths as a$, type SelectedDrawingOverlayTarget as a0, type SurfaceEquation as a1, type SurfaceFormatting as a2, type SurfaceHyperlink as a3, type SurfaceNavigation as a4, type SurfaceOverlayCoordinates as a5, type SurfaceParagraphFormat as a6, TABLE_BORDER_STYLE_OPTIONS as a7, TABLE_BORDER_TARGET_OPTIONS as a8, TABLE_BORDER_WIDTH_OPTIONS as a9, createDocxEditor as aA, createFontSource as aB, createImageOverlayScrollPort as aC, cssPixelsToLayoutPoints as aD, defaultChromeGroups as aE, defaultTableLabel as aF, emuToOverlayPoints as aG, equationAtPosition as aH, executeImageCommand as aI, finalizeImageOverlayInteraction as aJ, formattingBarChromeGroups as aK, isStaleImageInteractionCommit as aL, isTableChromeSlot as aM, layoutPointsToCssPixels as aN, loadFonts as aO, overlayFrameToSheetCssPixels as aP, overlayHostOrigin as aQ, pointsToEmu as aR, probeTableChromeCommand as aS, resizePreservesAspect as aT, runSave as aU, runTableChromeCommand as aV, runTableCommand as aW, runToolbarCommand as aX, selectedDrawingOverlayTargetOf as aY, selectedImageStateOf as aZ, surfacePaintScale as a_, TABLE_CHROME_SLOT_IDS as aa, type TableBorderStyleOption as ab, type TableBorderTargetOption as ac, type TableBorderTargetValue as ad, type TableBorderWidthOption as ae, type TableChromeDraft as af, type TableChromePick as ag, type TableChromeSlotId as ah, type TableInteractionLabelKey as ai, type ToolbarCommandState as aj, WORD_DEFAULT_FONT as ak, applyTableChromePick as al, blankDocumentBytes as am, canExecuteImageCommand as an, captureImageMutationPreconditions as ao, chromeControlCount as ap, chromeMenuSlots as aq, chromeProbeForSlot as ar, chromeSlotId as as, commandForSlot as at, commandForSlotValue as au, commandForTableChromeSlotValue as av, composeFontConfiguration as aw, computeImageResizeResult as ax, computeMovedImagePosition as ay, computeResizedImageExtentEmu as az, CHROME_MENUS as b, tableChromeLabelKeyForTarget as b0, tableChromeToolbarState as b1, tableChromeVisible as b2, tableCommandToolbarState as b3, toolbarCommandState as b4, toolbarCommandStates as b5, CHROME_UNAVAILABLE_KEY as c, type ChromeControl as d, type ChromeControlId as e, type ChromeControlState as f, type ChromeGroup as g, type ChromeGroupId as h, type ChromeMenu as i, type ChromeMenuEntry as j, type ChromeMenuId as k, type ChromeMenuItemEntry as l, type ChromeMenuSeparatorEntry as m, type ChromeMenuSubmenuEntry as n, type ChromeSlotId as o, DEFAULT_TABLE_CHROME_DRAFT as p, type DocxEditorConfig as q, type DrawingSelectionIntent as r, type EquationActivation as s, type EquationChromeHandlers as t, type EquationOps as u, type FontConfigurationBase as v, type FontConfigurationFragment as w, type FontLoadFailure as x, type FontLoadFailureReason as y, type FontMeasurementState as z };
@@ -1,17 +1,17 @@
1
- import { T as TreeDocOp, d as DrawingPositionInput, l as DrawingTransform, h as DrawingTreeDocOp } from './tree-op-types-B0-sCtw-.cjs';
2
- import { b as ImageDecodePort, S as SupportedImageMime } from './image-resources-DQOiwOuE.cjs';
3
- import { g as ReviewRevisionKind } from './review-items-DpsqTHio.cjs';
1
+ import { T as TreeDocOp, d as DrawingPositionInput, m as DrawingTransform, i as DrawingTreeDocOp } from './tree-op-types-D1vNJ7XC.cjs';
2
+ import { b as ImageDecodePort, S as SupportedImageMime } from './image-resources-BiA-IXgo.cjs';
3
+ import { g as ReviewRevisionKind } from './review-items-B8tffIXj.cjs';
4
4
  import { EditorModule, ReviewModuleContribution } from './contracts/modules.cjs';
5
- import { j as FontSource, k as FontSourceSubstitution, F as FontConfiguration, D as DocumentSource, Z as ZoomMode, E as EditorFontError, l as Editor, b as EditorCommand, C as CanResult, S as SelectedImageState, V as ViewScope, m as FontFaceRequest, I as ImageContext, T as TableBorderEdgeTarget, n as TableBorderSpec, o as TableBorderStyle, p as TableContext } from './editor-CojjwMmF.cjs';
5
+ import { j as FontSource, k as FontSourceSubstitution, F as FontConfiguration, D as DocumentSource, Z as ZoomMode, E as EditorFontError, l as Editor, b as EditorCommand, C as CanResult, S as SelectedImageState, V as ViewScope, m as FontFaceRequest, I as ImageContext, T as TableBorderEdgeTarget, n as TableBorderSpec, o as TableBorderStyle, p as TableContext } from './editor-cAEf1uXW.cjs';
6
6
  import { R as RevisionDisplayMode } from './revision-projection-Cc4wz30g.cjs';
7
- import { S as SemanticPosition, a as SemanticSelection, N as NavigationCommand } from './semantic-interaction-BjOcDB06.cjs';
8
- import { c as RevisionStyles, R as ReviewAuthorInfo, b as RevisionAuthorStyle, F as FieldShadingMode, d as DrawingPaintStrings } from './semantic-paint-Ur7pAINj.cjs';
7
+ import { S as SemanticPosition, a as SemanticSelection, N as NavigationCommand } from './semantic-interaction-BfWDD_0V.cjs';
8
+ import { c as RevisionStyles, R as ReviewAuthorInfo, b as RevisionAuthorStyle, F as FieldShadingMode, d as DrawingPaintStrings } from './semantic-paint-Bd7EqzXV.cjs';
9
9
  import { R as ResolvedFootnoteProperties, a as ResolvedEndnoteProperties, A as AuthoredNoteProperties } from './note-properties-CQlxjic_.cjs';
10
- import { S as SemanticLayout, C as ContentControlBoundaryRecord, T as TextMeasurer } from './semantic-records-C3Z76KeN.cjs';
11
- import { S as StoryScope, A as ApplyImagePropertiesInput, d as ImageIntentResult, c as InsertImageInput, B as BookmarkIndex } from './custom-node-writes-7ERv0f_X.cjs';
12
- import { C as CellSelection, S as SectionProperties } from './semantic-cell-selection-DJPjBWzf.cjs';
10
+ import { S as SemanticLayout, C as ContentControlBoundaryRecord, T as TextMeasurer } from './semantic-records-DadVT_E1.cjs';
11
+ import { S as StoryScope, A as ApplyImagePropertiesInput, d as ImageIntentResult, c as InsertImageInput, B as BookmarkIndex } from './custom-node-writes-Dy3b20PS.cjs';
12
+ import { C as CellSelection, S as SectionProperties } from './semantic-cell-selection-BPzx6DdT.cjs';
13
13
  import { Unsubscribe, ExecResult, ParagraphTabStop, IndentFormatting, ParagraphFlags, ParagraphDisagreements, SelectionPin } from './contracts/types.cjs';
14
- import { c as TreeDocxSessionView, a as TreeApplyResult } from './tree-session-D945D43B.cjs';
14
+ import { c as TreeDocxSessionView, a as TreeApplyResult } from './tree-session-Df02ajqc.cjs';
15
15
  import './contracts/document.cjs';
16
16
 
17
17
  /**
@@ -723,6 +723,21 @@ declare function overlayFrameToSheetCssPixels(layout: SemanticLayout, frame: Ove
723
723
  readonly width: number;
724
724
  readonly height: number;
725
725
  };
726
+ /**
727
+ * Where the painted surface's box begins inside overlay chrome's containing block, in CSS pixels.
728
+ *
729
+ * {@link overlayFrameToSheetCssPixels} produces coordinates relative to the surface element —
730
+ * the box the pages paint into — but overlay chrome portals OUTSIDE that element, and its
731
+ * absolutely positioned pieces resolve against the nearest positioned ancestor. The surface
732
+ * centres itself inside that ancestor with a stylesheet margin, so a frame placed without this
733
+ * origin lands at the far left of the viewport, one full centring margin off the image it rings.
734
+ * `offsetLeft`/`offsetTop` measure against the same positioned ancestor the chrome resolves
735
+ * against — every element between the two is static — which is what makes the two spaces agree.
736
+ */
737
+ declare function overlayHostOrigin(surfaceElement: HTMLElement | null): {
738
+ readonly left: number;
739
+ readonly top: number;
740
+ };
726
741
  /** Whether this handle drag should preserve aspect ratio. */
727
742
  declare function resizePreservesAspect(handle: ImageResizeHandle, aspectLocked: boolean, shiftKey: boolean): boolean;
728
743
  /**
@@ -1142,6 +1157,18 @@ interface RevealOptions {
1142
1157
  readonly offsetPx?: number;
1143
1158
  readonly behavior?: ScrollBehavior;
1144
1159
  }
1160
+ /**
1161
+ * How the current selection came to address a drawing — see
1162
+ * {@link PaginatedSurface.drawingSelectionIntent}.
1163
+ */
1164
+ type DrawingSelectionIntent = {
1165
+ readonly kind: 'none';
1166
+ } | {
1167
+ readonly kind: 'pointer';
1168
+ readonly drawingNodeId: string;
1169
+ } | {
1170
+ readonly kind: 'programmatic';
1171
+ };
1145
1172
  /**
1146
1173
  * Everything observable about the surface right now, as one immutable value.
1147
1174
  *
@@ -1248,7 +1275,13 @@ interface PaginatedSurface {
1248
1275
  * keep calling it directly.
1249
1276
  */
1250
1277
  enqueueType(text: string): void;
1251
- /** Land any queued typed text now, as its own transaction. No-op when empty. */
1278
+ /**
1279
+ * Land any queued typed text now, as its own transaction, AND publish any layout pass a
1280
+ * commit deferred under input pressure — so the caller reads current text and current
1281
+ * geometry at one seam. Both halves are no-ops when nothing is pending, which is the
1282
+ * common case: an isolated commit lays out synchronously in its own tail, and deferral
1283
+ * only happens when the browser reports queued input behind an expensive pass.
1284
+ */
1252
1285
  flushPendingInput(): void;
1253
1286
  /**
1254
1287
  * Insert text whose newlines are PARAGRAPH BOUNDARIES, in one commit.
@@ -1617,6 +1650,19 @@ interface PaginatedSurface {
1617
1650
  * follows the flush republishes it.
1618
1651
  */
1619
1652
  publishedLayout(): SemanticLayout;
1653
+ /**
1654
+ * How the current selection came to address a drawing, if it does at all.
1655
+ *
1656
+ * Word's rule: a caret NEXT TO a floating object is a text caret, never an object
1657
+ * selection — only clicking the object (or an explicit host selection write) selects it.
1658
+ * The engine's selection is a caret at the drawing's anchor offset either way, so the
1659
+ * offsets alone cannot tell the two apart; this is the discriminator. `none` for a fresh
1660
+ * mount (a document must not open with an image selected — the initial caret routinely
1661
+ * coincides with a drawing anchored at offset zero) and after typing, caret keys, or a
1662
+ * pointer press on anything that is not a drawing. `pointer` names the drawing the press
1663
+ * landed on, so a stale press can never claim a different drawing the caret later visits.
1664
+ */
1665
+ drawingSelectionIntent(): DrawingSelectionIntent;
1620
1666
  /**
1621
1667
  * Paint-scale coordinate context for overlay chrome.
1622
1668
  *
@@ -2912,4 +2958,4 @@ declare function runTableCommand(editor: Editor | null, command: EditorCommand):
2912
2958
  */
2913
2959
  declare function createDocxEditor(config: DocxEditorConfig): DocxEditorInstance;
2914
2960
 
2915
- export { type SelectedDrawingOverlayTarget as $, type AnchorFrameOrigin as A, type FontResolver as B, CHROME_GROUPS as C, type DocxEditorInstance as D, EMU_PER_POINT as E, type FinalizedImageOverlayInteraction as F, type FontUrlSource as G, type HyperlinkActivation as H, type HyperlinkChromeHandlers as I, type HyperlinkOps as J, IMAGE_OVERLAY_NUDGE_PT as K, IMAGE_OVERLAY_NUDGE_SHIFT_PT as L, type ImageInteractionSession as M, type ImageOverlayScrollPort as N, type OpenPaginatedResult as O, type PaginatedSurfaceOptions as P, type ImageResizeHandle as Q, type ImageResizeResult as R, type LoadFontsRequest as S, type TableCommandPlan as T, type LoadFontsResult as U, MAX_RESOLVER_FAMILIES as V, type OverlayFrameRect as W, type PaginatedSurfaceState as X, type ParagraphPropertyEdit as Y, type RunTableChromeCommandResult as Z, type SectionAnchor as _, type PaginatedSurface as a, tableChromeToolbarState as a$, type SurfaceEquation as a0, type SurfaceFormatting as a1, type SurfaceHyperlink as a2, type SurfaceNavigation as a3, type SurfaceOverlayCoordinates as a4, type SurfaceParagraphFormat as a5, TABLE_BORDER_STYLE_OPTIONS as a6, TABLE_BORDER_TARGET_OPTIONS as a7, TABLE_BORDER_WIDTH_OPTIONS as a8, TABLE_CHROME_SLOT_IDS as a9, createFontSource as aA, createImageOverlayScrollPort as aB, cssPixelsToLayoutPoints as aC, defaultChromeGroups as aD, defaultTableLabel as aE, emuToOverlayPoints as aF, equationAtPosition as aG, executeImageCommand as aH, finalizeImageOverlayInteraction as aI, formattingBarChromeGroups as aJ, isStaleImageInteractionCommit as aK, isTableChromeSlot as aL, layoutPointsToCssPixels as aM, loadFonts as aN, overlayFrameToSheetCssPixels as aO, pointsToEmu as aP, probeTableChromeCommand as aQ, resizePreservesAspect as aR, runSave as aS, runTableChromeCommand as aT, runTableCommand as aU, runToolbarCommand as aV, selectedDrawingOverlayTargetOf as aW, selectedImageStateOf as aX, surfacePaintScale as aY, tableChromeIconPaths as aZ, tableChromeLabelKeyForTarget as a_, type TableBorderStyleOption as aa, type TableBorderTargetOption as ab, type TableBorderTargetValue as ac, type TableBorderWidthOption as ad, type TableChromeDraft as ae, type TableChromePick as af, type TableChromeSlotId as ag, type TableInteractionLabelKey as ah, type ToolbarCommandState as ai, WORD_DEFAULT_FONT as aj, applyTableChromePick as ak, blankDocumentBytes as al, canExecuteImageCommand as am, captureImageMutationPreconditions as an, chromeControlCount as ao, chromeMenuSlots as ap, chromeProbeForSlot as aq, chromeSlotId as ar, commandForSlot as as, commandForSlotValue as at, commandForTableChromeSlotValue as au, composeFontConfiguration as av, computeImageResizeResult as aw, computeMovedImagePosition as ax, computeResizedImageExtentEmu as ay, createDocxEditor as az, CHROME_MENUS as b, tableChromeVisible as b0, tableCommandToolbarState as b1, toolbarCommandState as b2, toolbarCommandStates as b3, CHROME_UNAVAILABLE_KEY as c, type ChromeControl as d, type ChromeControlId as e, type ChromeControlState as f, type ChromeGroup as g, type ChromeGroupId as h, type ChromeMenu as i, type ChromeMenuEntry as j, type ChromeMenuId as k, type ChromeMenuItemEntry as l, type ChromeMenuSeparatorEntry as m, type ChromeMenuSubmenuEntry as n, type ChromeSlotId as o, DEFAULT_TABLE_CHROME_DRAFT as p, type DocxEditorConfig as q, type EquationActivation as r, type EquationChromeHandlers as s, type EquationOps as t, type FontConfigurationBase as u, type FontConfigurationFragment as v, type FontLoadFailure as w, type FontLoadFailureReason as x, type FontMeasurementState as y, type FontResolutionRequest as z };
2961
+ export { type SectionAnchor as $, type AnchorFrameOrigin as A, type FontResolutionRequest as B, CHROME_GROUPS as C, type DocxEditorInstance as D, EMU_PER_POINT as E, type FinalizedImageOverlayInteraction as F, type FontResolver as G, type FontUrlSource as H, type HyperlinkActivation as I, type HyperlinkChromeHandlers as J, type HyperlinkOps as K, IMAGE_OVERLAY_NUDGE_PT as L, IMAGE_OVERLAY_NUDGE_SHIFT_PT as M, type ImageInteractionSession as N, type OpenPaginatedResult as O, type PaginatedSurfaceOptions as P, type ImageOverlayScrollPort as Q, type ImageResizeHandle as R, type ImageResizeResult as S, type TableCommandPlan as T, type LoadFontsRequest as U, type LoadFontsResult as V, MAX_RESOLVER_FAMILIES as W, type OverlayFrameRect as X, type PaginatedSurfaceState as Y, type ParagraphPropertyEdit as Z, type RunTableChromeCommandResult as _, type PaginatedSurface as a, tableChromeIconPaths as a$, type SelectedDrawingOverlayTarget as a0, type SurfaceEquation as a1, type SurfaceFormatting as a2, type SurfaceHyperlink as a3, type SurfaceNavigation as a4, type SurfaceOverlayCoordinates as a5, type SurfaceParagraphFormat as a6, TABLE_BORDER_STYLE_OPTIONS as a7, TABLE_BORDER_TARGET_OPTIONS as a8, TABLE_BORDER_WIDTH_OPTIONS as a9, createDocxEditor as aA, createFontSource as aB, createImageOverlayScrollPort as aC, cssPixelsToLayoutPoints as aD, defaultChromeGroups as aE, defaultTableLabel as aF, emuToOverlayPoints as aG, equationAtPosition as aH, executeImageCommand as aI, finalizeImageOverlayInteraction as aJ, formattingBarChromeGroups as aK, isStaleImageInteractionCommit as aL, isTableChromeSlot as aM, layoutPointsToCssPixels as aN, loadFonts as aO, overlayFrameToSheetCssPixels as aP, overlayHostOrigin as aQ, pointsToEmu as aR, probeTableChromeCommand as aS, resizePreservesAspect as aT, runSave as aU, runTableChromeCommand as aV, runTableCommand as aW, runToolbarCommand as aX, selectedDrawingOverlayTargetOf as aY, selectedImageStateOf as aZ, surfacePaintScale as a_, TABLE_CHROME_SLOT_IDS as aa, type TableBorderStyleOption as ab, type TableBorderTargetOption as ac, type TableBorderTargetValue as ad, type TableBorderWidthOption as ae, type TableChromeDraft as af, type TableChromePick as ag, type TableChromeSlotId as ah, type TableInteractionLabelKey as ai, type ToolbarCommandState as aj, WORD_DEFAULT_FONT as ak, applyTableChromePick as al, blankDocumentBytes as am, canExecuteImageCommand as an, captureImageMutationPreconditions as ao, chromeControlCount as ap, chromeMenuSlots as aq, chromeProbeForSlot as ar, chromeSlotId as as, commandForSlot as at, commandForSlotValue as au, commandForTableChromeSlotValue as av, composeFontConfiguration as aw, computeImageResizeResult as ax, computeMovedImagePosition as ay, computeResizedImageExtentEmu as az, CHROME_MENUS as b, tableChromeLabelKeyForTarget as b0, tableChromeToolbarState as b1, tableChromeVisible as b2, tableCommandToolbarState as b3, toolbarCommandState as b4, toolbarCommandStates as b5, CHROME_UNAVAILABLE_KEY as c, type ChromeControl as d, type ChromeControlId as e, type ChromeControlState as f, type ChromeGroup as g, type ChromeGroupId as h, type ChromeMenu as i, type ChromeMenuEntry as j, type ChromeMenuId as k, type ChromeMenuItemEntry as l, type ChromeMenuSeparatorEntry as m, type ChromeMenuSubmenuEntry as n, type ChromeSlotId as o, DEFAULT_TABLE_CHROME_DRAFT as p, type DocxEditorConfig as q, type DrawingSelectionIntent as r, type EquationActivation as s, type EquationChromeHandlers as t, type EquationOps as u, type FontConfigurationBase as v, type FontConfigurationFragment as w, type FontLoadFailure as x, type FontLoadFailureReason as y, type FontMeasurementState as z };
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- 'use strict';var chunkP5YSGSYC_cjs=require('./chunk-P5YSGSYC.cjs');require('./chunk-2RDMWJPF.cjs'),require('./chunk-TP4EHWEX.cjs'),require('./chunk-IEXDXWTA.cjs'),require('./chunk-DKMKH77K.cjs'),require('./chunk-XMHWBL3K.cjs'),require('./chunk-IMMAG4QP.cjs'),require('./chunk-YMYCPY5Y.cjs'),require('./chunk-7VQ7YLW3.cjs');Object.defineProperty(exports,"CHROME_GROUPS",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.va}});Object.defineProperty(exports,"CHROME_MENUS",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.za}});Object.defineProperty(exports,"WORD_DEFAULT_FONT",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.f}});Object.defineProperty(exports,"blankDocumentBytes",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.h}});Object.defineProperty(exports,"chromeMenuSlots",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.Aa}});Object.defineProperty(exports,"commandForSlot",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.ja}});Object.defineProperty(exports,"commandForSlotValue",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.la}});Object.defineProperty(exports,"composeFontConfiguration",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.g}});Object.defineProperty(exports,"createDocxEditor",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.Ma}});Object.defineProperty(exports,"createFontSource",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.k}});Object.defineProperty(exports,"loadFonts",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.j}});Object.defineProperty(exports,"runToolbarCommand",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.qa}});Object.defineProperty(exports,"toolbarCommandState",{enumerable:true,get:function(){return chunkP5YSGSYC_cjs.na}});
1
+ 'use strict';var chunkKQGENNL5_cjs=require('./chunk-KQGENNL5.cjs');require('./chunk-7ETDCPF6.cjs'),require('./chunk-6KNLLEUW.cjs'),require('./chunk-H2656QDI.cjs'),require('./chunk-O4UULRAQ.cjs'),require('./chunk-7UU5YFCD.cjs'),require('./chunk-7ADTI533.cjs'),require('./chunk-YMYCPY5Y.cjs'),require('./chunk-7VQ7YLW3.cjs');Object.defineProperty(exports,"CHROME_GROUPS",{enumerable:true,get:function(){return chunkKQGENNL5_cjs.va}});Object.defineProperty(exports,"CHROME_MENUS",{enumerable:true,get:function(){return chunkKQGENNL5_cjs.za}});Object.defineProperty(exports,"WORD_DEFAULT_FONT",{enumerable:true,get:function(){return chunkKQGENNL5_cjs.f}});Object.defineProperty(exports,"blankDocumentBytes",{enumerable:true,get:function(){return chunkKQGENNL5_cjs.h}});Object.defineProperty(exports,"chromeMenuSlots",{enumerable:true,get:function(){return chunkKQGENNL5_cjs.Aa}});Object.defineProperty(exports,"commandForSlot",{enumerable:true,get:function(){return chunkKQGENNL5_cjs.ja}});Object.defineProperty(exports,"commandForSlotValue",{enumerable:true,get:function(){return chunkKQGENNL5_cjs.la}});Object.defineProperty(exports,"composeFontConfiguration",{enumerable:true,get:function(){return chunkKQGENNL5_cjs.g}});Object.defineProperty(exports,"createDocxEditor",{enumerable:true,get:function(){return chunkKQGENNL5_cjs.Ma}});Object.defineProperty(exports,"createFontSource",{enumerable:true,get:function(){return chunkKQGENNL5_cjs.k}});Object.defineProperty(exports,"loadFonts",{enumerable:true,get:function(){return chunkKQGENNL5_cjs.j}});Object.defineProperty(exports,"runToolbarCommand",{enumerable:true,get:function(){return chunkKQGENNL5_cjs.qa}});Object.defineProperty(exports,"toolbarCommandState",{enumerable:true,get:function(){return chunkKQGENNL5_cjs.na}});
package/dist/index.d.cts CHANGED
@@ -1,22 +1,22 @@
1
- export { f as DrawingHorizontalReferenceFrame, c as DrawingKind, e as DrawingLocks, d as DrawingPositionInput, g as DrawingVerticalReferenceFrame, b as ImageWrapTarget, R as RevisionAddress } from './tree-op-types-B0-sCtw-.cjs';
2
- export { I as ImageResourceState, P as PreservedImageMime, R as RenderableImageMime, S as SupportedImageMime, V as ValidatedImageBytesHandle, a as VectorImageMime } from './image-resources-DQOiwOuE.cjs';
3
- export { C as CommentRecord, c as ReviewCommentItem, d as ReviewCustomItem, a as ReviewItem, R as ReviewModelInput, e as ReviewPosition, f as ReviewRange, b as ReviewRevisionItem, g as ReviewRevisionKind } from './review-items-DpsqTHio.cjs';
1
+ export { f as DrawingHorizontalReferenceFrame, c as DrawingKind, e as DrawingLocks, d as DrawingPositionInput, g as DrawingVerticalReferenceFrame, b as ImageWrapTarget, R as RevisionAddress } from './tree-op-types-D1vNJ7XC.cjs';
2
+ export { I as ImageResourceState, P as PreservedImageMime, R as RenderableImageMime, S as SupportedImageMime, V as ValidatedImageBytesHandle, a as VectorImageMime } from './image-resources-BiA-IXgo.cjs';
3
+ export { C as CommentRecord, c as ReviewCommentItem, d as ReviewCustomItem, a as ReviewItem, R as ReviewModelInput, e as ReviewPosition, f as ReviewRange, b as ReviewRevisionItem, g as ReviewRevisionKind } from './review-items-B8tffIXj.cjs';
4
4
  export { CollectReviewItems, EditorModule, ReviewModuleContribution } from './contracts/modules.cjs';
5
- export { A as AuthoredNoteNumbering, C as CanResult, q as DocumentChange, r as DocumentEditingMode, t as DocumentHandle, D as DocumentSource, l as Editor, b as EditorCommand, u as EditorCommandShape, w as EditorCommands, x as EditorError, y as EditorEvents, E as EditorFontError, z as EditorFontErrorCode, B as EditorHeaderFooterCommands, G as EditorNoteCommands, H as EditorPosition, J as EditorQueries, K as EditorQuery, L as EditorQueryResults, M as EditorScope, N as EditorSelection, a as EditorSnapshot, F as FontConfiguration, m as FontFaceRequest, j as FontSource, k as FontSourceSubstitution, O as FurnitureVariant, P as HeaderFooterSlotArgs, Q as HeaderFooterState, R as HyperlinkInfo, I as ImageContext, c as ImageCropPercent, U as InteractionAffinity, W as InteractionOutcome, X as InteractionOutcomeCode, Y as NoteKind, _ as NotePropertiesSide, $ as NotePropertiesState, a0 as PageSetup, a1 as ResolvedNoteNumbering, a2 as ReviewActivationOptions, a3 as ReviewCommentPlacement, a4 as ReviewCustomPlacement, a5 as ReviewItemPlacement, a6 as ReviewItemPlacementBase, a7 as ReviewItemQuery, a8 as ReviewRevisionPlacement, S as SelectedImageState, a9 as SemanticIdentity, aa as SemanticTarget, T as TableBorderEdgeTarget, n as TableBorderSpec, o as TableBorderStyle, ab as TableBorderTarget, ac as TableCellVerticalAlignment, ad as TableColumnDividerResizeTarget, ae as TableColumnOccurrenceTarget, p as TableContext, af as TableRightEdgeResizeTarget, ag as TableRowOccurrenceTarget, ah as TextMatch, V as ViewScope, ai as ZoomFitTarget, Z as ZoomMode } from './editor-CojjwMmF.cjs';
5
+ export { A as AuthoredNoteNumbering, C as CanResult, q as DocumentChange, r as DocumentEditingMode, t as DocumentHandle, D as DocumentSource, l as Editor, b as EditorCommand, u as EditorCommandShape, w as EditorCommands, x as EditorError, y as EditorEvents, E as EditorFontError, z as EditorFontErrorCode, B as EditorHeaderFooterCommands, G as EditorNoteCommands, H as EditorPosition, J as EditorQueries, K as EditorQuery, L as EditorQueryResults, M as EditorScope, N as EditorSelection, a as EditorSnapshot, F as FontConfiguration, m as FontFaceRequest, j as FontSource, k as FontSourceSubstitution, O as FurnitureVariant, P as HeaderFooterSlotArgs, Q as HeaderFooterState, R as HyperlinkInfo, I as ImageContext, c as ImageCropPercent, U as InteractionAffinity, W as InteractionOutcome, X as InteractionOutcomeCode, Y as NoteKind, _ as NotePropertiesSide, $ as NotePropertiesState, a0 as PageSetup, a1 as ResolvedNoteNumbering, a2 as ReviewActivationOptions, a3 as ReviewCommentPlacement, a4 as ReviewCustomPlacement, a5 as ReviewItemPlacement, a6 as ReviewItemPlacementBase, a7 as ReviewItemQuery, a8 as ReviewRevisionPlacement, S as SelectedImageState, a9 as SemanticIdentity, aa as SemanticTarget, T as TableBorderEdgeTarget, n as TableBorderSpec, o as TableBorderStyle, ab as TableBorderTarget, ac as TableCellVerticalAlignment, ad as TableColumnDividerResizeTarget, ae as TableColumnOccurrenceTarget, p as TableContext, af as TableRightEdgeResizeTarget, ag as TableRowOccurrenceTarget, ah as TextMatch, V as ViewScope, ai as ZoomFitTarget, Z as ZoomMode } from './editor-cAEf1uXW.cjs';
6
6
  export { R as RevisionDisplayMode } from './revision-projection-Cc4wz30g.cjs';
7
- export { S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-BjOcDB06.cjs';
8
- export { C as CHROME_GROUPS, b as CHROME_MENUS, i as ChromeMenu, j as ChromeMenuEntry, k as ChromeMenuId, l as ChromeMenuItemEntry, m as ChromeMenuSeparatorEntry, n as ChromeMenuSubmenuEntry, o as ChromeSlotId, q as DocxEditorConfig, D as DocxEditorInstance, u as FontConfigurationBase, v as FontConfigurationFragment, w as FontLoadFailure, x as FontLoadFailureReason, y as FontMeasurementState, z as FontResolutionRequest, B as FontResolver, G as FontUrlSource, H as HyperlinkActivation, I as HyperlinkChromeHandlers, S as LoadFontsRequest, U as LoadFontsResult, a2 as SurfaceHyperlink, ai as ToolbarCommandState, aj as WORD_DEFAULT_FONT, al as blankDocumentBytes, ap as chromeMenuSlots, as as commandForSlot, at as commandForSlotValue, av as composeFontConfiguration, az as createDocxEditor, aA as createFontSource, aN as loadFonts, aV as runToolbarCommand, b2 as toolbarCommandState } from './index-DGPSeLI0.cjs';
7
+ export { S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-BfWDD_0V.cjs';
8
+ export { C as CHROME_GROUPS, b as CHROME_MENUS, i as ChromeMenu, j as ChromeMenuEntry, k as ChromeMenuId, l as ChromeMenuItemEntry, m as ChromeMenuSeparatorEntry, n as ChromeMenuSubmenuEntry, o as ChromeSlotId, q as DocxEditorConfig, D as DocxEditorInstance, v as FontConfigurationBase, w as FontConfigurationFragment, x as FontLoadFailure, y as FontLoadFailureReason, z as FontMeasurementState, B as FontResolutionRequest, G as FontResolver, H as FontUrlSource, I as HyperlinkActivation, J as HyperlinkChromeHandlers, U as LoadFontsRequest, V as LoadFontsResult, a3 as SurfaceHyperlink, aj as ToolbarCommandState, ak as WORD_DEFAULT_FONT, am as blankDocumentBytes, aq as chromeMenuSlots, at as commandForSlot, au as commandForSlotValue, aw as composeFontConfiguration, aA as createDocxEditor, aB as createFontSource, aO as loadFonts, aX as runToolbarCommand, b4 as toolbarCommandState } from './index-wb-iOxfh.cjs';
9
9
  export { Block, ColorValue, ContainerRef, ContentControl, ContentControlFilter, ContentControlType, DocAnchor, DocAnchorRange, DocComment, DocLocation, DocRange, DocTarget, DocumentBody, DocxDocument, DocxDocumentJSON, ExecErrorCode, ExecResult, Extent, FontDefinition, HeaderFooterSet, IndentFormatting, InsertableContentControlType, NumberingRef, PageMargins, Paragraph, ParagraphDisagreements, ParagraphFlags, ParagraphFormatCommand, ParagraphTabStop, Point, Rect, Revision, RevisionType, Run, RunFormatting, Section, SectionProperties, SelectionPin, StyleDefinition, StyleDefinitions, Table, TableCell, TableRow, Theme, ThemeColorScheme, Unsubscribe, Watermark } from './contracts/types.cjs';
10
10
  export { ApplyResult, ContentControlSummary, DocEdit, DocEdits, DocQueries, DocQuery, DocQueryResults, ParagraphSummary } from './contracts/document.cjs';
11
11
  import './ooxml-package-CdEy9ufK.cjs';
12
- import './semantic-records-C3Z76KeN.cjs';
12
+ import './semantic-records-DadVT_E1.cjs';
13
13
  import './omml-equation-BD-LsmWE.cjs';
14
- import './semantic-paint-Ur7pAINj.cjs';
14
+ import './semantic-paint-Bd7EqzXV.cjs';
15
15
  import './note-properties-CQlxjic_.cjs';
16
- import './custom-node-writes-7ERv0f_X.cjs';
16
+ import './custom-node-writes-Dy3b20PS.cjs';
17
17
  import './hf-references-Dvk6De4Q.cjs';
18
18
  import './note-nodes-DL-Au22P.cjs';
19
- import './tree-store-C6vc8E_2.cjs';
20
- import './semantic-cell-selection-DJPjBWzf.cjs';
21
- import './tree-session-D945D43B.cjs';
19
+ import './tree-store-B_sJBMIS.cjs';
20
+ import './semantic-cell-selection-BPzx6DdT.cjs';
21
+ import './tree-session-Df02ajqc.cjs';
22
22
  import 'prosemirror-model';
package/dist/index.d.ts CHANGED
@@ -1,22 +1,22 @@
1
- export { f as DrawingHorizontalReferenceFrame, c as DrawingKind, e as DrawingLocks, d as DrawingPositionInput, g as DrawingVerticalReferenceFrame, b as ImageWrapTarget, R as RevisionAddress } from './tree-op-types-XMVsJSpe.js';
2
- export { I as ImageResourceState, P as PreservedImageMime, R as RenderableImageMime, S as SupportedImageMime, V as ValidatedImageBytesHandle, a as VectorImageMime } from './image-resources-eZqD_-vC.js';
3
- export { C as CommentRecord, c as ReviewCommentItem, d as ReviewCustomItem, a as ReviewItem, R as ReviewModelInput, e as ReviewPosition, f as ReviewRange, b as ReviewRevisionItem, g as ReviewRevisionKind } from './review-items-D5SPFtsO.js';
1
+ export { f as DrawingHorizontalReferenceFrame, c as DrawingKind, e as DrawingLocks, d as DrawingPositionInput, g as DrawingVerticalReferenceFrame, b as ImageWrapTarget, R as RevisionAddress } from './tree-op-types-CnRb7AYo.js';
2
+ export { I as ImageResourceState, P as PreservedImageMime, R as RenderableImageMime, S as SupportedImageMime, V as ValidatedImageBytesHandle, a as VectorImageMime } from './image-resources-BgA9EQxY.js';
3
+ export { C as CommentRecord, c as ReviewCommentItem, d as ReviewCustomItem, a as ReviewItem, R as ReviewModelInput, e as ReviewPosition, f as ReviewRange, b as ReviewRevisionItem, g as ReviewRevisionKind } from './review-items-bdGxFWNA.js';
4
4
  export { CollectReviewItems, EditorModule, ReviewModuleContribution } from './contracts/modules.js';
5
- export { A as AuthoredNoteNumbering, C as CanResult, q as DocumentChange, r as DocumentEditingMode, t as DocumentHandle, D as DocumentSource, l as Editor, b as EditorCommand, u as EditorCommandShape, w as EditorCommands, x as EditorError, y as EditorEvents, E as EditorFontError, z as EditorFontErrorCode, B as EditorHeaderFooterCommands, G as EditorNoteCommands, H as EditorPosition, J as EditorQueries, K as EditorQuery, L as EditorQueryResults, M as EditorScope, N as EditorSelection, a as EditorSnapshot, F as FontConfiguration, m as FontFaceRequest, j as FontSource, k as FontSourceSubstitution, O as FurnitureVariant, P as HeaderFooterSlotArgs, Q as HeaderFooterState, R as HyperlinkInfo, I as ImageContext, c as ImageCropPercent, U as InteractionAffinity, W as InteractionOutcome, X as InteractionOutcomeCode, Y as NoteKind, _ as NotePropertiesSide, $ as NotePropertiesState, a0 as PageSetup, a1 as ResolvedNoteNumbering, a2 as ReviewActivationOptions, a3 as ReviewCommentPlacement, a4 as ReviewCustomPlacement, a5 as ReviewItemPlacement, a6 as ReviewItemPlacementBase, a7 as ReviewItemQuery, a8 as ReviewRevisionPlacement, S as SelectedImageState, a9 as SemanticIdentity, aa as SemanticTarget, T as TableBorderEdgeTarget, n as TableBorderSpec, o as TableBorderStyle, ab as TableBorderTarget, ac as TableCellVerticalAlignment, ad as TableColumnDividerResizeTarget, ae as TableColumnOccurrenceTarget, p as TableContext, af as TableRightEdgeResizeTarget, ag as TableRowOccurrenceTarget, ah as TextMatch, V as ViewScope, ai as ZoomFitTarget, Z as ZoomMode } from './editor-PUlv5Pp7.js';
5
+ export { A as AuthoredNoteNumbering, C as CanResult, q as DocumentChange, r as DocumentEditingMode, t as DocumentHandle, D as DocumentSource, l as Editor, b as EditorCommand, u as EditorCommandShape, w as EditorCommands, x as EditorError, y as EditorEvents, E as EditorFontError, z as EditorFontErrorCode, B as EditorHeaderFooterCommands, G as EditorNoteCommands, H as EditorPosition, J as EditorQueries, K as EditorQuery, L as EditorQueryResults, M as EditorScope, N as EditorSelection, a as EditorSnapshot, F as FontConfiguration, m as FontFaceRequest, j as FontSource, k as FontSourceSubstitution, O as FurnitureVariant, P as HeaderFooterSlotArgs, Q as HeaderFooterState, R as HyperlinkInfo, I as ImageContext, c as ImageCropPercent, U as InteractionAffinity, W as InteractionOutcome, X as InteractionOutcomeCode, Y as NoteKind, _ as NotePropertiesSide, $ as NotePropertiesState, a0 as PageSetup, a1 as ResolvedNoteNumbering, a2 as ReviewActivationOptions, a3 as ReviewCommentPlacement, a4 as ReviewCustomPlacement, a5 as ReviewItemPlacement, a6 as ReviewItemPlacementBase, a7 as ReviewItemQuery, a8 as ReviewRevisionPlacement, S as SelectedImageState, a9 as SemanticIdentity, aa as SemanticTarget, T as TableBorderEdgeTarget, n as TableBorderSpec, o as TableBorderStyle, ab as TableBorderTarget, ac as TableCellVerticalAlignment, ad as TableColumnDividerResizeTarget, ae as TableColumnOccurrenceTarget, p as TableContext, af as TableRightEdgeResizeTarget, ag as TableRowOccurrenceTarget, ah as TextMatch, V as ViewScope, ai as ZoomFitTarget, Z as ZoomMode } from './editor-Cvd7Geoc.js';
6
6
  export { R as RevisionDisplayMode } from './revision-projection-CILpvv4M.js';
7
- export { S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-Cca1-X_a.js';
8
- export { C as CHROME_GROUPS, b as CHROME_MENUS, i as ChromeMenu, j as ChromeMenuEntry, k as ChromeMenuId, l as ChromeMenuItemEntry, m as ChromeMenuSeparatorEntry, n as ChromeMenuSubmenuEntry, o as ChromeSlotId, q as DocxEditorConfig, D as DocxEditorInstance, u as FontConfigurationBase, v as FontConfigurationFragment, w as FontLoadFailure, x as FontLoadFailureReason, y as FontMeasurementState, z as FontResolutionRequest, B as FontResolver, G as FontUrlSource, H as HyperlinkActivation, I as HyperlinkChromeHandlers, S as LoadFontsRequest, U as LoadFontsResult, a2 as SurfaceHyperlink, ai as ToolbarCommandState, aj as WORD_DEFAULT_FONT, al as blankDocumentBytes, ap as chromeMenuSlots, as as commandForSlot, at as commandForSlotValue, av as composeFontConfiguration, az as createDocxEditor, aA as createFontSource, aN as loadFonts, aV as runToolbarCommand, b2 as toolbarCommandState } from './index-oN-v8DQ5.js';
7
+ export { S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-D-RZ9Ust.js';
8
+ export { C as CHROME_GROUPS, b as CHROME_MENUS, i as ChromeMenu, j as ChromeMenuEntry, k as ChromeMenuId, l as ChromeMenuItemEntry, m as ChromeMenuSeparatorEntry, n as ChromeMenuSubmenuEntry, o as ChromeSlotId, q as DocxEditorConfig, D as DocxEditorInstance, v as FontConfigurationBase, w as FontConfigurationFragment, x as FontLoadFailure, y as FontLoadFailureReason, z as FontMeasurementState, B as FontResolutionRequest, G as FontResolver, H as FontUrlSource, I as HyperlinkActivation, J as HyperlinkChromeHandlers, U as LoadFontsRequest, V as LoadFontsResult, a3 as SurfaceHyperlink, aj as ToolbarCommandState, ak as WORD_DEFAULT_FONT, am as blankDocumentBytes, aq as chromeMenuSlots, at as commandForSlot, au as commandForSlotValue, aw as composeFontConfiguration, aA as createDocxEditor, aB as createFontSource, aO as loadFonts, aX as runToolbarCommand, b4 as toolbarCommandState } from './index-DRqY5JVF.js';
9
9
  export { Block, ColorValue, ContainerRef, ContentControl, ContentControlFilter, ContentControlType, DocAnchor, DocAnchorRange, DocComment, DocLocation, DocRange, DocTarget, DocumentBody, DocxDocument, DocxDocumentJSON, ExecErrorCode, ExecResult, Extent, FontDefinition, HeaderFooterSet, IndentFormatting, InsertableContentControlType, NumberingRef, PageMargins, Paragraph, ParagraphDisagreements, ParagraphFlags, ParagraphFormatCommand, ParagraphTabStop, Point, Rect, Revision, RevisionType, Run, RunFormatting, Section, SectionProperties, SelectionPin, StyleDefinition, StyleDefinitions, Table, TableCell, TableRow, Theme, ThemeColorScheme, Unsubscribe, Watermark } from './contracts/types.js';
10
10
  export { ApplyResult, ContentControlSummary, DocEdit, DocEdits, DocQueries, DocQuery, DocQueryResults, ParagraphSummary } from './contracts/document.js';
11
11
  import './ooxml-package-CdEy9ufK.js';
12
- import './semantic-records-Cc1MJrhM.js';
12
+ import './semantic-records-DCt-ZwKU.js';
13
13
  import './omml-equation-Dd3mBep-.js';
14
- import './semantic-paint-CufpIQFw.js';
14
+ import './semantic-paint-WhVtSDJK.js';
15
15
  import './note-properties-jvnw_DGG.js';
16
- import './custom-node-writes-QyVZdTUA.js';
16
+ import './custom-node-writes-D6SGwebL.js';
17
17
  import './hf-references-z5Y4N1ab.js';
18
18
  import './note-nodes-BNCANoGN.js';
19
- import './tree-store-ClA-qng4.js';
20
- import './semantic-cell-selection-BWhVAk5B.js';
21
- import './tree-session-DBJgmdmc.js';
19
+ import './tree-store-DgETo6Mf.js';
20
+ import './semantic-cell-selection-CsHcr-yk.js';
21
+ import './tree-session-ZuBFOhIh.js';
22
22
  import 'prosemirror-model';
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export{va as CHROME_GROUPS,za as CHROME_MENUS,f as WORD_DEFAULT_FONT,h as blankDocumentBytes,Aa as chromeMenuSlots,ja as commandForSlot,la as commandForSlotValue,g as composeFontConfiguration,Ma as createDocxEditor,k as createFontSource,j as loadFonts,qa as runToolbarCommand,na as toolbarCommandState}from'./chunk-DTQPINIM.js';import'./chunk-HHFMXG25.js';import'./chunk-Q66ZJFRE.js';import'./chunk-WU7PUTVA.js';import'./chunk-A2JIBG75.js';import'./chunk-KBCC66CI.js';import'./chunk-5VC5HGJA.js';import'./chunk-VUJGPCPU.js';import'./chunk-PSZH2VXP.js';import'./chunk-GQQOL4PV.js';
1
+ export{va as CHROME_GROUPS,za as CHROME_MENUS,f as WORD_DEFAULT_FONT,h as blankDocumentBytes,Aa as chromeMenuSlots,ja as commandForSlot,la as commandForSlotValue,g as composeFontConfiguration,Ma as createDocxEditor,k as createFontSource,j as loadFonts,qa as runToolbarCommand,na as toolbarCommandState}from'./chunk-SIIFNE6U.js';import'./chunk-6JWP2H7K.js';import'./chunk-LIXPSV4T.js';import'./chunk-WU7PUTVA.js';import'./chunk-7I3BSGGS.js';import'./chunk-VXYECPKA.js';import'./chunk-DIMEYVNS.js';import'./chunk-CKDAK3MV.js';import'./chunk-PSZH2VXP.js';import'./chunk-GQQOL4PV.js';