@drvillo/react-browser-e-signing 0.1.3 → 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 +44 -12
- package/dist/pdf.worker.min.mjs +21 -0
- package/dist/worker.d.mts +1 -0
- package/dist/worker.mjs +3 -0
- package/package.json +23 -16
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getPdfWorkerSrc(): string
|
package/dist/worker.mjs
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@drvillo/react-browser-e-signing",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "React PDF e-signing in the browser — fields, handwriting, pdf-lib",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -19,11 +19,31 @@
|
|
|
19
19
|
"import": "./dist/index.js",
|
|
20
20
|
"types": "./dist/index.d.ts"
|
|
21
21
|
},
|
|
22
|
-
"./styles.css": "./dist/styles.css"
|
|
22
|
+
"./styles.css": "./dist/styles.css",
|
|
23
|
+
"./worker": {
|
|
24
|
+
"import": "./dist/worker.mjs",
|
|
25
|
+
"types": "./dist/worker.d.mts"
|
|
26
|
+
},
|
|
27
|
+
"./pdf.worker.min.mjs": "./dist/pdf.worker.min.mjs"
|
|
23
28
|
},
|
|
24
29
|
"files": [
|
|
25
30
|
"dist"
|
|
26
31
|
],
|
|
32
|
+
"scripts": {
|
|
33
|
+
"postinstall": "pnpm run install:browsers",
|
|
34
|
+
"install:browsers": "playwright install chromium",
|
|
35
|
+
"build": "tsup && node scripts/copy-dist-assets.mjs",
|
|
36
|
+
"dev": "tsup --watch",
|
|
37
|
+
"demo": "node scripts/sync-worker-to-dev.mjs && vite",
|
|
38
|
+
"demo:build": "node scripts/sync-worker-to-dev.mjs && vite build",
|
|
39
|
+
"test": "pnpm run test:unit && pnpm run test:browser",
|
|
40
|
+
"test:unit": "vitest run --config vitest.config.ts",
|
|
41
|
+
"test:browser": "vitest run --config vitest.browser.config.ts",
|
|
42
|
+
"typecheck": "tsc --noEmit",
|
|
43
|
+
"verify:worker": "node scripts/verify-worker.mjs",
|
|
44
|
+
"prepublishOnly": "npm run build && npm run verify:worker",
|
|
45
|
+
"publish:npm": "npm publish"
|
|
46
|
+
},
|
|
27
47
|
"keywords": [
|
|
28
48
|
"e-signature",
|
|
29
49
|
"pdf",
|
|
@@ -61,18 +81,5 @@
|
|
|
61
81
|
"typescript": "^5.9.2",
|
|
62
82
|
"vite": "^7.1.5",
|
|
63
83
|
"vitest": "^4.0.0"
|
|
64
|
-
},
|
|
65
|
-
"scripts": {
|
|
66
|
-
"postinstall": "pnpm run install:browsers",
|
|
67
|
-
"install:browsers": "playwright install chromium",
|
|
68
|
-
"build": "tsup",
|
|
69
|
-
"dev": "tsup --watch",
|
|
70
|
-
"demo": "vite",
|
|
71
|
-
"demo:build": "vite build",
|
|
72
|
-
"test": "pnpm run test:unit && pnpm run test:browser",
|
|
73
|
-
"test:unit": "vitest run --config vitest.config.ts",
|
|
74
|
-
"test:browser": "vitest run --config vitest.browser.config.ts",
|
|
75
|
-
"typecheck": "tsc --noEmit",
|
|
76
|
-
"publish:npm": "npm publish"
|
|
77
84
|
}
|
|
78
|
-
}
|
|
85
|
+
}
|