@shznet/pdf-sign-standalone 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.
Files changed (2) hide show
  1. package/README.md +26 -0
  2. package/package.json +27 -0
package/README.md ADDED
@@ -0,0 +1,26 @@
1
+ # @shznet/pdf-sign-standalone
2
+
3
+ A bundled version of the PDF Sign Control for usage in Vanilla JS or environments without a bundler.
4
+
5
+ ## Usage
6
+
7
+ Include the script directly or import it:
8
+
9
+ ```html
10
+ <script src="path/to/pdf-sign-standalone.js"></script>
11
+ <link rel="stylesheet" href="path/to/pdf-sign-standalone.css">
12
+
13
+ <div id="pdf-root" style="width: 100%; height: 600px;"></div>
14
+
15
+ <script>
16
+ // The global variable `PdfSignStandalone` is available
17
+ const container = document.getElementById('pdf-root');
18
+ const app = new PdfSignStandalone.PdfSignControl(container);
19
+
20
+ app.init('https://example.com/sample.pdf');
21
+ </script>
22
+ ```
23
+
24
+ ## Versioning
25
+
26
+ This package follows the version of `@shznet/pdf-sign-control`.
package/package.json ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "@shznet/pdf-sign-standalone",
3
+ "version": "0.1.0",
4
+ "type": "module",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ "./package.json": "./package.json",
10
+ ".": {
11
+ "@shznet/source": "./src/index.ts",
12
+ "types": "./dist/index.d.ts",
13
+ "import": "./dist/index.js",
14
+ "default": "./dist/index.js"
15
+ }
16
+ },
17
+ "files": [
18
+ "dist",
19
+ "!**/*.tsbuildinfo"
20
+ ],
21
+ "publishConfig": {
22
+ "access": "public"
23
+ },
24
+ "dependencies": {
25
+ "@shznet/pdf-sign-control": "*"
26
+ }
27
+ }