@idmission/websdk-ui 0.1.0-rc.1 → 0.2.0-rc.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 (56) hide show
  1. package/dist/DocumentCaptureView.d.ts +2 -2
  2. package/dist/DocumentCaptureView.d.ts.map +1 -1
  3. package/dist/IdCaptureView.d.ts +38 -1
  4. package/dist/IdCaptureView.d.ts.map +1 -1
  5. package/dist/IdCaptureView.js +12 -4
  6. package/dist/SignatureCaptureView.d.ts +9 -5
  7. package/dist/SignatureCaptureView.d.ts.map +1 -1
  8. package/dist/SignatureCaptureView.js +70 -39
  9. package/dist/components/GuidanceMessage.d.ts +25 -1
  10. package/dist/components/GuidanceMessage.d.ts.map +1 -1
  11. package/dist/components/GuidanceMessage.js +37 -0
  12. package/dist/components/additional_documents/types.d.ts +2 -10
  13. package/dist/components/additional_documents/types.d.ts.map +1 -1
  14. package/dist/components/document/types.d.ts +6 -15
  15. package/dist/components/document/types.d.ts.map +1 -1
  16. package/dist/components/error/CameraAccessDeniedOverlay.d.ts +12 -1
  17. package/dist/components/error/CameraAccessDeniedOverlay.d.ts.map +1 -1
  18. package/dist/components/error/CameraAccessDeniedOverlay.js +15 -2
  19. package/dist/components/error/ErrorScreen.d.ts.map +1 -1
  20. package/dist/components/error/ErrorScreen.js +72 -57
  21. package/dist/components/guides/IdCaptureFitGuide.d.ts +13 -1
  22. package/dist/components/guides/IdCaptureFitGuide.d.ts.map +1 -1
  23. package/dist/components/guides/IdCaptureFitGuide.js +27 -11
  24. package/dist/components/guides/IdCaptureGuides.d.ts +8 -1
  25. package/dist/components/guides/IdCaptureGuides.d.ts.map +1 -1
  26. package/dist/components/guides/IdCaptureGuides.js +2 -2
  27. package/dist/flows/DocumentCaptureFlow.d.ts +5 -5
  28. package/dist/flows/DocumentCaptureFlow.d.ts.map +1 -1
  29. package/dist/flows/DocumentCaptureFlow.js +29 -26
  30. package/dist/flows/SignatureKYCFlow.d.ts +19 -1
  31. package/dist/flows/SignatureKYCFlow.d.ts.map +1 -1
  32. package/dist/flows/SignatureKYCFlow.js +30 -0
  33. package/dist/flows/SubmissionProvider.d.ts +3 -9
  34. package/dist/flows/SubmissionProvider.d.ts.map +1 -1
  35. package/dist/flows/documentCapture.d.ts.map +1 -1
  36. package/dist/flows/documentCapture.js +1 -1
  37. package/dist/flows/types.d.ts +3 -3
  38. package/dist/flows/types.d.ts.map +1 -1
  39. package/dist/index.d.ts +3 -2
  40. package/dist/index.d.ts.map +1 -1
  41. package/dist/layout/GuideLayoutContext.d.ts +11 -0
  42. package/dist/layout/GuideLayoutContext.d.ts.map +1 -1
  43. package/dist/layout/GuideLayoutContext.js +24 -3
  44. package/dist/testing/buildDocumentState.d.ts +2 -2
  45. package/dist/testing/buildDocumentState.d.ts.map +1 -1
  46. package/dist/testing/fakeController.d.ts +1 -0
  47. package/dist/testing/fakeController.d.ts.map +1 -1
  48. package/dist/testing/fakeController.js +18 -1
  49. package/dist/testing/stubSignatureCanvas.d.ts.map +1 -1
  50. package/dist/testing/stubSignatureCanvas.js +3 -4
  51. package/dist/version.d.ts +1 -1
  52. package/dist/version.js +1 -1
  53. package/package.json +5 -8
  54. package/dist/utils/signaturePadStrokeGuard.d.ts +0 -16
  55. package/dist/utils/signaturePadStrokeGuard.d.ts.map +0 -1
  56. package/dist/utils/signaturePadStrokeGuard.js +0 -70
@@ -1 +1 @@
1
- {"version":3,"file":"CameraAccessDeniedOverlay.d.ts","sourceRoot":"","sources":["../../../src/components/error/CameraAccessDeniedOverlay.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAAgB,KAAK,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAC9E,OAAO,EAAE,KAAK,wBAAwB,EAAmB,MAAM,YAAY,CAAA;AAE3E,MAAM,MAAM,+BAA+B,GAAG;IAC5C,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,mCAAmC,GAAG;IAChD,SAAS,CAA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MAAM,CAAA;IACvB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,+BAA+B,GAAG;IAC5C,QAAQ,CAAC,EAAE,kBAAkB,CAAA;CAC9B,CAAA;AAED,MAAM,MAAM,iCAAiC,GAAG;IAC9C,WAAW,CAAC,EAAE,wBAAwB,CAAA;IACtC,eAAe,CAAC,EAAE,wBAAwB,CAAA;IAC1C,YAAY,CAAC,EAAE,wBAAwB,CAAA;CACxC,CAAA;AAED,MAAM,MAAM,8BAA8B,GAAG;IAC3C,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,MAAM,CAAC,EAAE,+BAA+B,CAAA;IACxC,UAAU,CAAC,EAAE,mCAAmC,CAAA;IAChD,MAAM,CAAC,EAAE,+BAA+B,CAAA;IACxC,QAAQ,CAAC,EAAE,iCAAiC,CAAA;IAC5C;;;;;;;;;OASG;IACH,OAAO,CAAC,EAAE,kBAAkB,GAAG,aAAa,CAAA;CAC7C,CAAA;AAED,eAAO,MAAM,yBAAyB,GAAI,0EAOvC,8BAA8B,4CAkDhC,CAAA"}
@@ -10,14 +10,21 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
10
  // lint rule (`react-compiler/react-compiler`) disallows in this
11
11
  // package. Replaced with a derived local `imageUrl` read instead; every
12
12
  // downstream read of `assets.imageUrl` uses that local.
13
+ // - net-new optional `variant` prop (see its doc comment). Unset, the
14
+ // component renders sdk2's copy verbatim.
13
15
  import { styled } from 'styled-components';
14
16
  import { OverlayContainer, OverlayImageContainer, OverlayInner, } from '../common/overlay';
15
17
  import { DEFAULT_CDN_URL } from '../../utils/cdn';
16
18
  import { LoaderButton } from '../common/LoaderButton';
17
19
  import { useTranslations } from '../../i18n';
18
- export const CameraAccessDeniedOverlay = ({ onRetry, assets = {}, classNames = {}, colors = {}, verbiage: rawVerbiage = {}, }) => {
20
+ export const CameraAccessDeniedOverlay = ({ onRetry, assets = {}, classNames = {}, colors = {}, verbiage: rawVerbiage = {}, variant = 'permissionDenied', }) => {
19
21
  const imageUrl = assets.imageUrl ?? DEFAULT_CDN_URL + '/camera-disable-icon.png';
20
- const verbiage = useTranslations(rawVerbiage, {
22
+ // Both variants resolve unconditionally. The fallbacks argument has to be an
23
+ // inline literal for the locale audit to see these strings at all
24
+ // (test/localeAudit.ts resolves object literals and named objects, not a
25
+ // value chosen at runtime), and a hook cannot be called behind a branch —
26
+ // so the branch goes after the calls, not around them.
27
+ const permissionDenied = useTranslations(rawVerbiage, {
21
28
  headingText: 'Your camera permission is disabled',
22
29
  descriptionText: 'This application requires access to your camera to continue. ' +
23
30
  'Please accept the permission once prompted by the browser. ' +
@@ -25,6 +32,12 @@ export const CameraAccessDeniedOverlay = ({ onRetry, assets = {}, classNames = {
25
32
  'and provide camera access to the current browser.',
26
33
  retryBtnText: 'Retry',
27
34
  });
35
+ const unavailable = useTranslations(rawVerbiage, {
36
+ headingText: 'Unable to access your camera',
37
+ descriptionText: 'Please make sure a camera is available and not in use by another application, then retry.',
38
+ retryBtnText: 'Retry',
39
+ });
40
+ const verbiage = variant === 'unavailable' ? unavailable : permissionDenied;
28
41
  return (_jsx(OverlayContainer, { className: `flex ${classNames.container ?? ''}`, children: _jsxs(StyledOverlayInner, { className: classNames.inner, children: [_jsx(StyledOverlayImageContainer, { className: classNames.imageContainer, children: _jsx("img", { src: imageUrl, alt: "", className: classNames.image }) }), _jsx("h3", { className: classNames.heading, children: verbiage.headingText }), _jsx(Description, { className: classNames.description, children: verbiage.descriptionText }), _jsx(RetryButton, { variant: "warning", onClick: onRetry, colors: colors.retryBtn, className: classNames.retryBtn, finished: true, children: verbiage.retryBtnText })] }) }));
29
42
  };
30
43
  const StyledOverlayInner = styled(OverlayInner) `
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorScreen.d.ts","sour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E,wBAAwB,CAAA;IAC9D,uCAAuC,CAAC,EAAE,wBAAwB,CAAA;IAClE,0BAA0B,CAAC,EAAE,wBAAwB,CAAA;IACrD,8BAA8B,CAAC,EAAE,wBAAwB,CAAA;IACzD,2BAA2B,CAAC,EAAE,wBAAwB,CAAA;IACtD,+BAA+B,CAAC,EAAE,wBAAwB,CAAA;IAC1D,SAAS,CAAC,EAAE,wBAAwB,CAAA;IACpC,QAAQ,CAAC,EAAE,wBAAwB,CAAA;CACpC,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,YAAY,GAAG,sBAAsB,CAAA;IAC5C,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,QAAQ,CAAC,EAAE,mBAAmB,CAAA;IAC9B,UAAU,CAAC,EAAE,qBAAqB,CAAA;IAClC;;;;;;;;OAQG;IACH,kBAAkB,CAAC,EAAE;QACnB,MAAM,CAAC,EAAE,+BAA+B,CAAA;QACxC,UAAU,CAAC,EAAE,mCAAmC,CAAA;QAChD,MAAM,CAAC,EAAE,+BAA+B,CAAA;QACxC,QAAQ,CAAC,EAAE,iCAAiC,CAAA;KAC7C,CAAA;CACF,CAAA;AAED,eAAO,MAAM,WAAW,GAAI,oFAOzB,gBAAgB,4CAiLlB,CAAA"}
@@ -5,31 +5,7 @@ import { FlexCard } from '../common/Card';
5
5
  import { useTranslations } from '../../i18n';
6
6
  import { CameraAccessDeniedOverlay, } from './CameraAccessDeniedOverlay';
7
7
  export const ErrorScreen = ({ error, onRetry, onExit, verbiage: rawVerbiage = {}, classNames = {}, cameraAccessDenied = {}, }) => {
8
- // The COPY half of the split described at `cameraClassNames` below. sdk2's
9
- // one camera-failure screen carried one verbiage bag as well as one class
10
- // bag, and only the classes followed the split — so an integrator who had
11
- // relabelled the denied screen ("Camera permission is required", their own
12
- // button text) still got our stock English the moment the failure was
13
- // "in use by another application" instead. Two screens, one of them
14
- // unbrandable, which reads as the SDK ignoring them.
15
- //
16
- // `rawVerbiage` wins: a host that names the 3.0 key directly means it.
17
- // `retryText` is shared with the model-load and submission screens, so
18
- // unlike the other two it is only substituted for the camera error.
19
- const denied = cameraAccessDenied.verbiage;
20
- const isCameraUnavailable = error.code === 'CAMERA_UNAVAILABLE';
21
- // Annotated rather than inferred: writing these three keys explicitly would
22
- // otherwise make them REQUIRED in the inferred bag while the spread keys
23
- // stay optional, and `getErrorContent` derives one return type from a key
24
- // of each group.
25
- const merged = {
26
- ...rawVerbiage,
27
- cameraUnavailableHeadingText: rawVerbiage.cameraUnavailableHeadingText ?? denied?.headingText,
28
- cameraUnavailableDescriptionText: rawVerbiage.cameraUnavailableDescriptionText ?? denied?.descriptionText,
29
- retryText: rawVerbiage.retryText ??
30
- (isCameraUnavailable ? denied?.retryBtnText : undefined),
31
- };
32
- const verbiage = useTranslations(merged, {
8
+ const verbiage = useTranslations(rawVerbiage, {
33
9
  cameraUnavailableHeadingText: 'Unable to access your camera',
34
10
  cameraUnavailableDescriptionText: 'Please make sure a camera is available and not in use by another application, then retry.',
35
11
  cameraTamperingSuspectedHeadingText: 'Camera check failed',
@@ -41,8 +17,42 @@ export const ErrorScreen = ({ error, onRetry, onExit, verbiage: rawVerbiage = {}
41
17
  retryText: 'Retry',
42
18
  exitText: 'Exit',
43
19
  });
44
- if (error.code === 'CAMERA_PERMISSION_DENIED') {
45
- return (_jsx(CameraAccessDeniedOverlay, { onRetry: onRetry, assets: cameraAccessDenied.assets, classNames: cameraAccessDenied.classNames, colors: cameraAccessDenied.colors, verbiage: cameraAccessDenied.verbiage }));
20
+ // `CAMERA_UNAVAILABLE` is a 2.x CAMERA-DENIED screen wearing a new name.
21
+ //
22
+ // sdk2 had ONE camera-failure screen: its camera store set
23
+ // `cameraAccessDenied: true` for a `NotAllowedError` (permission), for
24
+ // "Could not start video source" (the camera is in use by another app) AND
25
+ // for an unplugged webcam (lib/camera/cameraStore.tsx:278,336,388) — all
26
+ // three rendering `CameraAccessDeniedOverlay`, styled and worded through
27
+ // `loadingOverlay.cameraAccessDenied`.
28
+ //
29
+ // 3.0 split them by code, and the unavailable half got a different SCREEN,
30
+ // not just different copy: a white `FlexCard` with no image. So a customer
31
+ // who had styled the denied screen watched half their classes evaporate the
32
+ // moment the failure was "in use" or "unplugged" — `imageContainer` and
33
+ // `image` had no element to land on at all, and the card underneath them
34
+ // has no 2.x key to reach it with. Both codes render the port again here;
35
+ // only the stock copy differs.
36
+ if (error.code === 'CAMERA_PERMISSION_DENIED' ||
37
+ error.code === 'CAMERA_UNAVAILABLE') {
38
+ const unavailable = error.code === 'CAMERA_UNAVAILABLE';
39
+ const denied = cameraAccessDenied.verbiage;
40
+ return (_jsx(CameraAccessDeniedOverlay, { onRetry: onRetry, assets: cameraAccessDenied.assets, classNames: unavailable
41
+ ? cameraFailureClassNames(classNames, cameraAccessDenied.classNames)
42
+ : cameraAccessDenied.classNames, colors: cameraAccessDenied.colors,
43
+ // `rawVerbiage` wins: a host that names the 3.0 key directly means it.
44
+ // `retryText` is shared with the model-load and submission screens, so
45
+ // unlike the other two it is only substituted for the camera error —
46
+ // which this branch already is.
47
+ verbiage: unavailable
48
+ ? {
49
+ headingText: rawVerbiage.cameraUnavailableHeadingText ??
50
+ denied?.headingText,
51
+ descriptionText: rawVerbiage.cameraUnavailableDescriptionText ??
52
+ denied?.descriptionText,
53
+ retryBtnText: rawVerbiage.retryText ?? denied?.retryBtnText,
54
+ }
55
+ : denied, variant: unavailable ? 'unavailable' : 'permissionDenied' }));
46
56
  }
47
57
  // Closes over `verbiage` above (rather than taking it as a parameter) so
48
58
  // its resolved-value type — `string | ReactElement` per key, inferred
@@ -57,29 +67,27 @@ export const ErrorScreen = ({ error, onRetry, onExit, verbiage: rawVerbiage = {}
57
67
  // `CaptureError`. TypeScript cannot narrow that literal-union PROPERTY away
58
68
  // from an already-narrowed OUTER union at the `getErrorContent(error)` call
59
69
  // site below (verified: it keeps reporting the full, unnarrowed
60
- // `SelfieCaptureFlowError` there even after the `if (error.code ===
61
- // 'CAMERA_PERMISSION_DENIED')` early return above) — so `Exclude`-ing
62
- // 'CAMERA_PERMISSION_DENIED' out of the parameter type, the way this
63
- // already worked for `CaptureError` alone, doesn't type-check for the
64
- // combined union. `SelfieCaptureFlowError` is accepted here WHOLE instead,
70
+ // `SelfieCaptureFlowError` there even after the two-camera-code early return
71
+ // above) — so `Exclude`-ing 'CAMERA_PERMISSION_DENIED' out of the parameter
72
+ // type, the way this already worked for `CaptureError` alone, doesn't
73
+ // type-check for the combined union. `SelfieCaptureFlowError` is accepted here WHOLE instead,
65
74
  // with a `case 'CAMERA_PERMISSION_DENIED'` added below purely to keep the
66
75
  // switch exhaustive over it — that branch is unreachable in practice
67
76
  // (the early return above always wins first for that code, on both error
68
77
  // types) and its content is never seen.
69
78
  const getErrorContent = (error) => {
70
79
  switch (error.code) {
80
+ // Both camera codes return above, on both error types — these two cases
81
+ // exist only to keep the switch exhaustive, and their content is never
82
+ // seen. (`CAMERA_UNAVAILABLE` is `recoverable: true` at every
83
+ // construction site in core, and `CaptureError` pins the literal, so the
84
+ // shared screen's always-rendered Retry button loses nothing.)
71
85
  case 'CAMERA_PERMISSION_DENIED':
72
- // Unreachable — see comment above.
73
- return {
74
- heading: verbiage.cameraUnavailableHeadingText,
75
- description: verbiage.cameraUnavailableDescriptionText,
76
- canRetry: true,
77
- };
78
86
  case 'CAMERA_UNAVAILABLE':
79
87
  return {
80
88
  heading: verbiage.cameraUnavailableHeadingText,
81
89
  description: verbiage.cameraUnavailableDescriptionText,
82
- canRetry: error.recoverable,
90
+ canRetry: true,
83
91
  };
84
92
  case 'CAMERA_TAMPERING_SUSPECTED':
85
93
  return {
@@ -110,25 +118,32 @@ export const ErrorScreen = ({ error, onRetry, onExit, verbiage: rawVerbiage = {}
110
118
  }
111
119
  };
112
120
  const { heading, description, canRetry } = getErrorContent(error);
113
- // `CAMERA_UNAVAILABLE` is a 2.x CAMERA-DENIED screen wearing a new name.
114
- //
115
- // sdk2 had ONE camera-failure screen: its camera store set
116
- // `cameraAccessDenied: true` for a `NotAllowedError` (permission), for
117
- // "Could not start video source" (the camera is in use by another app) AND
118
- // for an unplugged webcam (lib/camera/cameraStore.tsx:278,336,388) — all
119
- // three rendering `CameraAccessDeniedOverlay`, styled through
120
- // `loadingOverlay.cameraAccessDenied`.
121
- //
122
- // 3.0 splits them by code, and only the permission branch above kept that
123
- // bag. So a customer who styled the denied screen watched their classes
124
- // vanish the moment the failure was "in use" or "unplugged" instead — the
125
- // same silent drop as the 2.4.73 reports, one error code over. The seal-fed
126
- // `classNames` still wins where both name a part; this only fills the gaps.
127
- const cameraClassNames = error.code === 'CAMERA_UNAVAILABLE'
128
- ? cameraAccessDenied.classNames
129
- : undefined;
130
- return (_jsx(GrayOverlayContainer, { className: classNames.container ?? cameraClassNames?.container, children: _jsx(OverlayInner, { className: classNames.inner ?? cameraClassNames?.inner, children: _jsxs(ErrorCard, { className: classNames.card, children: [_jsx(Heading, { className: classNames.heading ?? cameraClassNames?.heading, children: heading }), _jsx(Description, { className: classNames.description ?? cameraClassNames?.description, children: description }), canRetry && (_jsx(WideButton, { className: classNames.retryBtn ?? cameraClassNames?.retryBtn, variant: "warning", onClick: onRetry, finished: true, children: verbiage.retryText })), !canRetry && onExit && (_jsx(WideBorderButton, { className: classNames.exitBtn, variant: "secondary", onClick: onExit, finished: true, children: verbiage.exitText }))] }) }) }));
121
+ return (_jsx(GrayOverlayContainer, { className: classNames.container, children: _jsx(OverlayInner, { className: classNames.inner, children: _jsxs(ErrorCard, { className: classNames.card, children: [_jsx(Heading, { className: classNames.heading, children: heading }), _jsx(Description, { className: classNames.description, children: description }), canRetry && (_jsx(WideButton, { className: classNames.retryBtn, variant: "warning", onClick: onRetry, finished: true, children: verbiage.retryText })), !canRetry && onExit && (_jsx(WideBorderButton, { className: classNames.exitBtn, variant: "secondary", onClick: onExit, finished: true, children: verbiage.exitText }))] }) }) }));
131
122
  };
123
+ /**
124
+ * Folds the ErrorScreen's own (seal-fed) classes into the 2.x camera-denied
125
+ * bag for the camera-UNAVAILABLE screen. The seal-fed one wins where both name
126
+ * a part — it is the more specific answer — and the bag keeps the parts only
127
+ * it has (`imageContainer`, `image`).
128
+ *
129
+ * Only that half folds. `classNames` is what compat feeds from 2.x's
130
+ * tamper-seal bag, and it reaches this screen only because compat targets the
131
+ * whole `ErrorScreen` with it. The permission screen was never an `ErrorScreen`
132
+ * render, so it has never worn those classes — and must not start now.
133
+ *
134
+ * `||`, not `??`: an empty class name is not a class name. A 2.x integrator
135
+ * writing `''` as a placeholder would otherwise blank the class the other bag
136
+ * supplied — see compat's `firstClass`, which strips them on the way in; this
137
+ * is the same rule at the point of use, so a direct 3.0 caller gets it too.
138
+ */
139
+ const cameraFailureClassNames = (own, bag = {}) => ({
140
+ ...bag,
141
+ container: own.container || bag.container,
142
+ inner: own.inner || bag.inner,
143
+ heading: own.heading || bag.heading,
144
+ description: own.description || bag.description,
145
+ retryBtn: own.retryBtn || bag.retryBtn,
146
+ });
132
147
  // This screen pins a light surface (GrayOverlayContainer's #f7f6fb behind a
133
148
  // white Card) whatever the theme says, but `OverlayContainer` still applies
134
149
  // `color: ${theme.textColor}` — which dark 2.x themes set to white, rendering
@@ -13,6 +13,18 @@ export type IdCaptureFitGuideProps = {
13
13
  borderColor?: string;
14
14
  borderWidth?: number;
15
15
  padding?: number;
16
+ /**
17
+ * Upper bounds, in CSS pixels, on the guide rect the mask hole is cut from.
18
+ * Unset, the rect grows to fill the wrapper less `padding`/`borderWidth`,
19
+ * which on a desktop viewport means a card outline spanning nearly the whole
20
+ * screen. The aspect-ratio fit still applies afterwards, so capping one axis
21
+ * pulls the other in with it rather than distorting the card.
22
+ *
23
+ * Under `snapToGuides` the camera feed is clipped to this rect, so capping it
24
+ * caps the feed too.
25
+ */
26
+ maxWidth?: number;
27
+ maxHeight?: number;
16
28
  imageVisible?: boolean;
17
29
  isMirrored?: boolean;
18
30
  isBackToFront?: boolean;
@@ -47,5 +59,5 @@ export type IdCaptureFitGuideProps = {
47
59
  images?: IdCaptureGuideImages;
48
60
  classNames?: IdCaptureFitGuideClassNames;
49
61
  };
50
- export declare const IdCaptureFitGuide: ({ aspectRatio, maskColor, borderRadius, borderColor, borderWidth, padding, imageVisible, isMirrored, isBackToFront, portraitGuidesOnMobile, instruction, requestedAction, status, progress, guideBoxDisabled, guideBoxFollowsMask, cameraFeedMode, images, classNames, }: IdCaptureFitGuideProps) => import("react/jsx-runtime").JSX.Element;
62
+ export declare const IdCaptureFitGuide: ({ aspectRatio, maskColor, borderRadius, borderColor, borderWidth, padding, maxWidth, maxHeight, imageVisible, isMirrored, isBackToFront, portraitGuidesOnMobile, instruction, requestedAction, status, progress, guideBoxDisabled, guideBoxFollowsMask, cameraFeedMode, images, classNames, }: IdCaptureFitGuideProps) => import("react/jsx-runtime").JSX.Element;
51
63
  //# sourceMappingURL=IdCaptureFitGuide.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IdCaptureFitGuide.d.ts","sourceRoot":"","sources":["../../../src/components/guides/IdCaptureFitGuide.tsx"],"names":[],"mappings":"AA0BA,OAAO,EAAE,YAAY,EAAqB,MAAM,OAAO,CAAA;AAGvD,OAAO,EACL,oBAAoB,EAEpB,+BAA+B,EAChC,MAAM,yBAAyB,CAAA;AAEhC,OAAO,EAAmB,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC5E,OAAO,EAA+B,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;AAKnF,MAAM,MAAM,2BAA2B,GAAG,+BAA+B,GAAG;IAC1E,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,WAAW,CAAC,EAAE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C,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,sBAAsB,CAAC,EAAE,OAAO,CAAA;IAChC,WAAW,CAAC,EAAE,MAAM,GAAG,YAAY,CAAA;IACnC,eAAe,CAAC,EAAE,oBAAoB,CAAA;IACtC,MAAM,CAAC,EAAE,iBAAiB,CAAA;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B;;;;;;;;;;;;;OAaG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B;;;;;OAKG;IACH,cAAc,CAAC,EAAE,cAAc,GAAG,YAAY,CAAA;IAC9C,MAAM,CAAC,EAAE,oBAAoB,CAAA;IAC7B,UAAU,CAAC,EAAE,2BAA2B,CAAA;CACzC,CAAA;AAED,eAAO,MAAM,iBAAiB,GAAI,+RAsB/B,sBAAsB,4CA4QxB,CAAA"}
@@ -35,7 +35,7 @@ import { defaultIdCaptureGuideImages } from '../guide_images';
35
35
  import useResizeObserver from '../../layout/useResizeObserver';
36
36
  import { useGuideOrientationContext } from '../../layout/GuideOrientationContext';
37
37
  import { useGuideLayout } from '../../layout/GuideLayoutContext';
38
- export const IdCaptureFitGuide = ({ aspectRatio, maskColor, borderRadius = 33, borderColor, borderWidth, padding, imageVisible, isMirrored = false, isBackToFront = false, portraitGuidesOnMobile = true, instruction, requestedAction = 'SHOW_ID_FRONT', status = 'ready', progress = 0, guideBoxDisabled = false, guideBoxFollowsMask = false, cameraFeedMode = 'snapToGuides', images = defaultIdCaptureGuideImages, classNames = {}, }) => {
38
+ export const IdCaptureFitGuide = ({ aspectRatio, maskColor, borderRadius = 33, borderColor, borderWidth, padding, maxWidth, maxHeight, imageVisible, isMirrored = false, isBackToFront = false, portraitGuidesOnMobile = true, instruction, requestedAction = 'SHOW_ID_FRONT', status = 'ready', progress = 0, guideBoxDisabled = false, guideBoxFollowsMask = false, cameraFeedMode = 'snapToGuides', images = defaultIdCaptureGuideImages, classNames = {}, }) => {
39
39
  const { imageAspectRatio } = useGuideOrientationContext();
40
40
  // sdk2 reads guideRectX/Y/Width/Height back out of its zustand store for
41
41
  // the CaptureAreaProgress block below; this port reads the same rect from
@@ -80,26 +80,29 @@ export const IdCaptureFitGuide = ({ aspectRatio, maskColor, borderRadius = 33, b
80
80
  const canvas = canvasRef.current;
81
81
  if (!canvas)
82
82
  return;
83
- const boundingWidth = wrapperWidth - padding * 2 - borderWidth * 2;
84
- const boundingHeight = wrapperHeight - padding * 2 - borderWidth * 2;
85
- let [rectX, rectY, rectWidth, rectHeight] = [
86
- padding + borderWidth,
87
- padding + borderWidth,
88
- boundingWidth,
89
- boundingHeight,
90
- ];
83
+ // The padding/border inset is what the wrapper leaves for the rect; the
84
+ // max* caps then bound it from above. Unset, `Math.min` with Infinity is
85
+ // the identity, so the geometry below is unchanged for every existing
86
+ // caller.
87
+ const boundingWidth = Math.min(wrapperWidth - padding * 2 - borderWidth * 2, maxWidth ?? Infinity);
88
+ const boundingHeight = Math.min(wrapperHeight - padding * 2 - borderWidth * 2, maxHeight ?? Infinity);
89
+ let [rectWidth, rectHeight] = [boundingWidth, boundingHeight];
91
90
  if (aspectRatio !== undefined) {
92
91
  const scaledWidth = boundingHeight * aspectRatio;
93
92
  const scaledHeight = boundingWidth / aspectRatio;
94
93
  if (scaledWidth < boundingWidth) {
95
94
  rectWidth = scaledWidth;
96
- rectX += (boundingWidth - rectWidth) / 2;
97
95
  }
98
96
  else {
99
97
  rectHeight = scaledHeight;
100
- rectY += (boundingHeight - rectHeight) / 2;
101
98
  }
102
99
  }
100
+ // Centred on the wrapper rather than on the inset box. With no cap the two
101
+ // are the same point — the inset is symmetric, so `padding + borderWidth`
102
+ // already equals half the leftover — but once a cap bites, only this one
103
+ // keeps the box centred instead of pinning it to the top-left inset.
104
+ const rectX = (wrapperWidth - rectWidth) / 2;
105
+ const rectY = (wrapperHeight - rectHeight) / 2;
103
106
  setCanvasDimensions(canvas, wrapperWidth, wrapperHeight);
104
107
  const ctx = canvas.getContext('2d');
105
108
  if (!ctx)
@@ -142,6 +145,9 @@ export const IdCaptureFitGuide = ({ aspectRatio, maskColor, borderRadius = 33, b
142
145
  // Only in mask-following mode: this asks the feed to clip itself to the
143
146
  // hole, which legacy integrations do not expect.
144
147
  radius: followsMask ? borderRadius : undefined,
148
+ // Same condition, different consumer: outside this mode the box below is
149
+ // the overlay's flex-derived one, NOT this rect.
150
+ isGuideBox: followsMask,
145
151
  });
146
152
  return () => { };
147
153
  }, [
@@ -151,11 +157,21 @@ export const IdCaptureFitGuide = ({ aspectRatio, maskColor, borderRadius = 33, b
151
157
  borderWidth,
152
158
  followsMask,
153
159
  maskColor,
160
+ maxHeight,
161
+ maxWidth,
154
162
  padding,
155
163
  setGuideRect,
156
164
  wrapperHeight,
157
165
  wrapperWidth,
158
166
  ]);
167
+ // Unmount only. Deliberately NOT the draw effect's cleanup, which re-runs on
168
+ // every dependency change — including the border colour, which flips with
169
+ // guidance — and would clear the rect just to republish it a moment later.
170
+ // A guide that is gone must not leave its rect behind: consumers that place
171
+ // themselves against it (the guidance message) would otherwise anchor to a
172
+ // box no longer on screen. Switching `guideType` from 'fit' to 'overlay' is
173
+ // the reachable case.
174
+ useEffect(() => () => setGuideRect(null), [setGuideRect]);
159
175
  return (_jsxs(_Fragment, { children: [_jsxs(CanvasWrapper, { ref: wrapperRef, "$maskColor": maskColor ?? '', "$aboveCameraFeed": maskAboveCameraFeed, className: classNames.canvasWrapper, children: [_jsx(Canvas, { ref: canvasRef, className: classNames.canvas }), guideBoxDisabled &&
160
176
  status === 'capturing' &&
161
177
  guideRect !== null &&
@@ -28,6 +28,13 @@ export type IdCaptureGuidesProps = {
28
28
  guideBoxDisabled?: boolean;
29
29
  /** Fit guides only: draw the guide box on the mask's own rect. See IdCaptureFitGuideProps. */
30
30
  guideBoxFollowsMask?: boolean;
31
+ /** Fit guides only. Corner radius of the guide box and of the mask hole it is
32
+ * cut from. Both are drawn in JS — a canvas `roundRect` and an SVG `rx` — so
33
+ * this is the only way to change them; CSS has nothing to bite on. */
34
+ guideBoxBorderRadius?: number;
35
+ /** Fit guides only: caps on the guide rect. See IdCaptureFitGuideProps. */
36
+ guideBoxMaxWidth?: number;
37
+ guideBoxMaxHeight?: number;
31
38
  cameraFeedMode?: 'snapToGuides' | 'fullscreen';
32
39
  images?: IdCaptureGuideImages;
33
40
  classNames?: IdCaptureGuidesClassNames;
@@ -43,5 +50,5 @@ export type IdCaptureGuidesProps = {
43
50
  * keeps the landscape guides in every orientation. */
44
51
  portraitGuidesOnMobile?: boolean;
45
52
  };
46
- export declare function IdCaptureGuides({ state, isRearFacing, guideType, guideBoxDisabled, guideBoxFollowsMask, cameraFeedMode, images, classNames, verbiage: rawVerbiage, status: statusOverride, portraitGuidesOnMobile, }: IdCaptureGuidesProps): import("react/jsx-runtime").JSX.Element;
53
+ export declare function IdCaptureGuides({ state, isRearFacing, guideType, guideBoxDisabled, guideBoxFollowsMask, guideBoxBorderRadius, guideBoxMaxWidth, guideBoxMaxHeight, cameraFeedMode, images, classNames, verbiage: rawVerbiage, status: statusOverride, portraitGuidesOnMobile, }: IdCaptureGuidesProps): import("react/jsx-runtime").JSX.Element;
47
54
  //# sourceMappingURL=IdCaptureGuides.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IdCaptureGuides.d.ts","sourceRoot":"","sources":["../../../src/components/guides/IdCaptureGuides.ts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,MAAM,CAAA;IAC7B,2EAA2E;IAC3E,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,cAAc,CAAC,EAAE,cAAc,GAAG,YAAY,CAAA;IAC9C,MAAM,CAAC,EAAE,oBAAoB,CAAA;IAC7B,UAAU,CAAC,EAAE,yBAAyB,CAAA;IACtC,QAAQ,CAAC,EAAE,uBAAuB,CAAA;IAClC;;;;yEAIqE;IACrE,MAAM,CAAC,EAAE,iBAAiB,CAAA;IAC1B;;0DAEsD;IACtD,sBAAsB,CAAC,EAAE,OAAO,CAAA;CACjC,CAAA;AAED,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,YAAY,EACZ,SAAiB,EACjB,gBAAwB,EACxB,mBAA2B,EAC3B,oBAAoB,EACpB,gBAAgB,EAChB,iBAAiB,EACjB,cAA+B,EAC/B,MAAoC,EACpC,UAAe,EACf,QAAQ,EAAE,WAAgB,EAC1B,MAAM,EAAE,cAAc,EACtB,sBAA6B,GAC9B,EAAE,oBAAoB,2CAiHtB"}
@@ -81,7 +81,7 @@ import { IdCaptureGuideOverlay, } from './IdCaptureGuideOverlay';
81
81
  import { defaultIdCaptureGuideImages } from '../guide_images';
82
82
  import { BarcodeGuideOverlay, } from '../barcode/BarcodeGuideOverlay';
83
83
  import { BarcodeSuccessOverlay } from '../barcode/BarcodeSuccessOverlay';
84
- export function IdCaptureGuides({ state, isRearFacing, guideType = 'fit', guideBoxDisabled = false, guideBoxFollowsMask = false, cameraFeedMode = 'snapToGuides', images = defaultIdCaptureGuideImages, classNames = {}, verbiage: rawVerbiage = {}, status: statusOverride, portraitGuidesOnMobile = true, }) {
84
+ export function IdCaptureGuides({ state, isRearFacing, guideType = 'fit', guideBoxDisabled = false, guideBoxFollowsMask = false, guideBoxBorderRadius, guideBoxMaxWidth, guideBoxMaxHeight, cameraFeedMode = 'snapToGuides', images = defaultIdCaptureGuideImages, classNames = {}, verbiage: rawVerbiage = {}, status: statusOverride, portraitGuidesOnMobile = true, }) {
85
85
  const { t } = useTranslation();
86
86
  const theme = useTheme();
87
87
  const barcodeVerbiage = useTranslations(rawVerbiage, {
@@ -127,7 +127,7 @@ export function IdCaptureGuides({ state, isRearFacing, guideType = 'fit', guideB
127
127
  return (_jsxs(_Fragment, { children: [guideType === 'overlay' && (_jsx(IdCaptureGuideOverlay, { images: images, classNames: classNames, portraitGuidesOnMobile: portraitGuidesOnMobile, status: status, progress: progress, guideBoxDisabled: guideBoxDisabled, instruction: instruction, isMirrored: !isRearFacing, borderColor: borderColor, imageVisible: requestedAction === 'FLIP_ID' ||
128
128
  !state.idCardFrontDetectionThresholdMet ||
129
129
  !state.documentInBounds ||
130
- state.documentTooClose })), guideType === 'fit' && (_jsx(IdCaptureFitGuide, { images: images, classNames: classNames, portraitGuidesOnMobile: portraitGuidesOnMobile, requestedAction: requestedAction, status: status, progress: progress, guideBoxDisabled: guideBoxDisabled, guideBoxFollowsMask: guideBoxFollowsMask, cameraFeedMode: cameraFeedMode, instruction: instruction, isMirrored: !isRearFacing, isBackToFront: isBackToFront, borderColor: borderColor, imageVisible: requestedAction === 'FLIP_ID' ||
130
+ state.documentTooClose })), guideType === 'fit' && (_jsx(IdCaptureFitGuide, { images: images, classNames: classNames, portraitGuidesOnMobile: portraitGuidesOnMobile, requestedAction: requestedAction, status: status, progress: progress, guideBoxDisabled: guideBoxDisabled, guideBoxFollowsMask: guideBoxFollowsMask, borderRadius: guideBoxBorderRadius, maxWidth: guideBoxMaxWidth, maxHeight: guideBoxMaxHeight, cameraFeedMode: cameraFeedMode, instruction: instruction, isMirrored: !isRearFacing, isBackToFront: isBackToFront, borderColor: borderColor, imageVisible: requestedAction === 'FLIP_ID' ||
131
131
  !state.detectionThresholdMet ||
132
132
  !state.documentInBounds ||
133
133
  state.documentTooClose ||
@@ -1,5 +1,5 @@
1
- import { type DocumentCaptureController, type DocumentCaptureControllerConfig } from '@idmission/websdk-core/documentCapture';
2
- import type { CapturedDocument } from '../components/document/types';
1
+ import { type CapturedDocument, type DocumentCaptureCompleteHandler, type DocumentCaptureController, type DocumentCaptureControllerConfig } from '@idmission/websdk-core/documentCapture';
2
+ import type { DocumentCapturePrompt } from '../components/document/types';
3
3
  import type { CommonFlowProps, DocumentCaptureFlowViewProps } from './types';
4
4
  /**
5
5
  * The submission-outcome callbacks are omitted rather than inherited-and-ignored.
@@ -13,11 +13,11 @@ export type DocumentCaptureFlowProps = Omit<CommonFlowProps, 'captureAdditionalD
13
13
  controller?: DocumentCaptureController;
14
14
  capture?: Omit<DocumentCaptureControllerConfig, 'client' | 'documents'>;
15
15
  view?: DocumentCaptureFlowViewProps;
16
- /** The public parity config, carrying instructions and per-document callbacks. */
17
- documents?: readonly CapturedDocument[];
16
+ /** Core inputs composed with React presentation and per-document callbacks. */
17
+ documents?: readonly DocumentCapturePrompt[];
18
18
  onDocumentCaptured?: (document: CapturedDocument, index: number) => void;
19
19
  onDocumentUploaded?: (document: CapturedDocument, index: number) => void;
20
- onComplete?: (documents: readonly CapturedDocument[]) => void;
20
+ onComplete?: DocumentCaptureCompleteHandler;
21
21
  };
22
22
  export declare function DocumentCaptureFlow({ client, controller, capture, view, documents, submission, initialArtifacts, theme, className, onDocumentCaptured, onDocumentUploaded, onComplete, children, ...callbacks }: DocumentCaptureFlowProps): import("react/jsx-runtime").JSX.Element;
23
23
  //# sourceMappingURL=DocumentCaptureFlow.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DocumentCaptureFlow.d.ts","sourceRoot":"","sources":["../../src/flows/DocumentCaptureFlow.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAEL,KAAK,yBAAyB,EAC9B,KAAK,+BAA+B,EAErC,MAAM,wCAAwC,CAAA;AAE/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AAIpE,OAAO,KAAK,EAAE,eAAe,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAA;AAE5E;;;;;;;GAOG;AACH,M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AA4B,EAAE,MAAM,SAAS,CAAA;AAE5E;;;;;;;GAOG;AACH,MAAM,MAAM,wBAAwB,GAAG,IAAI,CACzC,eAAe,EACb,4BAA4B,GAC5B,mBAAmB,GACnB,iBAAiB,GACjB,YAAY,GACZ,YAAY,GACZ,UAAU,GACV,qBAAqB,GACrB,kBAAkB,CACrB,GAAG;IACF,UAAU,CAAC,EAAE,yBAAyB,CAAA;IACtC,OAAO,CAAC,EAAE,IAAI,CAAC,+BAA+B,EAAE,QAAQ,GAAG,WAAW,CAAC,CAAA;IACvE,IAAI,CAAC,EAAE,4BAA4B,CAAA;IACnC,+EAA+E;IAC/E,SAAS,CAAC,EAAE,SAAS,qBAAqB,EAAE,CAAA;IAC5C,kBAAkB,CAAC,EAAE,CAAC,QAAQ,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACxE,kBAAkB,CAAC,EAAE,CAAC,QAAQ,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACxE,UAAU,CAAC,EAAE,8BAA8B,CAAA;CAC5C,CAAA;AAQD,wBAAgB,mBAAmB,CAAC,EAClC,MAAM,EACN,UAAU,EACV,OAAuB,EACvB,IAAiB,EACjB,SAA2B,EAC3B,UAA6B,EAC7B,gBAAkC,EAClC,KAAK,EACL,SAAS,EACT,kBAAkB,EAClB,kBAAkB,EAClB,UAAU,EACV,QAAQ,EACR,GAAG,SAAS,EACb,EAAE,wBAAwB,2CAmI1B"}
@@ -5,15 +5,15 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
5
5
  // SubmissionAction.NONE and never posts a submission — the uploaded document
6
6
  // ids reach the integrator through onComplete alone.
7
7
  //
8
- // This layer also owns the per-document callbacks. sdk2's CapturedDocument
9
- // carries `onCaptured`/`onUploaded` per entry (DocumentCaptureStateProvider
10
- // .tsx:306-314), but those take React-facing objects and core is React-free, so
11
- // the controller only ever reports `(entry, index)`. The mapping back to the
12
- // caller's own objects happens here.
8
+ // This layer also owns the per-document prompt callbacks. sdk2's combined
9
+ // CapturedDocument carries `onCaptured`/`onUploaded` per entry
10
+ // (DocumentCaptureStateProvider.tsx:306-314); the direct UI prompt keeps those
11
+ // callbacks while their payload is core's canonical data-only result.
13
12
  import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
14
13
  import { SubmissionAction, } from '@idmission/websdk-core/client';
15
- import { createDocumentCaptureController, } from '@idmission/websdk-core/documentCapture';
14
+ import { createDocumentCaptureController, toCapturedDocument, } from '@idmission/websdk-core/documentCapture';
16
15
  import { useDocumentCapture } from '../bindings/useDocumentCapture';
16
+ import { error } from '../utils/logger';
17
17
  import { buildDocumentCaptureStep } from './documentCapture';
18
18
  import { CompositeWizard } from './CompositeWizard';
19
19
  import { FlowChassis } from './FlowChassis';
@@ -22,18 +22,6 @@ const EMPTY_CAPTURE = {};
22
22
  const EMPTY_VIEW = {};
23
23
  const EMPTY_SUBMISSION = {};
24
24
  const EMPTY_ARTIFACTS = {};
25
- /** Recombines the caller's document with the live entry, so consumers see the
26
- * populated object sdk2 handed them rather than a bare config. */
27
- function merge(document, entry) {
28
- return {
29
- ...document,
30
- ...entry.item,
31
- content: entry.content ?? undefined,
32
- contentUrl: entry.contentUrl ?? undefined,
33
- documentId: entry.documentId ?? undefined,
34
- uploadState: entry.uploadState,
35
- };
36
- }
37
25
  export function DocumentCaptureFlow({ client, controller, capture = EMPTY_CAPTURE, view = EMPTY_VIEW, documents = EMPTY_DOCUMENTS, submission = EMPTY_SUBMISSION, initialArtifacts = EMPTY_ARTIFACTS, theme, className, onDocumentCaptured, onDocumentUploaded, onComplete, children, ...callbacks }) {
38
26
  // Latched in refs so the controller, created once, always calls the current
39
27
  // props without being torn down and rebuilt on every render.
@@ -49,6 +37,8 @@ export function DocumentCaptureFlow({ client, controller, capture = EMPTY_CAPTUR
49
37
  createDocumentCaptureController({
50
38
  ...capture,
51
39
  client,
40
+ jobID: submission.jobID,
41
+ taskID: submission.taskID,
52
42
  // Only the React-free half crosses into core.
53
43
  documents: documentsRef.current.map(({ title, aspectRatio, processAsPOA, content }) => ({
54
44
  title,
@@ -79,31 +69,44 @@ export function DocumentCaptureFlow({ client, controller, capture = EMPTY_CAPTUR
79
69
  allUploadedFired.current = false;
80
70
  }
81
71
  if (entry.content && !capturedFired.current.has(index)) {
72
+ const document = toCapturedDocument(entry);
73
+ if (!document)
74
+ return;
82
75
  capturedFired.current.add(index);
83
- const merged = merge(documentsRef.current[index], entry);
84
76
  // Per-document first, then flow-level — the order sdk2 used at :312.
85
- documentsRef.current[index]?.onCaptured?.(merged);
86
- capturedRef.current?.(merged, index);
77
+ documentsRef.current[index]?.onCaptured?.(document);
78
+ capturedRef.current?.(document, index);
87
79
  }
88
80
  if (entry.uploadState === 'succeeded' &&
89
81
  !uploadedFired.current.has(index)) {
82
+ const document = toCapturedDocument(entry);
83
+ if (!document)
84
+ return;
90
85
  uploadedFired.current.add(index);
91
- const merged = merge(documentsRef.current[index], entry);
92
- documentsRef.current[index]?.onUploaded?.(merged);
93
- uploadedRef.current?.(merged, index);
86
+ documentsRef.current[index]?.onUploaded?.(document);
87
+ uploadedRef.current?.(document, index);
94
88
  }
95
89
  });
96
90
  const everyUploaded = state.documents.length > 0 &&
97
91
  state.documents.every((entry) => entry.uploadState === 'succeeded');
98
92
  if (everyUploaded && !allUploadedFired.current) {
93
+ const capturedDocuments = state.documents.flatMap((entry) => {
94
+ const document = toCapturedDocument(entry);
95
+ return document ? [document] : [];
96
+ });
97
+ if (capturedDocuments.length !== state.documents.length)
98
+ return;
99
99
  allUploadedFired.current = true;
100
- completeRef.current?.(state.documents.map((entry, index) => merge(documentsRef.current[index], entry)));
100
+ const completion = completeRef.current?.(capturedDocuments);
101
+ if (completion) {
102
+ void completion.catch((cause) => error('[DocumentCaptureFlow] onComplete rejected', cause));
103
+ }
101
104
  }
102
105
  }, [state]);
103
106
  // `documents` has to reach the view, not just the controller: only its
104
107
  // React-free half crosses into core, so `instructions` and `cameraFeedMode`
105
108
  // exist nowhere else. Omitting it silently dropped both — and `aspectRatio`
106
- // kept working (it travels through the core item), which is what made the
109
+ // kept working (it travels through the core input), which is what made the
107
110
  // prop look plumbed.
108
111
  const steps = useMemo(() => [
109
112
  buildDocumentCaptureStep(resolvedController, { documents, ...view }),
@@ -1,5 +1,5 @@
1
1
  import { type SubmissionArtifacts } from '@idmission/websdk-core/client';
2
- import { type SelfieCaptureController, type SelfieLivenessConfig } from '@idmission/websdk-core/selfieCapture';
2
+ import { type SelfieCaptureController, type SelfieCaptureThresholds, type SelfieLivenessConfig } from '@idmission/websdk-core/selfieCapture';
3
3
  import { type SignatureCaptureController, type SignatureCaptureControllerConfig } from '@idmission/websdk-core/signatureCapture';
4
4
  import { type SignatureCaptureViewProps } from '../SignatureCaptureView';
5
5
  import type { CommonFlowProps, FaceLivenessFlowConfig, FaceLivenessFlowViewProps, FlowResultCallbacks } from './types';
@@ -29,5 +29,23 @@ export type SignatureKYCFlowProps = Omit<CommonFlowProps, keyof FlowResultCallba
29
29
  onCaptured?: (artifacts: SubmissionArtifacts) => void;
30
30
  onCaptureError?: (error: Error) => void;
31
31
  };
32
+ /**
33
+ * Face-tracking thresholds the face stage runs under, given the layout its
34
+ * oval is drawn in.
35
+ *
36
+ * The legacy layout puts the oval in the TOP HALF of the screen
37
+ * (`SignatureCaptureView`'s `LegacyFaceGuideContainer`, bottom-aligned within
38
+ * it) with the signature pad below. Face tracking centres on the CAMERA
39
+ * FRAME, so requiring vertical centering there rejects a face sitting exactly
40
+ * in the oval and only accepts one at the middle of the screen — well below
41
+ * the guide the user is aiming at, and with nothing on screen to say so. sdk2
42
+ * turns the vertical half of that check off across this whole flow for the
43
+ * same reason (`VideoSignatureWizard.tsx:721`).
44
+ *
45
+ * The non-legacy layout centres its oval (`FaceCaptureGuideOverlay`), where
46
+ * the frame's centre IS the guide, so it keeps the check. A caller's own
47
+ * `thresholds` outrank both.
48
+ */
49
+ export declare function faceThresholdsForLayout(legacyVideoLayout: boolean, thresholds: SelfieCaptureThresholds | undefined): SelfieCaptureThresholds | undefined;
32
50
  export declare function SignatureKYCFlow({ client, selfieController, signatureController, faceCapture, signatureCapture, faceView, signatureView, challengeResponse, allowVirtualCameras, skipLivenessValidation, allowManualSelfieCaptureOnLoadingError, headTrackingDisabled, headTrackingBoundaryPercentage, headTrackingBoundaryType, allowSignatureAfterLivenessCheckFailure, showFaceGuideThenSignaturePad, skipSuccessScreen, submission, initialArtifacts, theme, className, geolocationEnabled, geolocationRequired, remoteDiagnostics, loadingSpinner, onCaptured, onCaptureError, }: SignatureKYCFlowProps): import("react/jsx-runtime").JSX.Element;
33
51
  //# sourceMappingURL=SignatureKYCFlow.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SignatureKYCFlow.d.ts","sourceRoot":"","sources":["../../src/flows/SignatureKYCFlow.tsx"],"names":[],"mappings":"AAGA,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAEL,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EAC1B,MAAM,sCAAsC,CAAA;AAC7C,OAAO,EAEL,KAAK,0BAA0B,EAC/B,KAAK,gCAAgC,EACtC,MAAM,yCAAyC,CAAA;AAShD,OAAO,EAEL,KAAK,yBAAyB,EAC/B,MAAM,yBAAyB,CAAA;AAOhC,OAAO,KAAK,EACV,eAAe,EACf,sBAAsB,EACtB,yBAAyB,EACzB,mBAAmB,EACpB,MAAM,SAAS,CAAA;AAEhB,MAAM,MAAM,qBAAqB,GAAG,IAAI,CACtC,eAAe,EAIb,MAAM,mBAAmB,GACzB,UAAU,GACV,mBAAmB,GACnB,iBAAiB,GACjB,4BAA4B,CAC/B,GAAG;IACF,gBAAgB,CAAC,EAAE,uBAAuB,CAAA;IAC1C,mBAAmB,CAAC,EAAE,0BAA0B,CAAA;IAChD,WAAW,CAAC,EAAE,sBAAsB,CAAA;IACpC,gBAAgB,CAAC,EAAE,gCAAgC,CAAA;IACnD,QA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