@liustack/pptfast 0.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 +21 -0
- package/README.md +95 -0
- package/README.zh-CN.md +93 -0
- package/dist/chunk-4WISUDXE.js +34 -0
- package/dist/chunk-4WISUDXE.js.map +1 -0
- package/dist/chunk-DVMJWFDL.js +14465 -0
- package/dist/chunk-DVMJWFDL.js.map +1 -0
- package/dist/chunk-G76EVNVT.js +14 -0
- package/dist/chunk-G76EVNVT.js.map +1 -0
- package/dist/cli.js +155 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.d.ts +1076 -0
- package/dist/index.js +29 -0
- package/dist/index.js.map +1 -0
- package/dist/node.d.ts +6 -0
- package/dist/node.js +11 -0
- package/dist/node.js.map +1 -0
- package/dist/registry-CYKxZ0-U.d.ts +11 -0
- package/package.json +87 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import {
|
|
2
|
+
PptfastError,
|
|
3
|
+
PptxIRSchema,
|
|
4
|
+
THEME_IDS,
|
|
5
|
+
VERSION,
|
|
6
|
+
formatIssues,
|
|
7
|
+
generatePptx,
|
|
8
|
+
irJsonSchema,
|
|
9
|
+
listThemes,
|
|
10
|
+
renderSlideSvg,
|
|
11
|
+
validateIr
|
|
12
|
+
} from "./chunk-DVMJWFDL.js";
|
|
13
|
+
import {
|
|
14
|
+
installPlatform
|
|
15
|
+
} from "./chunk-G76EVNVT.js";
|
|
16
|
+
export {
|
|
17
|
+
PptfastError,
|
|
18
|
+
PptxIRSchema,
|
|
19
|
+
THEME_IDS,
|
|
20
|
+
VERSION,
|
|
21
|
+
formatIssues,
|
|
22
|
+
generatePptx,
|
|
23
|
+
installPlatform,
|
|
24
|
+
irJsonSchema,
|
|
25
|
+
listThemes,
|
|
26
|
+
renderSlideSvg,
|
|
27
|
+
validateIr
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/node.d.ts
ADDED
package/dist/node.js
ADDED
package/dist/node.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** Environment seams. The SDK entry stays browser-safe: Node implementations
|
|
2
|
+
* live in ./node and are installed explicitly (CLI does it automatically). */
|
|
3
|
+
interface PptfastPlatform {
|
|
4
|
+
/** DOMParser constructor used to parse rendered SVG markup. */
|
|
5
|
+
domParser?: typeof DOMParser;
|
|
6
|
+
/** Re-encode an image data URL to PNG (Office rejects webp and friends). */
|
|
7
|
+
recodeImageToPng?: (dataUrl: string) => Promise<string>;
|
|
8
|
+
}
|
|
9
|
+
declare function installPlatform(p: PptfastPlatform): void;
|
|
10
|
+
|
|
11
|
+
export { type PptfastPlatform as P, installPlatform as i };
|
package/package.json
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@liustack/pptfast",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Stable, editable PPTX generation for AI agents — semantic IR in, native DrawingML out",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"bin": {
|
|
8
|
+
"pptfast": "./dist/cli.js"
|
|
9
|
+
},
|
|
10
|
+
"main": "./dist/index.js",
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"import": "./dist/index.js"
|
|
16
|
+
},
|
|
17
|
+
"./node": {
|
|
18
|
+
"types": "./dist/node.d.ts",
|
|
19
|
+
"import": "./dist/node.js"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"dist",
|
|
24
|
+
"README.zh-CN.md"
|
|
25
|
+
],
|
|
26
|
+
"engines": {
|
|
27
|
+
"node": ">=18"
|
|
28
|
+
},
|
|
29
|
+
"scripts": {
|
|
30
|
+
"build": "tsup",
|
|
31
|
+
"typecheck": "tsc --noEmit",
|
|
32
|
+
"lint": "eslint src scripts --no-error-on-unmatched-pattern",
|
|
33
|
+
"test": "vitest run",
|
|
34
|
+
"test:watch": "vitest",
|
|
35
|
+
"check": "pnpm typecheck && pnpm lint && pnpm test",
|
|
36
|
+
"e2e": "pnpm build && tsx scripts/e2e.mts",
|
|
37
|
+
"docs:list": "node scripts/docs-list.js",
|
|
38
|
+
"prepublishOnly": "pnpm check && pnpm build"
|
|
39
|
+
},
|
|
40
|
+
"keywords": [
|
|
41
|
+
"pptx",
|
|
42
|
+
"powerpoint",
|
|
43
|
+
"presentation",
|
|
44
|
+
"ai",
|
|
45
|
+
"agent",
|
|
46
|
+
"claude",
|
|
47
|
+
"svg",
|
|
48
|
+
"drawingml",
|
|
49
|
+
"cli"
|
|
50
|
+
],
|
|
51
|
+
"author": "Leon Liu",
|
|
52
|
+
"repository": {
|
|
53
|
+
"type": "git",
|
|
54
|
+
"url": "git+https://github.com/liustack/pptfast.git"
|
|
55
|
+
},
|
|
56
|
+
"dependencies": {
|
|
57
|
+
"commander": "^13.1.0",
|
|
58
|
+
"dagre": "^0.8.5",
|
|
59
|
+
"jszip": "3.10.1",
|
|
60
|
+
"linkedom": "^0.18.12",
|
|
61
|
+
"pptxgenjs": "^4.0.1",
|
|
62
|
+
"react": "^19.2.4",
|
|
63
|
+
"react-dom": "^19.2.4",
|
|
64
|
+
"zod": "^4.3.6"
|
|
65
|
+
},
|
|
66
|
+
"optionalDependencies": {
|
|
67
|
+
"sharp": "^0.34.4"
|
|
68
|
+
},
|
|
69
|
+
"devDependencies": {
|
|
70
|
+
"@eslint/js": "^9.39.0",
|
|
71
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
72
|
+
"@testing-library/react": "^16.3.2",
|
|
73
|
+
"@types/dagre": "^0.7.54",
|
|
74
|
+
"@types/node": "^22.19.7",
|
|
75
|
+
"@types/react": "^19.2.14",
|
|
76
|
+
"@types/react-dom": "^19.2.3",
|
|
77
|
+
"eslint": "^9.39.0",
|
|
78
|
+
"eslint-plugin-react-refresh": "^0.5.3",
|
|
79
|
+
"jsdom": "^29.0.2",
|
|
80
|
+
"lucide-react": "^1.7.0",
|
|
81
|
+
"tsup": "^8.5.1",
|
|
82
|
+
"tsx": "^4.20.6",
|
|
83
|
+
"typescript": "~5.9.3",
|
|
84
|
+
"typescript-eslint": "^8.46.4",
|
|
85
|
+
"vitest": "^4.1.4"
|
|
86
|
+
}
|
|
87
|
+
}
|