@eigenpal/docx-editor-core 1.0.2 → 1.0.3
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/README.md +1 -1
- package/dist/agent/index.d.mts +4 -4
- package/dist/agent/index.d.ts +4 -4
- package/dist/agent/index.js +1 -1
- package/dist/agent/index.mjs +1 -1
- package/dist/chunk-2IE6UDHJ.mjs +2 -0
- package/dist/chunk-3AZWLVLC.js +1 -0
- package/dist/chunk-3JXR6YU4.mjs +1 -0
- package/dist/{chunk-LTYW3NLX.js → chunk-3NLVHZMT.js} +2 -2
- package/dist/chunk-5SU4HPQS.mjs +1 -0
- package/dist/{chunk-6PR4XHQ3.mjs → chunk-7PX32GLB.mjs} +1 -1
- package/dist/{chunk-AFMMYLPX.js → chunk-ABBG4WD2.js} +2 -2
- package/dist/chunk-AHXPHBMT.js +1 -0
- package/dist/chunk-B6LYBJ4H.mjs +1 -0
- package/dist/chunk-BFB4PRS4.mjs +1 -0
- package/dist/chunk-BRHHK4MG.mjs +2 -0
- package/dist/chunk-CUXXRGPQ.mjs +1 -0
- package/dist/chunk-D536HC5M.js +2 -0
- package/dist/{chunk-GFQM7PKY.js → chunk-D5E5TA74.js} +1 -1
- package/dist/chunk-EPX7BBJD.js +2 -0
- package/dist/chunk-EQVNAHL7.mjs +1 -0
- package/dist/{chunk-EXOP727C.mjs → chunk-EV6W6KXG.mjs} +1 -1
- package/dist/chunk-FCJWLEKT.mjs +1 -0
- package/dist/{chunk-XDH55WXX.mjs → chunk-G7AKYAKU.mjs} +1 -1
- package/dist/{chunk-AGNZEOVL.mjs → chunk-GHQS3I2W.mjs} +1 -1
- package/dist/chunk-HAAMO2Z2.mjs +1 -0
- package/dist/chunk-HL5PQT3A.mjs +2 -0
- package/dist/chunk-IMKU4O3P.js +1 -0
- package/dist/chunk-IN6IYQ2X.js +1 -0
- package/dist/chunk-IO6HZ7KR.js +2 -0
- package/dist/{chunk-CP767TWV.js → chunk-N3EIZN65.js} +1 -1
- package/dist/chunk-NO5LW2DQ.mjs +1 -0
- package/dist/chunk-OTDF6PZK.js +1 -0
- package/dist/chunk-QMLIXLZJ.mjs +4 -0
- package/dist/chunk-QVEAQOMR.mjs +2 -0
- package/dist/{chunk-APFTVA4F.mjs → chunk-QXHL67FG.mjs} +1 -1
- package/dist/{chunk-XCMA7AY7.js → chunk-SAFW7UQZ.js} +1 -1
- package/dist/chunk-TGPS3SRR.mjs +1 -0
- package/dist/chunk-TMISJEGL.js +1 -0
- package/dist/chunk-TRQN2SFW.mjs +59 -0
- package/dist/chunk-UGXSKZVM.js +1 -0
- package/dist/chunk-V6SWUCTS.js +2 -0
- package/dist/chunk-X3NB7STJ.js +1 -0
- package/dist/{chunk-7SGC3CXJ.js → chunk-XBHF5Q2F.js} +1 -1
- package/dist/chunk-XBIKSAH6.js +1 -0
- package/dist/{chunk-6DK4UBGM.js → chunk-XOH7YAYL.js} +1 -1
- package/dist/{chunk-4S5VOHQK.mjs → chunk-XWQB6APW.mjs} +1 -1
- package/dist/chunk-Y7I5QDCN.mjs +1 -0
- package/dist/chunk-YCDB5TA6.js +4 -0
- package/dist/chunk-YVYB4YCI.js +1 -0
- package/dist/{chunk-NLTX7XVR.js → chunk-Z4SJCSTS.js} +1 -1
- package/dist/{colorResolver-CVsPLsw1.d.ts → colorResolver-BZ_yScf4.d.ts} +1 -1
- package/dist/{colorResolver-C3q7MLLD.d.mts → colorResolver-C6DtsoFI.d.mts} +1 -1
- package/dist/core-plugins.d.mts +3 -3
- package/dist/core-plugins.d.ts +3 -3
- package/dist/core-plugins.js +1 -1
- package/dist/core-plugins.mjs +1 -1
- package/dist/core.d.mts +6 -6
- package/dist/core.d.ts +6 -6
- package/dist/core.js +1 -1
- package/dist/core.mjs +1 -1
- package/dist/docx/index.d.mts +3 -3
- package/dist/docx/index.d.ts +3 -3
- package/dist/docx/index.js +1 -1
- package/dist/docx/index.mjs +1 -1
- package/dist/docx/parser.d.mts +3 -3
- package/dist/docx/parser.d.ts +3 -3
- package/dist/docx/parser.js +1 -1
- package/dist/docx/parser.mjs +1 -1
- package/dist/docx/rezip.d.mts +3 -3
- package/dist/docx/rezip.d.ts +3 -3
- package/dist/docx/rezip.js +1 -1
- package/dist/docx/rezip.mjs +1 -1
- package/dist/docx/serializer/index.d.mts +3 -3
- package/dist/docx/serializer/index.d.ts +3 -3
- package/dist/{formatting-D9I-lFS4.d.mts → formatting-BH4hcZiq.d.mts} +1 -1
- package/dist/{formatting-BwpZWdGi.d.ts → formatting-_OXU8gLB.d.ts} +1 -1
- package/dist/{headerFooterLayout-B3QVg556.d.ts → headerFooterLayout-B5LyDpSM.d.ts} +20 -1
- package/dist/{headerFooterLayout-DkclHZ0Z.d.mts → headerFooterLayout-DVFcJ832.d.mts} +20 -1
- package/dist/headless.d.mts +5 -5
- package/dist/headless.d.ts +5 -5
- package/dist/headless.js +1 -1
- package/dist/headless.mjs +1 -1
- package/dist/layout-bridge/index.d.mts +5 -5
- package/dist/layout-bridge/index.d.ts +5 -5
- package/dist/layout-bridge/index.js +1 -1
- package/dist/layout-bridge/index.mjs +1 -1
- package/dist/layout-bridge/measuring/index.d.mts +39 -2
- package/dist/layout-bridge/measuring/index.d.ts +39 -2
- 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 +10 -3
- package/dist/layout-bridge/toFlowBlocks.d.ts +10 -3
- package/dist/layout-bridge/toFlowBlocks.js +1 -1
- package/dist/layout-bridge/toFlowBlocks.mjs +1 -1
- package/dist/layout-engine/index.d.mts +30 -3
- package/dist/layout-engine/index.d.ts +30 -3
- package/dist/layout-engine/index.js +1 -1
- package/dist/layout-engine/index.mjs +1 -1
- package/dist/layout-engine/types.d.mts +9 -0
- package/dist/layout-engine/types.d.ts +9 -0
- package/dist/layout-painter/index.d.mts +4 -4
- package/dist/layout-painter/index.d.ts +4 -4
- package/dist/layout-painter/index.js +1 -1
- package/dist/layout-painter/index.mjs +1 -1
- package/dist/layout-painter/renderPage.d.mts +4 -4
- package/dist/layout-painter/renderPage.d.ts +4 -4
- package/dist/layout-painter/renderPage.js +1 -1
- package/dist/layout-painter/renderPage.mjs +1 -1
- package/dist/{lists-JDB80qyP.d.mts → lists-CvG_iVK3.d.mts} +8 -2
- package/dist/{lists-CdiIk_c1.d.ts → lists-UTp_tk7B.d.ts} +8 -2
- package/dist/managers/AutoSaveManager.d.mts +3 -3
- package/dist/managers/AutoSaveManager.d.ts +3 -3
- package/dist/managers/TableSelectionManager.d.mts +3 -3
- package/dist/managers/TableSelectionManager.d.ts +3 -3
- package/dist/managers/types.d.mts +3 -3
- package/dist/managers/types.d.ts +3 -3
- package/dist/{marks-CCPVlQzL.d.mts → marks-BY573yZn.d.mts} +1 -1
- package/dist/{marks-BujVxYP4.d.ts → marks-CjC9tF5k.d.ts} +1 -1
- package/dist/mcp-cli.mjs +23 -23
- package/dist/mcp.d.mts +3 -3
- package/dist/mcp.d.ts +3 -3
- package/dist/mcp.js +3 -3
- package/dist/mcp.mjs +1 -1
- package/dist/{nodes-BXi1Uu3e.d.mts → nodes-CL8M0L-a.d.mts} +4 -2
- package/dist/{nodes-DfKj9kUA.d.ts → nodes-D7PTUJ2N.d.ts} +4 -2
- package/dist/prosemirror/commands/formatting.d.mts +2 -2
- package/dist/prosemirror/commands/formatting.d.ts +2 -2
- package/dist/prosemirror/commands/formatting.js +1 -1
- package/dist/prosemirror/commands/formatting.mjs +1 -1
- package/dist/prosemirror/commands/index.d.mts +2 -2
- package/dist/prosemirror/commands/index.d.ts +2 -2
- package/dist/prosemirror/commands/index.js +1 -1
- package/dist/prosemirror/commands/index.mjs +1 -1
- package/dist/prosemirror/commands/paragraph.d.mts +1 -1
- package/dist/prosemirror/commands/paragraph.d.ts +1 -1
- package/dist/prosemirror/commands/paragraph.js +1 -1
- package/dist/prosemirror/commands/paragraph.mjs +1 -1
- package/dist/prosemirror/conversion/fromProseDoc.d.mts +3 -3
- package/dist/prosemirror/conversion/fromProseDoc.d.ts +3 -3
- package/dist/prosemirror/conversion/fromProseDoc.js +1 -1
- package/dist/prosemirror/conversion/fromProseDoc.mjs +1 -1
- package/dist/prosemirror/conversion/index.d.mts +11 -3
- package/dist/prosemirror/conversion/index.d.ts +11 -3
- package/dist/prosemirror/conversion/index.js +1 -1
- package/dist/prosemirror/conversion/index.mjs +1 -1
- package/dist/prosemirror/extensions/index.d.mts +1 -1
- package/dist/prosemirror/extensions/index.d.ts +1 -1
- package/dist/prosemirror/extensions/index.js +1 -1
- package/dist/prosemirror/extensions/index.mjs +1 -1
- package/dist/prosemirror/index.d.mts +5 -5
- package/dist/prosemirror/index.d.ts +5 -5
- package/dist/prosemirror/index.js +1 -1
- package/dist/prosemirror/index.mjs +1 -1
- package/dist/prosemirror/plugins/index.d.mts +1 -1
- package/dist/prosemirror/plugins/index.d.ts +1 -1
- package/dist/prosemirror/plugins/selectionTracker.d.mts +1 -1
- package/dist/prosemirror/plugins/selectionTracker.d.ts +1 -1
- package/dist/prosemirror/schema/index.d.mts +4 -4
- package/dist/prosemirror/schema/index.d.ts +4 -4
- package/dist/prosemirror/schema/index.js +1 -1
- package/dist/prosemirror/schema/index.mjs +1 -1
- package/dist/prosemirror/styles/index.d.mts +2 -2
- package/dist/prosemirror/styles/index.d.ts +2 -2
- package/dist/prosemirror/utils/extractTrackedChanges.d.mts +2 -2
- package/dist/prosemirror/utils/extractTrackedChanges.d.ts +2 -2
- package/dist/{selectionContext-85CE0f7a.d.ts → selectionContext-BPAqgNgk.d.ts} +1 -1
- package/dist/{selectionContext-Xq3AY7pn.d.mts → selectionContext-CoZat7QZ.d.mts} +1 -1
- package/dist/{styles-jqO45PSq.d.ts → styles-BBv7doYK.d.ts} +1 -1
- package/dist/{styles-BBoqh07F.d.mts → styles-EI2lxeEN.d.mts} +1 -1
- package/dist/types/agentApi.d.mts +1 -1
- package/dist/types/agentApi.d.ts +1 -1
- package/dist/types/content.d.mts +2 -2
- package/dist/types/content.d.ts +2 -2
- package/dist/types/document.d.mts +25 -6
- package/dist/types/document.d.ts +25 -6
- package/dist/utils/comments.d.mts +2 -2
- package/dist/utils/comments.d.ts +2 -2
- package/dist/utils/index.d.mts +4 -4
- package/dist/utils/index.d.ts +4 -4
- package/package.json +1 -1
- package/dist/chunk-2D3UPAMA.mjs +0 -1
- package/dist/chunk-2RCMY2GE.mjs +0 -1
- package/dist/chunk-3GNIP6IX.mjs +0 -4
- package/dist/chunk-44RUAQA2.js +0 -1
- package/dist/chunk-5N5DBQJV.mjs +0 -1
- package/dist/chunk-5TNMVXDS.mjs +0 -1
- package/dist/chunk-6LOYA7G5.mjs +0 -2
- package/dist/chunk-7VCMJCBY.js +0 -2
- package/dist/chunk-BKHQA6JJ.js +0 -1
- package/dist/chunk-BOYVCOLZ.mjs +0 -1
- package/dist/chunk-BS35CXMN.js +0 -1
- package/dist/chunk-BTOBVF4I.mjs +0 -1
- package/dist/chunk-C6GSFUV2.js +0 -2
- package/dist/chunk-DV6IEOP5.js +0 -4
- package/dist/chunk-IBNUQL57.mjs +0 -2
- package/dist/chunk-NMSU4MWP.mjs +0 -1
- package/dist/chunk-OLKDLRJ4.js +0 -1
- package/dist/chunk-P6RNOYAG.mjs +0 -2
- package/dist/chunk-R7RR6M4A.mjs +0 -2
- package/dist/chunk-RCS6UNIJ.mjs +0 -1
- package/dist/chunk-T5RYEG2V.js +0 -1
- package/dist/chunk-TYYOBPNK.js +0 -1
- package/dist/chunk-UCZVMHB5.mjs +0 -59
- package/dist/chunk-VQ2QGHYS.js +0 -2
- package/dist/chunk-WZP6ZHBR.js +0 -1
- package/dist/chunk-YGHHSCPR.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as TABLE_INSERT_EDGE_PROXIMITY,b as TABLE_INSERT_HIDE_DELAY_MS,c as detectTableInsertHover}from'../chunk-
|
|
1
|
+
export{a as TABLE_INSERT_EDGE_PROXIMITY,b as TABLE_INSERT_HIDE_DELAY_MS,c as detectTableInsertHover}from'../chunk-7PX32GLB.mjs';import'../chunk-BFB4PRS4.mjs';import'../chunk-5SU4HPQS.mjs';import'../chunk-HAAMO2Z2.mjs';import'../chunk-EQVNAHL7.mjs';import'../chunk-FCJWLEKT.mjs';import'../chunk-7E5VBRDL.mjs';import'../chunk-QMLIXLZJ.mjs';import'../chunk-3JXR6YU4.mjs';import'../chunk-NO5LW2DQ.mjs';import'../chunk-LBKMYD3M.mjs';import'../chunk-NBLJPT54.mjs';import'../chunk-QPFJJPIC.mjs';import'../chunk-ILJUDEZ5.mjs';import'../chunk-QVEAQOMR.mjs';import'../chunk-HL5PQT3A.mjs';import'../chunk-B6LYBJ4H.mjs';import'../chunk-TGPS3SRR.mjs';import'../chunk-BRHHK4MG.mjs';import'../chunk-MOKKS75W.mjs';import'../chunk-OZMNIX6U.mjs';import'../chunk-AMENZY5F.mjs';import'../chunk-BGY3CB37.mjs';import'../chunk-CP5OSG5Z.mjs';import'../chunk-67LVRQIR.mjs';import'../chunk-LE67NTCN.mjs';import'../chunk-VQWZHPWI.mjs';import'../chunk-VW22RZ6C.mjs';import'../chunk-QYUPLKLP.mjs';
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
*/
|
|
13
13
|
import { Node } from 'prosemirror-model';
|
|
14
14
|
import { BorderStyle, FlowBlock } from '../layout-engine/types.mjs';
|
|
15
|
-
import { T as Theme } from '../styles-
|
|
16
|
-
import {
|
|
17
|
-
import '../formatting-
|
|
15
|
+
import { T as Theme } from '../styles-EI2lxeEN.mjs';
|
|
16
|
+
import { a as NumberFormat } from '../lists-CvG_iVK3.mjs';
|
|
17
|
+
import '../formatting-BH4hcZiq.mjs';
|
|
18
18
|
import '../colors-C3vA7HUU.mjs';
|
|
19
19
|
|
|
20
20
|
/**
|
|
@@ -33,6 +33,13 @@ type ToFlowBlocksOptions = {
|
|
|
33
33
|
theme?: Theme | null;
|
|
34
34
|
/** Page content height in pixels (pageHeight - marginTop - marginBottom). Images taller than this are scaled down to fit. */
|
|
35
35
|
pageContentHeight?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Document-wide `w:defaultTabStop` (§17.6.13) in twips. Stamped onto each
|
|
38
|
+
* paragraph's attrs so the layout-time list-marker helper can snap body
|
|
39
|
+
* text to the default tab grid when no custom `w:tabs` are defined.
|
|
40
|
+
* Default 720 twips (Word's spec default).
|
|
41
|
+
*/
|
|
42
|
+
defaultTabStopTwips?: number;
|
|
36
43
|
/**
|
|
37
44
|
* @internal Allocated by toFlowBlocks() and threaded through table /
|
|
38
45
|
* text-box conversion so list numbering stays continuous across containers.
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
*/
|
|
13
13
|
import { Node } from 'prosemirror-model';
|
|
14
14
|
import { BorderStyle, FlowBlock } from '../layout-engine/types.js';
|
|
15
|
-
import { T as Theme } from '../styles-
|
|
16
|
-
import {
|
|
17
|
-
import '../formatting-
|
|
15
|
+
import { T as Theme } from '../styles-BBv7doYK.js';
|
|
16
|
+
import { a as NumberFormat } from '../lists-UTp_tk7B.js';
|
|
17
|
+
import '../formatting-_OXU8gLB.js';
|
|
18
18
|
import '../colors-C3vA7HUU.js';
|
|
19
19
|
|
|
20
20
|
/**
|
|
@@ -33,6 +33,13 @@ type ToFlowBlocksOptions = {
|
|
|
33
33
|
theme?: Theme | null;
|
|
34
34
|
/** Page content height in pixels (pageHeight - marginTop - marginBottom). Images taller than this are scaled down to fit. */
|
|
35
35
|
pageContentHeight?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Document-wide `w:defaultTabStop` (§17.6.13) in twips. Stamped onto each
|
|
38
|
+
* paragraph's attrs so the layout-time list-marker helper can snap body
|
|
39
|
+
* text to the default tab grid when no custom `w:tabs` are defined.
|
|
40
|
+
* Default 720 twips (Word's spec default).
|
|
41
|
+
*/
|
|
42
|
+
defaultTabStopTwips?: number;
|
|
36
43
|
/**
|
|
37
44
|
* @internal Allocated by toFlowBlocks() and threaded through table /
|
|
38
45
|
* text-box conversion so list numbering stays continuous across containers.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunk3AZWLVLC_js=require('../chunk-3AZWLVLC.js'),chunkIMKU4O3P_js=require('../chunk-IMKU4O3P.js');require('../chunk-DROCYKAR.js'),require('../chunk-YCDB5TA6.js'),require('../chunk-EPX7BBJD.js'),require('../chunk-D536HC5M.js'),require('../chunk-TMISJEGL.js'),require('../chunk-MJ5FQX7Q.js'),require('../chunk-4Q2IP5FW.js'),require('../chunk-DC7S76ZX.js');Object.defineProperty(exports,"convertBorderSpecToLayout",{enumerable:true,get:function(){return chunk3AZWLVLC_js.a}});Object.defineProperty(exports,"resolveListTemplate",{enumerable:true,get:function(){return chunk3AZWLVLC_js.b}});Object.defineProperty(exports,"toFlowBlocks",{enumerable:true,get:function(){return chunk3AZWLVLC_js.c}});Object.defineProperty(exports,"resetBlockIdCounter",{enumerable:true,get:function(){return chunkIMKU4O3P_js.d}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{a as convertBorderSpecToLayout,b as resolveListTemplate,c as toFlowBlocks}from'../chunk-5SU4HPQS.mjs';export{d as resetBlockIdCounter}from'../chunk-FCJWLEKT.mjs';import'../chunk-7E5VBRDL.mjs';import'../chunk-QMLIXLZJ.mjs';import'../chunk-QVEAQOMR.mjs';import'../chunk-HL5PQT3A.mjs';import'../chunk-B6LYBJ4H.mjs';import'../chunk-67LVRQIR.mjs';import'../chunk-VW22RZ6C.mjs';import'../chunk-QYUPLKLP.mjs';
|
|
@@ -9,8 +9,9 @@
|
|
|
9
9
|
* @packageDocumentation
|
|
10
10
|
* @public
|
|
11
11
|
*/
|
|
12
|
-
import { Page, PageMargins, ColumnLayout, Fragment, FlowBlock, Measure, SectionBreakBlock, Layout, TableMeasure, LayoutOptions } from './types.mjs';
|
|
13
|
-
export { BlockId, BorderStyle, CellBorderSpec, CellBorders, ColumnBreakBlock, ColumnBreakMeasure, DEFAULT_TEXTBOX_MARGINS, DEFAULT_TEXTBOX_WIDTH, DocumentPosition, FieldRun, FloatingTablePosition, FootnoteContent, FragmentBase, HeaderFooterContentHeights, HeaderFooterLayout, HitTestResult, HyperlinkInfo, ImageBlock, ImageFragment, ImageMeasure, ImageRun, ImageRunPosition, LineBreakRun, ListNumPr, MeasuredLine, MeasuredLineSegment, PageBreakBlock, PageBreakMeasure, ParagraphAttrs, ParagraphBlock, ParagraphBorders, ParagraphFragment, ParagraphIndent, ParagraphMeasure, ParagraphSpacing, Run, RunFormatting, SectionBreakMeasure, TabAlignment, TabRun, TabStop, TableBlock, TableCell, TableCellMeasure, TableFragment, TableRow, TableRowMeasure,
|
|
12
|
+
import { Page, PageMargins, ColumnLayout, Fragment, FlowBlock, Measure, SectionBreakBlock, Layout, TextBoxBlock, TableMeasure, LayoutOptions } from './types.mjs';
|
|
13
|
+
export { BlockId, BorderStyle, CellBorderSpec, CellBorders, ColumnBreakBlock, ColumnBreakMeasure, DEFAULT_TEXTBOX_MARGINS, DEFAULT_TEXTBOX_WIDTH, DocumentPosition, FieldRun, FloatingTablePosition, FootnoteContent, FragmentBase, HeaderFooterContentHeights, HeaderFooterLayout, HitTestResult, HyperlinkInfo, ImageBlock, ImageFragment, ImageMeasure, ImageRun, ImageRunPosition, LineBreakRun, ListNumPr, MeasuredLine, MeasuredLineSegment, PageBreakBlock, PageBreakMeasure, ParagraphAttrs, ParagraphBlock, ParagraphBorders, ParagraphFragment, ParagraphIndent, ParagraphMeasure, ParagraphSpacing, Run, RunFormatting, SectionBreakMeasure, TabAlignment, TabRun, TabStop, TableBlock, TableCell, TableCellMeasure, TableFragment, TableRow, TableRowMeasure, TextBoxFragment, TextBoxMeasure, TextRun, WrapTextDirection, assertExhaustiveFlowBlock } from './types.mjs';
|
|
14
|
+
export { isFloatingWrapType, isWrapNone, wrapsAroundText } from '../docx/wrapTypes.mjs';
|
|
14
15
|
|
|
15
16
|
/**
|
|
16
17
|
* Paginator - manages page state during layout
|
|
@@ -264,6 +265,32 @@ declare function getEffectiveColumns(state: SectionState): ColumnLayout;
|
|
|
264
265
|
*/
|
|
265
266
|
declare function findPageIndexContainingPmPos(layout: Layout, pmPos: number): number | null;
|
|
266
267
|
|
|
268
|
+
/**
|
|
269
|
+
* Subset of {@link TextBoxBlock} needed to classify how a text box flows
|
|
270
|
+
* relative to surrounding content. Kept narrow so callers (measure, layout,
|
|
271
|
+
* paint) can pass partial views without rebuilding the full block.
|
|
272
|
+
*
|
|
273
|
+
* @public
|
|
274
|
+
*/
|
|
275
|
+
type TextBoxFlowAttrs = Pick<TextBoxBlock, 'displayMode' | 'wrapType'>;
|
|
276
|
+
/**
|
|
277
|
+
* True when a text box participates in float layout — either via the
|
|
278
|
+
* `float` display mode (CSS-style) or via an OOXML `wrapType` that
|
|
279
|
+
* positions the box outside paragraph flow (`square`, `tight`, `through`,
|
|
280
|
+
* `behind`, `inFront`).
|
|
281
|
+
*
|
|
282
|
+
* @public
|
|
283
|
+
*/
|
|
284
|
+
declare function isFloatingTextBoxBlock(block: TextBoxFlowAttrs): boolean;
|
|
285
|
+
/**
|
|
286
|
+
* True when a floating text box reserves an exclusion zone that narrows
|
|
287
|
+
* surrounding text lines. `wrapNone` (`behind` / `inFront`) and
|
|
288
|
+
* `topAndBottom` are floats that don't wrap text on their sides.
|
|
289
|
+
*
|
|
290
|
+
* @public
|
|
291
|
+
*/
|
|
292
|
+
declare function floatingTextBoxWrapsText(block: TextBoxFlowAttrs): boolean;
|
|
293
|
+
|
|
267
294
|
/**
|
|
268
295
|
* Layout Engine - Main Entry Point
|
|
269
296
|
*
|
|
@@ -319,4 +346,4 @@ declare function layoutDocument(blocks: FlowBlock[], measures: Measure[], option
|
|
|
319
346
|
*/
|
|
320
347
|
declare function getHeaderRowsHeight(measure: TableMeasure, headerRowCount: number): number;
|
|
321
348
|
|
|
322
|
-
export { type BreakDecision, ColumnLayout, FlowBlock, Fragment, type KeepNextChain, Layout, LayoutOptions, Measure, Page, PageMargins, type PageState, type Paginator, type PaginatorOptions, SectionBreakBlock, type SectionLayoutConfig, type SectionState, TableMeasure, applyPendingToActive, calculateChainHeight, collectSectionConfigs, computeKeepNextChains, createInitialSectionState, createPaginator, findPageIndexContainingPmPos, getEffectiveColumns, getEffectiveMargins, getEffectivePageSize, getHeaderRowsHeight, getMidChainIndices, hasKeepLines, hasPageBreakBefore, layoutDocument, scheduleSectionBreak };
|
|
349
|
+
export { type BreakDecision, ColumnLayout, FlowBlock, Fragment, type KeepNextChain, Layout, LayoutOptions, Measure, Page, PageMargins, type PageState, type Paginator, type PaginatorOptions, SectionBreakBlock, type SectionLayoutConfig, type SectionState, TableMeasure, TextBoxBlock, type TextBoxFlowAttrs, applyPendingToActive, calculateChainHeight, collectSectionConfigs, computeKeepNextChains, createInitialSectionState, createPaginator, findPageIndexContainingPmPos, floatingTextBoxWrapsText, getEffectiveColumns, getEffectiveMargins, getEffectivePageSize, getHeaderRowsHeight, getMidChainIndices, hasKeepLines, hasPageBreakBefore, isFloatingTextBoxBlock, layoutDocument, scheduleSectionBreak };
|
|
@@ -9,8 +9,9 @@
|
|
|
9
9
|
* @packageDocumentation
|
|
10
10
|
* @public
|
|
11
11
|
*/
|
|
12
|
-
import { Page, PageMargins, ColumnLayout, Fragment, FlowBlock, Measure, SectionBreakBlock, Layout, TableMeasure, LayoutOptions } from './types.js';
|
|
13
|
-
export { BlockId, BorderStyle, CellBorderSpec, CellBorders, ColumnBreakBlock, ColumnBreakMeasure, DEFAULT_TEXTBOX_MARGINS, DEFAULT_TEXTBOX_WIDTH, DocumentPosition, FieldRun, FloatingTablePosition, FootnoteContent, FragmentBase, HeaderFooterContentHeights, HeaderFooterLayout, HitTestResult, HyperlinkInfo, ImageBlock, ImageFragment, ImageMeasure, ImageRun, ImageRunPosition, LineBreakRun, ListNumPr, MeasuredLine, MeasuredLineSegment, PageBreakBlock, PageBreakMeasure, ParagraphAttrs, ParagraphBlock, ParagraphBorders, ParagraphFragment, ParagraphIndent, ParagraphMeasure, ParagraphSpacing, Run, RunFormatting, SectionBreakMeasure, TabAlignment, TabRun, TabStop, TableBlock, TableCell, TableCellMeasure, TableFragment, TableRow, TableRowMeasure,
|
|
12
|
+
import { Page, PageMargins, ColumnLayout, Fragment, FlowBlock, Measure, SectionBreakBlock, Layout, TextBoxBlock, TableMeasure, LayoutOptions } from './types.js';
|
|
13
|
+
export { BlockId, BorderStyle, CellBorderSpec, CellBorders, ColumnBreakBlock, ColumnBreakMeasure, DEFAULT_TEXTBOX_MARGINS, DEFAULT_TEXTBOX_WIDTH, DocumentPosition, FieldRun, FloatingTablePosition, FootnoteContent, FragmentBase, HeaderFooterContentHeights, HeaderFooterLayout, HitTestResult, HyperlinkInfo, ImageBlock, ImageFragment, ImageMeasure, ImageRun, ImageRunPosition, LineBreakRun, ListNumPr, MeasuredLine, MeasuredLineSegment, PageBreakBlock, PageBreakMeasure, ParagraphAttrs, ParagraphBlock, ParagraphBorders, ParagraphFragment, ParagraphIndent, ParagraphMeasure, ParagraphSpacing, Run, RunFormatting, SectionBreakMeasure, TabAlignment, TabRun, TabStop, TableBlock, TableCell, TableCellMeasure, TableFragment, TableRow, TableRowMeasure, TextBoxFragment, TextBoxMeasure, TextRun, WrapTextDirection, assertExhaustiveFlowBlock } from './types.js';
|
|
14
|
+
export { isFloatingWrapType, isWrapNone, wrapsAroundText } from '../docx/wrapTypes.js';
|
|
14
15
|
|
|
15
16
|
/**
|
|
16
17
|
* Paginator - manages page state during layout
|
|
@@ -264,6 +265,32 @@ declare function getEffectiveColumns(state: SectionState): ColumnLayout;
|
|
|
264
265
|
*/
|
|
265
266
|
declare function findPageIndexContainingPmPos(layout: Layout, pmPos: number): number | null;
|
|
266
267
|
|
|
268
|
+
/**
|
|
269
|
+
* Subset of {@link TextBoxBlock} needed to classify how a text box flows
|
|
270
|
+
* relative to surrounding content. Kept narrow so callers (measure, layout,
|
|
271
|
+
* paint) can pass partial views without rebuilding the full block.
|
|
272
|
+
*
|
|
273
|
+
* @public
|
|
274
|
+
*/
|
|
275
|
+
type TextBoxFlowAttrs = Pick<TextBoxBlock, 'displayMode' | 'wrapType'>;
|
|
276
|
+
/**
|
|
277
|
+
* True when a text box participates in float layout — either via the
|
|
278
|
+
* `float` display mode (CSS-style) or via an OOXML `wrapType` that
|
|
279
|
+
* positions the box outside paragraph flow (`square`, `tight`, `through`,
|
|
280
|
+
* `behind`, `inFront`).
|
|
281
|
+
*
|
|
282
|
+
* @public
|
|
283
|
+
*/
|
|
284
|
+
declare function isFloatingTextBoxBlock(block: TextBoxFlowAttrs): boolean;
|
|
285
|
+
/**
|
|
286
|
+
* True when a floating text box reserves an exclusion zone that narrows
|
|
287
|
+
* surrounding text lines. `wrapNone` (`behind` / `inFront`) and
|
|
288
|
+
* `topAndBottom` are floats that don't wrap text on their sides.
|
|
289
|
+
*
|
|
290
|
+
* @public
|
|
291
|
+
*/
|
|
292
|
+
declare function floatingTextBoxWrapsText(block: TextBoxFlowAttrs): boolean;
|
|
293
|
+
|
|
267
294
|
/**
|
|
268
295
|
* Layout Engine - Main Entry Point
|
|
269
296
|
*
|
|
@@ -319,4 +346,4 @@ declare function layoutDocument(blocks: FlowBlock[], measures: Measure[], option
|
|
|
319
346
|
*/
|
|
320
347
|
declare function getHeaderRowsHeight(measure: TableMeasure, headerRowCount: number): number;
|
|
321
348
|
|
|
322
|
-
export { type BreakDecision, ColumnLayout, FlowBlock, Fragment, type KeepNextChain, Layout, LayoutOptions, Measure, Page, PageMargins, type PageState, type Paginator, type PaginatorOptions, SectionBreakBlock, type SectionLayoutConfig, type SectionState, TableMeasure, applyPendingToActive, calculateChainHeight, collectSectionConfigs, computeKeepNextChains, createInitialSectionState, createPaginator, findPageIndexContainingPmPos, getEffectiveColumns, getEffectiveMargins, getEffectivePageSize, getHeaderRowsHeight, getMidChainIndices, hasKeepLines, hasPageBreakBefore, layoutDocument, scheduleSectionBreak };
|
|
349
|
+
export { type BreakDecision, ColumnLayout, FlowBlock, Fragment, type KeepNextChain, Layout, LayoutOptions, Measure, Page, PageMargins, type PageState, type Paginator, type PaginatorOptions, SectionBreakBlock, type SectionLayoutConfig, type SectionState, TableMeasure, TextBoxBlock, type TextBoxFlowAttrs, applyPendingToActive, calculateChainHeight, collectSectionConfigs, computeKeepNextChains, createInitialSectionState, createPaginator, findPageIndexContainingPmPos, floatingTextBoxWrapsText, getEffectiveColumns, getEffectiveMargins, getEffectivePageSize, getHeaderRowsHeight, getMidChainIndices, hasKeepLines, hasPageBreakBefore, isFloatingTextBoxBlock, layoutDocument, scheduleSectionBreak };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkXBIKSAH6_js=require('../chunk-XBIKSAH6.js');require('../chunk-IMKU4O3P.js');var chunkDROCYKAR_js=require('../chunk-DROCYKAR.js');require('../chunk-IN6IYQ2X.js');var chunkJFZIXFRC_js=require('../chunk-JFZIXFRC.js');require('../chunk-TMISJEGL.js'),require('../chunk-N3Y5BUKV.js'),require('../chunk-DC7S76ZX.js');Object.defineProperty(exports,"applyPendingToActive",{enumerable:true,get:function(){return chunkXBIKSAH6_js.I}});Object.defineProperty(exports,"calculateChainHeight",{enumerable:true,get:function(){return chunkXBIKSAH6_js.A}});Object.defineProperty(exports,"collectSectionConfigs",{enumerable:true,get:function(){return chunkXBIKSAH6_js.N}});Object.defineProperty(exports,"computeKeepNextChains",{enumerable:true,get:function(){return chunkXBIKSAH6_js.z}});Object.defineProperty(exports,"createInitialSectionState",{enumerable:true,get:function(){return chunkXBIKSAH6_js.G}});Object.defineProperty(exports,"createPaginator",{enumerable:true,get:function(){return chunkXBIKSAH6_js.y}});Object.defineProperty(exports,"findPageIndexContainingPmPos",{enumerable:true,get:function(){return chunkXBIKSAH6_js.M}});Object.defineProperty(exports,"floatingTextBoxWrapsText",{enumerable:true,get:function(){return chunkXBIKSAH6_js.F}});Object.defineProperty(exports,"getEffectiveColumns",{enumerable:true,get:function(){return chunkXBIKSAH6_js.L}});Object.defineProperty(exports,"getEffectiveMargins",{enumerable:true,get:function(){return chunkXBIKSAH6_js.J}});Object.defineProperty(exports,"getEffectivePageSize",{enumerable:true,get:function(){return chunkXBIKSAH6_js.K}});Object.defineProperty(exports,"getHeaderRowsHeight",{enumerable:true,get:function(){return chunkXBIKSAH6_js.P}});Object.defineProperty(exports,"getMidChainIndices",{enumerable:true,get:function(){return chunkXBIKSAH6_js.B}});Object.defineProperty(exports,"hasKeepLines",{enumerable:true,get:function(){return chunkXBIKSAH6_js.C}});Object.defineProperty(exports,"hasPageBreakBefore",{enumerable:true,get:function(){return chunkXBIKSAH6_js.D}});Object.defineProperty(exports,"isFloatingTextBoxBlock",{enumerable:true,get:function(){return chunkXBIKSAH6_js.E}});Object.defineProperty(exports,"layoutDocument",{enumerable:true,get:function(){return chunkXBIKSAH6_js.O}});Object.defineProperty(exports,"scheduleSectionBreak",{enumerable:true,get:function(){return chunkXBIKSAH6_js.H}});Object.defineProperty(exports,"DEFAULT_TEXTBOX_MARGINS",{enumerable:true,get:function(){return chunkDROCYKAR_js.a}});Object.defineProperty(exports,"DEFAULT_TEXTBOX_WIDTH",{enumerable:true,get:function(){return chunkDROCYKAR_js.b}});Object.defineProperty(exports,"assertExhaustiveFlowBlock",{enumerable:true,get:function(){return chunkDROCYKAR_js.c}});Object.defineProperty(exports,"isFloatingWrapType",{enumerable:true,get:function(){return chunkJFZIXFRC_js.a}});Object.defineProperty(exports,"isWrapNone",{enumerable:true,get:function(){return chunkJFZIXFRC_js.b}});Object.defineProperty(exports,"wrapsAroundText",{enumerable:true,get:function(){return chunkJFZIXFRC_js.c}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{I as applyPendingToActive,A as calculateChainHeight,N as collectSectionConfigs,z as computeKeepNextChains,G as createInitialSectionState,y as createPaginator,M as findPageIndexContainingPmPos,F as floatingTextBoxWrapsText,L as getEffectiveColumns,J as getEffectiveMargins,K as getEffectivePageSize,P as getHeaderRowsHeight,B as getMidChainIndices,C as hasKeepLines,D as hasPageBreakBefore,E as isFloatingTextBoxBlock,O as layoutDocument,H as scheduleSectionBreak}from'../chunk-EQVNAHL7.mjs';import'../chunk-FCJWLEKT.mjs';export{a as DEFAULT_TEXTBOX_MARGINS,b as DEFAULT_TEXTBOX_WIDTH,c as assertExhaustiveFlowBlock}from'../chunk-7E5VBRDL.mjs';import'../chunk-3JXR6YU4.mjs';export{a as isFloatingWrapType,b as isWrapNone,c as wrapsAroundText}from'../chunk-QPFJJPIC.mjs';import'../chunk-B6LYBJ4H.mjs';import'../chunk-AMENZY5F.mjs';import'../chunk-QYUPLKLP.mjs';
|
|
@@ -293,6 +293,9 @@ type ParagraphAttrs = {
|
|
|
293
293
|
listMarkerHidden?: boolean;
|
|
294
294
|
listMarkerFontFamily?: string;
|
|
295
295
|
listMarkerFontSize?: number;
|
|
296
|
+
listMarkerSuffix?: 'tab' | 'space' | 'nothing';
|
|
297
|
+
/** Document-wide `w:defaultTabStop` in twips (§17.6.13). Default 720. */
|
|
298
|
+
defaultTabStopTwips?: number;
|
|
296
299
|
defaultFontSize?: number;
|
|
297
300
|
defaultFontFamily?: string;
|
|
298
301
|
/**
|
|
@@ -568,6 +571,12 @@ type MeasuredLine = {
|
|
|
568
571
|
rightOffset?: number;
|
|
569
572
|
/** Optional split segments for centered floating exclusions. */
|
|
570
573
|
segments?: MeasuredLineSegment[];
|
|
574
|
+
/**
|
|
575
|
+
* Vertical space inserted before this line to skip past floats that leave
|
|
576
|
+
* no usable horizontal width at the natural line Y. Painters render this
|
|
577
|
+
* as marginTop on the line element; measurement adds it to totalHeight.
|
|
578
|
+
*/
|
|
579
|
+
floatSkipBefore?: number;
|
|
571
580
|
};
|
|
572
581
|
type MeasuredLineSegment = {
|
|
573
582
|
fromRun: number;
|
|
@@ -293,6 +293,9 @@ type ParagraphAttrs = {
|
|
|
293
293
|
listMarkerHidden?: boolean;
|
|
294
294
|
listMarkerFontFamily?: string;
|
|
295
295
|
listMarkerFontSize?: number;
|
|
296
|
+
listMarkerSuffix?: 'tab' | 'space' | 'nothing';
|
|
297
|
+
/** Document-wide `w:defaultTabStop` in twips (§17.6.13). Default 720. */
|
|
298
|
+
defaultTabStopTwips?: number;
|
|
296
299
|
defaultFontSize?: number;
|
|
297
300
|
defaultFontFamily?: string;
|
|
298
301
|
/**
|
|
@@ -568,6 +571,12 @@ type MeasuredLine = {
|
|
|
568
571
|
rightOffset?: number;
|
|
569
572
|
/** Optional split segments for centered floating exclusions. */
|
|
570
573
|
segments?: MeasuredLineSegment[];
|
|
574
|
+
/**
|
|
575
|
+
* Vertical space inserted before this line to skip past floats that leave
|
|
576
|
+
* no usable horizontal width at the natural line Y. Painters render this
|
|
577
|
+
* as marginTop on the line element; measurement adds it to totalHeight.
|
|
578
|
+
*/
|
|
579
|
+
floatSkipBefore?: number;
|
|
571
580
|
};
|
|
572
581
|
type MeasuredLineSegment = {
|
|
573
582
|
fromRun: number;
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
import '../layout-engine/types.mjs';
|
|
14
14
|
export { B as BlockLookup, a as BlockLookupEntry, F as FRAGMENT_CLASS_NAMES, I as IMAGE_CLASS_NAMES, b as IMAGE_LAYOUT_OPTIONS, c as ImageHitTestResult, d as ImageLayoutIconHint, e as ImageLayoutOptionDef, L as LAYOUT_IMAGE_CLASSES, f as LayoutPainter, P as PainterOptions, RenderContext, RenderPageOptions, RenderPagesUpdateKind, T as TABLE_CLASS_NAMES, g as TEXTBOX_CLASS_NAMES, h as captureInlinePositionEmu, i as createPainter, j as deriveLayoutChoice, k as findImageElement, l as hitTestImage, isFloatingImageRun, m as isImageLayoutOptionEnabled, isTextWrappingFloatingImageRun, r as renderFragment, n as renderImageFragment, o as renderLine, renderPage, renderPages, p as renderParagraphFragment, q as renderTableFragment, s as renderTextBoxFragment, t as sliceRunsForLine, u as toolbarValueToLayoutTarget } from './renderPage.mjs';
|
|
15
15
|
export { F as FootnoteRenderItem, H as HeaderFooterContent } from '../footnotes-lCH_P3N3.mjs';
|
|
16
|
-
import '../nodes-
|
|
17
|
-
import '../formatting-
|
|
16
|
+
import '../nodes-CL8M0L-a.mjs';
|
|
17
|
+
import '../formatting-BH4hcZiq.mjs';
|
|
18
18
|
import '../colors-C3vA7HUU.mjs';
|
|
19
|
-
import '../lists-
|
|
19
|
+
import '../lists-CvG_iVK3.mjs';
|
|
20
20
|
import '../docx/wrapTypes.mjs';
|
|
21
21
|
import '../types/content.mjs';
|
|
22
22
|
import '../ImageExtension-BN327PNe.mjs';
|
|
23
|
-
import '../styles-
|
|
23
|
+
import '../styles-EI2lxeEN.mjs';
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
import '../layout-engine/types.js';
|
|
14
14
|
export { B as BlockLookup, a as BlockLookupEntry, F as FRAGMENT_CLASS_NAMES, I as IMAGE_CLASS_NAMES, b as IMAGE_LAYOUT_OPTIONS, c as ImageHitTestResult, d as ImageLayoutIconHint, e as ImageLayoutOptionDef, L as LAYOUT_IMAGE_CLASSES, f as LayoutPainter, P as PainterOptions, RenderContext, RenderPageOptions, RenderPagesUpdateKind, T as TABLE_CLASS_NAMES, g as TEXTBOX_CLASS_NAMES, h as captureInlinePositionEmu, i as createPainter, j as deriveLayoutChoice, k as findImageElement, l as hitTestImage, isFloatingImageRun, m as isImageLayoutOptionEnabled, isTextWrappingFloatingImageRun, r as renderFragment, n as renderImageFragment, o as renderLine, renderPage, renderPages, p as renderParagraphFragment, q as renderTableFragment, s as renderTextBoxFragment, t as sliceRunsForLine, u as toolbarValueToLayoutTarget } from './renderPage.js';
|
|
15
15
|
export { F as FootnoteRenderItem, H as HeaderFooterContent } from '../footnotes-skVvEHvZ.js';
|
|
16
|
-
import '../nodes-
|
|
17
|
-
import '../formatting-
|
|
16
|
+
import '../nodes-D7PTUJ2N.js';
|
|
17
|
+
import '../formatting-_OXU8gLB.js';
|
|
18
18
|
import '../colors-C3vA7HUU.js';
|
|
19
|
-
import '../lists-
|
|
19
|
+
import '../lists-UTp_tk7B.js';
|
|
20
20
|
import '../docx/wrapTypes.js';
|
|
21
21
|
import '../types/content.js';
|
|
22
22
|
import '../ImageExtension-BlI5afZD.js';
|
|
23
|
-
import '../styles-
|
|
23
|
+
import '../styles-BBv7doYK.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkOTDF6PZK_js=require('../chunk-OTDF6PZK.js');require('../chunk-3AZWLVLC.js');var chunkUGXSKZVM_js=require('../chunk-UGXSKZVM.js');require('../chunk-XBIKSAH6.js'),require('../chunk-IMKU4O3P.js'),require('../chunk-DROCYKAR.js'),require('../chunk-YCDB5TA6.js'),require('../chunk-IN6IYQ2X.js'),require('../chunk-X3NB7STJ.js'),require('../chunk-D4RPOJC7.js'),require('../chunk-IP2VXNWG.js'),require('../chunk-JFZIXFRC.js'),require('../chunk-MZOVDLYL.js'),require('../chunk-EPX7BBJD.js'),require('../chunk-D536HC5M.js'),require('../chunk-TMISJEGL.js'),require('../chunk-YVYB4YCI.js'),require('../chunk-IO6HZ7KR.js'),require('../chunk-BHBOAP6Z.js'),require('../chunk-MZ7LW5CH.js'),require('../chunk-N3Y5BUKV.js'),require('../chunk-6LVPRTB6.js'),require('../chunk-NERY274X.js'),require('../chunk-MJ5FQX7Q.js'),require('../chunk-C2BAPYGJ.js'),require('../chunk-Q4CKLXWA.js');var chunk4Q2IP5FW_js=require('../chunk-4Q2IP5FW.js'),chunkDC7S76ZX_js=require('../chunk-DC7S76ZX.js');var i={runImage:"layout-run-image",blockImage:"layout-block-image",pageFloatingImage:"layout-page-floating-image",cellFloatingImage:"layout-cell-floating-image",pageContent:"layout-page-content",paragraph:"layout-paragraph"},y=[`.${i.pageFloatingImage}`,`.${i.cellFloatingImage}`,`.${i.blockImage}`,`.${i.runImage}`].join(", ");function P(n){if(!(n instanceof Element))return null;let e=n.closest(y);if(!e)return null;let o=e.dataset.pmStart;if(o===void 0)return null;let t=Number(o);return Number.isNaN(t)?null:{pos:t,imageEl:e}}function v(n){if(!(n instanceof HTMLElement))return null;if(n.tagName==="IMG"&&n.classList.contains(i.runImage))return n;let e=n.closest(y);return e&&e.dataset.pmStart?e:null}function B(n,e=1){if(!n.classList.contains(i.runImage))return;let o=n.closest(`.${i.pageContent}`),t=n.closest(`.${i.paragraph}`);if(!o||!t)return;let a=n.getBoundingClientRect(),r=o.getBoundingClientRect(),l=t.getBoundingClientRect(),p=e>0?e:1;return {horizontalEmu:Math.round(chunk4Q2IP5FW_js.f((a.left-r.left)/p)),verticalEmu:Math.round(chunk4Q2IP5FW_js.f((a.top-l.top)/p))}}function C(n,e){return n==="inline"?"inline":n==="behind"?"behind":n==="inFront"?"inFront":n==="square"||n==="tight"||n==="through"?e==="right"?"squareRight":"squareLeft":null}var H=[{choice:"inline",i18nLabelKey:"inLineWithText",i18nDescKey:"inLineWithText",iconHint:"inline"},{choice:"squareLeft",i18nLabelKey:"squareLeft",i18nDescKey:"squareLeft",iconHint:"squareLeft"},{choice:"squareRight",i18nLabelKey:"squareRight",i18nDescKey:"squareRight",iconHint:"squareRight"},{choice:"behind",i18nLabelKey:"behindText",i18nDescKey:"behindText",iconHint:"behind"},{choice:"inFront",i18nLabelKey:"inFrontOfText",i18nDescKey:"inFrontOfText",iconHint:"inFront"}];function R(n,e){return true}function A(n){switch(n){case "inline":return "inline";case "square":case "tight":case "through":return "squareLeft";case "topAndBottom":return "topAndBottom";case "behind":return "behind";case "inFront":return "inFront";case "wrapRight":return "squareLeft";case "wrapLeft":return "squareRight";default:return}}var c=class{constructor(e={}){chunkDC7S76ZX_js.a(this,"container",null);chunkDC7S76ZX_js.a(this,"blockLookup",new Map);chunkDC7S76ZX_js.a(this,"pageStates",[]);chunkDC7S76ZX_js.a(this,"totalPages",0);chunkDC7S76ZX_js.a(this,"options");chunkDC7S76ZX_js.a(this,"doc");chunkDC7S76ZX_js.a(this,"resolvedCommentIds",new Set);this.options=e,this.doc=e.document??document;}setBlockLookup(e){this.blockLookup=e;}mount(e){this.container=e,this.applyContainerStyles();}unmount(){this.container&&(this.container.innerHTML=""),this.container=null,this.pageStates=[];}applyContainerStyles(){if(!this.container)return;let e=this.options.pageGap??24;this.container.style.display="flex",this.container.style.flexDirection="column",this.container.style.alignItems="center",this.container.style.gap=`${e}px`,this.container.style.padding=`${e}px`,this.container.style.backgroundColor=this.options.containerBackground??"var(--doc-bg, #f8f9fa)",this.container.style.minHeight="100%";}paint(e){if(!this.container)throw new Error("LayoutPainter: not mounted");let{pages:o}=e;this.totalPages=o.length,this.container.innerHTML="",this.pageStates=[];for(let t=0;t<o.length;t++){let a=o[t],r={pageNumber:a.number,totalPages:this.totalPages,section:"body",resolvedCommentIds:this.resolvedCommentIds},l=this.renderPageWithLookup(a,r);this.container.appendChild(l),this.pageStates.push({element:l,pageNumber:a.number,fragmentCount:a.fragments.length});}}renderPageWithLookup(e,o){let t=this.doc.createElement("div");t.className="layout-page",t.dataset.pageNumber=String(e.number),t.style.position="relative",t.style.width=`${e.size.w}px`,t.style.height=`${e.size.h}px`,t.style.backgroundColor=this.options.pageBackground??"#ffffff",t.style.overflow="hidden",this.options.showShadow&&(t.style.boxShadow="0 2px 8px rgba(0, 0, 0, 0.15)");let a=this.doc.createElement("div");a.className="layout-page-content",a.style.position="absolute",a.style.top=`${e.margins.top}px`,a.style.left=`${e.margins.left}px`,a.style.right=`${e.margins.right}px`,a.style.bottom=`${e.margins.bottom}px`,a.style.overflow="visible";for(let r of e.fragments){let l=this.renderFragmentWithLookup(r,o);this.applyFragmentPosition(l,r),a.appendChild(l);}return t.appendChild(a),t}renderFragmentWithLookup(e,o){let t=this.blockLookup.get(String(e.blockId));if(e.kind==="paragraph"&&t){let a=t.block,r=t.measure;return chunkOTDF6PZK_js.r(e,a,r,o,{document:this.doc})}if(e.kind==="table"&&t){let a=t.block,r=t.measure;return chunkOTDF6PZK_js.u(e,a,r,o,{document:this.doc})}if(e.kind==="image"&&t){let a=t.block,r=t.measure;return chunkOTDF6PZK_js.o(e,a,r,o,{document:this.doc})}if(e.kind==="textBox"&&t){let a=t.block,r=t.measure;return chunkOTDF6PZK_js.w(e,a,r,o,{document:this.doc})}return chunkOTDF6PZK_js.m(e,o,{document:this.doc})}applyFragmentPosition(e,o){e.style.position="absolute",e.style.left=`${o.x}px`,e.style.top=`${o.y}px`,e.style.width=`${o.width}px`,"height"in o&&(e.style.height=`${o.height}px`);}getPageCount(){return this.totalPages}getPageElement(e){return this.pageStates[e]?.element??null}scrollToPage(e){let o=this.pageStates.find(t=>t.pageNumber===e);o?.element&&o.element.scrollIntoView({behavior:"smooth",block:"start"});}};function W(n){return new c(n)}Object.defineProperty(exports,"FRAGMENT_CLASS_NAMES",{enumerable:true,get:function(){return chunkOTDF6PZK_js.l}});Object.defineProperty(exports,"IMAGE_CLASS_NAMES",{enumerable:true,get:function(){return chunkOTDF6PZK_js.n}});Object.defineProperty(exports,"TABLE_CLASS_NAMES",{enumerable:true,get:function(){return chunkOTDF6PZK_js.t}});Object.defineProperty(exports,"TEXTBOX_CLASS_NAMES",{enumerable:true,get:function(){return chunkOTDF6PZK_js.v}});Object.defineProperty(exports,"renderFragment",{enumerable:true,get:function(){return chunkOTDF6PZK_js.m}});Object.defineProperty(exports,"renderImageFragment",{enumerable:true,get:function(){return chunkOTDF6PZK_js.o}});Object.defineProperty(exports,"renderLine",{enumerable:true,get:function(){return chunkOTDF6PZK_js.q}});Object.defineProperty(exports,"renderPage",{enumerable:true,get:function(){return chunkOTDF6PZK_js.B}});Object.defineProperty(exports,"renderPages",{enumerable:true,get:function(){return chunkOTDF6PZK_js.y}});Object.defineProperty(exports,"renderParagraphFragment",{enumerable:true,get:function(){return chunkOTDF6PZK_js.r}});Object.defineProperty(exports,"renderTableFragment",{enumerable:true,get:function(){return chunkOTDF6PZK_js.u}});Object.defineProperty(exports,"renderTextBoxFragment",{enumerable:true,get:function(){return chunkOTDF6PZK_js.w}});Object.defineProperty(exports,"sliceRunsForLine",{enumerable:true,get:function(){return chunkOTDF6PZK_js.p}});Object.defineProperty(exports,"isFloatingImageRun",{enumerable:true,get:function(){return chunkUGXSKZVM_js.f}});Object.defineProperty(exports,"isTextWrappingFloatingImageRun",{enumerable:true,get:function(){return chunkUGXSKZVM_js.g}});exports.IMAGE_LAYOUT_OPTIONS=H;exports.LAYOUT_IMAGE_CLASSES=i;exports.LayoutPainter=c;exports.captureInlinePositionEmu=B;exports.createPainter=W;exports.deriveLayoutChoice=C;exports.findImageElement=v;exports.hitTestImage=P;exports.isImageLayoutOptionEnabled=R;exports.toolbarValueToLayoutTarget=A;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {r,u,o,w,m}from'../chunk-BFB4PRS4.mjs';export{l as FRAGMENT_CLASS_NAMES,n as IMAGE_CLASS_NAMES,t as TABLE_CLASS_NAMES,v as TEXTBOX_CLASS_NAMES,m as renderFragment,o as renderImageFragment,q as renderLine,B as renderPage,y as renderPages,r as renderParagraphFragment,u as renderTableFragment,w as renderTextBoxFragment,p as sliceRunsForLine}from'../chunk-BFB4PRS4.mjs';import'../chunk-5SU4HPQS.mjs';export{f as isFloatingImageRun,g as isTextWrappingFloatingImageRun}from'../chunk-HAAMO2Z2.mjs';import'../chunk-EQVNAHL7.mjs';import'../chunk-FCJWLEKT.mjs';import'../chunk-7E5VBRDL.mjs';import'../chunk-QMLIXLZJ.mjs';import'../chunk-3JXR6YU4.mjs';import'../chunk-NO5LW2DQ.mjs';import'../chunk-LBKMYD3M.mjs';import'../chunk-NBLJPT54.mjs';import'../chunk-QPFJJPIC.mjs';import'../chunk-ILJUDEZ5.mjs';import'../chunk-QVEAQOMR.mjs';import'../chunk-HL5PQT3A.mjs';import'../chunk-B6LYBJ4H.mjs';import'../chunk-TGPS3SRR.mjs';import'../chunk-BRHHK4MG.mjs';import'../chunk-MOKKS75W.mjs';import'../chunk-OZMNIX6U.mjs';import'../chunk-AMENZY5F.mjs';import'../chunk-BGY3CB37.mjs';import'../chunk-CP5OSG5Z.mjs';import'../chunk-67LVRQIR.mjs';import'../chunk-LE67NTCN.mjs';import'../chunk-VQWZHPWI.mjs';import {f}from'../chunk-VW22RZ6C.mjs';import {a}from'../chunk-QYUPLKLP.mjs';var i={runImage:"layout-run-image",blockImage:"layout-block-image",pageFloatingImage:"layout-page-floating-image",cellFloatingImage:"layout-cell-floating-image",pageContent:"layout-page-content",paragraph:"layout-paragraph"},y=[`.${i.pageFloatingImage}`,`.${i.cellFloatingImage}`,`.${i.blockImage}`,`.${i.runImage}`].join(", ");function P(n){if(!(n instanceof Element))return null;let e=n.closest(y);if(!e)return null;let o=e.dataset.pmStart;if(o===void 0)return null;let t=Number(o);return Number.isNaN(t)?null:{pos:t,imageEl:e}}function v(n){if(!(n instanceof HTMLElement))return null;if(n.tagName==="IMG"&&n.classList.contains(i.runImage))return n;let e=n.closest(y);return e&&e.dataset.pmStart?e:null}function B(n,e=1){if(!n.classList.contains(i.runImage))return;let o=n.closest(`.${i.pageContent}`),t=n.closest(`.${i.paragraph}`);if(!o||!t)return;let a=n.getBoundingClientRect(),r=o.getBoundingClientRect(),l=t.getBoundingClientRect(),p=e>0?e:1;return {horizontalEmu:Math.round(f((a.left-r.left)/p)),verticalEmu:Math.round(f((a.top-l.top)/p))}}function C(n,e){return n==="inline"?"inline":n==="behind"?"behind":n==="inFront"?"inFront":n==="square"||n==="tight"||n==="through"?e==="right"?"squareRight":"squareLeft":null}var H=[{choice:"inline",i18nLabelKey:"inLineWithText",i18nDescKey:"inLineWithText",iconHint:"inline"},{choice:"squareLeft",i18nLabelKey:"squareLeft",i18nDescKey:"squareLeft",iconHint:"squareLeft"},{choice:"squareRight",i18nLabelKey:"squareRight",i18nDescKey:"squareRight",iconHint:"squareRight"},{choice:"behind",i18nLabelKey:"behindText",i18nDescKey:"behindText",iconHint:"behind"},{choice:"inFront",i18nLabelKey:"inFrontOfText",i18nDescKey:"inFrontOfText",iconHint:"inFront"}];function R(n,e){return true}function A(n){switch(n){case "inline":return "inline";case "square":case "tight":case "through":return "squareLeft";case "topAndBottom":return "topAndBottom";case "behind":return "behind";case "inFront":return "inFront";case "wrapRight":return "squareLeft";case "wrapLeft":return "squareRight";default:return}}var c=class{constructor(e={}){a(this,"container",null);a(this,"blockLookup",new Map);a(this,"pageStates",[]);a(this,"totalPages",0);a(this,"options");a(this,"doc");a(this,"resolvedCommentIds",new Set);this.options=e,this.doc=e.document??document;}setBlockLookup(e){this.blockLookup=e;}mount(e){this.container=e,this.applyContainerStyles();}unmount(){this.container&&(this.container.innerHTML=""),this.container=null,this.pageStates=[];}applyContainerStyles(){if(!this.container)return;let e=this.options.pageGap??24;this.container.style.display="flex",this.container.style.flexDirection="column",this.container.style.alignItems="center",this.container.style.gap=`${e}px`,this.container.style.padding=`${e}px`,this.container.style.backgroundColor=this.options.containerBackground??"var(--doc-bg, #f8f9fa)",this.container.style.minHeight="100%";}paint(e){if(!this.container)throw new Error("LayoutPainter: not mounted");let{pages:o}=e;this.totalPages=o.length,this.container.innerHTML="",this.pageStates=[];for(let t=0;t<o.length;t++){let a=o[t],r={pageNumber:a.number,totalPages:this.totalPages,section:"body",resolvedCommentIds:this.resolvedCommentIds},l=this.renderPageWithLookup(a,r);this.container.appendChild(l),this.pageStates.push({element:l,pageNumber:a.number,fragmentCount:a.fragments.length});}}renderPageWithLookup(e,o){let t=this.doc.createElement("div");t.className="layout-page",t.dataset.pageNumber=String(e.number),t.style.position="relative",t.style.width=`${e.size.w}px`,t.style.height=`${e.size.h}px`,t.style.backgroundColor=this.options.pageBackground??"#ffffff",t.style.overflow="hidden",this.options.showShadow&&(t.style.boxShadow="0 2px 8px rgba(0, 0, 0, 0.15)");let a=this.doc.createElement("div");a.className="layout-page-content",a.style.position="absolute",a.style.top=`${e.margins.top}px`,a.style.left=`${e.margins.left}px`,a.style.right=`${e.margins.right}px`,a.style.bottom=`${e.margins.bottom}px`,a.style.overflow="visible";for(let r of e.fragments){let l=this.renderFragmentWithLookup(r,o);this.applyFragmentPosition(l,r),a.appendChild(l);}return t.appendChild(a),t}renderFragmentWithLookup(e,o$1){let t=this.blockLookup.get(String(e.blockId));if(e.kind==="paragraph"&&t){let a=t.block,r$1=t.measure;return r(e,a,r$1,o$1,{document:this.doc})}if(e.kind==="table"&&t){let a=t.block,r=t.measure;return u(e,a,r,o$1,{document:this.doc})}if(e.kind==="image"&&t){let a=t.block,r=t.measure;return o(e,a,r,o$1,{document:this.doc})}if(e.kind==="textBox"&&t){let a=t.block,r=t.measure;return w(e,a,r,o$1,{document:this.doc})}return m(e,o$1,{document:this.doc})}applyFragmentPosition(e,o){e.style.position="absolute",e.style.left=`${o.x}px`,e.style.top=`${o.y}px`,e.style.width=`${o.width}px`,"height"in o&&(e.style.height=`${o.height}px`);}getPageCount(){return this.totalPages}getPageElement(e){return this.pageStates[e]?.element??null}scrollToPage(e){let o=this.pageStates.find(t=>t.pageNumber===e);o?.element&&o.element.scrollIntoView({behavior:"smooth",block:"start"});}};function W(n){return new c(n)}export{H as IMAGE_LAYOUT_OPTIONS,i as LAYOUT_IMAGE_CLASSES,c as LayoutPainter,B as captureInlinePositionEmu,W as createPainter,C as deriveLayoutChoice,v as findImageElement,P as hitTestImage,R as isImageLayoutOptionEnabled,A as toolbarValueToLayoutTarget};
|
|
@@ -13,15 +13,15 @@
|
|
|
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 { I as ImageAttrs } from '../nodes-
|
|
16
|
+
import { I as ImageAttrs } from '../nodes-CL8M0L-a.mjs';
|
|
17
17
|
import { I as ImageLayoutTarget } from '../ImageExtension-BN327PNe.mjs';
|
|
18
18
|
import { WrapType } from '../docx/wrapTypes.mjs';
|
|
19
19
|
import { F as FootnoteRenderItem, H as HeaderFooterContent } from '../footnotes-lCH_P3N3.mjs';
|
|
20
20
|
export { a as HeaderFooterLayoutInfo, r as resolveHeaderFooterFloatingTablePosition } from '../footnotes-lCH_P3N3.mjs';
|
|
21
21
|
import { B as BorderSpec } from '../colors-C3vA7HUU.mjs';
|
|
22
|
-
import { T as Theme } from '../styles-
|
|
23
|
-
import '../formatting-
|
|
24
|
-
import '../lists-
|
|
22
|
+
import { T as Theme } from '../styles-EI2lxeEN.mjs';
|
|
23
|
+
import '../formatting-BH4hcZiq.mjs';
|
|
24
|
+
import '../lists-CvG_iVK3.mjs';
|
|
25
25
|
import '../types/content.mjs';
|
|
26
26
|
|
|
27
27
|
/**
|
|
@@ -13,15 +13,15 @@
|
|
|
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 { I as ImageAttrs } from '../nodes-
|
|
16
|
+
import { I as ImageAttrs } from '../nodes-D7PTUJ2N.js';
|
|
17
17
|
import { I as ImageLayoutTarget } from '../ImageExtension-BlI5afZD.js';
|
|
18
18
|
import { WrapType } from '../docx/wrapTypes.js';
|
|
19
19
|
import { F as FootnoteRenderItem, H as HeaderFooterContent } from '../footnotes-skVvEHvZ.js';
|
|
20
20
|
export { a as HeaderFooterLayoutInfo, r as resolveHeaderFooterFloatingTablePosition } from '../footnotes-skVvEHvZ.js';
|
|
21
21
|
import { B as BorderSpec } from '../colors-C3vA7HUU.js';
|
|
22
|
-
import { T as Theme } from '../styles-
|
|
23
|
-
import '../formatting-
|
|
24
|
-
import '../lists-
|
|
22
|
+
import { T as Theme } from '../styles-BBv7doYK.js';
|
|
23
|
+
import '../formatting-_OXU8gLB.js';
|
|
24
|
+
import '../lists-UTp_tk7B.js';
|
|
25
25
|
import '../types/content.js';
|
|
26
26
|
|
|
27
27
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkOTDF6PZK_js=require('../chunk-OTDF6PZK.js');require('../chunk-3AZWLVLC.js');var chunkUGXSKZVM_js=require('../chunk-UGXSKZVM.js');require('../chunk-XBIKSAH6.js'),require('../chunk-IMKU4O3P.js'),require('../chunk-DROCYKAR.js'),require('../chunk-YCDB5TA6.js'),require('../chunk-IN6IYQ2X.js'),require('../chunk-X3NB7STJ.js'),require('../chunk-D4RPOJC7.js'),require('../chunk-IP2VXNWG.js'),require('../chunk-JFZIXFRC.js'),require('../chunk-MZOVDLYL.js'),require('../chunk-EPX7BBJD.js'),require('../chunk-D536HC5M.js'),require('../chunk-TMISJEGL.js'),require('../chunk-YVYB4YCI.js'),require('../chunk-IO6HZ7KR.js'),require('../chunk-BHBOAP6Z.js'),require('../chunk-MZ7LW5CH.js'),require('../chunk-N3Y5BUKV.js'),require('../chunk-6LVPRTB6.js'),require('../chunk-NERY274X.js'),require('../chunk-MJ5FQX7Q.js'),require('../chunk-C2BAPYGJ.js'),require('../chunk-Q4CKLXWA.js'),require('../chunk-4Q2IP5FW.js'),require('../chunk-DC7S76ZX.js');Object.defineProperty(exports,"PAGE_CLASS_NAMES",{enumerable:true,get:function(){return chunkOTDF6PZK_js.z}});Object.defineProperty(exports,"applyPageStyles",{enumerable:true,get:function(){return chunkOTDF6PZK_js.A}});Object.defineProperty(exports,"renderFloatingImagesLayer",{enumerable:true,get:function(){return chunkOTDF6PZK_js.s}});Object.defineProperty(exports,"renderPage",{enumerable:true,get:function(){return chunkOTDF6PZK_js.B}});Object.defineProperty(exports,"renderPages",{enumerable:true,get:function(){return chunkOTDF6PZK_js.y}});Object.defineProperty(exports,"resolveHeaderFooterFloatingTablePosition",{enumerable:true,get:function(){return chunkOTDF6PZK_js.x}});Object.defineProperty(exports,"floatingImageIsBehindDoc",{enumerable:true,get:function(){return chunkUGXSKZVM_js.e}});Object.defineProperty(exports,"floatingImageWrapsText",{enumerable:true,get:function(){return chunkUGXSKZVM_js.d}});Object.defineProperty(exports,"isFloatingImageRun",{enumerable:true,get:function(){return chunkUGXSKZVM_js.f}});Object.defineProperty(exports,"isTextWrappingFloatingImageRun",{enumerable:true,get:function(){return chunkUGXSKZVM_js.g}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{z as PAGE_CLASS_NAMES,A as applyPageStyles,s as renderFloatingImagesLayer,B as renderPage,y as renderPages,x as resolveHeaderFooterFloatingTablePosition}from'../chunk-BFB4PRS4.mjs';import'../chunk-5SU4HPQS.mjs';export{e as floatingImageIsBehindDoc,d as floatingImageWrapsText,f as isFloatingImageRun,g as isTextWrappingFloatingImageRun}from'../chunk-HAAMO2Z2.mjs';import'../chunk-EQVNAHL7.mjs';import'../chunk-FCJWLEKT.mjs';import'../chunk-7E5VBRDL.mjs';import'../chunk-QMLIXLZJ.mjs';import'../chunk-3JXR6YU4.mjs';import'../chunk-NO5LW2DQ.mjs';import'../chunk-LBKMYD3M.mjs';import'../chunk-NBLJPT54.mjs';import'../chunk-QPFJJPIC.mjs';import'../chunk-ILJUDEZ5.mjs';import'../chunk-QVEAQOMR.mjs';import'../chunk-HL5PQT3A.mjs';import'../chunk-B6LYBJ4H.mjs';import'../chunk-TGPS3SRR.mjs';import'../chunk-BRHHK4MG.mjs';import'../chunk-MOKKS75W.mjs';import'../chunk-OZMNIX6U.mjs';import'../chunk-AMENZY5F.mjs';import'../chunk-BGY3CB37.mjs';import'../chunk-CP5OSG5Z.mjs';import'../chunk-67LVRQIR.mjs';import'../chunk-LE67NTCN.mjs';import'../chunk-VQWZHPWI.mjs';import'../chunk-VW22RZ6C.mjs';import'../chunk-QYUPLKLP.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as ParagraphFormatting, T as TextFormatting } from './formatting-
|
|
1
|
+
import { P as ParagraphFormatting, T as TextFormatting } from './formatting-BH4hcZiq.mjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Lists & Numbering Types
|
|
@@ -111,6 +111,12 @@ interface ListRendering {
|
|
|
111
111
|
markerFontFamily?: string;
|
|
112
112
|
/** Marker font size from numbering level rPr, in points */
|
|
113
113
|
markerFontSize?: number;
|
|
114
|
+
/**
|
|
115
|
+
* Suffix character placed after the marker before body text (§17.9.25).
|
|
116
|
+
* Default is `tab`; `space` inserts a single space; `nothing` no gap.
|
|
117
|
+
* Drives marker-slot sizing in `getListMarkerInlineWidth`.
|
|
118
|
+
*/
|
|
119
|
+
markerSuffix?: LevelSuffix;
|
|
114
120
|
/**
|
|
115
121
|
* NumberFormat for each level from 0..ilvl (inclusive).
|
|
116
122
|
* Used to resolve multi-level templates like "%1.%2." where each %N
|
|
@@ -139,4 +145,4 @@ interface NumberingDefinitions {
|
|
|
139
145
|
nums: NumberingInstance[];
|
|
140
146
|
}
|
|
141
147
|
|
|
142
|
-
export type { AbstractNumbering as A, ListLevel as L, NumberingDefinitions as N,
|
|
148
|
+
export type { AbstractNumbering as A, ListLevel as L, NumberingDefinitions as N, NumberFormat as a, LevelSuffix as b, ListRendering as c, NumberingInstance as d };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as ParagraphFormatting, T as TextFormatting } from './formatting-
|
|
1
|
+
import { P as ParagraphFormatting, T as TextFormatting } from './formatting-_OXU8gLB.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Lists & Numbering Types
|
|
@@ -111,6 +111,12 @@ interface ListRendering {
|
|
|
111
111
|
markerFontFamily?: string;
|
|
112
112
|
/** Marker font size from numbering level rPr, in points */
|
|
113
113
|
markerFontSize?: number;
|
|
114
|
+
/**
|
|
115
|
+
* Suffix character placed after the marker before body text (§17.9.25).
|
|
116
|
+
* Default is `tab`; `space` inserts a single space; `nothing` no gap.
|
|
117
|
+
* Drives marker-slot sizing in `getListMarkerInlineWidth`.
|
|
118
|
+
*/
|
|
119
|
+
markerSuffix?: LevelSuffix;
|
|
114
120
|
/**
|
|
115
121
|
* NumberFormat for each level from 0..ilvl (inclusive).
|
|
116
122
|
* Used to resolve multi-level templates like "%1.%2." where each %N
|
|
@@ -139,4 +145,4 @@ interface NumberingDefinitions {
|
|
|
139
145
|
nums: NumberingInstance[];
|
|
140
146
|
}
|
|
141
147
|
|
|
142
|
-
export type { AbstractNumbering as A, ListLevel as L, NumberingDefinitions as N,
|
|
148
|
+
export type { AbstractNumbering as A, ListLevel as L, NumberingDefinitions as N, NumberFormat as a, LevelSuffix as b, ListRendering as c, NumberingInstance as d };
|
|
@@ -16,11 +16,11 @@ import { AutoSaveSnapshot, AutoSaveManagerOptions, SavedDocumentData, AutoSaveSt
|
|
|
16
16
|
import { Document } from '../types/document.mjs';
|
|
17
17
|
import 'prosemirror-view';
|
|
18
18
|
import '../colors-C3vA7HUU.mjs';
|
|
19
|
-
import '../formatting-
|
|
20
|
-
import '../lists-
|
|
19
|
+
import '../formatting-BH4hcZiq.mjs';
|
|
20
|
+
import '../lists-CvG_iVK3.mjs';
|
|
21
21
|
import '../types/content.mjs';
|
|
22
22
|
import '../docx/wrapTypes.mjs';
|
|
23
|
-
import '../styles-
|
|
23
|
+
import '../styles-EI2lxeEN.mjs';
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* AutoSaveManager
|
|
@@ -16,11 +16,11 @@ import { AutoSaveSnapshot, AutoSaveManagerOptions, SavedDocumentData, AutoSaveSt
|
|
|
16
16
|
import { Document } from '../types/document.js';
|
|
17
17
|
import 'prosemirror-view';
|
|
18
18
|
import '../colors-C3vA7HUU.js';
|
|
19
|
-
import '../formatting-
|
|
20
|
-
import '../lists-
|
|
19
|
+
import '../formatting-_OXU8gLB.js';
|
|
20
|
+
import '../lists-UTp_tk7B.js';
|
|
21
21
|
import '../types/content.js';
|
|
22
22
|
import '../docx/wrapTypes.js';
|
|
23
|
-
import '../styles-
|
|
23
|
+
import '../styles-BBv7doYK.js';
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* AutoSaveManager
|
|
@@ -23,10 +23,10 @@ import { Document } from '../types/document.mjs';
|
|
|
23
23
|
import { Table } from '../types/content.mjs';
|
|
24
24
|
import 'prosemirror-view';
|
|
25
25
|
import '../colors-C3vA7HUU.mjs';
|
|
26
|
-
import '../formatting-
|
|
27
|
-
import '../lists-
|
|
26
|
+
import '../formatting-BH4hcZiq.mjs';
|
|
27
|
+
import '../lists-CvG_iVK3.mjs';
|
|
28
28
|
import '../docx/wrapTypes.mjs';
|
|
29
|
-
import '../styles-
|
|
29
|
+
import '../styles-EI2lxeEN.mjs';
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* TableSelectionManager
|
|
@@ -23,10 +23,10 @@ import { Document } from '../types/document.js';
|
|
|
23
23
|
import { Table } from '../types/content.js';
|
|
24
24
|
import 'prosemirror-view';
|
|
25
25
|
import '../colors-C3vA7HUU.js';
|
|
26
|
-
import '../formatting-
|
|
27
|
-
import '../lists-
|
|
26
|
+
import '../formatting-_OXU8gLB.js';
|
|
27
|
+
import '../lists-UTp_tk7B.js';
|
|
28
28
|
import '../docx/wrapTypes.js';
|
|
29
|
-
import '../styles-
|
|
29
|
+
import '../styles-BBv7doYK.js';
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* TableSelectionManager
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
import { EditorView } from 'prosemirror-view';
|
|
9
9
|
import { Document } from '../types/document.mjs';
|
|
10
10
|
import '../colors-C3vA7HUU.mjs';
|
|
11
|
-
import '../formatting-
|
|
12
|
-
import '../lists-
|
|
11
|
+
import '../formatting-BH4hcZiq.mjs';
|
|
12
|
+
import '../lists-CvG_iVK3.mjs';
|
|
13
13
|
import '../types/content.mjs';
|
|
14
14
|
import '../docx/wrapTypes.mjs';
|
|
15
|
-
import '../styles-
|
|
15
|
+
import '../styles-EI2lxeEN.mjs';
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Manager Types
|
package/dist/managers/types.d.ts
CHANGED
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
import { EditorView } from 'prosemirror-view';
|
|
9
9
|
import { Document } from '../types/document.js';
|
|
10
10
|
import '../colors-C3vA7HUU.js';
|
|
11
|
-
import '../formatting-
|
|
12
|
-
import '../lists-
|
|
11
|
+
import '../formatting-_OXU8gLB.js';
|
|
12
|
+
import '../lists-UTp_tk7B.js';
|
|
13
13
|
import '../types/content.js';
|
|
14
14
|
import '../docx/wrapTypes.js';
|
|
15
|
-
import '../styles-
|
|
15
|
+
import '../styles-BBv7doYK.js';
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Manager Types
|