@cervio/plugin-sdk 1.0.0 → 1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cervio/plugin-sdk",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "Typed client + runtime helpers for Cervio route plugins: CervioUI, plugin context, theme sync, and i18n. Tracks CERVIO_UI_API_VERSION.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -11,15 +11,39 @@
11
11
  "types": "./dist/index.d.ts",
12
12
  "import": "./dist/index.js",
13
13
  "require": "./dist/index.cjs"
14
+ },
15
+ "./pdf": {
16
+ "types": "./dist/pdf/index.d.ts",
17
+ "import": "./dist/pdf/index.js",
18
+ "require": "./dist/pdf/index.cjs"
14
19
  }
15
20
  },
16
21
  "files": [
17
22
  "dist",
18
23
  "README.md"
19
24
  ],
25
+ "peerDependencies": {
26
+ "react": ">=18",
27
+ "react-dom": ">=18"
28
+ },
29
+ "peerDependenciesMeta": {
30
+ "react": {
31
+ "optional": true
32
+ },
33
+ "react-dom": {
34
+ "optional": true
35
+ }
36
+ },
37
+ "dependencies": {
38
+ "pdfjs-dist": "^5.6.0"
39
+ },
20
40
  "devDependencies": {
21
41
  "@types/node": "^22.15.0",
42
+ "@types/react": "^19.0.0",
43
+ "@types/react-dom": "^19.0.0",
22
44
  "jsdom": "^29.1.1",
45
+ "react": "^19.0.0",
46
+ "react-dom": "^19.0.0",
23
47
  "tsup": "^8.5.0",
24
48
  "typescript": "^5.8.3",
25
49
  "vitest": "^3.2.4"
@@ -34,6 +58,7 @@
34
58
  "sdk"
35
59
  ],
36
60
  "scripts": {
61
+ "prebuild": "node scripts/generate-pdf-worker-src.mjs",
37
62
  "build": "tsup --config tsup.config.ts",
38
63
  "typecheck": "tsc -p tsconfig.json --noEmit",
39
64
  "test": "vitest run"