pptx-viewer-mcp 1.2.1 → 1.3.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/CHANGELOG.md +13 -0
- package/README.md +2 -0
- package/dist/codec/index.d.ts +18 -17
- package/dist/codec/index.d.ts.map +1 -0
- package/dist/index.d.ts +584 -563
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -3
- package/dist/index.mjs +6 -3
- package/dist/mcp/index.d.ts +1 -1
- package/dist/mcp/index.js +6 -3
- package/dist/mcp/index.mjs +6 -3
- package/dist/schemas/index.d.ts +499 -483
- package/dist/schemas/index.d.ts.map +1 -0
- package/package.json +5 -4
- package/dist/codec/index.d.mts +0 -57
- package/dist/index.d.mts +0 -862
- package/dist/mcp/index.d.mts +0 -1
- package/dist/schemas/index.d.mts +0 -576
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,19 @@ All notable changes to this project are documented here.
|
|
|
4
4
|
This file is generated from [Conventional Commits](https://www.conventionalcommits.org)
|
|
5
5
|
by [git-cliff](https://git-cliff.org); do not edit it by hand.
|
|
6
6
|
|
|
7
|
+
## [1.2.2](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-viewer-mcp@1.2.2) - 2026-07-13
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
- **build:** Restore compatibility after dependency updates (by @ChristopherVR) ([ddbfae6](https://github.com/ChristopherVR/pptx-viewer/commit/ddbfae687669b9e6c64fd3c3b16a592623b79c10))
|
|
12
|
+
|
|
13
|
+
### Dependencies
|
|
14
|
+
|
|
15
|
+
- **deps:** Update fast-xml-parser to 5.10.0 (by @dependabot[bot]) ([6080273](https://github.com/ChristopherVR/pptx-viewer/commit/6080273f6a6f603d10d69a71d54faad1e6d9bf05))
|
|
16
|
+
- **deps:** Update typescript to 7.0.2 (by @dependabot[bot]) ([0a7c1f1](https://github.com/ChristopherVR/pptx-viewer/commit/0a7c1f1f7f0ccdee9537f1e11177b6a39839d221))
|
|
17
|
+
|
|
18
|
+
## [1.2.1](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-viewer-mcp@1.2.1) - 2026-07-11
|
|
19
|
+
|
|
7
20
|
## [1.2.0](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-viewer-mcp@1.2.0) - 2026-07-06
|
|
8
21
|
|
|
9
22
|
## [1.1.26](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-viewer-mcp@1.1.26) - 2026-06-21
|
package/README.md
CHANGED
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
Edit PowerPoint files from an AI agent. It ships a ready-to-run [MCP](https://modelcontextprotocol.io) server that gives an agent 25 PowerPoint editing tools (for example "add a slide" or "replace text"). The same tools are also available as plain functions you can call yourself, along with their Zod input schemas and a codec for real-time collaboration (Y.Doc). The [`pptx-viewer-core`](https://www.npmjs.com/package/pptx-viewer-core) engine is bundled in, so a single install gives you everything and you never install the core separately.
|
|
7
7
|
|
|
8
|
+

|
|
9
|
+
|
|
8
10
|
- **Live demo:** https://christophervr.github.io/pptx-viewer/demo/
|
|
9
11
|
- **Docs:** https://christophervr.github.io/pptx-viewer/
|
|
10
12
|
|
package/dist/codec/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Doc } from
|
|
2
|
-
|
|
1
|
+
import { Doc } from "yjs";
|
|
2
|
+
//#region src/codec/pptx-codec.d.ts
|
|
3
3
|
declare const ORIGIN_FILE_LOAD = "file-load";
|
|
4
4
|
/**
|
|
5
5
|
* Bidirectional format codec: file bytes <-> Y.Doc shared types.
|
|
@@ -17,11 +17,11 @@ declare const ORIGIN_FILE_LOAD = "file-load";
|
|
|
17
17
|
* layouts are similar but NOT interchangeable on the same Y.Doc.
|
|
18
18
|
*/
|
|
19
19
|
interface FormatCodec {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
readonly formatId: string;
|
|
21
|
+
readonly extensions: string[];
|
|
22
|
+
hydrate: (ydoc: Doc, bytes: Uint8Array, origin?: string) => Promise<void>;
|
|
23
|
+
dehydrate: (ydoc: Doc, dirtyPaths?: string[]) => Promise<Uint8Array>;
|
|
24
|
+
observe: (ydoc: Doc, onChange: () => void) => () => void;
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* Field coverage is derived from `pptx-viewer-core`'s
|
|
@@ -43,15 +43,16 @@ declare const COMPLEX_FIELD_MAP: Record<string, string>;
|
|
|
43
43
|
declare const SCALAR_SLIDE_KEYS: Set<string>;
|
|
44
44
|
declare const COMPLEX_SLIDE_FIELD_MAP: Record<string, string>;
|
|
45
45
|
declare class PptxCodec implements FormatCodec {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
46
|
+
readonly formatId = "pptx";
|
|
47
|
+
readonly extensions: string[];
|
|
48
|
+
hydrate(ydoc: Doc, bytes: Uint8Array, origin?: string): Promise<void>;
|
|
49
|
+
dehydrate(ydoc: Doc, _dirtyPaths?: string[]): Promise<Uint8Array>;
|
|
50
|
+
observe(ydoc: Doc, onChange: () => void): () => void;
|
|
51
|
+
private _slideToYMap;
|
|
52
|
+
private _yMapToSlide;
|
|
53
|
+
private _elementToYMap;
|
|
54
|
+
private _yMapToElement;
|
|
55
55
|
}
|
|
56
|
-
|
|
56
|
+
//#endregion
|
|
57
57
|
export { COMPLEX_FIELD_MAP, COMPLEX_SLIDE_FIELD_MAP, type FormatCodec, ORIGIN_FILE_LOAD, PptxCodec, SCALAR_ELEMENT_KEYS, SCALAR_SLIDE_KEYS };
|
|
58
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/codec/pptx-codec.ts"],"mappings":";;cAMa;;;;;;;;;;;;;;;;UAiBI;WACP;WACA;EACT,UAAU,MAAM,KAAM,OAAO,YAAY,oBAAoB;EAC7D,YAAY,MAAM,KAAM,0BAA0B,QAAQ;EAC1D,UAAU,MAAM,KAAM;;;;;;;;;;;;;;;;;cAoBV,qBAAmB;cAQnB,mBAAmB;cAWnB,mBAAiB;cAOjB,yBAAyB;cAWzB,qBAAqB;WACxB;WACA;EAEH,QAAQ,MAAM,KAAM,OAAO,YAAY,kBAAkB;EA+BzD,UAAU,MAAM,KAAM,yBAAyB,QAAQ;EA2B7D,QAAQ,MAAM,KAAM;UAWZ;UAqBA;UA6BA;UAsBA"}
|