edatalia-websign 3.4.5 → 3.4.7

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,25 @@
3
3
  All significant updates to this project will be documented here.
4
4
  This changelog is public.
5
5
 
6
+ ## [3.4.7] - 2026-03-17
7
+
8
+ ### Changed
9
+
10
+ - Updated default EBP signature widget aspect ratio from 5.32 (266×50) to 3 (180×60) for better proportion with new EBP templates
11
+ - Updated default EBP templates
12
+
13
+ ## [3.4.6] - 2026-03-02
14
+
15
+ ### Added
16
+
17
+ - New public methods: `cancel()`, `reset()`, `accept()`, `startCaptureDTU()`
18
+
19
+ ### Changed
20
+
21
+ - Refactored DTU support for Salesforce
22
+ - Auto aspect ratio adjustment for signature widget
23
+ - Default minimum size for signature and PDF viewer containers
24
+
6
25
  ## [3.4.5] - 2026-02-19
7
26
 
8
27
  ### Added
@@ -32,6 +51,7 @@ This changelog is public.
32
51
 
33
52
  - General improvements in Bridge communication and connection stability
34
53
 
54
+
35
55
  ## [3.4.3] - 2026-02-16
36
56
 
37
57
  ### 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
 
Binary file