@docx-editor.dev/core 2.1.3 → 2.2.1

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 (78) 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-TBBXCC7D.js → chunk-2QPRJAHK.js} +3 -3
  7. package/dist/chunk-3JENXX7Q.cjs +2 -0
  8. package/dist/chunk-5WEA7SIG.cjs +12 -0
  9. package/dist/chunk-73X5I53C.cjs +2 -0
  10. package/dist/chunk-7D2CP2J7.js +2 -0
  11. package/dist/{chunk-O2WQY7IT.cjs → chunk-C3YJR64Q.cjs} +5 -5
  12. package/dist/chunk-EWRKYYUA.js +12 -0
  13. package/dist/{chunk-PC76F2HR.cjs → chunk-GLHPDILJ.cjs} +1 -1
  14. package/dist/{chunk-REZUWYB7.js → chunk-GRGRIDHF.js} +1 -1
  15. package/dist/{chunk-HBL3NNH5.cjs → chunk-MIUELYVA.cjs} +1 -1
  16. package/dist/chunk-PD4BVZW5.js +12 -0
  17. package/dist/chunk-PEIEVTWR.js +2 -0
  18. package/dist/chunk-QIFQTG57.cjs +10 -0
  19. package/dist/chunk-RFO2O56I.js +10 -0
  20. package/dist/chunk-SAUKKJWZ.cjs +12 -0
  21. package/dist/chunk-WKZR6YPE.js +1 -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 +52 -12
  33. package/dist/editor.d.ts +52 -12
  34. package/dist/editor.js +1 -1
  35. package/dist/{index-BzqHsd4Y.d.ts → index-BWiuzoVN.d.ts} +33 -6
  36. package/dist/{index-DptRpcqa.d.cts → index-Beyo2mTa.d.cts} +33 -6
  37. package/dist/index.cjs +1 -1
  38. package/dist/index.d.cts +7 -7
  39. package/dist/index.d.ts +7 -7
  40. package/dist/index.js +1 -1
  41. package/dist/layout.cjs +1 -1
  42. package/dist/layout.d.cts +97 -63
  43. package/dist/layout.d.ts +97 -63
  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/{review-reads-CsoXSvUg.d.ts → review-reads-CMAqdMnE.d.ts} +1 -1
  50. package/dist/{review-reads-qW0jvdF1.d.cts → review-reads-D3r3tnoo.d.cts} +1 -1
  51. package/dist/{semantic-cell-selection-DwLB71fF.d.cts → semantic-cell-selection-CI3loBKq.d.cts} +2 -2
  52. package/dist/{semantic-cell-selection-D_8RbPII.d.ts → semantic-cell-selection-Cx8P64j2.d.ts} +2 -2
  53. package/dist/{semantic-interaction-DqcEonqD.d.cts → semantic-interaction-B4HrJFQ2.d.cts} +1 -1
  54. package/dist/{semantic-interaction-CXH2wFqi.d.ts → semantic-interaction-unGpRNCk.d.ts} +1 -1
  55. package/dist/semantic-paint-BBNaqr1s.d.ts +133 -0
  56. package/dist/semantic-paint-DdGGra4m.d.cts +133 -0
  57. package/dist/{semantic-records-zTC0_1zi.d.ts → semantic-records-BC4bIKKL.d.ts} +28 -32
  58. package/dist/{semantic-records-COVFW5aS.d.cts → semantic-records-DC6V1U3T.d.cts} +28 -32
  59. package/dist/{shaped-measurer-CZXL-a6v.d.ts → shaped-measurer-ChSWkuAT.d.ts} +1 -1
  60. package/dist/{shaped-measurer-AFnFxoot.d.cts → shaped-measurer-SIqZp-Ty.d.cts} +1 -1
  61. package/dist/store.cjs +1 -1
  62. package/dist/store.d.cts +36 -15
  63. package/dist/store.d.ts +36 -15
  64. package/dist/store.js +1 -1
  65. package/package.json +2 -2
  66. package/dist/chunk-2DTQDAN7.js +0 -2
  67. package/dist/chunk-3HEU7MHP.js +0 -12
  68. package/dist/chunk-3JKQE4QJ.cjs +0 -2
  69. package/dist/chunk-6WIIHJFY.js +0 -1
  70. package/dist/chunk-BZK64YU3.cjs +0 -10
  71. package/dist/chunk-EDLUMMQN.cjs +0 -12
  72. package/dist/chunk-JQFDLZXQ.cjs +0 -2
  73. package/dist/chunk-QRAUDDVY.js +0 -2
  74. package/dist/chunk-STCITBJK.js +0 -12
  75. package/dist/chunk-TSXT537P.cjs +0 -12
  76. package/dist/chunk-Y7TA7TPF.js +0 -10
  77. package/dist/semantic-paint-drawings-B5Wk2so5.d.ts +0 -21
  78. package/dist/semantic-paint-drawings-x8g44lD_.d.cts +0 -21
package/dist/editor.css CHANGED
@@ -8,7 +8,7 @@
8
8
  --tw-scale-y: 1;
9
9
  }
10
10
 
11
- .docx-editor :is(.shadow-lg), .docx-editor :is(.shadow-sm) {
11
+ .docx-editor :is(.shadow), .docx-editor :is(.shadow-lg), .docx-editor :is(.shadow-sm) {
12
12
  --tw-ring-offset-shadow: 0 0 #0000;
13
13
  --tw-ring-shadow: 0 0 #0000;
14
14
  --tw-shadow: 0 0 #0000;
@@ -336,6 +336,10 @@
336
336
  flex-shrink: 0;
337
337
  }
338
338
 
339
+ .docx-editor .grow {
340
+ flex-grow: 1;
341
+ }
342
+
339
343
  .docx-editor .transform {
340
344
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
341
345
  }
@@ -711,6 +715,12 @@
711
715
  opacity: 0.5;
712
716
  }
713
717
 
718
+ .docx-editor .shadow {
719
+ --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
720
+ --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
721
+ box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
722
+ }
723
+
714
724
  .docx-editor .shadow-lg {
715
725
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
716
726
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
@@ -787,6 +797,10 @@
787
797
  }
788
798
  }
789
799
 
800
+ .docx-editor .zoom-out {
801
+ --tw-exit-scale: 0;
802
+ }
803
+
790
804
  .docx-editor .duration-150 {
791
805
  animation-duration: 150ms;
792
806
  }
@@ -913,6 +927,11 @@
913
927
  clearly deeper colour. Keep the two pairs in step — this is the faint end of that ramp. */
914
928
  --doc-revision-insertion-wash: rgba(46, 125, 50, 0.05);
915
929
  --doc-revision-deletion-wash: rgba(198, 40, 40, 0.05);
930
+ /* The grey block behind a FIELD's result — Word's field shading. It says the text was
931
+ computed rather than typed, which is the whole message, so it is a flat neutral and not
932
+ part of the revision ramp: a field is not a pending decision. Kept light enough that a
933
+ contents page dense with them still reads as text. Never printed. */
934
+ --doc-field-shading: rgba(0, 0, 0, 0.09);
916
935
  /* A tracked FORMAT change: the words are unchanged, so it takes neither the insertion nor
917
936
  the deletion colour — grey says "the appearance is the decision". The wash plus a faint
918
937
  dotted rule make the range findable (it is the hover balloon's target); both are quiet
@@ -1246,10 +1265,19 @@
1246
1265
  scrollbar-color: var(--doc-scrollbar-thumb) var(--doc-scrollbar-track);
1247
1266
  }
1248
1267
 
1249
- .docx-editor .docx-editor__scroll-container {
1268
+ /* Descendant AND self: `DocxEditor.Viewport` puts `docx-editor` on the scroll container
1269
+ itself when no ancestor is scoped (the Root + Viewport composition), and the descendant
1270
+ combinator alone misses that element. */
1271
+ .docx-editor .docx-editor__scroll-container,
1272
+ .docx-editor.docx-editor__scroll-container {
1250
1273
  /* `both-edges` reserves a symmetric gutter so the centered page stays centered
1251
1274
  on classic-scrollbar platforms (single-edge nudges it ~7px left). Matches
1252
- the Vue viewport (DocxEditor.css `__pages-viewport`). */
1275
+ the Vue viewport (DocxEditor.css `__pages-viewport`).
1276
+
1277
+ LOAD-BEARING for fit-to-viewport zoom as well as centring: the fit measures this
1278
+ element's content box, and without a reserved gutter, fitting a document down far
1279
+ enough to remove the vertical scrollbar widens that box, which fits larger, which
1280
+ brings the scrollbar back. */
1253
1281
  scrollbar-gutter: stable both-edges;
1254
1282
  }
1255
1283
 
@@ -2840,6 +2868,32 @@ a.docx-hyperlink:focus-visible {
2840
2868
  background-color: var(--doc-revision-deletion-wash);
2841
2869
  }
2842
2870
 
2871
+ /* FIELD SHADING — the grey block Word draws behind computed text (a page number, a
2872
+ cross-reference, the blank in a form). It marks where text came from, not what it says.
2873
+
2874
+ A stylesheet rule rather than painter inline style, for the same reason the format-change
2875
+ marking is: a revision wash arrives as inline style and so WINS here, which is the ordering
2876
+ we want. A deleted field must read as deleted first — the strike and its colour are the
2877
+ pending decision; the shading is only provenance. A host that wants no shading at all
2878
+ overrides one selector instead of passing an option through every call site.
2879
+
2880
+ `--shaded` is the resolved "draw it now" state. Legacy form fields carry it from paint
2881
+ (Word shades them on sight); an ordinary field gets it either because the host asked for
2882
+ `always` or because the caret is inside it, which the surface toggles as `--active`. */
2883
+ .docx-field-atom--shaded,
2884
+ .docx-field-atom--active {
2885
+ background-color: var(--doc-field-shading);
2886
+ }
2887
+
2888
+ /* Field shading NEVER prints — Word does not print it either. A printed form has no blanks
2889
+ left to find, and a page number on paper is just a page number. */
2890
+ @media print {
2891
+ .docx-field-atom--shaded,
2892
+ .docx-field-atom--active {
2893
+ background-color: transparent;
2894
+ }
2895
+ }
2896
+
2843
2897
  /* A tracked FORMAT change: grey, because nothing was added or removed — the appearance
2844
2898
  itself is the pending decision. A stylesheet rule rather than painter inline style on
2845
2899
  purpose: an authored underline or strike arrives as inline style and therefore WINS over
@@ -4186,10 +4240,9 @@ a.docx-hyperlink:focus-visible {
4186
4240
  margin-inline-start: auto;
4187
4241
  }
4188
4242
 
4189
- /* The panel SCROLLS when it is taller than the room under the bar. That does clip a
4190
- * popup opened from a control inside it (a font list, a swatch grid) — the same
4191
- * trade every scrolling menu makes — and the alternative, a panel that runs off the
4192
- * bottom of a short window, loses the rows entirely. */
4243
+ /* The panel scrolls when it is taller than the room under the bar. A nested menu
4244
+ * temporarily lifts that clipping so its options remain reachable; closing it restores
4245
+ * the bounded panel. */
4193
4246
  .docx-toolbar__more-panel {
4194
4247
  position: absolute;
4195
4248
  top: calc(100% + 6px);
@@ -4208,6 +4261,13 @@ a.docx-hyperlink:focus-visible {
4208
4261
  box-shadow: var(--doc-shadow-lg);
4209
4262
  }
4210
4263
 
4264
+ /* Zoom's level picker is a popover, not panel content. A scroll container would otherwise
4265
+ * cut it off when Zoom is the last (or only) More row. `:has()` is supported by every
4266
+ * browser we support, and scopes the escape hatch to the short interval the picker exists. */
4267
+ .docx-toolbar__more-panel:has(.docx-toolbar__zoom-menu) {
4268
+ overflow-y: visible;
4269
+ }
4270
+
4211
4271
  .docx-toolbar__more-section + .docx-toolbar__more-section {
4212
4272
  margin-top: 4px;
4213
4273
  padding-top: 4px;
@@ -4673,7 +4733,8 @@ a.docx-hyperlink:focus-visible {
4673
4733
  left: 0;
4674
4734
  z-index: var(--doc-z-overlay);
4675
4735
  margin-top: 4px;
4676
- min-width: 96px;
4736
+ /* Wide enough for "Automatic" above the percentages, which are narrower. */
4737
+ min-width: 132px;
4677
4738
  }
4678
4739
 
4679
4740
  /* The merged alignment dropdown: current-alignment icon + caret; the popup is
@@ -5629,12 +5690,25 @@ a.docx-hyperlink:focus-visible {
5629
5690
 
5630
5691
  /* The page column moves ONLY by what the adapter computed, and only while a pane
5631
5692
  * is open. Absent (no pane mounted, pane closed, gutter wide enough) the custom
5632
- * property falls back to 0 and this rule is inert. */
5633
- .docx-editor .docx-editor__scroll-container {
5693
+ * property falls back to 0 and this rule is inert.
5694
+ *
5695
+ * Descendant AND self: `DocxEditor.Viewport` puts `docx-editor` on the scroll
5696
+ * container itself when no ancestor is scoped (Root + Viewport composition /
5697
+ * `chrome={false}`), so the self-scoped selector is load-bearing — same pattern
5698
+ * as scrollbar-gutter above. */
5699
+ .docx-editor .docx-editor__scroll-container,
5700
+ .docx-editor.docx-editor__scroll-container {
5634
5701
  padding-inline-start: var(--docx-nav-shift, 0px);
5635
5702
  transition: padding-inline-start 0.2s ease;
5636
5703
  }
5637
5704
 
5705
+ /* Under a fit the page width follows the padded box. Animating the padding would
5706
+ * publish intermediate widths and the fit would chase them every frame. Jump. */
5707
+ .docx-editor .docx-editor__scroll-container[data-zoom-fit],
5708
+ .docx-editor.docx-editor__scroll-container[data-zoom-fit] {
5709
+ transition: none;
5710
+ }
5711
+
5638
5712
  /* Positioning frame: the gutter strip to the left of the page. `pointer-events`
5639
5713
  * is off on the frame and back on for its controls, so the strip never eats a
5640
5714
  * click meant for the document behind it. */
@@ -6512,7 +6586,8 @@ a.docx-hyperlink:focus-visible {
6512
6586
 
6513
6587
  /* Reduced motion: the page still moves when it has to, it just does not glide. */
6514
6588
  @media (prefers-reduced-motion: reduce) {
6515
- .docx-editor .docx-editor__scroll-container {
6589
+ .docx-editor .docx-editor__scroll-container,
6590
+ .docx-editor.docx-editor__scroll-container {
6516
6591
  transition-duration: 0s;
6517
6592
  }
6518
6593
  }
package/dist/editor.d.cts CHANGED
@@ -1,30 +1,30 @@
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-Beyo2mTa.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-Beyo2mTa.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';
21
- import './review-reads-qW0jvdF1.cjs';
22
+ import './review-reads-D3r3tnoo.cjs';
22
23
  import './ooxml-package-CR5us6ad.cjs';
23
24
  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,30 +1,30 @@
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-BWiuzoVN.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-BWiuzoVN.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';
21
- import './review-reads-CsoXSvUg.js';
22
+ import './review-reads-CMAqdMnE.js';
22
23
  import './ooxml-package-D_CtywTW.js';
23
24
  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-PD4BVZW5.js';import'./chunk-7D2CP2J7.js';import'./chunk-EWRKYYUA.js';import'./chunk-WKZR6YPE.js';import'./chunk-2QPRJAHK.js';import'./chunk-4WWEDTTE.js';import'./chunk-PEIEVTWR.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-RFO2O56I.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-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';
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';
6
+ import { a as SemanticSelection, S as SemanticPosition, N as NavigationCommand } from './semantic-interaction-unGpRNCk.js';
7
+ import { R as ResolvedFootnoteProperties, a as ResolvedEndnoteProperties, A as AuthoredNoteProperties, l as ReviewRevisionKind } from './review-reads-CMAqdMnE.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
@@ -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';
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';
6
+ import { a as SemanticSelection, S as SemanticPosition, N as NavigationCommand } from './semantic-interaction-B4HrJFQ2.cjs';
7
+ import { R as ResolvedFootnoteProperties, a as ResolvedEndnoteProperties, A as AuthoredNoteProperties, l as ReviewRevisionKind } from './review-reads-D3r3tnoo.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
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 chunk5WEA7SIG_cjs=require('./chunk-5WEA7SIG.cjs');require('./chunk-3JENXX7Q.cjs'),require('./chunk-SAUKKJWZ.cjs'),require('./chunk-GLHPDILJ.cjs'),require('./chunk-C3YJR64Q.cjs'),require('./chunk-BS554B6D.cjs'),require('./chunk-73X5I53C.cjs'),require('./chunk-QIFQTG57.cjs'),require('./chunk-MIUELYVA.cjs'),require('./chunk-7VQ7YLW3.cjs');Object.defineProperty(exports,"CHROME_GROUPS",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.sa}});Object.defineProperty(exports,"CHROME_MENUS",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.wa}});Object.defineProperty(exports,"WORD_DEFAULT_FONT",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.e}});Object.defineProperty(exports,"blankDocumentBytes",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.g}});Object.defineProperty(exports,"chromeMenuSlots",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.xa}});Object.defineProperty(exports,"commandForSlot",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.ha}});Object.defineProperty(exports,"commandForSlotValue",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.ja}});Object.defineProperty(exports,"composeFontConfiguration",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.f}});Object.defineProperty(exports,"createDocxEditor",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.Ia}});Object.defineProperty(exports,"createFontSource",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.i}});Object.defineProperty(exports,"loadFonts",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.h}});Object.defineProperty(exports,"runToolbarCommand",{enumerable:true,get:function(){return chunk5WEA7SIG_cjs.oa}});Object.defineProperty(exports,"toolbarCommandState",{enumerable:true,get:function(){return chunk5WEA7SIG_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-Beyo2mTa.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';
14
- import './review-reads-qW0jvdF1.cjs';
13
+ import './semantic-records-DC6V1U3T.cjs';
14
+ import './review-reads-D3r3tnoo.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';