@zeke-02/docx-editor 0.5.2 → 0.5.4
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/LICENSE +204 -0
- package/dist/FindReplaceDialog-7SQOVQWH.js +1 -0
- package/dist/FindReplaceDialog-RK3A7MSK.mjs +1 -0
- package/dist/{FootnotePropertiesDialog-XQ7NIFIU.js → FootnotePropertiesDialog-2Q2SHVMR.js} +1 -1
- package/dist/{FootnotePropertiesDialog-TNVJJCY6.mjs → FootnotePropertiesDialog-ZKQXW3YO.mjs} +1 -1
- package/dist/{HyperlinkDialog-FR4IZZ7E.mjs → HyperlinkDialog-QV3CVFQU.mjs} +1 -1
- package/dist/HyperlinkDialog-XVAF7FVN.js +1 -0
- package/dist/{ImagePositionDialog-JSZSIKF5.mjs → ImagePositionDialog-EGRH3HPP.mjs} +1 -1
- package/dist/{ImagePositionDialog-2YXRAGZS.js → ImagePositionDialog-HIVHUTBT.js} +1 -1
- package/dist/ImagePropertiesDialog-67WLFIIZ.mjs +1 -0
- package/dist/ImagePropertiesDialog-HSM3JJ22.js +1 -0
- package/dist/KeyboardShortcutsDialog-B0UFuR4w.d.ts +395 -0
- package/dist/KeyboardShortcutsDialog-t6JKL4Aj.d.mts +395 -0
- package/dist/PageSetupDialog-642IAVG2.js +1 -0
- package/dist/PageSetupDialog-ERUQDHAY.mjs +1 -0
- package/dist/PluginHost-HS31VIuo.d.mts +16 -0
- package/dist/PluginHost-zILZO7zX.d.ts +16 -0
- package/dist/{SplitCellDialog-NP3JJYHD.mjs → SplitCellDialog-GFWCFCTD.mjs} +1 -1
- package/dist/{SplitCellDialog-JIAC3RYV.js → SplitCellDialog-M7WF7ANE.js} +1 -1
- package/dist/{TablePropertiesDialog-TIK4AA5M.mjs → TablePropertiesDialog-TZ7VCL6V.mjs} +1 -1
- package/dist/{TablePropertiesDialog-T7D4HSVP.js → TablePropertiesDialog-ZKU2FTUX.js} +1 -1
- package/dist/agentApi-B2Y7kexW.d.ts +486 -0
- package/dist/agentApi-BzUJ_kao.d.mts +486 -0
- package/dist/chunk-2XXILKEQ.js +1 -0
- package/dist/chunk-35DG3R42.js +2 -0
- package/dist/chunk-5UX5CD4C.js +1 -0
- package/dist/chunk-7QQSDIWK.mjs +2 -0
- package/dist/chunk-AW5TISUL.js +3 -0
- package/dist/chunk-B45ECEGY.js +18 -0
- package/dist/chunk-B7CCL7SL.mjs +2 -0
- package/dist/chunk-BRMTZRLJ.js +2 -0
- package/dist/chunk-D47GTKGU.js +2 -0
- package/dist/chunk-F5SERL7X.mjs +2 -0
- package/dist/chunk-FWPVBFKQ.mjs +1 -0
- package/dist/chunk-GGQK26JO.js +2 -0
- package/dist/chunk-GM2S2WMT.mjs +1 -0
- package/dist/chunk-HXDMASAR.js +1 -0
- package/dist/chunk-ILYKDR3C.js +1 -0
- package/dist/chunk-JFRDFK7V.mjs +260 -0
- package/dist/chunk-JPF5R2ZM.mjs +1 -0
- package/dist/chunk-KOXCF3CL.mjs +1 -0
- package/dist/chunk-KRLNX56Y.mjs +2 -0
- package/dist/chunk-LWOHVYKW.mjs +1 -0
- package/dist/chunk-MDTA25AN.mjs +60 -0
- package/dist/chunk-MKNSJOCN.js +70 -0
- package/dist/chunk-NIBCC7WQ.js +1 -0
- package/dist/chunk-NLFXR2VH.js +2 -0
- package/dist/chunk-NOLMVQNN.mjs +40 -0
- package/dist/chunk-ONIYA2FU.mjs +2 -0
- package/dist/chunk-RCIZ7OM3.mjs +70 -0
- package/dist/chunk-SGTUE33R.js +260 -0
- package/dist/{chunk-EHFEG3TX.js → chunk-SNZ57XBI.js} +1 -1
- package/dist/chunk-SOTWG3KJ.mjs +1 -0
- package/dist/chunk-TYPGB4KF.js +1 -0
- package/dist/chunk-U7ZW2DOO.mjs +2 -0
- package/dist/chunk-WO3FIV4B.js +40 -0
- package/dist/{chunk-PKEOQIQO.mjs → chunk-WPI3YRFO.mjs} +1 -1
- package/dist/chunk-XGJ2EORY.mjs +1 -0
- package/dist/chunk-XQZTWWRF.mjs +18 -0
- package/dist/chunk-Y3SEHWZ2.js +1 -0
- package/dist/chunk-YBEVHQCT.js +60 -0
- package/dist/chunk-ZVAFVHWR.mjs +3 -0
- package/dist/chunk-ZXPCJWVY.js +2 -0
- package/dist/{agentApi-DLt94vXk.d.mts → content-REFGFfEH.d.mts} +8 -755
- package/dist/{agentApi-DLt94vXk.d.ts → content-REFGFfEH.d.ts} +8 -755
- package/dist/dialogs.d.mts +25 -0
- package/dist/dialogs.d.ts +25 -0
- package/dist/dialogs.js +1 -0
- package/dist/dialogs.mjs +1 -0
- package/dist/document-Cu2vq_wS.d.mts +294 -0
- package/dist/document-CxOagoLQ.d.ts +294 -0
- package/dist/executor-WBHID2RK.mjs +1 -0
- package/dist/executor-Y5VUOAHY.js +1 -0
- package/dist/findReplace-Bue0JaXh.d.ts +138 -0
- package/dist/findReplace-shXbOjFQ.d.mts +138 -0
- package/dist/fork.d.mts +535 -0
- package/dist/fork.d.ts +535 -0
- package/dist/fork.js +1 -0
- package/dist/fork.mjs +1 -0
- package/dist/hooks.d.mts +598 -0
- package/dist/hooks.d.ts +598 -0
- package/dist/hooks.js +1 -0
- package/dist/hooks.mjs +1 -0
- package/dist/index-B5A-J9GC.d.ts +1119 -0
- package/dist/index-bw-PaozF.d.mts +1119 -0
- package/dist/index.d.mts +12 -591
- package/dist/index.d.ts +12 -591
- package/dist/index.js +1 -120
- package/dist/index.mjs +1 -120
- package/dist/layout-bridge-5GYGYKM5.mjs +1 -0
- package/dist/layout-bridge-QQDA7ELH.js +1 -0
- package/dist/plugin-api.d.mts +165 -0
- package/dist/plugin-api.d.ts +165 -0
- package/dist/plugin-api.js +1 -0
- package/dist/plugin-api.mjs +1 -0
- package/dist/processTemplate-BTBTR7AM.js +1 -0
- package/dist/{processTemplate-W2C5PXZB.mjs → processTemplate-MBX2KDLE.mjs} +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.d.mts +18 -0
- package/dist/styles.d.ts +18 -0
- package/dist/styles.js +1 -0
- package/dist/styles.mjs +1 -0
- package/dist/types-BF48VxkC.d.mts +18 -0
- package/dist/types-BF48VxkC.d.ts +18 -0
- package/dist/types-BnIs4sE7.d.mts +281 -0
- package/dist/types-BnIs4sE7.d.ts +281 -0
- package/dist/types-CW6HFAX6.d.ts +39 -0
- package/dist/types-DIsDCwTG.d.mts +39 -0
- package/dist/ui.d.mts +111 -552
- package/dist/ui.d.ts +111 -552
- package/dist/ui.js +111 -1
- package/dist/ui.mjs +111 -1
- package/dist/useFindReplace-DKy-s3gS.d.ts +261 -0
- package/dist/useFindReplace-vuoKpDKE.d.mts +261 -0
- package/package.json +47 -49
- package/dist/ClipboardManager-CVKX0v9q.d.ts +0 -464
- package/dist/ClipboardManager-V3aaMnWE.d.mts +0 -464
- package/dist/DocumentAgent-BWflKHpH.d.mts +0 -442
- package/dist/DocumentAgent-DsdXtetF.d.ts +0 -442
- package/dist/FindReplaceDialog-L3YF5HIS.mjs +0 -1
- package/dist/FindReplaceDialog-SEBWC5P7.js +0 -1
- package/dist/HyperlinkDialog-WEK6JSAC.js +0 -1
- package/dist/ImagePropertiesDialog-527MFLQO.mjs +0 -1
- package/dist/ImagePropertiesDialog-HG4K3IE7.js +0 -1
- package/dist/PageSetupDialog-GALVJMUB.js +0 -1
- package/dist/PageSetupDialog-TGQIAMI7.mjs +0 -1
- package/dist/TableToolbar-DUgmob2I.d.ts +0 -1273
- package/dist/TableToolbar-YL74HNS1.d.mts +0 -1273
- package/dist/chunk-23SXXIZS.js +0 -111
- package/dist/chunk-3F52AP2Q.js +0 -1
- package/dist/chunk-42O5GXM5.mjs +0 -82
- package/dist/chunk-54ULJEHM.mjs +0 -1
- package/dist/chunk-5XK326FI.mjs +0 -1
- package/dist/chunk-6WPRCJ5A.mjs +0 -1
- package/dist/chunk-76IYR7C7.mjs +0 -1
- package/dist/chunk-AGRIVA4G.js +0 -1
- package/dist/chunk-BTCQ2QI3.mjs +0 -3
- package/dist/chunk-BUEMG4NW.js +0 -1
- package/dist/chunk-BXRC4U3X.mjs +0 -2
- package/dist/chunk-CPAYKE6X.mjs +0 -1
- package/dist/chunk-DACWLFKI.mjs +0 -1
- package/dist/chunk-EPBFWE36.js +0 -2
- package/dist/chunk-FXES3YDB.js +0 -82
- package/dist/chunk-HI66BSGS.mjs +0 -9
- package/dist/chunk-INTPVEO6.mjs +0 -9
- package/dist/chunk-IOAGVW6Q.mjs +0 -2
- package/dist/chunk-JCEWC5QL.mjs +0 -4
- package/dist/chunk-JTIUFACT.js +0 -1
- package/dist/chunk-LUF7PWIC.js +0 -10
- package/dist/chunk-MGEN6GOE.mjs +0 -2
- package/dist/chunk-MOE2ZGUE.js +0 -18
- package/dist/chunk-MWLHJWB6.js +0 -9
- package/dist/chunk-OFYVDN3U.mjs +0 -2
- package/dist/chunk-P4VSHBGZ.js +0 -2
- package/dist/chunk-P5FQHIES.mjs +0 -1
- package/dist/chunk-PBC7XAYZ.js +0 -3
- package/dist/chunk-PEMB6SZT.js +0 -2
- package/dist/chunk-PQMSZTBB.js +0 -9
- package/dist/chunk-Q7UDQXAF.js +0 -1
- package/dist/chunk-QGTAIC5E.js +0 -1
- package/dist/chunk-QVPR2W5S.js +0 -1
- package/dist/chunk-R3QMYPL5.mjs +0 -59
- package/dist/chunk-RBUTXXQJ.mjs +0 -18
- package/dist/chunk-RRWYZ2TS.mjs +0 -111
- package/dist/chunk-S3STEPVO.js +0 -182
- package/dist/chunk-SFUM35DH.js +0 -2
- package/dist/chunk-SNLC6EK2.js +0 -1
- package/dist/chunk-TMTLIGLZ.js +0 -59
- package/dist/chunk-TSE2PWFX.mjs +0 -10
- package/dist/chunk-UKESXQS5.mjs +0 -182
- package/dist/chunk-UWYD42WV.js +0 -4
- package/dist/chunk-UXVACQCY.mjs +0 -1
- package/dist/chunk-W4EIKDM6.mjs +0 -2
- package/dist/chunk-W53SI3XW.mjs +0 -1
- package/dist/chunk-WNS2RBQD.js +0 -2
- package/dist/chunk-Z3KMSHUP.js +0 -1
- package/dist/core-plugins-reexport.d.mts +0 -31
- package/dist/core-plugins-reexport.d.ts +0 -31
- package/dist/core-plugins-reexport.js +0 -1
- package/dist/core-plugins-reexport.mjs +0 -1
- package/dist/core-reexport.d.mts +0 -340
- package/dist/core-reexport.d.ts +0 -340
- package/dist/core-reexport.js +0 -1
- package/dist/core-reexport.mjs +0 -1
- package/dist/documentSerializer-DtS_-oGA.d.mts +0 -664
- package/dist/documentSerializer-Wj1p2ASa.d.ts +0 -664
- package/dist/executor-C3VXF7QA.mjs +0 -1
- package/dist/executor-GDBV3AGV.js +0 -1
- package/dist/headless-reexport.d.mts +0 -197
- package/dist/headless-reexport.d.ts +0 -197
- package/dist/headless-reexport.js +0 -1
- package/dist/headless-reexport.mjs +0 -1
- package/dist/insertOperations-BTH1Asas.d.mts +0 -176
- package/dist/insertOperations-CbUnXAXH.d.ts +0 -176
- package/dist/layout-bridge-EA4DJ227.js +0 -1
- package/dist/layout-bridge-XDPSO6GO.mjs +0 -1
- package/dist/mcp-reexport.d.mts +0 -156
- package/dist/mcp-reexport.d.ts +0 -156
- package/dist/mcp-reexport.js +0 -16
- package/dist/mcp-reexport.mjs +0 -16
- package/dist/processTemplate-MJ2PCSO5.js +0 -1
- package/dist/react-B0W16SV6.d.ts +0 -1330
- package/dist/react-D0Pn1nww.d.mts +0 -1330
- package/dist/react.d.mts +0 -10
- package/dist/react.d.ts +0 -10
- package/dist/react.js +0 -1
- package/dist/react.mjs +0 -1
- package/dist/registry-CH9V-IX0.d.ts +0 -165
- package/dist/registry-CWBKYlNW.d.mts +0 -165
- package/dist/types-UDsUq8D3.d.mts +0 -310
- package/dist/types-jbivc9Lj.d.ts +0 -310
- package/dist/variableDetector-CdQ7ZTzA.d.mts +0 -204
- package/dist/variableDetector-DsRV3A9z.d.ts +0 -204
- package/i18n/de.json +0 -792
- package/i18n/en.json +0 -792
- package/i18n/he.json +0 -792
- package/i18n/pl.json +0 -792
- package/i18n/pt-BR.json +0 -792
- package/i18n/tr.json +0 -792
- package/i18n/zh-CN.json +0 -792
- /package/dist/{chunk-YC5KZSYD.js → chunk-ESZ6JRTW.js} +0 -0
- /package/dist/{chunk-LVGJKS7Y.mjs → chunk-TZMMD6RR.mjs} +0 -0
- /package/dist/{react.css → fork.css} +0 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export { B as BookmarkOption, F as FindReplaceDialog, a as FindReplaceDialogProps, H as HyperlinkData, b as HyperlinkDialog, c as HyperlinkDialogProps, K as KeyboardShortcut, d as KeyboardShortcutsDialog, e as KeyboardShortcutsDialogProps, P as PasteOption, f as PasteSpecialDialog, g as PasteSpecialDialogProps, S as ShortcutCategory, U as UseKeyboardShortcutsDialogOptions, h as UseKeyboardShortcutsDialogReturn, i as UsePasteSpecialOptions, j as UsePasteSpecialReturn, x as createBookmarkLinkData, y as createHyperlinkData, z as emailToMailto, A as extractBookmarksForDialog, k as formatShortcutKeys, l as getAllCategories, m as getAllPasteOptions, n as getCategoryLabel, o as getCommonShortcuts, p as getDefaultPasteOption, q as getDefaultShortcuts, C as getDisplayText, r as getPasteOption, s as getShortcutsByCategory, D as getUrlType, E as isBookmarkHyperlinkData, G as isExternalHyperlinkData, t as isPasteSpecialShortcut, I as isValidUrl, J as normalizeUrl, L as phoneToTel, v as useKeyboardShortcutsDialog, w as usePasteSpecial } from './KeyboardShortcutsDialog-t6JKL4Aj.mjs';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { S as SectionProperties } from './content-REFGFfEH.mjs';
|
|
4
|
+
export { F as FindMatch, a as FindOptions, b as FindResult, H as HighlightOptions, c as createDefaultFindOptions, d as createSearchPattern, e as escapeRegexString, f as findAllMatches, i as getDefaultHighlightOptions, j as getMatchCountText, k as isEmptySearch, r as replaceAllInContent, l as replaceFirstInContent } from './findReplace-shXbOjFQ.mjs';
|
|
5
|
+
import './types-BF48VxkC.mjs';
|
|
6
|
+
import '@eigenpal/docx-editor-i18n/en.json';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Page Setup Dialog
|
|
10
|
+
*
|
|
11
|
+
* Modal for editing page layout properties:
|
|
12
|
+
* - Page size (Letter, A4, Legal, etc.)
|
|
13
|
+
* - Orientation (portrait/landscape)
|
|
14
|
+
* - Margins (top, bottom, left, right) in inches
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
interface PageSetupDialogProps {
|
|
18
|
+
isOpen: boolean;
|
|
19
|
+
onClose: () => void;
|
|
20
|
+
onApply: (props: Partial<SectionProperties>) => void;
|
|
21
|
+
currentProps?: SectionProperties;
|
|
22
|
+
}
|
|
23
|
+
declare function PageSetupDialog({ isOpen, onClose, onApply, currentProps, }: PageSetupDialogProps): React__default.ReactElement | null;
|
|
24
|
+
|
|
25
|
+
export { PageSetupDialog, type PageSetupDialogProps };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export { B as BookmarkOption, F as FindReplaceDialog, a as FindReplaceDialogProps, H as HyperlinkData, b as HyperlinkDialog, c as HyperlinkDialogProps, K as KeyboardShortcut, d as KeyboardShortcutsDialog, e as KeyboardShortcutsDialogProps, P as PasteOption, f as PasteSpecialDialog, g as PasteSpecialDialogProps, S as ShortcutCategory, U as UseKeyboardShortcutsDialogOptions, h as UseKeyboardShortcutsDialogReturn, i as UsePasteSpecialOptions, j as UsePasteSpecialReturn, x as createBookmarkLinkData, y as createHyperlinkData, z as emailToMailto, A as extractBookmarksForDialog, k as formatShortcutKeys, l as getAllCategories, m as getAllPasteOptions, n as getCategoryLabel, o as getCommonShortcuts, p as getDefaultPasteOption, q as getDefaultShortcuts, C as getDisplayText, r as getPasteOption, s as getShortcutsByCategory, D as getUrlType, E as isBookmarkHyperlinkData, G as isExternalHyperlinkData, t as isPasteSpecialShortcut, I as isValidUrl, J as normalizeUrl, L as phoneToTel, v as useKeyboardShortcutsDialog, w as usePasteSpecial } from './KeyboardShortcutsDialog-B0UFuR4w.js';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { S as SectionProperties } from './content-REFGFfEH.js';
|
|
4
|
+
export { F as FindMatch, a as FindOptions, b as FindResult, H as HighlightOptions, c as createDefaultFindOptions, d as createSearchPattern, e as escapeRegexString, f as findAllMatches, i as getDefaultHighlightOptions, j as getMatchCountText, k as isEmptySearch, r as replaceAllInContent, l as replaceFirstInContent } from './findReplace-Bue0JaXh.js';
|
|
5
|
+
import './types-BF48VxkC.js';
|
|
6
|
+
import '@eigenpal/docx-editor-i18n/en.json';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Page Setup Dialog
|
|
10
|
+
*
|
|
11
|
+
* Modal for editing page layout properties:
|
|
12
|
+
* - Page size (Letter, A4, Legal, etc.)
|
|
13
|
+
* - Orientation (portrait/landscape)
|
|
14
|
+
* - Margins (top, bottom, left, right) in inches
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
interface PageSetupDialogProps {
|
|
18
|
+
isOpen: boolean;
|
|
19
|
+
onClose: () => void;
|
|
20
|
+
onApply: (props: Partial<SectionProperties>) => void;
|
|
21
|
+
currentProps?: SectionProperties;
|
|
22
|
+
}
|
|
23
|
+
declare function PageSetupDialog({ isOpen, onClose, onApply, currentProps, }: PageSetupDialogProps): React__default.ReactElement | null;
|
|
24
|
+
|
|
25
|
+
export { PageSetupDialog, type PageSetupDialogProps };
|
package/dist/dialogs.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunk5UX5CD4C_js=require('./chunk-5UX5CD4C.js'),chunkD47GTKGU_js=require('./chunk-D47GTKGU.js'),chunkTYPGB4KF_js=require('./chunk-TYPGB4KF.js'),chunkSNZ57XBI_js=require('./chunk-SNZ57XBI.js');require('./chunk-MKNSJOCN.js');var chunk35DG3R42_js=require('./chunk-35DG3R42.js');require('./chunk-NLFXR2VH.js'),require('./chunk-GGQK26JO.js'),require('./chunk-ZXPCJWVY.js'),require('./chunk-ILYKDR3C.js'),require('./chunk-ESZ6JRTW.js'),require('./chunk-H5NTJZO4.js');Object.defineProperty(exports,"PageSetupDialog",{enumerable:true,get:function(){return chunk5UX5CD4C_js.a}});Object.defineProperty(exports,"KeyboardShortcutsDialog",{enumerable:true,get:function(){return chunkD47GTKGU_js.g}});Object.defineProperty(exports,"PasteSpecialDialog",{enumerable:true,get:function(){return chunkD47GTKGU_js.a}});Object.defineProperty(exports,"formatShortcutKeys",{enumerable:true,get:function(){return chunkD47GTKGU_js.n}});Object.defineProperty(exports,"getAllCategories",{enumerable:true,get:function(){return chunkD47GTKGU_js.m}});Object.defineProperty(exports,"getAllPasteOptions",{enumerable:true,get:function(){return chunkD47GTKGU_js.d}});Object.defineProperty(exports,"getCategoryLabel",{enumerable:true,get:function(){return chunkD47GTKGU_js.l}});Object.defineProperty(exports,"getCommonShortcuts",{enumerable:true,get:function(){return chunkD47GTKGU_js.k}});Object.defineProperty(exports,"getDefaultPasteOption",{enumerable:true,get:function(){return chunkD47GTKGU_js.e}});Object.defineProperty(exports,"getDefaultShortcuts",{enumerable:true,get:function(){return chunkD47GTKGU_js.i}});Object.defineProperty(exports,"getPasteOption",{enumerable:true,get:function(){return chunkD47GTKGU_js.c}});Object.defineProperty(exports,"getShortcutsByCategory",{enumerable:true,get:function(){return chunkD47GTKGU_js.j}});Object.defineProperty(exports,"isPasteSpecialShortcut",{enumerable:true,get:function(){return chunkD47GTKGU_js.f}});Object.defineProperty(exports,"useKeyboardShortcutsDialog",{enumerable:true,get:function(){return chunkD47GTKGU_js.h}});Object.defineProperty(exports,"usePasteSpecial",{enumerable:true,get:function(){return chunkD47GTKGU_js.b}});Object.defineProperty(exports,"FindReplaceDialog",{enumerable:true,get:function(){return chunkTYPGB4KF_js.a}});Object.defineProperty(exports,"HyperlinkDialog",{enumerable:true,get:function(){return chunkSNZ57XBI_js.d}});Object.defineProperty(exports,"createBookmarkLinkData",{enumerable:true,get:function(){return chunkSNZ57XBI_js.f}});Object.defineProperty(exports,"createHyperlinkData",{enumerable:true,get:function(){return chunkSNZ57XBI_js.e}});Object.defineProperty(exports,"emailToMailto",{enumerable:true,get:function(){return chunkSNZ57XBI_js.j}});Object.defineProperty(exports,"extractBookmarksForDialog",{enumerable:true,get:function(){return chunkSNZ57XBI_js.l}});Object.defineProperty(exports,"getDisplayText",{enumerable:true,get:function(){return chunkSNZ57XBI_js.i}});Object.defineProperty(exports,"getUrlType",{enumerable:true,get:function(){return chunkSNZ57XBI_js.c}});Object.defineProperty(exports,"isBookmarkHyperlinkData",{enumerable:true,get:function(){return chunkSNZ57XBI_js.h}});Object.defineProperty(exports,"isExternalHyperlinkData",{enumerable:true,get:function(){return chunkSNZ57XBI_js.g}});Object.defineProperty(exports,"isValidUrl",{enumerable:true,get:function(){return chunkSNZ57XBI_js.a}});Object.defineProperty(exports,"normalizeUrl",{enumerable:true,get:function(){return chunkSNZ57XBI_js.b}});Object.defineProperty(exports,"phoneToTel",{enumerable:true,get:function(){return chunkSNZ57XBI_js.k}});Object.defineProperty(exports,"createDefaultFindOptions",{enumerable:true,get:function(){return chunk35DG3R42_js.a}});Object.defineProperty(exports,"createSearchPattern",{enumerable:true,get:function(){return chunk35DG3R42_js.c}});Object.defineProperty(exports,"escapeRegexString",{enumerable:true,get:function(){return chunk35DG3R42_js.b}});Object.defineProperty(exports,"findAllMatches",{enumerable:true,get:function(){return chunk35DG3R42_js.d}});Object.defineProperty(exports,"getDefaultHighlightOptions",{enumerable:true,get:function(){return chunk35DG3R42_js.i}});Object.defineProperty(exports,"getMatchCountText",{enumerable:true,get:function(){return chunk35DG3R42_js.g}});Object.defineProperty(exports,"isEmptySearch",{enumerable:true,get:function(){return chunk35DG3R42_js.h}});Object.defineProperty(exports,"replaceAllInContent",{enumerable:true,get:function(){return chunk35DG3R42_js.e}});Object.defineProperty(exports,"replaceFirstInContent",{enumerable:true,get:function(){return chunk35DG3R42_js.f}});
|
package/dist/dialogs.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as PageSetupDialog}from'./chunk-SOTWG3KJ.mjs';export{g as KeyboardShortcutsDialog,a as PasteSpecialDialog,n as formatShortcutKeys,m as getAllCategories,d as getAllPasteOptions,l as getCategoryLabel,k as getCommonShortcuts,e as getDefaultPasteOption,i as getDefaultShortcuts,c as getPasteOption,j as getShortcutsByCategory,f as isPasteSpecialShortcut,h as useKeyboardShortcutsDialog,b as usePasteSpecial}from'./chunk-KRLNX56Y.mjs';export{a as FindReplaceDialog}from'./chunk-JPF5R2ZM.mjs';export{d as HyperlinkDialog,f as createBookmarkLinkData,e as createHyperlinkData,j as emailToMailto,l as extractBookmarksForDialog,i as getDisplayText,c as getUrlType,h as isBookmarkHyperlinkData,g as isExternalHyperlinkData,a as isValidUrl,b as normalizeUrl,k as phoneToTel}from'./chunk-WPI3YRFO.mjs';import'./chunk-RCIZ7OM3.mjs';export{a as createDefaultFindOptions,c as createSearchPattern,b as escapeRegexString,d as findAllMatches,i as getDefaultHighlightOptions,g as getMatchCountText,h as isEmptySearch,e as replaceAllInContent,f as replaceFirstInContent}from'./chunk-F5SERL7X.mjs';import'./chunk-7QQSDIWK.mjs';import'./chunk-B7CCL7SL.mjs';import'./chunk-ONIYA2FU.mjs';import'./chunk-FWPVBFKQ.mjs';import'./chunk-TZMMD6RR.mjs';import'./chunk-TAUMSKRE.mjs';
|
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
import { T as TextFormatting, P as ParagraphFormatting, h as TableFormatting, i as TableRowFormatting, c as TableCellFormatting, D as DocumentBody, j as NumberingDefinitions, F as Footnote, E as Endnote, H as HeaderFooter } from './content-REFGFfEH.mjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Styles, Theme, Font Table, Relationships & Media Types
|
|
5
|
+
*
|
|
6
|
+
* Types for document-level definitions that don't form the content tree.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Style type
|
|
11
|
+
*/
|
|
12
|
+
type StyleType = 'paragraph' | 'character' | 'numbering' | 'table';
|
|
13
|
+
/**
|
|
14
|
+
* Style definition
|
|
15
|
+
*/
|
|
16
|
+
interface Style {
|
|
17
|
+
/** Style ID */
|
|
18
|
+
styleId: string;
|
|
19
|
+
/** Style type */
|
|
20
|
+
type: StyleType;
|
|
21
|
+
/** Display name */
|
|
22
|
+
name?: string;
|
|
23
|
+
/** Based on style ID */
|
|
24
|
+
basedOn?: string;
|
|
25
|
+
/** Next style after Enter (for paragraph styles) */
|
|
26
|
+
next?: string;
|
|
27
|
+
/** Linked style (paragraph/character pair) */
|
|
28
|
+
link?: string;
|
|
29
|
+
/** UI sort priority */
|
|
30
|
+
uiPriority?: number;
|
|
31
|
+
/** Hidden from UI */
|
|
32
|
+
hidden?: boolean;
|
|
33
|
+
/** Semi-hidden from UI */
|
|
34
|
+
semiHidden?: boolean;
|
|
35
|
+
/** Unhide when used */
|
|
36
|
+
unhideWhenUsed?: boolean;
|
|
37
|
+
/** Quick format in gallery */
|
|
38
|
+
qFormat?: boolean;
|
|
39
|
+
/** Is default style */
|
|
40
|
+
default?: boolean;
|
|
41
|
+
/** Personal style (custom) */
|
|
42
|
+
personal?: boolean;
|
|
43
|
+
/** Paragraph properties (for paragraph/table styles) */
|
|
44
|
+
pPr?: ParagraphFormatting;
|
|
45
|
+
/** Run properties */
|
|
46
|
+
rPr?: TextFormatting;
|
|
47
|
+
/** Table properties (for table styles) */
|
|
48
|
+
tblPr?: TableFormatting;
|
|
49
|
+
/** Table row properties */
|
|
50
|
+
trPr?: TableRowFormatting;
|
|
51
|
+
/** Table cell properties */
|
|
52
|
+
tcPr?: TableCellFormatting;
|
|
53
|
+
/** Conditional table style parts */
|
|
54
|
+
tblStylePr?: Array<{
|
|
55
|
+
type: 'band1Horz' | 'band1Vert' | 'band2Horz' | 'band2Vert' | 'firstCol' | 'firstRow' | 'lastCol' | 'lastRow' | 'neCell' | 'nwCell' | 'seCell' | 'swCell';
|
|
56
|
+
pPr?: ParagraphFormatting;
|
|
57
|
+
rPr?: TextFormatting;
|
|
58
|
+
tblPr?: TableFormatting;
|
|
59
|
+
trPr?: TableRowFormatting;
|
|
60
|
+
tcPr?: TableCellFormatting;
|
|
61
|
+
}>;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Document defaults (w:docDefaults)
|
|
65
|
+
*/
|
|
66
|
+
interface DocDefaults {
|
|
67
|
+
/** Default run properties */
|
|
68
|
+
rPr?: TextFormatting;
|
|
69
|
+
/** Default paragraph properties */
|
|
70
|
+
pPr?: ParagraphFormatting;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Style definitions from styles.xml
|
|
74
|
+
*/
|
|
75
|
+
interface StyleDefinitions {
|
|
76
|
+
/** Document defaults */
|
|
77
|
+
docDefaults?: DocDefaults;
|
|
78
|
+
/** Latent styles */
|
|
79
|
+
latentStyles?: {
|
|
80
|
+
defLockedState?: boolean;
|
|
81
|
+
defUIPriority?: number;
|
|
82
|
+
defSemiHidden?: boolean;
|
|
83
|
+
defUnhideWhenUsed?: boolean;
|
|
84
|
+
defQFormat?: boolean;
|
|
85
|
+
count?: number;
|
|
86
|
+
};
|
|
87
|
+
/** Style definitions */
|
|
88
|
+
styles: Style[];
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Theme color scheme (a:clrScheme)
|
|
92
|
+
*/
|
|
93
|
+
interface ThemeColorScheme {
|
|
94
|
+
/** Dark 1 color (usually black) */
|
|
95
|
+
dk1?: string;
|
|
96
|
+
/** Light 1 color (usually white) */
|
|
97
|
+
lt1?: string;
|
|
98
|
+
/** Dark 2 color */
|
|
99
|
+
dk2?: string;
|
|
100
|
+
/** Light 2 color */
|
|
101
|
+
lt2?: string;
|
|
102
|
+
/** Accent colors 1-6 */
|
|
103
|
+
accent1?: string;
|
|
104
|
+
accent2?: string;
|
|
105
|
+
accent3?: string;
|
|
106
|
+
accent4?: string;
|
|
107
|
+
accent5?: string;
|
|
108
|
+
accent6?: string;
|
|
109
|
+
/** Hyperlink color */
|
|
110
|
+
hlink?: string;
|
|
111
|
+
/** Followed hyperlink color */
|
|
112
|
+
folHlink?: string;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Theme font (with script variants)
|
|
116
|
+
*/
|
|
117
|
+
interface ThemeFont {
|
|
118
|
+
/** Latin font */
|
|
119
|
+
latin?: string;
|
|
120
|
+
/** East Asian font */
|
|
121
|
+
ea?: string;
|
|
122
|
+
/** Complex script font */
|
|
123
|
+
cs?: string;
|
|
124
|
+
/** Script-specific fonts */
|
|
125
|
+
fonts?: Record<string, string>;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Theme font scheme (a:fontScheme)
|
|
129
|
+
*/
|
|
130
|
+
interface ThemeFontScheme {
|
|
131
|
+
/** Major font (headings) */
|
|
132
|
+
majorFont?: ThemeFont;
|
|
133
|
+
/** Minor font (body text) */
|
|
134
|
+
minorFont?: ThemeFont;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Theme (from theme1.xml)
|
|
138
|
+
*/
|
|
139
|
+
interface Theme {
|
|
140
|
+
/** Theme name */
|
|
141
|
+
name?: string;
|
|
142
|
+
/** Color scheme */
|
|
143
|
+
colorScheme?: ThemeColorScheme;
|
|
144
|
+
/** Font scheme */
|
|
145
|
+
fontScheme?: ThemeFontScheme;
|
|
146
|
+
/** Format scheme (fills, lines, effects) - simplified */
|
|
147
|
+
formatScheme?: {
|
|
148
|
+
name?: string;
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Font info from fontTable.xml
|
|
153
|
+
*/
|
|
154
|
+
interface FontInfo {
|
|
155
|
+
/** Font name */
|
|
156
|
+
name: string;
|
|
157
|
+
/** Alternate names */
|
|
158
|
+
altName?: string;
|
|
159
|
+
/** Panose-1 classification */
|
|
160
|
+
panose1?: string;
|
|
161
|
+
/** Character set */
|
|
162
|
+
charset?: string;
|
|
163
|
+
/** Font family type */
|
|
164
|
+
family?: 'decorative' | 'modern' | 'roman' | 'script' | 'swiss' | 'auto';
|
|
165
|
+
/** Pitch (fixed or variable) */
|
|
166
|
+
pitch?: 'default' | 'fixed' | 'variable';
|
|
167
|
+
/** Signature */
|
|
168
|
+
sig?: {
|
|
169
|
+
usb0?: string;
|
|
170
|
+
usb1?: string;
|
|
171
|
+
usb2?: string;
|
|
172
|
+
usb3?: string;
|
|
173
|
+
csb0?: string;
|
|
174
|
+
csb1?: string;
|
|
175
|
+
};
|
|
176
|
+
/** Embedded font data reference */
|
|
177
|
+
embedRegular?: string;
|
|
178
|
+
embedBold?: string;
|
|
179
|
+
embedItalic?: string;
|
|
180
|
+
embedBoldItalic?: string;
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Font table from fontTable.xml
|
|
184
|
+
*/
|
|
185
|
+
interface FontTable {
|
|
186
|
+
fonts: FontInfo[];
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Relationship type
|
|
190
|
+
*/
|
|
191
|
+
type RelationshipType = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/image' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/header' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/oleObject' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramData' | string;
|
|
192
|
+
/**
|
|
193
|
+
* Relationship entry
|
|
194
|
+
*/
|
|
195
|
+
interface Relationship {
|
|
196
|
+
/** Relationship ID (e.g., "rId1") */
|
|
197
|
+
id: string;
|
|
198
|
+
/** Relationship type URI */
|
|
199
|
+
type: RelationshipType;
|
|
200
|
+
/** Target path or URL */
|
|
201
|
+
target: string;
|
|
202
|
+
/** Target mode */
|
|
203
|
+
targetMode?: 'External' | 'Internal';
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Relationship map (keyed by rId)
|
|
207
|
+
*/
|
|
208
|
+
type RelationshipMap = Map<string, Relationship>;
|
|
209
|
+
/**
|
|
210
|
+
* Media file from word/media/
|
|
211
|
+
*/
|
|
212
|
+
interface MediaFile {
|
|
213
|
+
/** File path in ZIP */
|
|
214
|
+
path: string;
|
|
215
|
+
/** Original filename */
|
|
216
|
+
filename?: string;
|
|
217
|
+
/** MIME type */
|
|
218
|
+
mimeType: string;
|
|
219
|
+
/** Binary data */
|
|
220
|
+
data: ArrayBuffer;
|
|
221
|
+
/** Base64 encoded data for rendering */
|
|
222
|
+
base64?: string;
|
|
223
|
+
/** Data URL for direct use in src attributes */
|
|
224
|
+
dataUrl?: string;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Comprehensive TypeScript types for full DOCX document representation
|
|
229
|
+
*
|
|
230
|
+
* This barrel file re-exports all types from the split modules.
|
|
231
|
+
* Existing imports from './types/document' continue to work unchanged.
|
|
232
|
+
*
|
|
233
|
+
* Module structure:
|
|
234
|
+
* - colors.ts — Color primitives, borders, shading
|
|
235
|
+
* - formatting.ts — Text, paragraph, and table formatting properties
|
|
236
|
+
* - lists.ts — Numbering and list definitions
|
|
237
|
+
* - content.ts — Content model (runs, images, shapes, tables, paragraphs, sections)
|
|
238
|
+
* - styles.ts — Styles, theme, fonts, relationships, media
|
|
239
|
+
*/
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Complete DOCX package structure
|
|
243
|
+
*/
|
|
244
|
+
interface DocxPackage {
|
|
245
|
+
/** Document body */
|
|
246
|
+
document: DocumentBody;
|
|
247
|
+
/** Style definitions */
|
|
248
|
+
styles?: StyleDefinitions;
|
|
249
|
+
/** Theme */
|
|
250
|
+
theme?: Theme;
|
|
251
|
+
/** Numbering definitions */
|
|
252
|
+
numbering?: NumberingDefinitions;
|
|
253
|
+
/** Font table */
|
|
254
|
+
fontTable?: FontTable;
|
|
255
|
+
/** Footnotes */
|
|
256
|
+
footnotes?: Footnote[];
|
|
257
|
+
/** Endnotes */
|
|
258
|
+
endnotes?: Endnote[];
|
|
259
|
+
/** Headers by relationship ID */
|
|
260
|
+
headers?: Map<string, HeaderFooter>;
|
|
261
|
+
/** Footers by relationship ID */
|
|
262
|
+
footers?: Map<string, HeaderFooter>;
|
|
263
|
+
/** Document relationships */
|
|
264
|
+
relationships?: RelationshipMap;
|
|
265
|
+
/** Media files */
|
|
266
|
+
media?: Map<string, MediaFile>;
|
|
267
|
+
/** Document properties */
|
|
268
|
+
properties?: {
|
|
269
|
+
title?: string;
|
|
270
|
+
subject?: string;
|
|
271
|
+
creator?: string;
|
|
272
|
+
keywords?: string;
|
|
273
|
+
description?: string;
|
|
274
|
+
lastModifiedBy?: string;
|
|
275
|
+
revision?: number;
|
|
276
|
+
created?: Date;
|
|
277
|
+
modified?: Date;
|
|
278
|
+
};
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* Complete parsed DOCX document
|
|
282
|
+
*/
|
|
283
|
+
interface Document {
|
|
284
|
+
/** DOCX package with all parsed content */
|
|
285
|
+
package: DocxPackage;
|
|
286
|
+
/** Original ArrayBuffer for round-trip */
|
|
287
|
+
originalBuffer?: ArrayBuffer;
|
|
288
|
+
/** Detected template variables ({{...}}) */
|
|
289
|
+
templateVariables?: string[];
|
|
290
|
+
/** Parsing warnings/errors */
|
|
291
|
+
warnings?: string[];
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
export type { Document as D, Style as S, Theme as T, StyleType as a };
|
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
import { T as TextFormatting, P as ParagraphFormatting, h as TableFormatting, i as TableRowFormatting, c as TableCellFormatting, D as DocumentBody, j as NumberingDefinitions, F as Footnote, E as Endnote, H as HeaderFooter } from './content-REFGFfEH.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Styles, Theme, Font Table, Relationships & Media Types
|
|
5
|
+
*
|
|
6
|
+
* Types for document-level definitions that don't form the content tree.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Style type
|
|
11
|
+
*/
|
|
12
|
+
type StyleType = 'paragraph' | 'character' | 'numbering' | 'table';
|
|
13
|
+
/**
|
|
14
|
+
* Style definition
|
|
15
|
+
*/
|
|
16
|
+
interface Style {
|
|
17
|
+
/** Style ID */
|
|
18
|
+
styleId: string;
|
|
19
|
+
/** Style type */
|
|
20
|
+
type: StyleType;
|
|
21
|
+
/** Display name */
|
|
22
|
+
name?: string;
|
|
23
|
+
/** Based on style ID */
|
|
24
|
+
basedOn?: string;
|
|
25
|
+
/** Next style after Enter (for paragraph styles) */
|
|
26
|
+
next?: string;
|
|
27
|
+
/** Linked style (paragraph/character pair) */
|
|
28
|
+
link?: string;
|
|
29
|
+
/** UI sort priority */
|
|
30
|
+
uiPriority?: number;
|
|
31
|
+
/** Hidden from UI */
|
|
32
|
+
hidden?: boolean;
|
|
33
|
+
/** Semi-hidden from UI */
|
|
34
|
+
semiHidden?: boolean;
|
|
35
|
+
/** Unhide when used */
|
|
36
|
+
unhideWhenUsed?: boolean;
|
|
37
|
+
/** Quick format in gallery */
|
|
38
|
+
qFormat?: boolean;
|
|
39
|
+
/** Is default style */
|
|
40
|
+
default?: boolean;
|
|
41
|
+
/** Personal style (custom) */
|
|
42
|
+
personal?: boolean;
|
|
43
|
+
/** Paragraph properties (for paragraph/table styles) */
|
|
44
|
+
pPr?: ParagraphFormatting;
|
|
45
|
+
/** Run properties */
|
|
46
|
+
rPr?: TextFormatting;
|
|
47
|
+
/** Table properties (for table styles) */
|
|
48
|
+
tblPr?: TableFormatting;
|
|
49
|
+
/** Table row properties */
|
|
50
|
+
trPr?: TableRowFormatting;
|
|
51
|
+
/** Table cell properties */
|
|
52
|
+
tcPr?: TableCellFormatting;
|
|
53
|
+
/** Conditional table style parts */
|
|
54
|
+
tblStylePr?: Array<{
|
|
55
|
+
type: 'band1Horz' | 'band1Vert' | 'band2Horz' | 'band2Vert' | 'firstCol' | 'firstRow' | 'lastCol' | 'lastRow' | 'neCell' | 'nwCell' | 'seCell' | 'swCell';
|
|
56
|
+
pPr?: ParagraphFormatting;
|
|
57
|
+
rPr?: TextFormatting;
|
|
58
|
+
tblPr?: TableFormatting;
|
|
59
|
+
trPr?: TableRowFormatting;
|
|
60
|
+
tcPr?: TableCellFormatting;
|
|
61
|
+
}>;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Document defaults (w:docDefaults)
|
|
65
|
+
*/
|
|
66
|
+
interface DocDefaults {
|
|
67
|
+
/** Default run properties */
|
|
68
|
+
rPr?: TextFormatting;
|
|
69
|
+
/** Default paragraph properties */
|
|
70
|
+
pPr?: ParagraphFormatting;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Style definitions from styles.xml
|
|
74
|
+
*/
|
|
75
|
+
interface StyleDefinitions {
|
|
76
|
+
/** Document defaults */
|
|
77
|
+
docDefaults?: DocDefaults;
|
|
78
|
+
/** Latent styles */
|
|
79
|
+
latentStyles?: {
|
|
80
|
+
defLockedState?: boolean;
|
|
81
|
+
defUIPriority?: number;
|
|
82
|
+
defSemiHidden?: boolean;
|
|
83
|
+
defUnhideWhenUsed?: boolean;
|
|
84
|
+
defQFormat?: boolean;
|
|
85
|
+
count?: number;
|
|
86
|
+
};
|
|
87
|
+
/** Style definitions */
|
|
88
|
+
styles: Style[];
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Theme color scheme (a:clrScheme)
|
|
92
|
+
*/
|
|
93
|
+
interface ThemeColorScheme {
|
|
94
|
+
/** Dark 1 color (usually black) */
|
|
95
|
+
dk1?: string;
|
|
96
|
+
/** Light 1 color (usually white) */
|
|
97
|
+
lt1?: string;
|
|
98
|
+
/** Dark 2 color */
|
|
99
|
+
dk2?: string;
|
|
100
|
+
/** Light 2 color */
|
|
101
|
+
lt2?: string;
|
|
102
|
+
/** Accent colors 1-6 */
|
|
103
|
+
accent1?: string;
|
|
104
|
+
accent2?: string;
|
|
105
|
+
accent3?: string;
|
|
106
|
+
accent4?: string;
|
|
107
|
+
accent5?: string;
|
|
108
|
+
accent6?: string;
|
|
109
|
+
/** Hyperlink color */
|
|
110
|
+
hlink?: string;
|
|
111
|
+
/** Followed hyperlink color */
|
|
112
|
+
folHlink?: string;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Theme font (with script variants)
|
|
116
|
+
*/
|
|
117
|
+
interface ThemeFont {
|
|
118
|
+
/** Latin font */
|
|
119
|
+
latin?: string;
|
|
120
|
+
/** East Asian font */
|
|
121
|
+
ea?: string;
|
|
122
|
+
/** Complex script font */
|
|
123
|
+
cs?: string;
|
|
124
|
+
/** Script-specific fonts */
|
|
125
|
+
fonts?: Record<string, string>;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Theme font scheme (a:fontScheme)
|
|
129
|
+
*/
|
|
130
|
+
interface ThemeFontScheme {
|
|
131
|
+
/** Major font (headings) */
|
|
132
|
+
majorFont?: ThemeFont;
|
|
133
|
+
/** Minor font (body text) */
|
|
134
|
+
minorFont?: ThemeFont;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Theme (from theme1.xml)
|
|
138
|
+
*/
|
|
139
|
+
interface Theme {
|
|
140
|
+
/** Theme name */
|
|
141
|
+
name?: string;
|
|
142
|
+
/** Color scheme */
|
|
143
|
+
colorScheme?: ThemeColorScheme;
|
|
144
|
+
/** Font scheme */
|
|
145
|
+
fontScheme?: ThemeFontScheme;
|
|
146
|
+
/** Format scheme (fills, lines, effects) - simplified */
|
|
147
|
+
formatScheme?: {
|
|
148
|
+
name?: string;
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Font info from fontTable.xml
|
|
153
|
+
*/
|
|
154
|
+
interface FontInfo {
|
|
155
|
+
/** Font name */
|
|
156
|
+
name: string;
|
|
157
|
+
/** Alternate names */
|
|
158
|
+
altName?: string;
|
|
159
|
+
/** Panose-1 classification */
|
|
160
|
+
panose1?: string;
|
|
161
|
+
/** Character set */
|
|
162
|
+
charset?: string;
|
|
163
|
+
/** Font family type */
|
|
164
|
+
family?: 'decorative' | 'modern' | 'roman' | 'script' | 'swiss' | 'auto';
|
|
165
|
+
/** Pitch (fixed or variable) */
|
|
166
|
+
pitch?: 'default' | 'fixed' | 'variable';
|
|
167
|
+
/** Signature */
|
|
168
|
+
sig?: {
|
|
169
|
+
usb0?: string;
|
|
170
|
+
usb1?: string;
|
|
171
|
+
usb2?: string;
|
|
172
|
+
usb3?: string;
|
|
173
|
+
csb0?: string;
|
|
174
|
+
csb1?: string;
|
|
175
|
+
};
|
|
176
|
+
/** Embedded font data reference */
|
|
177
|
+
embedRegular?: string;
|
|
178
|
+
embedBold?: string;
|
|
179
|
+
embedItalic?: string;
|
|
180
|
+
embedBoldItalic?: string;
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Font table from fontTable.xml
|
|
184
|
+
*/
|
|
185
|
+
interface FontTable {
|
|
186
|
+
fonts: FontInfo[];
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Relationship type
|
|
190
|
+
*/
|
|
191
|
+
type RelationshipType = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/image' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/header' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/oleObject' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart' | 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramData' | string;
|
|
192
|
+
/**
|
|
193
|
+
* Relationship entry
|
|
194
|
+
*/
|
|
195
|
+
interface Relationship {
|
|
196
|
+
/** Relationship ID (e.g., "rId1") */
|
|
197
|
+
id: string;
|
|
198
|
+
/** Relationship type URI */
|
|
199
|
+
type: RelationshipType;
|
|
200
|
+
/** Target path or URL */
|
|
201
|
+
target: string;
|
|
202
|
+
/** Target mode */
|
|
203
|
+
targetMode?: 'External' | 'Internal';
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Relationship map (keyed by rId)
|
|
207
|
+
*/
|
|
208
|
+
type RelationshipMap = Map<string, Relationship>;
|
|
209
|
+
/**
|
|
210
|
+
* Media file from word/media/
|
|
211
|
+
*/
|
|
212
|
+
interface MediaFile {
|
|
213
|
+
/** File path in ZIP */
|
|
214
|
+
path: string;
|
|
215
|
+
/** Original filename */
|
|
216
|
+
filename?: string;
|
|
217
|
+
/** MIME type */
|
|
218
|
+
mimeType: string;
|
|
219
|
+
/** Binary data */
|
|
220
|
+
data: ArrayBuffer;
|
|
221
|
+
/** Base64 encoded data for rendering */
|
|
222
|
+
base64?: string;
|
|
223
|
+
/** Data URL for direct use in src attributes */
|
|
224
|
+
dataUrl?: string;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Comprehensive TypeScript types for full DOCX document representation
|
|
229
|
+
*
|
|
230
|
+
* This barrel file re-exports all types from the split modules.
|
|
231
|
+
* Existing imports from './types/document' continue to work unchanged.
|
|
232
|
+
*
|
|
233
|
+
* Module structure:
|
|
234
|
+
* - colors.ts — Color primitives, borders, shading
|
|
235
|
+
* - formatting.ts — Text, paragraph, and table formatting properties
|
|
236
|
+
* - lists.ts — Numbering and list definitions
|
|
237
|
+
* - content.ts — Content model (runs, images, shapes, tables, paragraphs, sections)
|
|
238
|
+
* - styles.ts — Styles, theme, fonts, relationships, media
|
|
239
|
+
*/
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Complete DOCX package structure
|
|
243
|
+
*/
|
|
244
|
+
interface DocxPackage {
|
|
245
|
+
/** Document body */
|
|
246
|
+
document: DocumentBody;
|
|
247
|
+
/** Style definitions */
|
|
248
|
+
styles?: StyleDefinitions;
|
|
249
|
+
/** Theme */
|
|
250
|
+
theme?: Theme;
|
|
251
|
+
/** Numbering definitions */
|
|
252
|
+
numbering?: NumberingDefinitions;
|
|
253
|
+
/** Font table */
|
|
254
|
+
fontTable?: FontTable;
|
|
255
|
+
/** Footnotes */
|
|
256
|
+
footnotes?: Footnote[];
|
|
257
|
+
/** Endnotes */
|
|
258
|
+
endnotes?: Endnote[];
|
|
259
|
+
/** Headers by relationship ID */
|
|
260
|
+
headers?: Map<string, HeaderFooter>;
|
|
261
|
+
/** Footers by relationship ID */
|
|
262
|
+
footers?: Map<string, HeaderFooter>;
|
|
263
|
+
/** Document relationships */
|
|
264
|
+
relationships?: RelationshipMap;
|
|
265
|
+
/** Media files */
|
|
266
|
+
media?: Map<string, MediaFile>;
|
|
267
|
+
/** Document properties */
|
|
268
|
+
properties?: {
|
|
269
|
+
title?: string;
|
|
270
|
+
subject?: string;
|
|
271
|
+
creator?: string;
|
|
272
|
+
keywords?: string;
|
|
273
|
+
description?: string;
|
|
274
|
+
lastModifiedBy?: string;
|
|
275
|
+
revision?: number;
|
|
276
|
+
created?: Date;
|
|
277
|
+
modified?: Date;
|
|
278
|
+
};
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* Complete parsed DOCX document
|
|
282
|
+
*/
|
|
283
|
+
interface Document {
|
|
284
|
+
/** DOCX package with all parsed content */
|
|
285
|
+
package: DocxPackage;
|
|
286
|
+
/** Original ArrayBuffer for round-trip */
|
|
287
|
+
originalBuffer?: ArrayBuffer;
|
|
288
|
+
/** Detected template variables ({{...}}) */
|
|
289
|
+
templateVariables?: string[];
|
|
290
|
+
/** Parsing warnings/errors */
|
|
291
|
+
warnings?: string[];
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
export type { Document as D, Style as S, Theme as T, StyleType as a };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{b as executeCommand,c as executeCommands}from'./chunk-XGJ2EORY.mjs';import'./chunk-FWPVBFKQ.mjs';import'./chunk-TAUMSKRE.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkHXDMASAR_js=require('./chunk-HXDMASAR.js');require('./chunk-ILYKDR3C.js'),require('./chunk-H5NTJZO4.js');Object.defineProperty(exports,"executeCommand",{enumerable:true,get:function(){return chunkHXDMASAR_js.b}});Object.defineProperty(exports,"executeCommands",{enumerable:true,get:function(){return chunkHXDMASAR_js.c}});
|