pptx-viewer-mcp 2.5.4 → 2.5.6
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/CHANGELOG.md +9 -0
- package/dist/codec/index.js +10 -1
- package/dist/codec/index.mjs +10 -1
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,15 @@ A release listed with no entries carried no Conventional Commit in this package'
|
|
|
7
7
|
scope: scripts/release-plan.mjs re-releases a package whenever any of its files
|
|
8
8
|
change, not only on conventional ones.
|
|
9
9
|
|
|
10
|
+
## [2.5.5](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-viewer-mcp@2.5.5) - 2026-09-19
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
- **tools:** Follow pptx-viewer-core to ^4.0.0 (by @ChristopherVR) ([3bfc2c6](https://github.com/ChristopherVR/pptx-viewer/commit/3bfc2c6a7be54365a9d4dfe1887b1467fd41045f))
|
|
15
|
+
- **collaboration:** Preserve paragraph formatting across sync (by @Sudhansh6) ([3c132ee](https://github.com/ChristopherVR/pptx-viewer/commit/3c132ee636c8c248175252a075898f73b0a54f02))
|
|
16
|
+
|
|
17
|
+
## [2.5.4](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-viewer-mcp@2.5.4) - 2026-09-18
|
|
18
|
+
|
|
10
19
|
## [2.5.3](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-viewer-mcp@2.5.3) - 2026-09-17
|
|
11
20
|
|
|
12
21
|
### Bug Fixes
|
package/dist/codec/index.js
CHANGED
|
@@ -31,6 +31,9 @@ function buildAttrs(seg) {
|
|
|
31
31
|
if (seg.endParaRunProperties) {
|
|
32
32
|
a.pr = JSON.stringify(seg.endParaRunProperties);
|
|
33
33
|
}
|
|
34
|
+
if (seg.paragraphProperties) {
|
|
35
|
+
a.pp = JSON.stringify(seg.paragraphProperties);
|
|
36
|
+
}
|
|
34
37
|
if (typeof seg.fieldType === "string") {
|
|
35
38
|
a.ft = seg.fieldType;
|
|
36
39
|
}
|
|
@@ -70,7 +73,7 @@ function encodeTextBodyToYText(segments, ytext) {
|
|
|
70
73
|
let offset = 0;
|
|
71
74
|
for (const raw of segments) {
|
|
72
75
|
const seg = raw;
|
|
73
|
-
const attrs = buildAttrs(seg);
|
|
76
|
+
const attrs = buildAttrs(seg) ?? {};
|
|
74
77
|
if (seg.isParagraphBreak === true || seg.isLineBreak === true) {
|
|
75
78
|
ytext.insert(offset, "\n", attrs);
|
|
76
79
|
offset += 1;
|
|
@@ -121,6 +124,12 @@ function decodeTextBodyFromYText(ytext) {
|
|
|
121
124
|
} catch {
|
|
122
125
|
}
|
|
123
126
|
}
|
|
127
|
+
if (a.pp) {
|
|
128
|
+
try {
|
|
129
|
+
seg.paragraphProperties = JSON.parse(a.pp);
|
|
130
|
+
} catch {
|
|
131
|
+
}
|
|
132
|
+
}
|
|
124
133
|
if (a.ft) {
|
|
125
134
|
seg.fieldType = a.ft;
|
|
126
135
|
}
|
package/dist/codec/index.mjs
CHANGED
|
@@ -29,6 +29,9 @@ function buildAttrs(seg) {
|
|
|
29
29
|
if (seg.endParaRunProperties) {
|
|
30
30
|
a.pr = JSON.stringify(seg.endParaRunProperties);
|
|
31
31
|
}
|
|
32
|
+
if (seg.paragraphProperties) {
|
|
33
|
+
a.pp = JSON.stringify(seg.paragraphProperties);
|
|
34
|
+
}
|
|
32
35
|
if (typeof seg.fieldType === "string") {
|
|
33
36
|
a.ft = seg.fieldType;
|
|
34
37
|
}
|
|
@@ -68,7 +71,7 @@ function encodeTextBodyToYText(segments, ytext) {
|
|
|
68
71
|
let offset = 0;
|
|
69
72
|
for (const raw of segments) {
|
|
70
73
|
const seg = raw;
|
|
71
|
-
const attrs = buildAttrs(seg);
|
|
74
|
+
const attrs = buildAttrs(seg) ?? {};
|
|
72
75
|
if (seg.isParagraphBreak === true || seg.isLineBreak === true) {
|
|
73
76
|
ytext.insert(offset, "\n", attrs);
|
|
74
77
|
offset += 1;
|
|
@@ -119,6 +122,12 @@ function decodeTextBodyFromYText(ytext) {
|
|
|
119
122
|
} catch {
|
|
120
123
|
}
|
|
121
124
|
}
|
|
125
|
+
if (a.pp) {
|
|
126
|
+
try {
|
|
127
|
+
seg.paragraphProperties = JSON.parse(a.pp);
|
|
128
|
+
} catch {
|
|
129
|
+
}
|
|
130
|
+
}
|
|
122
131
|
if (a.ft) {
|
|
123
132
|
seg.fieldType = a.ft;
|
|
124
133
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pptx-viewer-mcp",
|
|
3
|
-
"version": "2.5.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "2.5.6",
|
|
4
|
+
"description": "pptx-viewer MCP server and tools: manipulate, convert, and collaborate on PowerPoint .pptx files from AI agents.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
7
7
|
"collaboration",
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"powerpoint",
|
|
13
13
|
"ppt",
|
|
14
14
|
"pptx",
|
|
15
|
+
"pptx-viewer",
|
|
15
16
|
"presentation",
|
|
16
17
|
"tools"
|
|
17
18
|
],
|
|
@@ -72,7 +73,7 @@
|
|
|
72
73
|
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
73
74
|
"fast-xml-parser": "^5.11.1",
|
|
74
75
|
"jszip": "^3.10.2",
|
|
75
|
-
"pptx-viewer-core": "^4.
|
|
76
|
+
"pptx-viewer-core": "^4.6.0",
|
|
76
77
|
"zod": ">=4.4.3 <4.5.3"
|
|
77
78
|
},
|
|
78
79
|
"devDependencies": {
|