@docuseal/signature-maker-js 1.0.0 → 1.0.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.
- package/README.md +13 -13
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<a href="https://www.docuseal.
|
|
2
|
+
<a href="https://www.docuseal.com/online-signature" target="_blank">
|
|
3
3
|
<img width="600" height="356" src='https://github.com/user-attachments/assets/305904a9-291f-416d-ac32-baaf22970450' alt='Signature Maker'>
|
|
4
4
|
</a>
|
|
5
5
|
</p>
|
|
6
6
|
|
|
7
|
-
# Signature Maker
|
|
7
|
+
# Signature Maker JS
|
|
8
8
|
|
|
9
9
|
Signature Maker is a web component that lets users draw or type their signature.
|
|
10
10
|
|
|
@@ -15,11 +15,11 @@ Signature Maker is a web component that lets users draw or type their signature.
|
|
|
15
15
|
|
|
16
16
|
## Demo
|
|
17
17
|
|
|
18
|
-
Try the live demo [here](https://www.docuseal.
|
|
18
|
+
Try the live demo [here](https://www.docuseal.com/online-signature)
|
|
19
19
|
|
|
20
20
|
## Documentation
|
|
21
21
|
|
|
22
|
-
Check out the full documentation [here](https://www.docuseal.
|
|
22
|
+
Check out the full documentation [here](https://www.docuseal.com/docs/embedded/signature#js).
|
|
23
23
|
|
|
24
24
|
## Installation
|
|
25
25
|
|
|
@@ -33,6 +33,12 @@ OR
|
|
|
33
33
|
yarn add @docuseal/signature-maker-js
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
+
OR
|
|
37
|
+
|
|
38
|
+
```html
|
|
39
|
+
<script src="https://cdn.jsdelivr.net/npm/@docuseal/signature-maker-js/dist/index.cjs.min.js"></script>
|
|
40
|
+
```
|
|
41
|
+
|
|
36
42
|
## Usage
|
|
37
43
|
|
|
38
44
|
Basic Usage with standard styles and default signature saving behavior:
|
|
@@ -56,10 +62,7 @@ Usage with default styles but custom signature saving behavior, such as uploadin
|
|
|
56
62
|
window.signatureMaker.addEventListener('save', (e) => {
|
|
57
63
|
fetch('/save-signature', {
|
|
58
64
|
method: 'POST',
|
|
59
|
-
headers: {
|
|
60
|
-
'Content-Type': 'application/json',
|
|
61
|
-
'X-CSRF-Token': document.querySelector('meta[name="csrf-token"]')?.content
|
|
62
|
-
},
|
|
65
|
+
headers: { 'Content-Type': 'application/json' },
|
|
63
66
|
body: JSON.stringify({ file: e.detail.base64 }),
|
|
64
67
|
});
|
|
65
68
|
})
|
|
@@ -98,10 +101,7 @@ Usage without a save signature button and tracking each signature change:
|
|
|
98
101
|
if (e.detail.base64) {
|
|
99
102
|
fetch('/background-save-signature', {
|
|
100
103
|
method: 'POST',
|
|
101
|
-
headers: {
|
|
102
|
-
'Content-Type': 'application/json',
|
|
103
|
-
'X-CSRF-Token': document.querySelector('meta[name="csrf-token"]')?.content
|
|
104
|
-
},
|
|
104
|
+
headers: { 'Content-Type': 'application/json' },
|
|
105
105
|
body: JSON.stringify({ file: e.detail.base64 }),
|
|
106
106
|
});
|
|
107
107
|
} else {
|
|
@@ -203,7 +203,7 @@ data-upload-type-button-active-style
|
|
|
203
203
|
data-font-url
|
|
204
204
|
````
|
|
205
205
|
|
|
206
|
-
The full documentation with detailed configuration and event descriptions can be found [here](https://www.docuseal.
|
|
206
|
+
The full documentation with detailed configuration and event descriptions can be found [here](https://www.docuseal.com/docs/embedded/signature#js).
|
|
207
207
|
|
|
208
208
|
# License
|
|
209
209
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docuseal/signature-maker-js",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "JS library for drawing signatures",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"signature",
|
|
11
11
|
"signature-drawing"
|
|
12
12
|
],
|
|
13
|
-
"author": "Alex Turchyn <alex@docuseal.
|
|
13
|
+
"author": "Alex Turchyn <alex@docuseal.com>",
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"bugs": {
|
|
16
16
|
"url": "https://github.com/docusealco/signature-maker-js/issues"
|