@shznet/pdf-sign-standalone 0.2.0 → 0.2.1

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 +15 -14
  2. package/package.json +12 -1
package/README.md CHANGED
@@ -1,24 +1,25 @@
1
1
  # @shznet/pdf-sign-standalone
2
2
 
3
- A bundled version of the PDF Sign Control for usage in Vanilla JS or environments without a bundler.
3
+ This package provides a pre-configured entry point for the `@shznet/pdf-sign` ecosystem.
4
4
 
5
- ## Usage
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @shznet/pdf-sign-standalone
9
+ ```
6
10
 
7
- Include the script directly or import it:
11
+ ## Usage
8
12
 
9
- ```html
10
- <script src="path/to/pdf-sign-standalone.js"></script>
11
- <link rel="stylesheet" href="path/to/pdf-sign-standalone.css">
13
+ ```typescript
14
+ import { PdfSignControl } from '@shznet/pdf-sign-standalone';
12
15
 
13
- <div id="pdf-root" style="width: 100%; height: 600px;"></div>
16
+ const container = document.getElementById('pdf-root');
17
+ const control = new PdfSignControl({
18
+ container: container,
19
+ viewMode: 'scroll'
20
+ });
14
21
 
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
+ await control.load('https://example.com/doc.pdf');
22
23
  ```
23
24
 
24
25
  ## Versioning
package/package.json CHANGED
@@ -1,6 +1,17 @@
1
1
  {
2
2
  "name": "@shznet/pdf-sign-standalone",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
+ "description": "Standalone bundle for @shznet/pdf-sign-control",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/ShzNet/pdf-signature-control.git"
9
+ },
10
+ "author": "Chien Tran <chientranit@gmail.com>",
11
+ "bugs": {
12
+ "url": "https://github.com/ShzNet/pdf-signature-control/issues"
13
+ },
14
+ "homepage": "https://github.com/ShzNet/pdf-signature-control#readme",
4
15
  "type": "module",
5
16
  "main": "./dist/index.js",
6
17
  "module": "./dist/index.js",