edatalia-websign 3.4.10 → 3.5.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/CHANGELOG.md CHANGED
@@ -3,12 +3,46 @@
3
3
  All significant updates to this project will be documented here.
4
4
  This changelog is public.
5
5
 
6
- ## [3.4.10] - 2026-03-26
6
+ ## [3.5.1] - 2026-05-12
7
7
 
8
- ### Changed
8
+ ### Added
9
+
10
+ - Support for `ArrayBuffer` as input PDF
11
+
12
+ ### Fixed
13
+
14
+ - DTU signature flow no longer hangs when no compatible DTU screen is detected
9
15
 
16
+ ## [3.5.0] - 2026-04-15
17
+
18
+ ### Added
19
+
20
+ - Integrated full mode into core version, unifying both builds into a single widget
21
+ - Full mode manager class for handling full mode logic within core
22
+ - WebHID and USB availability checks to prevent errors in Firefox
23
+ - Vitest setup
10
24
  - Allow page 0 (sign all pages) with bridge client
11
25
 
26
+ ### Changed
27
+
28
+ - Unified signature widget class across full and core modes
29
+ - Redesigned widget buttons and improved overall UI appearance
30
+ - Increased button and text sizes for better usability
31
+ - Embedded necessary SVGs and CSS directly in JS, removing external viewer.css
32
+ - Removed local PDF.js files and connected API toolbar with buttons
33
+ - Removed references to the full build
34
+ - DTU: increased signature area and improved point conversion
35
+ - DTU: added translations
36
+ - Improved pen stroke rendering in Firefox
37
+ - `useFullMode` defaults to `false`
38
+ - Moved `archiver` from `dependencies` to `devDependencies` to avoid transitive vulnerability (CVE-2026-25547 in `brace-expansion`)
39
+
40
+ ### Fixed
41
+
42
+ - Fixed overlapping buttons with EBP in full widget
43
+ - Stop signature if captured points are less than minimum when bridge closes DTU (consistent behavior)
44
+ - Refactored style code in DTU for better maintainability
45
+
12
46
  ## [3.4.9] - 2026-03-18
13
47
 
14
48
  ### Fixed
package/README.md CHANGED
@@ -79,7 +79,7 @@ WebSign comes with default parameter values, but it's recommended to set them to
79
79
  mainContainerHeight: "800px",
80
80
  widget: {
81
81
  type: "fixed",
82
- page: 0,
82
+ page: 0.
83
83
  width: 160,
84
84
  height: 100,
85
85
  x: 100,
@@ -192,6 +192,7 @@ All parameters below are part of the `config` object:
192
192
  | `useMiddleware` | `boolean` | Routes signature data through an external middleware via callback before completing the flow |
193
193
  | `offlineMode` | `boolean` | Enables offline signature capture using Service Worker |
194
194
  | `offlineModeAutoFetch` | `boolean` | Auto-syncs pending requests in background without prompting the user |
195
+ | `useFullMode` | `boolean` | Enables the full integrated mode: embeds a PDF.js viewer with interactive widget positioning (drag, resize, page navigation) and signature buttons inside the viewer. Default: `false` |
195
196
  ---
196
197
 
197
198
 
@@ -202,7 +203,7 @@ widget: {
202
203
  height: 100, // height of the signature area
203
204
  x: 0, // X position on the PDF page (used if type is 'fixed')
204
205
  y: 0, // Y position on the PDF page (used if type is 'fixed')
205
- page: 0, // PDF page number where the signature will appear, 0 = sign all pages
206
+ page: 0, // PDF page number where the signature will appear
206
207
  customText: [ // text displayed on the PDF after signing
207
208
  {
208
209
  text: "Documento firmado digitalmente",