@zeke-02/docx-editor 0.5.1 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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-5D_FoAp6.d.ts +395 -0
- package/dist/KeyboardShortcutsDialog-D7ihAj18.d.mts +395 -0
- package/dist/PageSetupDialog-642IAVG2.js +1 -0
- package/dist/PageSetupDialog-ERUQDHAY.mjs +1 -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-C41hiW-n.d.mts +486 -0
- package/dist/agentApi-D4AZmNfB.d.ts +486 -0
- package/dist/chunk-2XXILKEQ.js +1 -0
- package/dist/chunk-35DG3R42.js +2 -0
- package/dist/chunk-47VJOBJD.mjs +60 -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-AYMGSTNG.js +1 -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-E6MQXELR.js +1 -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-ILYKDR3C.js +1 -0
- package/dist/chunk-IP5NAYHL.js +60 -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-LUJ6HCMH.mjs +1 -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-ONIYA2FU.mjs +2 -0
- package/dist/chunk-ONNHQWAX.mjs +1 -0
- package/dist/chunk-RCIZ7OM3.mjs +70 -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-PKEOQIQO.mjs → chunk-WPI3YRFO.mjs} +1 -1
- package/dist/chunk-XQZTWWRF.mjs +18 -0
- package/dist/chunk-ZVAFVHWR.mjs +3 -0
- package/dist/chunk-ZXPCJWVY.js +2 -0
- package/dist/{agentApi-DLt94vXk.d.mts → content-B2MzIMwA.d.mts} +8 -755
- package/dist/{agentApi-DLt94vXk.d.ts → content-B2MzIMwA.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-DZ_ZeZEH.d.ts +294 -0
- package/dist/document-Di1qGqLS.d.mts +294 -0
- package/dist/executor-EPEB53SJ.js +1 -0
- package/dist/executor-TVJ6K6MW.mjs +1 -0
- package/dist/findReplace-CpIoILbP.d.mts +138 -0
- package/dist/findReplace-pkMskVJU.d.ts +138 -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.d.mts +1013 -483
- package/dist/index.d.ts +1013 -483
- package/dist/index.js +40 -120
- package/dist/index.mjs +40 -120
- package/dist/layout-bridge-5GYGYKM5.mjs +1 -0
- package/dist/layout-bridge-QQDA7ELH.js +1 -0
- package/dist/plugin-api.d.mts +176 -0
- package/dist/plugin-api.d.ts +176 -0
- package/dist/plugin-api.js +260 -0
- package/dist/plugin-api.mjs +260 -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-Bd_YzkhG.d.mts +281 -0
- package/dist/types-Bd_YzkhG.d.ts +281 -0
- package/dist/types-CkfDgB0O.d.mts +39 -0
- package/dist/types-DZUhB7Ao.d.mts +18 -0
- package/dist/types-DZUhB7Ao.d.ts +18 -0
- package/dist/types-DcxHFUSc.d.ts +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-DDs533b-.d.mts +261 -0
- package/dist/useFindReplace-eyhMSZZf.d.ts +261 -0
- package/package.json +41 -43
- 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-7BG7QY7I.js +0 -182
- 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-KUTCCI4X.mjs +0 -182
- 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-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-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.css +0 -1
- 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
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.prosemirror-editor-wrapper{min-height:100%}.prosemirror-editor{width:var(--page-width, 8.5in)}.prosemirror-editor .ProseMirror{background:#fff;box-shadow:0 2px 8px #00000026;width:var(--page-width, 8.5in);min-height:var(--page-height, 11in);padding-top:var(--margin-top, 72px);padding-bottom:var(--margin-bottom, 72px);padding-left:var(--margin-left, 72px);padding-right:var(--margin-right, 72px);outline:none;font-family:Calibri,Arial,sans-serif;font-size:11pt;color:#000;white-space:pre-wrap;word-wrap:break-word;-o-tab-size:48;tab-size:48;-moz-tab-size:48;box-sizing:border-box;position:relative}.prosemirror-editor .ProseMirror .docx-page-break{display:block;position:relative;height:40px;margin:0 calc(-1 * var(--margin-left, 72px));margin-right:calc(-1 * var(--margin-right, 72px));background:var(--doc-bg);border:none;pointer-events:none}.prosemirror-editor .ProseMirror .docx-page-break:before{content:"";position:absolute;bottom:0;left:0;right:0;height:8px;background:linear-gradient(to bottom,transparent,rgba(0,0,0,.08))}.prosemirror-editor .ProseMirror .docx-page-break:after{content:"";position:absolute;top:0;left:0;right:0;height:8px;background:linear-gradient(to top,transparent,rgba(0,0,0,.08))}.prosemirror-editor .ProseMirror [data-page-break-before=true]{-moz-column-break-before:page;break-before:page}.prosemirror-editor .ProseMirror .docx-page-break-line{display:block;position:relative;height:1px;margin:20px calc(-1 * var(--margin-left, 72px));margin-right:calc(-1 * var(--margin-right, 72px));border-top:1px dashed var(--doc-border)}.prosemirror-editor .ProseMirror .docx-page-break-line:before{content:"Page Break";position:absolute;top:-10px;left:50%;transform:translate(-50%);background:var(--doc-bg);padding:0 8px;font-size:10px;color:var(--doc-text-muted);white-space:nowrap}.prosemirror-editor .ProseMirror:focus{outline:none}.prosemirror-editor .ProseMirror p{display:block;margin:0;padding:0;min-height:1em;white-space:pre-wrap;word-wrap:break-word;line-height:normal}.prosemirror-editor .ProseMirror p:empty:before{content:"\a0"}.prosemirror-editor .ProseMirror span{display:inline;white-space:pre-wrap}.prosemirror-editor .ProseMirror .docx-list-bullet,.prosemirror-editor .ProseMirror .docx-list-numbered{position:relative;padding-left:48px}.prosemirror-editor .ProseMirror [data-list-marker]:before{content:attr(data-list-marker);position:absolute;left:0;width:44px;text-align:right;white-space:nowrap}.prosemirror-editor .ProseMirror .docx-list-bullet:not([data-list-marker]):before{content:"\2022";position:absolute;left:0;width:44px;text-align:right}.prosemirror-editor .ProseMirror .docx-list-numbered:not([data-list-marker]){counter-increment:list-counter}.prosemirror-editor .ProseMirror .docx-list-decimal:not([data-list-marker]):before{content:counter(list-counter) ".";position:absolute;left:0;width:44px;text-align:right}.prosemirror-editor .ProseMirror .docx-list-lower-roman:not([data-list-marker]):before{content:counter(list-counter,lower-roman) ".";position:absolute;left:0;width:44px;text-align:right}.prosemirror-editor .ProseMirror .docx-list-upper-roman:not([data-list-marker]):before{content:counter(list-counter,upper-roman) ".";position:absolute;left:0;width:44px;text-align:right}.prosemirror-editor .ProseMirror .docx-list-lower-alpha:not([data-list-marker]):before{content:counter(list-counter,lower-alpha) ".";position:absolute;left:0;width:44px;text-align:right}.prosemirror-editor .ProseMirror .docx-list-upper-alpha:not([data-list-marker]):before{content:counter(list-counter,upper-alpha) ".";position:absolute;left:0;width:44px;text-align:right}.prosemirror-editor .ProseMirror .docx-list-level-0:not([data-list-marker]):first-of-type{counter-reset:list-counter}.prosemirror-editor .ProseMirror .docx-list-level-1{margin-left:.5in}.prosemirror-editor .ProseMirror .docx-list-level-2{margin-left:1in}.prosemirror-editor .ProseMirror .docx-list-level-3{margin-left:1.5in}.prosemirror-editor .ProseMirror .docx-list-level-4{margin-left:2in}.prosemirror-editor .ProseMirror .docx-list-level-5{margin-left:2.5in}.prosemirror-editor .ProseMirror .docx-list-level-6{margin-left:3in}.prosemirror-editor .ProseMirror .docx-list-level-7{margin-left:3.5in}.prosemirror-editor .ProseMirror .docx-list-level-8{margin-left:4in}.prosemirror-editor .ProseMirror ::-moz-selection{background:#4285f44d}.prosemirror-editor .ProseMirror ::selection{background:#4285f44d}.prosemirror-editor[data-placeholder]:before{content:attr(data-placeholder);color:#aaa;position:absolute;pointer-events:none}.prosemirror-editor .ProseMirror img.docx-image{display:inline;max-width:100%;-o-object-fit:contain;object-fit:contain;vertical-align:baseline;outline:none}.prosemirror-editor .ProseMirror img.docx-image-float-left{clear:left}.prosemirror-editor .ProseMirror img.docx-image-float-right{clear:right}.prosemirror-editor .ProseMirror img.docx-image-block{clear:both}.prosemirror-editor .ProseMirror p:has(>img.docx-image-block:only-child){text-indent:0!important;text-align:center}.prosemirror-editor .ProseMirror p:has(img.docx-image-float):after{content:"";display:table;clear:both}.prosemirror-editor .ProseMirror img.docx-image.ProseMirror-selectednode{outline:2px solid var(--doc-primary, #4285f4);outline-offset:2px;cursor:grab}.prosemirror-editor .ProseMirror.pm-image-dragging img.docx-image.ProseMirror-selectednode{opacity:.4;outline:2px dashed var(--doc-primary, #4285f4);cursor:grabbing}.prosemirror-editor .ProseMirror img:not(.docx-image){max-width:100%;height:auto}.prosemirror-editor .ProseMirror .docx-shape{display:inline-block;vertical-align:middle;line-height:0;cursor:pointer}.prosemirror-editor .ProseMirror .docx-shape.ProseMirror-selectednode{outline:2px solid var(--doc-primary, #4285f4);outline-offset:2px}.prosemirror-editor .ProseMirror .docx-textbox{border-radius:2px;margin:4px 0;cursor:text}.prosemirror-editor .ProseMirror .docx-textbox.ProseMirror-selectednode{outline:2px solid var(--doc-primary, #4285f4);outline-offset:2px}.prosemirror-editor .ProseMirror a{color:var(--doc-link);text-decoration:underline}.prosemirror-editor .ProseMirror a:hover{color:var(--doc-primary-hover)}.prosemirror-editor .ProseMirror .docx-footnote-ref,.prosemirror-editor .ProseMirror .docx-endnote-ref{color:var(--doc-link, #0066cc);cursor:pointer;vertical-align:super;font-size:smaller}.prosemirror-editor .ProseMirror .docx-footnote-ref:hover,.prosemirror-editor .ProseMirror .docx-endnote-ref:hover{text-decoration:underline}.prosemirror-editor .ProseMirror hr{border:none;border-top:1px solid #000;margin:12pt 0;height:0}.prosemirror-editor .ProseMirror table.docx-table{border-collapse:collapse;margin:12pt 0;max-width:100%}.prosemirror-editor .ProseMirror td.docx-table-cell,.prosemirror-editor .ProseMirror th.docx-table-header{padding:4px 8px;vertical-align:top;min-width:30px}.prosemirror-editor .ProseMirror th.docx-table-header{font-weight:inherit;text-align:inherit}.prosemirror-editor .ProseMirror td p,.prosemirror-editor .ProseMirror th p{margin:0;padding:0;min-height:auto}.prosemirror-editor .ProseMirror td p:first-child,.prosemirror-editor .ProseMirror th p:first-child{margin-top:0}.prosemirror-editor .ProseMirror td p:last-child,.prosemirror-editor .ProseMirror th p:last-child{margin-bottom:0}.prosemirror-editor .ProseMirror .activeCell{outline:2px solid rgba(66,133,244,.5);outline-offset:-2px}.prosemirror-editor .ProseMirror .selectedCell{background-color:#4285f426}.prosemirror-editor .ProseMirror .selectedCell:after{content:"";position:absolute;inset:0;background:#4285f41a;pointer-events:none}.prosemirror-editor .ProseMirror table table{margin:4px 0}.prosemirror-editor .ProseMirror .column-resize-handle{position:absolute;right:-2px;top:0;bottom:0;width:4px;background-color:#4285f480;cursor:col-resize;z-index:20}.prosemirror-editor .ProseMirror td.docx-table-cell,.prosemirror-editor .ProseMirror th.docx-table-header{position:relative}.prosemirror-editor .ProseMirror.resize-cursor{cursor:col-resize}.prosemirror-editor .ProseMirror table:not(:hover) .column-resize-handle{background-color:transparent}.prosemirror-editor .ProseMirror table:hover .column-resize-handle{background-color:#4285f44d}.prosemirror-editor .ProseMirror .column-resize-handle:hover{background-color:#4285f4b3}.prosemirror-editor .ProseMirror span.docx-tab{display:inline-block;min-width:48px;white-space:pre;background:transparent}.prosemirror-editor .ProseMirror span.docx-tab[data-leader=dot]:before{content:"...........";position:absolute;color:inherit;white-space:nowrap;overflow:hidden}.prosemirror-editor .ProseMirror span.docx-tab[data-leader=hyphen]:before{content:"-----------";position:absolute;color:inherit;white-space:nowrap;overflow:hidden}.prosemirror-editor .ProseMirror span.docx-tab[data-leader=underscore]:before{content:"___________";position:absolute;color:inherit;white-space:nowrap;overflow:hidden}.prosemirror-editor .ProseMirror .docx-run-all-caps{text-transform:uppercase}.prosemirror-editor .ProseMirror .docx-run-small-caps{font-variant:small-caps}.docx-section-break{position:relative}.docx-section-break:after{content:"Section Break (" attr(data-section-break) ")";display:block;text-align:center;font-size:9px;color:var(--doc-text-muted, #9ca3af);border-top:1px dashed var(--doc-border, #d1d5db);margin-top:4px;padding-top:2px;pointer-events:none}.prosemirror-editor .ProseMirror .pm-drop-indicator{position:absolute;width:2px;background:var(--doc-primary, #4285f4);pointer-events:none;z-index:50}.prosemirror-editor .ProseMirror .ProseMirror-dropcursor{z-index:50}.layout-page-content{cursor:text}.layout-page-header,.layout-page-footer{cursor:pointer;transition:background-color .15s ease}.layout-page-header:hover,.layout-page-footer:hover{background-color:#2563eb0f}.layout-page-header:empty:hover:after{content:"Double-click to add header";display:block;text-align:center;color:#9ca3af;font-size:11px;padding:4px 0}.layout-page-footer:empty:hover:after{content:"Double-click to add footer";display:block;text-align:center;color:#9ca3af;font-size:11px;padding:4px 0}.hf-editor-pm.prosemirror-editor{width:100%;max-width:100%}.hf-editor-pm .ProseMirror{outline:none;min-height:40px;padding:0}.hf-editor-pm.prosemirror-editor .ProseMirror{width:100%;max-width:100%;min-height:40px;padding:0;background:transparent;box-shadow:none}.hf-editor-pm .ProseMirror:focus{outline:none}.hf-editor-pm .ProseMirror p{display:block;margin:0!important;padding-top:var(--docx-space-before, 0);padding-bottom:var(--docx-space-after, 0);padding-left:0;padding-right:0;min-height:1em;white-space:pre-wrap;word-wrap:break-word;line-height:normal!important}.hf-editor-pm .ProseMirror td p,.hf-editor-pm .ProseMirror th p{margin:0!important;padding-top:var(--docx-space-before, 0);padding-bottom:var(--docx-space-after, 0);padding-left:0;padding-right:0;min-height:auto;line-height:normal!important}.hf-editor-pm .ProseMirror .tableWrapper{overflow:visible}.hf-editor-pm .ProseMirror table{border-collapse:collapse!important;border-spacing:0!important;table-layout:fixed!important;margin:0}.hf-editor-pm .ProseMirror td.docx-table-cell,.hf-editor-pm .ProseMirror th.docx-table-header{box-sizing:border-box!important}.hf-editor-pm .ProseMirror td p:has(img),.hf-editor-pm .ProseMirror th p:has(img),.hf-editor-pm .ProseMirror td p:has(span),.hf-editor-pm .ProseMirror th p:has(span){font-size:0!important;line-height:0!important}.hf-editor-pm .ProseMirror td p span:not(:has(>span)),.hf-editor-pm .ProseMirror th p span:not(:has(>span)){position:relative;top:.4em}.paged-editor--hf-editing .layout-page-content{opacity:.4;pointer-events:none;transition:opacity .15s ease}.paged-editor--editing-header .layout-page-header{border-bottom:1px dotted #4285f4}.paged-editor--editing-footer .layout-page-footer{border-top:1px dotted #4285f4}.paged-editor--editing-header .layout-page-header>*{visibility:hidden}.paged-editor--editing-footer .layout-page-footer>*{visibility:hidden}.paged-editor--hf-editing .layout-page-header:hover,.paged-editor--hf-editing .layout-page-footer:hover{background-color:transparent}
|
package/dist/react.d.mts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export { a as DocxEditor, b as DocxEditorHandle, c as DocxEditorProps, d as DocxEditorRef, e as EditorPlugin, f as ErrorBoundary, g as ErrorBoundaryProps, h as ErrorContextValue, i as ErrorProvider, P as PLUGIN_HOST_STYLES, k as ParseErrorDisplay, l as ParseErrorDisplayProps, m as PluginContext, n as PluginHost, o as PluginHostProps, p as PluginHostRef, r as RenderAsyncOptions, t as SelectionOverlayProps, T as TableSelectionState, U as UnsupportedFeatureWarning, w as UnsupportedFeatureWarningProps, x as UseAutoSaveOptions, y as UseAutoSaveReturn, z as UseClipboardOptions, A as UseClipboardReturn, B as UseSelectionHighlightOptions, C as UseSelectionHighlightReturn, F as UseTableSelectionOptions, G as UseTableSelectionReturn, I as UseWheelZoomOptions, J as UseWheelZoomReturn, Z as ZOOM_PRESETS, L as clampZoom, O as findNearestZoomPreset, Q as formatZoom, V as generateOverlayElements, _ as getNextZoomPreset, $ as getPreviousZoomPreset, a3 as getUserFriendlyMessage, a4 as getZoomPresets, a8 as isParseError, ab as isZoomPreset, ae as parseZoom, ag as renderAsync, ai as useAutoSave, aj as useClipboard, ak as useErrorNotifications, al as useSelectionHighlight, am as useTableSelection, an as useWheelZoom } from './react-D0Pn1nww.mjs';
|
|
2
|
-
export { g as DocxInput, t as toArrayBuffer } from './DocumentAgent-BWflKHpH.mjs';
|
|
3
|
-
export { d as AutoSaveStatus, e as ClipboardSelection, h as ErrorNotification, i as ErrorSeverity, j as PanelConfig, k as PluginPanelProps, m as SavedDocumentData, T as TABLE_DATA_ATTRIBUTES, p as createSelectionFromDOM, t as formatLastSaveTime, u as formatStorageSize, v as getAutoSaveStatusLabel, w as getAutoSaveStorageSize, x as getSelectionRuns, z as isAutoSaveSupported } from './ClipboardManager-V3aaMnWE.mjs';
|
|
4
|
-
import 'react';
|
|
5
|
-
import 'prosemirror-view';
|
|
6
|
-
import 'prosemirror-state';
|
|
7
|
-
import './agentApi-DLt94vXk.mjs';
|
|
8
|
-
import './TableToolbar-YL74HNS1.mjs';
|
|
9
|
-
import 'react/jsx-runtime';
|
|
10
|
-
import 'prosemirror-model';
|
package/dist/react.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export { a as DocxEditor, b as DocxEditorHandle, c as DocxEditorProps, d as DocxEditorRef, e as EditorPlugin, f as ErrorBoundary, g as ErrorBoundaryProps, h as ErrorContextValue, i as ErrorProvider, P as PLUGIN_HOST_STYLES, k as ParseErrorDisplay, l as ParseErrorDisplayProps, m as PluginContext, n as PluginHost, o as PluginHostProps, p as PluginHostRef, r as RenderAsyncOptions, t as SelectionOverlayProps, T as TableSelectionState, U as UnsupportedFeatureWarning, w as UnsupportedFeatureWarningProps, x as UseAutoSaveOptions, y as UseAutoSaveReturn, z as UseClipboardOptions, A as UseClipboardReturn, B as UseSelectionHighlightOptions, C as UseSelectionHighlightReturn, F as UseTableSelectionOptions, G as UseTableSelectionReturn, I as UseWheelZoomOptions, J as UseWheelZoomReturn, Z as ZOOM_PRESETS, L as clampZoom, O as findNearestZoomPreset, Q as formatZoom, V as generateOverlayElements, _ as getNextZoomPreset, $ as getPreviousZoomPreset, a3 as getUserFriendlyMessage, a4 as getZoomPresets, a8 as isParseError, ab as isZoomPreset, ae as parseZoom, ag as renderAsync, ai as useAutoSave, aj as useClipboard, ak as useErrorNotifications, al as useSelectionHighlight, am as useTableSelection, an as useWheelZoom } from './react-B0W16SV6.js';
|
|
2
|
-
export { g as DocxInput, t as toArrayBuffer } from './DocumentAgent-DsdXtetF.js';
|
|
3
|
-
export { d as AutoSaveStatus, e as ClipboardSelection, h as ErrorNotification, i as ErrorSeverity, j as PanelConfig, k as PluginPanelProps, m as SavedDocumentData, T as TABLE_DATA_ATTRIBUTES, p as createSelectionFromDOM, t as formatLastSaveTime, u as formatStorageSize, v as getAutoSaveStatusLabel, w as getAutoSaveStorageSize, x as getSelectionRuns, z as isAutoSaveSupported } from './ClipboardManager-CVKX0v9q.js';
|
|
4
|
-
import 'react';
|
|
5
|
-
import 'prosemirror-view';
|
|
6
|
-
import 'prosemirror-state';
|
|
7
|
-
import './agentApi-DLt94vXk.js';
|
|
8
|
-
import './TableToolbar-DUgmob2I.js';
|
|
9
|
-
import 'react/jsx-runtime';
|
|
10
|
-
import 'prosemirror-model';
|
package/dist/react.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var chunk7BG7QY7I_js=require('./chunk-7BG7QY7I.js');require('./chunk-PEMB6SZT.js'),require('./chunk-EPBFWE36.js'),require('./chunk-FXES3YDB.js'),require('./chunk-SFUM35DH.js'),require('./chunk-EHFEG3TX.js'),require('./chunk-PBC7XAYZ.js'),require('./chunk-WNS2RBQD.js');var chunkJTIUFACT_js=require('./chunk-JTIUFACT.js');require('./chunk-AGRIVA4G.js'),require('./chunk-UWYD42WV.js'),require('./chunk-QVPR2W5S.js'),require('./chunk-PQMSZTBB.js'),require('./chunk-3F52AP2Q.js'),require('./chunk-SNLC6EK2.js'),require('./chunk-LUF7PWIC.js'),require('./chunk-TMTLIGLZ.js'),require('./chunk-QGTAIC5E.js'),require('./chunk-Z3KMSHUP.js'),require('./chunk-P4VSHBGZ.js'),require('./chunk-IFPN3NT3.js'),require('./chunk-BUEMG4NW.js'),require('./chunk-MOE2ZGUE.js');var chunkMWLHJWB6_js=require('./chunk-MWLHJWB6.js');require('./chunk-Q7UDQXAF.js'),require('./chunk-YC5KZSYD.js'),require('./chunk-H5NTJZO4.js');Object.defineProperty(exports,"DocxEditor",{enumerable:true,get:function(){return chunk7BG7QY7I_js.k}});Object.defineProperty(exports,"ErrorBoundary",{enumerable:true,get:function(){return chunk7BG7QY7I_js.e}});Object.defineProperty(exports,"ErrorProvider",{enumerable:true,get:function(){return chunk7BG7QY7I_js.d}});Object.defineProperty(exports,"PLUGIN_HOST_STYLES",{enumerable:true,get:function(){return chunk7BG7QY7I_js.A}});Object.defineProperty(exports,"ParseErrorDisplay",{enumerable:true,get:function(){return chunk7BG7QY7I_js.f}});Object.defineProperty(exports,"PluginHost",{enumerable:true,get:function(){return chunk7BG7QY7I_js.B}});Object.defineProperty(exports,"UnsupportedFeatureWarning",{enumerable:true,get:function(){return chunk7BG7QY7I_js.g}});Object.defineProperty(exports,"ZOOM_PRESETS",{enumerable:true,get:function(){return chunk7BG7QY7I_js.n}});Object.defineProperty(exports,"clampZoom",{enumerable:true,get:function(){return chunk7BG7QY7I_js.w}});Object.defineProperty(exports,"findNearestZoomPreset",{enumerable:true,get:function(){return chunk7BG7QY7I_js.q}});Object.defineProperty(exports,"formatZoom",{enumerable:true,get:function(){return chunk7BG7QY7I_js.t}});Object.defineProperty(exports,"generateOverlayElements",{enumerable:true,get:function(){return chunk7BG7QY7I_js.y}});Object.defineProperty(exports,"getNextZoomPreset",{enumerable:true,get:function(){return chunk7BG7QY7I_js.r}});Object.defineProperty(exports,"getPreviousZoomPreset",{enumerable:true,get:function(){return chunk7BG7QY7I_js.s}});Object.defineProperty(exports,"getUserFriendlyMessage",{enumerable:true,get:function(){return chunk7BG7QY7I_js.i}});Object.defineProperty(exports,"getZoomPresets",{enumerable:true,get:function(){return chunk7BG7QY7I_js.p}});Object.defineProperty(exports,"isParseError",{enumerable:true,get:function(){return chunk7BG7QY7I_js.h}});Object.defineProperty(exports,"isZoomPreset",{enumerable:true,get:function(){return chunk7BG7QY7I_js.v}});Object.defineProperty(exports,"parseZoom",{enumerable:true,get:function(){return chunk7BG7QY7I_js.u}});Object.defineProperty(exports,"renderAsync",{enumerable:true,get:function(){return chunk7BG7QY7I_js.l}});Object.defineProperty(exports,"useAutoSave",{enumerable:true,get:function(){return chunk7BG7QY7I_js.m}});Object.defineProperty(exports,"useClipboard",{enumerable:true,get:function(){return chunk7BG7QY7I_js.z}});Object.defineProperty(exports,"useErrorNotifications",{enumerable:true,get:function(){return chunk7BG7QY7I_js.c}});Object.defineProperty(exports,"useSelectionHighlight",{enumerable:true,get:function(){return chunk7BG7QY7I_js.x}});Object.defineProperty(exports,"useTableSelection",{enumerable:true,get:function(){return chunk7BG7QY7I_js.j}});Object.defineProperty(exports,"useWheelZoom",{enumerable:true,get:function(){return chunk7BG7QY7I_js.o}});Object.defineProperty(exports,"TABLE_DATA_ATTRIBUTES",{enumerable:true,get:function(){return chunkJTIUFACT_js.j}});Object.defineProperty(exports,"createSelectionFromDOM",{enumerable:true,get:function(){return chunkJTIUFACT_js.r}});Object.defineProperty(exports,"formatLastSaveTime",{enumerable:true,get:function(){return chunkJTIUFACT_js.e}});Object.defineProperty(exports,"formatStorageSize",{enumerable:true,get:function(){return chunkJTIUFACT_js.h}});Object.defineProperty(exports,"getAutoSaveStatusLabel",{enumerable:true,get:function(){return chunkJTIUFACT_js.f}});Object.defineProperty(exports,"getAutoSaveStorageSize",{enumerable:true,get:function(){return chunkJTIUFACT_js.g}});Object.defineProperty(exports,"getSelectionRuns",{enumerable:true,get:function(){return chunkJTIUFACT_js.q}});Object.defineProperty(exports,"isAutoSaveSupported",{enumerable:true,get:function(){return chunkJTIUFACT_js.i}});Object.defineProperty(exports,"toArrayBuffer",{enumerable:true,get:function(){return chunkMWLHJWB6_js.a}});
|
package/dist/react.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{k as DocxEditor,e as ErrorBoundary,d as ErrorProvider,A as PLUGIN_HOST_STYLES,f as ParseErrorDisplay,B as PluginHost,g as UnsupportedFeatureWarning,n as ZOOM_PRESETS,w as clampZoom,q as findNearestZoomPreset,t as formatZoom,y as generateOverlayElements,r as getNextZoomPreset,s as getPreviousZoomPreset,i as getUserFriendlyMessage,p as getZoomPresets,h as isParseError,v as isZoomPreset,u as parseZoom,l as renderAsync,m as useAutoSave,z as useClipboard,c as useErrorNotifications,x as useSelectionHighlight,j as useTableSelection,o as useWheelZoom}from'./chunk-KUTCCI4X.mjs';import'./chunk-BXRC4U3X.mjs';import'./chunk-OFYVDN3U.mjs';import'./chunk-42O5GXM5.mjs';import'./chunk-W4EIKDM6.mjs';import'./chunk-PKEOQIQO.mjs';import'./chunk-BTCQ2QI3.mjs';import'./chunk-MGEN6GOE.mjs';export{j as TABLE_DATA_ATTRIBUTES,r as createSelectionFromDOM,e as formatLastSaveTime,h as formatStorageSize,f as getAutoSaveStatusLabel,g as getAutoSaveStorageSize,q as getSelectionRuns,i as isAutoSaveSupported}from'./chunk-DACWLFKI.mjs';import'./chunk-P5FQHIES.mjs';import'./chunk-JCEWC5QL.mjs';import'./chunk-6WPRCJ5A.mjs';import'./chunk-HI66BSGS.mjs';import'./chunk-UXVACQCY.mjs';import'./chunk-CPAYKE6X.mjs';import'./chunk-TSE2PWFX.mjs';import'./chunk-R3QMYPL5.mjs';import'./chunk-5XK326FI.mjs';import'./chunk-76IYR7C7.mjs';import'./chunk-IOAGVW6Q.mjs';import'./chunk-WOHFANC5.mjs';import'./chunk-W53SI3XW.mjs';import'./chunk-RBUTXXQJ.mjs';export{a as toArrayBuffer}from'./chunk-INTPVEO6.mjs';import'./chunk-54ULJEHM.mjs';import'./chunk-LVGJKS7Y.mjs';import'./chunk-TAUMSKRE.mjs';
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
import { C as CorePlugin, P as PluginOptions, a as PluginRegistrationResult, b as CommandHandler, M as McpToolDefinition, c as PluginEventListener } from './types-jbivc9Lj.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Plugin Registry
|
|
5
|
-
*
|
|
6
|
-
* Central registry for core plugins. Manages plugin lifecycle,
|
|
7
|
-
* collects command handlers from all plugins, and aggregates
|
|
8
|
-
* MCP tool definitions for the MCP server.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Plugin Registry - manages core plugins
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```ts
|
|
16
|
-
* import { pluginRegistry, docxtemplaterPlugin } from '@eigenpal/docx-editor/core-plugins';
|
|
17
|
-
*
|
|
18
|
-
* // Register plugins
|
|
19
|
-
* pluginRegistry.register(docxtemplaterPlugin);
|
|
20
|
-
*
|
|
21
|
-
* // Get all MCP tools for MCP server
|
|
22
|
-
* const tools = pluginRegistry.getMcpTools();
|
|
23
|
-
*
|
|
24
|
-
* // Get command handler for executor
|
|
25
|
-
* const handler = pluginRegistry.getCommandHandler('insertTemplateVariable');
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
declare class PluginRegistry {
|
|
29
|
-
private plugins;
|
|
30
|
-
private commandHandlers;
|
|
31
|
-
private eventListeners;
|
|
32
|
-
private initialized;
|
|
33
|
-
/**
|
|
34
|
-
* Register a plugin
|
|
35
|
-
*
|
|
36
|
-
* @param plugin - The plugin to register
|
|
37
|
-
* @param options - Optional configuration
|
|
38
|
-
* @returns Registration result
|
|
39
|
-
*/
|
|
40
|
-
register(plugin: CorePlugin, options?: PluginOptions): PluginRegistrationResult;
|
|
41
|
-
/**
|
|
42
|
-
* Unregister a plugin
|
|
43
|
-
*
|
|
44
|
-
* @param pluginId - ID of the plugin to unregister
|
|
45
|
-
* @returns Whether unregistration succeeded
|
|
46
|
-
*/
|
|
47
|
-
unregister(pluginId: string): boolean;
|
|
48
|
-
/**
|
|
49
|
-
* Get a registered plugin by ID
|
|
50
|
-
*
|
|
51
|
-
* @param id - Plugin ID
|
|
52
|
-
* @returns The plugin or undefined
|
|
53
|
-
*/
|
|
54
|
-
get(id: string): CorePlugin | undefined;
|
|
55
|
-
/**
|
|
56
|
-
* Get all registered plugins
|
|
57
|
-
*
|
|
58
|
-
* @returns Array of all plugins
|
|
59
|
-
*/
|
|
60
|
-
getAll(): CorePlugin[];
|
|
61
|
-
/**
|
|
62
|
-
* Check if a plugin is registered
|
|
63
|
-
*
|
|
64
|
-
* @param id - Plugin ID
|
|
65
|
-
* @returns Whether the plugin is registered
|
|
66
|
-
*/
|
|
67
|
-
has(id: string): boolean;
|
|
68
|
-
/**
|
|
69
|
-
* Get number of registered plugins
|
|
70
|
-
*/
|
|
71
|
-
get size(): number;
|
|
72
|
-
/**
|
|
73
|
-
* Get a command handler for a command type
|
|
74
|
-
*
|
|
75
|
-
* @param commandType - The command type
|
|
76
|
-
* @returns The handler or undefined
|
|
77
|
-
*/
|
|
78
|
-
getCommandHandler(commandType: string): CommandHandler | undefined;
|
|
79
|
-
/**
|
|
80
|
-
* Get all registered command types
|
|
81
|
-
*
|
|
82
|
-
* @returns Array of command type strings
|
|
83
|
-
*/
|
|
84
|
-
getCommandTypes(): string[];
|
|
85
|
-
/**
|
|
86
|
-
* Check if a command type has a handler
|
|
87
|
-
*
|
|
88
|
-
* @param commandType - The command type
|
|
89
|
-
* @returns Whether a handler exists
|
|
90
|
-
*/
|
|
91
|
-
hasCommandHandler(commandType: string): boolean;
|
|
92
|
-
/**
|
|
93
|
-
* Get all MCP tools from all registered plugins
|
|
94
|
-
*
|
|
95
|
-
* @returns Array of MCP tool definitions
|
|
96
|
-
*/
|
|
97
|
-
getMcpTools(): McpToolDefinition[];
|
|
98
|
-
/**
|
|
99
|
-
* Get MCP tools from a specific plugin
|
|
100
|
-
*
|
|
101
|
-
* @param pluginId - Plugin ID
|
|
102
|
-
* @returns Array of MCP tool definitions
|
|
103
|
-
*/
|
|
104
|
-
getMcpToolsForPlugin(pluginId: string): McpToolDefinition[];
|
|
105
|
-
/**
|
|
106
|
-
* Get an MCP tool by name
|
|
107
|
-
*
|
|
108
|
-
* @param toolName - Tool name
|
|
109
|
-
* @returns The tool definition or undefined
|
|
110
|
-
*/
|
|
111
|
-
getMcpTool(toolName: string): McpToolDefinition | undefined;
|
|
112
|
-
/**
|
|
113
|
-
* Add an event listener
|
|
114
|
-
*
|
|
115
|
-
* @param listener - Event listener function
|
|
116
|
-
*/
|
|
117
|
-
addEventListener(listener: PluginEventListener): void;
|
|
118
|
-
/**
|
|
119
|
-
* Remove an event listener
|
|
120
|
-
*
|
|
121
|
-
* @param listener - Event listener function
|
|
122
|
-
*/
|
|
123
|
-
removeEventListener(listener: PluginEventListener): void;
|
|
124
|
-
/**
|
|
125
|
-
* Emit an event to all listeners
|
|
126
|
-
*/
|
|
127
|
-
private emit;
|
|
128
|
-
/**
|
|
129
|
-
* Clear all registered plugins
|
|
130
|
-
*
|
|
131
|
-
* Useful for testing or resetting state.
|
|
132
|
-
*/
|
|
133
|
-
clear(): void;
|
|
134
|
-
/**
|
|
135
|
-
* Get registry state for debugging
|
|
136
|
-
*/
|
|
137
|
-
getDebugInfo(): {
|
|
138
|
-
plugins: string[];
|
|
139
|
-
commandTypes: string[];
|
|
140
|
-
mcpTools: string[];
|
|
141
|
-
initialized: string[];
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
/**
|
|
145
|
-
* Global plugin registry instance
|
|
146
|
-
*
|
|
147
|
-
* Use this for registering plugins and accessing their capabilities.
|
|
148
|
-
*/
|
|
149
|
-
declare const pluginRegistry: PluginRegistry;
|
|
150
|
-
/**
|
|
151
|
-
* Register multiple plugins at once
|
|
152
|
-
*
|
|
153
|
-
* @param plugins - Array of plugins to register
|
|
154
|
-
* @returns Array of registration results
|
|
155
|
-
*/
|
|
156
|
-
declare function registerPlugins(plugins: CorePlugin[], options?: PluginOptions): PluginRegistrationResult[];
|
|
157
|
-
/**
|
|
158
|
-
* Create a plugin registration helper with options pre-configured
|
|
159
|
-
*
|
|
160
|
-
* @param options - Default options for plugin registration
|
|
161
|
-
* @returns Registration function
|
|
162
|
-
*/
|
|
163
|
-
declare function createPluginRegistrar(options: PluginOptions): (plugin: CorePlugin) => PluginRegistrationResult;
|
|
164
|
-
|
|
165
|
-
export { PluginRegistry as P, createPluginRegistrar as c, pluginRegistry as p, registerPlugins as r };
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
import { C as CorePlugin, P as PluginOptions, a as PluginRegistrationResult, b as CommandHandler, M as McpToolDefinition, c as PluginEventListener } from './types-UDsUq8D3.mjs';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Plugin Registry
|
|
5
|
-
*
|
|
6
|
-
* Central registry for core plugins. Manages plugin lifecycle,
|
|
7
|
-
* collects command handlers from all plugins, and aggregates
|
|
8
|
-
* MCP tool definitions for the MCP server.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Plugin Registry - manages core plugins
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```ts
|
|
16
|
-
* import { pluginRegistry, docxtemplaterPlugin } from '@eigenpal/docx-editor/core-plugins';
|
|
17
|
-
*
|
|
18
|
-
* // Register plugins
|
|
19
|
-
* pluginRegistry.register(docxtemplaterPlugin);
|
|
20
|
-
*
|
|
21
|
-
* // Get all MCP tools for MCP server
|
|
22
|
-
* const tools = pluginRegistry.getMcpTools();
|
|
23
|
-
*
|
|
24
|
-
* // Get command handler for executor
|
|
25
|
-
* const handler = pluginRegistry.getCommandHandler('insertTemplateVariable');
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
declare class PluginRegistry {
|
|
29
|
-
private plugins;
|
|
30
|
-
private commandHandlers;
|
|
31
|
-
private eventListeners;
|
|
32
|
-
private initialized;
|
|
33
|
-
/**
|
|
34
|
-
* Register a plugin
|
|
35
|
-
*
|
|
36
|
-
* @param plugin - The plugin to register
|
|
37
|
-
* @param options - Optional configuration
|
|
38
|
-
* @returns Registration result
|
|
39
|
-
*/
|
|
40
|
-
register(plugin: CorePlugin, options?: PluginOptions): PluginRegistrationResult;
|
|
41
|
-
/**
|
|
42
|
-
* Unregister a plugin
|
|
43
|
-
*
|
|
44
|
-
* @param pluginId - ID of the plugin to unregister
|
|
45
|
-
* @returns Whether unregistration succeeded
|
|
46
|
-
*/
|
|
47
|
-
unregister(pluginId: string): boolean;
|
|
48
|
-
/**
|
|
49
|
-
* Get a registered plugin by ID
|
|
50
|
-
*
|
|
51
|
-
* @param id - Plugin ID
|
|
52
|
-
* @returns The plugin or undefined
|
|
53
|
-
*/
|
|
54
|
-
get(id: string): CorePlugin | undefined;
|
|
55
|
-
/**
|
|
56
|
-
* Get all registered plugins
|
|
57
|
-
*
|
|
58
|
-
* @returns Array of all plugins
|
|
59
|
-
*/
|
|
60
|
-
getAll(): CorePlugin[];
|
|
61
|
-
/**
|
|
62
|
-
* Check if a plugin is registered
|
|
63
|
-
*
|
|
64
|
-
* @param id - Plugin ID
|
|
65
|
-
* @returns Whether the plugin is registered
|
|
66
|
-
*/
|
|
67
|
-
has(id: string): boolean;
|
|
68
|
-
/**
|
|
69
|
-
* Get number of registered plugins
|
|
70
|
-
*/
|
|
71
|
-
get size(): number;
|
|
72
|
-
/**
|
|
73
|
-
* Get a command handler for a command type
|
|
74
|
-
*
|
|
75
|
-
* @param commandType - The command type
|
|
76
|
-
* @returns The handler or undefined
|
|
77
|
-
*/
|
|
78
|
-
getCommandHandler(commandType: string): CommandHandler | undefined;
|
|
79
|
-
/**
|
|
80
|
-
* Get all registered command types
|
|
81
|
-
*
|
|
82
|
-
* @returns Array of command type strings
|
|
83
|
-
*/
|
|
84
|
-
getCommandTypes(): string[];
|
|
85
|
-
/**
|
|
86
|
-
* Check if a command type has a handler
|
|
87
|
-
*
|
|
88
|
-
* @param commandType - The command type
|
|
89
|
-
* @returns Whether a handler exists
|
|
90
|
-
*/
|
|
91
|
-
hasCommandHandler(commandType: string): boolean;
|
|
92
|
-
/**
|
|
93
|
-
* Get all MCP tools from all registered plugins
|
|
94
|
-
*
|
|
95
|
-
* @returns Array of MCP tool definitions
|
|
96
|
-
*/
|
|
97
|
-
getMcpTools(): McpToolDefinition[];
|
|
98
|
-
/**
|
|
99
|
-
* Get MCP tools from a specific plugin
|
|
100
|
-
*
|
|
101
|
-
* @param pluginId - Plugin ID
|
|
102
|
-
* @returns Array of MCP tool definitions
|
|
103
|
-
*/
|
|
104
|
-
getMcpToolsForPlugin(pluginId: string): McpToolDefinition[];
|
|
105
|
-
/**
|
|
106
|
-
* Get an MCP tool by name
|
|
107
|
-
*
|
|
108
|
-
* @param toolName - Tool name
|
|
109
|
-
* @returns The tool definition or undefined
|
|
110
|
-
*/
|
|
111
|
-
getMcpTool(toolName: string): McpToolDefinition | undefined;
|
|
112
|
-
/**
|
|
113
|
-
* Add an event listener
|
|
114
|
-
*
|
|
115
|
-
* @param listener - Event listener function
|
|
116
|
-
*/
|
|
117
|
-
addEventListener(listener: PluginEventListener): void;
|
|
118
|
-
/**
|
|
119
|
-
* Remove an event listener
|
|
120
|
-
*
|
|
121
|
-
* @param listener - Event listener function
|
|
122
|
-
*/
|
|
123
|
-
removeEventListener(listener: PluginEventListener): void;
|
|
124
|
-
/**
|
|
125
|
-
* Emit an event to all listeners
|
|
126
|
-
*/
|
|
127
|
-
private emit;
|
|
128
|
-
/**
|
|
129
|
-
* Clear all registered plugins
|
|
130
|
-
*
|
|
131
|
-
* Useful for testing or resetting state.
|
|
132
|
-
*/
|
|
133
|
-
clear(): void;
|
|
134
|
-
/**
|
|
135
|
-
* Get registry state for debugging
|
|
136
|
-
*/
|
|
137
|
-
getDebugInfo(): {
|
|
138
|
-
plugins: string[];
|
|
139
|
-
commandTypes: string[];
|
|
140
|
-
mcpTools: string[];
|
|
141
|
-
initialized: string[];
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
/**
|
|
145
|
-
* Global plugin registry instance
|
|
146
|
-
*
|
|
147
|
-
* Use this for registering plugins and accessing their capabilities.
|
|
148
|
-
*/
|
|
149
|
-
declare const pluginRegistry: PluginRegistry;
|
|
150
|
-
/**
|
|
151
|
-
* Register multiple plugins at once
|
|
152
|
-
*
|
|
153
|
-
* @param plugins - Array of plugins to register
|
|
154
|
-
* @returns Array of registration results
|
|
155
|
-
*/
|
|
156
|
-
declare function registerPlugins(plugins: CorePlugin[], options?: PluginOptions): PluginRegistrationResult[];
|
|
157
|
-
/**
|
|
158
|
-
* Create a plugin registration helper with options pre-configured
|
|
159
|
-
*
|
|
160
|
-
* @param options - Default options for plugin registration
|
|
161
|
-
* @returns Registration function
|
|
162
|
-
*/
|
|
163
|
-
declare function createPluginRegistrar(options: PluginOptions): (plugin: CorePlugin) => PluginRegistrationResult;
|
|
164
|
-
|
|
165
|
-
export { PluginRegistry as P, createPluginRegistrar as c, pluginRegistry as p, registerPlugins as r };
|