@uipath/ui-widgets-validation-station 1.0.1-beta.6 → 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.
Files changed (75) hide show
  1. package/README.md +198 -90
  2. package/dist/ValidationStation.d.ts +1 -1
  3. package/dist/ValidationStation.d.ts.map +1 -1
  4. package/dist/ValidationStation.js +22 -18
  5. package/dist/ValidationStation.js.map +1 -1
  6. package/dist/ValidationStation.stories.d.ts.map +1 -1
  7. package/dist/ValidationStation.stories.js +0 -6
  8. package/dist/ValidationStation.stories.js.map +1 -1
  9. package/dist/bindWcEvents.d.ts +25 -0
  10. package/dist/bindWcEvents.d.ts.map +1 -0
  11. package/dist/bindWcEvents.js +59 -0
  12. package/dist/bindWcEvents.js.map +1 -0
  13. package/dist/bucketArtifactsUtil.d.ts +1 -1
  14. package/dist/bucketArtifactsUtil.d.ts.map +1 -1
  15. package/dist/bucketArtifactsUtil.js +8 -1
  16. package/dist/bucketArtifactsUtil.js.map +1 -1
  17. package/dist/index.d.ts +11 -3
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +9 -2
  20. package/dist/index.js.map +1 -1
  21. package/dist/loadValidationStationWc.d.ts +17 -0
  22. package/dist/loadValidationStationWc.d.ts.map +1 -1
  23. package/dist/loadValidationStationWc.js +37 -3
  24. package/dist/loadValidationStationWc.js.map +1 -1
  25. package/dist/saveValidatedDataUtil.d.ts +4 -3
  26. package/dist/saveValidatedDataUtil.d.ts.map +1 -1
  27. package/dist/saveValidatedDataUtil.js +28 -33
  28. package/dist/saveValidatedDataUtil.js.map +1 -1
  29. package/dist/subcomponents/CompactBusinessRules.d.ts +8 -0
  30. package/dist/subcomponents/CompactBusinessRules.d.ts.map +1 -0
  31. package/dist/subcomponents/CompactBusinessRules.js +55 -0
  32. package/dist/subcomponents/CompactBusinessRules.js.map +1 -0
  33. package/dist/subcomponents/CompactDocTypeField.d.ts +8 -0
  34. package/dist/subcomponents/CompactDocTypeField.d.ts.map +1 -0
  35. package/dist/subcomponents/CompactDocTypeField.js +42 -0
  36. package/dist/subcomponents/CompactDocTypeField.js.map +1 -0
  37. package/dist/subcomponents/CompactFieldsForm.d.ts +10 -0
  38. package/dist/subcomponents/CompactFieldsForm.d.ts.map +1 -0
  39. package/dist/subcomponents/CompactFieldsForm.js +87 -0
  40. package/dist/subcomponents/CompactFieldsForm.js.map +1 -0
  41. package/dist/subcomponents/CompactTableEditor.d.ts +11 -0
  42. package/dist/subcomponents/CompactTableEditor.d.ts.map +1 -0
  43. package/dist/subcomponents/CompactTableEditor.js +61 -0
  44. package/dist/subcomponents/CompactTableEditor.js.map +1 -0
  45. package/dist/subcomponents/DocumentViewer.d.ts +8 -0
  46. package/dist/subcomponents/DocumentViewer.d.ts.map +1 -0
  47. package/dist/subcomponents/DocumentViewer.js +52 -0
  48. package/dist/subcomponents/DocumentViewer.js.map +1 -0
  49. package/dist/subcomponents/shared.d.ts +35 -0
  50. package/dist/subcomponents/shared.d.ts.map +1 -0
  51. package/dist/subcomponents/shared.js +36 -0
  52. package/dist/subcomponents/shared.js.map +1 -0
  53. package/dist/subcomponents/types.d.ts +128 -0
  54. package/dist/subcomponents/types.d.ts.map +1 -0
  55. package/dist/subcomponents/types.js +2 -0
  56. package/dist/subcomponents/types.js.map +1 -0
  57. package/dist/subcomponents/useWcElement.d.ts +44 -0
  58. package/dist/subcomponents/useWcElement.d.ts.map +1 -0
  59. package/dist/subcomponents/useWcElement.js +40 -0
  60. package/dist/subcomponents/useWcElement.js.map +1 -0
  61. package/dist/types.d.ts +22 -9
  62. package/dist/types.d.ts.map +1 -1
  63. package/dist/useBucketArtifacts.d.ts +11 -3
  64. package/dist/useBucketArtifacts.d.ts.map +1 -1
  65. package/dist/useBucketArtifacts.js +15 -35
  66. package/dist/useBucketArtifacts.js.map +1 -1
  67. package/dist/useSubcomponentArtifacts.d.ts +44 -0
  68. package/dist/useSubcomponentArtifacts.d.ts.map +1 -0
  69. package/dist/useSubcomponentArtifacts.js +87 -0
  70. package/dist/useSubcomponentArtifacts.js.map +1 -0
  71. package/dist/useWcReady.d.ts +8 -0
  72. package/dist/useWcReady.d.ts.map +1 -0
  73. package/dist/useWcReady.js +23 -0
  74. package/dist/useWcReady.js.map +1 -0
  75. package/package.json +6 -10
@@ -1 +1 @@
1
- {"version":3,"file":"useBucketArtifacts.js","sourceRoot":"","sources":["../src/useBucketArtifacts.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAElE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAG7D,MAAM,UAAU,kBAAkB,CAChC,GAAW,EACX,IAAuC,EACvC,QAA4B;IAE5B,MAAM,gBAAgB,GAAG,MAAM,CAAC,IAAI,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC;IACxD,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAyB,IAAI,CAAC,CAAC;IACzE,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAgB,IAAI,CAAC,CAAC;IAExD,MAAM,gBAAgB,GAAG,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC;IAEnD,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,gBAAgB,EAAE,CAAC;YACrB,IAAI,SAAS,GAAG,KAAK,CAAC;YAEtB,oBAAoB,CAAC,gBAAgB,CAAC,OAAO,EAAE,IAAI,EAAE,gBAAgB,CAAC;iBACnE,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE;gBACf,IAAI,CAAC,SAAS,EAAE,CAAC;oBACf,YAAY,CAAC,MAAM,CAAC,CAAC;oBACrB,QAAQ,CAAC,IAAI,CAAC,CAAC;gBACjB,CAAC;YACH,CAAC,CAAC;iBACD,KAAK,CAAC,CAAC,EAAE,EAAE,EAAE;gBACZ,IAAI,CAAC,SAAS,EAAE,CAAC;oBACf,YAAY,CAAC,IAAI,CAAC,CAAC;oBACnB,QAAQ,CAAC,EAAE,YAAY,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;gBAC1D,CAAC;YACH,CAAC,CAAC,CAAC;YAEL,OAAO,GAAG,EAAE;gBACV,SAAS,GAAG,IAAI,CAAC;YACnB,CAAC,CAAC;QACJ,CAAC;IACH,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC,CAAC;IAE7B,0EAA0E;IAC1E,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACtB,OAAO;YACL,SAAS,EAAE,IAAI;YACf,KAAK,EACH,8FAA8F;SACjG,CAAC;IACJ,CAAC;IAED,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;AAC9B,CAAC"}
1
+ {"version":3,"file":"useBucketArtifacts.js","sourceRoot":"","sources":["../src/useBucketArtifacts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAEzE;;;;;;;;GAQG;AACH,MAAM,UAAU,kBAAkB,CAChC,GAAW,EACX,IAAuC,EACvC,QAA4B;IAE5B,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,wBAAwB,CAAC;QACpD,GAAG;QACH,IAAI;QACJ,QAAQ;KACT,CAAC,CAAC;IACH,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;AAC9B,CAAC"}
@@ -0,0 +1,44 @@
1
+ import type { UiPath } from "@uipath/uipath-typescript/core";
2
+ import type { DuFramework } from "@uipath/uipath-typescript/document-understanding";
3
+ import type { BucketArtifacts } from "./types.js";
4
+ /**
5
+ * Data source shared by every subcomponent wrapper. Two mutually-exclusive
6
+ * modes:
7
+ *
8
+ * 1. **Pre-fetched** — pass `artifacts` (and usually `documentId`). No HTTP
9
+ * call is made. This is the composition mode: a parent fetches once and
10
+ * hands the same artifacts to a linked viewer + fields-form + table-editor.
11
+ * 2. **Self-fetching** — pass `sdk` + `data` (+ optional `folderId`). The hook
12
+ * fetches the bucket artifacts itself, exactly like `ValidationStation`.
13
+ */
14
+ export interface SubcomponentDataSource {
15
+ /** SDK instance — required for self-fetching mode. */
16
+ sdk?: UiPath;
17
+ /** Content-validation descriptor — required for self-fetching mode. */
18
+ data?: DuFramework.ContentValidationData;
19
+ /** Storage-bucket folder id. Falls back to `data.FolderId`. */
20
+ folderId?: number;
21
+ /** Pre-fetched artifacts. When supplied, no fetch is performed. */
22
+ artifacts?: BucketArtifacts;
23
+ /** Document id. Falls back to `data.DocumentId`. */
24
+ documentId?: string;
25
+ }
26
+ export interface ResolvedArtifacts {
27
+ artifacts: BucketArtifacts | null;
28
+ error: string | null;
29
+ documentId: string | undefined;
30
+ /**
31
+ * True when a full self-fetching / persistence context (`sdk` + `data` +
32
+ * resolved folder id) is available — i.e. the fields-form can round-trip
33
+ * submit / save-as-draft through the SDK.
34
+ */
35
+ canPersist: boolean;
36
+ /** Folder id used for fetch/persist, resolved from the prop or `data.FolderId`. */
37
+ resolvedFolderId: number | undefined;
38
+ }
39
+ /**
40
+ * Resolves the artifacts a subcomponent needs, transparently handling both the
41
+ * pre-fetched and self-fetching modes described on {@link SubcomponentDataSource}.
42
+ */
43
+ export declare function useSubcomponentArtifacts({ sdk, data, folderId, artifacts: provided, documentId, }: SubcomponentDataSource): ResolvedArtifacts;
44
+ //# sourceMappingURL=useSubcomponentArtifacts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSubcomponentArtifacts.d.ts","sourceRoot":"","sources":["../src/useSubcomponentArtifacts.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kDAAkD,CAAC;AAGpF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD;;;;;;;;;GASG;AACH,MAAM,WAAW,sBAAsB;IACrC,sDAAsD;IACtD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,uEAAuE;IACvE,IAAI,CAAC,EAAE,WAAW,CAAC,qBAAqB,CAAC;IACzC,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mEAAmE;IACnE,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,oDAAoD;IACpD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,eAAe,GAAG,IAAI,CAAC;IAClC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;;;OAIG;IACH,UAAU,EAAE,OAAO,CAAC;IACpB,mFAAmF;IACnF,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAC;CACtC;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,EACvC,GAAG,EACH,IAAI,EACJ,QAAQ,EACR,SAAS,EAAE,QAAQ,EACnB,UAAU,GACX,EAAE,sBAAsB,GAAG,iBAAiB,CAyF5C"}
@@ -0,0 +1,87 @@
1
+ import { BucketService } from "@uipath/uipath-typescript/buckets";
2
+ import { useEffect, useRef, useState } from "react";
3
+ import { fetchBucketArtifacts } from "./bucketArtifactsUtil.js";
4
+ /**
5
+ * Resolves the artifacts a subcomponent needs, transparently handling both the
6
+ * pre-fetched and self-fetching modes described on {@link SubcomponentDataSource}.
7
+ */
8
+ export function useSubcomponentArtifacts({ sdk, data, folderId, artifacts: provided, documentId, }) {
9
+ const [fetched, setFetched] = useState(null);
10
+ const [error, setError] = useState(null);
11
+ const resolvedFolderId = folderId ?? data?.FolderId;
12
+ const resolvedDocumentId = documentId ?? data?.DocumentId;
13
+ const canPersist = !!sdk && !!data && !!resolvedFolderId;
14
+ // Fetch only when the caller did not supply artifacts and a full context is
15
+ // present (the missing-folderId case is surfaced at render).
16
+ const shouldFetch = !provided && canPersist;
17
+ // Keep the latest sdk reachable so each fetch uses the current instance (token
18
+ // refresh / tenant switch) without making sdk identity a fetch trigger.
19
+ const sdkRef = useRef(sdk);
20
+ useEffect(() => {
21
+ sdkRef.current = sdk;
22
+ }, [sdk]);
23
+ useEffect(() => {
24
+ if (!shouldFetch)
25
+ return;
26
+ let cancelled = false;
27
+ // Build the service from the CURRENT sdk on each fetch — caching it in a ref
28
+ // would pin the original sdk's auth/base URL.
29
+ const bucketService = new BucketService(sdkRef.current);
30
+ fetchBucketArtifacts(bucketService, data, resolvedFolderId)
31
+ .then((result) => {
32
+ if (!cancelled) {
33
+ setFetched(result);
34
+ setError(null);
35
+ }
36
+ })
37
+ .catch((er) => {
38
+ if (!cancelled) {
39
+ setFetched(null);
40
+ setError(er instanceof Error ? er.message : String(er));
41
+ }
42
+ });
43
+ return () => {
44
+ cancelled = true;
45
+ };
46
+ // Keyed on `data` identity (as useBucketArtifacts always has) + folder: the
47
+ // fetch reads the bucket PATH fields off `data`, not just DocumentId, so a
48
+ // new payload with the same DocumentId but different paths must refetch.
49
+ // Callers pass a stable `data` reference (React state) so this does not
50
+ // refetch on unrelated re-renders.
51
+ }, [shouldFetch, data, resolvedFolderId]);
52
+ if (provided) {
53
+ return {
54
+ artifacts: provided,
55
+ error: null,
56
+ documentId: resolvedDocumentId,
57
+ canPersist,
58
+ resolvedFolderId,
59
+ };
60
+ }
61
+ if (!sdk || !data) {
62
+ return {
63
+ artifacts: null,
64
+ error: "No data source provided. Pass `artifacts` (pre-fetched) or `sdk` + `data` (to fetch).",
65
+ documentId: resolvedDocumentId,
66
+ canPersist,
67
+ resolvedFolderId,
68
+ };
69
+ }
70
+ if (!resolvedFolderId) {
71
+ return {
72
+ artifacts: null,
73
+ error: "folderId of Storage bucket is required. Provide it as a prop or ensure data.FolderId is set.",
74
+ documentId: resolvedDocumentId,
75
+ canPersist,
76
+ resolvedFolderId,
77
+ };
78
+ }
79
+ return {
80
+ artifacts: fetched,
81
+ error,
82
+ documentId: resolvedDocumentId,
83
+ canPersist,
84
+ resolvedFolderId,
85
+ };
86
+ }
87
+ //# sourceMappingURL=useSubcomponentArtifacts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSubcomponentArtifacts.js","sourceRoot":"","sources":["../src/useSubcomponentArtifacts.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Returns `true` once the custom element for `tag` has been defined by the
3
+ * browser's element registry. All standalone DU elements are registered by the
4
+ * same `main` import (side-effect of importing `loadValidationStationWc`), so
5
+ * this only waits for the requested tag to upgrade.
6
+ */
7
+ export declare function useWcReady(tag: string): boolean;
8
+ //# sourceMappingURL=useWcReady.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useWcReady.d.ts","sourceRoot":"","sources":["../src/useWcReady.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAc/C"}
@@ -0,0 +1,23 @@
1
+ import { useEffect, useState } from "react";
2
+ import { waitForWcElementReady } from "./loadValidationStationWc.js";
3
+ /**
4
+ * Returns `true` once the custom element for `tag` has been defined by the
5
+ * browser's element registry. All standalone DU elements are registered by the
6
+ * same `main` import (side-effect of importing `loadValidationStationWc`), so
7
+ * this only waits for the requested tag to upgrade.
8
+ */
9
+ export function useWcReady(tag) {
10
+ const [ready, setReady] = useState(false);
11
+ useEffect(() => {
12
+ let cancelled = false;
13
+ waitForWcElementReady(tag).then(() => {
14
+ if (!cancelled)
15
+ setReady(true);
16
+ });
17
+ return () => {
18
+ cancelled = true;
19
+ };
20
+ }, [tag]);
21
+ return ready;
22
+ }
23
+ //# sourceMappingURL=useWcReady.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useWcReady.js","sourceRoot":"","sources":["../src/useWcReady.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAErE;;;;;GAKG;AACH,MAAM,UAAU,UAAU,CAAC,GAAW;IACpC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE1C,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,SAAS,GAAG,KAAK,CAAC;QACtB,qBAAqB,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE;YACnC,IAAI,CAAC,SAAS;gBAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;QACjC,CAAC,CAAC,CAAC;QACH,OAAO,GAAG,EAAE;YACV,SAAS,GAAG,IAAI,CAAC;QACnB,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAEV,OAAO,KAAK,CAAC;AACf,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/ui-widgets-validation-station",
3
- "version": "1.0.1-beta.6",
3
+ "version": "1.0.1",
4
4
  "description": "A React component for UiPath Document Understanding Validation Station.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -10,17 +10,16 @@
10
10
  ".": {
11
11
  "import": "./dist/index.js",
12
12
  "types": "./dist/index.d.ts"
13
- },
14
- "./ValidationStation.css": "./dist/ValidationStation.css"
13
+ }
15
14
  },
16
15
  "files": [
17
16
  "dist"
18
17
  ],
19
18
  "scripts": {
20
19
  "prepack": "rimraf *.tgz",
21
- "build": "npm run clean && tsc",
20
+ "build": "npm run clean && tsc -p tsconfig.build.json",
22
21
  "clean": "rimraf dist",
23
- "copy-styles": "sass --no-source-map src/ValidationStation.scss | postcss -o dist/ValidationStation.css",
22
+ "typecheck": "tsc --noEmit -p tsconfig.json",
24
23
  "test": "vitest --run",
25
24
  "test:watch": "vitest",
26
25
  "test:ui": "vitest --ui",
@@ -43,7 +42,7 @@
43
42
  "registry": "https://npm.pkg.github.com"
44
43
  },
45
44
  "peerDependencies": {
46
- "@uipath/uipath-typescript": "^1.3.9",
45
+ "@uipath/uipath-typescript": "^1.4.2",
47
46
  "react": "^19.2.0",
48
47
  "react-dom": "^19.2.0"
49
48
  },
@@ -60,18 +59,15 @@
60
59
  "@vitest/ui": "^4.0.18",
61
60
  "jsdom": "^25.0.1",
62
61
  "lightningcss": "^1.30.2",
63
- "postcss": "^8.5.6",
64
- "postcss-cli": "^11.0.1",
65
62
  "rimraf": "^6.0.1",
66
63
  "rollup": "^4.55.1",
67
- "sass": "^1.83.4",
68
64
  "typescript": "~5.9.3",
69
65
  "vite": "^6.0.3",
70
66
  "vitest": "^4.0.18"
71
67
  },
72
68
  "dependencies": {
73
69
  "@uipath/apollo-wind": "^0.10.0",
74
- "@uipath/du-validation-station-wc": "1.0.0-beta.2",
70
+ "@uipath/du-validation-station-wc": "1.0.0-rc.1",
75
71
  "fflate": "^0.8.2"
76
72
  }
77
73
  }