@incodetech/web 0.0.0-dev-20260812-8c1f33d0 → 0.0.0-dev-20260812-d815489d
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/dist/authentication/authentication.es.js +1 -1
- package/dist/base.css +7 -0
- package/dist/certificate-issuance/certificate-issuance.es.js +1 -1
- package/dist/document-capture/document-capture.es.js +1 -1
- package/dist/documentCapture-DJUAP7RQ.js +2 -0
- package/dist/{documentCapture-BvEGCYj-.js → documentCapture-Dg1O-1c5.js} +2 -2
- package/dist/{dynamicForms-P-4E42IA.js → dynamicForms-9NI_Ypq6.js} +1 -1
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/ekybModule-DiBGxasL.js +2 -0
- package/dist/{ekybModule-DmjkzVWE.js → ekybModule-Dj-BvJtb.js} +1 -1
- package/dist/email/email.es.js +1 -1
- package/dist/{emailInput-B0P2Q-pk.js → emailInput-DSRzT62N.js} +1 -1
- package/dist/{extensibility-iJYzpW6H.js → extensibility-5pL-rL5z.js} +1 -1
- package/dist/extensibility.es.js +2 -2
- package/dist/field-comparison/field-comparison.es.js +1 -1
- package/dist/fieldComparison-D794U8Yh.js +2 -0
- package/dist/{fieldComparison-NLdDSOEh.js → fieldComparison-DM759xgn.js} +1 -1
- package/dist/fiscal-qr/fiscal-qr.es.js +1 -1
- package/dist/flow/flow.es.js +1 -1
- package/dist/flow/styles.css +178 -6
- package/dist/government-validation/government-validation.es.js +1 -1
- package/dist/id/id.es.js +2 -2
- package/dist/{idOcr-gsIXHq6R.js → idOcr-kh-umkwD.js} +1 -1
- package/dist/redirect-to-mobile/redirect-to-mobile.es.js +1 -1
- package/dist/selfie/selfie.es.js +182 -4
- package/dist/selfie/styles.css +185 -0
- package/dist/signature/signature.es.js +1 -1
- package/dist/{tutorial-BZZC93Ur.js → tutorial-DU8ga1m4.js} +16 -4
- package/dist/types/extensibility.d.ts +9 -2
- package/dist/{useModuleLoader-D_YpuVsS.js → useModuleLoader-Ct3amb9c.js} +6 -6
- package/dist/workflow/styles.css +178 -6
- package/dist/workflow/workflow.es.js +1 -1
- package/package.json +2 -2
- package/dist/documentCapture-DdHdRPzR.js +0 -2
- package/dist/ekybModule-CiaxFHXo.js +0 -2
- package/dist/fieldComparison-B_r9Bal7.js +0 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { v as u } from "../vendor-preact-mvwZ8mJj.js";
|
|
2
2
|
import { _ as useModuleTerminalCallbacks, g as isTerminalModuleState, r as withStandaloneModuleBootstrap, t as IncodeComponent, y as useManager } from "../incodeComponent-K9ZWg302.js";
|
|
3
|
-
import { n as Capture, t as Tutorial } from "../tutorial-
|
|
3
|
+
import { n as Capture, t as Tutorial } from "../tutorial-DU8ga1m4.js";
|
|
4
4
|
import { n as Permissions } from "../manualCaptureButton-quGa2ufS.js";
|
|
5
5
|
import { t as registerIncodeModuleElement } from "../incodeModule-CcLzar_X.js";
|
|
6
6
|
import { createAuthenticationManager } from "@incodetech/core/authentication";
|
package/dist/base.css
CHANGED
|
@@ -4838,6 +4838,13 @@
|
|
|
4838
4838
|
margin: auto;
|
|
4839
4839
|
}
|
|
4840
4840
|
|
|
4841
|
+
.IncodeBaseTutorialSecondaryAction {
|
|
4842
|
+
margin: auto;
|
|
4843
|
+
margin-top: var(--spacing-16, var(--spacing-16, 16px));
|
|
4844
|
+
justify-content: center;
|
|
4845
|
+
display: flex;
|
|
4846
|
+
}
|
|
4847
|
+
|
|
4841
4848
|
.IncodeBaseTutorialAnimation {
|
|
4842
4849
|
height: 100%;
|
|
4843
4850
|
}
|
|
@@ -4,7 +4,7 @@ import { _ as useModuleTerminalCallbacks, o as Page, r as withStandaloneModuleBo
|
|
|
4
4
|
import { t as Spacer } from "../spacer-CDlQd12V.js";
|
|
5
5
|
import { o as TypographyH5 } from "../spinner-CLZ2fz4u.js";
|
|
6
6
|
import { r as Button } from "../incode-logo-rGFjZHqi.js";
|
|
7
|
-
import { y as PasswordInputComposed } from "../extensibility-
|
|
7
|
+
import { y as PasswordInputComposed } from "../extensibility-5pL-rL5z.js";
|
|
8
8
|
import { t as SuccessIcon } from "../successIcon-Bj8Y9CuI.js";
|
|
9
9
|
import { t as AutoFocusTitle } from "../autoFocusTitle-gLba2mgp.js";
|
|
10
10
|
import { t as VerificationResult } from "../verificationResult-B8HwR07t.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as DocumentCapture } from "../documentCapture-
|
|
1
|
+
import { t as DocumentCapture } from "../documentCapture-Dg1O-1c5.js";
|
|
2
2
|
export { DocumentCapture };
|
|
@@ -4,11 +4,11 @@ import { _ as useModuleTerminalCallbacks, m as useIsMobileDeviceWidth, o as Page
|
|
|
4
4
|
import { s as Asset, t as Spacer, u as cn } from "./spacer-CDlQd12V.js";
|
|
5
5
|
import { t as Spinner } from "./spinner-CLZ2fz4u.js";
|
|
6
6
|
import { r as Button } from "./incode-logo-rGFjZHqi.js";
|
|
7
|
-
import { b as ProgressBar, d as CaptureFooter, f as CameraOverlayHeader, p as CameraOverlay } from "./extensibility-
|
|
7
|
+
import { b as ProgressBar, d as CaptureFooter, f as CameraOverlayHeader, p as CameraOverlay } from "./extensibility-5pL-rL5z.js";
|
|
8
8
|
import { a as FileIcon, g as CameraIcon, r as LockIcon } from "./icons--ezYG2Fb.js";
|
|
9
9
|
import { t as SuccessIcon } from "./successIcon-Bj8Y9CuI.js";
|
|
10
10
|
import { t as Modal } from "./modal-BjjJFpZu.js";
|
|
11
|
-
import { i as ErrorContent } from "./tutorial-
|
|
11
|
+
import { i as ErrorContent } from "./tutorial-DU8ga1m4.js";
|
|
12
12
|
import { t as AutoFocusTitle } from "./autoFocusTitle-gLba2mgp.js";
|
|
13
13
|
import { t as BottomSheet } from "./bottomSheet-Cp8DLulN.js";
|
|
14
14
|
import { a as CameraView, o as CameraFrame } from "./manualCaptureButton-t_oIol88.js";
|
|
@@ -9,7 +9,7 @@ import { t as DropdownComposed } from "./dropdownComposed-OHDHzt1Q.js";
|
|
|
9
9
|
import { t as DateInputComposed } from "./dateInputComposed-eRcbt_SL.js";
|
|
10
10
|
import { t as registerIncodeModuleElement } from "./incodeModule-CcLzar_X.js";
|
|
11
11
|
import { n as getRequiredHintMode, t as getFieldHint } from "./requiredLabelHint-Dx0WS2cR.js";
|
|
12
|
-
import { t as EmailInput } from "./emailInput-
|
|
12
|
+
import { t as EmailInput } from "./emailInput-DSRzT62N.js";
|
|
13
13
|
import { createDynamicFormsManager } from "@incodetech/core/dynamic-forms";
|
|
14
14
|
import { formatCPF, isValidCPF } from "@incodetech/core/id-ocr";
|
|
15
15
|
//#region src/modules/dynamic-forms/dynamicForms.tsx
|
package/dist/ekyb/ekyb.es.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as EkybModule } from "../ekybModule-
|
|
1
|
+
import { t as EkybModule } from "../ekybModule-Dj-BvJtb.js";
|
|
2
2
|
export { EkybModule };
|
|
@@ -4,7 +4,7 @@ import { _ as useModuleTerminalCallbacks, h as useFormScrollable, o as Page, r a
|
|
|
4
4
|
import { t as Spacer } from "./spacer-CDlQd12V.js";
|
|
5
5
|
import { t as Spinner } from "./spinner-CLZ2fz4u.js";
|
|
6
6
|
import { r as Button } from "./incode-logo-rGFjZHqi.js";
|
|
7
|
-
import "./extensibility-
|
|
7
|
+
import "./extensibility-5pL-rL5z.js";
|
|
8
8
|
import { t as VerificationResult } from "./verificationResult-B8HwR07t.js";
|
|
9
9
|
import { t as InputComposed } from "./inputComposed-BeROn635.js";
|
|
10
10
|
import { i as translateError, r as FormField } from "./radioGroupComposed-DzNGUbZQ.js";
|
package/dist/email/email.es.js
CHANGED
|
@@ -5,7 +5,7 @@ import { t as Spacer } from "../spacer-CDlQd12V.js";
|
|
|
5
5
|
import { r as Button } from "../incode-logo-rGFjZHqi.js";
|
|
6
6
|
import { t as OtpInput } from "../otpInput-D5dLXrmC.js";
|
|
7
7
|
import { t as registerIncodeModuleElement } from "../incodeModule-CcLzar_X.js";
|
|
8
|
-
import { t as EmailInput } from "../emailInput-
|
|
8
|
+
import { t as EmailInput } from "../emailInput-DSRzT62N.js";
|
|
9
9
|
import { createEmailManager } from "@incodetech/core/email";
|
|
10
10
|
//#region src/modules/email/email.tsx
|
|
11
11
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as useTranslation } from "./uiConfig-B5ASPUL4.js";
|
|
2
2
|
import { v as u } from "./vendor-preact-mvwZ8mJj.js";
|
|
3
|
-
import "./extensibility-
|
|
3
|
+
import "./extensibility-5pL-rL5z.js";
|
|
4
4
|
import { t as InputComposed } from "./inputComposed-BeROn635.js";
|
|
5
5
|
//#region src/modules/email/emailInput.tsx
|
|
6
6
|
var EMAIL_REGEX = /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/;
|
|
@@ -8,7 +8,7 @@ import "./processing-BsvHyDWa.js";
|
|
|
8
8
|
import { _ as CalendarIcon, c as EllipseIcon, h as CaptureButtonIcon, i as HelpIcon, o as EyeOffIcon, r as LockIcon, s as EyeIcon, t as SvgLightningIcon, u as ChevronRightIcon } from "./icons--ezYG2Fb.js";
|
|
9
9
|
import { t as SuccessIcon } from "./successIcon-Bj8Y9CuI.js";
|
|
10
10
|
import { t as Modal } from "./modal-BjjJFpZu.js";
|
|
11
|
-
import { r as BaseTutorial } from "./tutorial-
|
|
11
|
+
import { r as BaseTutorial } from "./tutorial-DU8ga1m4.js";
|
|
12
12
|
import "./verificationResult-B8HwR07t.js";
|
|
13
13
|
import "./connectionError-DAeXp8sE.js";
|
|
14
14
|
import { t as InputComposed } from "./inputComposed-BeROn635.js";
|
package/dist/extensibility.es.js
CHANGED
|
@@ -3,12 +3,12 @@ import { n as LandscapeBlocker, o as Page, t as IncodeComponent, v as useScreenO
|
|
|
3
3
|
import { o as Lottie, t as Spacer } from "./spacer-CDlQd12V.js";
|
|
4
4
|
import { a as TypographyH4, i as TypographyH3, n as Title, o as TypographyH5, r as TypographyH1, s as TypographyP, t as Spinner } from "./spinner-CLZ2fz4u.js";
|
|
5
5
|
import { n as ErrorIcon, r as Button } from "./incode-logo-rGFjZHqi.js";
|
|
6
|
-
import { _ as TextArea, b as ProgressBar, d as CaptureFooter, f as CameraOverlayHeader, g as TextAreaComposed, h as VerificationOptionCardList, i as Capture, m as VerificationOptionCard, n as Chooser, o as IdExpired, p as CameraOverlay, r as Tutorial, s as IdError, t as FlipAnimation, u as ManualCapture, v as SegmentedDateInput, x as Overlay, y as PasswordInputComposed } from "./extensibility-
|
|
6
|
+
import { _ as TextArea, b as ProgressBar, d as CaptureFooter, f as CameraOverlayHeader, g as TextAreaComposed, h as VerificationOptionCardList, i as Capture, m as VerificationOptionCard, n as Chooser, o as IdExpired, p as CameraOverlay, r as Tutorial, s as IdError, t as FlipAnimation, u as ManualCapture, v as SegmentedDateInput, x as Overlay, y as PasswordInputComposed } from "./extensibility-5pL-rL5z.js";
|
|
7
7
|
import { t as Processing } from "./processing-BsvHyDWa.js";
|
|
8
8
|
import { _ as CalendarIcon, a as FileIcon, c as EllipseIcon, d as ChevronLeftIcon, f as ChevronDown, g as CameraIcon, h as CaptureButtonIcon, i as HelpIcon, l as CloseIcon, m as CheckmarkIcon, n as SearchIcon, o as EyeOffIcon, p as CheckmarkCompactIcon, r as LockIcon, s as EyeIcon, t as SvgLightningIcon, u as ChevronRightIcon, v as WarningIcon } from "./icons--ezYG2Fb.js";
|
|
9
9
|
import { t as SuccessIcon } from "./successIcon-Bj8Y9CuI.js";
|
|
10
10
|
import { t as Modal } from "./modal-BjjJFpZu.js";
|
|
11
|
-
import { i as ErrorContent, n as Capture$1, r as BaseTutorial, t as Tutorial$1 } from "./tutorial-
|
|
11
|
+
import { i as ErrorContent, n as Capture$1, r as BaseTutorial, t as Tutorial$1 } from "./tutorial-DU8ga1m4.js";
|
|
12
12
|
import { t as VerificationResult } from "./verificationResult-B8HwR07t.js";
|
|
13
13
|
import { t as ConnectionError } from "./connectionError-DAeXp8sE.js";
|
|
14
14
|
import { n as Input, t as InputComposed } from "./inputComposed-BeROn635.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as FieldComparison } from "../fieldComparison-
|
|
1
|
+
import { t as FieldComparison } from "../fieldComparison-DM759xgn.js";
|
|
2
2
|
export { FieldComparison };
|
|
@@ -3,7 +3,7 @@ import { v as u } from "./vendor-preact-mvwZ8mJj.js";
|
|
|
3
3
|
import { _ as useModuleTerminalCallbacks, o as Page, r as withStandaloneModuleBootstrap, t as IncodeComponent, y as useManager } from "./incodeComponent-K9ZWg302.js";
|
|
4
4
|
import { t as Spacer } from "./spacer-CDlQd12V.js";
|
|
5
5
|
import { r as Button } from "./incode-logo-rGFjZHqi.js";
|
|
6
|
-
import "./extensibility-
|
|
6
|
+
import "./extensibility-5pL-rL5z.js";
|
|
7
7
|
import { t as VerificationResult } from "./verificationResult-B8HwR07t.js";
|
|
8
8
|
import { t as InputComposed } from "./inputComposed-BeROn635.js";
|
|
9
9
|
import { t as registerIncodeModuleElement } from "./incodeModule-CcLzar_X.js";
|
|
@@ -3,7 +3,7 @@ import { v as u } from "../vendor-preact-mvwZ8mJj.js";
|
|
|
3
3
|
import { _ as useModuleTerminalCallbacks, o as Page, r as withStandaloneModuleBootstrap, t as IncodeComponent, y as useManager } from "../incodeComponent-K9ZWg302.js";
|
|
4
4
|
import { t as Spacer } from "../spacer-CDlQd12V.js";
|
|
5
5
|
import { r as Button } from "../incode-logo-rGFjZHqi.js";
|
|
6
|
-
import { f as CameraOverlayHeader, p as CameraOverlay } from "../extensibility-
|
|
6
|
+
import { f as CameraOverlayHeader, p as CameraOverlay } from "../extensibility-5pL-rL5z.js";
|
|
7
7
|
import { t as VerificationResult } from "../verificationResult-B8HwR07t.js";
|
|
8
8
|
import { a as CameraView, o as CameraFrame } from "../manualCaptureButton-t_oIol88.js";
|
|
9
9
|
import { t as registerIncodeModuleElement } from "../incodeModule-CcLzar_X.js";
|
package/dist/flow/flow.es.js
CHANGED
|
@@ -4,7 +4,7 @@ import { a as TerminalErrorPage, i as ResolvedConfigProvider, l as TransitionSpi
|
|
|
4
4
|
import { n as ErrorIcon } from "../incode-logo-rGFjZHqi.js";
|
|
5
5
|
import { t as StatusPage } from "../statusPage--GVFSUJp.js";
|
|
6
6
|
import { t as registerIncodeModuleElement } from "../incodeModule-CcLzar_X.js";
|
|
7
|
-
import { _ as warmupWasmIfNeeded, a as resolveApiKey, c as HEADLESS_FLOW_MODULE_KEYS, d as fetchTheme, f as initializeFlowManager, h as preloadRedirectToMobile, l as LAZY_UI_MODULES, m as preloadHomeScreen, n as useModulePreloader, o as extractIncodeStatus, p as preloadFirstModule, r as usePrefetchNextModule, s as UnsupportedModule, t as useModuleLoader, u as createFlowManager, v as isDesktopOrEmulated } from "../useModuleLoader-
|
|
7
|
+
import { _ as warmupWasmIfNeeded, a as resolveApiKey, c as HEADLESS_FLOW_MODULE_KEYS, d as fetchTheme, f as initializeFlowManager, h as preloadRedirectToMobile, l as LAZY_UI_MODULES, m as preloadHomeScreen, n as useModulePreloader, o as extractIncodeStatus, p as preloadFirstModule, r as usePrefetchNextModule, s as UnsupportedModule, t as useModuleLoader, u as createFlowManager, v as isDesktopOrEmulated } from "../useModuleLoader-Ct3amb9c.js";
|
|
8
8
|
import { getRequiredWasmPipelines } from "@incodetech/core/flow";
|
|
9
9
|
import { bootstrapSession, refreshQrUrlUuid } from "@incodetech/core/session";
|
|
10
10
|
//#region src/shared/processing/useDelayedFlag.ts
|
package/dist/flow/styles.css
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
--tw-leading: initial;
|
|
15
15
|
--tw-font-weight: initial;
|
|
16
16
|
--tw-tracking: initial;
|
|
17
|
-
--tw-outline-style: solid;
|
|
18
17
|
--tw-duration: initial;
|
|
18
|
+
--tw-outline-style: solid;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -115,6 +115,178 @@
|
|
|
115
115
|
color: var(--color-text-body-primary, var(--text-body-800-primary));
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
+
.IncodeSelfieManualUploadPage .IncodeSelfieManualUploadContainer {
|
|
119
|
+
gap: var(--spacing-8, var(--spacing-8, 8px));
|
|
120
|
+
width: 100%;
|
|
121
|
+
padding-block: var(--spacing-24, var(--spacing-24, 24px));
|
|
122
|
+
flex-direction: column;
|
|
123
|
+
display: flex;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.IncodeSelfieManualUploadPage .IncodeSelfieManualUploadFormats {
|
|
127
|
+
margin: var(--spacing-0, var(--spacing-none, 0px));
|
|
128
|
+
padding-inline: var(--spacing-4, var(--spacing-4, 4px));
|
|
129
|
+
font-family: var(--typography-body-family);
|
|
130
|
+
font-size: var(--typography-body-m-regular-size);
|
|
131
|
+
font-weight: var(--typography-body-m-regular-weight);
|
|
132
|
+
line-height: var(--typography-body-m-regular-line-height);
|
|
133
|
+
letter-spacing: var(--typography-body-m-regular-letter-spacing);
|
|
134
|
+
color: var(--color-text-body-secondary, var(--text-body-500-secondary));
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.IncodeSelfieManualUploadPage .IncodeSelfieManualUploadError {
|
|
138
|
+
align-items: flex-start;
|
|
139
|
+
gap: var(--spacing-4, var(--spacing-4, 4px));
|
|
140
|
+
width: 100%;
|
|
141
|
+
padding-inline: var(--spacing-4, var(--spacing-4, 4px));
|
|
142
|
+
font-family: var(--typography-body-family);
|
|
143
|
+
font-size: var(--typography-body-m-regular-size);
|
|
144
|
+
font-weight: var(--typography-body-m-regular-weight);
|
|
145
|
+
line-height: var(--typography-body-m-regular-line-height);
|
|
146
|
+
letter-spacing: var(--typography-body-m-regular-letter-spacing);
|
|
147
|
+
color: var(--color-input-text-helper-negative, var(--input-text-helper-negative));
|
|
148
|
+
display: flex;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.IncodeSelfieManualUploadPage .IncodeSelfieManualUploadError p {
|
|
152
|
+
margin: var(--spacing-0, var(--spacing-none, 0px));
|
|
153
|
+
flex: 1;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.IncodeSelfieManualUploadPage .IncodeSelfieManualUploadFooter {
|
|
157
|
+
margin-top: auto;
|
|
158
|
+
margin-bottom: var(--spacing-16, var(--spacing-16, 16px));
|
|
159
|
+
row-gap: var(--spacing-24, var(--spacing-24, 24px));
|
|
160
|
+
width: 100%;
|
|
161
|
+
padding-top: var(--spacing-24, var(--spacing-24, 24px));
|
|
162
|
+
flex-direction: column;
|
|
163
|
+
display: flex;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.IncodeSelfieManualUploadPage .IncodeSelfieManualUploadHintCard {
|
|
167
|
+
margin: var(--spacing-0, var(--spacing-none, 0px));
|
|
168
|
+
border-radius: var(--radius-x-small, var(--border-radius-x-small));
|
|
169
|
+
background-color: var(--color-surface-brand-50, var(--surface-brand-50));
|
|
170
|
+
width: 100%;
|
|
171
|
+
padding-block: var(--spacing-16, var(--spacing-16, 16px));
|
|
172
|
+
padding-right: var(--spacing-12, var(--spacing-12, 12px));
|
|
173
|
+
padding-left: var(--spacing-32, var(--spacing-32, 32px));
|
|
174
|
+
color: var(--color-text-body-primary, var(--text-body-800-primary));
|
|
175
|
+
list-style-type: disc;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.IncodeSelfieManualUploadPage .IncodeSelfieManualUploadHintCard li {
|
|
179
|
+
font-family: var(--typography-button-family);
|
|
180
|
+
font-size: var(--typography-button-s-size);
|
|
181
|
+
font-weight: var(--typography-button-s-weight);
|
|
182
|
+
line-height: var(--typography-button-s-line-height);
|
|
183
|
+
letter-spacing: var(--typography-button-s-letter-spacing);
|
|
184
|
+
color: var(--color-text-body-primary, var(--text-body-800-primary));
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.IncodeSelfieManualUploadPage .IncodeSelfieManualUploadHintCard li + li {
|
|
188
|
+
margin-top: var(--spacing-4, var(--spacing-4, 4px));
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.IncodeSelfieUploadSlot {
|
|
192
|
+
cursor: pointer;
|
|
193
|
+
align-items: center;
|
|
194
|
+
gap: var(--spacing-12, var(--spacing-12, 12px));
|
|
195
|
+
border-radius: var(--radius-medium, var(--border-radius-medium));
|
|
196
|
+
border-style: var(--tw-border-style);
|
|
197
|
+
border-width: var(--border-width-regular, var(--primitive-border-width-1));
|
|
198
|
+
--tw-border-style: solid;
|
|
199
|
+
border-style: solid;
|
|
200
|
+
border-color: var(--color-border-neutral-100, var(--border-neutral-100));
|
|
201
|
+
background-color: var(--color-surface-neutral-50, var(--surface-neutral-50));
|
|
202
|
+
width: 100%;
|
|
203
|
+
padding-block: var(--spacing-24, var(--spacing-24, 24px));
|
|
204
|
+
padding-right: var(--spacing-24, var(--spacing-24, 24px));
|
|
205
|
+
padding-left: var(--spacing-20, var(--spacing-20, 20px));
|
|
206
|
+
text-align: left;
|
|
207
|
+
display: flex;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.IncodeSelfieUploadSlot .IncodeSelfieUploadSlotIcon {
|
|
211
|
+
width: var(--spacing-24, var(--spacing-24, 24px));
|
|
212
|
+
height: var(--spacing-24, var(--spacing-24, 24px));
|
|
213
|
+
color: var(--color-icon-neutral-500, var(--icon-neutral-500));
|
|
214
|
+
flex-shrink: 0;
|
|
215
|
+
justify-content: center;
|
|
216
|
+
display: flex;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.IncodeSelfieUploadSlot .IncodeSelfieUploadSlotLabel {
|
|
220
|
+
text-overflow: ellipsis;
|
|
221
|
+
white-space: nowrap;
|
|
222
|
+
text-align: left;
|
|
223
|
+
font-family: var(--typography-headline-family);
|
|
224
|
+
font-size: var(--typography-headline-h5-size);
|
|
225
|
+
font-weight: var(--typography-headline-h5-weight);
|
|
226
|
+
line-height: var(--typography-headline-h5-line-height);
|
|
227
|
+
letter-spacing: var(--typography-headline-h5-letter-spacing);
|
|
228
|
+
color: var(--color-text-body-primary, var(--text-body-800-primary));
|
|
229
|
+
flex: 1;
|
|
230
|
+
overflow: hidden;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.IncodeSelfieUploadSlot .IncodeSelfieUploadSlotAction {
|
|
234
|
+
flex-shrink: 0;
|
|
235
|
+
justify-content: center;
|
|
236
|
+
align-items: center;
|
|
237
|
+
display: inline-flex;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.IncodeSelfieUploadSlot .IncodeSelfieUploadSlotPill {
|
|
241
|
+
align-items: center;
|
|
242
|
+
gap: var(--spacing-4, var(--spacing-4, 4px));
|
|
243
|
+
border-radius: var(--radius-full, var(--border-radius-full));
|
|
244
|
+
background-color: var(--color-button-primary-surface-default, var(--button-primary-surface-default));
|
|
245
|
+
padding-block: var(--spacing-8, var(--spacing-8, 8px));
|
|
246
|
+
padding-right: var(--spacing-8, var(--spacing-8, 8px));
|
|
247
|
+
padding-left: var(--spacing-16, var(--spacing-16, 16px));
|
|
248
|
+
font-family: var(--typography-button-family);
|
|
249
|
+
font-size: var(--typography-button-s-size);
|
|
250
|
+
font-weight: var(--typography-button-s-weight);
|
|
251
|
+
line-height: var(--typography-button-s-line-height);
|
|
252
|
+
letter-spacing: var(--typography-button-s-letter-spacing);
|
|
253
|
+
color: var(--color-button-primary-text-default, var(--button-primary-text-default));
|
|
254
|
+
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
|
|
255
|
+
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(.4, 0, .2, 1)));
|
|
256
|
+
transition-duration: var(--tw-duration, var(--default-transition-duration, .15s));
|
|
257
|
+
--tw-duration: .2s;
|
|
258
|
+
transition-duration: .2s;
|
|
259
|
+
display: inline-flex;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.IncodeSelfieUploadSlot:focus-visible {
|
|
263
|
+
outline-style: var(--tw-outline-style);
|
|
264
|
+
outline-offset: 2px;
|
|
265
|
+
outline-width: 2px;
|
|
266
|
+
outline-color: var(--color-border-status-focus, var(--border-status-focus));
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.IncodeSelfieUploadSlot:hover:not(:disabled) .IncodeSelfieUploadSlotPill {
|
|
270
|
+
background-color: var(--color-button-primary-surface-hover, var(--button-primary-surface-hover));
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.IncodeSelfieUploadSlot:disabled {
|
|
274
|
+
cursor: not-allowed;
|
|
275
|
+
opacity: .5;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.IncodeSelfieUploadSlot + .IncodeSelfieUploadSlotInput {
|
|
279
|
+
clip-path: inset(50%);
|
|
280
|
+
white-space: nowrap;
|
|
281
|
+
border-width: 0;
|
|
282
|
+
width: 1px;
|
|
283
|
+
height: 1px;
|
|
284
|
+
margin: -1px;
|
|
285
|
+
padding: 0;
|
|
286
|
+
position: absolute;
|
|
287
|
+
overflow: hidden;
|
|
288
|
+
}
|
|
289
|
+
|
|
118
290
|
.IncodePhonePage .IncodePageContent {
|
|
119
291
|
padding-top: var(--spacing-32, var(--spacing-32, 32px));
|
|
120
292
|
padding-bottom: var(--spacing-16, var(--spacing-16, 16px));
|
|
@@ -5367,15 +5539,15 @@ incode-flow {
|
|
|
5367
5539
|
inherits: false
|
|
5368
5540
|
}
|
|
5369
5541
|
|
|
5370
|
-
@property --tw-
|
|
5542
|
+
@property --tw-duration {
|
|
5371
5543
|
syntax: "*";
|
|
5372
|
-
inherits: false
|
|
5373
|
-
initial-value: solid;
|
|
5544
|
+
inherits: false
|
|
5374
5545
|
}
|
|
5375
5546
|
|
|
5376
|
-
@property --tw-
|
|
5547
|
+
@property --tw-outline-style {
|
|
5377
5548
|
syntax: "*";
|
|
5378
|
-
inherits: false
|
|
5549
|
+
inherits: false;
|
|
5550
|
+
initial-value: solid;
|
|
5379
5551
|
}
|
|
5380
5552
|
|
|
5381
5553
|
@keyframes spin {
|
|
@@ -2,7 +2,7 @@ import { i as useTranslation } from "../uiConfig-B5ASPUL4.js";
|
|
|
2
2
|
import { S as k, v as u } from "../vendor-preact-mvwZ8mJj.js";
|
|
3
3
|
import { _ as useModuleTerminalCallbacks, o as Page, r as withStandaloneModuleBootstrap, t as IncodeComponent, y as useManager } from "../incodeComponent-K9ZWg302.js";
|
|
4
4
|
import { t as Spacer } from "../spacer-CDlQd12V.js";
|
|
5
|
-
import "../extensibility-
|
|
5
|
+
import "../extensibility-5pL-rL5z.js";
|
|
6
6
|
import { t as AutoFocusTitle } from "../autoFocusTitle-gLba2mgp.js";
|
|
7
7
|
import { t as VerificationResult } from "../verificationResult-B8HwR07t.js";
|
|
8
8
|
import { t as OtpInput } from "../otpInput-D5dLXrmC.js";
|
package/dist/id/id.es.js
CHANGED
|
@@ -4,11 +4,11 @@ import { _ as useModuleTerminalCallbacks, d as useTimeoutHandle, l as Transition
|
|
|
4
4
|
import { i as preloadAnimations, r as AnimatedAsset, s as Asset, t as Spacer, u as cn } from "../spacer-CDlQd12V.js";
|
|
5
5
|
import { n as Title, t as Spinner } from "../spinner-CLZ2fz4u.js";
|
|
6
6
|
import { n as ErrorIcon, r as Button } from "../incode-logo-rGFjZHqi.js";
|
|
7
|
-
import { a as IdNoAttempts, b as ProgressBar, c as useIdExperiment, i as Capture, l as CaptureFrame, n as Chooser, o as IdExpired, r as Tutorial, s as IdError, t as FlipAnimation } from "../extensibility-
|
|
7
|
+
import { a as IdNoAttempts, b as ProgressBar, c as useIdExperiment, i as Capture, l as CaptureFrame, n as Chooser, o as IdExpired, r as Tutorial, s as IdError, t as FlipAnimation } from "../extensibility-5pL-rL5z.js";
|
|
8
8
|
import { t as Processing } from "../processing-BsvHyDWa.js";
|
|
9
9
|
import { r as LockIcon, u as ChevronRightIcon } from "../icons--ezYG2Fb.js";
|
|
10
10
|
import { t as SuccessIcon } from "../successIcon-Bj8Y9CuI.js";
|
|
11
|
-
import { i as ErrorContent } from "../tutorial-
|
|
11
|
+
import { i as ErrorContent } from "../tutorial-DU8ga1m4.js";
|
|
12
12
|
import { n as Permissions } from "../manualCaptureButton-quGa2ufS.js";
|
|
13
13
|
import { t as PdfViewer } from "../pdfViewer-vud1VZv6.js";
|
|
14
14
|
import { t as registerIncodeModuleElement } from "../incodeModule-CcLzar_X.js";
|
|
@@ -2,7 +2,7 @@ import { i as useTranslation } from "./uiConfig-B5ASPUL4.js";
|
|
|
2
2
|
import { d as T, v as u } from "./vendor-preact-mvwZ8mJj.js";
|
|
3
3
|
import { _ as useModuleTerminalCallbacks, o as Page, r as withStandaloneModuleBootstrap, t as IncodeComponent, y as useManager } from "./incodeComponent-K9ZWg302.js";
|
|
4
4
|
import { r as Button } from "./incode-logo-rGFjZHqi.js";
|
|
5
|
-
import "./extensibility-
|
|
5
|
+
import "./extensibility-5pL-rL5z.js";
|
|
6
6
|
import { t as VerificationResult } from "./verificationResult-B8HwR07t.js";
|
|
7
7
|
import { t as InputComposed } from "./inputComposed-BeROn635.js";
|
|
8
8
|
import { t as RadioGroupComposed } from "./radioGroupComposed-DzNGUbZQ.js";
|
|
@@ -4,7 +4,7 @@ import { S as k, _ as y, h as q, l as A, m as g, p as d, v as u } from "../vendo
|
|
|
4
4
|
import { _ as useModuleTerminalCallbacks, c as usePageUiConfig, l as TransitionSpinner, r as withStandaloneModuleBootstrap, s as VerifiedByIncodeLogo, t as IncodeComponent, y as useManager } from "../incodeComponent-K9ZWg302.js";
|
|
5
5
|
import { t as Spacer } from "../spacer-CDlQd12V.js";
|
|
6
6
|
import { n as ErrorIcon, r as Button, t as incode_logo_default } from "../incode-logo-rGFjZHqi.js";
|
|
7
|
-
import "../extensibility-
|
|
7
|
+
import "../extensibility-5pL-rL5z.js";
|
|
8
8
|
import "../icons--ezYG2Fb.js";
|
|
9
9
|
import { t as SuccessIcon } from "../successIcon-Bj8Y9CuI.js";
|
|
10
10
|
import { t as AutoFocusTitle } from "../autoFocusTitle-gLba2mgp.js";
|
package/dist/selfie/selfie.es.js
CHANGED
|
@@ -1,11 +1,184 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { i as useTranslation } from "../uiConfig-B5ASPUL4.js";
|
|
2
|
+
import { S as k, _ as y, l as A, v as u } from "../vendor-preact-mvwZ8mJj.js";
|
|
3
|
+
import { _ as useModuleTerminalCallbacks, g as isTerminalModuleState, l as TransitionSpinner, o as Page, r as withStandaloneModuleBootstrap, t as IncodeComponent, y as useManager } from "../incodeComponent-K9ZWg302.js";
|
|
3
4
|
import { i as preloadAnimations } from "../spacer-CDlQd12V.js";
|
|
5
|
+
import { t as Spinner } from "../spinner-CLZ2fz4u.js";
|
|
6
|
+
import { n as ErrorIcon, r as Button } from "../incode-logo-rGFjZHqi.js";
|
|
4
7
|
import { t as Processing } from "../processing-BsvHyDWa.js";
|
|
5
|
-
import {
|
|
8
|
+
import { u as ChevronRightIcon } from "../icons--ezYG2Fb.js";
|
|
9
|
+
import { t as SuccessIcon } from "../successIcon-Bj8Y9CuI.js";
|
|
10
|
+
import { n as Capture, t as Tutorial } from "../tutorial-DU8ga1m4.js";
|
|
6
11
|
import { n as Permissions } from "../manualCaptureButton-quGa2ufS.js";
|
|
7
12
|
import { t as registerIncodeModuleElement } from "../incodeModule-CcLzar_X.js";
|
|
8
13
|
import { createSelfieManager } from "@incodetech/core/selfie";
|
|
14
|
+
//#region src/modules/selfie/manualUpload/manualUploadError.tsx
|
|
15
|
+
/** `role="alert"` announces the rejection once on insert (SC 4.1.3). */
|
|
16
|
+
var ManualUploadError = ({ errorKey, id }) => {
|
|
17
|
+
const { t } = useTranslation();
|
|
18
|
+
return /* @__PURE__ */ u("div", {
|
|
19
|
+
id,
|
|
20
|
+
class: "IncodeSelfieManualUploadError",
|
|
21
|
+
role: "alert",
|
|
22
|
+
"data-testid": "selfie-manual-upload-error",
|
|
23
|
+
children: [/* @__PURE__ */ u(ErrorIcon, { size: 16 }), /* @__PURE__ */ u("p", { children: t(errorKey) })]
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region src/modules/selfie/manualUpload/selfieSlotIcon.tsx
|
|
28
|
+
/**
|
|
29
|
+
* Slot pictogram for the manual selfie upload card, from the Figma design.
|
|
30
|
+
* Fills use `currentColor` so the card controls the tint and dark mode works;
|
|
31
|
+
* the source artwork hardcoded `#60667C`.
|
|
32
|
+
*/
|
|
33
|
+
var SelfieSlotIcon = () => /* @__PURE__ */ u("svg", {
|
|
34
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
35
|
+
width: "24",
|
|
36
|
+
height: "24",
|
|
37
|
+
viewBox: "0 0 24 24",
|
|
38
|
+
fill: "none",
|
|
39
|
+
"aria-hidden": "true",
|
|
40
|
+
children: [
|
|
41
|
+
/* @__PURE__ */ u("path", {
|
|
42
|
+
fillRule: "evenodd",
|
|
43
|
+
clipRule: "evenodd",
|
|
44
|
+
d: "M12.05 2.30078C6.65 2.30078 2.25 6.70078 2.25 12.1008C2.25 13.9008 2.65 15.4008 3.35 16.7008C3.55 17.1008 4.05 17.2008 4.35 17.0008C4.75 16.8008 4.85 16.3008 4.65 16.0008C4.05 15.0008 3.75 13.7008 3.75 12.2008C3.75 7.70078 7.45 4.00078 11.95 4.00078C16.45 4.00078 20.15 7.70078 20.15 12.2008C20.15 13.5008 19.85 14.7008 19.25 16.1008C19.05 16.5008 19.25 16.9008 19.65 17.1008C19.75 17.1008 19.85 17.2008 19.95 17.2008C20.25 17.2008 20.55 17.0008 20.65 16.8008C21.35 15.2008 21.75 13.8008 21.75 12.3008C21.75 6.70078 17.45 2.30078 12.05 2.30078Z",
|
|
45
|
+
fill: "currentColor"
|
|
46
|
+
}),
|
|
47
|
+
/* @__PURE__ */ u("path", {
|
|
48
|
+
fillRule: "evenodd",
|
|
49
|
+
clipRule: "evenodd",
|
|
50
|
+
d: "M15.7489 10.5012C15.7489 8.40117 14.0489 6.70117 11.9489 6.70117C9.84893 6.70117 8.14893 8.40117 8.14893 10.5012C8.14893 12.6012 9.84893 14.3012 11.9489 14.3012C14.0489 14.3012 15.7489 12.6012 15.7489 10.5012Z",
|
|
51
|
+
fill: "currentColor"
|
|
52
|
+
}),
|
|
53
|
+
/* @__PURE__ */ u("path", {
|
|
54
|
+
fillRule: "evenodd",
|
|
55
|
+
clipRule: "evenodd",
|
|
56
|
+
d: "M12.05 15.8014C8.24995 15.8014 6.64995 17.7014 6.44995 19.5014C6.44995 19.7014 6.54995 19.9014 6.64995 20.0014C8.14995 21.1014 10.05 21.7014 12.05 21.7014C13.95 21.7014 15.75 21.1014 17.45 20.0014C17.65 19.9014 17.65 19.7014 17.65 19.5014C17.55 18.6014 16.85 15.7014 12.05 15.8014Z",
|
|
57
|
+
fill: "currentColor"
|
|
58
|
+
})
|
|
59
|
+
]
|
|
60
|
+
});
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region src/modules/selfie/manualUpload/uploadSlot.tsx
|
|
63
|
+
/**
|
|
64
|
+
* The single "Your selfie" card. The whole card is the button — the pill is
|
|
65
|
+
* `aria-hidden` decoration, since a button inside a button is invalid and would
|
|
66
|
+
* give screen-reader users two controls for one action.
|
|
67
|
+
*/
|
|
68
|
+
var UploadSlot = ({ label, actionLabel, uploaded, uploading, describedById, onFile }) => {
|
|
69
|
+
const inputRef = A(null);
|
|
70
|
+
const openPicker = () => {
|
|
71
|
+
if (uploading) return;
|
|
72
|
+
inputRef.current?.click();
|
|
73
|
+
};
|
|
74
|
+
const handleChange = (event) => {
|
|
75
|
+
const input = event.target;
|
|
76
|
+
const file = input.files?.[0];
|
|
77
|
+
if (file) onFile(file);
|
|
78
|
+
input.value = "";
|
|
79
|
+
};
|
|
80
|
+
const renderAction = () => {
|
|
81
|
+
if (uploading) return /* @__PURE__ */ u(Spinner, {
|
|
82
|
+
size: "small",
|
|
83
|
+
fullScreen: false
|
|
84
|
+
});
|
|
85
|
+
if (uploaded) return /* @__PURE__ */ u(SuccessIcon, { size: 28 });
|
|
86
|
+
return /* @__PURE__ */ u("span", {
|
|
87
|
+
class: "IncodeSelfieUploadSlotPill",
|
|
88
|
+
children: [actionLabel, /* @__PURE__ */ u(ChevronRightIcon, {
|
|
89
|
+
variant: "xs",
|
|
90
|
+
size: 16
|
|
91
|
+
})]
|
|
92
|
+
});
|
|
93
|
+
};
|
|
94
|
+
return /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u("button", {
|
|
95
|
+
type: "button",
|
|
96
|
+
class: "IncodeSelfieUploadSlot",
|
|
97
|
+
onClick: openPicker,
|
|
98
|
+
disabled: uploading,
|
|
99
|
+
"aria-label": label,
|
|
100
|
+
"aria-busy": uploading || void 0,
|
|
101
|
+
"aria-describedby": describedById,
|
|
102
|
+
"data-testid": "selfie-manual-upload-slot",
|
|
103
|
+
children: [
|
|
104
|
+
/* @__PURE__ */ u("div", {
|
|
105
|
+
class: "IncodeSelfieUploadSlotIcon",
|
|
106
|
+
"aria-hidden": "true",
|
|
107
|
+
children: /* @__PURE__ */ u(SelfieSlotIcon, {})
|
|
108
|
+
}),
|
|
109
|
+
/* @__PURE__ */ u("div", {
|
|
110
|
+
class: "IncodeSelfieUploadSlotLabel",
|
|
111
|
+
children: label
|
|
112
|
+
}),
|
|
113
|
+
/* @__PURE__ */ u("div", {
|
|
114
|
+
class: "IncodeSelfieUploadSlotAction",
|
|
115
|
+
"aria-hidden": "true",
|
|
116
|
+
children: renderAction()
|
|
117
|
+
})
|
|
118
|
+
]
|
|
119
|
+
}), /* @__PURE__ */ u("input", {
|
|
120
|
+
ref: inputRef,
|
|
121
|
+
type: "file",
|
|
122
|
+
accept: "image/png,image/jpeg",
|
|
123
|
+
class: "IncodeSelfieUploadSlotInput",
|
|
124
|
+
onChange: handleChange,
|
|
125
|
+
onInput: handleChange,
|
|
126
|
+
tabIndex: -1,
|
|
127
|
+
"aria-hidden": "true"
|
|
128
|
+
})] });
|
|
129
|
+
};
|
|
130
|
+
//#endregion
|
|
131
|
+
//#region src/modules/selfie/manualUpload/manualUpload.tsx
|
|
132
|
+
var HINT_KEYS = [
|
|
133
|
+
"selfiev2.manualUpload.hintWholeFaceVisible",
|
|
134
|
+
"selfiev2.manualUpload.hintNoHatsMasksGlasses",
|
|
135
|
+
"selfiev2.manualUpload.hintGoodLighting"
|
|
136
|
+
];
|
|
137
|
+
var ERROR_MESSAGE_ID = "selfie-manual-upload-error-message";
|
|
138
|
+
var ManualUpload = ({ manager, state }) => {
|
|
139
|
+
const { t } = useTranslation();
|
|
140
|
+
if (state.phase === "uploading") return /* @__PURE__ */ u(Spinner, {
|
|
141
|
+
fullScreen: true,
|
|
142
|
+
size: "large",
|
|
143
|
+
title: t("manualIdUpload.holdOnASec"),
|
|
144
|
+
subtitle: t("idv2.manualUploadLoading.subtitle")
|
|
145
|
+
});
|
|
146
|
+
return /* @__PURE__ */ u(Page, {
|
|
147
|
+
title: t("selfiev2.manualUpload.uploadAPhotoOfYourself"),
|
|
148
|
+
"data-testid": "selfie-manual-upload-page",
|
|
149
|
+
className: "IncodeSelfieManualUploadPage",
|
|
150
|
+
children: [/* @__PURE__ */ u("div", {
|
|
151
|
+
class: "IncodeSelfieManualUploadContainer",
|
|
152
|
+
children: [/* @__PURE__ */ u(UploadSlot, {
|
|
153
|
+
label: t("selfiev2.manualUpload.yourSelfie"),
|
|
154
|
+
actionLabel: t("manualIdUpload.upload"),
|
|
155
|
+
uploaded: state.uploaded,
|
|
156
|
+
uploading: false,
|
|
157
|
+
describedById: state.errorKey ? ERROR_MESSAGE_ID : void 0,
|
|
158
|
+
onFile: (file) => manager.manualUploadSelectFile(file)
|
|
159
|
+
}), state.errorKey ? /* @__PURE__ */ u(ManualUploadError, {
|
|
160
|
+
id: ERROR_MESSAGE_ID,
|
|
161
|
+
errorKey: state.errorKey
|
|
162
|
+
}) : /* @__PURE__ */ u("p", {
|
|
163
|
+
class: "IncodeSelfieManualUploadFormats",
|
|
164
|
+
children: t("selfiev2.manualUpload.formatsAccepted")
|
|
165
|
+
})]
|
|
166
|
+
}), /* @__PURE__ */ u("div", {
|
|
167
|
+
class: "IncodeSelfieManualUploadFooter",
|
|
168
|
+
children: [/* @__PURE__ */ u("ul", {
|
|
169
|
+
class: "IncodeSelfieManualUploadHintCard",
|
|
170
|
+
"data-testid": "selfie-manual-upload-hints",
|
|
171
|
+
children: HINT_KEYS.map((key) => /* @__PURE__ */ u("li", { children: t(key) }, key))
|
|
172
|
+
}), /* @__PURE__ */ u(Button, {
|
|
173
|
+
onClick: () => manager.manualUploadContinue(),
|
|
174
|
+
disabled: !state.canContinue,
|
|
175
|
+
"data-testid": "selfie-manual-upload-continue",
|
|
176
|
+
children: t("manualIdUpload.continue")
|
|
177
|
+
})]
|
|
178
|
+
})]
|
|
179
|
+
});
|
|
180
|
+
};
|
|
181
|
+
//#endregion
|
|
9
182
|
//#region src/modules/selfie/preloadTutorialAssets.ts
|
|
10
183
|
var started = false;
|
|
11
184
|
function preloadSelfieTutorialAssets() {
|
|
@@ -33,7 +206,8 @@ var SelfieContent = ({ config, manager: externalManager, onFinish, onError }) =>
|
|
|
33
206
|
if (state.status === "idle" || state.status === "loading") return /* @__PURE__ */ u(TransitionSpinner, { hideText: true });
|
|
34
207
|
if (state.status === "tutorial") return /* @__PURE__ */ u(Tutorial, {
|
|
35
208
|
manager,
|
|
36
|
-
ageAssurance: state.ageAssurance
|
|
209
|
+
ageAssurance: state.ageAssurance,
|
|
210
|
+
showManualUploadLink: state.showManualUploadLink
|
|
37
211
|
});
|
|
38
212
|
if (state.status === "permissions") return /* @__PURE__ */ u(Permissions, {
|
|
39
213
|
manager,
|
|
@@ -43,6 +217,10 @@ var SelfieContent = ({ config, manager: externalManager, onFinish, onError }) =>
|
|
|
43
217
|
manager,
|
|
44
218
|
state
|
|
45
219
|
});
|
|
220
|
+
if (state.status === "manualUpload") return /* @__PURE__ */ u(ManualUpload, {
|
|
221
|
+
manager,
|
|
222
|
+
state
|
|
223
|
+
});
|
|
46
224
|
if (state.status === "processing") return /* @__PURE__ */ u(Processing, {});
|
|
47
225
|
if (isTerminalModuleState(state)) return null;
|
|
48
226
|
return null;
|
package/dist/selfie/styles.css
CHANGED
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
--tw-leading: initial;
|
|
15
15
|
--tw-font-weight: initial;
|
|
16
16
|
--tw-tracking: initial;
|
|
17
|
+
--tw-duration: initial;
|
|
18
|
+
--tw-outline-style: solid;
|
|
17
19
|
}
|
|
18
20
|
}
|
|
19
21
|
}
|
|
@@ -242,6 +244,178 @@
|
|
|
242
244
|
color: var(--color-text-body-primary, var(--text-body-800-primary));
|
|
243
245
|
}
|
|
244
246
|
|
|
247
|
+
.IncodeSelfieManualUploadPage .IncodeSelfieManualUploadContainer {
|
|
248
|
+
gap: var(--spacing-8, var(--spacing-8, 8px));
|
|
249
|
+
width: 100%;
|
|
250
|
+
padding-block: var(--spacing-24, var(--spacing-24, 24px));
|
|
251
|
+
flex-direction: column;
|
|
252
|
+
display: flex;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.IncodeSelfieManualUploadPage .IncodeSelfieManualUploadFormats {
|
|
256
|
+
margin: var(--spacing-0, var(--spacing-none, 0px));
|
|
257
|
+
padding-inline: var(--spacing-4, var(--spacing-4, 4px));
|
|
258
|
+
font-family: var(--typography-body-family);
|
|
259
|
+
font-size: var(--typography-body-m-regular-size);
|
|
260
|
+
font-weight: var(--typography-body-m-regular-weight);
|
|
261
|
+
line-height: var(--typography-body-m-regular-line-height);
|
|
262
|
+
letter-spacing: var(--typography-body-m-regular-letter-spacing);
|
|
263
|
+
color: var(--color-text-body-secondary, var(--text-body-500-secondary));
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.IncodeSelfieManualUploadPage .IncodeSelfieManualUploadError {
|
|
267
|
+
align-items: flex-start;
|
|
268
|
+
gap: var(--spacing-4, var(--spacing-4, 4px));
|
|
269
|
+
width: 100%;
|
|
270
|
+
padding-inline: var(--spacing-4, var(--spacing-4, 4px));
|
|
271
|
+
font-family: var(--typography-body-family);
|
|
272
|
+
font-size: var(--typography-body-m-regular-size);
|
|
273
|
+
font-weight: var(--typography-body-m-regular-weight);
|
|
274
|
+
line-height: var(--typography-body-m-regular-line-height);
|
|
275
|
+
letter-spacing: var(--typography-body-m-regular-letter-spacing);
|
|
276
|
+
color: var(--color-input-text-helper-negative, var(--input-text-helper-negative));
|
|
277
|
+
display: flex;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.IncodeSelfieManualUploadPage .IncodeSelfieManualUploadError p {
|
|
281
|
+
margin: var(--spacing-0, var(--spacing-none, 0px));
|
|
282
|
+
flex: 1;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.IncodeSelfieManualUploadPage .IncodeSelfieManualUploadFooter {
|
|
286
|
+
margin-top: auto;
|
|
287
|
+
margin-bottom: var(--spacing-16, var(--spacing-16, 16px));
|
|
288
|
+
row-gap: var(--spacing-24, var(--spacing-24, 24px));
|
|
289
|
+
width: 100%;
|
|
290
|
+
padding-top: var(--spacing-24, var(--spacing-24, 24px));
|
|
291
|
+
flex-direction: column;
|
|
292
|
+
display: flex;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.IncodeSelfieManualUploadPage .IncodeSelfieManualUploadHintCard {
|
|
296
|
+
margin: var(--spacing-0, var(--spacing-none, 0px));
|
|
297
|
+
border-radius: var(--radius-x-small, var(--border-radius-x-small));
|
|
298
|
+
background-color: var(--color-surface-brand-50, var(--surface-brand-50));
|
|
299
|
+
width: 100%;
|
|
300
|
+
padding-block: var(--spacing-16, var(--spacing-16, 16px));
|
|
301
|
+
padding-right: var(--spacing-12, var(--spacing-12, 12px));
|
|
302
|
+
padding-left: var(--spacing-32, var(--spacing-32, 32px));
|
|
303
|
+
color: var(--color-text-body-primary, var(--text-body-800-primary));
|
|
304
|
+
list-style-type: disc;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.IncodeSelfieManualUploadPage .IncodeSelfieManualUploadHintCard li {
|
|
308
|
+
font-family: var(--typography-button-family);
|
|
309
|
+
font-size: var(--typography-button-s-size);
|
|
310
|
+
font-weight: var(--typography-button-s-weight);
|
|
311
|
+
line-height: var(--typography-button-s-line-height);
|
|
312
|
+
letter-spacing: var(--typography-button-s-letter-spacing);
|
|
313
|
+
color: var(--color-text-body-primary, var(--text-body-800-primary));
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.IncodeSelfieManualUploadPage .IncodeSelfieManualUploadHintCard li + li {
|
|
317
|
+
margin-top: var(--spacing-4, var(--spacing-4, 4px));
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.IncodeSelfieUploadSlot {
|
|
321
|
+
cursor: pointer;
|
|
322
|
+
align-items: center;
|
|
323
|
+
gap: var(--spacing-12, var(--spacing-12, 12px));
|
|
324
|
+
border-radius: var(--radius-medium, var(--border-radius-medium));
|
|
325
|
+
border-style: var(--tw-border-style);
|
|
326
|
+
border-width: var(--border-width-regular, var(--primitive-border-width-1));
|
|
327
|
+
--tw-border-style: solid;
|
|
328
|
+
border-style: solid;
|
|
329
|
+
border-color: var(--color-border-neutral-100, var(--border-neutral-100));
|
|
330
|
+
background-color: var(--color-surface-neutral-50, var(--surface-neutral-50));
|
|
331
|
+
width: 100%;
|
|
332
|
+
padding-block: var(--spacing-24, var(--spacing-24, 24px));
|
|
333
|
+
padding-right: var(--spacing-24, var(--spacing-24, 24px));
|
|
334
|
+
padding-left: var(--spacing-20, var(--spacing-20, 20px));
|
|
335
|
+
text-align: left;
|
|
336
|
+
display: flex;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.IncodeSelfieUploadSlot .IncodeSelfieUploadSlotIcon {
|
|
340
|
+
width: var(--spacing-24, var(--spacing-24, 24px));
|
|
341
|
+
height: var(--spacing-24, var(--spacing-24, 24px));
|
|
342
|
+
color: var(--color-icon-neutral-500, var(--icon-neutral-500));
|
|
343
|
+
flex-shrink: 0;
|
|
344
|
+
justify-content: center;
|
|
345
|
+
display: flex;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.IncodeSelfieUploadSlot .IncodeSelfieUploadSlotLabel {
|
|
349
|
+
text-overflow: ellipsis;
|
|
350
|
+
white-space: nowrap;
|
|
351
|
+
text-align: left;
|
|
352
|
+
font-family: var(--typography-headline-family);
|
|
353
|
+
font-size: var(--typography-headline-h5-size);
|
|
354
|
+
font-weight: var(--typography-headline-h5-weight);
|
|
355
|
+
line-height: var(--typography-headline-h5-line-height);
|
|
356
|
+
letter-spacing: var(--typography-headline-h5-letter-spacing);
|
|
357
|
+
color: var(--color-text-body-primary, var(--text-body-800-primary));
|
|
358
|
+
flex: 1;
|
|
359
|
+
overflow: hidden;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.IncodeSelfieUploadSlot .IncodeSelfieUploadSlotAction {
|
|
363
|
+
flex-shrink: 0;
|
|
364
|
+
justify-content: center;
|
|
365
|
+
align-items: center;
|
|
366
|
+
display: inline-flex;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.IncodeSelfieUploadSlot .IncodeSelfieUploadSlotPill {
|
|
370
|
+
align-items: center;
|
|
371
|
+
gap: var(--spacing-4, var(--spacing-4, 4px));
|
|
372
|
+
border-radius: var(--radius-full, var(--border-radius-full));
|
|
373
|
+
background-color: var(--color-button-primary-surface-default, var(--button-primary-surface-default));
|
|
374
|
+
padding-block: var(--spacing-8, var(--spacing-8, 8px));
|
|
375
|
+
padding-right: var(--spacing-8, var(--spacing-8, 8px));
|
|
376
|
+
padding-left: var(--spacing-16, var(--spacing-16, 16px));
|
|
377
|
+
font-family: var(--typography-button-family);
|
|
378
|
+
font-size: var(--typography-button-s-size);
|
|
379
|
+
font-weight: var(--typography-button-s-weight);
|
|
380
|
+
line-height: var(--typography-button-s-line-height);
|
|
381
|
+
letter-spacing: var(--typography-button-s-letter-spacing);
|
|
382
|
+
color: var(--color-button-primary-text-default, var(--button-primary-text-default));
|
|
383
|
+
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
|
|
384
|
+
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(.4, 0, .2, 1)));
|
|
385
|
+
transition-duration: var(--tw-duration, var(--default-transition-duration, .15s));
|
|
386
|
+
--tw-duration: .2s;
|
|
387
|
+
transition-duration: .2s;
|
|
388
|
+
display: inline-flex;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.IncodeSelfieUploadSlot:focus-visible {
|
|
392
|
+
outline-style: var(--tw-outline-style);
|
|
393
|
+
outline-offset: 2px;
|
|
394
|
+
outline-width: 2px;
|
|
395
|
+
outline-color: var(--color-border-status-focus, var(--border-status-focus));
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.IncodeSelfieUploadSlot:hover:not(:disabled) .IncodeSelfieUploadSlotPill {
|
|
399
|
+
background-color: var(--color-button-primary-surface-hover, var(--button-primary-surface-hover));
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.IncodeSelfieUploadSlot:disabled {
|
|
403
|
+
cursor: not-allowed;
|
|
404
|
+
opacity: .5;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
.IncodeSelfieUploadSlot + .IncodeSelfieUploadSlotInput {
|
|
408
|
+
clip-path: inset(50%);
|
|
409
|
+
white-space: nowrap;
|
|
410
|
+
border-width: 0;
|
|
411
|
+
width: 1px;
|
|
412
|
+
height: 1px;
|
|
413
|
+
margin: -1px;
|
|
414
|
+
padding: 0;
|
|
415
|
+
position: absolute;
|
|
416
|
+
overflow: hidden;
|
|
417
|
+
}
|
|
418
|
+
|
|
245
419
|
@property --tw-border-style {
|
|
246
420
|
syntax: "*";
|
|
247
421
|
inherits: false;
|
|
@@ -306,6 +480,17 @@
|
|
|
306
480
|
inherits: false
|
|
307
481
|
}
|
|
308
482
|
|
|
483
|
+
@property --tw-duration {
|
|
484
|
+
syntax: "*";
|
|
485
|
+
inherits: false
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
@property --tw-outline-style {
|
|
489
|
+
syntax: "*";
|
|
490
|
+
inherits: false;
|
|
491
|
+
initial-value: solid;
|
|
492
|
+
}
|
|
493
|
+
|
|
309
494
|
@keyframes spin {
|
|
310
495
|
to {
|
|
311
496
|
transform: rotate(360deg);
|
|
@@ -3,7 +3,7 @@ import { _ as y, a as D, h as q, l as A, p as d, u as F, v as u } from "../vendo
|
|
|
3
3
|
import { _ as useModuleTerminalCallbacks, o as Page, r as withStandaloneModuleBootstrap, t as IncodeComponent, y as useManager } from "../incodeComponent-K9ZWg302.js";
|
|
4
4
|
import { t as Spacer } from "../spacer-CDlQd12V.js";
|
|
5
5
|
import { r as Button } from "../incode-logo-rGFjZHqi.js";
|
|
6
|
-
import "../extensibility-
|
|
6
|
+
import "../extensibility-5pL-rL5z.js";
|
|
7
7
|
import { t as VerificationResult } from "../verificationResult-B8HwR07t.js";
|
|
8
8
|
import { t as registerIncodeModuleElement } from "../incodeModule-CcLzar_X.js";
|
|
9
9
|
import { t as _defineProperty } from "../defineProperty-BbpBna-2.js";
|
|
@@ -164,7 +164,7 @@ function replaceLottieColor(animationData, hexColor) {
|
|
|
164
164
|
}
|
|
165
165
|
//#endregion
|
|
166
166
|
//#region src/shared/baseTutorial/baseTutorial.tsx
|
|
167
|
-
var BaseTutorial = ({ className = "", animationData, title, titleId, subtitle, onContinue, buttonText, disclaimerText, isLoading, stopFramePosition = "middle", recolor = true }) => {
|
|
167
|
+
var BaseTutorial = ({ className = "", animationData, title, titleId, subtitle, onContinue, buttonText, disclaimerText, isLoading, secondaryAction, stopFramePosition = "middle", recolor = true }) => {
|
|
168
168
|
const themedAnimationData = T(() => {
|
|
169
169
|
if (!animationData) return null;
|
|
170
170
|
if (!recolor) return animationData;
|
|
@@ -192,12 +192,19 @@ var BaseTutorial = ({ className = "", animationData, title, titleId, subtitle, o
|
|
|
192
192
|
children: disclaimerText
|
|
193
193
|
}), /* @__PURE__ */ u("div", {
|
|
194
194
|
class: "IncodeBaseTutorialButtonContainer",
|
|
195
|
-
children: /* @__PURE__ */ u(Button, {
|
|
195
|
+
children: [/* @__PURE__ */ u(Button, {
|
|
196
196
|
onClick: onContinue,
|
|
197
197
|
class: "IncodeBaseTutorialButton",
|
|
198
198
|
isLoading,
|
|
199
199
|
children: buttonText
|
|
200
|
-
})
|
|
200
|
+
}), secondaryAction ? /* @__PURE__ */ u(Button, {
|
|
201
|
+
variant: "link",
|
|
202
|
+
onClick: secondaryAction.onClick,
|
|
203
|
+
class: "IncodeBaseTutorialSecondaryAction",
|
|
204
|
+
disabled: isLoading,
|
|
205
|
+
"data-testid": secondaryAction.testId,
|
|
206
|
+
children: secondaryAction.label
|
|
207
|
+
}) : null]
|
|
201
208
|
})] })]
|
|
202
209
|
});
|
|
203
210
|
};
|
|
@@ -723,7 +730,7 @@ var Video = ({ stream, mirrored }) => {
|
|
|
723
730
|
};
|
|
724
731
|
//#endregion
|
|
725
732
|
//#region src/modules/selfie/tutorial.tsx
|
|
726
|
-
var Tutorial = ({ manager, ageAssurance = false }) => {
|
|
733
|
+
var Tutorial = ({ manager, ageAssurance = false, showManualUploadLink = false }) => {
|
|
727
734
|
const { t } = useTranslation();
|
|
728
735
|
const [isLoading, setIsLoading] = d(false);
|
|
729
736
|
const { data: animationData, isOverride } = useAnimationData("selfie.tutorial");
|
|
@@ -741,6 +748,11 @@ var Tutorial = ({ manager, ageAssurance = false }) => {
|
|
|
741
748
|
buttonText: t(ageAssurance ? "face.tutorial.ageAssuranceStartCapture" : "face.tutorial.startCapture"),
|
|
742
749
|
disclaimerText: t("face.tutorial.autoCapture"),
|
|
743
750
|
isLoading,
|
|
751
|
+
secondaryAction: showManualUploadLink ? {
|
|
752
|
+
label: t("selfiev2.manualUpload.uploadSelfieManually"),
|
|
753
|
+
onClick: () => manager.goToManualUpload(),
|
|
754
|
+
testId: "selfie-manual-upload-link"
|
|
755
|
+
} : void 0,
|
|
744
756
|
className: "IncodeSelfieTutorial"
|
|
745
757
|
});
|
|
746
758
|
};
|
|
@@ -67,7 +67,7 @@ export declare type AssetOverride = string | {
|
|
|
67
67
|
|
|
68
68
|
export declare type AssetOverrides = Partial<Record<AssetKey, AssetOverride>>;
|
|
69
69
|
|
|
70
|
-
export declare const BaseTutorial: ({ className, animationData, title, titleId, subtitle, onContinue, buttonText, disclaimerText, isLoading, stopFramePosition, recolor, }: BaseTutorialProps) => JSX.Element;
|
|
70
|
+
export declare const BaseTutorial: ({ className, animationData, title, titleId, subtitle, onContinue, buttonText, disclaimerText, isLoading, secondaryAction, stopFramePosition, recolor, }: BaseTutorialProps) => JSX.Element;
|
|
71
71
|
|
|
72
72
|
declare type BaseTutorialProps = {
|
|
73
73
|
className?: string;
|
|
@@ -79,6 +79,12 @@ declare type BaseTutorialProps = {
|
|
|
79
79
|
buttonText: string;
|
|
80
80
|
disclaimerText: string;
|
|
81
81
|
isLoading?: boolean;
|
|
82
|
+
/** Optional alternative to the primary CTA, rendered as a link below it. */
|
|
83
|
+
secondaryAction?: {
|
|
84
|
+
label: string;
|
|
85
|
+
onClick: () => void;
|
|
86
|
+
testId?: string;
|
|
87
|
+
};
|
|
82
88
|
stopFramePosition?: 'first' | 'middle' | 'last';
|
|
83
89
|
/**
|
|
84
90
|
* Re-tint the animation's brand-colored elements to the active branding
|
|
@@ -990,7 +996,7 @@ export declare type SegmentedDateInputProps = Omit<InputComposedProps, 'type' |
|
|
|
990
996
|
|
|
991
997
|
export declare const SelfieCapture: FC<CaptureProps>;
|
|
992
998
|
|
|
993
|
-
export declare const SelfieTutorial: ({ manager, ageAssurance }: TutorialProps) => JSX.Element;
|
|
999
|
+
export declare const SelfieTutorial: ({ manager, ageAssurance, showManualUploadLink, }: TutorialProps) => JSX.Element;
|
|
994
1000
|
|
|
995
1001
|
/**
|
|
996
1002
|
* Sets global UI configuration defaults for `@incodetech/ui`.
|
|
@@ -1080,6 +1086,7 @@ declare type TitleProps = HTMLAttributes_2<HTMLHeadingElement> & {
|
|
|
1080
1086
|
declare type TutorialProps = {
|
|
1081
1087
|
manager: SelfieManager;
|
|
1082
1088
|
ageAssurance?: boolean;
|
|
1089
|
+
showManualUploadLink?: boolean;
|
|
1083
1090
|
};
|
|
1084
1091
|
|
|
1085
1092
|
/**
|
|
@@ -84,14 +84,14 @@ var LAZY_UI_MODULES = {
|
|
|
84
84
|
INE_VALIDATION: () => import("./government-validation/government-validation.es.js").then((m) => m.GovernmentValidation),
|
|
85
85
|
GEOLOCATION: () => import("./geolocation/geolocation.es.js").then((m) => m.Geolocation),
|
|
86
86
|
EXTERNAL_VERIFICATION: () => import("./ekycModule-BVt10kgv.js").then((m) => m.EkycModule),
|
|
87
|
-
EKYB: () => import("./ekybModule-
|
|
88
|
-
DOCUMENT_CAPTURE: () => import("./documentCapture-
|
|
89
|
-
ADDRESS: () => import("./documentCapture-
|
|
87
|
+
EKYB: () => import("./ekybModule-DiBGxasL.js").then((m) => m.EkybModule),
|
|
88
|
+
DOCUMENT_CAPTURE: () => import("./documentCapture-DJUAP7RQ.js").then((m) => m.DocumentCapture),
|
|
89
|
+
ADDRESS: () => import("./documentCapture-DJUAP7RQ.js").then((m) => m.DocumentCapture),
|
|
90
90
|
COMBINED_CONSENT: () => import("./consent/consent.es.js").then((m) => m.Consent),
|
|
91
91
|
MANDATORY_CONSENT: () => import("./mandatoryConsent-BtqB-FxY.js").then((m) => m.MandatoryConsent),
|
|
92
92
|
ML_CONSENT: () => import("./mandatoryConsent-BtqB-FxY.js").then((m) => m.MandatoryConsent),
|
|
93
93
|
SIGNATURE: () => import("./signature/signature.es.js").then((m) => m.Signature),
|
|
94
|
-
ID_OCR: () => import("./idOcr-
|
|
94
|
+
ID_OCR: () => import("./idOcr-kh-umkwD.js").then((m) => m.IdOcr),
|
|
95
95
|
ANTIFRAUD: () => import("./antifraud/antifraud.es.js").then((m) => m.Antifraud),
|
|
96
96
|
CUSTOM_FIELDS: () => import("./customFields-B8HQZ7Mh.js").then((m) => m.CustomFields),
|
|
97
97
|
WATCHLIST: () => import("./watchlist/watchlist.es.js").then((m) => m.Watchlist),
|
|
@@ -100,9 +100,9 @@ var LAZY_UI_MODULES = {
|
|
|
100
100
|
AE_SIGNATURE: () => import("./ae-signature/ae-signature.es.js").then((m) => m.AeSignature),
|
|
101
101
|
QE_SIGNATURE: () => import("./qe-signature/qe-signature.es.js").then((m) => m.QeSignature),
|
|
102
102
|
CROSS_DOCUMENT_DATA_MATCH: () => import("./cross-document-data-match/cross-document-data-match.es.js").then((m) => m.CrossDocumentDataMatch),
|
|
103
|
-
DYNAMIC_FORMS: () => import("./dynamicForms-
|
|
103
|
+
DYNAMIC_FORMS: () => import("./dynamicForms-9NI_Ypq6.js").then((m) => m.DynamicForms),
|
|
104
104
|
CERTIFICATE_ISSUANCE: () => import("./certificate-issuance/certificate-issuance.es.js").then((m) => m.CertificateIssuance),
|
|
105
|
-
FIELD_COMPARISON: () => import("./fieldComparison-
|
|
105
|
+
FIELD_COMPARISON: () => import("./fieldComparison-D794U8Yh.js").then((m) => m.FieldComparison),
|
|
106
106
|
FISCAL_QR: () => import("./fiscal-qr/fiscal-qr.es.js").then((m) => m.FiscalQr),
|
|
107
107
|
VIDEO_ONBOARDING: () => import("./video-selfie/video-selfie.es.js").then((m) => m.VideoSelfie)
|
|
108
108
|
};
|
package/dist/workflow/styles.css
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
--tw-leading: initial;
|
|
15
15
|
--tw-font-weight: initial;
|
|
16
16
|
--tw-tracking: initial;
|
|
17
|
-
--tw-outline-style: solid;
|
|
18
17
|
--tw-duration: initial;
|
|
18
|
+
--tw-outline-style: solid;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -246,6 +246,178 @@
|
|
|
246
246
|
color: var(--color-text-body-primary, var(--text-body-800-primary));
|
|
247
247
|
}
|
|
248
248
|
|
|
249
|
+
.IncodeSelfieManualUploadPage .IncodeSelfieManualUploadContainer {
|
|
250
|
+
gap: var(--spacing-8, var(--spacing-8, 8px));
|
|
251
|
+
width: 100%;
|
|
252
|
+
padding-block: var(--spacing-24, var(--spacing-24, 24px));
|
|
253
|
+
flex-direction: column;
|
|
254
|
+
display: flex;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.IncodeSelfieManualUploadPage .IncodeSelfieManualUploadFormats {
|
|
258
|
+
margin: var(--spacing-0, var(--spacing-none, 0px));
|
|
259
|
+
padding-inline: var(--spacing-4, var(--spacing-4, 4px));
|
|
260
|
+
font-family: var(--typography-body-family);
|
|
261
|
+
font-size: var(--typography-body-m-regular-size);
|
|
262
|
+
font-weight: var(--typography-body-m-regular-weight);
|
|
263
|
+
line-height: var(--typography-body-m-regular-line-height);
|
|
264
|
+
letter-spacing: var(--typography-body-m-regular-letter-spacing);
|
|
265
|
+
color: var(--color-text-body-secondary, var(--text-body-500-secondary));
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.IncodeSelfieManualUploadPage .IncodeSelfieManualUploadError {
|
|
269
|
+
align-items: flex-start;
|
|
270
|
+
gap: var(--spacing-4, var(--spacing-4, 4px));
|
|
271
|
+
width: 100%;
|
|
272
|
+
padding-inline: var(--spacing-4, var(--spacing-4, 4px));
|
|
273
|
+
font-family: var(--typography-body-family);
|
|
274
|
+
font-size: var(--typography-body-m-regular-size);
|
|
275
|
+
font-weight: var(--typography-body-m-regular-weight);
|
|
276
|
+
line-height: var(--typography-body-m-regular-line-height);
|
|
277
|
+
letter-spacing: var(--typography-body-m-regular-letter-spacing);
|
|
278
|
+
color: var(--color-input-text-helper-negative, var(--input-text-helper-negative));
|
|
279
|
+
display: flex;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.IncodeSelfieManualUploadPage .IncodeSelfieManualUploadError p {
|
|
283
|
+
margin: var(--spacing-0, var(--spacing-none, 0px));
|
|
284
|
+
flex: 1;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.IncodeSelfieManualUploadPage .IncodeSelfieManualUploadFooter {
|
|
288
|
+
margin-top: auto;
|
|
289
|
+
margin-bottom: var(--spacing-16, var(--spacing-16, 16px));
|
|
290
|
+
row-gap: var(--spacing-24, var(--spacing-24, 24px));
|
|
291
|
+
width: 100%;
|
|
292
|
+
padding-top: var(--spacing-24, var(--spacing-24, 24px));
|
|
293
|
+
flex-direction: column;
|
|
294
|
+
display: flex;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.IncodeSelfieManualUploadPage .IncodeSelfieManualUploadHintCard {
|
|
298
|
+
margin: var(--spacing-0, var(--spacing-none, 0px));
|
|
299
|
+
border-radius: var(--radius-x-small, var(--border-radius-x-small));
|
|
300
|
+
background-color: var(--color-surface-brand-50, var(--surface-brand-50));
|
|
301
|
+
width: 100%;
|
|
302
|
+
padding-block: var(--spacing-16, var(--spacing-16, 16px));
|
|
303
|
+
padding-right: var(--spacing-12, var(--spacing-12, 12px));
|
|
304
|
+
padding-left: var(--spacing-32, var(--spacing-32, 32px));
|
|
305
|
+
color: var(--color-text-body-primary, var(--text-body-800-primary));
|
|
306
|
+
list-style-type: disc;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.IncodeSelfieManualUploadPage .IncodeSelfieManualUploadHintCard li {
|
|
310
|
+
font-family: var(--typography-button-family);
|
|
311
|
+
font-size: var(--typography-button-s-size);
|
|
312
|
+
font-weight: var(--typography-button-s-weight);
|
|
313
|
+
line-height: var(--typography-button-s-line-height);
|
|
314
|
+
letter-spacing: var(--typography-button-s-letter-spacing);
|
|
315
|
+
color: var(--color-text-body-primary, var(--text-body-800-primary));
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.IncodeSelfieManualUploadPage .IncodeSelfieManualUploadHintCard li + li {
|
|
319
|
+
margin-top: var(--spacing-4, var(--spacing-4, 4px));
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.IncodeSelfieUploadSlot {
|
|
323
|
+
cursor: pointer;
|
|
324
|
+
align-items: center;
|
|
325
|
+
gap: var(--spacing-12, var(--spacing-12, 12px));
|
|
326
|
+
border-radius: var(--radius-medium, var(--border-radius-medium));
|
|
327
|
+
border-style: var(--tw-border-style);
|
|
328
|
+
border-width: var(--border-width-regular, var(--primitive-border-width-1));
|
|
329
|
+
--tw-border-style: solid;
|
|
330
|
+
border-style: solid;
|
|
331
|
+
border-color: var(--color-border-neutral-100, var(--border-neutral-100));
|
|
332
|
+
background-color: var(--color-surface-neutral-50, var(--surface-neutral-50));
|
|
333
|
+
width: 100%;
|
|
334
|
+
padding-block: var(--spacing-24, var(--spacing-24, 24px));
|
|
335
|
+
padding-right: var(--spacing-24, var(--spacing-24, 24px));
|
|
336
|
+
padding-left: var(--spacing-20, var(--spacing-20, 20px));
|
|
337
|
+
text-align: left;
|
|
338
|
+
display: flex;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.IncodeSelfieUploadSlot .IncodeSelfieUploadSlotIcon {
|
|
342
|
+
width: var(--spacing-24, var(--spacing-24, 24px));
|
|
343
|
+
height: var(--spacing-24, var(--spacing-24, 24px));
|
|
344
|
+
color: var(--color-icon-neutral-500, var(--icon-neutral-500));
|
|
345
|
+
flex-shrink: 0;
|
|
346
|
+
justify-content: center;
|
|
347
|
+
display: flex;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.IncodeSelfieUploadSlot .IncodeSelfieUploadSlotLabel {
|
|
351
|
+
text-overflow: ellipsis;
|
|
352
|
+
white-space: nowrap;
|
|
353
|
+
text-align: left;
|
|
354
|
+
font-family: var(--typography-headline-family);
|
|
355
|
+
font-size: var(--typography-headline-h5-size);
|
|
356
|
+
font-weight: var(--typography-headline-h5-weight);
|
|
357
|
+
line-height: var(--typography-headline-h5-line-height);
|
|
358
|
+
letter-spacing: var(--typography-headline-h5-letter-spacing);
|
|
359
|
+
color: var(--color-text-body-primary, var(--text-body-800-primary));
|
|
360
|
+
flex: 1;
|
|
361
|
+
overflow: hidden;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.IncodeSelfieUploadSlot .IncodeSelfieUploadSlotAction {
|
|
365
|
+
flex-shrink: 0;
|
|
366
|
+
justify-content: center;
|
|
367
|
+
align-items: center;
|
|
368
|
+
display: inline-flex;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.IncodeSelfieUploadSlot .IncodeSelfieUploadSlotPill {
|
|
372
|
+
align-items: center;
|
|
373
|
+
gap: var(--spacing-4, var(--spacing-4, 4px));
|
|
374
|
+
border-radius: var(--radius-full, var(--border-radius-full));
|
|
375
|
+
background-color: var(--color-button-primary-surface-default, var(--button-primary-surface-default));
|
|
376
|
+
padding-block: var(--spacing-8, var(--spacing-8, 8px));
|
|
377
|
+
padding-right: var(--spacing-8, var(--spacing-8, 8px));
|
|
378
|
+
padding-left: var(--spacing-16, var(--spacing-16, 16px));
|
|
379
|
+
font-family: var(--typography-button-family);
|
|
380
|
+
font-size: var(--typography-button-s-size);
|
|
381
|
+
font-weight: var(--typography-button-s-weight);
|
|
382
|
+
line-height: var(--typography-button-s-line-height);
|
|
383
|
+
letter-spacing: var(--typography-button-s-letter-spacing);
|
|
384
|
+
color: var(--color-button-primary-text-default, var(--button-primary-text-default));
|
|
385
|
+
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
|
|
386
|
+
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(.4, 0, .2, 1)));
|
|
387
|
+
transition-duration: var(--tw-duration, var(--default-transition-duration, .15s));
|
|
388
|
+
--tw-duration: .2s;
|
|
389
|
+
transition-duration: .2s;
|
|
390
|
+
display: inline-flex;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.IncodeSelfieUploadSlot:focus-visible {
|
|
394
|
+
outline-style: var(--tw-outline-style);
|
|
395
|
+
outline-offset: 2px;
|
|
396
|
+
outline-width: 2px;
|
|
397
|
+
outline-color: var(--color-border-status-focus, var(--border-status-focus));
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
.IncodeSelfieUploadSlot:hover:not(:disabled) .IncodeSelfieUploadSlotPill {
|
|
401
|
+
background-color: var(--color-button-primary-surface-hover, var(--button-primary-surface-hover));
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
.IncodeSelfieUploadSlot:disabled {
|
|
405
|
+
cursor: not-allowed;
|
|
406
|
+
opacity: .5;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
.IncodeSelfieUploadSlot + .IncodeSelfieUploadSlotInput {
|
|
410
|
+
clip-path: inset(50%);
|
|
411
|
+
white-space: nowrap;
|
|
412
|
+
border-width: 0;
|
|
413
|
+
width: 1px;
|
|
414
|
+
height: 1px;
|
|
415
|
+
margin: -1px;
|
|
416
|
+
padding: 0;
|
|
417
|
+
position: absolute;
|
|
418
|
+
overflow: hidden;
|
|
419
|
+
}
|
|
420
|
+
|
|
249
421
|
.IncodePhonePage .IncodePageContent {
|
|
250
422
|
padding-top: var(--spacing-32, var(--spacing-32, 32px));
|
|
251
423
|
padding-bottom: var(--spacing-16, var(--spacing-16, 16px));
|
|
@@ -4334,15 +4506,15 @@
|
|
|
4334
4506
|
inherits: false
|
|
4335
4507
|
}
|
|
4336
4508
|
|
|
4337
|
-
@property --tw-
|
|
4509
|
+
@property --tw-duration {
|
|
4338
4510
|
syntax: "*";
|
|
4339
|
-
inherits: false
|
|
4340
|
-
initial-value: solid;
|
|
4511
|
+
inherits: false
|
|
4341
4512
|
}
|
|
4342
4513
|
|
|
4343
|
-
@property --tw-
|
|
4514
|
+
@property --tw-outline-style {
|
|
4344
4515
|
syntax: "*";
|
|
4345
|
-
inherits: false
|
|
4516
|
+
inherits: false;
|
|
4517
|
+
initial-value: solid;
|
|
4346
4518
|
}
|
|
4347
4519
|
|
|
4348
4520
|
@keyframes spin {
|
|
@@ -4,7 +4,7 @@ import { i as fetchAndApplyTheme } from "../dashboardTheme-CVliZSR-.js";
|
|
|
4
4
|
import { a as TerminalErrorPage, i as ResolvedConfigProvider, l as TransitionSpinner, o as Page, t as IncodeComponent, y as useManager } from "../incodeComponent-K9ZWg302.js";
|
|
5
5
|
import { t as AutoFocusTitle } from "../autoFocusTitle-gLba2mgp.js";
|
|
6
6
|
import { t as registerIncodeModuleElement } from "../incodeModule-CcLzar_X.js";
|
|
7
|
-
import { a as resolveApiKey, g as setupSDK, i as HEADLESS_WORKFLOW_MODULE_KEYS, l as LAZY_UI_MODULES, o as extractIncodeStatus, s as UnsupportedModule, t as useModuleLoader, v as isDesktopOrEmulated } from "../useModuleLoader-
|
|
7
|
+
import { a as resolveApiKey, g as setupSDK, i as HEADLESS_WORKFLOW_MODULE_KEYS, l as LAZY_UI_MODULES, o as extractIncodeStatus, s as UnsupportedModule, t as useModuleLoader, v as isDesktopOrEmulated } from "../useModuleLoader-Ct3amb9c.js";
|
|
8
8
|
import { resolveWasmConfig, upgradeToWasmHttpClient, warmupWasm } from "@incodetech/core/wasm";
|
|
9
9
|
import { classifyScoreStatus } from "@incodetech/core/flow";
|
|
10
10
|
import { bootstrapSession, refreshQrUrlUuid } from "@incodetech/core/session";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/web",
|
|
3
|
-
"version": "0.0.0-dev-20260812-
|
|
3
|
+
"version": "0.0.0-dev-20260812-d815489d",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -292,7 +292,7 @@
|
|
|
292
292
|
"qrcode": "^1.5.4",
|
|
293
293
|
"signature_pad": "^5.1.3",
|
|
294
294
|
"tailwindcss": "^4.1.17",
|
|
295
|
-
"@incodetech/core": "0.0.0-dev-20260812-
|
|
295
|
+
"@incodetech/core": "0.0.0-dev-20260812-d815489d"
|
|
296
296
|
},
|
|
297
297
|
"devDependencies": {
|
|
298
298
|
"@microsoft/api-extractor": "^7.53.3",
|