@eigenpal/docx-js-editor 0.0.16 → 0.0.19
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/ClipboardManager-D6dkOFg6.d.ts +436 -0
- package/dist/ClipboardManager-EZ0C6Onq.d.cts +436 -0
- package/dist/{DocumentAgent-Ci6_T-XM.d.ts → DocumentAgent-B0EC8lPC.d.cts} +2 -2
- package/dist/{DocumentAgent-DEGFgYEN.d.cts → DocumentAgent-BcCDg7i2.d.ts} +2 -2
- package/dist/{FindReplaceDialog-UMXCBBST.js → FindReplaceDialog-AWQXKEUQ.js} +2 -1
- package/dist/FindReplaceDialog-AWQXKEUQ.js.map +1 -0
- package/dist/FindReplaceDialog-I4SZDSVP.cjs +2 -0
- package/dist/FindReplaceDialog-I4SZDSVP.cjs.map +1 -0
- package/dist/{FootnotePropertiesDialog-OBQXOBJE.cjs → FootnotePropertiesDialog-73VT2ZVZ.cjs} +2 -1
- package/dist/FootnotePropertiesDialog-73VT2ZVZ.cjs.map +1 -0
- package/dist/{FootnotePropertiesDialog-TYQGPWPX.js → FootnotePropertiesDialog-ZM3EF3EF.js} +2 -1
- package/dist/FootnotePropertiesDialog-ZM3EF3EF.js.map +1 -0
- package/dist/{HyperlinkDialog-UOERZIBM.js → HyperlinkDialog-BA25XUT5.js} +2 -1
- package/dist/HyperlinkDialog-BA25XUT5.js.map +1 -0
- package/dist/HyperlinkDialog-V63LPOT2.cjs +2 -0
- package/dist/HyperlinkDialog-V63LPOT2.cjs.map +1 -0
- package/dist/{ImagePositionDialog-52FDANUK.js → ImagePositionDialog-AIAMKPFK.js} +2 -1
- package/dist/ImagePositionDialog-AIAMKPFK.js.map +1 -0
- package/dist/{ImagePositionDialog-ZK5WFBRC.cjs → ImagePositionDialog-KMK7ROV2.cjs} +2 -1
- package/dist/ImagePositionDialog-KMK7ROV2.cjs.map +1 -0
- package/dist/{ImagePropertiesDialog-YPSLPSF6.js → ImagePropertiesDialog-ERFCUVCW.js} +2 -1
- package/dist/ImagePropertiesDialog-ERFCUVCW.js.map +1 -0
- package/dist/{ImagePropertiesDialog-LU44RDIY.cjs → ImagePropertiesDialog-USMMRK6X.cjs} +2 -1
- package/dist/ImagePropertiesDialog-USMMRK6X.cjs.map +1 -0
- package/dist/{TablePropertiesDialog-KMOYHPGF.cjs → TablePropertiesDialog-72CIUAZT.cjs} +2 -1
- package/dist/TablePropertiesDialog-72CIUAZT.cjs.map +1 -0
- package/dist/{TablePropertiesDialog-OUUJAA7D.js → TablePropertiesDialog-EMUEVYB3.js} +2 -1
- package/dist/TablePropertiesDialog-EMUEVYB3.js.map +1 -0
- package/dist/{agentApi-CbVUCZRu.d.cts → agentApi-BFVyKagE.d.cts} +143 -2
- package/dist/{agentApi-CbVUCZRu.d.ts → agentApi-BFVyKagE.d.ts} +143 -2
- package/dist/{chunk-OEOUMSWH.cjs → chunk-2CHPKB5A.cjs} +8 -7
- package/dist/chunk-2CHPKB5A.cjs.map +1 -0
- package/dist/{chunk-R5SKERM2.js → chunk-2QOEHCBX.js} +2 -1
- package/dist/chunk-2QOEHCBX.js.map +1 -0
- package/dist/chunk-4QT5LPBA.cjs +24 -0
- package/dist/chunk-4QT5LPBA.cjs.map +1 -0
- package/dist/chunk-5DYSI4O4.cjs +60 -0
- package/dist/chunk-5DYSI4O4.cjs.map +1 -0
- package/dist/{chunk-DYQUXFE5.cjs → chunk-5FJXHXFV.cjs} +2 -1
- package/dist/chunk-5FJXHXFV.cjs.map +1 -0
- package/dist/chunk-6FEWNF6B.js +4 -0
- package/dist/chunk-6FEWNF6B.js.map +1 -0
- package/dist/chunk-6LF5HZCV.js +10 -0
- package/dist/chunk-6LF5HZCV.js.map +1 -0
- package/dist/{chunk-EMKABJPH.js → chunk-7JSPKVOW.js} +2 -1
- package/dist/chunk-7JSPKVOW.js.map +1 -0
- package/dist/chunk-C33XDRDJ.cjs +28 -0
- package/dist/chunk-C33XDRDJ.cjs.map +1 -0
- package/dist/chunk-CV5WFE7K.js +24 -0
- package/dist/chunk-CV5WFE7K.js.map +1 -0
- package/dist/{chunk-WFYRA2TH.js → chunk-CXJRNISO.js} +2 -1
- package/dist/chunk-CXJRNISO.js.map +1 -0
- package/dist/{chunk-VTAS7VZ6.cjs → chunk-DJAEBZ33.cjs} +2 -1
- package/dist/chunk-DJAEBZ33.cjs.map +1 -0
- package/dist/chunk-DP6Q75ZD.js +28 -0
- package/dist/chunk-DP6Q75ZD.js.map +1 -0
- package/dist/chunk-FDANI5P4.cjs +2 -0
- package/dist/chunk-FDANI5P4.cjs.map +1 -0
- package/dist/chunk-FGVGZLBL.js +2 -0
- package/dist/chunk-FGVGZLBL.js.map +1 -0
- package/dist/{chunk-SF53KLDZ.cjs → chunk-GJ4GKSDU.cjs} +2 -1
- package/dist/chunk-GJ4GKSDU.cjs.map +1 -0
- package/dist/{chunk-FYAWM7MP.cjs → chunk-GWBTKVFD.cjs} +2 -1
- package/dist/chunk-GWBTKVFD.cjs.map +1 -0
- package/dist/{chunk-WFWLPKQA.js → chunk-JOYPFQW2.js} +2 -1
- package/dist/chunk-JOYPFQW2.js.map +1 -0
- package/dist/{chunk-ZDYHAYN6.js → chunk-L54YNLSE.js} +2 -1
- package/dist/chunk-L54YNLSE.js.map +1 -0
- package/dist/chunk-LPGMLJMO.js +259 -0
- package/dist/chunk-LPGMLJMO.js.map +1 -0
- package/dist/{chunk-CTYOM6BE.js → chunk-M2T6XKT5.js} +2 -1
- package/dist/chunk-M2T6XKT5.js.map +1 -0
- package/dist/chunk-OHG7ROFC.js +11 -0
- package/dist/chunk-OHG7ROFC.js.map +1 -0
- package/dist/chunk-PANKMCFX.cjs +4 -0
- package/dist/chunk-PANKMCFX.cjs.map +1 -0
- package/dist/{chunk-PJVI53AH.js → chunk-Q6HUGWO6.js} +2 -1
- package/dist/chunk-Q6HUGWO6.js.map +1 -0
- package/dist/{chunk-MLSHZVL7.js → chunk-QDV75OJ4.js} +8 -7
- package/dist/chunk-QDV75OJ4.js.map +1 -0
- package/dist/chunk-QEBO3EQP.cjs +2 -0
- package/dist/chunk-QEBO3EQP.cjs.map +1 -0
- package/dist/chunk-QVIZ775M.cjs +259 -0
- package/dist/chunk-QVIZ775M.cjs.map +1 -0
- package/dist/chunk-RMUMR42R.cjs +10 -0
- package/dist/chunk-RMUMR42R.cjs.map +1 -0
- package/dist/{chunk-XS2AQFMF.cjs → chunk-S26DZVRQ.cjs} +2 -1
- package/dist/chunk-S26DZVRQ.cjs.map +1 -0
- package/dist/{chunk-L34XFLQZ.cjs → chunk-T2HQYRA7.cjs} +2 -1
- package/dist/chunk-T2HQYRA7.cjs.map +1 -0
- package/dist/chunk-ULXNEG66.js +60 -0
- package/dist/chunk-ULXNEG66.js.map +1 -0
- package/dist/{chunk-PXC7ARQB.cjs → chunk-WD2HTKRR.cjs} +2 -1
- package/dist/chunk-WD2HTKRR.cjs.map +1 -0
- package/dist/chunk-XZNOV52K.cjs +11 -0
- package/dist/chunk-XZNOV52K.cjs.map +1 -0
- package/dist/chunk-Y6VCTLCJ.js +2 -0
- package/dist/chunk-Y6VCTLCJ.js.map +1 -0
- package/dist/{clipboard-Cx7cb3kX.d.cts → clipboard-CqE-UZ2d.d.cts} +1 -1
- package/dist/{clipboard-BOocwmAM.d.ts → clipboard-beGtyabO.d.ts} +1 -1
- package/dist/{colorResolver-KXbUgzWC.d.ts → colorResolver-B5YbO_a4.d.ts} +170 -170
- package/dist/{colorResolver-CIDiSPWd.d.cts → colorResolver-Cu46bSKr.d.cts} +170 -170
- package/dist/core-plugins-reexport.cjs +2 -0
- package/dist/core-plugins-reexport.cjs.map +1 -0
- package/dist/{core-plugins.d.cts → core-plugins-reexport.d.cts} +4 -4
- package/dist/{core-plugins.d.ts → core-plugins-reexport.d.ts} +4 -4
- package/dist/core-plugins-reexport.js +2 -0
- package/dist/core-plugins-reexport.js.map +1 -0
- package/dist/core-reexport.cjs +2 -0
- package/dist/core-reexport.cjs.map +1 -0
- package/dist/core-reexport.d.cts +309 -0
- package/dist/core-reexport.d.ts +309 -0
- package/dist/core-reexport.js +2 -0
- package/dist/core-reexport.js.map +1 -0
- package/dist/executor-K5RXUTTR.js +2 -0
- package/dist/executor-K5RXUTTR.js.map +1 -0
- package/dist/executor-XIPIU3H4.cjs +2 -0
- package/dist/executor-XIPIU3H4.cjs.map +1 -0
- package/dist/{insertOperations-CzB5b-Of.d.ts → fontLoader-CFKpg0Ri.d.ts} +86 -86
- package/dist/{insertOperations-DKVmCV32.d.cts → fontLoader-HZYfILUm.d.cts} +86 -86
- package/dist/headless-reexport.cjs +5 -0
- package/dist/headless-reexport.cjs.map +1 -0
- package/dist/{headless.d.cts → headless-reexport.d.cts} +7 -7
- package/dist/{headless.d.ts → headless-reexport.d.ts} +7 -7
- package/dist/{headless.js → headless-reexport.js} +3 -2
- package/dist/headless-reexport.js.map +1 -0
- package/dist/index.cjs +6 -5
- package/dist/index.cjs.map +1 -0
- package/dist/index.css +1 -0
- package/dist/index.css.map +1 -0
- package/dist/index.d.cts +15 -13
- package/dist/index.d.ts +15 -13
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -0
- package/dist/{mcp.cjs → mcp-reexport.cjs} +11 -10
- package/dist/mcp-reexport.cjs.map +1 -0
- package/dist/{mcp.d.cts → mcp-reexport.d.cts} +2 -2
- package/dist/{mcp.d.ts → mcp-reexport.d.ts} +2 -2
- package/dist/{mcp.js → mcp-reexport.js} +10 -9
- package/dist/mcp-reexport.js.map +1 -0
- package/dist/{processTemplate-RJN6452W.js → processTemplate-G37IM66O.js} +2 -1
- package/dist/processTemplate-G37IM66O.js.map +1 -0
- package/dist/processTemplate-RFBGVH7T.cjs +2 -0
- package/dist/processTemplate-RFBGVH7T.cjs.map +1 -0
- package/dist/{react-BZxD04XV.d.ts → react-BjOCdeTs.d.ts} +43 -366
- package/dist/{react-D8eAYckC.d.cts → react-UzAn4o7l.d.cts} +43 -366
- package/dist/react.cjs +2 -1
- package/dist/react.cjs.map +1 -0
- package/dist/react.css +1 -0
- package/dist/react.css.map +1 -0
- package/dist/react.d.cts +6 -5
- package/dist/react.d.ts +6 -5
- package/dist/react.js +2 -1
- package/dist/react.js.map +1 -0
- package/dist/{registry-D4tvj9f3.d.ts → registry-CV6nYWqP.d.ts} +1 -1
- package/dist/{registry-ngv6Bumt.d.cts → registry-DjacfR6Q.d.cts} +1 -1
- package/dist/selectionRects-6DU7HN7E.js +2 -0
- package/dist/selectionRects-6DU7HN7E.js.map +1 -0
- package/dist/selectionRects-YZSC24ZP.cjs +2 -0
- package/dist/selectionRects-YZSC24ZP.cjs.map +1 -0
- package/dist/styles.css +1 -1
- package/dist/{types-D96elyJF.d.cts → types-Bnp8rvJn.d.cts} +2 -2
- package/dist/{types-xMzSPT4i.d.ts → types-DwZ3xysp.d.ts} +2 -2
- package/dist/ui.cjs +2 -1
- package/dist/ui.cjs.map +1 -0
- package/dist/ui.d.cts +3 -3
- package/dist/ui.d.ts +3 -3
- package/dist/ui.js +2 -1
- package/dist/ui.js.map +1 -0
- package/dist/{variableDetector-DeM1N-_L.d.ts → variableDetector-BaDeXz7D.d.ts} +1 -1
- package/dist/{variableDetector-CPxKo9jP.d.cts → variableDetector-CMhJtM96.d.cts} +1 -1
- package/package.json +26 -79
- package/LICENSE +0 -21
- package/README.md +0 -171
- package/dist/FindReplaceDialog-46BE7Q2G.cjs +0 -1
- package/dist/HyperlinkDialog-22NH7ZLP.cjs +0 -1
- package/dist/chunk-24N3L4IL.cjs +0 -258
- package/dist/chunk-2ASOEN3V.js +0 -1
- package/dist/chunk-46OFHSPJ.cjs +0 -2
- package/dist/chunk-65OFYOHF.cjs +0 -58
- package/dist/chunk-6YFGCUHU.js +0 -4
- package/dist/chunk-ESI4BSBF.js +0 -1
- package/dist/chunk-GLFFXY2X.js +0 -258
- package/dist/chunk-ITWEFKGQ.cjs +0 -1
- package/dist/chunk-JKN7TNPA.js +0 -12
- package/dist/chunk-KESNGXGO.js +0 -1
- package/dist/chunk-NO7WUK5E.cjs +0 -12
- package/dist/chunk-NT2REEAA.cjs +0 -1
- package/dist/chunk-O7QVCJN6.cjs +0 -4
- package/dist/chunk-OW5H5DNE.cjs +0 -1
- package/dist/chunk-OWMXCVKB.js +0 -1
- package/dist/chunk-RM3ITJ2H.cjs +0 -10
- package/dist/chunk-TOI5W3HK.js +0 -8
- package/dist/chunk-UAVOWAIF.cjs +0 -8
- package/dist/chunk-ULNHBTYA.js +0 -2
- package/dist/chunk-UXXV4GT6.js +0 -10
- package/dist/chunk-VOWKSURW.cjs +0 -1
- package/dist/chunk-YMXKVLTU.js +0 -58
- package/dist/core-plugins.cjs +0 -1
- package/dist/core-plugins.js +0 -1
- package/dist/core.cjs +0 -1
- package/dist/core.d.cts +0 -23
- package/dist/core.d.ts +0 -23
- package/dist/core.js +0 -1
- package/dist/executor-ITYZTNSH.cjs +0 -1
- package/dist/executor-TC7CLATE.js +0 -1
- package/dist/headless.cjs +0 -4
- package/dist/mcp-cli.js +0 -136
- package/dist/processTemplate-525HZL4S.cjs +0 -1
- package/dist/selectionRects-PQEUEW35.cjs +0 -1
- package/dist/selectionRects-QAG5RSHD.js +0 -1
|
@@ -645,6 +645,8 @@ interface Run {
|
|
|
645
645
|
type: 'run';
|
|
646
646
|
/** Text formatting properties */
|
|
647
647
|
formatting?: TextFormatting;
|
|
648
|
+
/** Run-level tracked property changes (w:rPrChange) */
|
|
649
|
+
propertyChanges?: RunPropertyChange[];
|
|
648
650
|
/** Run content (text, tabs, breaks, etc.) */
|
|
649
651
|
content: RunContent[];
|
|
650
652
|
}
|
|
@@ -965,6 +967,10 @@ interface TableCell {
|
|
|
965
967
|
type: 'tableCell';
|
|
966
968
|
/** Cell formatting */
|
|
967
969
|
formatting?: TableCellFormatting;
|
|
970
|
+
/** Cell-level tracked property changes (w:tcPrChange) */
|
|
971
|
+
propertyChanges?: TableCellPropertyChange[];
|
|
972
|
+
/** Tracked structural changes (cell insert/delete/merge) */
|
|
973
|
+
structuralChange?: TableStructuralChangeInfo;
|
|
968
974
|
/** Cell content (paragraphs, tables, etc.) */
|
|
969
975
|
content: (Paragraph | Table)[];
|
|
970
976
|
}
|
|
@@ -975,6 +981,10 @@ interface TableRow {
|
|
|
975
981
|
type: 'tableRow';
|
|
976
982
|
/** Row formatting */
|
|
977
983
|
formatting?: TableRowFormatting;
|
|
984
|
+
/** Row-level tracked property changes (w:trPrChange) */
|
|
985
|
+
propertyChanges?: TableRowPropertyChange[];
|
|
986
|
+
/** Tracked structural changes (row insert/delete) */
|
|
987
|
+
structuralChange?: TableStructuralChangeInfo;
|
|
978
988
|
/** Cells in this row */
|
|
979
989
|
cells: TableCell[];
|
|
980
990
|
}
|
|
@@ -985,6 +995,8 @@ interface Table {
|
|
|
985
995
|
type: 'table';
|
|
986
996
|
/** Table formatting */
|
|
987
997
|
formatting?: TableFormatting;
|
|
998
|
+
/** Table-level tracked property changes (w:tblPrChange) */
|
|
999
|
+
propertyChanges?: TablePropertyChange[];
|
|
988
1000
|
/** Column widths in twips */
|
|
989
1001
|
columnWidths?: number[];
|
|
990
1002
|
/** Table rows */
|
|
@@ -1046,6 +1058,13 @@ interface TrackedChangeInfo {
|
|
|
1046
1058
|
/** Date of the change */
|
|
1047
1059
|
date?: string;
|
|
1048
1060
|
}
|
|
1061
|
+
/**
|
|
1062
|
+
* Generic tracked property-change wrapper metadata (w:*PrChange)
|
|
1063
|
+
*/
|
|
1064
|
+
interface PropertyChangeInfo extends TrackedChangeInfo {
|
|
1065
|
+
/** Optional revision session ID */
|
|
1066
|
+
rsid?: string;
|
|
1067
|
+
}
|
|
1049
1068
|
/**
|
|
1050
1069
|
* Insertion wrapper (w:ins) — runs inserted by tracked changes
|
|
1051
1070
|
*/
|
|
@@ -1066,6 +1085,126 @@ interface Deletion {
|
|
|
1066
1085
|
/** Deleted content */
|
|
1067
1086
|
content: (Run | Hyperlink)[];
|
|
1068
1087
|
}
|
|
1088
|
+
/**
|
|
1089
|
+
* Move-from wrapper (w:moveFrom) — content moved away from this position
|
|
1090
|
+
*/
|
|
1091
|
+
interface MoveFrom {
|
|
1092
|
+
type: 'moveFrom';
|
|
1093
|
+
/** Tracked change metadata */
|
|
1094
|
+
info: TrackedChangeInfo;
|
|
1095
|
+
/** Moved content */
|
|
1096
|
+
content: (Run | Hyperlink)[];
|
|
1097
|
+
}
|
|
1098
|
+
/**
|
|
1099
|
+
* Move-to wrapper (w:moveTo) — content moved into this position
|
|
1100
|
+
*/
|
|
1101
|
+
interface MoveTo {
|
|
1102
|
+
type: 'moveTo';
|
|
1103
|
+
/** Tracked change metadata */
|
|
1104
|
+
info: TrackedChangeInfo;
|
|
1105
|
+
/** Moved content */
|
|
1106
|
+
content: (Run | Hyperlink)[];
|
|
1107
|
+
}
|
|
1108
|
+
/**
|
|
1109
|
+
* Move-from range start marker (w:moveFromRangeStart) — ECMA-376 §17.13.5.22
|
|
1110
|
+
* Pairs with moveFromRangeEnd to delimit the source of a move in the document.
|
|
1111
|
+
*/
|
|
1112
|
+
interface MoveFromRangeStart {
|
|
1113
|
+
type: 'moveFromRangeStart';
|
|
1114
|
+
id: number;
|
|
1115
|
+
name: string;
|
|
1116
|
+
}
|
|
1117
|
+
/**
|
|
1118
|
+
* Move-from range end marker (w:moveFromRangeEnd)
|
|
1119
|
+
*/
|
|
1120
|
+
interface MoveFromRangeEnd {
|
|
1121
|
+
type: 'moveFromRangeEnd';
|
|
1122
|
+
id: number;
|
|
1123
|
+
}
|
|
1124
|
+
/**
|
|
1125
|
+
* Move-to range start marker (w:moveToRangeStart) — ECMA-376 §17.13.5.24
|
|
1126
|
+
* Pairs with moveToRangeEnd to delimit the destination of a move.
|
|
1127
|
+
*/
|
|
1128
|
+
interface MoveToRangeStart {
|
|
1129
|
+
type: 'moveToRangeStart';
|
|
1130
|
+
id: number;
|
|
1131
|
+
name: string;
|
|
1132
|
+
}
|
|
1133
|
+
/**
|
|
1134
|
+
* Move-to range end marker (w:moveToRangeEnd)
|
|
1135
|
+
*/
|
|
1136
|
+
interface MoveToRangeEnd {
|
|
1137
|
+
type: 'moveToRangeEnd';
|
|
1138
|
+
id: number;
|
|
1139
|
+
}
|
|
1140
|
+
/**
|
|
1141
|
+
* Run property change (w:rPrChange)
|
|
1142
|
+
*/
|
|
1143
|
+
interface RunPropertyChange {
|
|
1144
|
+
type: 'runPropertyChange';
|
|
1145
|
+
/** Tracked change metadata */
|
|
1146
|
+
info: PropertyChangeInfo;
|
|
1147
|
+
/** Run properties before the tracked change */
|
|
1148
|
+
previousFormatting?: TextFormatting;
|
|
1149
|
+
/** Run properties after the tracked change (editor model convenience) */
|
|
1150
|
+
currentFormatting?: TextFormatting;
|
|
1151
|
+
}
|
|
1152
|
+
/**
|
|
1153
|
+
* Paragraph property change (w:pPrChange)
|
|
1154
|
+
*/
|
|
1155
|
+
interface ParagraphPropertyChange {
|
|
1156
|
+
type: 'paragraphPropertyChange';
|
|
1157
|
+
/** Tracked change metadata */
|
|
1158
|
+
info: PropertyChangeInfo;
|
|
1159
|
+
/** Paragraph properties before the tracked change */
|
|
1160
|
+
previousFormatting?: ParagraphFormatting;
|
|
1161
|
+
/** Paragraph properties after the tracked change (editor model convenience) */
|
|
1162
|
+
currentFormatting?: ParagraphFormatting;
|
|
1163
|
+
}
|
|
1164
|
+
/**
|
|
1165
|
+
* Table property change (w:tblPrChange)
|
|
1166
|
+
*/
|
|
1167
|
+
interface TablePropertyChange {
|
|
1168
|
+
type: 'tablePropertyChange';
|
|
1169
|
+
/** Tracked change metadata */
|
|
1170
|
+
info: PropertyChangeInfo;
|
|
1171
|
+
/** Table properties before the tracked change */
|
|
1172
|
+
previousFormatting?: TableFormatting;
|
|
1173
|
+
/** Table properties after the tracked change (editor model convenience) */
|
|
1174
|
+
currentFormatting?: TableFormatting;
|
|
1175
|
+
}
|
|
1176
|
+
/**
|
|
1177
|
+
* Table row property change (w:trPrChange)
|
|
1178
|
+
*/
|
|
1179
|
+
interface TableRowPropertyChange {
|
|
1180
|
+
type: 'tableRowPropertyChange';
|
|
1181
|
+
/** Tracked change metadata */
|
|
1182
|
+
info: PropertyChangeInfo;
|
|
1183
|
+
/** Row properties before the tracked change */
|
|
1184
|
+
previousFormatting?: TableRowFormatting;
|
|
1185
|
+
/** Row properties after the tracked change (editor model convenience) */
|
|
1186
|
+
currentFormatting?: TableRowFormatting;
|
|
1187
|
+
}
|
|
1188
|
+
/**
|
|
1189
|
+
* Table cell property change (w:tcPrChange)
|
|
1190
|
+
*/
|
|
1191
|
+
interface TableCellPropertyChange {
|
|
1192
|
+
type: 'tableCellPropertyChange';
|
|
1193
|
+
/** Tracked change metadata */
|
|
1194
|
+
info: PropertyChangeInfo;
|
|
1195
|
+
/** Cell properties before the tracked change */
|
|
1196
|
+
previousFormatting?: TableCellFormatting;
|
|
1197
|
+
/** Cell properties after the tracked change (editor model convenience) */
|
|
1198
|
+
currentFormatting?: TableCellFormatting;
|
|
1199
|
+
}
|
|
1200
|
+
/**
|
|
1201
|
+
* Table structural tracked change metadata (row/cell insert/delete/merge)
|
|
1202
|
+
*/
|
|
1203
|
+
interface TableStructuralChangeInfo {
|
|
1204
|
+
type: 'tableRowInsertion' | 'tableRowDeletion' | 'tableCellInsertion' | 'tableCellDeletion' | 'tableCellMerge';
|
|
1205
|
+
/** Tracked change metadata */
|
|
1206
|
+
info: TrackedChangeInfo;
|
|
1207
|
+
}
|
|
1069
1208
|
/**
|
|
1070
1209
|
* SDT type (content control type)
|
|
1071
1210
|
*/
|
|
@@ -1119,7 +1258,7 @@ interface BlockSdt {
|
|
|
1119
1258
|
/**
|
|
1120
1259
|
* Paragraph content types
|
|
1121
1260
|
*/
|
|
1122
|
-
type ParagraphContent = Run | Hyperlink | BookmarkStart | BookmarkEnd | SimpleField | ComplexField | InlineSdt | CommentRangeStart | CommentRangeEnd | Insertion | Deletion | MathEquation;
|
|
1261
|
+
type ParagraphContent = Run | Hyperlink | BookmarkStart | BookmarkEnd | SimpleField | ComplexField | InlineSdt | CommentRangeStart | CommentRangeEnd | Insertion | Deletion | MoveFrom | MoveTo | MoveFromRangeStart | MoveFromRangeEnd | MoveToRangeStart | MoveToRangeEnd | MathEquation;
|
|
1123
1262
|
/**
|
|
1124
1263
|
* Paragraph (w:p)
|
|
1125
1264
|
*/
|
|
@@ -1131,6 +1270,8 @@ interface Paragraph {
|
|
|
1131
1270
|
textId?: string;
|
|
1132
1271
|
/** Paragraph formatting */
|
|
1133
1272
|
formatting?: ParagraphFormatting;
|
|
1273
|
+
/** Paragraph-level tracked property changes (w:pPrChange) */
|
|
1274
|
+
propertyChanges?: ParagraphPropertyChange[];
|
|
1134
1275
|
/** Paragraph content */
|
|
1135
1276
|
content: ParagraphContent[];
|
|
1136
1277
|
/** Computed list rendering (if this is a list item) */
|
|
@@ -2083,4 +2224,4 @@ declare const DEFAULT_AI_ACTIONS: AIAction[];
|
|
|
2083
2224
|
*/
|
|
2084
2225
|
declare function createCommand<T extends AgentCommand>(command: Omit<T, 'id'>): T;
|
|
2085
2226
|
|
|
2086
|
-
export {
|
|
2227
|
+
export { createRange as $, type AgentCommand as A, type BreakContent as B, type SectionProperties as C, type Document as D, type Endnote as E, type Footnote as F, type SelectionContext as G, type Hyperlink as H, type Image as I, type SetVariableCommand as J, type Style as K, type ListLevel as L, type StyleDefinitions as M, type NumberingDefinitions as N, type StyleInfo as O, type Position as P, type SuggestedAction as Q, type Range as R, type SectionInfo as S, type TextFormatting as T, type TableCell as U, type TableRow as V, type TextContent as W, type Theme as X, comparePositions as Y, createCollapsedRange as Z, createCommand as _, type Paragraph as a, getActionDescription as a0, getActionLabel as a1, isPositionInRange as a2, type BookmarkEnd as a3, type BookmarkStart as a4, type Field as a5, type FooterReference as a6, type HeaderFooter as a7, type HeaderReference as a8, type Shape as a9, type TextBox as aa, type ThemeColorScheme as ab, type ThemeFont as ac, type ThemeFontScheme as ad, type ColorValue as ae, type ThemeColorSlot as af, type ParagraphAlignment as ag, type StyleType as ah, type TabStop as ai, type ShadingProperties as aj, type Run as b, type RunContent as c, type DocumentBody as d, type Table as e, type AIAction as f, type AIActionRequest as g, type AgentContext as h, type AgentResponse as i, type ApplyStyleCommand as j, type ApplyVariablesCommand as k, type BlockContent as l, DEFAULT_AI_ACTIONS as m, type DeleteTextCommand as n, type DocxPackage as o, type FormatParagraphCommand as p, type FormatTextCommand as q, type InsertHyperlinkCommand as r, type InsertImageCommand as s, type InsertTableCommand as t, type InsertTextCommand as u, type ParagraphContext as v, type ParagraphFormatting as w, type ParagraphOutline as x, type Relationship as y, type ReplaceTextCommand as z };
|
|
@@ -645,6 +645,8 @@ interface Run {
|
|
|
645
645
|
type: 'run';
|
|
646
646
|
/** Text formatting properties */
|
|
647
647
|
formatting?: TextFormatting;
|
|
648
|
+
/** Run-level tracked property changes (w:rPrChange) */
|
|
649
|
+
propertyChanges?: RunPropertyChange[];
|
|
648
650
|
/** Run content (text, tabs, breaks, etc.) */
|
|
649
651
|
content: RunContent[];
|
|
650
652
|
}
|
|
@@ -965,6 +967,10 @@ interface TableCell {
|
|
|
965
967
|
type: 'tableCell';
|
|
966
968
|
/** Cell formatting */
|
|
967
969
|
formatting?: TableCellFormatting;
|
|
970
|
+
/** Cell-level tracked property changes (w:tcPrChange) */
|
|
971
|
+
propertyChanges?: TableCellPropertyChange[];
|
|
972
|
+
/** Tracked structural changes (cell insert/delete/merge) */
|
|
973
|
+
structuralChange?: TableStructuralChangeInfo;
|
|
968
974
|
/** Cell content (paragraphs, tables, etc.) */
|
|
969
975
|
content: (Paragraph | Table)[];
|
|
970
976
|
}
|
|
@@ -975,6 +981,10 @@ interface TableRow {
|
|
|
975
981
|
type: 'tableRow';
|
|
976
982
|
/** Row formatting */
|
|
977
983
|
formatting?: TableRowFormatting;
|
|
984
|
+
/** Row-level tracked property changes (w:trPrChange) */
|
|
985
|
+
propertyChanges?: TableRowPropertyChange[];
|
|
986
|
+
/** Tracked structural changes (row insert/delete) */
|
|
987
|
+
structuralChange?: TableStructuralChangeInfo;
|
|
978
988
|
/** Cells in this row */
|
|
979
989
|
cells: TableCell[];
|
|
980
990
|
}
|
|
@@ -985,6 +995,8 @@ interface Table {
|
|
|
985
995
|
type: 'table';
|
|
986
996
|
/** Table formatting */
|
|
987
997
|
formatting?: TableFormatting;
|
|
998
|
+
/** Table-level tracked property changes (w:tblPrChange) */
|
|
999
|
+
propertyChanges?: TablePropertyChange[];
|
|
988
1000
|
/** Column widths in twips */
|
|
989
1001
|
columnWidths?: number[];
|
|
990
1002
|
/** Table rows */
|
|
@@ -1046,6 +1058,13 @@ interface TrackedChangeInfo {
|
|
|
1046
1058
|
/** Date of the change */
|
|
1047
1059
|
date?: string;
|
|
1048
1060
|
}
|
|
1061
|
+
/**
|
|
1062
|
+
* Generic tracked property-change wrapper metadata (w:*PrChange)
|
|
1063
|
+
*/
|
|
1064
|
+
interface PropertyChangeInfo extends TrackedChangeInfo {
|
|
1065
|
+
/** Optional revision session ID */
|
|
1066
|
+
rsid?: string;
|
|
1067
|
+
}
|
|
1049
1068
|
/**
|
|
1050
1069
|
* Insertion wrapper (w:ins) — runs inserted by tracked changes
|
|
1051
1070
|
*/
|
|
@@ -1066,6 +1085,126 @@ interface Deletion {
|
|
|
1066
1085
|
/** Deleted content */
|
|
1067
1086
|
content: (Run | Hyperlink)[];
|
|
1068
1087
|
}
|
|
1088
|
+
/**
|
|
1089
|
+
* Move-from wrapper (w:moveFrom) — content moved away from this position
|
|
1090
|
+
*/
|
|
1091
|
+
interface MoveFrom {
|
|
1092
|
+
type: 'moveFrom';
|
|
1093
|
+
/** Tracked change metadata */
|
|
1094
|
+
info: TrackedChangeInfo;
|
|
1095
|
+
/** Moved content */
|
|
1096
|
+
content: (Run | Hyperlink)[];
|
|
1097
|
+
}
|
|
1098
|
+
/**
|
|
1099
|
+
* Move-to wrapper (w:moveTo) — content moved into this position
|
|
1100
|
+
*/
|
|
1101
|
+
interface MoveTo {
|
|
1102
|
+
type: 'moveTo';
|
|
1103
|
+
/** Tracked change metadata */
|
|
1104
|
+
info: TrackedChangeInfo;
|
|
1105
|
+
/** Moved content */
|
|
1106
|
+
content: (Run | Hyperlink)[];
|
|
1107
|
+
}
|
|
1108
|
+
/**
|
|
1109
|
+
* Move-from range start marker (w:moveFromRangeStart) — ECMA-376 §17.13.5.22
|
|
1110
|
+
* Pairs with moveFromRangeEnd to delimit the source of a move in the document.
|
|
1111
|
+
*/
|
|
1112
|
+
interface MoveFromRangeStart {
|
|
1113
|
+
type: 'moveFromRangeStart';
|
|
1114
|
+
id: number;
|
|
1115
|
+
name: string;
|
|
1116
|
+
}
|
|
1117
|
+
/**
|
|
1118
|
+
* Move-from range end marker (w:moveFromRangeEnd)
|
|
1119
|
+
*/
|
|
1120
|
+
interface MoveFromRangeEnd {
|
|
1121
|
+
type: 'moveFromRangeEnd';
|
|
1122
|
+
id: number;
|
|
1123
|
+
}
|
|
1124
|
+
/**
|
|
1125
|
+
* Move-to range start marker (w:moveToRangeStart) — ECMA-376 §17.13.5.24
|
|
1126
|
+
* Pairs with moveToRangeEnd to delimit the destination of a move.
|
|
1127
|
+
*/
|
|
1128
|
+
interface MoveToRangeStart {
|
|
1129
|
+
type: 'moveToRangeStart';
|
|
1130
|
+
id: number;
|
|
1131
|
+
name: string;
|
|
1132
|
+
}
|
|
1133
|
+
/**
|
|
1134
|
+
* Move-to range end marker (w:moveToRangeEnd)
|
|
1135
|
+
*/
|
|
1136
|
+
interface MoveToRangeEnd {
|
|
1137
|
+
type: 'moveToRangeEnd';
|
|
1138
|
+
id: number;
|
|
1139
|
+
}
|
|
1140
|
+
/**
|
|
1141
|
+
* Run property change (w:rPrChange)
|
|
1142
|
+
*/
|
|
1143
|
+
interface RunPropertyChange {
|
|
1144
|
+
type: 'runPropertyChange';
|
|
1145
|
+
/** Tracked change metadata */
|
|
1146
|
+
info: PropertyChangeInfo;
|
|
1147
|
+
/** Run properties before the tracked change */
|
|
1148
|
+
previousFormatting?: TextFormatting;
|
|
1149
|
+
/** Run properties after the tracked change (editor model convenience) */
|
|
1150
|
+
currentFormatting?: TextFormatting;
|
|
1151
|
+
}
|
|
1152
|
+
/**
|
|
1153
|
+
* Paragraph property change (w:pPrChange)
|
|
1154
|
+
*/
|
|
1155
|
+
interface ParagraphPropertyChange {
|
|
1156
|
+
type: 'paragraphPropertyChange';
|
|
1157
|
+
/** Tracked change metadata */
|
|
1158
|
+
info: PropertyChangeInfo;
|
|
1159
|
+
/** Paragraph properties before the tracked change */
|
|
1160
|
+
previousFormatting?: ParagraphFormatting;
|
|
1161
|
+
/** Paragraph properties after the tracked change (editor model convenience) */
|
|
1162
|
+
currentFormatting?: ParagraphFormatting;
|
|
1163
|
+
}
|
|
1164
|
+
/**
|
|
1165
|
+
* Table property change (w:tblPrChange)
|
|
1166
|
+
*/
|
|
1167
|
+
interface TablePropertyChange {
|
|
1168
|
+
type: 'tablePropertyChange';
|
|
1169
|
+
/** Tracked change metadata */
|
|
1170
|
+
info: PropertyChangeInfo;
|
|
1171
|
+
/** Table properties before the tracked change */
|
|
1172
|
+
previousFormatting?: TableFormatting;
|
|
1173
|
+
/** Table properties after the tracked change (editor model convenience) */
|
|
1174
|
+
currentFormatting?: TableFormatting;
|
|
1175
|
+
}
|
|
1176
|
+
/**
|
|
1177
|
+
* Table row property change (w:trPrChange)
|
|
1178
|
+
*/
|
|
1179
|
+
interface TableRowPropertyChange {
|
|
1180
|
+
type: 'tableRowPropertyChange';
|
|
1181
|
+
/** Tracked change metadata */
|
|
1182
|
+
info: PropertyChangeInfo;
|
|
1183
|
+
/** Row properties before the tracked change */
|
|
1184
|
+
previousFormatting?: TableRowFormatting;
|
|
1185
|
+
/** Row properties after the tracked change (editor model convenience) */
|
|
1186
|
+
currentFormatting?: TableRowFormatting;
|
|
1187
|
+
}
|
|
1188
|
+
/**
|
|
1189
|
+
* Table cell property change (w:tcPrChange)
|
|
1190
|
+
*/
|
|
1191
|
+
interface TableCellPropertyChange {
|
|
1192
|
+
type: 'tableCellPropertyChange';
|
|
1193
|
+
/** Tracked change metadata */
|
|
1194
|
+
info: PropertyChangeInfo;
|
|
1195
|
+
/** Cell properties before the tracked change */
|
|
1196
|
+
previousFormatting?: TableCellFormatting;
|
|
1197
|
+
/** Cell properties after the tracked change (editor model convenience) */
|
|
1198
|
+
currentFormatting?: TableCellFormatting;
|
|
1199
|
+
}
|
|
1200
|
+
/**
|
|
1201
|
+
* Table structural tracked change metadata (row/cell insert/delete/merge)
|
|
1202
|
+
*/
|
|
1203
|
+
interface TableStructuralChangeInfo {
|
|
1204
|
+
type: 'tableRowInsertion' | 'tableRowDeletion' | 'tableCellInsertion' | 'tableCellDeletion' | 'tableCellMerge';
|
|
1205
|
+
/** Tracked change metadata */
|
|
1206
|
+
info: TrackedChangeInfo;
|
|
1207
|
+
}
|
|
1069
1208
|
/**
|
|
1070
1209
|
* SDT type (content control type)
|
|
1071
1210
|
*/
|
|
@@ -1119,7 +1258,7 @@ interface BlockSdt {
|
|
|
1119
1258
|
/**
|
|
1120
1259
|
* Paragraph content types
|
|
1121
1260
|
*/
|
|
1122
|
-
type ParagraphContent = Run | Hyperlink | BookmarkStart | BookmarkEnd | SimpleField | ComplexField | InlineSdt | CommentRangeStart | CommentRangeEnd | Insertion | Deletion | MathEquation;
|
|
1261
|
+
type ParagraphContent = Run | Hyperlink | BookmarkStart | BookmarkEnd | SimpleField | ComplexField | InlineSdt | CommentRangeStart | CommentRangeEnd | Insertion | Deletion | MoveFrom | MoveTo | MoveFromRangeStart | MoveFromRangeEnd | MoveToRangeStart | MoveToRangeEnd | MathEquation;
|
|
1123
1262
|
/**
|
|
1124
1263
|
* Paragraph (w:p)
|
|
1125
1264
|
*/
|
|
@@ -1131,6 +1270,8 @@ interface Paragraph {
|
|
|
1131
1270
|
textId?: string;
|
|
1132
1271
|
/** Paragraph formatting */
|
|
1133
1272
|
formatting?: ParagraphFormatting;
|
|
1273
|
+
/** Paragraph-level tracked property changes (w:pPrChange) */
|
|
1274
|
+
propertyChanges?: ParagraphPropertyChange[];
|
|
1134
1275
|
/** Paragraph content */
|
|
1135
1276
|
content: ParagraphContent[];
|
|
1136
1277
|
/** Computed list rendering (if this is a list item) */
|
|
@@ -2083,4 +2224,4 @@ declare const DEFAULT_AI_ACTIONS: AIAction[];
|
|
|
2083
2224
|
*/
|
|
2084
2225
|
declare function createCommand<T extends AgentCommand>(command: Omit<T, 'id'>): T;
|
|
2085
2226
|
|
|
2086
|
-
export {
|
|
2227
|
+
export { createRange as $, type AgentCommand as A, type BreakContent as B, type SectionProperties as C, type Document as D, type Endnote as E, type Footnote as F, type SelectionContext as G, type Hyperlink as H, type Image as I, type SetVariableCommand as J, type Style as K, type ListLevel as L, type StyleDefinitions as M, type NumberingDefinitions as N, type StyleInfo as O, type Position as P, type SuggestedAction as Q, type Range as R, type SectionInfo as S, type TextFormatting as T, type TableCell as U, type TableRow as V, type TextContent as W, type Theme as X, comparePositions as Y, createCollapsedRange as Z, createCommand as _, type Paragraph as a, getActionDescription as a0, getActionLabel as a1, isPositionInRange as a2, type BookmarkEnd as a3, type BookmarkStart as a4, type Field as a5, type FooterReference as a6, type HeaderFooter as a7, type HeaderReference as a8, type Shape as a9, type TextBox as aa, type ThemeColorScheme as ab, type ThemeFont as ac, type ThemeFontScheme as ad, type ColorValue as ae, type ThemeColorSlot as af, type ParagraphAlignment as ag, type StyleType as ah, type TabStop as ai, type ShadingProperties as aj, type Run as b, type RunContent as c, type DocumentBody as d, type Table as e, type AIAction as f, type AIActionRequest as g, type AgentContext as h, type AgentResponse as i, type ApplyStyleCommand as j, type ApplyVariablesCommand as k, type BlockContent as l, DEFAULT_AI_ACTIONS as m, type DeleteTextCommand as n, type DocxPackage as o, type FormatParagraphCommand as p, type FormatTextCommand as q, type InsertHyperlinkCommand as r, type InsertImageCommand as s, type InsertTableCommand as t, type InsertTextCommand as u, type ParagraphContext as v, type ParagraphFormatting as w, type ParagraphOutline as x, type Relationship as y, type ReplaceTextCommand as z };
|