@openpresentation/opf-pptx 0.0.1 → 0.2.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/README.md +72 -0
- package/dist/background.js +81 -0
- package/dist/image-fallback-browser.js +33 -0
- package/dist/image-fallback-node.js +8 -0
- package/dist/image-geometry.js +113 -0
- package/dist/image-import.js +92 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +321 -289
- package/package.json +20 -8
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openpresentation/opf-pptx",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Pure local OPF to PPTX export and PPTX to OPF import tooling.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"private": false,
|
|
8
8
|
"engines": {
|
|
9
|
-
"node": ">=20"
|
|
9
|
+
"node": ">=20.9.0"
|
|
10
10
|
},
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
|
@@ -35,23 +35,35 @@
|
|
|
35
35
|
"sideEffects": false,
|
|
36
36
|
"scripts": {
|
|
37
37
|
"build": "node scripts/build.mjs",
|
|
38
|
-
"typecheck": "node --check src/index.js && node --check scripts/build.mjs && node --check scripts/validate-package.mjs && node --check test/smoke.mjs",
|
|
39
|
-
"test": "npm run build && node test/
|
|
38
|
+
"typecheck": "node --check src/index.js && node --check scripts/build.mjs && node --check scripts/validate-package.mjs && node --check test/smoke.mjs && node --check src/image-geometry.js && node --check test/image-fit.mjs && node --check test/image-orientation.mjs && node --check test/table-layout.mjs && node --check test/table-import.mjs && node --check test/object-ids.mjs && node --check test/export-corpus.mjs && node --check test/image-media-type.mjs && node --check src/image-fallback-node.js && node --check src/image-fallback-browser.js && node --check test/webp-fallback.mjs && node --check scripts/build-browser-check.mjs && node --check test/webp-fallback-browser.js && node --check test/image-fallback-boundary.mjs && node --check src/background.js && node --check test/background.mjs && node --check src/image-import.js && node --check test/image-import.mjs && node --check test/native-background.mjs",
|
|
39
|
+
"test": "npm run build && node test/dependency-boundary.mjs && npm run build:browser-check",
|
|
40
40
|
"validate": "node scripts/validate-package.mjs",
|
|
41
|
-
"prepack": "npm run build"
|
|
41
|
+
"prepack": "npm run build",
|
|
42
|
+
"build:browser-check": "node scripts/build-browser-check.mjs"
|
|
42
43
|
},
|
|
43
44
|
"dependencies": {
|
|
44
|
-
"@openpresentation/opf": "^0.
|
|
45
|
+
"@openpresentation/opf": "^0.4.1",
|
|
45
46
|
"fast-xml-parser": "^5.8.0",
|
|
46
47
|
"fflate": "^0.8.3",
|
|
47
|
-
"pptxgenjs": "
|
|
48
|
+
"pptxgenjs": "4.0.1",
|
|
49
|
+
"sharp": "0.35.4"
|
|
48
50
|
},
|
|
49
51
|
"peerDependencies": {
|
|
50
|
-
"@openpresentation/opf-render": "
|
|
52
|
+
"@openpresentation/opf-render": "^0.2.0"
|
|
51
53
|
},
|
|
52
54
|
"peerDependenciesMeta": {
|
|
53
55
|
"@openpresentation/opf-render": {
|
|
54
56
|
"optional": true
|
|
55
57
|
}
|
|
58
|
+
},
|
|
59
|
+
"devDependencies": {
|
|
60
|
+
"@openpresentation/opf-render": "0.2.0",
|
|
61
|
+
"esbuild": "0.28.2"
|
|
62
|
+
},
|
|
63
|
+
"imports": {
|
|
64
|
+
"#image-fallback": {
|
|
65
|
+
"browser": "./dist/image-fallback-browser.js",
|
|
66
|
+
"default": "./dist/image-fallback-node.js"
|
|
67
|
+
}
|
|
56
68
|
}
|
|
57
69
|
}
|