@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
package/dist/mcp.d.mts
CHANGED
|
@@ -19,13 +19,14 @@
|
|
|
19
19
|
* @packageDocumentation
|
|
20
20
|
* @public
|
|
21
21
|
*/
|
|
22
|
-
import {
|
|
22
|
+
import { M as McpToolDefinition, e as McpSession, J as JsonSchema } from './types-DTF0N7UE.mjs';
|
|
23
23
|
import './types/document.mjs';
|
|
24
24
|
import './colors-C3vA7HUU.mjs';
|
|
25
25
|
import './formatting-BH4hcZiq.mjs';
|
|
26
|
-
import './content-
|
|
26
|
+
import './content-3xF4WDE8.mjs';
|
|
27
27
|
import './docx/wrapTypes.mjs';
|
|
28
|
-
import './
|
|
28
|
+
import './watermark-DAcnAs_J.mjs';
|
|
29
|
+
import './styles-BOJ93SAm.mjs';
|
|
29
30
|
import './types/agentApi.mjs';
|
|
30
31
|
|
|
31
32
|
/**
|
package/dist/mcp.d.ts
CHANGED
|
@@ -19,13 +19,14 @@
|
|
|
19
19
|
* @packageDocumentation
|
|
20
20
|
* @public
|
|
21
21
|
*/
|
|
22
|
-
import {
|
|
22
|
+
import { M as McpToolDefinition, e as McpSession, J as JsonSchema } from './types-DDQWU7-j.js';
|
|
23
23
|
import './types/document.js';
|
|
24
24
|
import './colors-C3vA7HUU.js';
|
|
25
25
|
import './formatting-_OXU8gLB.js';
|
|
26
|
-
import './content-
|
|
26
|
+
import './content-C8fc_tL6.js';
|
|
27
27
|
import './docx/wrapTypes.js';
|
|
28
|
-
import './
|
|
28
|
+
import './watermark-DAcnAs_J.js';
|
|
29
|
+
import './styles-BWqX2AS-.js';
|
|
29
30
|
import './types/agentApi.js';
|
|
30
31
|
|
|
31
32
|
/**
|
package/dist/mcp.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
'use strict';var chunkTE2AF7FM_js=require('./chunk-TE2AF7FM.js'),
|
|
1
|
+
'use strict';var chunkTE2AF7FM_js=require('./chunk-TE2AF7FM.js'),chunkBH3ACQ3M_js=require('./chunk-BH3ACQ3M.js');require('./chunk-NAFMAKLK.js');var chunk4BFNWPKW_js=require('./chunk-4BFNWPKW.js'),chunkOTHV7YV2_js=require('./chunk-OTHV7YV2.js');require('./chunk-LERLET2D.js'),require('./chunk-FIGLFSNR.js'),require('./chunk-MNOHUTKE.js'),require('./chunk-SCK6ZM5V.js'),require('./chunk-Z3LGMBJC.js'),require('./chunk-3R7QHNI5.js'),require('./chunk-C2BAPYGJ.js'),require('./chunk-4Q2IP5FW.js'),require('./chunk-GSKMHXHG.js'),require('./chunk-DC7S76ZX.js');var u={type:"string",description:"Document ID returned from docx_load"},x={type:"object",properties:{paragraphIndex:{type:"number",description:"Index of the paragraph (0-indexed)",minimum:0},offset:{type:"number",description:"Character offset within the paragraph",minimum:0}},required:["paragraphIndex","offset"]},h={type:"object",properties:{start:x,end:x},required:["start","end"]},D={name:"docx_load",description:`Load a DOCX document from base64-encoded content.
|
|
2
2
|
Returns a document ID that can be used with other tools.
|
|
3
|
-
The document remains in session memory until closed.`,inputSchema:{type:"object",properties:{content:{type:"string",description:"Base64-encoded DOCX file content"},source:{type:"string",description:"Optional source filename or identifier for reference"}},required:["content"]},handler:async(r,s)=>{let{content:e,source:c}=r;try{let t=atob(e),n=new Uint8Array(t.length);for(let l=0;l<t.length;l++)n[l]=t.charCodeAt(l);let o=n.buffer,a=await
|
|
4
|
-
Returns the document as a base64 string that can be saved to a file.`,inputSchema:{type:"object",properties:{documentId:u},required:["documentId"]},handler:async(r,s)=>{let{documentId:e}=r,c=s.session.documents.get(e);if(!c)return {isError:true,content:[{type:"text",text:`Document not found: ${e}`}]};try{let t;c.buffer?t=await
|
|
3
|
+
The document remains in session memory until closed.`,inputSchema:{type:"object",properties:{content:{type:"string",description:"Base64-encoded DOCX file content"},source:{type:"string",description:"Optional source filename or identifier for reference"}},required:["content"]},handler:async(r,s)=>{let{content:e,source:c}=r;try{let t=atob(e),n=new Uint8Array(t.length);for(let l=0;l<t.length;l++)n[l]=t.charCodeAt(l);let o=n.buffer,a=await chunkOTHV7YV2_js.f(o),d=`doc_${Date.now()}_${Math.random().toString(36).substr(2,9)}`;s.session.documents.set(d,{id:d,document:a,buffer:o,source:c,lastModified:Date.now()});let p=a.package.document.content.filter(l=>l.type==="paragraph").length;return {content:[{type:"text",text:JSON.stringify({documentId:d,source:c,paragraphCount:p,message:"Document loaded successfully"})}]}}catch(t){return {isError:true,content:[{type:"text",text:`Failed to load document: ${t.message}`}]}}},annotations:{category:"core",readOnly:false,complexity:"low"}},C={name:"docx_save",description:`Export the document to base64-encoded DOCX format.
|
|
4
|
+
Returns the document as a base64 string that can be saved to a file.`,inputSchema:{type:"object",properties:{documentId:u},required:["documentId"]},handler:async(r,s)=>{let{documentId:e}=r,c=s.session.documents.get(e);if(!c)return {isError:true,content:[{type:"text",text:`Document not found: ${e}`}]};try{let t;c.buffer?t=await chunkBH3ACQ3M_js.i(c.document):t=await chunkBH3ACQ3M_js.t(c.document);let n=new Uint8Array(t),o="";for(let d=0;d<n.length;d++)o+=String.fromCharCode(n[d]);let a=btoa(o);return {content:[{type:"text",text:JSON.stringify({documentId:e,base64:a,size:t.byteLength,message:"Document exported successfully"})}]}}catch(t){return {isError:true,content:[{type:"text",text:`Failed to save document: ${t.message}`}]}}},annotations:{category:"core",readOnly:true,complexity:"low"}},R={name:"docx_close",description:`Close a document and free its memory.
|
|
5
5
|
Use this when done working with a document.`,inputSchema:{type:"object",properties:{documentId:u},required:["documentId"]},handler:async(r,s)=>{let{documentId:e}=r;return s.session.documents.has(e)?(s.session.documents.delete(e),{content:[{type:"text",text:JSON.stringify({documentId:e,message:"Document closed"})}]}):{isError:true,content:[{type:"text",text:`Document not found: ${e}`}]}},annotations:{category:"core",readOnly:false,complexity:"low"}},k={name:"docx_get_info",description:`Get metadata and statistics about a document.
|
|
6
6
|
Returns paragraph count, word count, table count, and other useful info.`,inputSchema:{type:"object",properties:{documentId:u},required:["documentId"]},handler:async(r,s)=>{let{documentId:e}=r,c=s.session.documents.get(e);if(!c)return {isError:true,content:[{type:"text",text:`Document not found: ${e}`}]};let t=c.document,n=t.package.document,o=n.content.filter(p=>p.type==="paragraph"),a=n.content.filter(p=>p.type==="table"),d=0;for(let p of o)if(p.type==="paragraph"){let l=P(p);d+=l.split(/\s+/).filter(y=>y.length>0).length;}return {content:[{type:"text",text:JSON.stringify({documentId:e,paragraphCount:o.length,tableCount:a.length,wordCount:d,hasStyles:!!t.package.styles,hasTheme:!!t.package.theme,source:c.source,lastModified:c.lastModified})}]}},annotations:{category:"core",readOnly:true,complexity:"low"}},$={name:"docx_get_text",description:`Get the plain text content of the document.
|
|
7
7
|
Returns all text concatenated with paragraph breaks.
|
package/dist/mcp.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {a}from'./chunk-CUY2THAO.mjs';import {
|
|
1
|
+
import {a}from'./chunk-CUY2THAO.mjs';import {i,t}from'./chunk-CHN26LLL.mjs';import'./chunk-WWNOXNEX.mjs';import {b}from'./chunk-3NRMSZX2.mjs';import {f}from'./chunk-UE2ZKRYB.mjs';import'./chunk-3G44SFHX.mjs';import'./chunk-MOCGHQ4A.mjs';import'./chunk-7LRR7RKE.mjs';import'./chunk-7CZEZ3UL.mjs';import'./chunk-W77JXDEV.mjs';import'./chunk-3ANZ3252.mjs';import'./chunk-LE67NTCN.mjs';import'./chunk-VW22RZ6C.mjs';import'./chunk-DI6CRWSW.mjs';import'./chunk-QYUPLKLP.mjs';var u={type:"string",description:"Document ID returned from docx_load"},x={type:"object",properties:{paragraphIndex:{type:"number",description:"Index of the paragraph (0-indexed)",minimum:0},offset:{type:"number",description:"Character offset within the paragraph",minimum:0}},required:["paragraphIndex","offset"]},h={type:"object",properties:{start:x,end:x},required:["start","end"]},D={name:"docx_load",description:`Load a DOCX document from base64-encoded content.
|
|
2
2
|
Returns a document ID that can be used with other tools.
|
|
3
3
|
The document remains in session memory until closed.`,inputSchema:{type:"object",properties:{content:{type:"string",description:"Base64-encoded DOCX file content"},source:{type:"string",description:"Optional source filename or identifier for reference"}},required:["content"]},handler:async(r,s)=>{let{content:e,source:c}=r;try{let t=atob(e),n=new Uint8Array(t.length);for(let l=0;l<t.length;l++)n[l]=t.charCodeAt(l);let o=n.buffer,a=await f(o),d=`doc_${Date.now()}_${Math.random().toString(36).substr(2,9)}`;s.session.documents.set(d,{id:d,document:a,buffer:o,source:c,lastModified:Date.now()});let p=a.package.document.content.filter(l=>l.type==="paragraph").length;return {content:[{type:"text",text:JSON.stringify({documentId:d,source:c,paragraphCount:p,message:"Document loaded successfully"})}]}}catch(t){return {isError:true,content:[{type:"text",text:`Failed to load document: ${t.message}`}]}}},annotations:{category:"core",readOnly:false,complexity:"low"}},C={name:"docx_save",description:`Export the document to base64-encoded DOCX format.
|
|
4
|
-
Returns the document as a base64 string that can be saved to a file.`,inputSchema:{type:"object",properties:{documentId:u},required:["documentId"]},handler:async(r,s
|
|
4
|
+
Returns the document as a base64 string that can be saved to a file.`,inputSchema:{type:"object",properties:{documentId:u},required:["documentId"]},handler:async(r,s)=>{let{documentId:e}=r,c=s.session.documents.get(e);if(!c)return {isError:true,content:[{type:"text",text:`Document not found: ${e}`}]};try{let t$1;c.buffer?t$1=await i(c.document):t$1=await t(c.document);let n=new Uint8Array(t$1),o="";for(let d=0;d<n.length;d++)o+=String.fromCharCode(n[d]);let a=btoa(o);return {content:[{type:"text",text:JSON.stringify({documentId:e,base64:a,size:t$1.byteLength,message:"Document exported successfully"})}]}}catch(t){return {isError:true,content:[{type:"text",text:`Failed to save document: ${t.message}`}]}}},annotations:{category:"core",readOnly:true,complexity:"low"}},R={name:"docx_close",description:`Close a document and free its memory.
|
|
5
5
|
Use this when done working with a document.`,inputSchema:{type:"object",properties:{documentId:u},required:["documentId"]},handler:async(r,s)=>{let{documentId:e}=r;return s.session.documents.has(e)?(s.session.documents.delete(e),{content:[{type:"text",text:JSON.stringify({documentId:e,message:"Document closed"})}]}):{isError:true,content:[{type:"text",text:`Document not found: ${e}`}]}},annotations:{category:"core",readOnly:false,complexity:"low"}},k={name:"docx_get_info",description:`Get metadata and statistics about a document.
|
|
6
6
|
Returns paragraph count, word count, table count, and other useful info.`,inputSchema:{type:"object",properties:{documentId:u},required:["documentId"]},handler:async(r,s)=>{let{documentId:e}=r,c=s.session.documents.get(e);if(!c)return {isError:true,content:[{type:"text",text:`Document not found: ${e}`}]};let t=c.document,n=t.package.document,o=n.content.filter(p=>p.type==="paragraph"),a=n.content.filter(p=>p.type==="table"),d=0;for(let p of o)if(p.type==="paragraph"){let l=P(p);d+=l.split(/\s+/).filter(y=>y.length>0).length;}return {content:[{type:"text",text:JSON.stringify({documentId:e,paragraphCount:o.length,tableCount:a.length,wordCount:d,hasStyles:!!t.package.styles,hasTheme:!!t.package.theme,source:c.source,lastModified:c.lastModified})}]}},annotations:{category:"core",readOnly:true,complexity:"low"}},$={name:"docx_get_text",description:`Get the plain text content of the document.
|
|
7
7
|
Returns all text concatenated with paragraph breaks.
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { WrapTextDirection, FlowBlock, Measure } from './layout-engine/types.mjs';
|
|
2
|
+
import { P as PageGeometry } from './anchoredObjectPosition-KJEyF-wr.mjs';
|
|
3
|
+
|
|
4
|
+
interface FloatingExclusionRect {
|
|
5
|
+
/** Which side the object is on for simple one-sided wrapping. */
|
|
6
|
+
side: 'left' | 'right';
|
|
7
|
+
/** X position relative to the content area. */
|
|
8
|
+
x: number;
|
|
9
|
+
/** Y position relative to the content area. */
|
|
10
|
+
y: number;
|
|
11
|
+
width: number;
|
|
12
|
+
height: number;
|
|
13
|
+
distTop: number;
|
|
14
|
+
distBottom: number;
|
|
15
|
+
distLeft: number;
|
|
16
|
+
distRight: number;
|
|
17
|
+
wrapText?: WrapTextDirection;
|
|
18
|
+
wrapType?: string;
|
|
19
|
+
}
|
|
20
|
+
interface FloatingImageZone {
|
|
21
|
+
leftMargin: number;
|
|
22
|
+
rightMargin: number;
|
|
23
|
+
topY: number;
|
|
24
|
+
bottomY: number;
|
|
25
|
+
segments?: FloatingLineSegmentZone[];
|
|
26
|
+
/**
|
|
27
|
+
* Full-width vertical band (OOXML `topAndBottom` wrap): no text fits beside
|
|
28
|
+
* it, so any line overlapping `[topY, bottomY]` is pushed below the band.
|
|
29
|
+
*/
|
|
30
|
+
fullWidthBlock?: boolean;
|
|
31
|
+
}
|
|
32
|
+
interface FloatingLineSegmentZone {
|
|
33
|
+
leftOffset: number;
|
|
34
|
+
availableWidth: number;
|
|
35
|
+
}
|
|
36
|
+
interface FloatingLineMargins {
|
|
37
|
+
leftMargin: number;
|
|
38
|
+
rightMargin: number;
|
|
39
|
+
segments?: FloatingLineSegmentZone[];
|
|
40
|
+
}
|
|
41
|
+
declare function rectsToFloatingZones(rects: FloatingExclusionRect[], contentWidth: number): FloatingImageZone[];
|
|
42
|
+
declare function getFloatingMargins(lineY: number, lineHeight: number, zones: FloatingImageZone[] | undefined, paragraphYOffset: number): FloatingLineMargins;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Floating-aware block measurement pipeline.
|
|
46
|
+
*
|
|
47
|
+
* Pre-scans a block list to extract exclusion zones from anchored images,
|
|
48
|
+
* floating tables, and floating text boxes; groups co-located floats so
|
|
49
|
+
* their combined exclusion applies starting from the earliest anchor; then
|
|
50
|
+
* walks the blocks calling the caller-supplied `measureBlock` with the
|
|
51
|
+
* active zones and cumulative Y at each step.
|
|
52
|
+
*
|
|
53
|
+
* Adapters (React, Vue) provide their own `measureBlock` so they can
|
|
54
|
+
* decide e.g. whether to cache paragraph measures. The orchestration,
|
|
55
|
+
* extraction, and grouping live here so both adapters stay in lockstep.
|
|
56
|
+
*
|
|
57
|
+
* @packageDocumentation
|
|
58
|
+
* @public
|
|
59
|
+
*/
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Block-measurement callback shape passed to {@link measureBlocksWithFloats}.
|
|
63
|
+
* Adapters (React, Vue) supply this so they can decide platform-specific
|
|
64
|
+
* concerns (e.g. paragraph-measure caching, per-section width) while
|
|
65
|
+
* sharing the floating-zone orchestration. This is adapter-author API,
|
|
66
|
+
* not end-consumer API.
|
|
67
|
+
*
|
|
68
|
+
* @public
|
|
69
|
+
*/
|
|
70
|
+
type MeasureBlockFn = (block: FlowBlock, contentWidth: number, floatingZones?: FloatingImageZone[], cumulativeY?: number) => Measure;
|
|
71
|
+
/**
|
|
72
|
+
* Page geometry (CSS px) used to resolve page/margin-relative anchored objects
|
|
73
|
+
* into content-area coordinates — currently the vertical anchor of a top-pinned
|
|
74
|
+
* `topAndBottom` band. Same shape the painter uses (see `pageGeometryFromPage`),
|
|
75
|
+
* so both paths resolve to identical positions.
|
|
76
|
+
*
|
|
77
|
+
* @public
|
|
78
|
+
*/
|
|
79
|
+
type FloatPageGeometry = PageGeometry;
|
|
80
|
+
/**
|
|
81
|
+
* Walk `blocks` and produce one `Measure` per block. Before measuring, this
|
|
82
|
+
* extracts floating exclusion zones (images / floating tables / floating
|
|
83
|
+
* textboxes), groups overlapping co-located floats, and threads the active
|
|
84
|
+
* zones plus cumulative Y into each `measureBlock` call.
|
|
85
|
+
*
|
|
86
|
+
* Pass `pageGeometry` whenever the document may contain page/margin-anchored
|
|
87
|
+
* `topAndBottom` text boxes (e.g. a title banner pinned to the page top):
|
|
88
|
+
* without it their reserved band falls back to flow-relative Y and the band
|
|
89
|
+
* won't line up with where the painter places the box. Build it with the
|
|
90
|
+
* shared `pageGeometryFromPage` helper.
|
|
91
|
+
*
|
|
92
|
+
* @public
|
|
93
|
+
*/
|
|
94
|
+
declare function measureBlocksWithFloats(blocks: FlowBlock[], contentWidth: number | number[], measureBlock: MeasureBlockFn, pageGeometry?: FloatPageGeometry): Measure[];
|
|
95
|
+
|
|
96
|
+
export { type FloatPageGeometry as F, type MeasureBlockFn as M, type FloatingExclusionRect as a, type FloatingImageZone as b, type FloatingLineSegmentZone as c, getFloatingMargins as g, measureBlocksWithFloats as m, rectsToFloatingZones as r };
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { WrapTextDirection, FlowBlock, Measure } from './layout-engine/types.js';
|
|
2
|
+
import { P as PageGeometry } from './anchoredObjectPosition-CS-8BfhO.js';
|
|
3
|
+
|
|
4
|
+
interface FloatingExclusionRect {
|
|
5
|
+
/** Which side the object is on for simple one-sided wrapping. */
|
|
6
|
+
side: 'left' | 'right';
|
|
7
|
+
/** X position relative to the content area. */
|
|
8
|
+
x: number;
|
|
9
|
+
/** Y position relative to the content area. */
|
|
10
|
+
y: number;
|
|
11
|
+
width: number;
|
|
12
|
+
height: number;
|
|
13
|
+
distTop: number;
|
|
14
|
+
distBottom: number;
|
|
15
|
+
distLeft: number;
|
|
16
|
+
distRight: number;
|
|
17
|
+
wrapText?: WrapTextDirection;
|
|
18
|
+
wrapType?: string;
|
|
19
|
+
}
|
|
20
|
+
interface FloatingImageZone {
|
|
21
|
+
leftMargin: number;
|
|
22
|
+
rightMargin: number;
|
|
23
|
+
topY: number;
|
|
24
|
+
bottomY: number;
|
|
25
|
+
segments?: FloatingLineSegmentZone[];
|
|
26
|
+
/**
|
|
27
|
+
* Full-width vertical band (OOXML `topAndBottom` wrap): no text fits beside
|
|
28
|
+
* it, so any line overlapping `[topY, bottomY]` is pushed below the band.
|
|
29
|
+
*/
|
|
30
|
+
fullWidthBlock?: boolean;
|
|
31
|
+
}
|
|
32
|
+
interface FloatingLineSegmentZone {
|
|
33
|
+
leftOffset: number;
|
|
34
|
+
availableWidth: number;
|
|
35
|
+
}
|
|
36
|
+
interface FloatingLineMargins {
|
|
37
|
+
leftMargin: number;
|
|
38
|
+
rightMargin: number;
|
|
39
|
+
segments?: FloatingLineSegmentZone[];
|
|
40
|
+
}
|
|
41
|
+
declare function rectsToFloatingZones(rects: FloatingExclusionRect[], contentWidth: number): FloatingImageZone[];
|
|
42
|
+
declare function getFloatingMargins(lineY: number, lineHeight: number, zones: FloatingImageZone[] | undefined, paragraphYOffset: number): FloatingLineMargins;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Floating-aware block measurement pipeline.
|
|
46
|
+
*
|
|
47
|
+
* Pre-scans a block list to extract exclusion zones from anchored images,
|
|
48
|
+
* floating tables, and floating text boxes; groups co-located floats so
|
|
49
|
+
* their combined exclusion applies starting from the earliest anchor; then
|
|
50
|
+
* walks the blocks calling the caller-supplied `measureBlock` with the
|
|
51
|
+
* active zones and cumulative Y at each step.
|
|
52
|
+
*
|
|
53
|
+
* Adapters (React, Vue) provide their own `measureBlock` so they can
|
|
54
|
+
* decide e.g. whether to cache paragraph measures. The orchestration,
|
|
55
|
+
* extraction, and grouping live here so both adapters stay in lockstep.
|
|
56
|
+
*
|
|
57
|
+
* @packageDocumentation
|
|
58
|
+
* @public
|
|
59
|
+
*/
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Block-measurement callback shape passed to {@link measureBlocksWithFloats}.
|
|
63
|
+
* Adapters (React, Vue) supply this so they can decide platform-specific
|
|
64
|
+
* concerns (e.g. paragraph-measure caching, per-section width) while
|
|
65
|
+
* sharing the floating-zone orchestration. This is adapter-author API,
|
|
66
|
+
* not end-consumer API.
|
|
67
|
+
*
|
|
68
|
+
* @public
|
|
69
|
+
*/
|
|
70
|
+
type MeasureBlockFn = (block: FlowBlock, contentWidth: number, floatingZones?: FloatingImageZone[], cumulativeY?: number) => Measure;
|
|
71
|
+
/**
|
|
72
|
+
* Page geometry (CSS px) used to resolve page/margin-relative anchored objects
|
|
73
|
+
* into content-area coordinates — currently the vertical anchor of a top-pinned
|
|
74
|
+
* `topAndBottom` band. Same shape the painter uses (see `pageGeometryFromPage`),
|
|
75
|
+
* so both paths resolve to identical positions.
|
|
76
|
+
*
|
|
77
|
+
* @public
|
|
78
|
+
*/
|
|
79
|
+
type FloatPageGeometry = PageGeometry;
|
|
80
|
+
/**
|
|
81
|
+
* Walk `blocks` and produce one `Measure` per block. Before measuring, this
|
|
82
|
+
* extracts floating exclusion zones (images / floating tables / floating
|
|
83
|
+
* textboxes), groups overlapping co-located floats, and threads the active
|
|
84
|
+
* zones plus cumulative Y into each `measureBlock` call.
|
|
85
|
+
*
|
|
86
|
+
* Pass `pageGeometry` whenever the document may contain page/margin-anchored
|
|
87
|
+
* `topAndBottom` text boxes (e.g. a title banner pinned to the page top):
|
|
88
|
+
* without it their reserved band falls back to flow-relative Y and the band
|
|
89
|
+
* won't line up with where the painter places the box. Build it with the
|
|
90
|
+
* shared `pageGeometryFromPage` helper.
|
|
91
|
+
*
|
|
92
|
+
* @public
|
|
93
|
+
*/
|
|
94
|
+
declare function measureBlocksWithFloats(blocks: FlowBlock[], contentWidth: number | number[], measureBlock: MeasureBlockFn, pageGeometry?: FloatPageGeometry): Measure[];
|
|
95
|
+
|
|
96
|
+
export { type FloatPageGeometry as F, type MeasureBlockFn as M, type FloatingExclusionRect as a, type FloatingImageZone as b, type FloatingLineSegmentZone as c, getFloatingMargins as g, measureBlocksWithFloats as m, rectsToFloatingZones as r };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { B as BorderSpec, S as ShadingProperties } from './colors-C3vA7HUU.js';
|
|
2
2
|
import { d as ParagraphAlignment, L as LineSpacingRule, S as SpacingExplicit, e as TabStop, T as TextFormatting, P as ParagraphFormatting, F as FloatingTableProperties, f as TableLook, a as TableFormatting, c as TableCellFormatting, b as TableRowFormatting } from './formatting-_OXU8gLB.js';
|
|
3
|
-
import {
|
|
3
|
+
import { N as NumberFormat, S as SectionProperties, R as RevisionInfo, a as ParagraphPropertyChange, b as TablePropertyChange, c as TableCellPropertyChange, d as TableRowPropertyChange } from './content-C8fc_tL6.js';
|
|
4
4
|
import { WrapType } from './docx/wrapTypes.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { B as BorderSpec, S as ShadingProperties } from './colors-C3vA7HUU.mjs';
|
|
2
2
|
import { d as ParagraphAlignment, L as LineSpacingRule, S as SpacingExplicit, e as TabStop, T as TextFormatting, P as ParagraphFormatting, F as FloatingTableProperties, f as TableLook, a as TableFormatting, c as TableCellFormatting, b as TableRowFormatting } from './formatting-BH4hcZiq.mjs';
|
|
3
|
-
import {
|
|
3
|
+
import { N as NumberFormat, S as SectionProperties, R as RevisionInfo, a as ParagraphPropertyChange, b as TablePropertyChange, c as TableCellPropertyChange, d as TableRowPropertyChange } from './content-3xF4WDE8.mjs';
|
|
4
4
|
import { WrapType } from './docx/wrapTypes.mjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { EditorView } from 'prosemirror-view';
|
|
2
|
+
import { StyleResolver } from './styles/index.mjs';
|
|
3
|
+
import '../formatting-BH4hcZiq.mjs';
|
|
4
|
+
import '../colors-C3vA7HUU.mjs';
|
|
5
|
+
import '../styles-BOJ93SAm.mjs';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Agent-facing formatting operations shared by the React and Vue adapters.
|
|
9
|
+
*
|
|
10
|
+
* `applyFormatting` maps a mark-toggle request (bold/italic/underline/strike/
|
|
11
|
+
* color/highlight/fontSize/fontFamily) onto a PM transaction over a paragraph
|
|
12
|
+
* range located by `paraId` (+ optional `search`). `setParagraphStyle` applies
|
|
13
|
+
* a named paragraph style to that range.
|
|
14
|
+
*
|
|
15
|
+
* Both take the `EditorView` as a parameter. `setParagraphStyle` takes the
|
|
16
|
+
* style resolver as an injected dependency so each adapter keeps its own
|
|
17
|
+
* resolver-sourcing strategy (React caches per styles object; Vue rebuilds).
|
|
18
|
+
*
|
|
19
|
+
* Previously duplicated byte-for-byte at
|
|
20
|
+
* `packages/react/.../useDocxEditorRefApi.ts` and
|
|
21
|
+
* `packages/vue/.../useFormattingActions.ts`.
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
interface ApplyFormattingOptions {
|
|
25
|
+
paraId: string;
|
|
26
|
+
search?: string;
|
|
27
|
+
marks: {
|
|
28
|
+
bold?: boolean;
|
|
29
|
+
italic?: boolean;
|
|
30
|
+
underline?: boolean | {
|
|
31
|
+
style?: string;
|
|
32
|
+
};
|
|
33
|
+
strike?: boolean;
|
|
34
|
+
color?: {
|
|
35
|
+
rgb?: string;
|
|
36
|
+
themeColor?: string;
|
|
37
|
+
};
|
|
38
|
+
highlight?: string;
|
|
39
|
+
fontSize?: number;
|
|
40
|
+
fontFamily?: {
|
|
41
|
+
ascii?: string;
|
|
42
|
+
hAnsi?: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Apply mark toggles to a paragraph range. Returns false when the paraId /
|
|
48
|
+
* search can't be resolved; true (a no-op) when the resolved range is empty.
|
|
49
|
+
*/
|
|
50
|
+
declare function applyFormatting(view: EditorView, options: ApplyFormattingOptions): boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Apply a named paragraph style to the paragraph identified by `paraId`.
|
|
53
|
+
*
|
|
54
|
+
* The style resolver is injected: when present, unknown styleIds are rejected
|
|
55
|
+
* (the agent gets a clear error instead of a silently-broken `<w:pStyle>`), and
|
|
56
|
+
* the resolved paragraph/run formatting is threaded into `applyStyle`. Without
|
|
57
|
+
* a resolver (no styles loaded) the styleId is applied as-is. Returns false
|
|
58
|
+
* when the paraId can't be resolved or the styleId is unknown.
|
|
59
|
+
*/
|
|
60
|
+
declare function setParagraphStyle(view: EditorView, options: {
|
|
61
|
+
paraId: string;
|
|
62
|
+
styleId: string;
|
|
63
|
+
}, deps: {
|
|
64
|
+
styleResolver: StyleResolver | null;
|
|
65
|
+
}): boolean;
|
|
66
|
+
|
|
67
|
+
export { type ApplyFormattingOptions, applyFormatting, setParagraphStyle };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { EditorView } from 'prosemirror-view';
|
|
2
|
+
import { StyleResolver } from './styles/index.js';
|
|
3
|
+
import '../formatting-_OXU8gLB.js';
|
|
4
|
+
import '../colors-C3vA7HUU.js';
|
|
5
|
+
import '../styles-BWqX2AS-.js';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Agent-facing formatting operations shared by the React and Vue adapters.
|
|
9
|
+
*
|
|
10
|
+
* `applyFormatting` maps a mark-toggle request (bold/italic/underline/strike/
|
|
11
|
+
* color/highlight/fontSize/fontFamily) onto a PM transaction over a paragraph
|
|
12
|
+
* range located by `paraId` (+ optional `search`). `setParagraphStyle` applies
|
|
13
|
+
* a named paragraph style to that range.
|
|
14
|
+
*
|
|
15
|
+
* Both take the `EditorView` as a parameter. `setParagraphStyle` takes the
|
|
16
|
+
* style resolver as an injected dependency so each adapter keeps its own
|
|
17
|
+
* resolver-sourcing strategy (React caches per styles object; Vue rebuilds).
|
|
18
|
+
*
|
|
19
|
+
* Previously duplicated byte-for-byte at
|
|
20
|
+
* `packages/react/.../useDocxEditorRefApi.ts` and
|
|
21
|
+
* `packages/vue/.../useFormattingActions.ts`.
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
interface ApplyFormattingOptions {
|
|
25
|
+
paraId: string;
|
|
26
|
+
search?: string;
|
|
27
|
+
marks: {
|
|
28
|
+
bold?: boolean;
|
|
29
|
+
italic?: boolean;
|
|
30
|
+
underline?: boolean | {
|
|
31
|
+
style?: string;
|
|
32
|
+
};
|
|
33
|
+
strike?: boolean;
|
|
34
|
+
color?: {
|
|
35
|
+
rgb?: string;
|
|
36
|
+
themeColor?: string;
|
|
37
|
+
};
|
|
38
|
+
highlight?: string;
|
|
39
|
+
fontSize?: number;
|
|
40
|
+
fontFamily?: {
|
|
41
|
+
ascii?: string;
|
|
42
|
+
hAnsi?: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Apply mark toggles to a paragraph range. Returns false when the paraId /
|
|
48
|
+
* search can't be resolved; true (a no-op) when the resolved range is empty.
|
|
49
|
+
*/
|
|
50
|
+
declare function applyFormatting(view: EditorView, options: ApplyFormattingOptions): boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Apply a named paragraph style to the paragraph identified by `paraId`.
|
|
53
|
+
*
|
|
54
|
+
* The style resolver is injected: when present, unknown styleIds are rejected
|
|
55
|
+
* (the agent gets a clear error instead of a silently-broken `<w:pStyle>`), and
|
|
56
|
+
* the resolved paragraph/run formatting is threaded into `applyStyle`. Without
|
|
57
|
+
* a resolver (no styles loaded) the styleId is applied as-is. Returns false
|
|
58
|
+
* when the paraId can't be resolved or the styleId is unknown.
|
|
59
|
+
*/
|
|
60
|
+
declare function setParagraphStyle(view: EditorView, options: {
|
|
61
|
+
paraId: string;
|
|
62
|
+
styleId: string;
|
|
63
|
+
}, deps: {
|
|
64
|
+
styleResolver: StyleResolver | null;
|
|
65
|
+
}): boolean;
|
|
66
|
+
|
|
67
|
+
export { type ApplyFormattingOptions, applyFormatting, setParagraphStyle };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkNRWQ65NX_js=require('../chunk-NRWQ65NX.js'),chunkQEACB5VG_js=require('../chunk-QEACB5VG.js'),chunkAPNMO5JT_js=require('../chunk-APNMO5JT.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');var chunk4Q2IP5FW_js=require('../chunk-4Q2IP5FW.js');require('../chunk-GSKMHXHG.js'),require('../chunk-DC7S76ZX.js');var prosemirrorState=require('prosemirror-state');function I(i,l){let s=chunkNRWQ65NX_js.a(i.state.doc,l.paraId);if(!s)return false;let o=s.from+1,a=s.to-1;if(l.search){let n=chunkNRWQ65NX_js.d(i.state.doc,s.from,s.to,l.search);if(!n)return false;o=n.from,a=n.to;}if(o>=a)return true;let{schema:t}=i.state,e=l.marks,r=i.state.tr;if(e.bold!==void 0&&t.marks.bold&&(r=e.bold?r.addMark(o,a,t.marks.bold.create()):r.removeMark(o,a,t.marks.bold)),e.italic!==void 0&&t.marks.italic&&(r=e.italic?r.addMark(o,a,t.marks.italic.create()):r.removeMark(o,a,t.marks.italic)),e.underline!==void 0&&t.marks.underline)if(e.underline){let n=typeof e.underline=="object"?e.underline.style:void 0;r=r.addMark(o,a,t.marks.underline.create({style:n??"single"}));}else r=r.removeMark(o,a,t.marks.underline);if(e.strike!==void 0&&t.marks.strike&&(r=e.strike?r.addMark(o,a,t.marks.strike.create()):r.removeMark(o,a,t.marks.strike)),e.color!==void 0&&t.marks.textColor&&(e.color&&(e.color.rgb||e.color.themeColor)?r=r.addMark(o,a,t.marks.textColor.create({rgb:e.color.rgb??null,themeColor:e.color.themeColor??null})):r=r.removeMark(o,a,t.marks.textColor)),e.highlight!==void 0&&t.marks.highlight)if(e.highlight){let n=chunkQEACB5VG_js.b(e.highlight);r=r.addMark(o,a,t.marks.highlight.create({color:n||e.highlight}));}else r=r.removeMark(o,a,t.marks.highlight);return e.fontSize!==void 0&&t.marks.fontSize&&(e.fontSize>0?r=r.addMark(o,a,t.marks.fontSize.create({size:chunk4Q2IP5FW_js.l(e.fontSize)})):r=r.removeMark(o,a,t.marks.fontSize)),e.fontFamily!==void 0&&t.marks.fontFamily&&(e.fontFamily&&(e.fontFamily.ascii||e.fontFamily.hAnsi)?r=r.addMark(o,a,t.marks.fontFamily.create({ascii:e.fontFamily.ascii??null,hAnsi:e.fontFamily.hAnsi??e.fontFamily.ascii??null})):r=r.removeMark(o,a,t.marks.fontFamily)),i.dispatch(r),true}function x(i,l,s){let o=chunkNRWQ65NX_js.a(i.state.doc,l.paraId);if(!o)return false;let{styleResolver:a}=s;if(a&&!a.hasParagraphStyle(l.styleId))return false;let t=i.state.doc.resolve(o.from+1),e=i.state.doc.resolve(o.to-1),r=prosemirrorState.TextSelection.between(t,e),n=i.state.apply(i.state.tr.setSelection(r)),p=a?(()=>{let m=a.resolveParagraphStyle(l.styleId);return chunkAPNMO5JT_js.v(l.styleId,{paragraphFormatting:m.paragraphFormatting,runFormatting:m.runFormatting})})():chunkAPNMO5JT_js.v(l.styleId),c=false;return p(n,m=>{c=true,m.setSelection(i.state.selection.map(m.doc,m.mapping)),i.dispatch(m);}),c}exports.applyFormatting=I;exports.setParagraphStyle=x;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a,d}from'../chunk-HPJBZL37.mjs';import {b}from'../chunk-XPV6VILW.mjs';import {v}from'../chunk-LAJPGQEE.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 {l}from'../chunk-VW22RZ6C.mjs';import'../chunk-DI6CRWSW.mjs';import'../chunk-QYUPLKLP.mjs';import {TextSelection}from'prosemirror-state';function I(i,l$1){let s=a(i.state.doc,l$1.paraId);if(!s)return false;let o=s.from+1,a$1=s.to-1;if(l$1.search){let n=d(i.state.doc,s.from,s.to,l$1.search);if(!n)return false;o=n.from,a$1=n.to;}if(o>=a$1)return true;let{schema:t}=i.state,e=l$1.marks,r=i.state.tr;if(e.bold!==void 0&&t.marks.bold&&(r=e.bold?r.addMark(o,a$1,t.marks.bold.create()):r.removeMark(o,a$1,t.marks.bold)),e.italic!==void 0&&t.marks.italic&&(r=e.italic?r.addMark(o,a$1,t.marks.italic.create()):r.removeMark(o,a$1,t.marks.italic)),e.underline!==void 0&&t.marks.underline)if(e.underline){let n=typeof e.underline=="object"?e.underline.style:void 0;r=r.addMark(o,a$1,t.marks.underline.create({style:n??"single"}));}else r=r.removeMark(o,a$1,t.marks.underline);if(e.strike!==void 0&&t.marks.strike&&(r=e.strike?r.addMark(o,a$1,t.marks.strike.create()):r.removeMark(o,a$1,t.marks.strike)),e.color!==void 0&&t.marks.textColor&&(e.color&&(e.color.rgb||e.color.themeColor)?r=r.addMark(o,a$1,t.marks.textColor.create({rgb:e.color.rgb??null,themeColor:e.color.themeColor??null})):r=r.removeMark(o,a$1,t.marks.textColor)),e.highlight!==void 0&&t.marks.highlight)if(e.highlight){let n=b(e.highlight);r=r.addMark(o,a$1,t.marks.highlight.create({color:n||e.highlight}));}else r=r.removeMark(o,a$1,t.marks.highlight);return e.fontSize!==void 0&&t.marks.fontSize&&(e.fontSize>0?r=r.addMark(o,a$1,t.marks.fontSize.create({size:l(e.fontSize)})):r=r.removeMark(o,a$1,t.marks.fontSize)),e.fontFamily!==void 0&&t.marks.fontFamily&&(e.fontFamily&&(e.fontFamily.ascii||e.fontFamily.hAnsi)?r=r.addMark(o,a$1,t.marks.fontFamily.create({ascii:e.fontFamily.ascii??null,hAnsi:e.fontFamily.hAnsi??e.fontFamily.ascii??null})):r=r.removeMark(o,a$1,t.marks.fontFamily)),i.dispatch(r),true}function x(i,l,s){let o=a(i.state.doc,l.paraId);if(!o)return false;let{styleResolver:a$1}=s;if(a$1&&!a$1.hasParagraphStyle(l.styleId))return false;let t=i.state.doc.resolve(o.from+1),e=i.state.doc.resolve(o.to-1),r=TextSelection.between(t,e),n=i.state.apply(i.state.tr.setSelection(r)),p=a$1?(()=>{let m=a$1.resolveParagraphStyle(l.styleId);return v(l.styleId,{paragraphFormatting:m.paragraphFormatting,runFormatting:m.runFormatting})})():v(l.styleId),c=false;return p(n,m=>{c=true,m.setSelection(i.state.selection.map(m.doc,m.mapping)),i.dispatch(m);}),c}export{I as applyFormatting,x as setParagraphStyle};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunk6V3SFHEM_js=require('../../chunk-6V3SFHEM.js');require('../../chunk-WWBNJ7KF.js');var chunk4RTVLMRZ_js=require('../../chunk-4RTVLMRZ.js');require('../../chunk-BHBOAP6Z.js'),require('../../chunk-MZ7LW5CH.js'),require('../../chunk-N3Y5BUKV.js');var chunkWVERBZZU_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,"clearFontFamily",{enumerable:true,get:function(){return chunk6V3SFHEM_js.o}});Object.defineProperty(exports,"clearFontSize",{enumerable:true,get:function(){return chunk6V3SFHEM_js.m}});Object.defineProperty(exports,"clearHighlight",{enumerable:true,get:function(){return chunk6V3SFHEM_js.k}});Object.defineProperty(exports,"clearTextColor",{enumerable:true,get:function(){return chunk6V3SFHEM_js.i}});Object.defineProperty(exports,"insertHyperlink",{enumerable:true,get:function(){return chunk6V3SFHEM_js.s}});Object.defineProperty(exports,"removeHyperlink",{enumerable:true,get:function(){return chunk6V3SFHEM_js.r}});Object.defineProperty(exports,"setFontFamily",{enumerable:true,get:function(){return chunk6V3SFHEM_js.n}});Object.defineProperty(exports,"setFontSize",{enumerable:true,get:function(){return chunk6V3SFHEM_js.l}});Object.defineProperty(exports,"setHighlight",{enumerable:true,get:function(){return chunk6V3SFHEM_js.j}});Object.defineProperty(exports,"setHyperlink",{enumerable:true,get:function(){return chunk6V3SFHEM_js.q}});Object.defineProperty(exports,"setTextColor",{enumerable:true,get:function(){return chunk6V3SFHEM_js.h}});Object.defineProperty(exports,"setUnderlineStyle",{enumerable:true,get:function(){return chunk6V3SFHEM_js.p}});Object.defineProperty(exports,"textFormattingToMarks",{enumerable:true,get:function(){return chunk6V3SFHEM_js.a}});Object.defineProperty(exports,"toggleBold",{enumerable:true,get:function(){return chunk6V3SFHEM_js.b}});Object.defineProperty(exports,"toggleItalic",{enumerable:true,get:function(){return chunk6V3SFHEM_js.c}});Object.defineProperty(exports,"toggleStrike",{enumerable:true,get:function(){return chunk6V3SFHEM_js.e}});Object.defineProperty(exports,"toggleSubscript",{enumerable:true,get:function(){return chunk6V3SFHEM_js.g}});Object.defineProperty(exports,"toggleSuperscript",{enumerable:true,get:function(){return chunk6V3SFHEM_js.f}});Object.defineProperty(exports,"toggleUnderline",{enumerable:true,get:function(){return chunk6V3SFHEM_js.d}});Object.defineProperty(exports,"findHyperlinkRangeAt",{enumerable:true,get:function(){return chunk4RTVLMRZ_js.h}});Object.defineProperty(exports,"getHyperlinkAttrs",{enumerable:true,get:function(){return chunk4RTVLMRZ_js.f}});Object.defineProperty(exports,"getSelectedText",{enumerable:true,get:function(){return chunk4RTVLMRZ_js.g}});Object.defineProperty(exports,"isHyperlinkActive",{enumerable:true,get:function(){return chunk4RTVLMRZ_js.e}});Object.defineProperty(exports,"clearFormatting",{enumerable:true,get:function(){return chunkWVERBZZU_js.g}});Object.defineProperty(exports,"createRemoveMarkCommand",{enumerable:true,get:function(){return chunkWVERBZZU_js.i}});Object.defineProperty(exports,"createSetMarkCommand",{enumerable:true,get:function(){return chunkWVERBZZU_js.h}});Object.defineProperty(exports,"getMarkAttr",{enumerable:true,get:function(){return chunkWVERBZZU_js.e}});Object.defineProperty(exports,"isMarkActive",{enumerable:true,get:function(){return chunkWVERBZZU_js.d}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{o as clearFontFamily,m as clearFontSize,k as clearHighlight,i as clearTextColor,s as insertHyperlink,r as removeHyperlink,n as setFontFamily,l as setFontSize,j as setHighlight,q as setHyperlink,h as setTextColor,p as setUnderlineStyle,a as textFormattingToMarks,b as toggleBold,c as toggleItalic,e as toggleStrike,g as toggleSubscript,f as toggleSuperscript,d as toggleUnderline}from'../../chunk-
|
|
1
|
+
export{o as clearFontFamily,m as clearFontSize,k as clearHighlight,i as clearTextColor,s as insertHyperlink,r as removeHyperlink,n as setFontFamily,l as setFontSize,j as setHighlight,q as setHyperlink,h as setTextColor,p as setUnderlineStyle,a as textFormattingToMarks,b as toggleBold,c as toggleItalic,e as toggleStrike,g as toggleSubscript,f as toggleSuperscript,d as toggleUnderline}from'../../chunk-7UZJ5YDF.mjs';import'../../chunk-4GFTMGSV.mjs';export{h as findHyperlinkRangeAt,f as getHyperlinkAttrs,g as getSelectedText,e as isHyperlinkActive}from'../../chunk-SWBLJF6R.mjs';import'../../chunk-MOKKS75W.mjs';import'../../chunk-OZMNIX6U.mjs';import'../../chunk-AMENZY5F.mjs';export{g as clearFormatting,i as createRemoveMarkCommand,h as createSetMarkCommand,e as getMarkAttr,d as isMarkActive}from'../../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';
|
|
@@ -13,6 +13,7 @@ import { EditorState, Transaction, Command } from 'prosemirror-state';
|
|
|
13
13
|
import { Node } from 'prosemirror-model';
|
|
14
14
|
import { I as ImageLayoutTarget, S as SetImageWrapTypeOptions } from '../../ImageExtension-BN327PNe.mjs';
|
|
15
15
|
export { A as AnchorWrapType } from '../../ImageExtension-BN327PNe.mjs';
|
|
16
|
+
import { W as Watermark } from '../../watermark-DAcnAs_J.mjs';
|
|
16
17
|
export { B as BorderPreset, T as TableContextInfo, g as getTableContext, i as isInTable } from '../../borders-BH_GoYU3.mjs';
|
|
17
18
|
import '../../formatting-BH4hcZiq.mjs';
|
|
18
19
|
import '../../colors-C3vA7HUU.mjs';
|
|
@@ -185,4 +186,22 @@ declare function rejectChangeById(revisionId: number): Command;
|
|
|
185
186
|
*/
|
|
186
187
|
declare function findPreviousChange(state: EditorState, startPos: number): ChangeRange | null;
|
|
187
188
|
|
|
188
|
-
|
|
189
|
+
/**
|
|
190
|
+
* Watermark command.
|
|
191
|
+
*
|
|
192
|
+
* The document watermark lives as a `doc` node attribute (see DocExtension), so
|
|
193
|
+
* setting it is a normal ProseMirror transaction — it rides undo/redo, the
|
|
194
|
+
* toolbar undo/redo buttons, and Ctrl+Z like any other edit. The painter reads
|
|
195
|
+
* the watermark from PM state; the conversion layer syncs it to/from
|
|
196
|
+
* `HeaderFooter.watermark` for parse/serialize.
|
|
197
|
+
*/
|
|
198
|
+
|
|
199
|
+
/** Read the current watermark from a ProseMirror state's doc attrs. */
|
|
200
|
+
declare function getWatermarkFromState(state: EditorState): Watermark | null;
|
|
201
|
+
/**
|
|
202
|
+
* Set (or clear, with `null`) the document watermark. Dispatches a
|
|
203
|
+
* `setDocAttribute` transaction so the change is undoable.
|
|
204
|
+
*/
|
|
205
|
+
declare function setWatermark(watermark: Watermark | null): Command;
|
|
206
|
+
|
|
207
|
+
export { ImageLayoutTarget, SetImageWrapTypeOptions, type SplitCellDialogConfig, acceptAllChanges, acceptChange, acceptChangeById, addCommentMark, findNextChange, findPreviousChange, getSplitCellDialogConfig, getWatermarkFromState, insertImageNode, rejectAllChanges, rejectChange, rejectChangeById, removeCommentMark, setImageWrapType, setWatermark, splitActiveTableCell };
|
|
@@ -13,6 +13,7 @@ import { EditorState, Transaction, Command } from 'prosemirror-state';
|
|
|
13
13
|
import { Node } from 'prosemirror-model';
|
|
14
14
|
import { I as ImageLayoutTarget, S as SetImageWrapTypeOptions } from '../../ImageExtension-BlI5afZD.js';
|
|
15
15
|
export { A as AnchorWrapType } from '../../ImageExtension-BlI5afZD.js';
|
|
16
|
+
import { W as Watermark } from '../../watermark-DAcnAs_J.js';
|
|
16
17
|
export { B as BorderPreset, T as TableContextInfo, g as getTableContext, i as isInTable } from '../../borders-Z9hPno2u.js';
|
|
17
18
|
import '../../formatting-_OXU8gLB.js';
|
|
18
19
|
import '../../colors-C3vA7HUU.js';
|
|
@@ -185,4 +186,22 @@ declare function rejectChangeById(revisionId: number): Command;
|
|
|
185
186
|
*/
|
|
186
187
|
declare function findPreviousChange(state: EditorState, startPos: number): ChangeRange | null;
|
|
187
188
|
|
|
188
|
-
|
|
189
|
+
/**
|
|
190
|
+
* Watermark command.
|
|
191
|
+
*
|
|
192
|
+
* The document watermark lives as a `doc` node attribute (see DocExtension), so
|
|
193
|
+
* setting it is a normal ProseMirror transaction — it rides undo/redo, the
|
|
194
|
+
* toolbar undo/redo buttons, and Ctrl+Z like any other edit. The painter reads
|
|
195
|
+
* the watermark from PM state; the conversion layer syncs it to/from
|
|
196
|
+
* `HeaderFooter.watermark` for parse/serialize.
|
|
197
|
+
*/
|
|
198
|
+
|
|
199
|
+
/** Read the current watermark from a ProseMirror state's doc attrs. */
|
|
200
|
+
declare function getWatermarkFromState(state: EditorState): Watermark | null;
|
|
201
|
+
/**
|
|
202
|
+
* Set (or clear, with `null`) the document watermark. Dispatches a
|
|
203
|
+
* `setDocAttribute` transaction so the change is undoable.
|
|
204
|
+
*/
|
|
205
|
+
declare function setWatermark(watermark: Watermark | null): Command;
|
|
206
|
+
|
|
207
|
+
export { ImageLayoutTarget, SetImageWrapTypeOptions, type SplitCellDialogConfig, acceptAllChanges, acceptChange, acceptChangeById, addCommentMark, findNextChange, findPreviousChange, getSplitCellDialogConfig, getWatermarkFromState, insertImageNode, rejectAllChanges, rejectChange, rejectChangeById, removeCommentMark, setImageWrapType, setWatermark, splitActiveTableCell };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var chunkU4XMGWF7_js=require('../../chunk-U4XMGWF7.js'),chunkBXWOLARZ_js=require('../../chunk-BXWOLARZ.js'),chunkTHLJYXFB_js=require('../../chunk-THLJYXFB.js'),chunkGGPKPXON_js=require('../../chunk-GGPKPXON.js');require('../../chunk-2KHWHVTA.js'),require('../../chunk-IYKBX24M.js'),require('../../chunk-VMRUBLPI.js');var chunk2EQGBVPV_js=require('../../chunk-2EQGBVPV.js');require('../../chunk-BHBOAP6Z.js'),require('../../chunk-MZ7LW5CH.js'),require('../../chunk-N3Y5BUKV.js');var chunkWVERBZZU_js=require('../../chunk-WVERBZZU.js');require('../../chunk-6LVPRTB6.js'),require('../../chunk-LWH66Q7Q.js');var chunkTUIEV7Q7_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,"acceptAllChanges",{enumerable:true,get:function(){return chunkU4XMGWF7_js.O}});Object.defineProperty(exports,"acceptChange",{enumerable:true,get:function(){return chunkU4XMGWF7_js.M}});Object.defineProperty(exports,"acceptChangeById",{enumerable:true,get:function(){return chunkU4XMGWF7_js.R}});Object.defineProperty(exports,"addColumnLeft",{enumerable:true,get:function(){return chunkU4XMGWF7_js.g}});Object.defineProperty(exports,"addColumnRight",{enumerable:true,get:function(){return chunkU4XMGWF7_js.h}});Object.defineProperty(exports,"addCommentMark",{enumerable:true,get:function(){return chunkU4XMGWF7_js.K}});Object.defineProperty(exports,"addRowAbove",{enumerable:true,get:function(){return chunkU4XMGWF7_js.d}});Object.defineProperty(exports,"addRowBelow",{enumerable:true,get:function(){return chunkU4XMGWF7_js.e}});Object.defineProperty(exports,"applyTableStyle",{enumerable:true,get:function(){return chunkU4XMGWF7_js.E}});Object.defineProperty(exports,"autoFitContents",{enumerable:true,get:function(){return chunkU4XMGWF7_js.C}});Object.defineProperty(exports,"deleteColumn",{enumerable:true,get:function(){return chunkU4XMGWF7_js.i}});Object.defineProperty(exports,"deleteRow",{enumerable:true,get:function(){return chunkU4XMGWF7_js.f}});Object.defineProperty(exports,"deleteTable",{enumerable:true,get:function(){return chunkU4XMGWF7_js.j}});Object.defineProperty(exports,"distributeColumns",{enumerable:true,get:function(){return chunkU4XMGWF7_js.B}});Object.defineProperty(exports,"findNextChange",{enumerable:true,get:function(){return chunkU4XMGWF7_js.Q}});Object.defineProperty(exports,"findPreviousChange",{enumerable:true,get:function(){return chunkU4XMGWF7_js.T}});Object.defineProperty(exports,"getSplitCellDialogConfig",{enumerable:true,get:function(){return chunkU4XMGWF7_js.a}});Object.defineProperty(exports,"insertImageNode",{enumerable:true,get:function(){return chunkU4XMGWF7_js.I}});Object.defineProperty(exports,"insertTable",{enumerable:true,get:function(){return chunkU4XMGWF7_js.c}});Object.defineProperty(exports,"mergeCells",{enumerable:true,get:function(){return chunkU4XMGWF7_js.n}});Object.defineProperty(exports,"rejectAllChanges",{enumerable:true,get:function(){return chunkU4XMGWF7_js.P}});Object.defineProperty(exports,"rejectChange",{enumerable:true,get:function(){return chunkU4XMGWF7_js.N}});Object.defineProperty(exports,"rejectChangeById",{enumerable:true,get:function(){return chunkU4XMGWF7_js.S}});Object.defineProperty(exports,"removeCommentMark",{enumerable:true,get:function(){return chunkU4XMGWF7_js.L}});Object.defineProperty(exports,"removeTableBorders",{enumerable:true,get:function(){return chunkU4XMGWF7_js.r}});Object.defineProperty(exports,"selectColumn",{enumerable:true,get:function(){return chunkU4XMGWF7_js.m}});Object.defineProperty(exports,"selectRow",{enumerable:true,get:function(){return chunkU4XMGWF7_js.l}});Object.defineProperty(exports,"selectTable",{enumerable:true,get:function(){return chunkU4XMGWF7_js.k}});Object.defineProperty(exports,"setAllTableBorders",{enumerable:true,get:function(){return chunkU4XMGWF7_js.s}});Object.defineProperty(exports,"setCellBorder",{enumerable:true,get:function(){return chunkU4XMGWF7_js.p}});Object.defineProperty(exports,"setCellFillColor",{enumerable:true,get:function(){return chunkU4XMGWF7_js.F}});Object.defineProperty(exports,"setCellMargins",{enumerable:true,get:function(){return chunkU4XMGWF7_js.w}});Object.defineProperty(exports,"setCellTextDirection",{enumerable:true,get:function(){return chunkU4XMGWF7_js.x}});Object.defineProperty(exports,"setCellVerticalAlign",{enumerable:true,get:function(){return chunkU4XMGWF7_js.v}});Object.defineProperty(exports,"setImageWrapType",{enumerable:true,get:function(){return chunkU4XMGWF7_js.J}});Object.defineProperty(exports,"setInsideTableBorders",{enumerable:true,get:function(){return chunkU4XMGWF7_js.u}});Object.defineProperty(exports,"setOutsideTableBorders",{enumerable:true,get:function(){return chunkU4XMGWF7_js.t}});Object.defineProperty(exports,"setRowHeight",{enumerable:true,get:function(){return chunkU4XMGWF7_js.z}});Object.defineProperty(exports,"setTableBorderColor",{enumerable:true,get:function(){return chunkU4XMGWF7_js.G}});Object.defineProperty(exports,"setTableBorderWidth",{enumerable:true,get:function(){return chunkU4XMGWF7_js.H}});Object.defineProperty(exports,"setTableBorders",{enumerable:true,get:function(){return chunkU4XMGWF7_js.q}});Object.defineProperty(exports,"setTableProperties",{enumerable:true,get:function(){return chunkU4XMGWF7_js.D}});Object.defineProperty(exports,"splitActiveTableCell",{enumerable:true,get:function(){return chunkU4XMGWF7_js.b}});Object.defineProperty(exports,"splitCell",{enumerable:true,get:function(){return chunkU4XMGWF7_js.o}});Object.defineProperty(exports,"toggleHeaderRow",{enumerable:true,get:function(){return chunkU4XMGWF7_js.A}});Object.defineProperty(exports,"toggleNoWrap",{enumerable:true,get:function(){return chunkU4XMGWF7_js.y}});Object.defineProperty(exports,"addTabStop",{enumerable:true,get:function(){return chunkBXWOLARZ_js.z}});Object.defineProperty(exports,"alignCenter",{enumerable:true,get:function(){return chunkBXWOLARZ_js.c}});Object.defineProperty(exports,"alignJustify",{enumerable:true,get:function(){return chunkBXWOLARZ_js.e}});Object.defineProperty(exports,"alignLeft",{enumerable:true,get:function(){return chunkBXWOLARZ_js.b}});Object.defineProperty(exports,"alignRight",{enumerable:true,get:function(){return chunkBXWOLARZ_js.d}});Object.defineProperty(exports,"applyStyle",{enumerable:true,get:function(){return chunkBXWOLARZ_js.v}});Object.defineProperty(exports,"clearStyle",{enumerable:true,get:function(){return chunkBXWOLARZ_js.w}});Object.defineProperty(exports,"decreaseIndent",{enumerable:true,get:function(){return chunkBXWOLARZ_js.k}});Object.defineProperty(exports,"decreaseListLevel",{enumerable:true,get:function(){return chunkBXWOLARZ_js.r}});Object.defineProperty(exports,"doubleSpacing",{enumerable:true,get:function(){return chunkBXWOLARZ_js.i}});Object.defineProperty(exports,"generateTOC",{enumerable:true,get:function(){return chunkBXWOLARZ_js.D}});Object.defineProperty(exports,"increaseIndent",{enumerable:true,get:function(){return chunkBXWOLARZ_js.j}});Object.defineProperty(exports,"increaseListLevel",{enumerable:true,get:function(){return chunkBXWOLARZ_js.q}});Object.defineProperty(exports,"oneAndHalfSpacing",{enumerable:true,get:function(){return chunkBXWOLARZ_js.h}});Object.defineProperty(exports,"removeList",{enumerable:true,get:function(){return chunkBXWOLARZ_js.s}});Object.defineProperty(exports,"removeTabStop",{enumerable:true,get:function(){return chunkBXWOLARZ_js.A}});Object.defineProperty(exports,"setAlignment",{enumerable:true,get:function(){return chunkBXWOLARZ_js.a}});Object.defineProperty(exports,"setIndentFirstLine",{enumerable:true,get:function(){return chunkBXWOLARZ_js.n}});Object.defineProperty(exports,"setIndentLeft",{enumerable:true,get:function(){return chunkBXWOLARZ_js.l}});Object.defineProperty(exports,"setIndentRight",{enumerable:true,get:function(){return chunkBXWOLARZ_js.m}});Object.defineProperty(exports,"setLineSpacing",{enumerable:true,get:function(){return chunkBXWOLARZ_js.f}});Object.defineProperty(exports,"setLtr",{enumerable:true,get:function(){return chunkBXWOLARZ_js.C}});Object.defineProperty(exports,"setRtl",{enumerable:true,get:function(){return chunkBXWOLARZ_js.B}});Object.defineProperty(exports,"setSpaceAfter",{enumerable:true,get:function(){return chunkBXWOLARZ_js.u}});Object.defineProperty(exports,"setSpaceBefore",{enumerable:true,get:function(){return chunkBXWOLARZ_js.t}});Object.defineProperty(exports,"singleSpacing",{enumerable:true,get:function(){return chunkBXWOLARZ_js.g}});Object.defineProperty(exports,"toggleBulletList",{enumerable:true,get:function(){return chunkBXWOLARZ_js.o}});Object.defineProperty(exports,"toggleNumberedList",{enumerable:true,get:function(){return chunkBXWOLARZ_js.p}});Object.defineProperty(exports,"clearFontFamily",{enumerable:true,get:function(){return chunkTHLJYXFB_js.o}});Object.defineProperty(exports,"clearFontSize",{enumerable:true,get:function(){return chunkTHLJYXFB_js.m}});Object.defineProperty(exports,"clearHighlight",{enumerable:true,get:function(){return chunkTHLJYXFB_js.k}});Object.defineProperty(exports,"clearTextColor",{enumerable:true,get:function(){return chunkTHLJYXFB_js.i}});Object.defineProperty(exports,"insertHyperlink",{enumerable:true,get:function(){return chunkTHLJYXFB_js.s}});Object.defineProperty(exports,"removeHyperlink",{enumerable:true,get:function(){return chunkTHLJYXFB_js.r}});Object.defineProperty(exports,"setFontFamily",{enumerable:true,get:function(){return chunkTHLJYXFB_js.n}});Object.defineProperty(exports,"setFontSize",{enumerable:true,get:function(){return chunkTHLJYXFB_js.l}});Object.defineProperty(exports,"setHighlight",{enumerable:true,get:function(){return chunkTHLJYXFB_js.j}});Object.defineProperty(exports,"setHyperlink",{enumerable:true,get:function(){return chunkTHLJYXFB_js.q}});Object.defineProperty(exports,"setTextColor",{enumerable:true,get:function(){return chunkTHLJYXFB_js.h}});Object.defineProperty(exports,"setUnderlineStyle",{enumerable:true,get:function(){return chunkTHLJYXFB_js.p}});Object.defineProperty(exports,"toggleBold",{enumerable:true,get:function(){return chunkTHLJYXFB_js.b}});Object.defineProperty(exports,"toggleItalic",{enumerable:true,get:function(){return chunkTHLJYXFB_js.c}});Object.defineProperty(exports,"toggleStrike",{enumerable:true,get:function(){return chunkTHLJYXFB_js.e}});Object.defineProperty(exports,"toggleSubscript",{enumerable:true,get:function(){return chunkTHLJYXFB_js.g}});Object.defineProperty(exports,"toggleSuperscript",{enumerable:true,get:function(){return chunkTHLJYXFB_js.f}});Object.defineProperty(exports,"toggleUnderline",{enumerable:true,get:function(){return chunkTHLJYXFB_js.d}});Object.defineProperty(exports,"insertPageBreak",{enumerable:true,get:function(){return chunkGGPKPXON_js.a}});Object.defineProperty(exports,"findHyperlinkRangeAt",{enumerable:true,get:function(){return chunk2EQGBVPV_js.h}});Object.defineProperty(exports,"getHyperlinkAttrs",{enumerable:true,get:function(){return chunk2EQGBVPV_js.f}});Object.defineProperty(exports,"getListInfo",{enumerable:true,get:function(){return chunk2EQGBVPV_js.j}});Object.defineProperty(exports,"getParagraphAlignment",{enumerable:true,get:function(){return chunk2EQGBVPV_js.a}});Object.defineProperty(exports,"getParagraphBidi",{enumerable:true,get:function(){return chunk2EQGBVPV_js.d}});Object.defineProperty(exports,"getSelectedText",{enumerable:true,get:function(){return chunk2EQGBVPV_js.g}});Object.defineProperty(exports,"getStyleId",{enumerable:true,get:function(){return chunk2EQGBVPV_js.c}});Object.defineProperty(exports,"isHyperlinkActive",{enumerable:true,get:function(){return chunk2EQGBVPV_js.e}});Object.defineProperty(exports,"isInList",{enumerable:true,get:function(){return chunk2EQGBVPV_js.i}});Object.defineProperty(exports,"clearFormatting",{enumerable:true,get:function(){return chunkWVERBZZU_js.g}});Object.defineProperty(exports,"createRemoveMarkCommand",{enumerable:true,get:function(){return chunkWVERBZZU_js.i}});Object.defineProperty(exports,"createSetMarkCommand",{enumerable:true,get:function(){return chunkWVERBZZU_js.h}});Object.defineProperty(exports,"getMarkAttr",{enumerable:true,get:function(){return chunkWVERBZZU_js.e}});Object.defineProperty(exports,"isMarkActive",{enumerable:true,get:function(){return chunkWVERBZZU_js.d}});Object.defineProperty(exports,"getTableContext",{enumerable:true,get:function(){return chunkTUIEV7Q7_js.a}});Object.defineProperty(exports,"isInTable",{enumerable:true,get:function(){return chunkTUIEV7Q7_js.b}});
|
|
1
|
+
'use strict';var chunkRAWVGULQ_js=require('../../chunk-RAWVGULQ.js'),chunkAPNMO5JT_js=require('../../chunk-APNMO5JT.js'),chunk6V3SFHEM_js=require('../../chunk-6V3SFHEM.js'),chunkGGPKPXON_js=require('../../chunk-GGPKPXON.js');require('../../chunk-2KHWHVTA.js'),require('../../chunk-IYKBX24M.js'),require('../../chunk-WWBNJ7KF.js');var chunk4RTVLMRZ_js=require('../../chunk-4RTVLMRZ.js');require('../../chunk-BHBOAP6Z.js'),require('../../chunk-MZ7LW5CH.js'),require('../../chunk-N3Y5BUKV.js');var chunkWVERBZZU_js=require('../../chunk-WVERBZZU.js');require('../../chunk-6LVPRTB6.js'),require('../../chunk-LWH66Q7Q.js');var chunkTUIEV7Q7_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,"acceptAllChanges",{enumerable:true,get:function(){return chunkRAWVGULQ_js.O}});Object.defineProperty(exports,"acceptChange",{enumerable:true,get:function(){return chunkRAWVGULQ_js.M}});Object.defineProperty(exports,"acceptChangeById",{enumerable:true,get:function(){return chunkRAWVGULQ_js.R}});Object.defineProperty(exports,"addColumnLeft",{enumerable:true,get:function(){return chunkRAWVGULQ_js.g}});Object.defineProperty(exports,"addColumnRight",{enumerable:true,get:function(){return chunkRAWVGULQ_js.h}});Object.defineProperty(exports,"addCommentMark",{enumerable:true,get:function(){return chunkRAWVGULQ_js.K}});Object.defineProperty(exports,"addRowAbove",{enumerable:true,get:function(){return chunkRAWVGULQ_js.d}});Object.defineProperty(exports,"addRowBelow",{enumerable:true,get:function(){return chunkRAWVGULQ_js.e}});Object.defineProperty(exports,"applyTableStyle",{enumerable:true,get:function(){return chunkRAWVGULQ_js.E}});Object.defineProperty(exports,"autoFitContents",{enumerable:true,get:function(){return chunkRAWVGULQ_js.C}});Object.defineProperty(exports,"deleteColumn",{enumerable:true,get:function(){return chunkRAWVGULQ_js.i}});Object.defineProperty(exports,"deleteRow",{enumerable:true,get:function(){return chunkRAWVGULQ_js.f}});Object.defineProperty(exports,"deleteTable",{enumerable:true,get:function(){return chunkRAWVGULQ_js.j}});Object.defineProperty(exports,"distributeColumns",{enumerable:true,get:function(){return chunkRAWVGULQ_js.B}});Object.defineProperty(exports,"findNextChange",{enumerable:true,get:function(){return chunkRAWVGULQ_js.Q}});Object.defineProperty(exports,"findPreviousChange",{enumerable:true,get:function(){return chunkRAWVGULQ_js.T}});Object.defineProperty(exports,"getSplitCellDialogConfig",{enumerable:true,get:function(){return chunkRAWVGULQ_js.a}});Object.defineProperty(exports,"getWatermarkFromState",{enumerable:true,get:function(){return chunkRAWVGULQ_js.U}});Object.defineProperty(exports,"insertImageNode",{enumerable:true,get:function(){return chunkRAWVGULQ_js.I}});Object.defineProperty(exports,"insertTable",{enumerable:true,get:function(){return chunkRAWVGULQ_js.c}});Object.defineProperty(exports,"mergeCells",{enumerable:true,get:function(){return chunkRAWVGULQ_js.n}});Object.defineProperty(exports,"rejectAllChanges",{enumerable:true,get:function(){return chunkRAWVGULQ_js.P}});Object.defineProperty(exports,"rejectChange",{enumerable:true,get:function(){return chunkRAWVGULQ_js.N}});Object.defineProperty(exports,"rejectChangeById",{enumerable:true,get:function(){return chunkRAWVGULQ_js.S}});Object.defineProperty(exports,"removeCommentMark",{enumerable:true,get:function(){return chunkRAWVGULQ_js.L}});Object.defineProperty(exports,"removeTableBorders",{enumerable:true,get:function(){return chunkRAWVGULQ_js.r}});Object.defineProperty(exports,"selectColumn",{enumerable:true,get:function(){return chunkRAWVGULQ_js.m}});Object.defineProperty(exports,"selectRow",{enumerable:true,get:function(){return chunkRAWVGULQ_js.l}});Object.defineProperty(exports,"selectTable",{enumerable:true,get:function(){return chunkRAWVGULQ_js.k}});Object.defineProperty(exports,"setAllTableBorders",{enumerable:true,get:function(){return chunkRAWVGULQ_js.s}});Object.defineProperty(exports,"setCellBorder",{enumerable:true,get:function(){return chunkRAWVGULQ_js.p}});Object.defineProperty(exports,"setCellFillColor",{enumerable:true,get:function(){return chunkRAWVGULQ_js.F}});Object.defineProperty(exports,"setCellMargins",{enumerable:true,get:function(){return chunkRAWVGULQ_js.w}});Object.defineProperty(exports,"setCellTextDirection",{enumerable:true,get:function(){return chunkRAWVGULQ_js.x}});Object.defineProperty(exports,"setCellVerticalAlign",{enumerable:true,get:function(){return chunkRAWVGULQ_js.v}});Object.defineProperty(exports,"setImageWrapType",{enumerable:true,get:function(){return chunkRAWVGULQ_js.J}});Object.defineProperty(exports,"setInsideTableBorders",{enumerable:true,get:function(){return chunkRAWVGULQ_js.u}});Object.defineProperty(exports,"setOutsideTableBorders",{enumerable:true,get:function(){return chunkRAWVGULQ_js.t}});Object.defineProperty(exports,"setRowHeight",{enumerable:true,get:function(){return chunkRAWVGULQ_js.z}});Object.defineProperty(exports,"setTableBorderColor",{enumerable:true,get:function(){return chunkRAWVGULQ_js.G}});Object.defineProperty(exports,"setTableBorderWidth",{enumerable:true,get:function(){return chunkRAWVGULQ_js.H}});Object.defineProperty(exports,"setTableBorders",{enumerable:true,get:function(){return chunkRAWVGULQ_js.q}});Object.defineProperty(exports,"setTableProperties",{enumerable:true,get:function(){return chunkRAWVGULQ_js.D}});Object.defineProperty(exports,"setWatermark",{enumerable:true,get:function(){return chunkRAWVGULQ_js.V}});Object.defineProperty(exports,"splitActiveTableCell",{enumerable:true,get:function(){return chunkRAWVGULQ_js.b}});Object.defineProperty(exports,"splitCell",{enumerable:true,get:function(){return chunkRAWVGULQ_js.o}});Object.defineProperty(exports,"toggleHeaderRow",{enumerable:true,get:function(){return chunkRAWVGULQ_js.A}});Object.defineProperty(exports,"toggleNoWrap",{enumerable:true,get:function(){return chunkRAWVGULQ_js.y}});Object.defineProperty(exports,"addTabStop",{enumerable:true,get:function(){return chunkAPNMO5JT_js.z}});Object.defineProperty(exports,"alignCenter",{enumerable:true,get:function(){return chunkAPNMO5JT_js.c}});Object.defineProperty(exports,"alignJustify",{enumerable:true,get:function(){return chunkAPNMO5JT_js.e}});Object.defineProperty(exports,"alignLeft",{enumerable:true,get:function(){return chunkAPNMO5JT_js.b}});Object.defineProperty(exports,"alignRight",{enumerable:true,get:function(){return chunkAPNMO5JT_js.d}});Object.defineProperty(exports,"applyStyle",{enumerable:true,get:function(){return chunkAPNMO5JT_js.v}});Object.defineProperty(exports,"clearStyle",{enumerable:true,get:function(){return chunkAPNMO5JT_js.w}});Object.defineProperty(exports,"decreaseIndent",{enumerable:true,get:function(){return chunkAPNMO5JT_js.k}});Object.defineProperty(exports,"decreaseListLevel",{enumerable:true,get:function(){return chunkAPNMO5JT_js.r}});Object.defineProperty(exports,"doubleSpacing",{enumerable:true,get:function(){return chunkAPNMO5JT_js.i}});Object.defineProperty(exports,"generateTOC",{enumerable:true,get:function(){return chunkAPNMO5JT_js.D}});Object.defineProperty(exports,"increaseIndent",{enumerable:true,get:function(){return chunkAPNMO5JT_js.j}});Object.defineProperty(exports,"increaseListLevel",{enumerable:true,get:function(){return chunkAPNMO5JT_js.q}});Object.defineProperty(exports,"oneAndHalfSpacing",{enumerable:true,get:function(){return chunkAPNMO5JT_js.h}});Object.defineProperty(exports,"removeList",{enumerable:true,get:function(){return chunkAPNMO5JT_js.s}});Object.defineProperty(exports,"removeTabStop",{enumerable:true,get:function(){return chunkAPNMO5JT_js.A}});Object.defineProperty(exports,"setAlignment",{enumerable:true,get:function(){return chunkAPNMO5JT_js.a}});Object.defineProperty(exports,"setIndentFirstLine",{enumerable:true,get:function(){return chunkAPNMO5JT_js.n}});Object.defineProperty(exports,"setIndentLeft",{enumerable:true,get:function(){return chunkAPNMO5JT_js.l}});Object.defineProperty(exports,"setIndentRight",{enumerable:true,get:function(){return chunkAPNMO5JT_js.m}});Object.defineProperty(exports,"setLineSpacing",{enumerable:true,get:function(){return chunkAPNMO5JT_js.f}});Object.defineProperty(exports,"setLtr",{enumerable:true,get:function(){return chunkAPNMO5JT_js.C}});Object.defineProperty(exports,"setRtl",{enumerable:true,get:function(){return chunkAPNMO5JT_js.B}});Object.defineProperty(exports,"setSpaceAfter",{enumerable:true,get:function(){return chunkAPNMO5JT_js.u}});Object.defineProperty(exports,"setSpaceBefore",{enumerable:true,get:function(){return chunkAPNMO5JT_js.t}});Object.defineProperty(exports,"singleSpacing",{enumerable:true,get:function(){return chunkAPNMO5JT_js.g}});Object.defineProperty(exports,"toggleBulletList",{enumerable:true,get:function(){return chunkAPNMO5JT_js.o}});Object.defineProperty(exports,"toggleNumberedList",{enumerable:true,get:function(){return chunkAPNMO5JT_js.p}});Object.defineProperty(exports,"clearFontFamily",{enumerable:true,get:function(){return chunk6V3SFHEM_js.o}});Object.defineProperty(exports,"clearFontSize",{enumerable:true,get:function(){return chunk6V3SFHEM_js.m}});Object.defineProperty(exports,"clearHighlight",{enumerable:true,get:function(){return chunk6V3SFHEM_js.k}});Object.defineProperty(exports,"clearTextColor",{enumerable:true,get:function(){return chunk6V3SFHEM_js.i}});Object.defineProperty(exports,"insertHyperlink",{enumerable:true,get:function(){return chunk6V3SFHEM_js.s}});Object.defineProperty(exports,"removeHyperlink",{enumerable:true,get:function(){return chunk6V3SFHEM_js.r}});Object.defineProperty(exports,"setFontFamily",{enumerable:true,get:function(){return chunk6V3SFHEM_js.n}});Object.defineProperty(exports,"setFontSize",{enumerable:true,get:function(){return chunk6V3SFHEM_js.l}});Object.defineProperty(exports,"setHighlight",{enumerable:true,get:function(){return chunk6V3SFHEM_js.j}});Object.defineProperty(exports,"setHyperlink",{enumerable:true,get:function(){return chunk6V3SFHEM_js.q}});Object.defineProperty(exports,"setTextColor",{enumerable:true,get:function(){return chunk6V3SFHEM_js.h}});Object.defineProperty(exports,"setUnderlineStyle",{enumerable:true,get:function(){return chunk6V3SFHEM_js.p}});Object.defineProperty(exports,"toggleBold",{enumerable:true,get:function(){return chunk6V3SFHEM_js.b}});Object.defineProperty(exports,"toggleItalic",{enumerable:true,get:function(){return chunk6V3SFHEM_js.c}});Object.defineProperty(exports,"toggleStrike",{enumerable:true,get:function(){return chunk6V3SFHEM_js.e}});Object.defineProperty(exports,"toggleSubscript",{enumerable:true,get:function(){return chunk6V3SFHEM_js.g}});Object.defineProperty(exports,"toggleSuperscript",{enumerable:true,get:function(){return chunk6V3SFHEM_js.f}});Object.defineProperty(exports,"toggleUnderline",{enumerable:true,get:function(){return chunk6V3SFHEM_js.d}});Object.defineProperty(exports,"insertPageBreak",{enumerable:true,get:function(){return chunkGGPKPXON_js.a}});Object.defineProperty(exports,"findHyperlinkRangeAt",{enumerable:true,get:function(){return chunk4RTVLMRZ_js.h}});Object.defineProperty(exports,"getHyperlinkAttrs",{enumerable:true,get:function(){return chunk4RTVLMRZ_js.f}});Object.defineProperty(exports,"getListInfo",{enumerable:true,get:function(){return chunk4RTVLMRZ_js.j}});Object.defineProperty(exports,"getParagraphAlignment",{enumerable:true,get:function(){return chunk4RTVLMRZ_js.a}});Object.defineProperty(exports,"getParagraphBidi",{enumerable:true,get:function(){return chunk4RTVLMRZ_js.d}});Object.defineProperty(exports,"getSelectedText",{enumerable:true,get:function(){return chunk4RTVLMRZ_js.g}});Object.defineProperty(exports,"getStyleId",{enumerable:true,get:function(){return chunk4RTVLMRZ_js.c}});Object.defineProperty(exports,"isHyperlinkActive",{enumerable:true,get:function(){return chunk4RTVLMRZ_js.e}});Object.defineProperty(exports,"isInList",{enumerable:true,get:function(){return chunk4RTVLMRZ_js.i}});Object.defineProperty(exports,"clearFormatting",{enumerable:true,get:function(){return chunkWVERBZZU_js.g}});Object.defineProperty(exports,"createRemoveMarkCommand",{enumerable:true,get:function(){return chunkWVERBZZU_js.i}});Object.defineProperty(exports,"createSetMarkCommand",{enumerable:true,get:function(){return chunkWVERBZZU_js.h}});Object.defineProperty(exports,"getMarkAttr",{enumerable:true,get:function(){return chunkWVERBZZU_js.e}});Object.defineProperty(exports,"isMarkActive",{enumerable:true,get:function(){return chunkWVERBZZU_js.d}});Object.defineProperty(exports,"getTableContext",{enumerable:true,get:function(){return chunkTUIEV7Q7_js.a}});Object.defineProperty(exports,"isInTable",{enumerable:true,get:function(){return chunkTUIEV7Q7_js.b}});
|