@docx-editor.dev/core 2.1.2 → 2.2.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 (76) hide show
  1. package/README.md +4 -5
  2. package/dist/automation.cjs +1 -1
  3. package/dist/automation.js +1 -1
  4. package/dist/binding.cjs +1 -1
  5. package/dist/binding.js +1 -1
  6. package/dist/chunk-5OSFUHGF.js +10 -0
  7. package/dist/chunk-C24AINST.js +12 -0
  8. package/dist/{chunk-O2WQY7IT.cjs → chunk-CY47CFM5.cjs} +5 -5
  9. package/dist/chunk-EUTHPVTG.cjs +2 -0
  10. package/dist/chunk-FJCBZ5BL.cjs +12 -0
  11. package/dist/{chunk-REZUWYB7.js → chunk-GRGRIDHF.js} +1 -1
  12. package/dist/{chunk-PC76F2HR.cjs → chunk-KZ5HPHW6.cjs} +1 -1
  13. package/dist/{chunk-TBBXCC7D.js → chunk-LVZSKP2F.js} +3 -3
  14. package/dist/{chunk-HBL3NNH5.cjs → chunk-MIUELYVA.cjs} +1 -1
  15. package/dist/chunk-MO7GAUO7.js +2 -0
  16. package/dist/chunk-NCGKMEKU.js +2 -0
  17. package/dist/chunk-PFTVNFMI.js +1 -0
  18. package/dist/chunk-QVGTZUEV.js +12 -0
  19. package/dist/chunk-T2LVH6D3.cjs +2 -0
  20. package/dist/chunk-UAOJHPQ4.cjs +10 -0
  21. package/dist/chunk-VXEF32A5.cjs +12 -0
  22. package/dist/contracts/editor.cjs +1 -1
  23. package/dist/contracts/editor.d.cts +3 -3
  24. package/dist/contracts/editor.d.ts +3 -3
  25. package/dist/contracts/editor.js +1 -1
  26. package/dist/contracts/interaction.d.cts +4 -4
  27. package/dist/contracts/interaction.d.ts +4 -4
  28. package/dist/{editor-BGBZn9c9.d.cts → editor-25RmHnxu.d.cts} +64 -2
  29. package/dist/{editor-DQRRxKMG.d.ts → editor-C8oaTHr3.d.ts} +64 -2
  30. package/dist/editor.cjs +1 -1
  31. package/dist/editor.css +86 -11
  32. package/dist/editor.d.cts +51 -11
  33. package/dist/editor.d.ts +51 -11
  34. package/dist/editor.js +1 -1
  35. package/dist/{index-DptRpcqa.d.cts → index-CiEakUbq.d.cts} +32 -5
  36. package/dist/{index-BzqHsd4Y.d.ts → index-gvw4VGE9.d.ts} +32 -5
  37. package/dist/index.cjs +1 -1
  38. package/dist/index.d.cts +6 -6
  39. package/dist/index.d.ts +6 -6
  40. package/dist/index.js +1 -1
  41. package/dist/layout.cjs +1 -1
  42. package/dist/layout.d.cts +95 -61
  43. package/dist/layout.d.ts +95 -61
  44. package/dist/layout.js +1 -1
  45. package/dist/output.cjs +1 -1
  46. package/dist/output.d.cts +4 -101
  47. package/dist/output.d.ts +4 -101
  48. package/dist/output.js +1 -1
  49. package/dist/{semantic-cell-selection-DwLB71fF.d.cts → semantic-cell-selection-CI3loBKq.d.cts} +2 -2
  50. package/dist/{semantic-cell-selection-D_8RbPII.d.ts → semantic-cell-selection-Cx8P64j2.d.ts} +2 -2
  51. package/dist/{semantic-interaction-DqcEonqD.d.cts → semantic-interaction-B4HrJFQ2.d.cts} +1 -1
  52. package/dist/{semantic-interaction-CXH2wFqi.d.ts → semantic-interaction-unGpRNCk.d.ts} +1 -1
  53. package/dist/semantic-paint-BBNaqr1s.d.ts +133 -0
  54. package/dist/semantic-paint-DdGGra4m.d.cts +133 -0
  55. package/dist/{semantic-records-zTC0_1zi.d.ts → semantic-records-BC4bIKKL.d.ts} +28 -32
  56. package/dist/{semantic-records-COVFW5aS.d.cts → semantic-records-DC6V1U3T.d.cts} +28 -32
  57. package/dist/{shaped-measurer-CZXL-a6v.d.ts → shaped-measurer-ChSWkuAT.d.ts} +1 -1
  58. package/dist/{shaped-measurer-AFnFxoot.d.cts → shaped-measurer-SIqZp-Ty.d.cts} +1 -1
  59. package/dist/store.cjs +1 -1
  60. package/dist/store.d.cts +35 -14
  61. package/dist/store.d.ts +35 -14
  62. package/dist/store.js +1 -1
  63. package/package.json +2 -2
  64. package/dist/chunk-2DTQDAN7.js +0 -2
  65. package/dist/chunk-3HEU7MHP.js +0 -12
  66. package/dist/chunk-3JKQE4QJ.cjs +0 -2
  67. package/dist/chunk-6WIIHJFY.js +0 -1
  68. package/dist/chunk-BZK64YU3.cjs +0 -10
  69. package/dist/chunk-EDLUMMQN.cjs +0 -12
  70. package/dist/chunk-JQFDLZXQ.cjs +0 -2
  71. package/dist/chunk-QRAUDDVY.js +0 -2
  72. package/dist/chunk-STCITBJK.js +0 -12
  73. package/dist/chunk-TSXT537P.cjs +0 -12
  74. package/dist/chunk-Y7TA7TPF.js +0 -10
  75. package/dist/semantic-paint-drawings-B5Wk2so5.d.ts +0 -21
  76. package/dist/semantic-paint-drawings-x8g44lD_.d.cts +0 -21
package/dist/editor.d.cts CHANGED
@@ -1,20 +1,21 @@
1
- import { F as FontConfiguration, E as EditorFontError, a as EditorCommand, C as CanResult } from './editor-BGBZn9c9.cjs';
2
- export { I as ImageContext, b as ImageCropPercent, c as ImageCropPermille, S as SelectedImageState, d as cropPercentFromCropPermille, e as cropPercentFromPermille, f as cropPercentFromSourceCrop, g as cropPermilleFromCropPercent, h as cropPermilleFromPercent, s as sourceCropFromCropPercent, v as validateImageCropPercent } from './editor-BGBZn9c9.cjs';
3
- import { L as LayoutShapingOptions } from './shaped-measurer-AFnFxoot.cjs';
4
- import { P as PaginatedSurfaceOptions, O as OpenPaginatedResult, a as PaginatedSurface, T as TableCommandPlan, D as DocxEditorInstance } from './index-DptRpcqa.cjs';
5
- 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, F as FinalizedImageOverlayInteraction, r as FontConfigurationBase, s as FontConfigurationFragment, t as FontLoadFailure, u as FontLoadFailureReason, v as FontMeasurementState, w as FontResolutionRequest, x as FontResolver, y as FontUrlSource, H as HyperlinkActivation, z as HyperlinkChromeHandlers, B as HyperlinkOps, I as IMAGE_OVERLAY_NUDGE_PT, G as IMAGE_OVERLAY_NUDGE_SHIFT_PT, J as ImageInteractionSession, K as ImageOverlayScrollPort, L as ImageResizeHandle, M as ImageResizeResult, N as LoadFontsRequest, Q as LoadFontsResult, R as MAX_RESOLVER_FAMILIES, S as OverlayFrameRect, U as PaginatedSurfaceState, V as RunTableChromeCommandResult, W as SelectedDrawingOverlayTarget, X as SurfaceFormatting, Y as SurfaceHyperlink, Z as SurfaceNavigation, _ as SurfaceOverlayCoordinates, $ as TABLE_BORDER_STYLE_OPTIONS, a0 as TABLE_BORDER_TARGET_OPTIONS, a1 as TABLE_BORDER_WIDTH_OPTIONS, a2 as TABLE_CHROME_SLOT_IDS, a3 as TableBorderStyleOption, a4 as TableBorderTargetOption, a5 as TableBorderTargetValue, a6 as TableBorderWidthOption, a7 as TableChromeDraft, a8 as TableChromePick, a9 as TableChromeSlotId, aa as TableInteractionLabelKey, ab as ToolbarCommandState, ac as WORD_DEFAULT_FONT, ad as applyTableChromePick, ae as blankDocumentBytes, af as canExecuteImageCommand, ag as captureImageMutationPreconditions, ah as chromeControlCount, ai as chromeMenuSlots, aj as chromeProbeForSlot, ak as chromeSlotId, al as commandForSlot, am as commandForSlotValue, an as commandForTableChromeSlotValue, ao as composeFontConfiguration, ap as computeImageResizeResult, aq as computeMovedImagePosition, ar as computeResizedImageExtentEmu, as as createDocxEditor, at as createFontSource, au as createImageOverlayScrollPort, av as cssPixelsToLayoutPoints, aw as defaultChromeGroups, ax as defaultTableLabel, ay as emuToOverlayPoints, az as executeImageCommand, aA as finalizeImageOverlayInteraction, aB as formattingBarChromeGroups, aC as isStaleImageInteractionCommit, aD as isTableChromeSlot, aE as layoutPointsToCssPixels, aF as loadFonts, aG as overlayFrameToSheetCssPixels, aH as pointsToEmu, aI as probeTableChromeCommand, aJ as resizePreservesAspect, aK as runSave, aL as runTableChromeCommand, aM as runTableCommand, aN as runToolbarCommand, aO as selectedDrawingOverlayTargetOf, aP as selectedImageStateOf, aQ as surfacePaintScale, aR as tableChromeIconPaths, aS as tableChromeLabelKeyForTarget, aT as tableChromeToolbarState, aU as tableChromeVisible, aV as tableCommandToolbarState, aW as toolbarCommandState, aX as toolbarCommandStates } from './index-DptRpcqa.cjs';
1
+ import { F as FontConfiguration, E as EditorFontError, a as EditorCommand, C as CanResult, Z as ZoomMode } from './editor-25RmHnxu.cjs';
2
+ export { I as ImageContext, b as ImageCropPercent, c as ImageCropPermille, S as SelectedImageState, d as cropPercentFromCropPermille, e as cropPercentFromPermille, f as cropPercentFromSourceCrop, g as cropPermilleFromCropPercent, h as cropPermilleFromPercent, s as sourceCropFromCropPercent, v as validateImageCropPercent } from './editor-25RmHnxu.cjs';
3
+ import { L as LayoutShapingOptions } from './shaped-measurer-SIqZp-Ty.cjs';
4
+ import { P as PaginatedSurfaceOptions, O as OpenPaginatedResult, a as PaginatedSurface, T as TableCommandPlan, D as DocxEditorInstance } from './index-CiEakUbq.cjs';
5
+ 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, F as FinalizedImageOverlayInteraction, r as FontConfigurationBase, s as FontConfigurationFragment, t as FontLoadFailure, u as FontLoadFailureReason, v as FontMeasurementState, w as FontResolutionRequest, x as FontResolver, y as FontUrlSource, H as HyperlinkActivation, z as HyperlinkChromeHandlers, B as HyperlinkOps, I as IMAGE_OVERLAY_NUDGE_PT, G as IMAGE_OVERLAY_NUDGE_SHIFT_PT, J as ImageInteractionSession, K as ImageOverlayScrollPort, L as ImageResizeHandle, M as ImageResizeResult, N as LoadFontsRequest, Q as LoadFontsResult, R as MAX_RESOLVER_FAMILIES, S as OverlayFrameRect, U as PaginatedSurfaceState, V as RunTableChromeCommandResult, W as SelectedDrawingOverlayTarget, X as SurfaceFormatting, Y as SurfaceHyperlink, Z as SurfaceNavigation, _ as SurfaceOverlayCoordinates, $ as TABLE_BORDER_STYLE_OPTIONS, a0 as TABLE_BORDER_TARGET_OPTIONS, a1 as TABLE_BORDER_WIDTH_OPTIONS, a2 as TABLE_CHROME_SLOT_IDS, a3 as TableBorderStyleOption, a4 as TableBorderTargetOption, a5 as TableBorderTargetValue, a6 as TableBorderWidthOption, a7 as TableChromeDraft, a8 as TableChromePick, a9 as TableChromeSlotId, aa as TableInteractionLabelKey, ab as ToolbarCommandState, ac as WORD_DEFAULT_FONT, ad as applyTableChromePick, ae as blankDocumentBytes, af as canExecuteImageCommand, ag as captureImageMutationPreconditions, ah as chromeControlCount, ai as chromeMenuSlots, aj as chromeProbeForSlot, ak as chromeSlotId, al as commandForSlot, am as commandForSlotValue, an as commandForTableChromeSlotValue, ao as composeFontConfiguration, ap as computeImageResizeResult, aq as computeMovedImagePosition, ar as computeResizedImageExtentEmu, as as createDocxEditor, at as createFontSource, au as createImageOverlayScrollPort, av as cssPixelsToLayoutPoints, aw as defaultChromeGroups, ax as defaultTableLabel, ay as emuToOverlayPoints, az as executeImageCommand, aA as finalizeImageOverlayInteraction, aB as formattingBarChromeGroups, aC as isStaleImageInteractionCommit, aD as isTableChromeSlot, aE as layoutPointsToCssPixels, aF as loadFonts, aG as overlayFrameToSheetCssPixels, aH as pointsToEmu, aI as probeTableChromeCommand, aJ as resizePreservesAspect, aK as runSave, aL as runTableChromeCommand, aM as runTableCommand, aN as runToolbarCommand, aO as selectedDrawingOverlayTargetOf, aP as selectedImageStateOf, aQ as surfacePaintScale, aR as tableChromeIconPaths, aS as tableChromeLabelKeyForTarget, aT as tableChromeToolbarState, aU as tableChromeVisible, aV as tableCommandToolbarState, aW as toolbarCommandState, aX as toolbarCommandStates } from './index-CiEakUbq.cjs';
6
6
  import { A as AutomationCapabilities, a as AutomationHost } from './protocol-FAz_nPm_.cjs';
7
7
  export { CollectReviewItems, EditorModule, EditorModuleRegistry, ReviewModuleContribution, resolveEditorModules } from './contracts/modules.cjs';
8
8
  import { ColorValue } from './contracts/types.cjs';
9
9
  import { h as TreeDocColorValue, d as DrawingPositionInput } from './tree-op-types-UOXlRUqQ.cjs';
10
10
  export { i as IMAGE_WRAP_TARGETS, b as ImageWrapTarget } from './tree-op-types-UOXlRUqQ.cjs';
11
11
  import { f as DocumentThemeColorEntry } from './tree-session-Cow6LjPn.cjs';
12
- import { S as SemanticLayout } from './semantic-records-COVFW5aS.cjs';
13
- export { T as TextMeasurer } from './semantic-records-COVFW5aS.cjs';
12
+ import { S as SemanticLayout } from './semantic-records-DC6V1U3T.cjs';
13
+ export { T as TextMeasurer } from './semantic-records-DC6V1U3T.cjs';
14
14
  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-DwpNnTg3.cjs';
15
- export { S as SectionProperties } from './semantic-cell-selection-DwLB71fF.cjs';
15
+ export { S as SectionProperties } from './semantic-cell-selection-CI3loBKq.cjs';
16
16
  export { R as ReviewModelInput } from './review-support-rsyGP5-9.cjs';
17
- export { N as NavigationCommand, S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-DqcEonqD.cjs';
17
+ export { N as NavigationCommand, S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-B4HrJFQ2.cjs';
18
+ export { F as FieldShadingMode } from './semantic-paint-DdGGra4m.cjs';
18
19
  import './contracts/document.cjs';
19
20
  import './revision-projection-72ZApe-g.cjs';
20
21
  import './ooxml-tree-BU0e3DVi.cjs';
@@ -24,7 +25,6 @@ import './custom-node-writes-YqISlSRl.cjs';
24
25
  import './hf-references-CgEOSw3i.cjs';
25
26
  import './note-nodes-C6DLxlvj.cjs';
26
27
  import './tree-store-B1lEkdXc.cjs';
27
- import './semantic-paint-drawings-x8g44lD_.cjs';
28
28
  import 'prosemirror-model';
29
29
 
30
30
  interface LayoutShapingInstrumentation {
@@ -238,6 +238,46 @@ interface SurfaceExtent {
238
238
  */
239
239
  declare function surfaceExtent(layout: SemanticLayout, materialize: ReadonlySet<number> | undefined): SurfaceExtent;
240
240
 
241
+ /** The narrowest scale the editor contract accepts. One definition, every user. */
242
+ declare const ZOOM_MIN = 0.1;
243
+ /** The widest scale the editor contract accepts. */
244
+ declare const ZOOM_MAX = 5;
245
+ /**
246
+ * Fit the page width, but never magnify and never shrink past legibility: the default.
247
+ *
248
+ * A wide container keeps the 100% it has always had, and only one too narrow to hold the
249
+ * sheet shrinks. Uncapped fitting would render a Letter page at 183% on a 1600px monitor,
250
+ * which is a reader app, not Word; unfloored fitting would render it at 20% beside an open
251
+ * comments rail on a phone.
252
+ */
253
+ declare const AUTO_ZOOM_MODE: ZoomMode;
254
+ /**
255
+ * Fit the page width in BOTH directions — the uncapped fit, unlike `'auto'`.
256
+ *
257
+ * A shared constant rather than a literal per call site: modes are compared by value, but a
258
+ * control also has to render its own selected state, and two spellings of one mode in two
259
+ * files is how a menu ends up ticking a row the editor is not in.
260
+ */
261
+ declare const FIT_WIDTH_ZOOM_MODE: ZoomMode;
262
+ /**
263
+ * Normalize the `'auto'` shorthand a host may pass anywhere a {@link ZoomMode} is accepted.
264
+ *
265
+ * Returns `null` for a value that is neither, so callers refuse rather than silently
266
+ * substituting a mode the caller did not ask for.
267
+ */
268
+ declare function resolveZoomMode(mode: ZoomMode | 'auto'): ZoomMode | null;
269
+ /**
270
+ * Whether two modes say the same thing.
271
+ *
272
+ * `snapshotsEqual` compares `zoomMode` by IDENTITY, and a host's `zoomMode` prop is an object
273
+ * — `<DocxEditor zoomMode={{ type: 'fit', fit: 'pageWidth' }} />` is a fresh literal on every
274
+ * render, which is the spelling the docs show. Without a value comparison somewhere, each of
275
+ * those renders reinstalled the observer, refitted, bumped the tick, and re-rendered every
276
+ * `useEditorState` consumer in the tree — including the page selector that the slice
277
+ * memoization exists to keep asleep. The lane holds its object and compares by value here.
278
+ */
279
+ declare function sameZoomMode(a: ZoomMode, b: ZoomMode): boolean;
280
+
241
281
  /** Validate a position input, refusing offsets or bases outside what OOXML allows. */
242
282
  declare function validateDrawingPositionInput(position: DrawingPositionInput): boolean;
243
283
  /** Legal `relativeFrom` bases for a horizontal offset (page, margin, column, character, …). */
@@ -268,4 +308,4 @@ declare function validateSetImagePositionCommand(command: {
268
308
  readonly relativeToV?: string;
269
309
  }, mode: 'frame' | 'simple'): boolean;
270
310
 
271
- export { BROWSER_AUTOMATION_CAPABILITIES, type ColorLowerResult, DRAWING_REL_FROM_H, DRAWING_REL_FROM_V, DocxEditorInstance, DrawingPositionInput, OpenPaginatedResult, PX_PER_CM, PX_PER_INCH, PaginatedSurface, PaginatedSurfaceOptions, type RulerDragOptions, type RulerIndent, type RulerIndentHandle, type RulerPageMetrics, type RulerTick, type RulerUnit, SNAP_TWIPS_CM, SNAP_TWIPS_INCH, type SurfaceExtent, TWIPS_PER_CM, TWIPS_PER_INCH, applyThemeShade, applyThemeTint, createBrowserAutomationHost, createLayoutShaping, disposeLayoutShaping, dragIndent, generateRulerTicks, handlePosition, lowerColorValueForBorder, lowerColorValueForFill, mountPaginatedSurface, positionInputFromPropertiesCommand, propertiesCommandHasPositionFields, resolveColorValueToCss, resolveThemeColorHex, rulerPageBox, snapTwips, surfaceExtent, tableCommandState, toEditorFontError, validateDrawingPositionInput, validateSetImagePositionCommand, validateThemeModifier };
311
+ export { AUTO_ZOOM_MODE, BROWSER_AUTOMATION_CAPABILITIES, type ColorLowerResult, DRAWING_REL_FROM_H, DRAWING_REL_FROM_V, DocxEditorInstance, DrawingPositionInput, FIT_WIDTH_ZOOM_MODE, OpenPaginatedResult, PX_PER_CM, PX_PER_INCH, PaginatedSurface, PaginatedSurfaceOptions, type RulerDragOptions, type RulerIndent, type RulerIndentHandle, type RulerPageMetrics, type RulerTick, type RulerUnit, SNAP_TWIPS_CM, SNAP_TWIPS_INCH, type SurfaceExtent, TWIPS_PER_CM, TWIPS_PER_INCH, ZOOM_MAX, ZOOM_MIN, applyThemeShade, applyThemeTint, createBrowserAutomationHost, createLayoutShaping, disposeLayoutShaping, dragIndent, generateRulerTicks, handlePosition, lowerColorValueForBorder, lowerColorValueForFill, mountPaginatedSurface, positionInputFromPropertiesCommand, propertiesCommandHasPositionFields, resolveColorValueToCss, resolveThemeColorHex, resolveZoomMode, rulerPageBox, sameZoomMode, snapTwips, surfaceExtent, tableCommandState, toEditorFontError, validateDrawingPositionInput, validateSetImagePositionCommand, validateThemeModifier };
package/dist/editor.d.ts CHANGED
@@ -1,20 +1,21 @@
1
- import { F as FontConfiguration, E as EditorFontError, a as EditorCommand, C as CanResult } from './editor-DQRRxKMG.js';
2
- export { I as ImageContext, b as ImageCropPercent, c as ImageCropPermille, S as SelectedImageState, d as cropPercentFromCropPermille, e as cropPercentFromPermille, f as cropPercentFromSourceCrop, g as cropPermilleFromCropPercent, h as cropPermilleFromPercent, s as sourceCropFromCropPercent, v as validateImageCropPercent } from './editor-DQRRxKMG.js';
3
- import { L as LayoutShapingOptions } from './shaped-measurer-CZXL-a6v.js';
4
- import { P as PaginatedSurfaceOptions, O as OpenPaginatedResult, a as PaginatedSurface, T as TableCommandPlan, D as DocxEditorInstance } from './index-BzqHsd4Y.js';
5
- 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, F as FinalizedImageOverlayInteraction, r as FontConfigurationBase, s as FontConfigurationFragment, t as FontLoadFailure, u as FontLoadFailureReason, v as FontMeasurementState, w as FontResolutionRequest, x as FontResolver, y as FontUrlSource, H as HyperlinkActivation, z as HyperlinkChromeHandlers, B as HyperlinkOps, I as IMAGE_OVERLAY_NUDGE_PT, G as IMAGE_OVERLAY_NUDGE_SHIFT_PT, J as ImageInteractionSession, K as ImageOverlayScrollPort, L as ImageResizeHandle, M as ImageResizeResult, N as LoadFontsRequest, Q as LoadFontsResult, R as MAX_RESOLVER_FAMILIES, S as OverlayFrameRect, U as PaginatedSurfaceState, V as RunTableChromeCommandResult, W as SelectedDrawingOverlayTarget, X as SurfaceFormatting, Y as SurfaceHyperlink, Z as SurfaceNavigation, _ as SurfaceOverlayCoordinates, $ as TABLE_BORDER_STYLE_OPTIONS, a0 as TABLE_BORDER_TARGET_OPTIONS, a1 as TABLE_BORDER_WIDTH_OPTIONS, a2 as TABLE_CHROME_SLOT_IDS, a3 as TableBorderStyleOption, a4 as TableBorderTargetOption, a5 as TableBorderTargetValue, a6 as TableBorderWidthOption, a7 as TableChromeDraft, a8 as TableChromePick, a9 as TableChromeSlotId, aa as TableInteractionLabelKey, ab as ToolbarCommandState, ac as WORD_DEFAULT_FONT, ad as applyTableChromePick, ae as blankDocumentBytes, af as canExecuteImageCommand, ag as captureImageMutationPreconditions, ah as chromeControlCount, ai as chromeMenuSlots, aj as chromeProbeForSlot, ak as chromeSlotId, al as commandForSlot, am as commandForSlotValue, an as commandForTableChromeSlotValue, ao as composeFontConfiguration, ap as computeImageResizeResult, aq as computeMovedImagePosition, ar as computeResizedImageExtentEmu, as as createDocxEditor, at as createFontSource, au as createImageOverlayScrollPort, av as cssPixelsToLayoutPoints, aw as defaultChromeGroups, ax as defaultTableLabel, ay as emuToOverlayPoints, az as executeImageCommand, aA as finalizeImageOverlayInteraction, aB as formattingBarChromeGroups, aC as isStaleImageInteractionCommit, aD as isTableChromeSlot, aE as layoutPointsToCssPixels, aF as loadFonts, aG as overlayFrameToSheetCssPixels, aH as pointsToEmu, aI as probeTableChromeCommand, aJ as resizePreservesAspect, aK as runSave, aL as runTableChromeCommand, aM as runTableCommand, aN as runToolbarCommand, aO as selectedDrawingOverlayTargetOf, aP as selectedImageStateOf, aQ as surfacePaintScale, aR as tableChromeIconPaths, aS as tableChromeLabelKeyForTarget, aT as tableChromeToolbarState, aU as tableChromeVisible, aV as tableCommandToolbarState, aW as toolbarCommandState, aX as toolbarCommandStates } from './index-BzqHsd4Y.js';
1
+ import { F as FontConfiguration, E as EditorFontError, a as EditorCommand, C as CanResult, Z as ZoomMode } from './editor-C8oaTHr3.js';
2
+ export { I as ImageContext, b as ImageCropPercent, c as ImageCropPermille, S as SelectedImageState, d as cropPercentFromCropPermille, e as cropPercentFromPermille, f as cropPercentFromSourceCrop, g as cropPermilleFromCropPercent, h as cropPermilleFromPercent, s as sourceCropFromCropPercent, v as validateImageCropPercent } from './editor-C8oaTHr3.js';
3
+ import { L as LayoutShapingOptions } from './shaped-measurer-ChSWkuAT.js';
4
+ import { P as PaginatedSurfaceOptions, O as OpenPaginatedResult, a as PaginatedSurface, T as TableCommandPlan, D as DocxEditorInstance } from './index-gvw4VGE9.js';
5
+ 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, F as FinalizedImageOverlayInteraction, r as FontConfigurationBase, s as FontConfigurationFragment, t as FontLoadFailure, u as FontLoadFailureReason, v as FontMeasurementState, w as FontResolutionRequest, x as FontResolver, y as FontUrlSource, H as HyperlinkActivation, z as HyperlinkChromeHandlers, B as HyperlinkOps, I as IMAGE_OVERLAY_NUDGE_PT, G as IMAGE_OVERLAY_NUDGE_SHIFT_PT, J as ImageInteractionSession, K as ImageOverlayScrollPort, L as ImageResizeHandle, M as ImageResizeResult, N as LoadFontsRequest, Q as LoadFontsResult, R as MAX_RESOLVER_FAMILIES, S as OverlayFrameRect, U as PaginatedSurfaceState, V as RunTableChromeCommandResult, W as SelectedDrawingOverlayTarget, X as SurfaceFormatting, Y as SurfaceHyperlink, Z as SurfaceNavigation, _ as SurfaceOverlayCoordinates, $ as TABLE_BORDER_STYLE_OPTIONS, a0 as TABLE_BORDER_TARGET_OPTIONS, a1 as TABLE_BORDER_WIDTH_OPTIONS, a2 as TABLE_CHROME_SLOT_IDS, a3 as TableBorderStyleOption, a4 as TableBorderTargetOption, a5 as TableBorderTargetValue, a6 as TableBorderWidthOption, a7 as TableChromeDraft, a8 as TableChromePick, a9 as TableChromeSlotId, aa as TableInteractionLabelKey, ab as ToolbarCommandState, ac as WORD_DEFAULT_FONT, ad as applyTableChromePick, ae as blankDocumentBytes, af as canExecuteImageCommand, ag as captureImageMutationPreconditions, ah as chromeControlCount, ai as chromeMenuSlots, aj as chromeProbeForSlot, ak as chromeSlotId, al as commandForSlot, am as commandForSlotValue, an as commandForTableChromeSlotValue, ao as composeFontConfiguration, ap as computeImageResizeResult, aq as computeMovedImagePosition, ar as computeResizedImageExtentEmu, as as createDocxEditor, at as createFontSource, au as createImageOverlayScrollPort, av as cssPixelsToLayoutPoints, aw as defaultChromeGroups, ax as defaultTableLabel, ay as emuToOverlayPoints, az as executeImageCommand, aA as finalizeImageOverlayInteraction, aB as formattingBarChromeGroups, aC as isStaleImageInteractionCommit, aD as isTableChromeSlot, aE as layoutPointsToCssPixels, aF as loadFonts, aG as overlayFrameToSheetCssPixels, aH as pointsToEmu, aI as probeTableChromeCommand, aJ as resizePreservesAspect, aK as runSave, aL as runTableChromeCommand, aM as runTableCommand, aN as runToolbarCommand, aO as selectedDrawingOverlayTargetOf, aP as selectedImageStateOf, aQ as surfacePaintScale, aR as tableChromeIconPaths, aS as tableChromeLabelKeyForTarget, aT as tableChromeToolbarState, aU as tableChromeVisible, aV as tableCommandToolbarState, aW as toolbarCommandState, aX as toolbarCommandStates } from './index-gvw4VGE9.js';
6
6
  import { A as AutomationCapabilities, a as AutomationHost } from './protocol-BWVA3Q1p.js';
7
7
  export { CollectReviewItems, EditorModule, EditorModuleRegistry, ReviewModuleContribution, resolveEditorModules } from './contracts/modules.js';
8
8
  import { ColorValue } from './contracts/types.js';
9
9
  import { h as TreeDocColorValue, d as DrawingPositionInput } from './tree-op-types-DWLCllG7.js';
10
10
  export { i as IMAGE_WRAP_TARGETS, b as ImageWrapTarget } from './tree-op-types-DWLCllG7.js';
11
11
  import { f as DocumentThemeColorEntry } from './tree-session-CMA7n4Rm.js';
12
- import { S as SemanticLayout } from './semantic-records-zTC0_1zi.js';
13
- export { T as TextMeasurer } from './semantic-records-zTC0_1zi.js';
12
+ import { S as SemanticLayout } from './semantic-records-BC4bIKKL.js';
13
+ export { T as TextMeasurer } from './semantic-records-BC4bIKKL.js';
14
14
  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-C_YnqPhn.js';
15
- export { S as SectionProperties } from './semantic-cell-selection-D_8RbPII.js';
15
+ export { S as SectionProperties } from './semantic-cell-selection-Cx8P64j2.js';
16
16
  export { R as ReviewModelInput } from './review-support-B9ykYpoZ.js';
17
- export { N as NavigationCommand, S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-CXH2wFqi.js';
17
+ export { N as NavigationCommand, S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-unGpRNCk.js';
18
+ export { F as FieldShadingMode } from './semantic-paint-BBNaqr1s.js';
18
19
  import './contracts/document.js';
19
20
  import './revision-projection-DHAkcD_L.js';
20
21
  import './ooxml-tree-BU0e3DVi.js';
@@ -24,7 +25,6 @@ import './custom-node-writes-ttKuYd0M.js';
24
25
  import './hf-references-BdjsQNE_.js';
25
26
  import './note-nodes-BPSTVDMr.js';
26
27
  import './tree-store-BscFPB7x.js';
27
- import './semantic-paint-drawings-B5Wk2so5.js';
28
28
  import 'prosemirror-model';
29
29
 
30
30
  interface LayoutShapingInstrumentation {
@@ -238,6 +238,46 @@ interface SurfaceExtent {
238
238
  */
239
239
  declare function surfaceExtent(layout: SemanticLayout, materialize: ReadonlySet<number> | undefined): SurfaceExtent;
240
240
 
241
+ /** The narrowest scale the editor contract accepts. One definition, every user. */
242
+ declare const ZOOM_MIN = 0.1;
243
+ /** The widest scale the editor contract accepts. */
244
+ declare const ZOOM_MAX = 5;
245
+ /**
246
+ * Fit the page width, but never magnify and never shrink past legibility: the default.
247
+ *
248
+ * A wide container keeps the 100% it has always had, and only one too narrow to hold the
249
+ * sheet shrinks. Uncapped fitting would render a Letter page at 183% on a 1600px monitor,
250
+ * which is a reader app, not Word; unfloored fitting would render it at 20% beside an open
251
+ * comments rail on a phone.
252
+ */
253
+ declare const AUTO_ZOOM_MODE: ZoomMode;
254
+ /**
255
+ * Fit the page width in BOTH directions — the uncapped fit, unlike `'auto'`.
256
+ *
257
+ * A shared constant rather than a literal per call site: modes are compared by value, but a
258
+ * control also has to render its own selected state, and two spellings of one mode in two
259
+ * files is how a menu ends up ticking a row the editor is not in.
260
+ */
261
+ declare const FIT_WIDTH_ZOOM_MODE: ZoomMode;
262
+ /**
263
+ * Normalize the `'auto'` shorthand a host may pass anywhere a {@link ZoomMode} is accepted.
264
+ *
265
+ * Returns `null` for a value that is neither, so callers refuse rather than silently
266
+ * substituting a mode the caller did not ask for.
267
+ */
268
+ declare function resolveZoomMode(mode: ZoomMode | 'auto'): ZoomMode | null;
269
+ /**
270
+ * Whether two modes say the same thing.
271
+ *
272
+ * `snapshotsEqual` compares `zoomMode` by IDENTITY, and a host's `zoomMode` prop is an object
273
+ * — `<DocxEditor zoomMode={{ type: 'fit', fit: 'pageWidth' }} />` is a fresh literal on every
274
+ * render, which is the spelling the docs show. Without a value comparison somewhere, each of
275
+ * those renders reinstalled the observer, refitted, bumped the tick, and re-rendered every
276
+ * `useEditorState` consumer in the tree — including the page selector that the slice
277
+ * memoization exists to keep asleep. The lane holds its object and compares by value here.
278
+ */
279
+ declare function sameZoomMode(a: ZoomMode, b: ZoomMode): boolean;
280
+
241
281
  /** Validate a position input, refusing offsets or bases outside what OOXML allows. */
242
282
  declare function validateDrawingPositionInput(position: DrawingPositionInput): boolean;
243
283
  /** Legal `relativeFrom` bases for a horizontal offset (page, margin, column, character, …). */
@@ -268,4 +308,4 @@ declare function validateSetImagePositionCommand(command: {
268
308
  readonly relativeToV?: string;
269
309
  }, mode: 'frame' | 'simple'): boolean;
270
310
 
271
- export { BROWSER_AUTOMATION_CAPABILITIES, type ColorLowerResult, DRAWING_REL_FROM_H, DRAWING_REL_FROM_V, DocxEditorInstance, DrawingPositionInput, OpenPaginatedResult, PX_PER_CM, PX_PER_INCH, PaginatedSurface, PaginatedSurfaceOptions, type RulerDragOptions, type RulerIndent, type RulerIndentHandle, type RulerPageMetrics, type RulerTick, type RulerUnit, SNAP_TWIPS_CM, SNAP_TWIPS_INCH, type SurfaceExtent, TWIPS_PER_CM, TWIPS_PER_INCH, applyThemeShade, applyThemeTint, createBrowserAutomationHost, createLayoutShaping, disposeLayoutShaping, dragIndent, generateRulerTicks, handlePosition, lowerColorValueForBorder, lowerColorValueForFill, mountPaginatedSurface, positionInputFromPropertiesCommand, propertiesCommandHasPositionFields, resolveColorValueToCss, resolveThemeColorHex, rulerPageBox, snapTwips, surfaceExtent, tableCommandState, toEditorFontError, validateDrawingPositionInput, validateSetImagePositionCommand, validateThemeModifier };
311
+ export { AUTO_ZOOM_MODE, BROWSER_AUTOMATION_CAPABILITIES, type ColorLowerResult, DRAWING_REL_FROM_H, DRAWING_REL_FROM_V, DocxEditorInstance, DrawingPositionInput, FIT_WIDTH_ZOOM_MODE, OpenPaginatedResult, PX_PER_CM, PX_PER_INCH, PaginatedSurface, PaginatedSurfaceOptions, type RulerDragOptions, type RulerIndent, type RulerIndentHandle, type RulerPageMetrics, type RulerTick, type RulerUnit, SNAP_TWIPS_CM, SNAP_TWIPS_INCH, type SurfaceExtent, TWIPS_PER_CM, TWIPS_PER_INCH, ZOOM_MAX, ZOOM_MIN, applyThemeShade, applyThemeTint, createBrowserAutomationHost, createLayoutShaping, disposeLayoutShaping, dragIndent, generateRulerTicks, handlePosition, lowerColorValueForBorder, lowerColorValueForFill, mountPaginatedSurface, positionInputFromPropertiesCommand, propertiesCommandHasPositionFields, resolveColorValueToCss, resolveThemeColorHex, resolveZoomMode, rulerPageBox, sameZoomMode, snapTwips, surfaceExtent, tableCommandState, toEditorFontError, validateDrawingPositionInput, validateSetImagePositionCommand, validateThemeModifier };
package/dist/editor.js CHANGED
@@ -1 +1 @@
1
- export{Da as BROWSER_AUTOMATION_CAPABILITIES,sa as CHROME_GROUPS,wa as CHROME_MENUS,za as CHROME_UNAVAILABLE_KEY,W as DEFAULT_TABLE_CHROME_DRAFT,O as EMU_PER_POINT,M as IMAGE_OVERLAY_NUDGE_PT,N as IMAGE_OVERLAY_NUDGE_SHIFT_PT,d as MAX_RESOLVER_FAMILIES,k as PX_PER_CM,j as PX_PER_INCH,q as SNAP_TWIPS_CM,p as SNAP_TWIPS_INCH,aa as TABLE_BORDER_STYLE_OPTIONS,$ as TABLE_BORDER_TARGET_OPTIONS,ba as TABLE_BORDER_WIDTH_OPTIONS,X as TABLE_CHROME_SLOT_IDS,o as TWIPS_PER_CM,n as TWIPS_PER_INCH,e as WORD_DEFAULT_FONT,ca as applyTableChromePick,w as applyThemeShade,v as applyThemeTint,g as blankDocumentBytes,K as canExecuteImageCommand,J as captureImageMutationPreconditions,ya as chromeControlCount,xa as chromeMenuSlots,ga as chromeProbeForSlot,ta as chromeSlotId,ha as commandForSlot,ja as commandForSlotValue,ia as commandForTableChromeSlotValue,f as composeFontConfiguration,Ka as computeImageResizeResult,T as computeMovedImagePosition,S as computeResizedImageExtentEmu,Ea as createBrowserAutomationHost,Ca as createDocxEditor,i as createFontSource,La as createImageOverlayScrollPort,b as createLayoutShaping,G as cropPercentFromCropPermille,E as cropPercentFromPermille,B as cropPercentFromSourceCrop,F as cropPermilleFromCropPercent,D as cropPermilleFromPercent,Ha as cssPixelsToLayoutPoints,ua as defaultChromeGroups,Y as defaultTableLabel,c as disposeLayoutShaping,t as dragIndent,R as emuToOverlayPoints,L as executeImageCommand,Ma as finalizeImageOverlayInteraction,va as formattingBarChromeGroups,l as generateRulerTicks,r as handlePosition,U as isStaleImageInteractionCommit,Z as isTableChromeSlot,Ga as layoutPointsToCssPixels,h as loadFonts,y as lowerColorValueForBorder,z as lowerColorValueForFill,Ba as mountPaginatedSurface,Ia as overlayFrameToSheetCssPixels,Q as pointsToEmu,da as probeTableChromeCommand,Ja as resizePreservesAspect,A as resolveColorValueToCss,x as resolveThemeColorHex,m as rulerPageBox,pa as runSave,na as runTableChromeCommand,ra as runTableCommand,oa as runToolbarCommand,P as selectedDrawingOverlayTargetOf,I as selectedImageStateOf,s as snapTwips,C as sourceCropFromCropPercent,Aa as surfaceExtent,Fa as surfacePaintScale,fa as tableChromeIconPaths,ea as tableChromeLabelKeyForTarget,ka as tableChromeToolbarState,_ as tableChromeVisible,V as tableCommandState,qa as tableCommandToolbarState,a as toEditorFontError,la as toolbarCommandState,ma as toolbarCommandStates,H as validateImageCropPercent,u as validateThemeModifier}from'./chunk-3HEU7MHP.js';import'./chunk-QRAUDDVY.js';import'./chunk-STCITBJK.js';import'./chunk-6WIIHJFY.js';import'./chunk-TBBXCC7D.js';import'./chunk-4WWEDTTE.js';import'./chunk-2DTQDAN7.js';export{D as DEFAULT_IMAGE_RESOURCE_LIMITS,lf as DRAWING_REL_FROM_H,mf as DRAWING_REL_FROM_V,Wa as IMAGE_WRAP_TARGETS,of as positionInputFromPropertiesCommand,nf as propertiesCommandHasPositionFields,E as resolveImageResourceLimits,mb as resolveSvgIntrinsicSize,ib as sniffImageMime,kf as validateDrawingPositionInput,nb as validateRasterHeader,pf as validateSetImagePositionCommand}from'./chunk-Y7TA7TPF.js';import'./chunk-REZUWYB7.js';export{a as resolveEditorModules}from'./chunk-GQQOL4PV.js';
1
+ export{Ea as AUTO_ZOOM_MODE,Ja as BROWSER_AUTOMATION_CAPABILITIES,sa as CHROME_GROUPS,wa as CHROME_MENUS,za as CHROME_UNAVAILABLE_KEY,W as DEFAULT_TABLE_CHROME_DRAFT,O as EMU_PER_POINT,Fa as FIT_WIDTH_ZOOM_MODE,M as IMAGE_OVERLAY_NUDGE_PT,N as IMAGE_OVERLAY_NUDGE_SHIFT_PT,d as MAX_RESOLVER_FAMILIES,k as PX_PER_CM,j as PX_PER_INCH,q as SNAP_TWIPS_CM,p as SNAP_TWIPS_INCH,aa as TABLE_BORDER_STYLE_OPTIONS,$ as TABLE_BORDER_TARGET_OPTIONS,ba as TABLE_BORDER_WIDTH_OPTIONS,X as TABLE_CHROME_SLOT_IDS,o as TWIPS_PER_CM,n as TWIPS_PER_INCH,e as WORD_DEFAULT_FONT,Da as ZOOM_MAX,Ca as ZOOM_MIN,ca as applyTableChromePick,w as applyThemeShade,v as applyThemeTint,g as blankDocumentBytes,K as canExecuteImageCommand,J as captureImageMutationPreconditions,ya as chromeControlCount,xa as chromeMenuSlots,ga as chromeProbeForSlot,ta as chromeSlotId,ha as commandForSlot,ja as commandForSlotValue,ia as commandForTableChromeSlotValue,f as composeFontConfiguration,Qa as computeImageResizeResult,T as computeMovedImagePosition,S as computeResizedImageExtentEmu,Ka as createBrowserAutomationHost,Ia as createDocxEditor,i as createFontSource,Ra as createImageOverlayScrollPort,b as createLayoutShaping,G as cropPercentFromCropPermille,E as cropPercentFromPermille,B as cropPercentFromSourceCrop,F as cropPermilleFromCropPercent,D as cropPermilleFromPercent,Na as cssPixelsToLayoutPoints,ua as defaultChromeGroups,Y as defaultTableLabel,c as disposeLayoutShaping,t as dragIndent,R as emuToOverlayPoints,L as executeImageCommand,Sa as finalizeImageOverlayInteraction,va as formattingBarChromeGroups,l as generateRulerTicks,r as handlePosition,U as isStaleImageInteractionCommit,Z as isTableChromeSlot,Ma as layoutPointsToCssPixels,h as loadFonts,y as lowerColorValueForBorder,z as lowerColorValueForFill,Ba as mountPaginatedSurface,Oa as overlayFrameToSheetCssPixels,Q as pointsToEmu,da as probeTableChromeCommand,Pa as resizePreservesAspect,A as resolveColorValueToCss,x as resolveThemeColorHex,Ga as resolveZoomMode,m as rulerPageBox,pa as runSave,na as runTableChromeCommand,ra as runTableCommand,oa as runToolbarCommand,Ha as sameZoomMode,P as selectedDrawingOverlayTargetOf,I as selectedImageStateOf,s as snapTwips,C as sourceCropFromCropPercent,Aa as surfaceExtent,La as surfacePaintScale,fa as tableChromeIconPaths,ea as tableChromeLabelKeyForTarget,ka as tableChromeToolbarState,_ as tableChromeVisible,V as tableCommandState,qa as tableCommandToolbarState,a as toEditorFontError,la as toolbarCommandState,ma as toolbarCommandStates,H as validateImageCropPercent,u as validateThemeModifier}from'./chunk-QVGTZUEV.js';import'./chunk-NCGKMEKU.js';import'./chunk-C24AINST.js';import'./chunk-PFTVNFMI.js';import'./chunk-LVZSKP2F.js';import'./chunk-4WWEDTTE.js';import'./chunk-MO7GAUO7.js';export{D as DEFAULT_IMAGE_RESOURCE_LIMITS,nf as DRAWING_REL_FROM_H,of as DRAWING_REL_FROM_V,Wa as IMAGE_WRAP_TARGETS,qf as positionInputFromPropertiesCommand,pf as propertiesCommandHasPositionFields,E as resolveImageResourceLimits,mb as resolveSvgIntrinsicSize,ib as sniffImageMime,mf as validateDrawingPositionInput,nb as validateRasterHeader,rf as validateSetImagePositionCommand}from'./chunk-5OSFUHGF.js';import'./chunk-GRGRIDHF.js';export{a as resolveEditorModules}from'./chunk-GQQOL4PV.js';
@@ -1,16 +1,16 @@
1
- import { i as FontSource, j as FontSourceSubstitution, F as FontConfiguration, k as FontFaceRequest, I as ImageContext, D as DocumentSource, E as EditorFontError, l as Editor, a as EditorCommand, C as CanResult, S as SelectedImageState, V as ViewScope, T as TableBorderEdgeTarget, m as TableBorderSpec, n as TableBorderStyle, o as TableContext } from './editor-BGBZn9c9.cjs';
1
+ import { i as FontSource, j as FontSourceSubstitution, F as FontConfiguration, k as FontFaceRequest, I as ImageContext, D as DocumentSource, Z as ZoomMode, E as EditorFontError, l as Editor, a as EditorCommand, C as CanResult, S as SelectedImageState, V as ViewScope, T as TableBorderEdgeTarget, m as TableBorderSpec, n as TableBorderStyle, o as TableContext } from './editor-25RmHnxu.cjs';
2
2
  import { T as TreeDocOp, d as DrawingPositionInput, k as DrawingTransform, m as DrawingTreeDocOp } from './tree-op-types-UOXlRUqQ.cjs';
3
3
  import { b as ImageDecodePort, S as SupportedImageMime } from './image-resources-DwpNnTg3.cjs';
4
4
  import { R as RevisionDisplayMode } from './revision-projection-72ZApe-g.cjs';
5
5
  import './review-support-rsyGP5-9.cjs';
6
- import { a as SemanticSelection, S as SemanticPosition, N as NavigationCommand } from './semantic-interaction-DqcEonqD.cjs';
6
+ import { a as SemanticSelection, S as SemanticPosition, N as NavigationCommand } from './semantic-interaction-B4HrJFQ2.cjs';
7
7
  import { R as ResolvedFootnoteProperties, a as ResolvedEndnoteProperties, A as AuthoredNoteProperties, l as ReviewRevisionKind } from './review-reads-qW0jvdF1.cjs';
8
- import { S as SemanticLayout, C as ContentControlBoundaryRecord, T as TextMeasurer } from './semantic-records-COVFW5aS.cjs';
8
+ import { S as SemanticLayout, C as ContentControlBoundaryRecord, T as TextMeasurer } from './semantic-records-DC6V1U3T.cjs';
9
9
  import { S as StoryScope, A as ApplyImagePropertiesInput, d as ImageIntentResult, c as InsertImageInput, B as BookmarkIndex } from './custom-node-writes-YqISlSRl.cjs';
10
- import { C as CellSelection, S as SectionProperties } from './semantic-cell-selection-DwLB71fF.cjs';
10
+ import { C as CellSelection, S as SectionProperties } from './semantic-cell-selection-CI3loBKq.cjs';
11
11
  import { EditorModule, ReviewModuleContribution } from './contracts/modules.cjs';
12
12
  import { Unsubscribe, ExecResult, IndentFormatting } from './contracts/types.cjs';
13
- import { D as DrawingPaintStrings } from './semantic-paint-drawings-x8g44lD_.cjs';
13
+ import { F as FieldShadingMode, a as DrawingPaintStrings } from './semantic-paint-DdGGra4m.cjs';
14
14
  import { T as TreeDocxSession, a as TreeApplyResult } from './tree-session-Cow6LjPn.cjs';
15
15
  import './contracts/document.cjs';
16
16
 
@@ -1115,7 +1115,22 @@ interface DocxEditorConfig {
1115
1115
  mode?: 'edit' | 'view';
1116
1116
  /** Override raster decode for insert/replace image commands; defaults to browser/headless. */
1117
1117
  imageDecodePort?: ImageDecodePort;
1118
+ /**
1119
+ * The scale to open at, as a fixed number.
1120
+ *
1121
+ * Supplying one also picks the mode: an editor given a `zoom` and no `zoomMode` opens
1122
+ * FIXED at that value and stays there. An embedder that pinned 100% keeps 100%.
1123
+ */
1118
1124
  zoom?: number;
1125
+ /**
1126
+ * Where the scale comes from. Defaults to `'auto'` — fit the page width, between 50% and
1127
+ * 100% — unless {@link DocxEditorConfig.zoom} is supplied, which means fixed.
1128
+ *
1129
+ * `'auto'` leaves a window wide enough for the sheet exactly where it is today and shrinks
1130
+ * a narrower one instead of growing a horizontal scrollbar. Pass `{ type: 'fixed' }` for
1131
+ * the old unconditional behaviour.
1132
+ */
1133
+ zoomMode?: ZoomMode | 'auto';
1119
1134
  onFontError?: (error: EditorFontError) => void;
1120
1135
  /** Localized labels for table insertion furniture on the painted surface. */
1121
1136
  tableInteractionLabel?: (key: 'table.insertRowBelow' | 'table.insertColumnRight') => string;
@@ -1567,6 +1582,18 @@ interface PaginatedSurfaceOptions {
1567
1582
  * option is shared either way.
1568
1583
  */
1569
1584
  readonly revisionDisplayMode?: RevisionDisplayMode;
1585
+ /**
1586
+ * When a field's result wears Word's grey shading. Omitted keeps Word's own default,
1587
+ * `when-selected`.
1588
+ *
1589
+ * Applies to ORDINARY fields only. Legacy form fields follow the document's
1590
+ * `w:doNotShadeFormData`, because a form's blanks are the document's own statement about
1591
+ * itself rather than a reader's preference.
1592
+ *
1593
+ * A paint-level option, not a layout one: it changes no geometry, so switching it repaints
1594
+ * without remeasuring a single line.
1595
+ */
1596
+ readonly fieldShading?: FieldShadingMode;
1570
1597
  /**
1571
1598
  * The review module's derivation hooks for this surface's session. Absent,
1572
1599
  * `session.reviewItems()` is the typed empty queue and every review affordance
@@ -1,16 +1,16 @@
1
- import { i as FontSource, j as FontSourceSubstitution, F as FontConfiguration, k as FontFaceRequest, I as ImageContext, D as DocumentSource, E as EditorFontError, l as Editor, a as EditorCommand, C as CanResult, S as SelectedImageState, V as ViewScope, T as TableBorderEdgeTarget, m as TableBorderSpec, n as TableBorderStyle, o as TableContext } from './editor-DQRRxKMG.js';
1
+ import { i as FontSource, j as FontSourceSubstitution, F as FontConfiguration, k as FontFaceRequest, I as ImageContext, D as DocumentSource, Z as ZoomMode, E as EditorFontError, l as Editor, a as EditorCommand, C as CanResult, S as SelectedImageState, V as ViewScope, T as TableBorderEdgeTarget, m as TableBorderSpec, n as TableBorderStyle, o as TableContext } from './editor-C8oaTHr3.js';
2
2
  import { T as TreeDocOp, d as DrawingPositionInput, k as DrawingTransform, m as DrawingTreeDocOp } from './tree-op-types-DWLCllG7.js';
3
3
  import { b as ImageDecodePort, S as SupportedImageMime } from './image-resources-C_YnqPhn.js';
4
4
  import { R as RevisionDisplayMode } from './revision-projection-DHAkcD_L.js';
5
5
  import './review-support-B9ykYpoZ.js';
6
- import { a as SemanticSelection, S as SemanticPosition, N as NavigationCommand } from './semantic-interaction-CXH2wFqi.js';
6
+ import { a as SemanticSelection, S as SemanticPosition, N as NavigationCommand } from './semantic-interaction-unGpRNCk.js';
7
7
  import { R as ResolvedFootnoteProperties, a as ResolvedEndnoteProperties, A as AuthoredNoteProperties, l as ReviewRevisionKind } from './review-reads-CsoXSvUg.js';
8
- import { S as SemanticLayout, C as ContentControlBoundaryRecord, T as TextMeasurer } from './semantic-records-zTC0_1zi.js';
8
+ import { S as SemanticLayout, C as ContentControlBoundaryRecord, T as TextMeasurer } from './semantic-records-BC4bIKKL.js';
9
9
  import { S as StoryScope, A as ApplyImagePropertiesInput, d as ImageIntentResult, c as InsertImageInput, B as BookmarkIndex } from './custom-node-writes-ttKuYd0M.js';
10
- import { C as CellSelection, S as SectionProperties } from './semantic-cell-selection-D_8RbPII.js';
10
+ import { C as CellSelection, S as SectionProperties } from './semantic-cell-selection-Cx8P64j2.js';
11
11
  import { EditorModule, ReviewModuleContribution } from './contracts/modules.js';
12
12
  import { Unsubscribe, ExecResult, IndentFormatting } from './contracts/types.js';
13
- import { D as DrawingPaintStrings } from './semantic-paint-drawings-B5Wk2so5.js';
13
+ import { F as FieldShadingMode, a as DrawingPaintStrings } from './semantic-paint-BBNaqr1s.js';
14
14
  import { T as TreeDocxSession, a as TreeApplyResult } from './tree-session-CMA7n4Rm.js';
15
15
  import './contracts/document.js';
16
16
 
@@ -1115,7 +1115,22 @@ interface DocxEditorConfig {
1115
1115
  mode?: 'edit' | 'view';
1116
1116
  /** Override raster decode for insert/replace image commands; defaults to browser/headless. */
1117
1117
  imageDecodePort?: ImageDecodePort;
1118
+ /**
1119
+ * The scale to open at, as a fixed number.
1120
+ *
1121
+ * Supplying one also picks the mode: an editor given a `zoom` and no `zoomMode` opens
1122
+ * FIXED at that value and stays there. An embedder that pinned 100% keeps 100%.
1123
+ */
1118
1124
  zoom?: number;
1125
+ /**
1126
+ * Where the scale comes from. Defaults to `'auto'` — fit the page width, between 50% and
1127
+ * 100% — unless {@link DocxEditorConfig.zoom} is supplied, which means fixed.
1128
+ *
1129
+ * `'auto'` leaves a window wide enough for the sheet exactly where it is today and shrinks
1130
+ * a narrower one instead of growing a horizontal scrollbar. Pass `{ type: 'fixed' }` for
1131
+ * the old unconditional behaviour.
1132
+ */
1133
+ zoomMode?: ZoomMode | 'auto';
1119
1134
  onFontError?: (error: EditorFontError) => void;
1120
1135
  /** Localized labels for table insertion furniture on the painted surface. */
1121
1136
  tableInteractionLabel?: (key: 'table.insertRowBelow' | 'table.insertColumnRight') => string;
@@ -1567,6 +1582,18 @@ interface PaginatedSurfaceOptions {
1567
1582
  * option is shared either way.
1568
1583
  */
1569
1584
  readonly revisionDisplayMode?: RevisionDisplayMode;
1585
+ /**
1586
+ * When a field's result wears Word's grey shading. Omitted keeps Word's own default,
1587
+ * `when-selected`.
1588
+ *
1589
+ * Applies to ORDINARY fields only. Legacy form fields follow the document's
1590
+ * `w:doNotShadeFormData`, because a form's blanks are the document's own statement about
1591
+ * itself rather than a reader's preference.
1592
+ *
1593
+ * A paint-level option, not a layout one: it changes no geometry, so switching it repaints
1594
+ * without remeasuring a single line.
1595
+ */
1596
+ readonly fieldShading?: FieldShadingMode;
1570
1597
  /**
1571
1598
  * The review module's derivation hooks for this surface's session. Absent,
1572
1599
  * `session.reviewItems()` is the typed empty queue and every review affordance
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- 'use strict';var chunkEDLUMMQN_cjs=require('./chunk-EDLUMMQN.cjs');require('./chunk-3JKQE4QJ.cjs'),require('./chunk-TSXT537P.cjs'),require('./chunk-PC76F2HR.cjs'),require('./chunk-O2WQY7IT.cjs'),require('./chunk-BS554B6D.cjs'),require('./chunk-JQFDLZXQ.cjs'),require('./chunk-BZK64YU3.cjs'),require('./chunk-HBL3NNH5.cjs'),require('./chunk-7VQ7YLW3.cjs');Object.defineProperty(exports,"CHROME_GROUPS",{enumerable:true,get:function(){return chunkEDLUMMQN_cjs.sa}});Object.defineProperty(exports,"CHROME_MENUS",{enumerable:true,get:function(){return chunkEDLUMMQN_cjs.wa}});Object.defineProperty(exports,"WORD_DEFAULT_FONT",{enumerable:true,get:function(){return chunkEDLUMMQN_cjs.e}});Object.defineProperty(exports,"blankDocumentBytes",{enumerable:true,get:function(){return chunkEDLUMMQN_cjs.g}});Object.defineProperty(exports,"chromeMenuSlots",{enumerable:true,get:function(){return chunkEDLUMMQN_cjs.xa}});Object.defineProperty(exports,"commandForSlot",{enumerable:true,get:function(){return chunkEDLUMMQN_cjs.ha}});Object.defineProperty(exports,"commandForSlotValue",{enumerable:true,get:function(){return chunkEDLUMMQN_cjs.ja}});Object.defineProperty(exports,"composeFontConfiguration",{enumerable:true,get:function(){return chunkEDLUMMQN_cjs.f}});Object.defineProperty(exports,"createDocxEditor",{enumerable:true,get:function(){return chunkEDLUMMQN_cjs.Ca}});Object.defineProperty(exports,"createFontSource",{enumerable:true,get:function(){return chunkEDLUMMQN_cjs.i}});Object.defineProperty(exports,"loadFonts",{enumerable:true,get:function(){return chunkEDLUMMQN_cjs.h}});Object.defineProperty(exports,"runToolbarCommand",{enumerable:true,get:function(){return chunkEDLUMMQN_cjs.oa}});Object.defineProperty(exports,"toolbarCommandState",{enumerable:true,get:function(){return chunkEDLUMMQN_cjs.la}});
1
+ 'use strict';var chunkFJCBZ5BL_cjs=require('./chunk-FJCBZ5BL.cjs');require('./chunk-EUTHPVTG.cjs'),require('./chunk-VXEF32A5.cjs'),require('./chunk-KZ5HPHW6.cjs'),require('./chunk-CY47CFM5.cjs'),require('./chunk-BS554B6D.cjs'),require('./chunk-T2LVH6D3.cjs'),require('./chunk-UAOJHPQ4.cjs'),require('./chunk-MIUELYVA.cjs'),require('./chunk-7VQ7YLW3.cjs');Object.defineProperty(exports,"CHROME_GROUPS",{enumerable:true,get:function(){return chunkFJCBZ5BL_cjs.sa}});Object.defineProperty(exports,"CHROME_MENUS",{enumerable:true,get:function(){return chunkFJCBZ5BL_cjs.wa}});Object.defineProperty(exports,"WORD_DEFAULT_FONT",{enumerable:true,get:function(){return chunkFJCBZ5BL_cjs.e}});Object.defineProperty(exports,"blankDocumentBytes",{enumerable:true,get:function(){return chunkFJCBZ5BL_cjs.g}});Object.defineProperty(exports,"chromeMenuSlots",{enumerable:true,get:function(){return chunkFJCBZ5BL_cjs.xa}});Object.defineProperty(exports,"commandForSlot",{enumerable:true,get:function(){return chunkFJCBZ5BL_cjs.ha}});Object.defineProperty(exports,"commandForSlotValue",{enumerable:true,get:function(){return chunkFJCBZ5BL_cjs.ja}});Object.defineProperty(exports,"composeFontConfiguration",{enumerable:true,get:function(){return chunkFJCBZ5BL_cjs.f}});Object.defineProperty(exports,"createDocxEditor",{enumerable:true,get:function(){return chunkFJCBZ5BL_cjs.Ia}});Object.defineProperty(exports,"createFontSource",{enumerable:true,get:function(){return chunkFJCBZ5BL_cjs.i}});Object.defineProperty(exports,"loadFonts",{enumerable:true,get:function(){return chunkFJCBZ5BL_cjs.h}});Object.defineProperty(exports,"runToolbarCommand",{enumerable:true,get:function(){return chunkFJCBZ5BL_cjs.oa}});Object.defineProperty(exports,"toolbarCommandState",{enumerable:true,get:function(){return chunkFJCBZ5BL_cjs.la}});
package/dist/index.d.cts CHANGED
@@ -1,22 +1,22 @@
1
- export { A as AuthoredNoteNumbering, C as CanResult, p as DocumentChange, q as DocumentEditingMode, r as DocumentHandle, D as DocumentSource, l as Editor, a as EditorCommand, t as EditorCommandShape, u as EditorCommands, w as EditorError, x as EditorEvents, E as EditorFontError, y as EditorFontErrorCode, z as EditorHeaderFooterCommands, B as EditorNoteCommands, G as EditorPosition, H as EditorQueries, J as EditorQuery, K as EditorQueryResults, L as EditorScope, M as EditorSelection, N as EditorSnapshot, F as FontConfiguration, k as FontFaceRequest, i as FontSource, j as FontSourceSubstitution, O as FurnitureVariant, P as HeaderFooterSlotArgs, Q as HeaderFooterState, R as HyperlinkInfo, I as ImageContext, b as ImageCropPercent, U as InteractionAffinity, W as InteractionOutcome, X as InteractionOutcomeCode, Y as NoteKind, Z as NotePropertiesSide, _ as NotePropertiesState, $ as PageSetup, a0 as ResolvedNoteNumbering, a1 as ReviewActivationOptions, a2 as ReviewCommentPlacement, a3 as ReviewCustomPlacement, a4 as ReviewItemPlacement, a5 as ReviewItemPlacementBase, a6 as ReviewItemQuery, a7 as ReviewRevisionPlacement, S as SelectedImageState, a8 as SemanticIdentity, a9 as SemanticTarget, T as TableBorderEdgeTarget, m as TableBorderSpec, n as TableBorderStyle, aa as TableBorderTarget, ab as TableCellVerticalAlignment, ac as TableColumnDividerResizeTarget, ad as TableColumnOccurrenceTarget, o as TableContext, ae as TableRightEdgeResizeTarget, af as TableRowOccurrenceTarget, ag as TextMatch, V as ViewScope } from './editor-BGBZn9c9.cjs';
1
+ export { A as AuthoredNoteNumbering, C as CanResult, p as DocumentChange, q as DocumentEditingMode, r as DocumentHandle, D as DocumentSource, l as Editor, a as EditorCommand, t as EditorCommandShape, u as EditorCommands, w as EditorError, x as EditorEvents, E as EditorFontError, y as EditorFontErrorCode, z as EditorHeaderFooterCommands, B as EditorNoteCommands, G as EditorPosition, H as EditorQueries, J as EditorQuery, K as EditorQueryResults, L as EditorScope, M as EditorSelection, N as EditorSnapshot, F as FontConfiguration, k as FontFaceRequest, i as FontSource, j as FontSourceSubstitution, O as FurnitureVariant, P as HeaderFooterSlotArgs, Q as HeaderFooterState, R as HyperlinkInfo, I as ImageContext, b 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, m as TableBorderSpec, n as TableBorderStyle, ab as TableBorderTarget, ac as TableCellVerticalAlignment, ad as TableColumnDividerResizeTarget, ae as TableColumnOccurrenceTarget, o as TableContext, af as TableRightEdgeResizeTarget, ag as TableRowOccurrenceTarget, ah as TextMatch, V as ViewScope, ai as ZoomFitTarget, Z as ZoomMode } from './editor-25RmHnxu.cjs';
2
2
  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-UOXlRUqQ.cjs';
3
3
  export { I as ImageResourceState, P as PreservedImageMime, R as RenderableImageMime, S as SupportedImageMime, V as ValidatedImageBytesHandle, a as VectorImageMime } from './image-resources-DwpNnTg3.cjs';
4
4
  export { R as RevisionDisplayMode } from './revision-projection-72ZApe-g.cjs';
5
5
  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-support-rsyGP5-9.cjs';
6
- export { S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-DqcEonqD.cjs';
7
- 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, r as FontConfigurationBase, s as FontConfigurationFragment, t as FontLoadFailure, u as FontLoadFailureReason, v as FontMeasurementState, w as FontResolutionRequest, x as FontResolver, y as FontUrlSource, H as HyperlinkActivation, z as HyperlinkChromeHandlers, N as LoadFontsRequest, Q as LoadFontsResult, Y as SurfaceHyperlink, ab as ToolbarCommandState, ac as WORD_DEFAULT_FONT, ae as blankDocumentBytes, ai as chromeMenuSlots, al as commandForSlot, am as commandForSlotValue, ao as composeFontConfiguration, as as createDocxEditor, at as createFontSource, aF as loadFonts, aN as runToolbarCommand, aW as toolbarCommandState } from './index-DptRpcqa.cjs';
6
+ export { S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-B4HrJFQ2.cjs';
7
+ 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, r as FontConfigurationBase, s as FontConfigurationFragment, t as FontLoadFailure, u as FontLoadFailureReason, v as FontMeasurementState, w as FontResolutionRequest, x as FontResolver, y as FontUrlSource, H as HyperlinkActivation, z as HyperlinkChromeHandlers, N as LoadFontsRequest, Q as LoadFontsResult, Y as SurfaceHyperlink, ab as ToolbarCommandState, ac as WORD_DEFAULT_FONT, ae as blankDocumentBytes, ai as chromeMenuSlots, al as commandForSlot, am as commandForSlotValue, ao as composeFontConfiguration, as as createDocxEditor, at as createFontSource, aF as loadFonts, aN as runToolbarCommand, aW as toolbarCommandState } from './index-CiEakUbq.cjs';
8
8
  export { Block, ColorValue, ContainerRef, ContentControl, ContentControlFilter, ContentControlType, DocAnchor, DocAnchorRange, DocComment, DocLocation, DocRange, DocTarget, DocumentBody, DocxDocument, DocxDocumentJSON, ExecErrorCode, ExecResult, Extent, FontDefinition, HeaderFooterSet, IndentFormatting, NumberingRef, PageMargins, Paragraph, Point, Rect, Revision, RevisionType, Run, RunFormatting, Section, SectionProperties, StyleDefinition, StyleDefinitions, Table, TableCell, TableRow, Theme, ThemeColorScheme, Unsubscribe, Watermark } from './contracts/types.cjs';
9
9
  export { ApplyResult, ContentControlSummary, DocEdit, DocEdits, DocQueries, DocQuery, DocQueryResults, ParagraphSummary } from './contracts/document.cjs';
10
10
  export { CollectReviewItems, EditorModule, ReviewModuleContribution } from './contracts/modules.cjs';
11
11
  import './ooxml-tree-BU0e3DVi.cjs';
12
12
  import './ooxml-package-CR5us6ad.cjs';
13
- import './semantic-records-COVFW5aS.cjs';
13
+ import './semantic-records-DC6V1U3T.cjs';
14
14
  import './review-reads-qW0jvdF1.cjs';
15
15
  import './custom-node-writes-YqISlSRl.cjs';
16
16
  import './hf-references-CgEOSw3i.cjs';
17
17
  import './note-nodes-C6DLxlvj.cjs';
18
18
  import './tree-store-B1lEkdXc.cjs';
19
- import './semantic-cell-selection-DwLB71fF.cjs';
20
- import './semantic-paint-drawings-x8g44lD_.cjs';
19
+ import './semantic-cell-selection-CI3loBKq.cjs';
20
+ import './semantic-paint-DdGGra4m.cjs';
21
21
  import './tree-session-Cow6LjPn.cjs';
22
22
  import 'prosemirror-model';
package/dist/index.d.ts CHANGED
@@ -1,22 +1,22 @@
1
- export { A as AuthoredNoteNumbering, C as CanResult, p as DocumentChange, q as DocumentEditingMode, r as DocumentHandle, D as DocumentSource, l as Editor, a as EditorCommand, t as EditorCommandShape, u as EditorCommands, w as EditorError, x as EditorEvents, E as EditorFontError, y as EditorFontErrorCode, z as EditorHeaderFooterCommands, B as EditorNoteCommands, G as EditorPosition, H as EditorQueries, J as EditorQuery, K as EditorQueryResults, L as EditorScope, M as EditorSelection, N as EditorSnapshot, F as FontConfiguration, k as FontFaceRequest, i as FontSource, j as FontSourceSubstitution, O as FurnitureVariant, P as HeaderFooterSlotArgs, Q as HeaderFooterState, R as HyperlinkInfo, I as ImageContext, b as ImageCropPercent, U as InteractionAffinity, W as InteractionOutcome, X as InteractionOutcomeCode, Y as NoteKind, Z as NotePropertiesSide, _ as NotePropertiesState, $ as PageSetup, a0 as ResolvedNoteNumbering, a1 as ReviewActivationOptions, a2 as ReviewCommentPlacement, a3 as ReviewCustomPlacement, a4 as ReviewItemPlacement, a5 as ReviewItemPlacementBase, a6 as ReviewItemQuery, a7 as ReviewRevisionPlacement, S as SelectedImageState, a8 as SemanticIdentity, a9 as SemanticTarget, T as TableBorderEdgeTarget, m as TableBorderSpec, n as TableBorderStyle, aa as TableBorderTarget, ab as TableCellVerticalAlignment, ac as TableColumnDividerResizeTarget, ad as TableColumnOccurrenceTarget, o as TableContext, ae as TableRightEdgeResizeTarget, af as TableRowOccurrenceTarget, ag as TextMatch, V as ViewScope } from './editor-DQRRxKMG.js';
1
+ export { A as AuthoredNoteNumbering, C as CanResult, p as DocumentChange, q as DocumentEditingMode, r as DocumentHandle, D as DocumentSource, l as Editor, a as EditorCommand, t as EditorCommandShape, u as EditorCommands, w as EditorError, x as EditorEvents, E as EditorFontError, y as EditorFontErrorCode, z as EditorHeaderFooterCommands, B as EditorNoteCommands, G as EditorPosition, H as EditorQueries, J as EditorQuery, K as EditorQueryResults, L as EditorScope, M as EditorSelection, N as EditorSnapshot, F as FontConfiguration, k as FontFaceRequest, i as FontSource, j as FontSourceSubstitution, O as FurnitureVariant, P as HeaderFooterSlotArgs, Q as HeaderFooterState, R as HyperlinkInfo, I as ImageContext, b 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, m as TableBorderSpec, n as TableBorderStyle, ab as TableBorderTarget, ac as TableCellVerticalAlignment, ad as TableColumnDividerResizeTarget, ae as TableColumnOccurrenceTarget, o as TableContext, af as TableRightEdgeResizeTarget, ag as TableRowOccurrenceTarget, ah as TextMatch, V as ViewScope, ai as ZoomFitTarget, Z as ZoomMode } from './editor-C8oaTHr3.js';
2
2
  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-DWLCllG7.js';
3
3
  export { I as ImageResourceState, P as PreservedImageMime, R as RenderableImageMime, S as SupportedImageMime, V as ValidatedImageBytesHandle, a as VectorImageMime } from './image-resources-C_YnqPhn.js';
4
4
  export { R as RevisionDisplayMode } from './revision-projection-DHAkcD_L.js';
5
5
  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-support-B9ykYpoZ.js';
6
- export { S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-CXH2wFqi.js';
7
- 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, r as FontConfigurationBase, s as FontConfigurationFragment, t as FontLoadFailure, u as FontLoadFailureReason, v as FontMeasurementState, w as FontResolutionRequest, x as FontResolver, y as FontUrlSource, H as HyperlinkActivation, z as HyperlinkChromeHandlers, N as LoadFontsRequest, Q as LoadFontsResult, Y as SurfaceHyperlink, ab as ToolbarCommandState, ac as WORD_DEFAULT_FONT, ae as blankDocumentBytes, ai as chromeMenuSlots, al as commandForSlot, am as commandForSlotValue, ao as composeFontConfiguration, as as createDocxEditor, at as createFontSource, aF as loadFonts, aN as runToolbarCommand, aW as toolbarCommandState } from './index-BzqHsd4Y.js';
6
+ export { S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-unGpRNCk.js';
7
+ 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, r as FontConfigurationBase, s as FontConfigurationFragment, t as FontLoadFailure, u as FontLoadFailureReason, v as FontMeasurementState, w as FontResolutionRequest, x as FontResolver, y as FontUrlSource, H as HyperlinkActivation, z as HyperlinkChromeHandlers, N as LoadFontsRequest, Q as LoadFontsResult, Y as SurfaceHyperlink, ab as ToolbarCommandState, ac as WORD_DEFAULT_FONT, ae as blankDocumentBytes, ai as chromeMenuSlots, al as commandForSlot, am as commandForSlotValue, ao as composeFontConfiguration, as as createDocxEditor, at as createFontSource, aF as loadFonts, aN as runToolbarCommand, aW as toolbarCommandState } from './index-gvw4VGE9.js';
8
8
  export { Block, ColorValue, ContainerRef, ContentControl, ContentControlFilter, ContentControlType, DocAnchor, DocAnchorRange, DocComment, DocLocation, DocRange, DocTarget, DocumentBody, DocxDocument, DocxDocumentJSON, ExecErrorCode, ExecResult, Extent, FontDefinition, HeaderFooterSet, IndentFormatting, NumberingRef, PageMargins, Paragraph, Point, Rect, Revision, RevisionType, Run, RunFormatting, Section, SectionProperties, StyleDefinition, StyleDefinitions, Table, TableCell, TableRow, Theme, ThemeColorScheme, Unsubscribe, Watermark } from './contracts/types.js';
9
9
  export { ApplyResult, ContentControlSummary, DocEdit, DocEdits, DocQueries, DocQuery, DocQueryResults, ParagraphSummary } from './contracts/document.js';
10
10
  export { CollectReviewItems, EditorModule, ReviewModuleContribution } from './contracts/modules.js';
11
11
  import './ooxml-tree-BU0e3DVi.js';
12
12
  import './ooxml-package-D_CtywTW.js';
13
- import './semantic-records-zTC0_1zi.js';
13
+ import './semantic-records-BC4bIKKL.js';
14
14
  import './review-reads-CsoXSvUg.js';
15
15
  import './custom-node-writes-ttKuYd0M.js';
16
16
  import './hf-references-BdjsQNE_.js';
17
17
  import './note-nodes-BPSTVDMr.js';
18
18
  import './tree-store-BscFPB7x.js';
19
- import './semantic-cell-selection-D_8RbPII.js';
20
- import './semantic-paint-drawings-B5Wk2so5.js';
19
+ import './semantic-cell-selection-Cx8P64j2.js';
20
+ import './semantic-paint-BBNaqr1s.js';
21
21
  import './tree-session-CMA7n4Rm.js';
22
22
  import 'prosemirror-model';
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export{sa as CHROME_GROUPS,wa as CHROME_MENUS,e as WORD_DEFAULT_FONT,g as blankDocumentBytes,xa as chromeMenuSlots,ha as commandForSlot,ja as commandForSlotValue,f as composeFontConfiguration,Ca as createDocxEditor,i as createFontSource,h as loadFonts,oa as runToolbarCommand,la as toolbarCommandState}from'./chunk-3HEU7MHP.js';import'./chunk-QRAUDDVY.js';import'./chunk-STCITBJK.js';import'./chunk-6WIIHJFY.js';import'./chunk-TBBXCC7D.js';import'./chunk-4WWEDTTE.js';import'./chunk-2DTQDAN7.js';import'./chunk-Y7TA7TPF.js';import'./chunk-REZUWYB7.js';import'./chunk-GQQOL4PV.js';
1
+ export{sa as CHROME_GROUPS,wa as CHROME_MENUS,e as WORD_DEFAULT_FONT,g as blankDocumentBytes,xa as chromeMenuSlots,ha as commandForSlot,ja as commandForSlotValue,f as composeFontConfiguration,Ia as createDocxEditor,i as createFontSource,h as loadFonts,oa as runToolbarCommand,la as toolbarCommandState}from'./chunk-QVGTZUEV.js';import'./chunk-NCGKMEKU.js';import'./chunk-C24AINST.js';import'./chunk-PFTVNFMI.js';import'./chunk-LVZSKP2F.js';import'./chunk-4WWEDTTE.js';import'./chunk-MO7GAUO7.js';import'./chunk-5OSFUHGF.js';import'./chunk-GRGRIDHF.js';import'./chunk-GQQOL4PV.js';