@docx-editor.dev/core 2.6.1 → 2.8.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 (96) hide show
  1. package/dist/automation.cjs +1 -1
  2. package/dist/automation.js +1 -1
  3. package/dist/binding.cjs +1 -1
  4. package/dist/binding.d.cts +8 -7
  5. package/dist/binding.d.ts +8 -7
  6. package/dist/binding.js +1 -1
  7. package/dist/chunk-2WIXJ7CW.js +10 -0
  8. package/dist/chunk-42PRWWVE.js +2 -0
  9. package/dist/chunk-5XKD3VFP.js +18 -0
  10. package/dist/{chunk-SFMAIFEN.cjs → chunk-HCSWWXS2.cjs} +2 -2
  11. package/dist/chunk-HTJLSGBH.cjs +18 -0
  12. package/dist/chunk-JEHWQPXS.cjs +1 -0
  13. package/dist/chunk-KCJLRAKT.js +5 -0
  14. package/dist/chunk-KTL3UMPK.js +2 -0
  15. package/dist/chunk-M6ZIVJUA.cjs +2 -0
  16. package/dist/chunk-NU57YOQE.js +15 -0
  17. package/dist/chunk-RUS2YBWU.cjs +10 -0
  18. package/dist/chunk-TJEWP7MX.cjs +15 -0
  19. package/dist/chunk-UGUPVZDY.cjs +5 -0
  20. package/dist/chunk-XJRMFS6O.js +1 -0
  21. package/dist/chunk-XN634HAC.js +2 -0
  22. package/dist/chunk-XRDTD4X3.cjs +2 -0
  23. package/dist/contracts/document.d.cts +25 -3
  24. package/dist/contracts/document.d.ts +25 -3
  25. package/dist/contracts/editor.d.cts +7 -7
  26. package/dist/contracts/editor.d.ts +7 -7
  27. package/dist/contracts/interaction.d.cts +6 -6
  28. package/dist/contracts/interaction.d.ts +6 -6
  29. package/dist/contracts/modules.d.cts +4 -3
  30. package/dist/contracts/modules.d.ts +4 -3
  31. package/dist/contracts/types.d.cts +110 -2
  32. package/dist/contracts/types.d.ts +110 -2
  33. package/dist/{custom-node-writes-tJw8U9MO.d.ts → custom-node-writes-BdVl-LAC.d.ts} +19 -10
  34. package/dist/{custom-node-writes-D9G3GKQ7.d.cts → custom-node-writes-Bu8JIqfA.d.cts} +19 -10
  35. package/dist/{editor-BZEJL3vv.d.cts → editor-CWlj33GH.d.cts} +80 -69
  36. package/dist/{editor-D2zOJztO.d.ts → editor-D52SD4jG.d.ts} +80 -69
  37. package/dist/editor.cjs +1 -1
  38. package/dist/editor.d.cts +63 -31
  39. package/dist/editor.d.ts +63 -31
  40. package/dist/editor.js +1 -1
  41. package/dist/{image-resources-BaHz4QAd.d.cts → image-resources-BveffuKp.d.cts} +1 -1
  42. package/dist/{image-resources-Cl5_cNi9.d.ts → image-resources-D63k8w5f.d.ts} +1 -1
  43. package/dist/{index-_xF7n_z0.d.cts → index-39yzaZO_.d.cts} +1573 -1429
  44. package/dist/{index-D8L8WrNF.d.ts → index-ZuqIj0b9.d.ts} +1573 -1429
  45. package/dist/index.cjs +1 -1
  46. package/dist/index.d.cts +14 -14
  47. package/dist/index.d.ts +14 -14
  48. package/dist/index.js +1 -1
  49. package/dist/layout.cjs +1 -1
  50. package/dist/layout.d.cts +220 -23
  51. package/dist/layout.d.ts +220 -23
  52. package/dist/layout.js +1 -1
  53. package/dist/output.cjs +1 -1
  54. package/dist/output.d.cts +6 -5
  55. package/dist/output.d.ts +6 -5
  56. package/dist/output.js +1 -1
  57. package/dist/{review-reads-HDvoQXK2.d.ts → review-reads-B_pXe43J.d.ts} +1 -1
  58. package/dist/{review-reads-Dr0CpW6u.d.cts → review-reads-Bn7aZU4u.d.cts} +1 -1
  59. package/dist/{review-support-D4ZBdUXa.d.ts → review-support--I4ChuzF.d.ts} +1 -1
  60. package/dist/{review-support-T-riLz4Y.d.cts → review-support-CG7aVSPh.d.cts} +1 -1
  61. package/dist/{semantic-cell-selection-BTQFpN0S.d.cts → semantic-cell-selection-C45Gn4K-.d.cts} +14 -2
  62. package/dist/{semantic-cell-selection-B5vfPz4Q.d.ts → semantic-cell-selection-I-uAmi0q.d.ts} +14 -2
  63. package/dist/{semantic-interaction-CDNEU_Tx.d.cts → semantic-interaction-Bu_3IPaV.d.ts} +14 -2
  64. package/dist/{semantic-interaction-lvpzZRpA.d.ts → semantic-interaction-DVUqu_47.d.cts} +14 -2
  65. package/dist/{semantic-paint-BBPL3u5w.d.ts → semantic-paint-BKiiDJol.d.ts} +8 -2
  66. package/dist/{semantic-paint-IjbL-4CT.d.cts → semantic-paint-COQY0Lnq.d.cts} +8 -2
  67. package/dist/{semantic-records-CdQvpUj1.d.ts → semantic-records-DHcMZM2-.d.ts} +35 -36
  68. package/dist/{semantic-records-DEOs3_tE.d.cts → semantic-records-rAKWaD-1.d.cts} +35 -36
  69. package/dist/{shaped-measurer-C2SJAjV0.d.cts → shaped-measurer-BRL__nm2.d.cts} +1 -1
  70. package/dist/{shaped-measurer-l4o5ITJ0.d.ts → shaped-measurer-Cw45Nu5R.d.ts} +1 -1
  71. package/dist/store.cjs +1 -1
  72. package/dist/store.d.cts +55 -9
  73. package/dist/store.d.ts +55 -9
  74. package/dist/store.js +1 -1
  75. package/dist/{tree-op-types-CUCwPWjT.d.cts → tree-op-types-A-SLSKzK.d.cts} +62 -9
  76. package/dist/{tree-op-types-D0fTNBVW.d.ts → tree-op-types-BbzrA-kg.d.ts} +62 -9
  77. package/dist/{tree-session-b7bggR-S.d.cts → tree-session-C2NsEgfW.d.cts} +41 -6
  78. package/dist/{tree-session-CH1oA75f.d.ts → tree-session-DeNJa86l.d.ts} +41 -6
  79. package/dist/{tree-store-CIKASRHk.d.ts → tree-store-CKswbQl3.d.ts} +13 -1
  80. package/dist/{tree-store-BqgeCa1Q.d.cts → tree-store-Dob9Us6Y.d.cts} +13 -1
  81. package/package.json +2 -2
  82. package/dist/chunk-4GQXAXTZ.js +0 -5
  83. package/dist/chunk-DGUHCJPF.cjs +0 -18
  84. package/dist/chunk-DY3QVCWC.cjs +0 -10
  85. package/dist/chunk-E7BXJ4BF.js +0 -1
  86. package/dist/chunk-F7Z6PWAZ.cjs +0 -2
  87. package/dist/chunk-IJ4V3LGV.cjs +0 -2
  88. package/dist/chunk-JEMP5YI5.cjs +0 -15
  89. package/dist/chunk-JZXK4DKV.cjs +0 -1
  90. package/dist/chunk-NIGGABAA.js +0 -15
  91. package/dist/chunk-OPKOTVQQ.js +0 -18
  92. package/dist/chunk-R75OLPL6.js +0 -10
  93. package/dist/chunk-SKWYEZCO.cjs +0 -5
  94. package/dist/chunk-SMRD66T5.js +0 -2
  95. package/dist/chunk-UVIUNAQ6.js +0 -2
  96. package/dist/chunk-WAVN7MAT.js +0 -2
package/dist/editor.d.ts CHANGED
@@ -1,32 +1,33 @@
1
- export { D as DEFAULT_IMAGE_RESOURCE_LIMITS, b as ImageDecodePort, c as ImageResourceLimits, R as RenderableImageMime, S as SupportedImageMime, a as VectorImageMime, r as resolveImageResourceLimits, d as resolveSvgIntrinsicSize, s as sniffImageMime, v as validateRasterHeader } from './image-resources-Cl5_cNi9.js';
2
- import { i as TreeDocColorValue, d as DrawingPositionInput } from './tree-op-types-D0fTNBVW.js';
3
- export { j as IMAGE_WRAP_TARGETS, b as ImageWrapTarget } from './tree-op-types-D0fTNBVW.js';
4
- import { g as DocumentThemeColorEntry } from './tree-session-CH1oA75f.js';
5
- export { a as TreeApplyResult, c as TreeDocxSessionView } from './tree-session-CH1oA75f.js';
6
- import { F as FontConfiguration, E as EditorFontError, a as EditorSnapshot, b as EditorCommand, C as CanResult, Z as ZoomMode } from './editor-D2zOJztO.js';
7
- export { I as ImageContext, c as ImageCropPercent, d as ImageCropPermille, S as SelectedImageState, e as cropPercentFromCropPermille, f as cropPercentFromPermille, g as cropPercentFromSourceCrop, h as cropPermilleFromCropPercent, i as cropPermilleFromPercent, s as sourceCropFromCropPercent, v as validateImageCropPercent } from './editor-D2zOJztO.js';
8
- import { L as LayoutShapingOptions } from './shaped-measurer-l4o5ITJ0.js';
9
- import { P as PaginatedSurfaceOptions, O as OpenPaginatedResult, a as PaginatedSurface, T as TableCommandPlan, D as DocxEditorInstance } from './index-D8L8WrNF.js';
10
- 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-D8L8WrNF.js';
1
+ export { D as DEFAULT_IMAGE_RESOURCE_LIMITS, b as ImageDecodePort, c as ImageResourceLimits, R as RenderableImageMime, S as SupportedImageMime, a as VectorImageMime, r as resolveImageResourceLimits, d as resolveSvgIntrinsicSize, s as sniffImageMime, v as validateRasterHeader } from './image-resources-D63k8w5f.js';
2
+ import { l as TreeDocColorValue, d as DrawingPositionInput } from './tree-op-types-BbzrA-kg.js';
3
+ export { m as IMAGE_WRAP_TARGETS, b as ImageWrapTarget } from './tree-op-types-BbzrA-kg.js';
4
+ import { ColorValue } from './contracts/types.js';
5
+ export { ParagraphFlags, ParagraphTabStop } from './contracts/types.js';
6
+ import { c as TreeDocxSessionView, g as DocumentThemeColorEntry } from './tree-session-DeNJa86l.js';
7
+ export { a as TreeApplyResult } from './tree-session-DeNJa86l.js';
8
+ import { F as FontConfiguration, E as EditorFontError, a as EditorSnapshot, b as EditorCommand, C as CanResult, Z as ZoomMode } from './editor-D52SD4jG.js';
9
+ export { I as ImageContext, c as ImageCropPercent, d as ImageCropPermille, S as SelectedImageState, e as cropPercentFromCropPermille, f as cropPercentFromPermille, g as cropPercentFromSourceCrop, h as cropPermilleFromCropPercent, i as cropPermilleFromPercent, s as sourceCropFromCropPercent, v as validateImageCropPercent } from './editor-D52SD4jG.js';
10
+ import { L as LayoutShapingOptions } from './shaped-measurer-Cw45Nu5R.js';
11
+ import { P as PaginatedSurfaceOptions, O as OpenPaginatedResult, a as PaginatedSurface, T as TableCommandPlan, D as DocxEditorInstance } from './index-ZuqIj0b9.js';
12
+ 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 ParagraphPropertyEdit, W as RunTableChromeCommandResult, X as SectionAnchor, Y as SelectedDrawingOverlayTarget, Z as SurfaceFormatting, _ as SurfaceHyperlink, $ as SurfaceNavigation, a0 as SurfaceOverlayCoordinates, a1 as SurfaceParagraphFormat, a2 as TABLE_BORDER_STYLE_OPTIONS, a3 as TABLE_BORDER_TARGET_OPTIONS, a4 as TABLE_BORDER_WIDTH_OPTIONS, a5 as TABLE_CHROME_SLOT_IDS, a6 as TableBorderStyleOption, a7 as TableBorderTargetOption, a8 as TableBorderTargetValue, a9 as TableBorderWidthOption, aa as TableChromeDraft, ab as TableChromePick, ac as TableChromeSlotId, ad as TableInteractionLabelKey, ae as ToolbarCommandState, af as WORD_DEFAULT_FONT, ag as applyTableChromePick, ah as blankDocumentBytes, ai as canExecuteImageCommand, aj as captureImageMutationPreconditions, ak as chromeControlCount, al as chromeMenuSlots, am as chromeProbeForSlot, an as chromeSlotId, ao as commandForSlot, ap as commandForSlotValue, aq as commandForTableChromeSlotValue, ar as composeFontConfiguration, as as computeImageResizeResult, at as computeMovedImagePosition, au as computeResizedImageExtentEmu, av as createDocxEditor, aw as createFontSource, ax as createImageOverlayScrollPort, ay as cssPixelsToLayoutPoints, az as defaultChromeGroups, aA as defaultTableLabel, aB as emuToOverlayPoints, aC as executeImageCommand, aD as finalizeImageOverlayInteraction, aE as formattingBarChromeGroups, aF as isStaleImageInteractionCommit, aG as isTableChromeSlot, aH as layoutPointsToCssPixels, aI as loadFonts, aJ as overlayFrameToSheetCssPixels, aK as pointsToEmu, aL as probeTableChromeCommand, aM as resizePreservesAspect, aN as runSave, aO as runTableChromeCommand, aP as runTableCommand, aQ as runToolbarCommand, aR as selectedDrawingOverlayTargetOf, aS as selectedImageStateOf, aT as surfacePaintScale, aU as tableChromeIconPaths, aV as tableChromeLabelKeyForTarget, aW as tableChromeToolbarState, aX as tableChromeVisible, aY as tableCommandToolbarState, aZ as toolbarCommandState, a_ as toolbarCommandStates } from './index-ZuqIj0b9.js';
13
+ import { e as OoxmlPart } from './ooxml-tree-BU0e3DVi.js';
11
14
  import { A as AutomationCapabilities, a as AutomationHost } from './protocol-DsbfgBwA.js';
12
15
  export { CollectReviewItems, EditorModule, EditorModuleRegistry, ReviewModuleContribution, resolveEditorModules } from './contracts/modules.js';
13
- import { ColorValue } from './contracts/types.js';
14
- import { S as SemanticLayout } from './semantic-records-CdQvpUj1.js';
15
- export { T as TextMeasurer } from './semantic-records-CdQvpUj1.js';
16
- export { S as SectionProperties } from './semantic-cell-selection-B5vfPz4Q.js';
17
- export { R as ReviewModelInput } from './review-support-D4ZBdUXa.js';
18
- export { N as NavigationCommand, S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-lvpzZRpA.js';
19
- export { F as FieldShadingMode, R as ReviewAuthorInfo, a as RevisionAuthorAssignments, b as RevisionAuthorStyle, c as RevisionStyles } from './semantic-paint-BBPL3u5w.js';
16
+ import { S as SemanticLayout } from './semantic-records-DHcMZM2-.js';
17
+ export { T as TextMeasurer } from './semantic-records-DHcMZM2-.js';
18
+ export { S as SectionProperties } from './semantic-cell-selection-I-uAmi0q.js';
19
+ export { R as ReviewModelInput } from './review-support--I4ChuzF.js';
20
+ export { N as NavigationCommand, S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-Bu_3IPaV.js';
21
+ export { F as FieldShadingMode, R as ReviewAuthorInfo, a as RevisionAuthorAssignments, b as RevisionAuthorStyle, c as RevisionStyles } from './semantic-paint-BKiiDJol.js';
20
22
  import './ooxml-package-D_CtywTW.js';
21
- import './ooxml-tree-BU0e3DVi.js';
22
- import './custom-node-writes-tJw8U9MO.js';
23
+ import './custom-node-writes-BdVl-LAC.js';
23
24
  import './hf-references-BdjsQNE_.js';
24
25
  import './note-nodes-BPSTVDMr.js';
25
- import './tree-store-CIKASRHk.js';
26
+ import './tree-store-CKswbQl3.js';
26
27
  import 'prosemirror-model';
27
28
  import './contracts/document.js';
28
29
  import './revision-projection-UKqvPa4-.js';
29
- import './review-reads-HDvoQXK2.js';
30
+ import './review-reads-B_pXe43J.js';
30
31
 
31
32
  interface LayoutShapingInstrumentation {
32
33
  readonly onFontByteCopy?: () => void;
@@ -59,6 +60,46 @@ declare function disposeLayoutShaping(shaping: LayoutShapingOptions): void;
59
60
  */
60
61
  declare const LOADING_SNAPSHOT: EditorSnapshot;
61
62
 
63
+ /**
64
+ * Mount a paginated surface over DOCX bytes.
65
+ *
66
+ * Returns a typed rejection rather than throwing: a failure here is a property of the file,
67
+ * and a host must be able to tell "not a package" from "no body" without parsing an error
68
+ * message.
69
+ */
70
+ declare function mountPaginatedSurface(container: HTMLElement, bytes: Uint8Array, options?: PaginatedSurfaceOptions): OpenPaginatedResult;
71
+
72
+ /**
73
+ * The story a NODE lives in, which is what a write about that node must target.
74
+ *
75
+ * The open scope is a near-enough proxy most of the time and wrong exactly when it matters:
76
+ * nothing binds a node id to it, so a verb invoked on a control, a chip or a paragraph the
77
+ * reader is not currently standing in wrote against the wrong store — or, where the id came
78
+ * from a body-only index, against body content the reader could not see.
79
+ *
80
+ * Answered from the id's own PART NAME. Node ids are minted `${partName}#${path}`, so the
81
+ * question is constant-time and needs no store to be opened. That last part is load-bearing:
82
+ * asking each scope for its paragraph list instead OPENS a story store, the store cap is 64,
83
+ * and a store whose part is still in the package is never evicted — on a many-section
84
+ * document that left later headers unopenable for the rest of the session.
85
+ *
86
+ * Falls back to `fallback` for an id no story claims, so the store refuses it rather than this.
87
+ */
88
+ /**
89
+ * The part a NODE lives in, WITHOUT opening a story store.
90
+ *
91
+ * `session.partFor(scope)` resolves a scope by opening that story's store, and an open store is
92
+ * retained for as long as its part is in the package. The cap is 64. So routing a pure READ —
93
+ * "is this control locked", "what is its tab index" — through `partFor` spent a permanent slot
94
+ * per part touched, and an id naming no node at all still spent one, because the part name is
95
+ * matched from the id's prefix before anything is looked up. Sixty-four such reads and no
96
+ * further header could be opened for the rest of the session, silently.
97
+ *
98
+ * Read straight from the live package instead. Ids carry the canonical part name, so this is a
99
+ * map lookup.
100
+ */
101
+ declare function partOfNodeId(session: Pick<TreeDocxSessionView, 'currentPackage' | 'part'>, nodeId: string | undefined): OoxmlPart | null;
102
+
62
103
  /** The engine paints at 96 px per inch (twips / 15, 1440 twips per inch). */
63
104
  declare const PX_PER_INCH = 96;
64
105
  /** Painted pixels per centimetre, derived from {@link PX_PER_INCH}. */
@@ -149,15 +190,6 @@ declare function snapTwips(value: number, unit: RulerUnit, precise: boolean): nu
149
190
  */
150
191
  declare function dragIndent(handle: RulerIndentHandle, positionTwips: number, indent: RulerIndent, page: RulerPageMetrics, options?: RulerDragOptions): RulerIndent;
151
192
 
152
- /**
153
- * Mount a paginated surface over DOCX bytes.
154
- *
155
- * Returns a typed rejection rather than throwing: a failure here is a property of the file,
156
- * and a host must be able to tell "not a package" from "no body" without parsing an error
157
- * message.
158
- */
159
- declare function mountPaginatedSurface(container: HTMLElement, bytes: Uint8Array, options?: PaginatedSurfaceOptions): OpenPaginatedResult;
160
-
161
193
  /**
162
194
  * Stable value identity for a command, including nested payloads.
163
195
  *
@@ -324,4 +356,4 @@ declare function validateSetImagePositionCommand(command: {
324
356
  readonly relativeToV?: string;
325
357
  }, mode: 'frame' | 'simple'): boolean;
326
358
 
327
- export { AUTO_ZOOM_MODE, BROWSER_AUTOMATION_CAPABILITIES, type ColorLowerResult, DRAWING_REL_FROM_H, DRAWING_REL_FROM_V, DocxEditorInstance, DrawingPositionInput, FIT_WIDTH_ZOOM_MODE, LOADING_SNAPSHOT, 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, editorCommandKey, generateRulerTicks, handlePosition, lowerColorValueForBorder, lowerColorValueForFill, mountPaginatedSurface, positionInputFromPropertiesCommand, propertiesCommandHasPositionFields, resolveColorValueToCss, resolveThemeColorHex, resolveZoomMode, rulerPageBox, sameZoomMode, snapTwips, surfaceExtent, tableCommandState, toEditorFontError, validateDrawingPositionInput, validateSetImagePositionCommand, validateThemeModifier };
359
+ export { AUTO_ZOOM_MODE, BROWSER_AUTOMATION_CAPABILITIES, type ColorLowerResult, DRAWING_REL_FROM_H, DRAWING_REL_FROM_V, DocxEditorInstance, DrawingPositionInput, FIT_WIDTH_ZOOM_MODE, LOADING_SNAPSHOT, 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, TreeDocxSessionView, ZOOM_MAX, ZOOM_MIN, applyThemeShade, applyThemeTint, createBrowserAutomationHost, createLayoutShaping, disposeLayoutShaping, dragIndent, editorCommandKey, generateRulerTicks, handlePosition, lowerColorValueForBorder, lowerColorValueForFill, mountPaginatedSurface, partOfNodeId, positionInputFromPropertiesCommand, propertiesCommandHasPositionFields, resolveColorValueToCss, resolveThemeColorHex, resolveZoomMode, rulerPageBox, sameZoomMode, snapTwips, surfaceExtent, tableCommandState, toEditorFontError, validateDrawingPositionInput, validateSetImagePositionCommand, validateThemeModifier };
package/dist/editor.js CHANGED
@@ -1 +1 @@
1
- export{Ga as AUTO_ZOOM_MODE,La as BROWSER_AUTOMATION_CAPABILITIES,ua as CHROME_GROUPS,ya as CHROME_MENUS,Ba as CHROME_UNAVAILABLE_KEY,X as DEFAULT_TABLE_CHROME_DRAFT,P as EMU_PER_POINT,Ha as FIT_WIDTH_ZOOM_MODE,N as IMAGE_OVERLAY_NUDGE_PT,O as IMAGE_OVERLAY_NUDGE_SHIFT_PT,d as LOADING_SNAPSHOT,e as MAX_RESOLVER_FAMILIES,l as PX_PER_CM,k as PX_PER_INCH,r as SNAP_TWIPS_CM,q as SNAP_TWIPS_INCH,ba as TABLE_BORDER_STYLE_OPTIONS,aa as TABLE_BORDER_TARGET_OPTIONS,ca as TABLE_BORDER_WIDTH_OPTIONS,Y as TABLE_CHROME_SLOT_IDS,p as TWIPS_PER_CM,o as TWIPS_PER_INCH,f as WORD_DEFAULT_FONT,Fa as ZOOM_MAX,Ea as ZOOM_MIN,da as applyTableChromePick,x as applyThemeShade,w as applyThemeTint,h as blankDocumentBytes,L as canExecuteImageCommand,K as captureImageMutationPreconditions,Aa as chromeControlCount,za as chromeMenuSlots,ha as chromeProbeForSlot,va as chromeSlotId,ia as commandForSlot,ka as commandForSlotValue,ja as commandForTableChromeSlotValue,g as composeFontConfiguration,Sa as computeImageResizeResult,U as computeMovedImagePosition,T as computeResizedImageExtentEmu,Ma as createBrowserAutomationHost,Ka as createDocxEditor,j as createFontSource,Ta as createImageOverlayScrollPort,b as createLayoutShaping,H as cropPercentFromCropPermille,F as cropPercentFromPermille,C as cropPercentFromSourceCrop,G as cropPermilleFromCropPercent,E as cropPermilleFromPercent,Pa as cssPixelsToLayoutPoints,wa as defaultChromeGroups,Z as defaultTableLabel,c as disposeLayoutShaping,u as dragIndent,ta as editorCommandKey,S as emuToOverlayPoints,M as executeImageCommand,Ua as finalizeImageOverlayInteraction,xa as formattingBarChromeGroups,m as generateRulerTicks,s as handlePosition,V as isStaleImageInteractionCommit,_ as isTableChromeSlot,Oa as layoutPointsToCssPixels,i as loadFonts,z as lowerColorValueForBorder,A as lowerColorValueForFill,Da as mountPaginatedSurface,Qa as overlayFrameToSheetCssPixels,R as pointsToEmu,ea as probeTableChromeCommand,Ra as resizePreservesAspect,B as resolveColorValueToCss,y as resolveThemeColorHex,Ia as resolveZoomMode,n as rulerPageBox,qa as runSave,oa as runTableChromeCommand,sa as runTableCommand,pa as runToolbarCommand,Ja as sameZoomMode,Q as selectedDrawingOverlayTargetOf,J as selectedImageStateOf,t as snapTwips,D as sourceCropFromCropPercent,Ca as surfaceExtent,Na as surfacePaintScale,ga as tableChromeIconPaths,fa as tableChromeLabelKeyForTarget,la as tableChromeToolbarState,$ as tableChromeVisible,W as tableCommandState,ra as tableCommandToolbarState,a as toEditorFontError,ma as toolbarCommandState,na as toolbarCommandStates,I as validateImageCropPercent,v as validateThemeModifier}from'./chunk-NIGGABAA.js';import'./chunk-WAVN7MAT.js';import'./chunk-OPKOTVQQ.js';import'./chunk-WU7PUTVA.js';import'./chunk-E7BXJ4BF.js';import'./chunk-4GQXAXTZ.js';import'./chunk-UVIUNAQ6.js';import'./chunk-SMRD66T5.js';export{E as DEFAULT_IMAGE_RESOURCE_LIMITS,vf as DRAWING_REL_FROM_H,wf as DRAWING_REL_FROM_V,Xa as IMAGE_WRAP_TARGETS,yf as positionInputFromPropertiesCommand,xf as propertiesCommandHasPositionFields,F as resolveImageResourceLimits,ob as resolveSvgIntrinsicSize,kb as sniffImageMime,uf as validateDrawingPositionInput,pb as validateRasterHeader,zf as validateSetImagePositionCommand}from'./chunk-R75OLPL6.js';import'./chunk-PSZH2VXP.js';export{a as resolveEditorModules}from'./chunk-GQQOL4PV.js';
1
+ export{Ha as AUTO_ZOOM_MODE,Ma as BROWSER_AUTOMATION_CAPABILITIES,va as CHROME_GROUPS,za as CHROME_MENUS,Ca as CHROME_UNAVAILABLE_KEY,Y as DEFAULT_TABLE_CHROME_DRAFT,Q as EMU_PER_POINT,Ia as FIT_WIDTH_ZOOM_MODE,O as IMAGE_OVERLAY_NUDGE_PT,P as IMAGE_OVERLAY_NUDGE_SHIFT_PT,d as LOADING_SNAPSHOT,e as MAX_RESOLVER_FAMILIES,m as PX_PER_CM,l as PX_PER_INCH,s as SNAP_TWIPS_CM,r as SNAP_TWIPS_INCH,ca as TABLE_BORDER_STYLE_OPTIONS,ba as TABLE_BORDER_TARGET_OPTIONS,da as TABLE_BORDER_WIDTH_OPTIONS,Z as TABLE_CHROME_SLOT_IDS,q as TWIPS_PER_CM,p as TWIPS_PER_INCH,f as WORD_DEFAULT_FONT,Ga as ZOOM_MAX,Fa as ZOOM_MIN,ea as applyTableChromePick,y as applyThemeShade,x as applyThemeTint,h as blankDocumentBytes,M as canExecuteImageCommand,L as captureImageMutationPreconditions,Ba as chromeControlCount,Aa as chromeMenuSlots,ia as chromeProbeForSlot,wa as chromeSlotId,ja as commandForSlot,la as commandForSlotValue,ka as commandForTableChromeSlotValue,g as composeFontConfiguration,Ta as computeImageResizeResult,V as computeMovedImagePosition,U as computeResizedImageExtentEmu,Na as createBrowserAutomationHost,La as createDocxEditor,k as createFontSource,Ua as createImageOverlayScrollPort,b as createLayoutShaping,I as cropPercentFromCropPermille,G as cropPercentFromPermille,D as cropPercentFromSourceCrop,H as cropPermilleFromCropPercent,F as cropPermilleFromPercent,Qa as cssPixelsToLayoutPoints,xa as defaultChromeGroups,_ as defaultTableLabel,c as disposeLayoutShaping,v as dragIndent,ua as editorCommandKey,T as emuToOverlayPoints,N as executeImageCommand,Va as finalizeImageOverlayInteraction,ya as formattingBarChromeGroups,n as generateRulerTicks,t as handlePosition,W as isStaleImageInteractionCommit,$ as isTableChromeSlot,Pa as layoutPointsToCssPixels,j as loadFonts,A as lowerColorValueForBorder,B as lowerColorValueForFill,Ea as mountPaginatedSurface,Ra as overlayFrameToSheetCssPixels,i as partOfNodeId,S as pointsToEmu,fa as probeTableChromeCommand,Sa as resizePreservesAspect,C as resolveColorValueToCss,z as resolveThemeColorHex,Ja as resolveZoomMode,o as rulerPageBox,ra as runSave,pa as runTableChromeCommand,ta as runTableCommand,qa as runToolbarCommand,Ka as sameZoomMode,R as selectedDrawingOverlayTargetOf,K as selectedImageStateOf,u as snapTwips,E as sourceCropFromCropPercent,Da as surfaceExtent,Oa as surfacePaintScale,ha as tableChromeIconPaths,ga as tableChromeLabelKeyForTarget,ma as tableChromeToolbarState,aa as tableChromeVisible,X as tableCommandState,sa as tableCommandToolbarState,a as toEditorFontError,na as toolbarCommandState,oa as toolbarCommandStates,J as validateImageCropPercent,w as validateThemeModifier}from'./chunk-NU57YOQE.js';import'./chunk-KTL3UMPK.js';import'./chunk-5XKD3VFP.js';import'./chunk-WU7PUTVA.js';import'./chunk-XJRMFS6O.js';import'./chunk-KCJLRAKT.js';import'./chunk-42PRWWVE.js';import'./chunk-XN634HAC.js';export{E as DEFAULT_IMAGE_RESOURCE_LIMITS,vf as DRAWING_REL_FROM_H,wf as DRAWING_REL_FROM_V,Xa as IMAGE_WRAP_TARGETS,yf as positionInputFromPropertiesCommand,xf as propertiesCommandHasPositionFields,F as resolveImageResourceLimits,ob as resolveSvgIntrinsicSize,kb as sniffImageMime,uf as validateDrawingPositionInput,pb as validateRasterHeader,zf as validateSetImagePositionCommand}from'./chunk-2WIXJ7CW.js';import'./chunk-PSZH2VXP.js';export{a as resolveEditorModules}from'./chunk-GQQOL4PV.js';
@@ -1,4 +1,4 @@
1
- import { D as DrawingProjection } from './tree-op-types-CUCwPWjT.cjs';
1
+ import { D as DrawingProjection } from './tree-op-types-A-SLSKzK.cjs';
2
2
  import { O as OoxmlPackage } from './ooxml-package-CR5us6ad.cjs';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { D as DrawingProjection } from './tree-op-types-D0fTNBVW.js';
1
+ import { D as DrawingProjection } from './tree-op-types-BbzrA-kg.js';
2
2
  import { O as OoxmlPackage } from './ooxml-package-D_CtywTW.js';
3
3
 
4
4
  /**