@uipath/du-validation-station-wc 1.0.0-beta.2 → 1.0.0-beta.3

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
@@ -1,98 +1,142 @@
1
- # Changelog
2
-
3
- All notable consumer-facing changes to `@uipath/du-validation-station-wc`
4
- are documented in this file. The format follows
5
- [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the package
6
- follows [Semantic Versioning](https://semver.org/).
7
-
8
- ## [1.0.0-beta.2] - 2026-05-19
9
-
10
- Second public beta. No breaking changes since `1.0.0-beta.1` — element
11
- tags, JS properties, events, and command methods are unchanged.
12
-
13
- > ⚠️ Still a **beta** release. Public APIs are not yet stable and data
14
- > contracts may change before `1.0.0`.
15
-
16
- ### Added
17
-
18
- - Translations refreshed from the localization pipeline across all
19
- supported locales.
20
-
21
- ### Changed
22
-
23
- - **Runtime asset location is now self-resolved.** The WC locates its
24
- `du-assets/` directory (PDF.js worker, cmaps, wasm, i18n) at runtime
25
- via `import.meta.url`, relative to wherever the main bundle is
26
- served — no more reliance on a build-time CDN path baked into the
27
- bundle. Consumers must deploy `du-assets/` at the same path level as
28
- the WC bundle they serve; see the **Static assets** section of the
29
- README for the full deployment guidance. Without co-location, PDF
30
- rendering and translations will silently 404.
31
-
32
- ### Fixed
33
-
34
- - `<ui-du-validation-station-standalone-wc-persistent-element>` no
35
- longer emits command-result events multiple times for a single
36
- invocation.
37
- - Resolved drift between `DataVersion` and `DocumentTypeDataVersion`
38
- that could cause stale taxonomy / extraction-result combinations to
39
- render incorrectly after a document-type change.
40
-
41
- ### Security
42
-
43
- - Updated transitive dependencies to address 6 critical CVEs
44
- (`axios`, `koa`, `lodash`, `picomatch`).
45
-
46
- ## [1.0.0-beta.1] - 2026-05-08
47
-
48
- Initial public beta release of the Validation Station web component.
49
-
50
- > ⚠️ This is a **beta** release. Public APIs (element tags, JS
51
- > properties, events) are not yet stable
52
- > and data contracts may change before `1.0.0`.
53
-
54
- ### Added
55
-
56
- - Standalone validation-station web components:
57
- - `<ui-du-validation-station-standalone-wc-element>` — render a
58
- document for validation; data is provided via JS properties; save /
59
- save-as-draft / report-as-exception requests are emitted as events
60
- so the consumer's backend stays in control of all I/O.
61
- - `<ui-du-validation-station-standalone-wc-persistent-element>` — same
62
- as above, but suppresses `disconnectedCallback()` so internal state
63
- survives portal detachments. Includes an explicit `forceDestroy()`
64
- method that must be called when permanently removing the element.
65
- - TypeScript declarations covering both element interfaces, all
66
- command-input shapes, the full event map, and JSX prop types for
67
- React 18 (refs) and React 19 (direct prop pass-through).
68
- - Global `HTMLElementTagNameMap` and `React.JSX.IntrinsicElements`
69
- augmentations — `document.querySelector` returns the typed element,
70
- and the custom tags are recognised in JSX without per-file imports.
71
- - Programmatic command API: `setFieldValue`, `setTableCellValue`,
72
- `deleteFieldValue`, `deleteTableCellValue`, `selectAndFocusFieldValue`,
73
- `save`, `discardChanges`, plus by-path equivalents
74
- (`setFieldValueByPath`, `selectAndFocusFieldValueByPath`,
75
- `deleteFieldValueByPath`).
76
- - Configuration inputs: `theme` (`light` / `dark` / `light-hc` /
77
- `dark-hc`), `language` (BCP-47), `isReadonly`, `enableSaveAsDraft`,
78
- and a fine-grained `options` object (`hideSubmitButton`,
79
- `hideReportAsExceptionButton`, `hideDocumentTypeField`, `hideFields`,
80
- `fieldsSectionPosition`, `enableUserPreferences`,
81
- `userPreferencesKeySuffix`, `emitDtoStateChanges`).
82
- - Events: `loaded`, `dirty`, `documentTypeChanged`,
83
- `extractionResultChanged`, `fieldValueSelected`, `fieldValueChanged`,
84
- `businessRulesEvaluated`, `fieldsPanelWidthChanged`,
85
- `fieldsPanelSideChanged`, plus result events for every command
86
- (`setFieldValueResult`, `setTableCellValueResult`,
87
- `deleteFieldValueResult`, `deleteTableCellValueResult`,
88
- `selectAndFocusFieldValueResult`, `setFieldValueByPathResult`,
89
- `selectAndFocusFieldValueByPathResult`,
90
- `deleteFieldValueByPathResult`).
91
- - Bundle ships as MIT-licensed under the `@uipath` scope.
92
-
93
- ### Notes
94
-
95
- - The bundle is non-trivial (≈6 MB uncompressed). Lazy-load it behind a
96
- route boundary if the WC is conditional in your app.
97
- - Complex object props in React 18 require a `ref` — see the README for
98
- the full pattern.
1
+ # Changelog
2
+
3
+ All notable consumer-facing changes to `@uipath/du-validation-station-wc`
4
+ are documented in this file. The format follows
5
+ [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the package
6
+ follows [Semantic Versioning](https://semver.org/).
7
+
8
+ ## [1.0.0-beta.3] - 2026-06-11
9
+
10
+ Third public beta. No breaking changes to element tags, JS properties,
11
+ events, or command methods since `1.0.0-beta.2`.
12
+
13
+ > ⚠️ Still a **beta** release. Public APIs are not yet stable and data
14
+ > contracts may change before `1.0.0`.
15
+
16
+ ### Added
17
+
18
+ - Translations refreshed from the localization pipeline across all
19
+ supported locales.
20
+
21
+ ### Changed
22
+
23
+ - **Styles are now restructured for Shadow DOM isolation.** Component
24
+ styles are scoped to the web component's shadow root, reducing the
25
+ chance of style bleed between the WC and the host page.
26
+ - The WC no longer emits telemetry for non-command inputs/outputs, and
27
+ no longer tracks network requests made by the parent host page —
28
+ telemetry is now limited to the component's own activity.
29
+ - Removed obsolete command inputs from the standalone WC element. Use
30
+ the documented command methods (`setFieldValue`, `setFieldValueByPath`,
31
+ and friends) instead.
32
+ - Expanded the public README with eager- and lazy-load playground
33
+ examples covering the recommended integration patterns.
34
+
35
+ ### Fixed
36
+
37
+ - Date parsing now handles day ranges in derived date parts.
38
+ - Number and address parsing is aligned with the backend for
39
+ undetermined-language input and cross-locale addresses.
40
+ - Inserting a row in the compact table editor no longer triggers
41
+ unwanted horizontal scrolling.
42
+ - `Reference.TextLength` is now coerced from `NaN` to `0` on area
43
+ selections, preventing invalid reference data.
44
+
45
+ ### Security
46
+
47
+ - Addressed critical CVEs in `axios` and `@nevware21/ts-utils`, and
48
+ removed the unused `@angular-architects/module-federation` dependency.
49
+ - Remediated additional transitive-dependency CVEs (`postcss`, `hono`,
50
+ `ip-address`, `brace-expansion`, `webpack-dev-server`).
51
+
52
+ ## [1.0.0-beta.2] - 2026-05-19
53
+
54
+ Second public beta. No breaking changes since `1.0.0-beta.1` — element
55
+ tags, JS properties, events, and command methods are unchanged.
56
+
57
+ > ⚠️ Still a **beta** release. Public APIs are not yet stable and data
58
+ > contracts may change before `1.0.0`.
59
+
60
+ ### Added
61
+
62
+ - Translations refreshed from the localization pipeline across all
63
+ supported locales.
64
+
65
+ ### Changed
66
+
67
+ - **Runtime asset location is now self-resolved.** The WC locates its
68
+ `du-assets/` directory (PDF.js worker, cmaps, wasm, i18n) at runtime
69
+ via `import.meta.url`, relative to wherever the main bundle is
70
+ served — no more reliance on a build-time CDN path baked into the
71
+ bundle. Consumers must deploy `du-assets/` at the same path level as
72
+ the WC bundle they serve; see the **Static assets** section of the
73
+ README for the full deployment guidance. Without co-location, PDF
74
+ rendering and translations will silently 404.
75
+
76
+ ### Fixed
77
+
78
+ - `<ui-du-validation-station-standalone-wc-persistent-element>` no
79
+ longer emits command-result events multiple times for a single
80
+ invocation.
81
+ - Resolved drift between `DataVersion` and `DocumentTypeDataVersion`
82
+ that could cause stale taxonomy / extraction-result combinations to
83
+ render incorrectly after a document-type change.
84
+
85
+ ### Security
86
+
87
+ - Updated transitive dependencies to address 6 critical CVEs
88
+ (`axios`, `koa`, `lodash`, `picomatch`).
89
+
90
+ ## [1.0.0-beta.1] - 2026-05-08
91
+
92
+ Initial public beta release of the Validation Station web component.
93
+
94
+ > ⚠️ This is a **beta** release. Public APIs (element tags, JS
95
+ > properties, events) are not yet stable
96
+ > and data contracts may change before `1.0.0`.
97
+
98
+ ### Added
99
+
100
+ - Standalone validation-station web components:
101
+ - `<ui-du-validation-station-standalone-wc-element>` — render a
102
+ document for validation; data is provided via JS properties; save /
103
+ save-as-draft / report-as-exception requests are emitted as events
104
+ so the consumer's backend stays in control of all I/O.
105
+ - `<ui-du-validation-station-standalone-wc-persistent-element>` — same
106
+ as above, but suppresses `disconnectedCallback()` so internal state
107
+ survives portal detachments. Includes an explicit `forceDestroy()`
108
+ method that must be called when permanently removing the element.
109
+ - TypeScript declarations covering both element interfaces, all
110
+ command-input shapes, the full event map, and JSX prop types for
111
+ React 18 (refs) and React 19 (direct prop pass-through).
112
+ - Global `HTMLElementTagNameMap` and `React.JSX.IntrinsicElements`
113
+ augmentations — `document.querySelector` returns the typed element,
114
+ and the custom tags are recognised in JSX without per-file imports.
115
+ - Programmatic command API: `setFieldValue`, `setTableCellValue`,
116
+ `deleteFieldValue`, `deleteTableCellValue`, `selectAndFocusFieldValue`,
117
+ `save`, `discardChanges`, plus by-path equivalents
118
+ (`setFieldValueByPath`, `selectAndFocusFieldValueByPath`,
119
+ `deleteFieldValueByPath`).
120
+ - Configuration inputs: `theme` (`light` / `dark` / `light-hc` /
121
+ `dark-hc`), `language` (BCP-47), `isReadonly`, `enableSaveAsDraft`,
122
+ and a fine-grained `options` object (`hideSubmitButton`,
123
+ `hideReportAsExceptionButton`, `hideDocumentTypeField`, `hideFields`,
124
+ `fieldsSectionPosition`, `enableUserPreferences`,
125
+ `userPreferencesKeySuffix`, `emitDtoStateChanges`).
126
+ - Events: `loaded`, `dirty`, `documentTypeChanged`,
127
+ `extractionResultChanged`, `fieldValueSelected`, `fieldValueChanged`,
128
+ `businessRulesEvaluated`, `fieldsPanelWidthChanged`,
129
+ `fieldsPanelSideChanged`, plus result events for every command
130
+ (`setFieldValueResult`, `setTableCellValueResult`,
131
+ `deleteFieldValueResult`, `deleteTableCellValueResult`,
132
+ `selectAndFocusFieldValueResult`, `setFieldValueByPathResult`,
133
+ `selectAndFocusFieldValueByPathResult`,
134
+ `deleteFieldValueByPathResult`).
135
+ - Bundle ships as MIT-licensed under the `@uipath` scope.
136
+
137
+ ### Notes
138
+
139
+ - The bundle is non-trivial (≈6 MB uncompressed). Lazy-load it behind a
140
+ route boundary if the WC is conditional in your app.
141
+ - Complex object props in React 18 require a `ref` — see the README for
142
+ the full pattern.
package/LICENSE CHANGED
@@ -1,9 +1,9 @@
1
- MIT License
2
-
3
- Copyright 2026-present UiPath
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
-
7
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
-
9
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright 2026-present UiPath
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.