@eigenpal/docx-editor-core 1.0.2 → 1.1.0
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 +13 -16
- package/README.md +1 -1
- package/dist/agent/index.d.mts +4 -5
- package/dist/agent/index.d.ts +4 -5
- package/dist/agent/index.js +1 -1
- package/dist/agent/index.mjs +1 -1
- package/dist/{chunk-NLTX7XVR.js → chunk-25KY5HLN.js} +1 -1
- package/dist/chunk-44FHVKSI.js +1 -0
- package/dist/{chunk-4S5VOHQK.mjs → chunk-5CDBSK2R.mjs} +1 -1
- package/dist/chunk-6Y6LON6Y.mjs +1 -0
- package/dist/chunk-6ZXL3EIP.mjs +2 -0
- package/dist/chunk-73AZQWIE.js +1 -0
- package/dist/chunk-7HANRHHL.js +1 -0
- package/dist/chunk-7LRR7RKE.mjs +15 -0
- package/dist/{chunk-AGNZEOVL.mjs → chunk-7Z2AGPNQ.mjs} +1 -1
- package/dist/chunk-BGE57OES.js +1 -0
- package/dist/chunk-BOOHU5EW.mjs +1 -0
- package/dist/chunk-CA2EYL6T.mjs +1 -0
- package/dist/chunk-CTHHUJAB.mjs +2 -0
- package/dist/chunk-DLCDDB66.mjs +3 -0
- package/dist/chunk-DV6GWBUJ.js +2 -0
- package/dist/chunk-E4JMCA5X.js +2 -0
- package/dist/chunk-F44ZLDZS.js +4 -0
- package/dist/chunk-FCJWLEKT.mjs +1 -0
- package/dist/chunk-FDEDN2RC.mjs +0 -0
- package/dist/chunk-FEWCI2E5.mjs +1 -0
- package/dist/chunk-GFDIPDJ6.mjs +1 -0
- package/dist/chunk-GM4USWKO.js +2 -0
- package/dist/chunk-GWBVJZVT.js +3 -0
- package/dist/chunk-GY5BWVM7.js +1 -0
- package/dist/{chunk-7SGC3CXJ.js → chunk-H42RXHT4.js} +1 -1
- package/dist/chunk-HMBVSDCH.mjs +1 -0
- package/dist/chunk-HQPWFUP5.js +2 -0
- package/dist/chunk-HV6HE6YR.js +59 -0
- package/dist/chunk-IF4C25FN.mjs +1 -0
- package/dist/chunk-IMKU4O3P.js +1 -0
- package/dist/chunk-IQG3KLWY.mjs +2 -0
- package/dist/{chunk-AFMMYLPX.js → chunk-J4J2Y6EU.js} +2 -2
- package/dist/chunk-KGDXHUYC.js +1 -0
- package/dist/chunk-KHF4JU7D.mjs +1 -0
- package/dist/chunk-LCICADWM.js +2 -0
- package/dist/{chunk-GFQM7PKY.js → chunk-LOCW6MR2.js} +1 -1
- package/dist/chunk-LTHT4A4S.js +1 -0
- package/dist/chunk-MJ6XZFVD.mjs +1 -0
- package/dist/chunk-MNOHUTKE.js +15 -0
- package/dist/chunk-MP4QSEO2.mjs +1 -0
- package/dist/chunk-MZ2XCZAN.mjs +1 -0
- package/dist/chunk-OAWTQ3IY.js +1 -0
- package/dist/chunk-OEXVWIHW.mjs +2 -0
- package/dist/chunk-ONRBRDIC.mjs +59 -0
- package/dist/{chunk-6PR4XHQ3.mjs → chunk-ONWOHAFW.mjs} +1 -1
- package/dist/{chunk-EXOP727C.mjs → chunk-OUEKNYX5.mjs} +1 -1
- package/dist/chunk-OX75Q5ZG.mjs +1 -0
- package/dist/chunk-QEACB5VG.js +1 -0
- package/dist/chunk-RFC2SXZ6.mjs +4 -0
- package/dist/chunk-RFVFX5WK.mjs +1 -0
- package/dist/chunk-SORYYVJ7.js +1 -0
- package/dist/chunk-TUIEV7Q7.js +1 -0
- package/dist/chunk-U74VPTIU.js +1 -0
- package/dist/chunk-UOQT6A7P.js +1 -0
- package/dist/chunk-V5VDCQDN.mjs +1 -0
- package/dist/chunk-VHUVPHPI.mjs +1 -0
- package/dist/{chunk-XCMA7AY7.js → chunk-W7GLQ6DV.js} +1 -1
- package/dist/chunk-WLHNIXWC.mjs +2 -0
- package/dist/chunk-X6HFDXKB.js +1 -0
- package/dist/chunk-XPV6VILW.mjs +1 -0
- package/dist/chunk-Y3ZQQI4D.js +1 -0
- package/dist/chunk-YTDWMXNS.js +1 -0
- package/dist/chunk-ZUGNF5KU.js +1 -0
- package/dist/chunk-ZX26QZJ5.mjs +1 -0
- package/dist/{colorResolver-CVsPLsw1.d.ts → colorResolver-BZ_yScf4.d.ts} +1 -1
- package/dist/{colorResolver-C3q7MLLD.d.mts → colorResolver-C6DtsoFI.d.mts} +1 -1
- package/dist/content-5Mrz6w_b.d.mts +1360 -0
- package/dist/content-CmqAwdFL.d.ts +1360 -0
- package/dist/core-plugins.d.mts +3 -4
- package/dist/core-plugins.d.ts +3 -4
- package/dist/core-plugins.js +1 -1
- package/dist/core-plugins.mjs +1 -1
- package/dist/core.d.mts +10 -11
- package/dist/core.d.ts +10 -11
- package/dist/core.js +1 -1
- package/dist/core.mjs +1 -1
- package/dist/{documentSerializer-Chn7J1WG.d.ts → documentSerializer-BRaaXIHm.d.ts} +1 -1
- package/dist/{documentSerializer-C1ueey5d.d.mts → documentSerializer-DgO3A9av.d.mts} +1 -1
- package/dist/docx/index.d.mts +3 -4
- package/dist/docx/index.d.ts +3 -4
- package/dist/docx/index.js +1 -1
- package/dist/docx/index.mjs +1 -1
- package/dist/docx/parser.d.mts +3 -4
- package/dist/docx/parser.d.ts +3 -4
- package/dist/docx/parser.js +1 -1
- package/dist/docx/parser.mjs +1 -1
- package/dist/docx/rezip.d.mts +3 -4
- package/dist/docx/rezip.d.ts +3 -4
- package/dist/docx/rezip.js +1 -1
- package/dist/docx/rezip.mjs +1 -1
- package/dist/docx/serializer/index.d.mts +4 -5
- package/dist/docx/serializer/index.d.ts +4 -5
- package/dist/docx/serializer/index.js +1 -1
- package/dist/docx/serializer/index.mjs +1 -1
- package/dist/{fontLoader-BOt95Jtf.d.mts → fontLoader-8b4X-AIh.d.mts} +63 -3
- package/dist/{fontLoader-QPwbcX5j.d.ts → fontLoader-CK2QLq68.d.ts} +63 -3
- package/dist/{formatting-D9I-lFS4.d.mts → formatting-BH4hcZiq.d.mts} +1 -1
- package/dist/{formatting-BwpZWdGi.d.ts → formatting-_OXU8gLB.d.ts} +1 -1
- package/dist/{headerFooterLayout-DkclHZ0Z.d.mts → headerFooterLayout-72Vz7yp3.d.mts} +94 -3
- package/dist/{headerFooterLayout-B3QVg556.d.ts → headerFooterLayout-Ca4ESDHF.d.ts} +94 -3
- package/dist/headless.d.mts +9 -9
- package/dist/headless.d.ts +9 -9
- package/dist/headless.js +1 -1
- package/dist/headless.mjs +1 -1
- package/dist/layout-bridge/index.d.mts +7 -7
- package/dist/layout-bridge/index.d.ts +7 -7
- package/dist/layout-bridge/index.js +1 -1
- package/dist/layout-bridge/index.mjs +1 -1
- package/dist/layout-bridge/measuring/index.d.mts +43 -2
- package/dist/layout-bridge/measuring/index.d.ts +43 -2
- package/dist/layout-bridge/measuring/index.js +1 -1
- package/dist/layout-bridge/measuring/index.mjs +1 -1
- package/dist/layout-bridge/tableInsertHover.js +1 -1
- package/dist/layout-bridge/tableInsertHover.mjs +1 -1
- package/dist/layout-bridge/toFlowBlocks.d.mts +11 -3
- package/dist/layout-bridge/toFlowBlocks.d.ts +11 -3
- package/dist/layout-bridge/toFlowBlocks.js +1 -1
- package/dist/layout-bridge/toFlowBlocks.mjs +1 -1
- package/dist/layout-engine/index.d.mts +33 -3
- package/dist/layout-engine/index.d.ts +33 -3
- package/dist/layout-engine/index.js +1 -1
- package/dist/layout-engine/index.mjs +1 -1
- package/dist/layout-engine/types.d.mts +53 -0
- package/dist/layout-engine/types.d.ts +53 -0
- package/dist/layout-painter/index.d.mts +4 -5
- package/dist/layout-painter/index.d.ts +4 -5
- package/dist/layout-painter/index.js +1 -1
- package/dist/layout-painter/index.mjs +1 -1
- package/dist/layout-painter/renderPage.d.mts +4 -5
- package/dist/layout-painter/renderPage.d.ts +4 -5
- package/dist/layout-painter/renderPage.js +1 -1
- package/dist/layout-painter/renderPage.mjs +1 -1
- package/dist/managers/AutoSaveManager.d.mts +3 -4
- package/dist/managers/AutoSaveManager.d.ts +3 -4
- package/dist/managers/TableSelectionManager.d.mts +3 -4
- package/dist/managers/TableSelectionManager.d.ts +3 -4
- package/dist/managers/types.d.mts +3 -4
- package/dist/managers/types.d.ts +3 -4
- package/dist/{marks-CCPVlQzL.d.mts → marks-BY573yZn.d.mts} +1 -1
- package/dist/{marks-BujVxYP4.d.ts → marks-CjC9tF5k.d.ts} +1 -1
- package/dist/mcp-cli.mjs +24 -23
- package/dist/mcp.d.mts +3 -4
- package/dist/mcp.d.ts +3 -4
- package/dist/mcp.js +3 -3
- package/dist/mcp.mjs +1 -1
- package/dist/{nodes-BXi1Uu3e.d.mts → nodes-7753Bgi_.d.mts} +66 -3
- package/dist/{nodes-DfKj9kUA.d.ts → nodes-CC_nwkT_.d.ts} +66 -3
- package/dist/prosemirror/commands/formatting.d.mts +2 -2
- package/dist/prosemirror/commands/formatting.d.ts +2 -2
- package/dist/prosemirror/commands/formatting.js +1 -1
- package/dist/prosemirror/commands/formatting.mjs +1 -1
- package/dist/prosemirror/commands/index.d.mts +82 -8
- package/dist/prosemirror/commands/index.d.ts +82 -8
- package/dist/prosemirror/commands/index.js +1 -1
- package/dist/prosemirror/commands/index.mjs +1 -1
- package/dist/prosemirror/commands/paragraph.d.mts +1 -1
- package/dist/prosemirror/commands/paragraph.d.ts +1 -1
- package/dist/prosemirror/commands/paragraph.js +1 -1
- package/dist/prosemirror/commands/paragraph.mjs +1 -1
- package/dist/prosemirror/conversion/fromProseDoc.d.mts +3 -4
- package/dist/prosemirror/conversion/fromProseDoc.d.ts +3 -4
- package/dist/prosemirror/conversion/fromProseDoc.js +1 -1
- package/dist/prosemirror/conversion/fromProseDoc.mjs +1 -1
- package/dist/prosemirror/conversion/index.d.mts +11 -4
- package/dist/prosemirror/conversion/index.d.ts +11 -4
- package/dist/prosemirror/conversion/index.js +1 -1
- package/dist/prosemirror/conversion/index.mjs +1 -1
- package/dist/prosemirror/editor.css +155 -95
- package/dist/prosemirror/extensions/index.d.mts +1 -1
- package/dist/prosemirror/extensions/index.d.ts +1 -1
- package/dist/prosemirror/extensions/index.js +1 -1
- package/dist/prosemirror/extensions/index.mjs +1 -1
- package/dist/prosemirror/extensions/nodes/TableExtension.js +1 -1
- package/dist/prosemirror/extensions/nodes/TableExtension.mjs +1 -1
- package/dist/prosemirror/index.d.mts +5 -6
- package/dist/prosemirror/index.d.ts +5 -6
- package/dist/prosemirror/index.js +1 -1
- package/dist/prosemirror/index.mjs +1 -1
- package/dist/prosemirror/plugins/index.d.mts +122 -18
- package/dist/prosemirror/plugins/index.d.ts +122 -18
- package/dist/prosemirror/plugins/index.js +1 -1
- package/dist/prosemirror/plugins/index.mjs +1 -1
- package/dist/prosemirror/plugins/selectionTracker.d.mts +1 -1
- package/dist/prosemirror/plugins/selectionTracker.d.ts +1 -1
- package/dist/prosemirror/schema/index.d.mts +4 -5
- package/dist/prosemirror/schema/index.d.ts +4 -5
- package/dist/prosemirror/schema/index.js +1 -1
- package/dist/prosemirror/schema/index.mjs +1 -1
- package/dist/prosemirror/styles/index.d.mts +2 -2
- package/dist/prosemirror/styles/index.d.ts +2 -2
- package/dist/prosemirror/utils/extractTrackedChanges.d.mts +45 -23
- package/dist/prosemirror/utils/extractTrackedChanges.d.ts +45 -23
- package/dist/prosemirror/utils/extractTrackedChanges.js +1 -1
- package/dist/prosemirror/utils/extractTrackedChanges.mjs +1 -1
- package/dist/{selectionContext-85CE0f7a.d.ts → selectionContext-BPAqgNgk.d.ts} +1 -1
- package/dist/{selectionContext-Xq3AY7pn.d.mts → selectionContext-CoZat7QZ.d.mts} +1 -1
- package/dist/{styles-jqO45PSq.d.ts → styles-BBv7doYK.d.ts} +1 -1
- package/dist/{styles-BBoqh07F.d.mts → styles-EI2lxeEN.d.mts} +1 -1
- package/dist/types/agentApi.d.mts +1 -1
- package/dist/types/agentApi.d.ts +1 -1
- package/dist/types/content.d.mts +4 -1167
- package/dist/types/content.d.ts +4 -1167
- package/dist/types/document.d.mts +25 -8
- package/dist/types/document.d.ts +25 -8
- package/dist/utils/comments.d.mts +79 -6
- package/dist/utils/comments.d.ts +79 -6
- package/dist/utils/comments.js +1 -1
- package/dist/utils/comments.mjs +1 -1
- package/dist/utils/highlightColors.js +1 -1
- package/dist/utils/highlightColors.mjs +1 -1
- package/dist/utils/index.d.mts +5 -6
- package/dist/utils/index.d.ts +5 -6
- package/dist/utils/index.js +3 -3
- package/dist/utils/index.mjs +3 -3
- package/dist/{variableDetector-CAdt8yOr.d.mts → variableDetector-DF3-nxUC.d.mts} +1 -1
- package/dist/{variableDetector-W4XEN9YC.d.ts → variableDetector-sBkgVh3f.d.ts} +1 -1
- package/package.json +3 -3
- package/dist/chunk-2D3UPAMA.mjs +0 -1
- package/dist/chunk-2RCMY2GE.mjs +0 -1
- package/dist/chunk-3GNIP6IX.mjs +0 -4
- package/dist/chunk-44RUAQA2.js +0 -1
- package/dist/chunk-5N5DBQJV.mjs +0 -1
- package/dist/chunk-5TNMVXDS.mjs +0 -1
- package/dist/chunk-6DK4UBGM.js +0 -1
- package/dist/chunk-6LOYA7G5.mjs +0 -2
- package/dist/chunk-7VCMJCBY.js +0 -2
- package/dist/chunk-APFTVA4F.mjs +0 -1
- package/dist/chunk-BKHQA6JJ.js +0 -1
- package/dist/chunk-BOYVCOLZ.mjs +0 -1
- package/dist/chunk-BS35CXMN.js +0 -1
- package/dist/chunk-BTOBVF4I.mjs +0 -1
- package/dist/chunk-C6GSFUV2.js +0 -2
- package/dist/chunk-CP5OSG5Z.mjs +0 -1
- package/dist/chunk-CP767TWV.js +0 -1
- package/dist/chunk-DV6IEOP5.js +0 -4
- package/dist/chunk-IBNUQL57.mjs +0 -2
- package/dist/chunk-KBU6QQFU.js +0 -9
- package/dist/chunk-LDKESXXK.mjs +0 -3
- package/dist/chunk-LTYW3NLX.js +0 -59
- package/dist/chunk-NERY274X.js +0 -1
- package/dist/chunk-NMSU4MWP.mjs +0 -1
- package/dist/chunk-NNQWQOC5.mjs +0 -1
- package/dist/chunk-OLKDLRJ4.js +0 -1
- package/dist/chunk-P3AXSRLG.mjs +0 -1
- package/dist/chunk-P6RNOYAG.mjs +0 -2
- package/dist/chunk-R7RR6M4A.mjs +0 -2
- package/dist/chunk-RCS6UNIJ.mjs +0 -1
- package/dist/chunk-T5RYEG2V.js +0 -1
- package/dist/chunk-TRJWRZZD.js +0 -1
- package/dist/chunk-TYYOBPNK.js +0 -1
- package/dist/chunk-UCZVMHB5.mjs +0 -59
- package/dist/chunk-V435QKZB.js +0 -3
- package/dist/chunk-VQ2QGHYS.js +0 -2
- package/dist/chunk-WZP6ZHBR.js +0 -1
- package/dist/chunk-XDH55WXX.mjs +0 -1
- package/dist/chunk-Y5HZAMND.mjs +0 -9
- package/dist/chunk-YE357WVA.js +0 -1
- package/dist/chunk-YGHHSCPR.js +0 -2
- package/dist/lists-CdiIk_c1.d.ts +0 -142
- package/dist/lists-JDB80qyP.d.mts +0 -142
|
@@ -6,25 +6,22 @@
|
|
|
6
6
|
* for replace ops).
|
|
7
7
|
*
|
|
8
8
|
* Pure function — no React, no Vue, no side effects. Single O(N) walk
|
|
9
|
-
* over text nodes.
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* those. The subpath stays in `package.json` `exports` for back-compat;
|
|
16
|
-
* expect it to move behind a public surface in a future major.
|
|
9
|
+
* over text nodes. Consumers building custom sidebars should prefer the
|
|
10
|
+
* adapter-specific wrappers (`useTrackedChanges` in
|
|
11
|
+
* `@eigenpal/docx-editor-react/hooks` and
|
|
12
|
+
* `@eigenpal/docx-editor-vue/composables`), which add the memoization
|
|
13
|
+
* and reactivity layer. Reach for the core function directly for
|
|
14
|
+
* server-side analysis or test fixtures.
|
|
17
15
|
*
|
|
18
16
|
* @packageDocumentation
|
|
19
|
-
* @
|
|
17
|
+
* @public
|
|
20
18
|
*/
|
|
21
19
|
import { EditorState } from 'prosemirror-state';
|
|
22
20
|
import { TrackedChangeEntry } from '../../utils/comments.mjs';
|
|
23
|
-
import '../../
|
|
24
|
-
import '../../formatting-
|
|
21
|
+
import '../../content-5Mrz6w_b.mjs';
|
|
22
|
+
import '../../formatting-BH4hcZiq.mjs';
|
|
25
23
|
import '../../colors-C3vA7HUU.mjs';
|
|
26
24
|
import '../../docx/wrapTypes.mjs';
|
|
27
|
-
import '../../lists-JDB80qyP.mjs';
|
|
28
25
|
|
|
29
26
|
/**
|
|
30
27
|
* Walk the PM doc once and derive (a) the tracked-change list and (b) a
|
|
@@ -34,20 +31,22 @@ import '../../lists-JDB80qyP.mjs';
|
|
|
34
31
|
* for replace ops).
|
|
35
32
|
*
|
|
36
33
|
* Pure function — no React, no Vue, no side effects. Single O(N) walk
|
|
37
|
-
* over text nodes.
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
* those. The subpath stays in `package.json` `exports` for back-compat;
|
|
44
|
-
* expect it to move behind a public surface in a future major.
|
|
34
|
+
* over text nodes. Consumers building custom sidebars should prefer the
|
|
35
|
+
* adapter-specific wrappers (`useTrackedChanges` in
|
|
36
|
+
* `@eigenpal/docx-editor-react/hooks` and
|
|
37
|
+
* `@eigenpal/docx-editor-vue/composables`), which add the memoization
|
|
38
|
+
* and reactivity layer. Reach for the core function directly for
|
|
39
|
+
* server-side analysis or test fixtures.
|
|
45
40
|
*
|
|
46
41
|
* @packageDocumentation
|
|
47
|
-
* @
|
|
42
|
+
* @public
|
|
48
43
|
*/
|
|
49
44
|
|
|
50
|
-
/**
|
|
45
|
+
/**
|
|
46
|
+
* Output of {@link extractTrackedChanges}.
|
|
47
|
+
*
|
|
48
|
+
* @public
|
|
49
|
+
*/
|
|
51
50
|
interface TrackedChangesResult {
|
|
52
51
|
/** Tracked-change entries, sorted by document position, with adjacent same-revision entries merged. */
|
|
53
52
|
entries: TrackedChangeEntry[];
|
|
@@ -57,7 +56,30 @@ interface TrackedChangesResult {
|
|
|
57
56
|
*/
|
|
58
57
|
commentToRevision: Map<number, number>;
|
|
59
58
|
}
|
|
60
|
-
/**
|
|
59
|
+
/**
|
|
60
|
+
* Walk the PM doc and extract every tracked change as a flat list of
|
|
61
|
+
* `TrackedChangeEntry` plus a comment→revision overlap map. Adjacent
|
|
62
|
+
* inline marks coalesce by `(type, revisionId, author, date)`; a
|
|
63
|
+
* deletion immediately followed by an insertion (same author + same
|
|
64
|
+
* date) collapses into a single `replacement` entry; paragraph-mark
|
|
65
|
+
* cards (`paragraphMarkInsertion` / `paragraphMarkDeletion`) are
|
|
66
|
+
* hidden when an inline entry already covers their revision triple
|
|
67
|
+
* (one Accept clears every site of one conceptual change).
|
|
68
|
+
*
|
|
69
|
+
* Pure and deterministic. Returns `EMPTY_RESULT` on null state.
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* ```ts
|
|
73
|
+
* import { extractTrackedChanges } from '@eigenpal/docx-editor-core/prosemirror/utils/extractTrackedChanges';
|
|
74
|
+
*
|
|
75
|
+
* const { entries, commentToRevision } = extractTrackedChanges(view.state);
|
|
76
|
+
* for (const e of entries) {
|
|
77
|
+
* console.log(e.type, e.author, e.text);
|
|
78
|
+
* }
|
|
79
|
+
* ```
|
|
80
|
+
*
|
|
81
|
+
* @public
|
|
82
|
+
*/
|
|
61
83
|
declare function extractTrackedChanges(state: EditorState | null): TrackedChangesResult;
|
|
62
84
|
|
|
63
85
|
export { type TrackedChangesResult, extractTrackedChanges };
|
|
@@ -6,25 +6,22 @@
|
|
|
6
6
|
* for replace ops).
|
|
7
7
|
*
|
|
8
8
|
* Pure function — no React, no Vue, no side effects. Single O(N) walk
|
|
9
|
-
* over text nodes.
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* those. The subpath stays in `package.json` `exports` for back-compat;
|
|
16
|
-
* expect it to move behind a public surface in a future major.
|
|
9
|
+
* over text nodes. Consumers building custom sidebars should prefer the
|
|
10
|
+
* adapter-specific wrappers (`useTrackedChanges` in
|
|
11
|
+
* `@eigenpal/docx-editor-react/hooks` and
|
|
12
|
+
* `@eigenpal/docx-editor-vue/composables`), which add the memoization
|
|
13
|
+
* and reactivity layer. Reach for the core function directly for
|
|
14
|
+
* server-side analysis or test fixtures.
|
|
17
15
|
*
|
|
18
16
|
* @packageDocumentation
|
|
19
|
-
* @
|
|
17
|
+
* @public
|
|
20
18
|
*/
|
|
21
19
|
import { EditorState } from 'prosemirror-state';
|
|
22
20
|
import { TrackedChangeEntry } from '../../utils/comments.js';
|
|
23
|
-
import '../../
|
|
24
|
-
import '../../formatting-
|
|
21
|
+
import '../../content-CmqAwdFL.js';
|
|
22
|
+
import '../../formatting-_OXU8gLB.js';
|
|
25
23
|
import '../../colors-C3vA7HUU.js';
|
|
26
24
|
import '../../docx/wrapTypes.js';
|
|
27
|
-
import '../../lists-CdiIk_c1.js';
|
|
28
25
|
|
|
29
26
|
/**
|
|
30
27
|
* Walk the PM doc once and derive (a) the tracked-change list and (b) a
|
|
@@ -34,20 +31,22 @@ import '../../lists-CdiIk_c1.js';
|
|
|
34
31
|
* for replace ops).
|
|
35
32
|
*
|
|
36
33
|
* Pure function — no React, no Vue, no side effects. Single O(N) walk
|
|
37
|
-
* over text nodes.
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
* those. The subpath stays in `package.json` `exports` for back-compat;
|
|
44
|
-
* expect it to move behind a public surface in a future major.
|
|
34
|
+
* over text nodes. Consumers building custom sidebars should prefer the
|
|
35
|
+
* adapter-specific wrappers (`useTrackedChanges` in
|
|
36
|
+
* `@eigenpal/docx-editor-react/hooks` and
|
|
37
|
+
* `@eigenpal/docx-editor-vue/composables`), which add the memoization
|
|
38
|
+
* and reactivity layer. Reach for the core function directly for
|
|
39
|
+
* server-side analysis or test fixtures.
|
|
45
40
|
*
|
|
46
41
|
* @packageDocumentation
|
|
47
|
-
* @
|
|
42
|
+
* @public
|
|
48
43
|
*/
|
|
49
44
|
|
|
50
|
-
/**
|
|
45
|
+
/**
|
|
46
|
+
* Output of {@link extractTrackedChanges}.
|
|
47
|
+
*
|
|
48
|
+
* @public
|
|
49
|
+
*/
|
|
51
50
|
interface TrackedChangesResult {
|
|
52
51
|
/** Tracked-change entries, sorted by document position, with adjacent same-revision entries merged. */
|
|
53
52
|
entries: TrackedChangeEntry[];
|
|
@@ -57,7 +56,30 @@ interface TrackedChangesResult {
|
|
|
57
56
|
*/
|
|
58
57
|
commentToRevision: Map<number, number>;
|
|
59
58
|
}
|
|
60
|
-
/**
|
|
59
|
+
/**
|
|
60
|
+
* Walk the PM doc and extract every tracked change as a flat list of
|
|
61
|
+
* `TrackedChangeEntry` plus a comment→revision overlap map. Adjacent
|
|
62
|
+
* inline marks coalesce by `(type, revisionId, author, date)`; a
|
|
63
|
+
* deletion immediately followed by an insertion (same author + same
|
|
64
|
+
* date) collapses into a single `replacement` entry; paragraph-mark
|
|
65
|
+
* cards (`paragraphMarkInsertion` / `paragraphMarkDeletion`) are
|
|
66
|
+
* hidden when an inline entry already covers their revision triple
|
|
67
|
+
* (one Accept clears every site of one conceptual change).
|
|
68
|
+
*
|
|
69
|
+
* Pure and deterministic. Returns `EMPTY_RESULT` on null state.
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* ```ts
|
|
73
|
+
* import { extractTrackedChanges } from '@eigenpal/docx-editor-core/prosemirror/utils/extractTrackedChanges';
|
|
74
|
+
*
|
|
75
|
+
* const { entries, commentToRevision } = extractTrackedChanges(view.state);
|
|
76
|
+
* for (const e of entries) {
|
|
77
|
+
* console.log(e.type, e.author, e.text);
|
|
78
|
+
* }
|
|
79
|
+
* ```
|
|
80
|
+
*
|
|
81
|
+
* @public
|
|
82
|
+
*/
|
|
61
83
|
declare function extractTrackedChanges(state: EditorState | null): TrackedChangesResult;
|
|
62
84
|
|
|
63
85
|
export { type TrackedChangesResult, extractTrackedChanges };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';require('../../chunk-DC7S76ZX.js');var
|
|
1
|
+
'use strict';require('../../chunk-DC7S76ZX.js');var B={entries:[],commentToRevision:new Map};function O(S){if(!S)return B;let{doc:K,schema:v}=S,b=v.marks.insertion,g=v.marks.deletion,w=v.marks.comment;if(!b&&!g)return B;let d=[],C=new Map;K.descendants((e,t)=>{if(e.type.name==="paragraph"){let r=e.attrs.pPrIns,i=e.attrs.pPrDel;r&&d.push({type:"paragraphMarkInsertion",text:e.textContent||"",author:r.author||"",date:r.date??void 0,from:t,to:t+e.nodeSize,revisionId:r.revisionId}),i&&d.push({type:"paragraphMarkDeletion",text:e.textContent||"",author:i.author||"",date:i.date??void 0,from:t,to:t+e.nodeSize,revisionId:i.revisionId});let o=e.attrs.pPrChange;if(Array.isArray(o))for(let a of o)d.push({type:"paragraphPropertiesChanged",text:e.textContent||"",author:a.info.author||"",date:a.info.date??void 0,from:t,to:t+e.nodeSize,revisionId:a.info.id});}if(e.type.name==="tableRow"){let r=e.attrs.trIns,i=e.attrs.trDel;r&&d.push({type:"rowInserted",text:e.textContent||"",author:r.author||"",date:r.date??void 0,from:t,to:t+e.nodeSize,revisionId:r.revisionId}),i&&d.push({type:"rowDeleted",text:e.textContent||"",author:i.author||"",date:i.date??void 0,from:t,to:t+e.nodeSize,revisionId:i.revisionId});let o=e.attrs.trPrChange;if(Array.isArray(o))for(let a of o)!a?.info||typeof a.info.id!="number"||d.push({type:"rowPropertiesChanged",text:e.textContent||"",author:a.info.author||"",date:a.info.date??void 0,from:t,to:t+e.nodeSize,revisionId:a.info.id});}if(e.type.name==="tableCell"||e.type.name==="tableHeader"){let r=e.attrs.cellMarker;if(r?.info&&typeof r.info.revisionId=="number"){let a={ins:"cellInserted",del:"cellDeleted",merge:"cellMerged"}[r.kind];a&&d.push({type:a,text:e.textContent||"",author:r.info.author||"",date:r.info.date??void 0,from:t,to:t+e.nodeSize,revisionId:r.info.revisionId});}let i=e.attrs.tcPrChange;if(Array.isArray(i))for(let o of i)!o?.info||typeof o.info.id!="number"||d.push({type:"cellPropertiesChanged",text:e.textContent||"",author:o.info.author||"",date:o.info.date??void 0,from:t,to:t+e.nodeSize,revisionId:o.info.id});}if(e.type.name==="table"){let r=e.attrs.tblPrChange;if(Array.isArray(r))for(let l of r)!l?.info||typeof l.info.id!="number"||d.push({type:"tablePropertiesChanged",text:"",author:l.info.author||"",date:l.info.date??void 0,from:t,to:t+e.nodeSize,revisionId:l.info.id});let i=e.firstChild,o=i?.attrs.trIns,a=i?.attrs.trDel,x=o?"trIns":a?"trDel":null;if(x){let l=o??a,R=true,M=[];if(e.forEach(p=>{if(p.type.name!=="tableRow"){R=false;return}let c=p.attrs[x];if(!c||(c.author??"")!==(l.author??"")||(c.date??null)!==(l.date??null)){R=false;return}M.push(c.revisionId);}),R){let p="";g?e.descendants(h=>{h.isText&&!h.marks.some(P=>P.type===g)&&(p+=h.text||"");}):p=e.textContent||"";let c=l.revisionId,A=M.filter((h,P)=>h!==c&&M.indexOf(h)===P);d.push({type:x==="trIns"?"tableInserted":"tableDeleted",text:p,author:l.author||"",date:l.date??void 0,from:t,to:t+e.nodeSize,revisionId:c,...A.length>0?{coalescedRevisionIds:A}:{}});}}}if(!e.isInline)return;let n=e.isText?e.text||"":e.type.name==="image"?e.attrs.alt||"image":e.type.name,s=null;for(let r of e.marks)(r.type===b||r.type===g)&&(d.push({type:r.type===b?"insertion":"deletion",text:n,author:r.attrs.author||"",date:r.attrs.date,from:t,to:t+e.nodeSize,revisionId:r.attrs.revisionId}),s=r);if(w&&s){let r=e.marks.find(i=>i.type===w);if(r){let i=r.attrs.commentId,o=s.attrs.revisionId;C.has(i)||C.set(i,o);}}});let k={tableInserted:6,tableDeleted:6,tablePropertiesChanged:5,rowInserted:4,rowDeleted:4,rowPropertiesChanged:4,cellInserted:3,cellDeleted:3,cellMerged:3,cellPropertiesChanged:3,paragraphMarkInsertion:2,paragraphMarkDeletion:2,paragraphPropertiesChanged:2},U=e=>e in k,E=new Map,f=[],T=(e,t)=>{let n=new Set(e.coalescedRevisionIds??[]);for(let s of t.coalescedRevisionIds??[])n.add(s);return n.add(t.revisionId),n.delete(e.revisionId),[...n]};for(let e of d){if(!U(e.type)){f.push(e);continue}let t=`${e.author}|${e.date??""}`,n=E.get(t);if(n===void 0){E.set(t,f.push(e)-1);continue}let s=f[n],r=k[e.type]??0,i=k[s.type]??0;r>i?f[n]={...e,coalescedRevisionIds:T(e,s)}:f[n]={...s,coalescedRevisionIds:T(s,e)};}let D=new Map,y=[];for(let e of f){if(!(e.type==="insertion"||e.type==="deletion")){y.push({...e});continue}let n=`${e.type}|${e.author}|${e.date??""}`,s=D.get(n);if(s){let r=s.to===e.from?"":" ";if(s.text+=r+e.text,s.to=e.to,e.revisionId!==s.revisionId){let i=new Set(s.coalescedRevisionIds??[]);for(let o of e.coalescedRevisionIds??[])i.add(o);i.add(e.revisionId),i.delete(s.revisionId),s.coalescedRevisionIds=i.size>0?[...i]:void 0;}}else {let r={...e};D.set(n,r),y.push(r);}}let u=[];for(let e=0;e<y.length;e++){let t=y[e],n=y[e+1];t.type==="deletion"&&n&&n.type==="insertion"&&t.author===n.author&&t.date===n.date&&t.to===n.from?(u.push({type:"replacement",text:n.text,deletedText:t.text,author:t.author,date:t.date,from:t.from,to:n.to,revisionId:t.revisionId,insertionRevisionId:n.revisionId}),e++):u.push(t);}let I=new Map;for(let e of u)if(e.type==="insertion"||e.type==="deletion"||e.type==="replacement"){let t=`${e.author}|${e.date??""}`;I.has(t)||I.set(t,e);}for(let e of u){if(e.type!=="paragraphMarkInsertion"&&e.type!=="paragraphMarkDeletion")continue;let t=I.get(`${e.author}|${e.date??""}`);if(!t)continue;let n=new Set(t.coalescedRevisionIds??[]);for(let s of e.coalescedRevisionIds??[])n.add(s);n.add(e.revisionId),n.delete(t.revisionId),t.type==="replacement"&&t.insertionRevisionId!=null&&n.delete(t.insertionRevisionId),t.coalescedRevisionIds=n.size>0?[...n]:void 0;}let z=new Set,m=new Map;for(let e of u){if(e.type!=="tableInserted"&&e.type!=="tableDeleted")continue;let t=`${e.author}|${e.date??""}`;e.text.trim().length>0||(z.add(e),m.has(t)||m.set(t,e));}for(let e of u){if(e.type!=="paragraphMarkInsertion"&&e.type!=="paragraphMarkDeletion")continue;let t=m.get(`${e.author}|${e.date??""}`);if(!t)continue;let n=new Set(t.coalescedRevisionIds??[]);for(let s of e.coalescedRevisionIds??[])n.add(s);n.add(e.revisionId),n.delete(t.revisionId),t.coalescedRevisionIds=n.size>0?[...n]:void 0;}let H=u.filter(e=>e.type==="insertion"||e.type==="replacement"),$=new Set;for(let e of u){if(e.type!=="paragraphPropertiesChanged")continue;let t=H.find(s=>s.author===e.author&&s.from<e.to&&e.from<s.to);if(!t)continue;let n=new Set(T(t,e));t.type==="replacement"&&t.insertionRevisionId!=null&&n.delete(t.insertionRevisionId),t.coalescedRevisionIds=n.size>0?[...n]:void 0,$.add(e);}return {entries:u.filter(e=>{let t=`${e.author}|${e.date??""}`;return e.type==="tableInserted"||e.type==="tableDeleted"?z.has(e):e.type==="paragraphMarkInsertion"||e.type==="paragraphMarkDeletion"?!I.has(t)&&!m.has(t):e.type==="paragraphPropertiesChanged"?!$.has(e):e.type==="insertion"||e.type==="deletion"||e.type==="replacement"?!m.has(t):true}),commentToRevision:C}}exports.extractTrackedChanges=O;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import'../../chunk-QYUPLKLP.mjs';var
|
|
1
|
+
import'../../chunk-QYUPLKLP.mjs';var B={entries:[],commentToRevision:new Map};function O(S){if(!S)return B;let{doc:K,schema:v}=S,b=v.marks.insertion,g=v.marks.deletion,w=v.marks.comment;if(!b&&!g)return B;let d=[],C=new Map;K.descendants((e,t)=>{if(e.type.name==="paragraph"){let r=e.attrs.pPrIns,i=e.attrs.pPrDel;r&&d.push({type:"paragraphMarkInsertion",text:e.textContent||"",author:r.author||"",date:r.date??void 0,from:t,to:t+e.nodeSize,revisionId:r.revisionId}),i&&d.push({type:"paragraphMarkDeletion",text:e.textContent||"",author:i.author||"",date:i.date??void 0,from:t,to:t+e.nodeSize,revisionId:i.revisionId});let o=e.attrs.pPrChange;if(Array.isArray(o))for(let a of o)d.push({type:"paragraphPropertiesChanged",text:e.textContent||"",author:a.info.author||"",date:a.info.date??void 0,from:t,to:t+e.nodeSize,revisionId:a.info.id});}if(e.type.name==="tableRow"){let r=e.attrs.trIns,i=e.attrs.trDel;r&&d.push({type:"rowInserted",text:e.textContent||"",author:r.author||"",date:r.date??void 0,from:t,to:t+e.nodeSize,revisionId:r.revisionId}),i&&d.push({type:"rowDeleted",text:e.textContent||"",author:i.author||"",date:i.date??void 0,from:t,to:t+e.nodeSize,revisionId:i.revisionId});let o=e.attrs.trPrChange;if(Array.isArray(o))for(let a of o)!a?.info||typeof a.info.id!="number"||d.push({type:"rowPropertiesChanged",text:e.textContent||"",author:a.info.author||"",date:a.info.date??void 0,from:t,to:t+e.nodeSize,revisionId:a.info.id});}if(e.type.name==="tableCell"||e.type.name==="tableHeader"){let r=e.attrs.cellMarker;if(r?.info&&typeof r.info.revisionId=="number"){let a={ins:"cellInserted",del:"cellDeleted",merge:"cellMerged"}[r.kind];a&&d.push({type:a,text:e.textContent||"",author:r.info.author||"",date:r.info.date??void 0,from:t,to:t+e.nodeSize,revisionId:r.info.revisionId});}let i=e.attrs.tcPrChange;if(Array.isArray(i))for(let o of i)!o?.info||typeof o.info.id!="number"||d.push({type:"cellPropertiesChanged",text:e.textContent||"",author:o.info.author||"",date:o.info.date??void 0,from:t,to:t+e.nodeSize,revisionId:o.info.id});}if(e.type.name==="table"){let r=e.attrs.tblPrChange;if(Array.isArray(r))for(let l of r)!l?.info||typeof l.info.id!="number"||d.push({type:"tablePropertiesChanged",text:"",author:l.info.author||"",date:l.info.date??void 0,from:t,to:t+e.nodeSize,revisionId:l.info.id});let i=e.firstChild,o=i?.attrs.trIns,a=i?.attrs.trDel,x=o?"trIns":a?"trDel":null;if(x){let l=o??a,R=true,M=[];if(e.forEach(p=>{if(p.type.name!=="tableRow"){R=false;return}let c=p.attrs[x];if(!c||(c.author??"")!==(l.author??"")||(c.date??null)!==(l.date??null)){R=false;return}M.push(c.revisionId);}),R){let p="";g?e.descendants(h=>{h.isText&&!h.marks.some(P=>P.type===g)&&(p+=h.text||"");}):p=e.textContent||"";let c=l.revisionId,A=M.filter((h,P)=>h!==c&&M.indexOf(h)===P);d.push({type:x==="trIns"?"tableInserted":"tableDeleted",text:p,author:l.author||"",date:l.date??void 0,from:t,to:t+e.nodeSize,revisionId:c,...A.length>0?{coalescedRevisionIds:A}:{}});}}}if(!e.isInline)return;let n=e.isText?e.text||"":e.type.name==="image"?e.attrs.alt||"image":e.type.name,s=null;for(let r of e.marks)(r.type===b||r.type===g)&&(d.push({type:r.type===b?"insertion":"deletion",text:n,author:r.attrs.author||"",date:r.attrs.date,from:t,to:t+e.nodeSize,revisionId:r.attrs.revisionId}),s=r);if(w&&s){let r=e.marks.find(i=>i.type===w);if(r){let i=r.attrs.commentId,o=s.attrs.revisionId;C.has(i)||C.set(i,o);}}});let k={tableInserted:6,tableDeleted:6,tablePropertiesChanged:5,rowInserted:4,rowDeleted:4,rowPropertiesChanged:4,cellInserted:3,cellDeleted:3,cellMerged:3,cellPropertiesChanged:3,paragraphMarkInsertion:2,paragraphMarkDeletion:2,paragraphPropertiesChanged:2},U=e=>e in k,E=new Map,f=[],T=(e,t)=>{let n=new Set(e.coalescedRevisionIds??[]);for(let s of t.coalescedRevisionIds??[])n.add(s);return n.add(t.revisionId),n.delete(e.revisionId),[...n]};for(let e of d){if(!U(e.type)){f.push(e);continue}let t=`${e.author}|${e.date??""}`,n=E.get(t);if(n===void 0){E.set(t,f.push(e)-1);continue}let s=f[n],r=k[e.type]??0,i=k[s.type]??0;r>i?f[n]={...e,coalescedRevisionIds:T(e,s)}:f[n]={...s,coalescedRevisionIds:T(s,e)};}let D=new Map,y=[];for(let e of f){if(!(e.type==="insertion"||e.type==="deletion")){y.push({...e});continue}let n=`${e.type}|${e.author}|${e.date??""}`,s=D.get(n);if(s){let r=s.to===e.from?"":" ";if(s.text+=r+e.text,s.to=e.to,e.revisionId!==s.revisionId){let i=new Set(s.coalescedRevisionIds??[]);for(let o of e.coalescedRevisionIds??[])i.add(o);i.add(e.revisionId),i.delete(s.revisionId),s.coalescedRevisionIds=i.size>0?[...i]:void 0;}}else {let r={...e};D.set(n,r),y.push(r);}}let u=[];for(let e=0;e<y.length;e++){let t=y[e],n=y[e+1];t.type==="deletion"&&n&&n.type==="insertion"&&t.author===n.author&&t.date===n.date&&t.to===n.from?(u.push({type:"replacement",text:n.text,deletedText:t.text,author:t.author,date:t.date,from:t.from,to:n.to,revisionId:t.revisionId,insertionRevisionId:n.revisionId}),e++):u.push(t);}let I=new Map;for(let e of u)if(e.type==="insertion"||e.type==="deletion"||e.type==="replacement"){let t=`${e.author}|${e.date??""}`;I.has(t)||I.set(t,e);}for(let e of u){if(e.type!=="paragraphMarkInsertion"&&e.type!=="paragraphMarkDeletion")continue;let t=I.get(`${e.author}|${e.date??""}`);if(!t)continue;let n=new Set(t.coalescedRevisionIds??[]);for(let s of e.coalescedRevisionIds??[])n.add(s);n.add(e.revisionId),n.delete(t.revisionId),t.type==="replacement"&&t.insertionRevisionId!=null&&n.delete(t.insertionRevisionId),t.coalescedRevisionIds=n.size>0?[...n]:void 0;}let z=new Set,m=new Map;for(let e of u){if(e.type!=="tableInserted"&&e.type!=="tableDeleted")continue;let t=`${e.author}|${e.date??""}`;e.text.trim().length>0||(z.add(e),m.has(t)||m.set(t,e));}for(let e of u){if(e.type!=="paragraphMarkInsertion"&&e.type!=="paragraphMarkDeletion")continue;let t=m.get(`${e.author}|${e.date??""}`);if(!t)continue;let n=new Set(t.coalescedRevisionIds??[]);for(let s of e.coalescedRevisionIds??[])n.add(s);n.add(e.revisionId),n.delete(t.revisionId),t.coalescedRevisionIds=n.size>0?[...n]:void 0;}let H=u.filter(e=>e.type==="insertion"||e.type==="replacement"),$=new Set;for(let e of u){if(e.type!=="paragraphPropertiesChanged")continue;let t=H.find(s=>s.author===e.author&&s.from<e.to&&e.from<s.to);if(!t)continue;let n=new Set(T(t,e));t.type==="replacement"&&t.insertionRevisionId!=null&&n.delete(t.insertionRevisionId),t.coalescedRevisionIds=n.size>0?[...n]:void 0,$.add(e);}return {entries:u.filter(e=>{let t=`${e.author}|${e.date??""}`;return e.type==="tableInserted"||e.type==="tableDeleted"?z.has(e):e.type==="paragraphMarkInsertion"||e.type==="paragraphMarkDeletion"?!I.has(t)&&!m.has(t):e.type==="paragraphPropertiesChanged"?!$.has(e):e.type==="insertion"||e.type==="deletion"||e.type==="replacement"?!m.has(t):true}),commentToRevision:C}}export{O as extractTrackedChanges};
|
|
@@ -2,7 +2,7 @@ import { Document } from './types/document.js';
|
|
|
2
2
|
import { StyleInfo, AgentContext, Position, Range, AgentCommand, SelectionContext } from './types/agentApi.js';
|
|
3
3
|
import { S as SelectiveSaveOptions } from './selectiveSave-CWaPEv0B.js';
|
|
4
4
|
import { D as DocxInput } from './docxInput-DTbCa48g.js';
|
|
5
|
-
import { T as TextFormatting, P as ParagraphFormatting } from './formatting-
|
|
5
|
+
import { T as TextFormatting, P as ParagraphFormatting } from './formatting-_OXU8gLB.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* DocumentAgent - High-level fluent API for programmatic document manipulation
|
|
@@ -2,7 +2,7 @@ import { Document } from './types/document.mjs';
|
|
|
2
2
|
import { StyleInfo, AgentContext, Position, Range, AgentCommand, SelectionContext } from './types/agentApi.mjs';
|
|
3
3
|
import { S as SelectiveSaveOptions } from './selectiveSave-jinP_4xa.mjs';
|
|
4
4
|
import { D as DocxInput } from './docxInput-DTbCa48g.mjs';
|
|
5
|
-
import { T as TextFormatting, P as ParagraphFormatting } from './formatting-
|
|
5
|
+
import { T as TextFormatting, P as ParagraphFormatting } from './formatting-BH4hcZiq.mjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* DocumentAgent - High-level fluent API for programmatic document manipulation
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as TextFormatting, P as ParagraphFormatting,
|
|
1
|
+
import { T as TextFormatting, P as ParagraphFormatting, a as TableFormatting, b as TableRowFormatting, c as TableCellFormatting } from './formatting-_OXU8gLB.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Styles, Theme, Font Table, Relationships & Media Types
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as TextFormatting, P as ParagraphFormatting,
|
|
1
|
+
import { T as TextFormatting, P as ParagraphFormatting, a as TableFormatting, b as TableRowFormatting, c as TableCellFormatting } from './formatting-BH4hcZiq.mjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Styles, Theme, Font Table, Relationships & Media Types
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @packageDocumentation
|
|
9
9
|
* @public
|
|
10
10
|
*/
|
|
11
|
-
import { T as TextFormatting, P as ParagraphFormatting } from '../formatting-
|
|
11
|
+
import { T as TextFormatting, P as ParagraphFormatting } from '../formatting-BH4hcZiq.mjs';
|
|
12
12
|
import '../colors-C3vA7HUU.mjs';
|
|
13
13
|
|
|
14
14
|
/**
|
package/dist/types/agentApi.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @packageDocumentation
|
|
9
9
|
* @public
|
|
10
10
|
*/
|
|
11
|
-
import { T as TextFormatting, P as ParagraphFormatting } from '../formatting-
|
|
11
|
+
import { T as TextFormatting, P as ParagraphFormatting } from '../formatting-_OXU8gLB.js';
|
|
12
12
|
import '../colors-C3vA7HUU.js';
|
|
13
13
|
|
|
14
14
|
/**
|