@imgly/pdf-importer 0.1.0-rc.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.md +650 -0
- package/README.md +225 -0
- package/dist/browser.d.ts +300 -0
- package/dist/browser.js +14 -0
- package/dist/node.d.ts +300 -0
- package/dist/node.js +14 -0
- package/package.json +120 -0
package/package.json
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@imgly/pdf-importer",
|
|
3
|
+
"version": "0.1.0-rc.0",
|
|
4
|
+
"module": "dist/browser.js",
|
|
5
|
+
"types": "dist/browser.d.ts",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"description": "Import PDF files into the Creative Editor Ecosystem",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"creative-editor-sdk",
|
|
10
|
+
"pdf",
|
|
11
|
+
"import",
|
|
12
|
+
"importer",
|
|
13
|
+
"cesdk",
|
|
14
|
+
"imgly"
|
|
15
|
+
],
|
|
16
|
+
"author": {
|
|
17
|
+
"name": "IMG.LY GmbH",
|
|
18
|
+
"email": "support@img.ly",
|
|
19
|
+
"url": "https://img.ly"
|
|
20
|
+
},
|
|
21
|
+
"bugs": {
|
|
22
|
+
"email": "support@img.ly"
|
|
23
|
+
},
|
|
24
|
+
"homepage": "https://img.ly",
|
|
25
|
+
"engines": {
|
|
26
|
+
"node": ">=20"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@cesdk/engine": "npm:@cesdk/engine@1.72.1",
|
|
30
|
+
"@cesdk/node": "npm:@cesdk/node@1.72.1",
|
|
31
|
+
"@changesets/cli": "^2.29.4",
|
|
32
|
+
"@types/glob": "^7.2.0",
|
|
33
|
+
"@types/jsdom": "^21.1.7",
|
|
34
|
+
"@types/node": "^20.19.37",
|
|
35
|
+
"@types/opentype.js": "^1.3.9",
|
|
36
|
+
"@types/pixelmatch": "^5.2.6",
|
|
37
|
+
"@types/pngjs": "^6.0.5",
|
|
38
|
+
"dotenv": "^17.2.3",
|
|
39
|
+
"dts-bundle-generator": "^9.5.1",
|
|
40
|
+
"esbuild": "^0.25.9",
|
|
41
|
+
"glob": "7.0.3",
|
|
42
|
+
"jest-image-snapshot": "^6.2.0",
|
|
43
|
+
"jsdom": "^22.1.0",
|
|
44
|
+
"pdf-lib": "^1.17.1",
|
|
45
|
+
"pixelmatch": "^7.1.0",
|
|
46
|
+
"tsx": "^4.20.6",
|
|
47
|
+
"typescript": "^5.7.0",
|
|
48
|
+
"undici": "^8.0.0",
|
|
49
|
+
"vitest": "^3.2.4"
|
|
50
|
+
},
|
|
51
|
+
"peerDependencies": {
|
|
52
|
+
"@cesdk/engine": ">=1.70.0",
|
|
53
|
+
"@cesdk/node": ">=1.70.0"
|
|
54
|
+
},
|
|
55
|
+
"peerDependenciesMeta": {
|
|
56
|
+
"@cesdk/engine": {
|
|
57
|
+
"optional": true
|
|
58
|
+
},
|
|
59
|
+
"@cesdk/node": {
|
|
60
|
+
"optional": true
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"files": [
|
|
64
|
+
"LICENSE.md",
|
|
65
|
+
"README.md",
|
|
66
|
+
"dist/"
|
|
67
|
+
],
|
|
68
|
+
"scripts": {
|
|
69
|
+
"download-test-fixtures": "./scripts/download-test-fixtures.sh",
|
|
70
|
+
"build": "rm -rf dist/ && node build.mjs",
|
|
71
|
+
"typecheck": "tsc --noEmit",
|
|
72
|
+
"setup": "./scripts/download-test-fixtures.sh && op inject -i .env.example -o .env",
|
|
73
|
+
"test": "vitest run src/test/regression.test.ts",
|
|
74
|
+
"test:unit": "vitest run src/test/unit",
|
|
75
|
+
"test:structural": "vitest run src/test/structural.test.ts",
|
|
76
|
+
"test:regression": "vitest run src/test/regression.test.ts",
|
|
77
|
+
"test:regression:update": "UPDATE_BASELINES=1 vitest run src/test/regression.test.ts",
|
|
78
|
+
"test:all": "vitest run",
|
|
79
|
+
"add-sample": "./scripts/add-sample.sh",
|
|
80
|
+
"dump": "tsx scripts/dump-pdf.ts",
|
|
81
|
+
"dump:all": "tsx scripts/dump-pdf.ts --all",
|
|
82
|
+
"dump:check": "tsx scripts/dump-pdf.ts --all --check",
|
|
83
|
+
"generate:roundtrip": "tsx scripts/generate-roundtrip-fixtures.ts",
|
|
84
|
+
"publish": "pnpm run build && npm publish --access public",
|
|
85
|
+
"deploy:cdn": "op run --env-file=.env -- rclone sync ./dist r2:imgly-cdn/imgly/pdf-importer/$npm_package_version/dist/",
|
|
86
|
+
"dashboard": "cd scripts/dashboard && pnpm install --silent && pnpm run dev",
|
|
87
|
+
"dashboard:build": "cd scripts/dashboard && pnpm install --silent && pnpm run build",
|
|
88
|
+
"dashboard:preview": "cd scripts/dashboard && pnpm run preview"
|
|
89
|
+
},
|
|
90
|
+
"dependencies": {
|
|
91
|
+
"@napi-rs/canvas": "^0.1.56",
|
|
92
|
+
"@imgly/pdfjs-dist": "4.10.38-imgly.2",
|
|
93
|
+
"opentype.js": "^1.3.4",
|
|
94
|
+
"pngjs": "^7.0.0"
|
|
95
|
+
},
|
|
96
|
+
"exports": {
|
|
97
|
+
".": {
|
|
98
|
+
"node": {
|
|
99
|
+
"import": {
|
|
100
|
+
"types": "./dist/node.d.ts",
|
|
101
|
+
"default": "./dist/node.js"
|
|
102
|
+
},
|
|
103
|
+
"require": {
|
|
104
|
+
"types": "./dist/node.d.ts",
|
|
105
|
+
"default": "./dist/node.js"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"default": {
|
|
109
|
+
"import": {
|
|
110
|
+
"types": "./dist/browser.d.ts",
|
|
111
|
+
"default": "./dist/browser.js"
|
|
112
|
+
},
|
|
113
|
+
"require": {
|
|
114
|
+
"types": "./dist/browser.d.ts",
|
|
115
|
+
"default": "./dist/browser.js"
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|