@eigenpal/docx-editor-core 1.2.1 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/index.d.mts +5 -4
- package/dist/agent/index.d.ts +5 -4
- package/dist/agent/index.js +1 -1
- package/dist/agent/index.mjs +1 -1
- package/dist/anchoredObjectPosition-CS-8BfhO.d.ts +48 -0
- package/dist/anchoredObjectPosition-KJEyF-wr.d.mts +48 -0
- package/dist/{chunk-U4WUDHDK.js → chunk-2SGJZYQF.js} +1 -1
- package/dist/chunk-3ANZ3252.mjs +2 -0
- package/dist/chunk-3G44SFHX.mjs +4 -0
- package/dist/{chunk-4QEETB7U.js → chunk-3QPKTG2Y.js} +2 -2
- package/dist/chunk-3R7QHNI5.js +2 -0
- package/dist/chunk-4GFTMGSV.mjs +1 -0
- package/dist/chunk-4MYKVWNF.js +1 -0
- package/dist/chunk-4RTVLMRZ.js +2 -0
- package/dist/chunk-55XWETY4.mjs +1 -0
- package/dist/chunk-6QO4O52Y.mjs +1 -0
- package/dist/{chunk-THLJYXFB.js → chunk-6V3SFHEM.js} +1 -1
- package/dist/{chunk-6ZXL3EIP.mjs → chunk-7CZEZ3UL.mjs} +1 -1
- package/dist/{chunk-Z5MJYQSD.mjs → chunk-7UZJ5YDF.mjs} +1 -1
- package/dist/{chunk-BXWOLARZ.js → chunk-APNMO5JT.js} +1 -1
- package/dist/{chunk-KZXZWGFX.mjs → chunk-B46V5G46.mjs} +1 -1
- package/dist/chunk-BH3ACQ3M.js +59 -0
- package/dist/chunk-BUCOTKYY.js +1 -0
- package/dist/{chunk-5BLQHXWK.mjs → chunk-CDXCFHOY.mjs} +1 -1
- package/dist/chunk-CHN26LLL.mjs +59 -0
- package/dist/chunk-CZSAC65M.js +2 -0
- package/dist/chunk-D3PRIF3Y.mjs +1 -0
- package/dist/chunk-DE2V4X3B.mjs +1 -0
- package/dist/{chunk-7BVHKWEW.mjs → chunk-DFUWJHKF.mjs} +1 -1
- package/dist/{chunk-UGV4KRQB.js → chunk-DG2CMDSM.js} +1 -1
- package/dist/chunk-DKKTY56Q.js +1 -0
- package/dist/chunk-FIGLFSNR.js +1 -0
- package/dist/{chunk-AMB6Y77B.js → chunk-FQS436KN.js} +1 -1
- package/dist/chunk-FYRJTDC4.mjs +2 -0
- package/dist/chunk-GYWTUUXX.mjs +2 -0
- package/dist/chunk-HPJBZL37.mjs +1 -0
- package/dist/chunk-INDYZOOS.js +1 -0
- package/dist/chunk-IUVQJ6PX.mjs +1 -0
- package/dist/chunk-J3YFJDZD.js +1 -0
- package/dist/chunk-JHTURDPX.mjs +1 -0
- package/dist/{chunk-D62KS7QG.mjs → chunk-LAJPGQEE.mjs} +1 -1
- package/dist/chunk-LERLET2D.js +4 -0
- package/dist/chunk-LX35TFGF.mjs +1 -0
- package/dist/{chunk-BOOHU5EW.mjs → chunk-MOCGHQ4A.mjs} +1 -1
- package/dist/chunk-NAFMAKLK.js +2 -0
- package/dist/chunk-NRWQ65NX.js +1 -0
- package/dist/chunk-OTHV7YV2.js +2 -0
- package/dist/chunk-QLAIOTQB.js +1 -0
- package/dist/{chunk-U4XMGWF7.js → chunk-RAWVGULQ.js} +1 -1
- package/dist/chunk-RQVHKDXK.js +2 -0
- package/dist/chunk-RSU4HTC6.js +1 -0
- package/dist/{chunk-E4JMCA5X.js → chunk-SCK6ZM5V.js} +2 -2
- package/dist/chunk-SWBLJF6R.mjs +2 -0
- package/dist/chunk-UE2ZKRYB.mjs +2 -0
- package/dist/chunk-VOCHZNOF.mjs +1 -0
- package/dist/{chunk-OEXVWIHW.mjs → chunk-W77JXDEV.mjs} +1 -1
- package/dist/chunk-W7CQRQZ6.mjs +1 -0
- package/dist/chunk-WWBNJ7KF.js +1 -0
- package/dist/chunk-WWNOXNEX.mjs +2 -0
- package/dist/chunk-YGWUKRFD.mjs +1 -0
- package/dist/chunk-YM7SMTYY.js +1 -0
- package/dist/{chunk-QKLY4F2J.mjs → chunk-YNUPP7UG.mjs} +1 -1
- package/dist/chunk-YPKIQMPR.js +1 -0
- package/dist/{chunk-HQPWFUP5.js → chunk-Z3LGMBJC.js} +1 -1
- package/dist/{colorResolver-BZ_yScf4.d.ts → colorResolver-8A-qj-LP.d.ts} +1 -1
- package/dist/{colorResolver-C6DtsoFI.d.mts → colorResolver-BCvxTlLF.d.mts} +1 -1
- package/dist/{content-CE-ZdMwG.d.mts → content-3xF4WDE8.d.mts} +51 -7
- package/dist/{content-CYXJ2tfQ.d.ts → content-C8fc_tL6.d.ts} +51 -7
- package/dist/{contentControlValues-gyVPsi6m.d.ts → contentControlValues-DGDKD589.d.ts} +1 -1
- package/dist/{contentControlValues-DAwTWfgR.d.mts → contentControlValues-DjWvoJQ-.d.mts} +1 -1
- package/dist/core-plugins.d.mts +6 -5
- package/dist/core-plugins.d.ts +6 -5
- package/dist/core-plugins.js +1 -1
- package/dist/core-plugins.mjs +1 -1
- package/dist/core.d.mts +12 -11
- package/dist/core.d.ts +12 -11
- package/dist/core.js +1 -1
- package/dist/core.mjs +1 -1
- package/dist/{documentStyles-DToJv9co.d.ts → documentStyles-C7k_8Sye.d.ts} +1 -1
- package/dist/{documentStyles-D87dxl18.d.mts → documentStyles-qR0VR2s0.d.mts} +1 -1
- package/dist/docx/index.d.mts +3 -2
- package/dist/docx/index.d.ts +3 -2
- package/dist/docx/index.js +1 -1
- package/dist/docx/index.mjs +1 -1
- package/dist/docx/parser.d.mts +3 -2
- package/dist/docx/parser.d.ts +3 -2
- package/dist/docx/parser.js +1 -1
- package/dist/docx/parser.mjs +1 -1
- package/dist/docx/rezip.d.mts +3 -2
- package/dist/docx/rezip.d.ts +3 -2
- package/dist/docx/rezip.js +1 -1
- package/dist/docx/rezip.mjs +1 -1
- package/dist/docx/serializer/index.d.mts +42 -4
- package/dist/docx/serializer/index.d.ts +42 -4
- package/dist/docx/serializer/index.js +1 -1
- package/dist/docx/serializer/index.mjs +1 -1
- package/dist/editor/index.d.mts +128 -0
- package/dist/editor/index.d.ts +128 -0
- package/dist/editor/index.js +1 -0
- package/dist/editor/index.mjs +1 -0
- package/dist/{fontLoader-Z7pqeNvZ.d.mts → fontLoader-CUS1BPv7.d.mts} +1 -1
- package/dist/{fontLoader-Cm02v7PO.d.ts → fontLoader-Dl9SEKex.d.ts} +1 -1
- package/dist/{footnotes-lCH_P3N3.d.mts → footnotes-BZ24OTAT.d.mts} +25 -2
- package/dist/{footnotes-skVvEHvZ.d.ts → footnotes-DMsicPGd.d.ts} +25 -2
- package/dist/{headerFooterLayout-Bd58Tum3.d.ts → headerFooterLayout-AtAOhM8E.d.ts} +22 -6
- package/dist/{headerFooterLayout-CuIJiIzi.d.mts → headerFooterLayout-CU6hvszp.d.mts} +22 -6
- package/dist/headless.d.mts +47 -11
- package/dist/headless.d.ts +47 -11
- package/dist/headless.js +1 -1
- package/dist/headless.mjs +1 -1
- package/dist/layout-bridge/clickToPositionDom.d.mts +26 -1
- package/dist/layout-bridge/clickToPositionDom.d.ts +26 -1
- package/dist/layout-bridge/clickToPositionDom.js +1 -1
- package/dist/layout-bridge/clickToPositionDom.mjs +1 -1
- package/dist/layout-bridge/index.d.mts +134 -8
- package/dist/layout-bridge/index.d.ts +134 -8
- package/dist/layout-bridge/index.js +1 -1
- package/dist/layout-bridge/index.mjs +1 -1
- package/dist/layout-bridge/measuring/index.d.mts +7 -75
- package/dist/layout-bridge/measuring/index.d.ts +7 -75
- package/dist/layout-bridge/measuring/index.js +1 -1
- package/dist/layout-bridge/measuring/index.mjs +1 -1
- package/dist/layout-bridge/tableInsertHover.js +1 -1
- package/dist/layout-bridge/tableInsertHover.mjs +1 -1
- package/dist/layout-bridge/toFlowBlocks.d.mts +3 -2
- package/dist/layout-bridge/toFlowBlocks.d.ts +3 -2
- package/dist/layout-bridge/toFlowBlocks.js +1 -1
- package/dist/layout-bridge/toFlowBlocks.mjs +1 -1
- package/dist/layout-engine/index.d.mts +16 -3
- package/dist/layout-engine/index.d.ts +16 -3
- package/dist/layout-engine/index.js +1 -1
- package/dist/layout-engine/index.mjs +1 -1
- package/dist/layout-engine/types.d.mts +22 -1
- package/dist/layout-engine/types.d.ts +22 -1
- package/dist/layout-painter/index.d.mts +7 -5
- package/dist/layout-painter/index.d.ts +7 -5
- package/dist/layout-painter/index.js +1 -1
- package/dist/layout-painter/index.mjs +1 -1
- package/dist/layout-painter/renderPage.d.mts +15 -6
- package/dist/layout-painter/renderPage.d.ts +15 -6
- package/dist/layout-painter/renderPage.js +1 -1
- package/dist/layout-painter/renderPage.mjs +1 -1
- package/dist/managers/AutoSaveManager.d.mts +3 -2
- package/dist/managers/AutoSaveManager.d.ts +3 -2
- package/dist/managers/TableSelectionManager.d.mts +3 -2
- package/dist/managers/TableSelectionManager.d.ts +3 -2
- package/dist/managers/types.d.mts +3 -2
- package/dist/managers/types.d.ts +3 -2
- package/dist/mcp-cli.mjs +23 -23
- package/dist/mcp.d.mts +4 -3
- package/dist/mcp.d.ts +4 -3
- package/dist/mcp.js +3 -3
- package/dist/mcp.mjs +2 -2
- package/dist/measureBlocksPipeline-BMqbRFQB.d.mts +96 -0
- package/dist/measureBlocksPipeline-iYNzAH-o.d.ts +96 -0
- package/dist/{nodes-BNkRKBBX.d.ts → nodes-75Q9GBxV.d.ts} +1 -1
- package/dist/{nodes-Bz-UHhLE.d.mts → nodes-cEI7hVY2.d.mts} +1 -1
- package/dist/prosemirror/applyFormatting.d.mts +67 -0
- package/dist/prosemirror/applyFormatting.d.ts +67 -0
- package/dist/prosemirror/applyFormatting.js +1 -0
- package/dist/prosemirror/applyFormatting.mjs +1 -0
- package/dist/prosemirror/commands/formatting.js +1 -1
- package/dist/prosemirror/commands/formatting.mjs +1 -1
- package/dist/prosemirror/commands/index.d.mts +20 -1
- package/dist/prosemirror/commands/index.d.ts +20 -1
- package/dist/prosemirror/commands/index.js +1 -1
- package/dist/prosemirror/commands/index.mjs +1 -1
- package/dist/prosemirror/commands/paragraph.js +1 -1
- package/dist/prosemirror/commands/paragraph.mjs +1 -1
- package/dist/prosemirror/commentIdAllocator.d.mts +50 -0
- package/dist/prosemirror/commentIdAllocator.d.ts +50 -0
- package/dist/prosemirror/commentIdAllocator.js +1 -0
- package/dist/prosemirror/commentIdAllocator.mjs +1 -0
- package/dist/prosemirror/commentOps.d.mts +46 -0
- package/dist/prosemirror/commentOps.d.ts +46 -0
- package/dist/prosemirror/commentOps.js +1 -0
- package/dist/prosemirror/commentOps.mjs +1 -0
- package/dist/prosemirror/conversion/fromProseDoc.d.mts +3 -2
- package/dist/prosemirror/conversion/fromProseDoc.d.ts +3 -2
- package/dist/prosemirror/conversion/fromProseDoc.js +1 -1
- package/dist/prosemirror/conversion/fromProseDoc.mjs +1 -1
- package/dist/prosemirror/conversion/index.d.mts +3 -2
- package/dist/prosemirror/conversion/index.d.ts +3 -2
- package/dist/prosemirror/conversion/index.js +1 -1
- package/dist/prosemirror/conversion/index.mjs +1 -1
- package/dist/prosemirror/editor.css +12 -2
- package/dist/prosemirror/extensions/index.js +1 -1
- package/dist/prosemirror/extensions/index.mjs +1 -1
- package/dist/prosemirror/imageCommit.d.mts +35 -0
- package/dist/prosemirror/imageCommit.d.ts +35 -0
- package/dist/prosemirror/imageCommit.js +1 -0
- package/dist/prosemirror/imageCommit.mjs +1 -0
- package/dist/prosemirror/index.d.mts +6 -5
- package/dist/prosemirror/index.d.ts +6 -5
- package/dist/prosemirror/index.js +2 -2
- package/dist/prosemirror/index.mjs +1 -1
- package/dist/prosemirror/paraText.d.mts +52 -0
- package/dist/prosemirror/paraText.d.ts +52 -0
- package/dist/prosemirror/paraText.js +1 -0
- package/dist/prosemirror/paraText.mjs +1 -0
- package/dist/prosemirror/plugins/index.d.mts +4 -3
- package/dist/prosemirror/plugins/index.d.ts +4 -3
- package/dist/prosemirror/queries.d.mts +65 -0
- package/dist/prosemirror/queries.d.ts +65 -0
- package/dist/prosemirror/queries.js +2 -0
- package/dist/prosemirror/queries.mjs +2 -0
- package/dist/prosemirror/schema/index.d.mts +3 -2
- package/dist/prosemirror/schema/index.d.ts +3 -2
- package/dist/prosemirror/schema/index.js +1 -1
- package/dist/prosemirror/schema/index.mjs +1 -1
- package/dist/prosemirror/styles/index.d.mts +1 -1
- package/dist/prosemirror/styles/index.d.ts +1 -1
- package/dist/prosemirror/tableResize.d.mts +58 -0
- package/dist/prosemirror/tableResize.d.ts +58 -0
- package/dist/prosemirror/tableResize.js +1 -0
- package/dist/prosemirror/tableResize.mjs +1 -0
- package/dist/prosemirror/utils/extractTrackedChanges.d.mts +2 -1
- package/dist/prosemirror/utils/extractTrackedChanges.d.ts +2 -1
- package/dist/{registry-Cpyybgij.d.mts → registry-NLnxX7pq.d.mts} +1 -1
- package/dist/{registry-E5pahPKL.d.ts → registry-egK81C_z.d.ts} +1 -1
- package/dist/sectionPropertiesSerializer-D86QlzlT.d.mts +59 -0
- package/dist/sectionPropertiesSerializer-uXyGONxu.d.ts +59 -0
- package/dist/{styles-EI2lxeEN.d.mts → styles-BOJ93SAm.d.mts} +1 -1
- package/dist/{styles-BBv7doYK.d.ts → styles-BWqX2AS-.d.ts} +1 -1
- package/dist/types/content.d.mts +2 -1
- package/dist/types/content.d.ts +2 -1
- package/dist/types/content.js +1 -1
- package/dist/types/content.mjs +1 -0
- package/dist/types/document.d.mts +17 -6
- package/dist/types/document.d.ts +17 -6
- package/dist/types/document.js +1 -1
- package/dist/types/document.mjs +1 -0
- package/dist/{types-DXG7vqe9.d.ts → types-DDQWU7-j.d.ts} +1 -1
- package/dist/{types-dYdjUZMo.d.mts → types-DTF0N7UE.d.mts} +1 -1
- package/dist/utils/autoScroll.d.mts +24 -0
- package/dist/utils/autoScroll.d.ts +24 -0
- package/dist/utils/autoScroll.js +1 -0
- package/dist/utils/autoScroll.mjs +1 -0
- package/dist/utils/comments.d.mts +2 -1
- package/dist/utils/comments.d.ts +2 -1
- package/dist/utils/index.d.mts +5 -4
- package/dist/utils/index.d.ts +5 -4
- package/dist/{variableDetector-HPZbJ_gw.d.ts → variableDetector-1mxzPfs2.d.ts} +1 -1
- package/dist/{variableDetector-C7BLz9sJ.d.mts → variableDetector-CaY-sDau.d.mts} +1 -1
- package/dist/watermark-DAcnAs_J.d.mts +77 -0
- package/dist/watermark-DAcnAs_J.d.ts +77 -0
- package/package.json +73 -1
- package/dist/chunk-2EQGBVPV.js +0 -2
- package/dist/chunk-44FHVKSI.js +0 -1
- package/dist/chunk-44JKHPGF.mjs +0 -2
- package/dist/chunk-5M7TI6TV.js +0 -1
- package/dist/chunk-6Y6LON6Y.mjs +0 -1
- package/dist/chunk-7RDCZLTU.js +0 -1
- package/dist/chunk-7ZN4WI5N.mjs +0 -4
- package/dist/chunk-CCPBNE2F.mjs +0 -2
- package/dist/chunk-DV6GWBUJ.js +0 -2
- package/dist/chunk-EQAORQC3.mjs +0 -1
- package/dist/chunk-FYKRDDKG.js +0 -1
- package/dist/chunk-GUQFNJHE.mjs +0 -1
- package/dist/chunk-ICE6NC3S.mjs +0 -1
- package/dist/chunk-IFUED5ZS.mjs +0 -1
- package/dist/chunk-KGTEBLB6.js +0 -1
- package/dist/chunk-KRN6YSR2.mjs +0 -1
- package/dist/chunk-L72YAV5N.js +0 -3
- package/dist/chunk-LTHT4A4S.js +0 -1
- package/dist/chunk-MERJFGEP.mjs +0 -59
- package/dist/chunk-MP4QSEO2.mjs +0 -1
- package/dist/chunk-PVAVS3IU.js +0 -1
- package/dist/chunk-QYF7BRG3.js +0 -2
- package/dist/chunk-RKDVY7I3.mjs +0 -1
- package/dist/chunk-ROG4MNOR.js +0 -4
- package/dist/chunk-SORYYVJ7.js +0 -1
- package/dist/chunk-SZIOF5SG.js +0 -59
- package/dist/chunk-VMRUBLPI.js +0 -1
- package/dist/chunk-WKUHYMDO.mjs +0 -1
- package/dist/chunk-WLDI6N3B.mjs +0 -3
- package/dist/chunk-WLHNIXWC.mjs +0 -2
- package/dist/chunk-YMZ3F2FZ.mjs +0 -1
- package/dist/chunk-ZBFNOJGY.js +0 -1
- package/dist/documentSerializer-Bghq9rFI.d.mts +0 -36
- package/dist/documentSerializer-C4lFC60P.d.ts +0 -36
|
@@ -13,15 +13,17 @@
|
|
|
13
13
|
* @public
|
|
14
14
|
*/
|
|
15
15
|
import { ImageRun, Page, ParagraphBlock, MeasuredLine, TabStop, Run, ParagraphFragment, ParagraphMeasure, ParagraphBorders, Fragment, TableFragment, TableBlock, TableMeasure, ImageFragment, ImageBlock, ImageMeasure, TextBoxFragment, TextBoxBlock, TextBoxMeasure, FlowBlock, Measure, Layout } from '../layout-engine/types.mjs';
|
|
16
|
+
import '../anchoredObjectPosition-KJEyF-wr.mjs';
|
|
16
17
|
import { Node } from 'prosemirror-model';
|
|
17
|
-
import { I as ImageAttrs } from '../nodes-
|
|
18
|
+
import { I as ImageAttrs } from '../nodes-cEI7hVY2.mjs';
|
|
18
19
|
import { I as ImageLayoutTarget } from '../ImageExtension-BN327PNe.mjs';
|
|
19
20
|
import { WrapType } from '../docx/wrapTypes.mjs';
|
|
20
|
-
import { F as FootnoteRenderItem, H as HeaderFooterContent } from '../footnotes-
|
|
21
|
-
export { a as HeaderFooterLayoutInfo, r as resolveHeaderFooterFloatingTablePosition } from '../footnotes-
|
|
21
|
+
import { F as FootnoteRenderItem, H as HeaderFooterContent } from '../footnotes-BZ24OTAT.mjs';
|
|
22
|
+
export { a as HeaderFooterLayoutInfo, r as resolveHeaderFooterFloatLeft, b as resolveHeaderFooterFloatingTablePosition } from '../footnotes-BZ24OTAT.mjs';
|
|
22
23
|
import { B as BorderSpec } from '../colors-C3vA7HUU.mjs';
|
|
23
|
-
import {
|
|
24
|
-
import '../
|
|
24
|
+
import { W as Watermark } from '../watermark-DAcnAs_J.mjs';
|
|
25
|
+
import { T as Theme } from '../styles-BOJ93SAm.mjs';
|
|
26
|
+
import '../content-3xF4WDE8.mjs';
|
|
25
27
|
import '../formatting-BH4hcZiq.mjs';
|
|
26
28
|
|
|
27
29
|
/**
|
|
@@ -222,6 +224,8 @@ interface RenderPageOptions {
|
|
|
222
224
|
footnoteArea?: FootnoteRenderItem[];
|
|
223
225
|
/** Comment IDs that are resolved — skip highlight for these */
|
|
224
226
|
resolvedCommentIds?: Set<number>;
|
|
227
|
+
/** Watermark to paint behind body content (resolved from the page's section header). */
|
|
228
|
+
watermark?: Watermark;
|
|
225
229
|
}
|
|
226
230
|
/**
|
|
227
231
|
* Apply page styles to an element. Exported because virtualization.ts uses it
|
|
@@ -634,6 +638,11 @@ interface BlockLookupEntry {
|
|
|
634
638
|
* Block lookup map type
|
|
635
639
|
*/
|
|
636
640
|
type BlockLookup = Map<string, BlockLookupEntry>;
|
|
641
|
+
/**
|
|
642
|
+
* Build the painter's `block.id → { block, measure }` lookup from the parallel
|
|
643
|
+
* blocks/measures arrays. Shared by both adapters' paint step.
|
|
644
|
+
*/
|
|
645
|
+
declare function buildBlockLookup(blocks: FlowBlock[], measures: Measure[]): BlockLookup;
|
|
637
646
|
/**
|
|
638
647
|
* Painter options
|
|
639
648
|
*/
|
|
@@ -714,4 +723,4 @@ declare class LayoutPainter {
|
|
|
714
723
|
*/
|
|
715
724
|
declare function createPainter(options?: PainterOptions): LayoutPainter;
|
|
716
725
|
|
|
717
|
-
export { type BlockLookup as B, FRAGMENT_CLASS_NAMES as F, type FloatingImagePaintRecord, type FloatingImagesLayerOptions, FootnoteRenderItem, HeaderFooterContent, IMAGE_CLASS_NAMES as I, LAYOUT_IMAGE_CLASSES as L, type PainterOptions as P, PAGE_CLASS_NAMES, type RenderContext, type RenderPageOptions, type RenderPagesUpdateKind, TABLE_CLASS_NAMES as T, type BlockLookupEntry as a, applyPageStyles, IMAGE_LAYOUT_OPTIONS as b, type ImageHitTestResult as c, type ImageLayoutIconHint as d, type ImageLayoutOptionDef as e, LayoutPainter as f, floatingImageIsBehindDoc, floatingImageWrapsText, TEXTBOX_CLASS_NAMES as g, applySdtFocus as h,
|
|
726
|
+
export { type BlockLookup as B, FRAGMENT_CLASS_NAMES as F, type FloatingImagePaintRecord, type FloatingImagesLayerOptions, FootnoteRenderItem, HeaderFooterContent, IMAGE_CLASS_NAMES as I, LAYOUT_IMAGE_CLASSES as L, type PainterOptions as P, PAGE_CLASS_NAMES, type RenderContext, type RenderPageOptions, type RenderPagesUpdateKind, TABLE_CLASS_NAMES as T, type BlockLookupEntry as a, applyPageStyles, IMAGE_LAYOUT_OPTIONS as b, type ImageHitTestResult as c, type ImageLayoutIconHint as d, type ImageLayoutOptionDef as e, LayoutPainter as f, floatingImageIsBehindDoc, floatingImageWrapsText, TEXTBOX_CLASS_NAMES as g, applySdtFocus as h, buildBlockLookup as i, isFloatingImageRun, isTextWrappingFloatingImageRun, captureInlinePositionEmu as j, createPainter as k, deriveLayoutChoice as l, enclosingSdtGroupIds as m, findImageElement as n, hitTestImage as o, isImageLayoutOptionEnabled as p, renderImageFragment as q, renderFragment as r, renderAllPagesNow, renderFloatingImagesLayer, renderPage, renderPages, renderLine as s, renderParagraphFragment as t, renderTableFragment as u, renderTextBoxFragment as v, sliceRunsForLine as w, toolbarValueToLayoutTarget as x };
|
|
@@ -13,15 +13,17 @@
|
|
|
13
13
|
* @public
|
|
14
14
|
*/
|
|
15
15
|
import { ImageRun, Page, ParagraphBlock, MeasuredLine, TabStop, Run, ParagraphFragment, ParagraphMeasure, ParagraphBorders, Fragment, TableFragment, TableBlock, TableMeasure, ImageFragment, ImageBlock, ImageMeasure, TextBoxFragment, TextBoxBlock, TextBoxMeasure, FlowBlock, Measure, Layout } from '../layout-engine/types.js';
|
|
16
|
+
import '../anchoredObjectPosition-CS-8BfhO.js';
|
|
16
17
|
import { Node } from 'prosemirror-model';
|
|
17
|
-
import { I as ImageAttrs } from '../nodes-
|
|
18
|
+
import { I as ImageAttrs } from '../nodes-75Q9GBxV.js';
|
|
18
19
|
import { I as ImageLayoutTarget } from '../ImageExtension-BlI5afZD.js';
|
|
19
20
|
import { WrapType } from '../docx/wrapTypes.js';
|
|
20
|
-
import { F as FootnoteRenderItem, H as HeaderFooterContent } from '../footnotes-
|
|
21
|
-
export { a as HeaderFooterLayoutInfo, r as resolveHeaderFooterFloatingTablePosition } from '../footnotes-
|
|
21
|
+
import { F as FootnoteRenderItem, H as HeaderFooterContent } from '../footnotes-DMsicPGd.js';
|
|
22
|
+
export { a as HeaderFooterLayoutInfo, r as resolveHeaderFooterFloatLeft, b as resolveHeaderFooterFloatingTablePosition } from '../footnotes-DMsicPGd.js';
|
|
22
23
|
import { B as BorderSpec } from '../colors-C3vA7HUU.js';
|
|
23
|
-
import {
|
|
24
|
-
import '../
|
|
24
|
+
import { W as Watermark } from '../watermark-DAcnAs_J.js';
|
|
25
|
+
import { T as Theme } from '../styles-BWqX2AS-.js';
|
|
26
|
+
import '../content-C8fc_tL6.js';
|
|
25
27
|
import '../formatting-_OXU8gLB.js';
|
|
26
28
|
|
|
27
29
|
/**
|
|
@@ -222,6 +224,8 @@ interface RenderPageOptions {
|
|
|
222
224
|
footnoteArea?: FootnoteRenderItem[];
|
|
223
225
|
/** Comment IDs that are resolved — skip highlight for these */
|
|
224
226
|
resolvedCommentIds?: Set<number>;
|
|
227
|
+
/** Watermark to paint behind body content (resolved from the page's section header). */
|
|
228
|
+
watermark?: Watermark;
|
|
225
229
|
}
|
|
226
230
|
/**
|
|
227
231
|
* Apply page styles to an element. Exported because virtualization.ts uses it
|
|
@@ -634,6 +638,11 @@ interface BlockLookupEntry {
|
|
|
634
638
|
* Block lookup map type
|
|
635
639
|
*/
|
|
636
640
|
type BlockLookup = Map<string, BlockLookupEntry>;
|
|
641
|
+
/**
|
|
642
|
+
* Build the painter's `block.id → { block, measure }` lookup from the parallel
|
|
643
|
+
* blocks/measures arrays. Shared by both adapters' paint step.
|
|
644
|
+
*/
|
|
645
|
+
declare function buildBlockLookup(blocks: FlowBlock[], measures: Measure[]): BlockLookup;
|
|
637
646
|
/**
|
|
638
647
|
* Painter options
|
|
639
648
|
*/
|
|
@@ -714,4 +723,4 @@ declare class LayoutPainter {
|
|
|
714
723
|
*/
|
|
715
724
|
declare function createPainter(options?: PainterOptions): LayoutPainter;
|
|
716
725
|
|
|
717
|
-
export { type BlockLookup as B, FRAGMENT_CLASS_NAMES as F, type FloatingImagePaintRecord, type FloatingImagesLayerOptions, FootnoteRenderItem, HeaderFooterContent, IMAGE_CLASS_NAMES as I, LAYOUT_IMAGE_CLASSES as L, type PainterOptions as P, PAGE_CLASS_NAMES, type RenderContext, type RenderPageOptions, type RenderPagesUpdateKind, TABLE_CLASS_NAMES as T, type BlockLookupEntry as a, applyPageStyles, IMAGE_LAYOUT_OPTIONS as b, type ImageHitTestResult as c, type ImageLayoutIconHint as d, type ImageLayoutOptionDef as e, LayoutPainter as f, floatingImageIsBehindDoc, floatingImageWrapsText, TEXTBOX_CLASS_NAMES as g, applySdtFocus as h,
|
|
726
|
+
export { type BlockLookup as B, FRAGMENT_CLASS_NAMES as F, type FloatingImagePaintRecord, type FloatingImagesLayerOptions, FootnoteRenderItem, HeaderFooterContent, IMAGE_CLASS_NAMES as I, LAYOUT_IMAGE_CLASSES as L, type PainterOptions as P, PAGE_CLASS_NAMES, type RenderContext, type RenderPageOptions, type RenderPagesUpdateKind, TABLE_CLASS_NAMES as T, type BlockLookupEntry as a, applyPageStyles, IMAGE_LAYOUT_OPTIONS as b, type ImageHitTestResult as c, type ImageLayoutIconHint as d, type ImageLayoutOptionDef as e, LayoutPainter as f, floatingImageIsBehindDoc, floatingImageWrapsText, TEXTBOX_CLASS_NAMES as g, applySdtFocus as h, buildBlockLookup as i, isFloatingImageRun, isTextWrappingFloatingImageRun, captureInlinePositionEmu as j, createPainter as k, deriveLayoutChoice as l, enclosingSdtGroupIds as m, findImageElement as n, hitTestImage as o, isImageLayoutOptionEnabled as p, renderImageFragment as q, renderFragment as r, renderAllPagesNow, renderFloatingImagesLayer, renderPage, renderPages, renderLine as s, renderParagraphFragment as t, renderTableFragment as u, renderTextBoxFragment as v, sliceRunsForLine as w, toolbarValueToLayoutTarget as x };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkQLAIOTQB_js=require('../chunk-QLAIOTQB.js');require('../chunk-FQS436KN.js');var chunkJ3YFJDZD_js=require('../chunk-J3YFJDZD.js');require('../chunk-RSU4HTC6.js'),require('../chunk-IMKU4O3P.js'),require('../chunk-DROCYKAR.js'),require('../chunk-LERLET2D.js'),require('../chunk-FIGLFSNR.js'),require('../chunk-BUCOTKYY.js'),require('../chunk-C45EFOVP.js'),require('../chunk-ISKTBM4L.js'),require('../chunk-JFZIXFRC.js'),require('../chunk-RQVHKDXK.js'),require('../chunk-SCK6ZM5V.js'),require('../chunk-Z3LGMBJC.js'),require('../chunk-3R7QHNI5.js'),require('../chunk-WWBNJ7KF.js'),require('../chunk-4RTVLMRZ.js'),require('../chunk-BHBOAP6Z.js'),require('../chunk-MZ7LW5CH.js'),require('../chunk-N3Y5BUKV.js'),require('../chunk-WVERBZZU.js'),require('../chunk-6LVPRTB6.js'),require('../chunk-LWH66Q7Q.js'),require('../chunk-TUIEV7Q7.js'),require('../chunk-7HANRHHL.js'),require('../chunk-MJ5FQX7Q.js'),require('../chunk-C2BAPYGJ.js'),require('../chunk-4Q2IP5FW.js'),require('../chunk-GSKMHXHG.js'),require('../chunk-DC7S76ZX.js');Object.defineProperty(exports,"PAGE_CLASS_NAMES",{enumerable:true,get:function(){return chunkQLAIOTQB_js.D}});Object.defineProperty(exports,"applyPageStyles",{enumerable:true,get:function(){return chunkQLAIOTQB_js.E}});Object.defineProperty(exports,"renderAllPagesNow",{enumerable:true,get:function(){return chunkQLAIOTQB_js.C}});Object.defineProperty(exports,"renderFloatingImagesLayer",{enumerable:true,get:function(){return chunkQLAIOTQB_js.u}});Object.defineProperty(exports,"renderPage",{enumerable:true,get:function(){return chunkQLAIOTQB_js.F}});Object.defineProperty(exports,"renderPages",{enumerable:true,get:function(){return chunkQLAIOTQB_js.B}});Object.defineProperty(exports,"resolveHeaderFooterFloatLeft",{enumerable:true,get:function(){return chunkQLAIOTQB_js.z}});Object.defineProperty(exports,"resolveHeaderFooterFloatingTablePosition",{enumerable:true,get:function(){return chunkQLAIOTQB_js.A}});Object.defineProperty(exports,"floatingImageIsBehindDoc",{enumerable:true,get:function(){return chunkJ3YFJDZD_js.b}});Object.defineProperty(exports,"floatingImageWrapsText",{enumerable:true,get:function(){return chunkJ3YFJDZD_js.a}});Object.defineProperty(exports,"isFloatingImageRun",{enumerable:true,get:function(){return chunkJ3YFJDZD_js.c}});Object.defineProperty(exports,"isTextWrappingFloatingImageRun",{enumerable:true,get:function(){return chunkJ3YFJDZD_js.d}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{D as PAGE_CLASS_NAMES,E as applyPageStyles,C as renderAllPagesNow,u as renderFloatingImagesLayer,F as renderPage,B as renderPages,z as resolveHeaderFooterFloatLeft,A as resolveHeaderFooterFloatingTablePosition}from'../chunk-YGWUKRFD.mjs';import'../chunk-B46V5G46.mjs';export{b as floatingImageIsBehindDoc,a as floatingImageWrapsText,c as isFloatingImageRun,d as isTextWrappingFloatingImageRun}from'../chunk-55XWETY4.mjs';import'../chunk-JHTURDPX.mjs';import'../chunk-FCJWLEKT.mjs';import'../chunk-7E5VBRDL.mjs';import'../chunk-3G44SFHX.mjs';import'../chunk-MOCGHQ4A.mjs';import'../chunk-IUVQJ6PX.mjs';import'../chunk-7OW3VCZE.mjs';import'../chunk-LK6I3HMH.mjs';import'../chunk-QPFJJPIC.mjs';import'../chunk-GYWTUUXX.mjs';import'../chunk-7CZEZ3UL.mjs';import'../chunk-W77JXDEV.mjs';import'../chunk-3ANZ3252.mjs';import'../chunk-4GFTMGSV.mjs';import'../chunk-SWBLJF6R.mjs';import'../chunk-MOKKS75W.mjs';import'../chunk-OZMNIX6U.mjs';import'../chunk-AMENZY5F.mjs';import'../chunk-U67MWOPZ.mjs';import'../chunk-BGY3CB37.mjs';import'../chunk-2XP6GLA4.mjs';import'../chunk-ZX26QZJ5.mjs';import'../chunk-MJ6XZFVD.mjs';import'../chunk-67LVRQIR.mjs';import'../chunk-LE67NTCN.mjs';import'../chunk-VW22RZ6C.mjs';import'../chunk-DI6CRWSW.mjs';import'../chunk-QYUPLKLP.mjs';
|
|
@@ -17,9 +17,10 @@ import { Document } from '../types/document.mjs';
|
|
|
17
17
|
import 'prosemirror-view';
|
|
18
18
|
import '../colors-C3vA7HUU.mjs';
|
|
19
19
|
import '../formatting-BH4hcZiq.mjs';
|
|
20
|
-
import '../content-
|
|
20
|
+
import '../content-3xF4WDE8.mjs';
|
|
21
21
|
import '../docx/wrapTypes.mjs';
|
|
22
|
-
import '../
|
|
22
|
+
import '../watermark-DAcnAs_J.mjs';
|
|
23
|
+
import '../styles-BOJ93SAm.mjs';
|
|
23
24
|
|
|
24
25
|
/**
|
|
25
26
|
* AutoSaveManager
|
|
@@ -17,9 +17,10 @@ import { Document } from '../types/document.js';
|
|
|
17
17
|
import 'prosemirror-view';
|
|
18
18
|
import '../colors-C3vA7HUU.js';
|
|
19
19
|
import '../formatting-_OXU8gLB.js';
|
|
20
|
-
import '../content-
|
|
20
|
+
import '../content-C8fc_tL6.js';
|
|
21
21
|
import '../docx/wrapTypes.js';
|
|
22
|
-
import '../
|
|
22
|
+
import '../watermark-DAcnAs_J.js';
|
|
23
|
+
import '../styles-BWqX2AS-.js';
|
|
23
24
|
|
|
24
25
|
/**
|
|
25
26
|
* AutoSaveManager
|
|
@@ -20,12 +20,13 @@
|
|
|
20
20
|
import { S as Subscribable } from '../Subscribable-DOz6Ohoo.mjs';
|
|
21
21
|
import { TableSelectionSnapshot, CellCoordinates } from './types.mjs';
|
|
22
22
|
import { Document } from '../types/document.mjs';
|
|
23
|
-
import { T as Table } from '../content-
|
|
23
|
+
import { T as Table } from '../content-3xF4WDE8.mjs';
|
|
24
24
|
import 'prosemirror-view';
|
|
25
25
|
import '../colors-C3vA7HUU.mjs';
|
|
26
26
|
import '../formatting-BH4hcZiq.mjs';
|
|
27
27
|
import '../docx/wrapTypes.mjs';
|
|
28
|
-
import '../
|
|
28
|
+
import '../watermark-DAcnAs_J.mjs';
|
|
29
|
+
import '../styles-BOJ93SAm.mjs';
|
|
29
30
|
|
|
30
31
|
/**
|
|
31
32
|
* TableSelectionManager
|
|
@@ -20,12 +20,13 @@
|
|
|
20
20
|
import { S as Subscribable } from '../Subscribable-DOz6Ohoo.js';
|
|
21
21
|
import { TableSelectionSnapshot, CellCoordinates } from './types.js';
|
|
22
22
|
import { Document } from '../types/document.js';
|
|
23
|
-
import { T as Table } from '../content-
|
|
23
|
+
import { T as Table } from '../content-C8fc_tL6.js';
|
|
24
24
|
import 'prosemirror-view';
|
|
25
25
|
import '../colors-C3vA7HUU.js';
|
|
26
26
|
import '../formatting-_OXU8gLB.js';
|
|
27
27
|
import '../docx/wrapTypes.js';
|
|
28
|
-
import '../
|
|
28
|
+
import '../watermark-DAcnAs_J.js';
|
|
29
|
+
import '../styles-BWqX2AS-.js';
|
|
29
30
|
|
|
30
31
|
/**
|
|
31
32
|
* TableSelectionManager
|
|
@@ -9,9 +9,10 @@ import { EditorView } from 'prosemirror-view';
|
|
|
9
9
|
import { Document } from '../types/document.mjs';
|
|
10
10
|
import '../colors-C3vA7HUU.mjs';
|
|
11
11
|
import '../formatting-BH4hcZiq.mjs';
|
|
12
|
-
import '../content-
|
|
12
|
+
import '../content-3xF4WDE8.mjs';
|
|
13
13
|
import '../docx/wrapTypes.mjs';
|
|
14
|
-
import '../
|
|
14
|
+
import '../watermark-DAcnAs_J.mjs';
|
|
15
|
+
import '../styles-BOJ93SAm.mjs';
|
|
15
16
|
|
|
16
17
|
/**
|
|
17
18
|
* Manager Types
|
package/dist/managers/types.d.ts
CHANGED
|
@@ -9,9 +9,10 @@ import { EditorView } from 'prosemirror-view';
|
|
|
9
9
|
import { Document } from '../types/document.js';
|
|
10
10
|
import '../colors-C3vA7HUU.js';
|
|
11
11
|
import '../formatting-_OXU8gLB.js';
|
|
12
|
-
import '../content-
|
|
12
|
+
import '../content-C8fc_tL6.js';
|
|
13
13
|
import '../docx/wrapTypes.js';
|
|
14
|
-
import '../
|
|
14
|
+
import '../watermark-DAcnAs_J.js';
|
|
15
|
+
import '../styles-BWqX2AS-.js';
|
|
15
16
|
|
|
16
17
|
/**
|
|
17
18
|
* Manager Types
|