@docx-editor.dev/core 2.0.1 → 2.1.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 (107) hide show
  1. package/README.md +32 -33
  2. package/dist/automation.cjs +1 -1
  3. package/dist/automation.d.cts +2 -2
  4. package/dist/automation.d.ts +2 -2
  5. package/dist/automation.js +1 -1
  6. package/dist/binding.cjs +1 -1
  7. package/dist/binding.d.cts +14 -8
  8. package/dist/binding.d.ts +14 -8
  9. package/dist/binding.js +1 -1
  10. package/dist/chunk-2DTQDAN7.js +2 -0
  11. package/dist/chunk-3JKQE4QJ.cjs +2 -0
  12. package/dist/chunk-4WWEDTTE.js +2 -0
  13. package/dist/chunk-6WIIHJFY.js +1 -0
  14. package/dist/chunk-7VQ7YLW3.cjs +1 -0
  15. package/dist/chunk-BS554B6D.cjs +2 -0
  16. package/dist/chunk-BZK64YU3.cjs +10 -0
  17. package/dist/chunk-CZFUMACF.cjs +12 -0
  18. package/dist/chunk-GQQOL4PV.js +1 -0
  19. package/dist/chunk-JQFDLZXQ.cjs +2 -0
  20. package/dist/chunk-O2WQY7IT.cjs +5 -0
  21. package/dist/chunk-PC76F2HR.cjs +1 -0
  22. package/dist/chunk-QRAUDDVY.js +2 -0
  23. package/dist/chunk-STCITBJK.js +12 -0
  24. package/dist/chunk-TBBXCC7D.js +5 -0
  25. package/dist/chunk-TSXT537P.cjs +12 -0
  26. package/dist/chunk-WOGYVM3W.js +12 -0
  27. package/dist/chunk-Y7TA7TPF.js +10 -0
  28. package/dist/contracts/editor.d.cts +6 -6
  29. package/dist/contracts/editor.d.ts +6 -6
  30. package/dist/contracts/interaction.d.cts +6 -6
  31. package/dist/contracts/interaction.d.ts +6 -6
  32. package/dist/contracts/modules.cjs +1 -1
  33. package/dist/contracts/modules.d.cts +30 -3
  34. package/dist/contracts/modules.d.ts +30 -3
  35. package/dist/contracts/modules.js +1 -1
  36. package/dist/{tree-package-store-DOKMtCnh.d.cts → custom-node-writes-YqISlSRl.d.cts} +181 -4
  37. package/dist/{tree-package-store-D5S7VKs5.d.ts → custom-node-writes-ttKuYd0M.d.ts} +181 -4
  38. package/dist/{editor-D0UDock4.d.cts → editor-B93PggnR.d.cts} +24 -5
  39. package/dist/{editor-C1QRi1v4.d.ts → editor-CFsSrxGR.d.ts} +24 -5
  40. package/dist/editor.cjs +1 -1
  41. package/dist/editor.css +1368 -279
  42. package/dist/editor.d.cts +19 -19
  43. package/dist/editor.d.ts +19 -19
  44. package/dist/editor.js +1 -1
  45. package/dist/{image-resources-BJnTpG66.d.ts → image-resources-C_YnqPhn.d.ts} +19 -11
  46. package/dist/{image-resources-BpIydXtU.d.cts → image-resources-DwpNnTg3.d.cts} +19 -11
  47. package/dist/{index-CrW-IxXt.d.cts → index-BjZelfWL.d.cts} +28 -11
  48. package/dist/{index-ZqBEOrTV.d.ts → index-DP1yJJ3R.d.ts} +28 -11
  49. package/dist/index.cjs +1 -1
  50. package/dist/index.d.cts +13 -13
  51. package/dist/index.d.ts +13 -13
  52. package/dist/index.js +1 -1
  53. package/dist/layout.cjs +1 -1
  54. package/dist/layout.d.cts +869 -819
  55. package/dist/layout.d.ts +869 -819
  56. package/dist/layout.js +1 -1
  57. package/dist/output.cjs +1 -1
  58. package/dist/output.d.cts +4 -4
  59. package/dist/output.d.ts +4 -4
  60. package/dist/output.js +1 -1
  61. package/dist/{protocol-oxHaWmt4.d.ts → protocol-BWVA3Q1p.d.ts} +56 -2
  62. package/dist/{protocol-CAkOBBGE.d.cts → protocol-FAz_nPm_.d.cts} +56 -2
  63. package/dist/review-reads-CsoXSvUg.d.ts +401 -0
  64. package/dist/review-reads-qW0jvdF1.d.cts +401 -0
  65. package/dist/{review-support-DS8DYX2a.d.cts → review-support-D64Wu236.d.cts} +37 -5
  66. package/dist/{review-support-Fy3vdIea.d.ts → review-support-nsLXC9jf.d.ts} +37 -5
  67. package/dist/{semantic-cell-selection-DsmHmLJ5.d.ts → semantic-cell-selection-D_8RbPII.d.ts} +2 -2
  68. package/dist/{semantic-cell-selection-CZjBSmMv.d.cts → semantic-cell-selection-DwLB71fF.d.cts} +2 -2
  69. package/dist/{semantic-interaction-Dy-dCUFF.d.ts → semantic-interaction-CXH2wFqi.d.ts} +1 -1
  70. package/dist/{semantic-interaction-D-Dszxrn.d.cts → semantic-interaction-DqcEonqD.d.cts} +1 -1
  71. package/dist/{semantic-paint-drawings-BA3z9jl8.d.ts → semantic-paint-drawings-B5Wk2so5.d.ts} +1 -1
  72. package/dist/{semantic-paint-drawings-D7qbB0E2.d.cts → semantic-paint-drawings-x8g44lD_.d.cts} +1 -1
  73. package/dist/{semantic-records-CJR3BvHs.d.cts → semantic-records-COVFW5aS.d.cts} +77 -4
  74. package/dist/{semantic-records-CWodBJsz.d.ts → semantic-records-zTC0_1zi.d.ts} +77 -4
  75. package/dist/{shaped-measurer-CNIT_svZ.d.cts → shaped-measurer-AFnFxoot.d.cts} +1 -1
  76. package/dist/{shaped-measurer-B-TAtcQU.d.ts → shaped-measurer-CZXL-a6v.d.ts} +1 -1
  77. package/dist/store.cjs +1 -1
  78. package/dist/store.d.cts +223 -317
  79. package/dist/store.d.ts +223 -317
  80. package/dist/store.js +1 -1
  81. package/dist/{tree-op-types-CwOeiaQ8.d.ts → tree-op-types-DWLCllG7.d.ts} +80 -25
  82. package/dist/{tree-op-types-DMiW6nIH.d.cts → tree-op-types-UOXlRUqQ.d.cts} +80 -25
  83. package/dist/{tree-session-CiUel5Kz.d.ts → tree-session-BtVFXsF6.d.ts} +45 -7
  84. package/dist/{tree-session-D47_imvR.d.cts → tree-session-DxIOHUOD.d.cts} +45 -7
  85. package/dist/{tree-store-CxifqwIv.d.cts → tree-store-B1lEkdXc.d.cts} +1 -1
  86. package/dist/{tree-store-hLtjeyWE.d.ts → tree-store-BscFPB7x.d.ts} +1 -1
  87. package/package.json +10 -5
  88. package/dist/chunk-5KSCB2OZ.js +0 -2
  89. package/dist/chunk-BSC44TIT.js +0 -5
  90. package/dist/chunk-DLPL5DAG.js +0 -12
  91. package/dist/chunk-DOEIARE2.js +0 -2
  92. package/dist/chunk-G7YCQBZE.cjs +0 -5
  93. package/dist/chunk-HR7K3W6A.js +0 -1
  94. package/dist/chunk-HVAV2JSN.js +0 -11
  95. package/dist/chunk-MYH2HCUJ.cjs +0 -2
  96. package/dist/chunk-NSM75TN6.cjs +0 -1
  97. package/dist/chunk-PHDVKUWZ.js +0 -1
  98. package/dist/chunk-QADYGK5L.cjs +0 -12
  99. package/dist/chunk-RNBHTPW7.js +0 -10
  100. package/dist/chunk-UD2ZXLFI.cjs +0 -2
  101. package/dist/chunk-VYAVK2AH.cjs +0 -1
  102. package/dist/chunk-YUK46A2N.cjs +0 -11
  103. package/dist/chunk-ZMIX42J7.cjs +0 -10
  104. package/dist/chunk-ZT55Q52J.cjs +0 -2
  105. package/dist/chunk-ZUALAR4M.js +0 -2
  106. package/dist/note-properties-CnmCoory.d.cts +0 -68
  107. package/dist/note-properties-m75hmP70.d.ts +0 -68
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-D0UDock4.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-D0UDock4.cjs';
3
- import { L as LayoutShapingOptions } from './shaped-measurer-CNIT_svZ.cjs';
4
- import { P as PaginatedSurfaceOptions, O as OpenPaginatedResult, a as PaginatedSurface, T as TableCommandPlan, D as DocxEditorInstance } from './index-CrW-IxXt.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-CrW-IxXt.cjs';
6
- import { A as AutomationCapabilities, a as AutomationHost } from './protocol-CAkOBBGE.cjs';
1
+ import { F as FontConfiguration, E as EditorFontError, a as EditorCommand, C as CanResult } from './editor-B93PggnR.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-B93PggnR.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-BjZelfWL.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-BjZelfWL.cjs';
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
- import { h as TreeDocColorValue, d as DrawingPositionInput } from './tree-op-types-DMiW6nIH.cjs';
10
- export { i as IMAGE_WRAP_TARGETS, b as ImageWrapTarget } from './tree-op-types-DMiW6nIH.cjs';
11
- import { f as DocumentThemeColorEntry } from './tree-session-D47_imvR.cjs';
12
- import { S as SemanticLayout } from './semantic-records-CJR3BvHs.cjs';
13
- export { T as TextMeasurer } from './semantic-records-CJR3BvHs.cjs';
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-BpIydXtU.cjs';
15
- export { S as SectionProperties } from './semantic-cell-selection-CZjBSmMv.cjs';
16
- export { R as ReviewModelInput } from './review-support-DS8DYX2a.cjs';
17
- export { N as NavigationCommand, S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-D-Dszxrn.cjs';
9
+ import { h as TreeDocColorValue, d as DrawingPositionInput } from './tree-op-types-UOXlRUqQ.cjs';
10
+ export { i as IMAGE_WRAP_TARGETS, b as ImageWrapTarget } from './tree-op-types-UOXlRUqQ.cjs';
11
+ import { f as DocumentThemeColorEntry } from './tree-session-DxIOHUOD.cjs';
12
+ import { S as SemanticLayout } from './semantic-records-COVFW5aS.cjs';
13
+ export { T as TextMeasurer } from './semantic-records-COVFW5aS.cjs';
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';
16
+ export { R as ReviewModelInput } from './review-support-D64Wu236.cjs';
17
+ export { N as NavigationCommand, S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-DqcEonqD.cjs';
18
18
  import './contracts/document.cjs';
19
19
  import './revision-projection-72ZApe-g.cjs';
20
20
  import './ooxml-tree-BU0e3DVi.cjs';
21
- import './note-properties-CnmCoory.cjs';
21
+ import './review-reads-qW0jvdF1.cjs';
22
22
  import './ooxml-package-CR5us6ad.cjs';
23
- import './tree-package-store-DOKMtCnh.cjs';
23
+ import './custom-node-writes-YqISlSRl.cjs';
24
24
  import './hf-references-CgEOSw3i.cjs';
25
25
  import './note-nodes-C6DLxlvj.cjs';
26
- import './tree-store-CxifqwIv.cjs';
27
- import './semantic-paint-drawings-D7qbB0E2.cjs';
26
+ import './tree-store-B1lEkdXc.cjs';
27
+ import './semantic-paint-drawings-x8g44lD_.cjs';
28
28
  import 'prosemirror-model';
29
29
 
30
30
  interface LayoutShapingInstrumentation {
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-C1QRi1v4.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-C1QRi1v4.js';
3
- import { L as LayoutShapingOptions } from './shaped-measurer-B-TAtcQU.js';
4
- import { P as PaginatedSurfaceOptions, O as OpenPaginatedResult, a as PaginatedSurface, T as TableCommandPlan, D as DocxEditorInstance } from './index-ZqBEOrTV.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-ZqBEOrTV.js';
6
- import { A as AutomationCapabilities, a as AutomationHost } from './protocol-oxHaWmt4.js';
1
+ import { F as FontConfiguration, E as EditorFontError, a as EditorCommand, C as CanResult } from './editor-CFsSrxGR.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-CFsSrxGR.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-DP1yJJ3R.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-DP1yJJ3R.js';
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
- import { h as TreeDocColorValue, d as DrawingPositionInput } from './tree-op-types-CwOeiaQ8.js';
10
- export { i as IMAGE_WRAP_TARGETS, b as ImageWrapTarget } from './tree-op-types-CwOeiaQ8.js';
11
- import { f as DocumentThemeColorEntry } from './tree-session-CiUel5Kz.js';
12
- import { S as SemanticLayout } from './semantic-records-CWodBJsz.js';
13
- export { T as TextMeasurer } from './semantic-records-CWodBJsz.js';
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-BJnTpG66.js';
15
- export { S as SectionProperties } from './semantic-cell-selection-DsmHmLJ5.js';
16
- export { R as ReviewModelInput } from './review-support-Fy3vdIea.js';
17
- export { N as NavigationCommand, S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-Dy-dCUFF.js';
9
+ import { h as TreeDocColorValue, d as DrawingPositionInput } from './tree-op-types-DWLCllG7.js';
10
+ export { i as IMAGE_WRAP_TARGETS, b as ImageWrapTarget } from './tree-op-types-DWLCllG7.js';
11
+ import { f as DocumentThemeColorEntry } from './tree-session-BtVFXsF6.js';
12
+ import { S as SemanticLayout } from './semantic-records-zTC0_1zi.js';
13
+ export { T as TextMeasurer } from './semantic-records-zTC0_1zi.js';
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';
16
+ export { R as ReviewModelInput } from './review-support-nsLXC9jf.js';
17
+ export { N as NavigationCommand, S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-CXH2wFqi.js';
18
18
  import './contracts/document.js';
19
19
  import './revision-projection-DHAkcD_L.js';
20
20
  import './ooxml-tree-BU0e3DVi.js';
21
- import './note-properties-m75hmP70.js';
21
+ import './review-reads-CsoXSvUg.js';
22
22
  import './ooxml-package-D_CtywTW.js';
23
- import './tree-package-store-D5S7VKs5.js';
23
+ import './custom-node-writes-ttKuYd0M.js';
24
24
  import './hf-references-BdjsQNE_.js';
25
25
  import './note-nodes-BPSTVDMr.js';
26
- import './tree-store-hLtjeyWE.js';
27
- import './semantic-paint-drawings-BA3z9jl8.js';
26
+ import './tree-store-BscFPB7x.js';
27
+ import './semantic-paint-drawings-B5Wk2so5.js';
28
28
  import 'prosemirror-model';
29
29
 
30
30
  interface LayoutShapingInstrumentation {
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-DLPL5DAG.js';import'./chunk-5KSCB2OZ.js';import'./chunk-HVAV2JSN.js';import'./chunk-PHDVKUWZ.js';import'./chunk-BSC44TIT.js';import'./chunk-ZUALAR4M.js';import'./chunk-DOEIARE2.js';export{D as DEFAULT_IMAGE_RESOURCE_LIMITS,Re as DRAWING_REL_FROM_H,Se as DRAWING_REL_FROM_V,Wa as IMAGE_WRAP_TARGETS,Ue as positionInputFromPropertiesCommand,Te as propertiesCommandHasPositionFields,E as resolveImageResourceLimits,mb as resolveSvgIntrinsicSize,ib as sniffImageMime,Qe as validateDrawingPositionInput,nb as validateRasterHeader,Ve as validateSetImagePositionCommand}from'./chunk-RNBHTPW7.js';import'./chunk-REZUWYB7.js';export{a as resolveEditorModules}from'./chunk-HR7K3W6A.js';
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-WOGYVM3W.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,4 +1,4 @@
1
- import { D as DrawingProjection } from './tree-op-types-CwOeiaQ8.js';
1
+ import { D as DrawingProjection } from './tree-op-types-DWLCllG7.js';
2
2
  import { O as OoxmlPackage } from './ooxml-package-D_CtywTW.js';
3
3
 
4
4
  /**
@@ -63,8 +63,14 @@ interface ValidatedImageBytesHandle {
63
63
  readonly generation: number;
64
64
  }
65
65
 
66
- /** Raster media the decode port measures and any authoring path may write. */
67
- type SupportedImageMime = 'image/png' | 'image/jpeg' | 'image/gif';
66
+ /**
67
+ * Raster media the decode port measures and any authoring path may write.
68
+ *
69
+ * BMP and WebP are here for the same reason the other three are: an `<img>` decodes them
70
+ * natively, so they need a signature and a structural header and nothing else. BMP is what
71
+ * older documents carry; WebP is what current Word writes.
72
+ */
73
+ type SupportedImageMime = 'image/png' | 'image/jpeg' | 'image/gif' | 'image/bmp' | 'image/webp';
68
74
  /**
69
75
  * Vector media painted straight from validated bytes. An `<img>` renders SVG in the
70
76
  * browser's secure static mode — no script, no external subresource loads — so there is
@@ -73,10 +79,11 @@ type SupportedImageMime = 'image/png' | 'image/jpeg' | 'image/gif';
73
79
  type VectorImageMime = 'image/svg+xml';
74
80
  /** Every mime the painter can hand to an `<img>`. */
75
81
  type RenderableImageMime = SupportedImageMime | VectorImageMime;
76
- /** Media kept in the package byte-for-byte but painted as a labelled placeholder. */
82
+ /**
83
+ * Media kept in the package byte-for-byte that the painter cannot hand to an `<img>`.
84
+ * A decode port may rasterize it; without one it paints as a labelled placeholder.
85
+ */
77
86
  type PreservedImageMime = 'image/tiff' | 'image/x-emf' | 'image/x-wmf';
78
- type MetafileImageMime = 'image/x-emf' | 'image/x-wmf';
79
-
80
87
  /**
81
88
  * What is known about one embedded image: validated, refused, or still decoding.
82
89
  *
@@ -124,12 +131,13 @@ interface ImageDecodePort {
124
131
  dpiY: number;
125
132
  }>>;
126
133
  /**
127
- * Optional metafile (EMF/WMF) → raster conversion. The returned bytes are untrusted
128
- * and re-enter the full raster validation path (sniff, header, pixel caps, decode)
129
- * before they can become a ready resource. A null return declines the format and
130
- * keeps the labelled placeholder; so does a throw, as `decode-failed`.
134
+ * Optional conversion of media an `<img>` cannot render (EMF/WMF metafiles, TIFF) into a
135
+ * renderable raster. The returned bytes are untrusted and re-enter the full raster
136
+ * validation path (sniff, header, pixel caps, decode) before they can become a ready
137
+ * resource. A null return declines the format and keeps the labelled placeholder; so does
138
+ * a throw, as `decode-failed`.
131
139
  */
132
- convertMetafile?(bytes: Uint8Array, mime: MetafileImageMime, limits: ImageResourceLimits): Promise<Readonly<{
140
+ convertPreserved?(bytes: Uint8Array, mime: PreservedImageMime, limits: ImageResourceLimits): Promise<Readonly<{
133
141
  bytes: Uint8Array;
134
142
  mime: SupportedImageMime;
135
143
  }> | null>;
@@ -1,4 +1,4 @@
1
- import { D as DrawingProjection } from './tree-op-types-DMiW6nIH.cjs';
1
+ import { D as DrawingProjection } from './tree-op-types-UOXlRUqQ.cjs';
2
2
  import { O as OoxmlPackage } from './ooxml-package-CR5us6ad.cjs';
3
3
 
4
4
  /**
@@ -63,8 +63,14 @@ interface ValidatedImageBytesHandle {
63
63
  readonly generation: number;
64
64
  }
65
65
 
66
- /** Raster media the decode port measures and any authoring path may write. */
67
- type SupportedImageMime = 'image/png' | 'image/jpeg' | 'image/gif';
66
+ /**
67
+ * Raster media the decode port measures and any authoring path may write.
68
+ *
69
+ * BMP and WebP are here for the same reason the other three are: an `<img>` decodes them
70
+ * natively, so they need a signature and a structural header and nothing else. BMP is what
71
+ * older documents carry; WebP is what current Word writes.
72
+ */
73
+ type SupportedImageMime = 'image/png' | 'image/jpeg' | 'image/gif' | 'image/bmp' | 'image/webp';
68
74
  /**
69
75
  * Vector media painted straight from validated bytes. An `<img>` renders SVG in the
70
76
  * browser's secure static mode — no script, no external subresource loads — so there is
@@ -73,10 +79,11 @@ type SupportedImageMime = 'image/png' | 'image/jpeg' | 'image/gif';
73
79
  type VectorImageMime = 'image/svg+xml';
74
80
  /** Every mime the painter can hand to an `<img>`. */
75
81
  type RenderableImageMime = SupportedImageMime | VectorImageMime;
76
- /** Media kept in the package byte-for-byte but painted as a labelled placeholder. */
82
+ /**
83
+ * Media kept in the package byte-for-byte that the painter cannot hand to an `<img>`.
84
+ * A decode port may rasterize it; without one it paints as a labelled placeholder.
85
+ */
77
86
  type PreservedImageMime = 'image/tiff' | 'image/x-emf' | 'image/x-wmf';
78
- type MetafileImageMime = 'image/x-emf' | 'image/x-wmf';
79
-
80
87
  /**
81
88
  * What is known about one embedded image: validated, refused, or still decoding.
82
89
  *
@@ -124,12 +131,13 @@ interface ImageDecodePort {
124
131
  dpiY: number;
125
132
  }>>;
126
133
  /**
127
- * Optional metafile (EMF/WMF) → raster conversion. The returned bytes are untrusted
128
- * and re-enter the full raster validation path (sniff, header, pixel caps, decode)
129
- * before they can become a ready resource. A null return declines the format and
130
- * keeps the labelled placeholder; so does a throw, as `decode-failed`.
134
+ * Optional conversion of media an `<img>` cannot render (EMF/WMF metafiles, TIFF) into a
135
+ * renderable raster. The returned bytes are untrusted and re-enter the full raster
136
+ * validation path (sniff, header, pixel caps, decode) before they can become a ready
137
+ * resource. A null return declines the format and keeps the labelled placeholder; so does
138
+ * a throw, as `decode-failed`.
131
139
  */
132
- convertMetafile?(bytes: Uint8Array, mime: MetafileImageMime, limits: ImageResourceLimits): Promise<Readonly<{
140
+ convertPreserved?(bytes: Uint8Array, mime: PreservedImageMime, limits: ImageResourceLimits): Promise<Readonly<{
133
141
  bytes: Uint8Array;
134
142
  mime: SupportedImageMime;
135
143
  }> | null>;
@@ -1,17 +1,17 @@
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-D0UDock4.cjs';
2
- import { T as TreeDocOp, d as DrawingPositionInput, k as DrawingTransform, m as DrawingTreeDocOp } from './tree-op-types-DMiW6nIH.cjs';
3
- import { b as ImageDecodePort, S as SupportedImageMime } from './image-resources-BpIydXtU.cjs';
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-B93PggnR.cjs';
2
+ import { T as TreeDocOp, d as DrawingPositionInput, k as DrawingTransform, m as DrawingTreeDocOp } from './tree-op-types-UOXlRUqQ.cjs';
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
- import './review-support-DS8DYX2a.cjs';
6
- import { a as SemanticSelection, N as NavigationCommand, S as SemanticPosition } from './semantic-interaction-D-Dszxrn.cjs';
7
- import { R as ResolvedFootnoteProperties, a as ResolvedEndnoteProperties, A as AuthoredNoteProperties } from './note-properties-CnmCoory.cjs';
8
- import { S as SemanticLayout, C as ContentControlBoundaryRecord, T as TextMeasurer } from './semantic-records-CJR3BvHs.cjs';
9
- import { S as StoryScope, A as ApplyImagePropertiesInput, b as ImageIntentResult, I as InsertImageInput, B as BookmarkIndex } from './tree-package-store-DOKMtCnh.cjs';
10
- import { C as CellSelection, S as SectionProperties } from './semantic-cell-selection-CZjBSmMv.cjs';
5
+ import './review-support-D64Wu236.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';
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';
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-D7qbB0E2.cjs';
14
- import { T as TreeDocxSession, a as TreeApplyResult } from './tree-session-D47_imvR.cjs';
13
+ import { D as DrawingPaintStrings } from './semantic-paint-drawings-x8g44lD_.cjs';
14
+ import { T as TreeDocxSession, a as TreeApplyResult } from './tree-session-DxIOHUOD.cjs';
15
15
  import './contracts/document.cjs';
16
16
 
17
17
  /**
@@ -1906,6 +1906,13 @@ interface PaginatedSurface {
1906
1906
  */
1907
1907
  revealPage(pageIndex: number, options?: RevealOptions): boolean;
1908
1908
  revealParagraph(paragraphId: string, options?: RevealOptions): boolean;
1909
+ /**
1910
+ * Scroll an exact position into view — `revealParagraph` for a caret that is not at
1911
+ * offset 0. Focus-independent and virtualization-safe like every reveal: geometry
1912
+ * comes from the layout and the target page is materialized on the way. Defaults to
1913
+ * `block: 'nearest'`, so an already-visible target never yanks the viewport.
1914
+ */
1915
+ revealPosition(position: SemanticPosition, options?: RevealOptions): boolean;
1909
1916
  /** Set the selection directly, for a host driving the surface programmatically. */
1910
1917
  setSelection(next: SemanticSelection): void;
1911
1918
  /**
@@ -2137,6 +2144,16 @@ interface PaginatedSurface {
2137
2144
  * around the page, so nothing else would ever put the item away.
2138
2145
  */
2139
2146
  dismissActiveReview(): void;
2147
+ /**
2148
+ * Revision kinds the CARET must not activate, or null for none.
2149
+ *
2150
+ * The review rail filters what it renders (structural and format cards are hidden by
2151
+ * default), but {@link activeReviewKey} used to compute over the unfiltered queue — a
2152
+ * click on tracked text under a format change activated a card the rail does not draw,
2153
+ * and nothing on screen lit up. A host that filters its list tells the surface, so the
2154
+ * band and the visible cards stay one answer.
2155
+ */
2156
+ setReviewActivationExclusions(kinds: readonly ReviewRevisionKind[] | null): void;
2140
2157
  /**
2141
2158
  * `bookmarkName -> position` over the current revision, for resolving an internal link.
2142
2159
  * First in document order wins a duplicate name, matching Word.
@@ -1,17 +1,17 @@
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-C1QRi1v4.js';
2
- import { T as TreeDocOp, d as DrawingPositionInput, k as DrawingTransform, m as DrawingTreeDocOp } from './tree-op-types-CwOeiaQ8.js';
3
- import { b as ImageDecodePort, S as SupportedImageMime } from './image-resources-BJnTpG66.js';
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-CFsSrxGR.js';
2
+ import { T as TreeDocOp, d as DrawingPositionInput, k as DrawingTransform, m as DrawingTreeDocOp } from './tree-op-types-DWLCllG7.js';
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
- import './review-support-Fy3vdIea.js';
6
- import { a as SemanticSelection, N as NavigationCommand, S as SemanticPosition } from './semantic-interaction-Dy-dCUFF.js';
7
- import { R as ResolvedFootnoteProperties, a as ResolvedEndnoteProperties, A as AuthoredNoteProperties } from './note-properties-m75hmP70.js';
8
- import { S as SemanticLayout, C as ContentControlBoundaryRecord, T as TextMeasurer } from './semantic-records-CWodBJsz.js';
9
- import { S as StoryScope, A as ApplyImagePropertiesInput, b as ImageIntentResult, I as InsertImageInput, B as BookmarkIndex } from './tree-package-store-D5S7VKs5.js';
10
- import { C as CellSelection, S as SectionProperties } from './semantic-cell-selection-DsmHmLJ5.js';
5
+ import './review-support-nsLXC9jf.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';
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';
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-BA3z9jl8.js';
14
- import { T as TreeDocxSession, a as TreeApplyResult } from './tree-session-CiUel5Kz.js';
13
+ import { D as DrawingPaintStrings } from './semantic-paint-drawings-B5Wk2so5.js';
14
+ import { T as TreeDocxSession, a as TreeApplyResult } from './tree-session-BtVFXsF6.js';
15
15
  import './contracts/document.js';
16
16
 
17
17
  /**
@@ -1906,6 +1906,13 @@ interface PaginatedSurface {
1906
1906
  */
1907
1907
  revealPage(pageIndex: number, options?: RevealOptions): boolean;
1908
1908
  revealParagraph(paragraphId: string, options?: RevealOptions): boolean;
1909
+ /**
1910
+ * Scroll an exact position into view — `revealParagraph` for a caret that is not at
1911
+ * offset 0. Focus-independent and virtualization-safe like every reveal: geometry
1912
+ * comes from the layout and the target page is materialized on the way. Defaults to
1913
+ * `block: 'nearest'`, so an already-visible target never yanks the viewport.
1914
+ */
1915
+ revealPosition(position: SemanticPosition, options?: RevealOptions): boolean;
1909
1916
  /** Set the selection directly, for a host driving the surface programmatically. */
1910
1917
  setSelection(next: SemanticSelection): void;
1911
1918
  /**
@@ -2137,6 +2144,16 @@ interface PaginatedSurface {
2137
2144
  * around the page, so nothing else would ever put the item away.
2138
2145
  */
2139
2146
  dismissActiveReview(): void;
2147
+ /**
2148
+ * Revision kinds the CARET must not activate, or null for none.
2149
+ *
2150
+ * The review rail filters what it renders (structural and format cards are hidden by
2151
+ * default), but {@link activeReviewKey} used to compute over the unfiltered queue — a
2152
+ * click on tracked text under a format change activated a card the rail does not draw,
2153
+ * and nothing on screen lit up. A host that filters its list tells the surface, so the
2154
+ * band and the visible cards stay one answer.
2155
+ */
2156
+ setReviewActivationExclusions(kinds: readonly ReviewRevisionKind[] | null): void;
2140
2157
  /**
2141
2158
  * `bookmarkName -> position` over the current revision, for resolving an internal link.
2142
2159
  * First in document order wins a duplicate name, matching Word.
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- 'use strict';var chunkQADYGK5L_cjs=require('./chunk-QADYGK5L.cjs');require('./chunk-UD2ZXLFI.cjs'),require('./chunk-YUK46A2N.cjs'),require('./chunk-NSM75TN6.cjs'),require('./chunk-G7YCQBZE.cjs'),require('./chunk-ZT55Q52J.cjs'),require('./chunk-MYH2HCUJ.cjs'),require('./chunk-ZMIX42J7.cjs'),require('./chunk-HBL3NNH5.cjs'),require('./chunk-VYAVK2AH.cjs');Object.defineProperty(exports,"CHROME_GROUPS",{enumerable:true,get:function(){return chunkQADYGK5L_cjs.sa}});Object.defineProperty(exports,"CHROME_MENUS",{enumerable:true,get:function(){return chunkQADYGK5L_cjs.wa}});Object.defineProperty(exports,"WORD_DEFAULT_FONT",{enumerable:true,get:function(){return chunkQADYGK5L_cjs.e}});Object.defineProperty(exports,"blankDocumentBytes",{enumerable:true,get:function(){return chunkQADYGK5L_cjs.g}});Object.defineProperty(exports,"chromeMenuSlots",{enumerable:true,get:function(){return chunkQADYGK5L_cjs.xa}});Object.defineProperty(exports,"commandForSlot",{enumerable:true,get:function(){return chunkQADYGK5L_cjs.ha}});Object.defineProperty(exports,"commandForSlotValue",{enumerable:true,get:function(){return chunkQADYGK5L_cjs.ja}});Object.defineProperty(exports,"composeFontConfiguration",{enumerable:true,get:function(){return chunkQADYGK5L_cjs.f}});Object.defineProperty(exports,"createDocxEditor",{enumerable:true,get:function(){return chunkQADYGK5L_cjs.Ca}});Object.defineProperty(exports,"createFontSource",{enumerable:true,get:function(){return chunkQADYGK5L_cjs.i}});Object.defineProperty(exports,"loadFonts",{enumerable:true,get:function(){return chunkQADYGK5L_cjs.h}});Object.defineProperty(exports,"runToolbarCommand",{enumerable:true,get:function(){return chunkQADYGK5L_cjs.oa}});Object.defineProperty(exports,"toolbarCommandState",{enumerable:true,get:function(){return chunkQADYGK5L_cjs.la}});
1
+ 'use strict';var chunkCZFUMACF_cjs=require('./chunk-CZFUMACF.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 chunkCZFUMACF_cjs.sa}});Object.defineProperty(exports,"CHROME_MENUS",{enumerable:true,get:function(){return chunkCZFUMACF_cjs.wa}});Object.defineProperty(exports,"WORD_DEFAULT_FONT",{enumerable:true,get:function(){return chunkCZFUMACF_cjs.e}});Object.defineProperty(exports,"blankDocumentBytes",{enumerable:true,get:function(){return chunkCZFUMACF_cjs.g}});Object.defineProperty(exports,"chromeMenuSlots",{enumerable:true,get:function(){return chunkCZFUMACF_cjs.xa}});Object.defineProperty(exports,"commandForSlot",{enumerable:true,get:function(){return chunkCZFUMACF_cjs.ha}});Object.defineProperty(exports,"commandForSlotValue",{enumerable:true,get:function(){return chunkCZFUMACF_cjs.ja}});Object.defineProperty(exports,"composeFontConfiguration",{enumerable:true,get:function(){return chunkCZFUMACF_cjs.f}});Object.defineProperty(exports,"createDocxEditor",{enumerable:true,get:function(){return chunkCZFUMACF_cjs.Ca}});Object.defineProperty(exports,"createFontSource",{enumerable:true,get:function(){return chunkCZFUMACF_cjs.i}});Object.defineProperty(exports,"loadFonts",{enumerable:true,get:function(){return chunkCZFUMACF_cjs.h}});Object.defineProperty(exports,"runToolbarCommand",{enumerable:true,get:function(){return chunkCZFUMACF_cjs.oa}});Object.defineProperty(exports,"toolbarCommandState",{enumerable:true,get:function(){return chunkCZFUMACF_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 ReviewCommentPlacement, a2 as ReviewCustomPlacement, a3 as ReviewItemPlacement, a4 as ReviewItemPlacementBase, a5 as ReviewItemQuery, a6 as ReviewRevisionPlacement, S as SelectedImageState, a7 as SemanticIdentity, a8 as SemanticTarget, T as TableBorderEdgeTarget, m as TableBorderSpec, n as TableBorderStyle, a9 as TableBorderTarget, aa as TableCellVerticalAlignment, ab as TableColumnDividerResizeTarget, ac as TableColumnOccurrenceTarget, o as TableContext, ad as TableRightEdgeResizeTarget, ae as TableRowOccurrenceTarget, af as TextMatch, V as ViewScope } from './editor-D0UDock4.cjs';
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-DMiW6nIH.cjs';
3
- export { I as ImageResourceState, P as PreservedImageMime, R as RenderableImageMime, S as SupportedImageMime, V as ValidatedImageBytesHandle, a as VectorImageMime } from './image-resources-BpIydXtU.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, Z as NotePropertiesSide, _ as NotePropertiesState, $ as PageSetup, a0 as ResolvedNoteNumbering, a1 as ReviewCommentPlacement, a2 as ReviewCustomPlacement, a3 as ReviewItemPlacement, a4 as ReviewItemPlacementBase, a5 as ReviewItemQuery, a6 as ReviewRevisionPlacement, S as SelectedImageState, a7 as SemanticIdentity, a8 as SemanticTarget, T as TableBorderEdgeTarget, m as TableBorderSpec, n as TableBorderStyle, a9 as TableBorderTarget, aa as TableCellVerticalAlignment, ab as TableColumnDividerResizeTarget, ac as TableColumnOccurrenceTarget, o as TableContext, ad as TableRightEdgeResizeTarget, ae as TableRowOccurrenceTarget, af as TextMatch, V as ViewScope } from './editor-B93PggnR.cjs';
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
+ 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
- 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-DS8DYX2a.cjs';
6
- export { S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-D-Dszxrn.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-CrW-IxXt.cjs';
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-D64Wu236.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-BjZelfWL.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-CJR3BvHs.cjs';
14
- import './note-properties-CnmCoory.cjs';
15
- import './tree-package-store-DOKMtCnh.cjs';
13
+ import './semantic-records-COVFW5aS.cjs';
14
+ import './review-reads-qW0jvdF1.cjs';
15
+ import './custom-node-writes-YqISlSRl.cjs';
16
16
  import './hf-references-CgEOSw3i.cjs';
17
17
  import './note-nodes-C6DLxlvj.cjs';
18
- import './tree-store-CxifqwIv.cjs';
19
- import './semantic-cell-selection-CZjBSmMv.cjs';
20
- import './semantic-paint-drawings-D7qbB0E2.cjs';
21
- import './tree-session-D47_imvR.cjs';
18
+ import './tree-store-B1lEkdXc.cjs';
19
+ import './semantic-cell-selection-DwLB71fF.cjs';
20
+ import './semantic-paint-drawings-x8g44lD_.cjs';
21
+ import './tree-session-DxIOHUOD.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 ReviewCommentPlacement, a2 as ReviewCustomPlacement, a3 as ReviewItemPlacement, a4 as ReviewItemPlacementBase, a5 as ReviewItemQuery, a6 as ReviewRevisionPlacement, S as SelectedImageState, a7 as SemanticIdentity, a8 as SemanticTarget, T as TableBorderEdgeTarget, m as TableBorderSpec, n as TableBorderStyle, a9 as TableBorderTarget, aa as TableCellVerticalAlignment, ab as TableColumnDividerResizeTarget, ac as TableColumnOccurrenceTarget, o as TableContext, ad as TableRightEdgeResizeTarget, ae as TableRowOccurrenceTarget, af as TextMatch, V as ViewScope } from './editor-C1QRi1v4.js';
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-CwOeiaQ8.js';
3
- export { I as ImageResourceState, P as PreservedImageMime, R as RenderableImageMime, S as SupportedImageMime, V as ValidatedImageBytesHandle, a as VectorImageMime } from './image-resources-BJnTpG66.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, Z as NotePropertiesSide, _ as NotePropertiesState, $ as PageSetup, a0 as ResolvedNoteNumbering, a1 as ReviewCommentPlacement, a2 as ReviewCustomPlacement, a3 as ReviewItemPlacement, a4 as ReviewItemPlacementBase, a5 as ReviewItemQuery, a6 as ReviewRevisionPlacement, S as SelectedImageState, a7 as SemanticIdentity, a8 as SemanticTarget, T as TableBorderEdgeTarget, m as TableBorderSpec, n as TableBorderStyle, a9 as TableBorderTarget, aa as TableCellVerticalAlignment, ab as TableColumnDividerResizeTarget, ac as TableColumnOccurrenceTarget, o as TableContext, ad as TableRightEdgeResizeTarget, ae as TableRowOccurrenceTarget, af as TextMatch, V as ViewScope } from './editor-CFsSrxGR.js';
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
+ 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
- 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-Fy3vdIea.js';
6
- export { S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-Dy-dCUFF.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-ZqBEOrTV.js';
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-nsLXC9jf.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-DP1yJJ3R.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-CWodBJsz.js';
14
- import './note-properties-m75hmP70.js';
15
- import './tree-package-store-D5S7VKs5.js';
13
+ import './semantic-records-zTC0_1zi.js';
14
+ import './review-reads-CsoXSvUg.js';
15
+ import './custom-node-writes-ttKuYd0M.js';
16
16
  import './hf-references-BdjsQNE_.js';
17
17
  import './note-nodes-BPSTVDMr.js';
18
- import './tree-store-hLtjeyWE.js';
19
- import './semantic-cell-selection-DsmHmLJ5.js';
20
- import './semantic-paint-drawings-BA3z9jl8.js';
21
- import './tree-session-CiUel5Kz.js';
18
+ import './tree-store-BscFPB7x.js';
19
+ import './semantic-cell-selection-D_8RbPII.js';
20
+ import './semantic-paint-drawings-B5Wk2so5.js';
21
+ import './tree-session-BtVFXsF6.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-DLPL5DAG.js';import'./chunk-5KSCB2OZ.js';import'./chunk-HVAV2JSN.js';import'./chunk-PHDVKUWZ.js';import'./chunk-BSC44TIT.js';import'./chunk-ZUALAR4M.js';import'./chunk-DOEIARE2.js';import'./chunk-RNBHTPW7.js';import'./chunk-REZUWYB7.js';import'./chunk-HR7K3W6A.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,Ca as createDocxEditor,i as createFontSource,h as loadFonts,oa as runToolbarCommand,la as toolbarCommandState}from'./chunk-WOGYVM3W.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';