edatalia-websign 3.4.4 → 3.4.6

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/CHANGELOG.md CHANGED
@@ -3,6 +3,36 @@
3
3
  All significant updates to this project will be documented here.
4
4
  This changelog is public.
5
5
 
6
+ ## [3.4.6] - 2026-03-02
7
+
8
+ ### Added
9
+
10
+ - New public methods: `cancel()`, `reset()`, `accept()`, `startCaptureDTU()`
11
+
12
+ ### Changed
13
+
14
+ - Refactored DTU support for Salesforce
15
+ - Auto aspect ratio adjustment for signature widget
16
+ - Default minimum size for signature and PDF viewer containers
17
+
18
+ ## [3.4.5] - 2026-02-19
19
+
20
+ ### Added
21
+
22
+ - New `startCaptureBridgeDTU()` public method: allows external control to start signature capture on Signotec/DTU tablets from PC side
23
+ - "Start signature" button on the "Waiting for signer" overlay to launch the signature box from the PC side on DTU devices
24
+
25
+ ### Changed
26
+
27
+ - Refactored `getBioData` digitizer info builder into separate function for better maintainability
28
+ - Improved communcation dtu + bridge (disconnect before connect again)
29
+
30
+ ### Fixed
31
+
32
+ - Fixed signature image ratio and traced points when using DTU + EBP + Bridge
33
+ - Fixed "waiting for signer" overlay not appearing for Signotec devices
34
+ - Fixed undefined hardware data when connecting wrong device type (e.g., DTU when STU configured)
35
+
6
36
  ## [3.4.4] - 2026-02-17
7
37
 
8
38
  ### Added
@@ -14,6 +44,7 @@ This changelog is public.
14
44
 
15
45
  - General improvements in Bridge communication and connection stability
16
46
 
47
+
17
48
  ## [3.4.3] - 2026-02-16
18
49
 
19
50
  ### Changed
package/README.md CHANGED
@@ -144,14 +144,6 @@ const file = input.files[0]; // can be multi-document
144
144
  const base64String = "JVBERi0xLjQKJ...";
145
145
  ```
146
146
 
147
- 3. **Salesforce-compatible structure**
148
-
149
- ```js
150
- const pdfData = {
151
- pdfB64: "base64_string",
152
- pdfUrl: "https://url.to/your.pdf"
153
- };
154
- ```
155
147
 
156
148
  ---
157
149
 
@@ -183,8 +175,7 @@ All parameters below are part of the `config` object:
183
175
  | `language` | `string` | UI language (e.g., `"es"`, `"en"`, `"fr"`) |
184
176
  | `requestLocation` | `boolean` | Include geolocation metadata |
185
177
  | `doPerformance` | `boolean` | Enable performance tracking |
186
- | `dtuHtmlUrl` | `boolean` | Html path for dtu |
187
- | `jsUrl` | `boolean` | Js path for dtu |
178
+ | `salesforceDtuViewerUrl` | `string` | URL to static DTU viewer HTML for Salesforce (see DTU Integration section) |
188
179
  | `loadSignedPdf` | `boolean` | Realoads the signed PDF upon completion of the signature on the viewer. Compatible with single file |
189
180
  | `encCertKey` | `string` | Value to define the public key for the biometric data encryption certificate. By default, the edatalia encryption certificate will be used. |
190
181
  | `options` | `Object` | Enable or disable timestamp and ocsp providers.
@@ -308,16 +299,19 @@ WebSign emits events via the callback function passed as the third argument:
308
299
 
309
300
  ## 💻 DTU Integration
310
301
 
311
- WebSign supports **Wacom DTU tablets** via a dedicated HTML file rendered on the device screen. You must provide the following parameters:
302
+ WebSign supports **Wacom DTU tablets** via a dedicated HTML file rendered on the device screen.
303
+
304
+
305
+ ### Salesforce Integration
306
+
307
+ 1. Upload `salesforce-dtu-viewer.html` as a Static Resource in Salesforce
308
+ 2. Pass the URL to WebSign:
312
309
 
313
310
  ```js
314
311
  const config = {
315
312
  signatureType: "dtu",
316
- jsUrl: "/your/path/web-sign.js",
317
- dtuHtmlUrl: "/your/path/dtu.html", // only needed in salesforce
318
-
313
+ salesforceDtuViewerUrl: "/resource/salesforce_dtu_viewer", // Static Resource URL
319
314
  };
320
-
321
315
  ```
322
316
  > DTU signing is only supported in **Google Chrome**, **Edge**, and **Opera**.
323
317