@incodetech/web 0.0.0-dev-20260610-e5b4c4d5 → 0.0.0-dev-20260610-1fe09049
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.
|
@@ -209,7 +209,8 @@ var CurpValidationContent = ({ config, manager: externalManager, onFinish, onErr
|
|
|
209
209
|
onFinish,
|
|
210
210
|
onError
|
|
211
211
|
});
|
|
212
|
-
if (state.status === "idle" || state.status === "loading"
|
|
212
|
+
if (state.status === "idle" || state.status === "loading") return /* @__PURE__ */ u(TransitionSpinner, { hideText: true });
|
|
213
|
+
if (state.status === "verifying" || state.status === "generating") return /* @__PURE__ */ u(TransitionSpinner, { spinnerConfig: { title: state.status === "generating" ? t("curp.status.generating") ?? "Generating..." : t("curp.status.verifying") ?? "Verifying..." } });
|
|
213
214
|
if (state.status === "enterCurp") return /* @__PURE__ */ u(Page, {
|
|
214
215
|
className: "IncodeCurpValidationPage",
|
|
215
216
|
title: t("curp.enterCurp") ?? "Enter your CURP",
|
|
@@ -277,6 +278,7 @@ var CurpValidationContent = ({ config, manager: externalManager, onFinish, onErr
|
|
|
277
278
|
if (state.status === "failure" || state.status === "generateError") {
|
|
278
279
|
const canRetry = state.retriesLeft > 0;
|
|
279
280
|
const title = state.status === "failure" ? t("curp.status.notVerified") ?? "Not verified" : t("curp.status.couldntGenerate") ?? "Couldn't generate CURP";
|
|
281
|
+
const failureRetryLabel = state.status === "failure" && state.fromAutoVerify ? t("curp.verifyManually") : t("curp.status.tryAgain");
|
|
280
282
|
return /* @__PURE__ */ u(Page, {
|
|
281
283
|
className: "IncodeCurpValidationPage",
|
|
282
284
|
children: /* @__PURE__ */ u("div", {
|
|
@@ -299,7 +301,7 @@ var CurpValidationContent = ({ config, manager: externalManager, onFinish, onErr
|
|
|
299
301
|
type: "button",
|
|
300
302
|
onClick: () => manager.retry(),
|
|
301
303
|
"data-testid": "curp-retry",
|
|
302
|
-
children: state.status === "failure" ?
|
|
304
|
+
children: state.status === "failure" ? failureRetryLabel : t("curp.status.edit") ?? "Edit information"
|
|
303
305
|
}) })
|
|
304
306
|
]
|
|
305
307
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/web",
|
|
3
|
-
"version": "0.0.0-dev-20260610-
|
|
3
|
+
"version": "0.0.0-dev-20260610-1fe09049",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/IncodeTechnologies/incode-web-sdk.git"
|
|
@@ -255,7 +255,7 @@
|
|
|
255
255
|
"qrcode": "^1.5.4",
|
|
256
256
|
"signature_pad": "^5.1.3",
|
|
257
257
|
"tailwindcss": "^4.1.17",
|
|
258
|
-
"@incodetech/core": "0.0.0-dev-20260610-
|
|
258
|
+
"@incodetech/core": "0.0.0-dev-20260610-1fe09049"
|
|
259
259
|
},
|
|
260
260
|
"devDependencies": {
|
|
261
261
|
"@microsoft/api-extractor": "^7.53.3",
|