@incodetech/web 0.0.0-dev-20260929-1ff615b8 → 0.0.0-dev-20260929-87a84948
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/extensibility.es.js
CHANGED
|
@@ -26,7 +26,7 @@ import { t as DateInputComposed } from "./dateInputComposed-DaxKCVG-.js";
|
|
|
26
26
|
import "./dateInputComposed-BeCmhd6E.js";
|
|
27
27
|
import { n as RadioButtonComposed, t as RadioGroupComposed } from "./radioGroupComposed-D245MhsB.js";
|
|
28
28
|
import "./radioGroupComposed-srs0PksR.js";
|
|
29
|
-
import { b as VerificationOptionCard, c as IdExpired, i as Capture, l as IdError, n as Chooser, r as Tutorial, t as FlipAnimation, x as VerificationOptionCardList } from "./flipAnimation-
|
|
29
|
+
import { b as VerificationOptionCard, c as IdExpired, i as Capture, l as IdError, n as Chooser, r as Tutorial, t as FlipAnimation, x as VerificationOptionCardList } from "./flipAnimation-C590vaUj.js";
|
|
30
30
|
import { t as BottomSheet } from "./bottomSheet-BbljtL5F.js";
|
|
31
31
|
import { n as CameraFrame, t as CameraView } from "./cameraView-DxtCa4XL.js";
|
|
32
32
|
import { n as CameraOverlay, t as CameraOverlayHeader } from "./cameraOverlayHeader-WT8h3ypF.js";
|
|
@@ -195,13 +195,13 @@ var QuestionIcon = ({ className }) => {
|
|
|
195
195
|
};
|
|
196
196
|
//#endregion
|
|
197
197
|
//#region src/modules/id/commonIssues.tsx
|
|
198
|
-
var CommonIssues = ({ open, onClose, onTakeManually, portalContainer }) => {
|
|
198
|
+
var CommonIssues = ({ open, onClose, onTakeManually, onTakeAutomatically, portalContainer }) => {
|
|
199
199
|
const { t } = useTranslation();
|
|
200
200
|
const titleRef = q((el) => {
|
|
201
201
|
el?.focus();
|
|
202
202
|
}, []);
|
|
203
|
-
const
|
|
204
|
-
onTakeManually();
|
|
203
|
+
const handleSwitchCaptureMode = () => {
|
|
204
|
+
(onTakeAutomatically ?? onTakeManually)();
|
|
205
205
|
onClose();
|
|
206
206
|
};
|
|
207
207
|
return /* @__PURE__ */ u(Modal.Root, {
|
|
@@ -287,9 +287,9 @@ var CommonIssues = ({ open, onClose, onTakeManually, portalContainer }) => {
|
|
|
287
287
|
class: "IncodeCommonIssuesButtons",
|
|
288
288
|
children: [/* @__PURE__ */ u(Button, {
|
|
289
289
|
variant: "link",
|
|
290
|
-
onClick:
|
|
290
|
+
onClick: handleSwitchCaptureMode,
|
|
291
291
|
class: "IncodeCommonIssuesTakeManually",
|
|
292
|
-
children: t("commonIssues.takeManually")
|
|
292
|
+
children: t(onTakeAutomatically ? "commonIssues.takeAutomatically" : "commonIssues.takeManually")
|
|
293
293
|
}), /* @__PURE__ */ u(Button, {
|
|
294
294
|
onClick: onClose,
|
|
295
295
|
class: "IncodeCommonIssuesTryAgain",
|
|
@@ -1557,7 +1557,7 @@ var Capture = ({ manager, state }) => {
|
|
|
1557
1557
|
countdownStart,
|
|
1558
1558
|
isResultPreview,
|
|
1559
1559
|
resultPreviewImageUrl,
|
|
1560
|
-
hideFooterActions: !isLiveStage,
|
|
1560
|
+
hideFooterActions: !isLiveStage || state.captureStatus === "optimizing",
|
|
1561
1561
|
manualTooltipUx
|
|
1562
1562
|
})
|
|
1563
1563
|
}, "live");
|
|
@@ -1591,9 +1591,10 @@ var CaptureView = ({ manager, state, isCapturing, countdownStart, isResultPrevie
|
|
|
1591
1591
|
blurImage: state.ageAssurance
|
|
1592
1592
|
} : void 0;
|
|
1593
1593
|
const handleOpenHelp = () => {
|
|
1594
|
-
setIsHelpOpen(true);
|
|
1594
|
+
if (manager.openHelp()) setIsHelpOpen(true);
|
|
1595
1595
|
};
|
|
1596
1596
|
const handleCloseHelp = () => {
|
|
1597
|
+
manager.closeHelp();
|
|
1597
1598
|
setIsHelpOpen(false);
|
|
1598
1599
|
requestAnimationFrame(() => {
|
|
1599
1600
|
if (captureButtonRef.current) captureButtonRef.current.focus();
|
|
@@ -1601,9 +1602,11 @@ var CaptureView = ({ manager, state, isCapturing, countdownStart, isResultPrevie
|
|
|
1601
1602
|
});
|
|
1602
1603
|
};
|
|
1603
1604
|
const handleTakeManually = () => {
|
|
1604
|
-
setIsHelpOpen(false);
|
|
1605
1605
|
manager.switchToManualCapture();
|
|
1606
1606
|
};
|
|
1607
|
+
const handleTakeAutomatically = () => {
|
|
1608
|
+
manager.switchToAutoCapture();
|
|
1609
|
+
};
|
|
1607
1610
|
const handleCapture = () => {
|
|
1608
1611
|
manager.capture();
|
|
1609
1612
|
};
|
|
@@ -1642,6 +1645,7 @@ var CaptureView = ({ manager, state, isCapturing, countdownStart, isResultPrevie
|
|
|
1642
1645
|
open: isHelpOpen,
|
|
1643
1646
|
onClose: handleCloseHelp,
|
|
1644
1647
|
onTakeManually: handleTakeManually,
|
|
1648
|
+
onTakeAutomatically: state.detectionStatus === "manualCapture" ? handleTakeAutomatically : void 0,
|
|
1645
1649
|
portalContainer: portalRef.current
|
|
1646
1650
|
})
|
|
1647
1651
|
]
|
package/dist/id/id.es.js
CHANGED
|
@@ -9,7 +9,7 @@ import { t as Processing } from "../processing-BtqihZuB.js";
|
|
|
9
9
|
import { t as Modal } from "../modal-Dzas0hFt.js";
|
|
10
10
|
import { t as VerificationResult } from "../verificationResult-XFFC0U4U.js";
|
|
11
11
|
import { n as CaptureFooter, r as ProgressBar } from "../useCaptureHelpButton-DLy6Xcwf.js";
|
|
12
|
-
import { _ as ID_CAPTURE_LOADING_PHASE, a as CaptureAutoFocusProvider, c as IdExpired, d as CaptureFrame, f as useIdExperiment, g as EXPERIMENT_LIFECYCLE_STATUS, h as CONTINUING_TUTORIAL_PHASES, i as Capture, l as IdError, m as CAMERA_WARMUP_LOADING_PHASES, n as Chooser, o as getCaptureFrameTitle, p as CAMERA_PERMISSION_UX, r as Tutorial, s as IdNoAttempts, t as FlipAnimation, u as canFlipCapturedCard, v as ID_CAPTURE_STATUS, y as PERMISSION_DIALOG_STATUS } from "../flipAnimation-
|
|
12
|
+
import { _ as ID_CAPTURE_LOADING_PHASE, a as CaptureAutoFocusProvider, c as IdExpired, d as CaptureFrame, f as useIdExperiment, g as EXPERIMENT_LIFECYCLE_STATUS, h as CONTINUING_TUTORIAL_PHASES, i as Capture, l as IdError, m as CAMERA_WARMUP_LOADING_PHASES, n as Chooser, o as getCaptureFrameTitle, p as CAMERA_PERMISSION_UX, r as Tutorial, s as IdNoAttempts, t as FlipAnimation, u as canFlipCapturedCard, v as ID_CAPTURE_STATUS, y as PERMISSION_DIALOG_STATUS } from "../flipAnimation-C590vaUj.js";
|
|
13
13
|
import { t as BottomSheet } from "../bottomSheet-BbljtL5F.js";
|
|
14
14
|
import { n as CameraFrame, t as CameraView } from "../cameraView-DxtCa4XL.js";
|
|
15
15
|
import { n as CameraOverlay, t as CameraOverlayHeader } from "../cameraOverlayHeader-WT8h3ypF.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/web",
|
|
3
|
-
"version": "0.0.0-dev-20260929-
|
|
3
|
+
"version": "0.0.0-dev-20260929-87a84948",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -287,7 +287,7 @@
|
|
|
287
287
|
],
|
|
288
288
|
"dependencies": {
|
|
289
289
|
"preact": "^10.27.2",
|
|
290
|
-
"@incodetech/core": "0.0.0-dev-20260929-
|
|
290
|
+
"@incodetech/core": "0.0.0-dev-20260929-87a84948"
|
|
291
291
|
},
|
|
292
292
|
"devDependencies": {
|
|
293
293
|
"@fontsource/dm-sans": "^5.2.8",
|