@jaak.ai/stamps 2.1.0-dev.12 → 2.1.0-dev.14
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/cjs/jaak-stamps.cjs.entry.js +15 -12
- package/dist/cjs/jaak-stamps.cjs.entry.js.map +1 -1
- package/dist/cjs/jaak-stamps.entry.cjs.js.map +1 -1
- package/dist/collection/components/my-component/my-component.js +15 -12
- package/dist/collection/components/my-component/my-component.js.map +1 -1
- package/dist/components/jaak-stamps.js +15 -12
- package/dist/components/jaak-stamps.js.map +1 -1
- package/dist/esm/jaak-stamps.entry.js +15 -12
- package/dist/esm/jaak-stamps.entry.js.map +1 -1
- package/dist/jaak-stamps-webcomponent/jaak-stamps-webcomponent.esm.js +1 -1
- package/dist/jaak-stamps-webcomponent/jaak-stamps.entry.esm.js.map +1 -1
- package/dist/jaak-stamps-webcomponent/{p-a76ae84d.entry.js → p-fd8481ba.entry.js} +2 -2
- package/dist/jaak-stamps-webcomponent/{p-a76ae84d.entry.js.map → p-fd8481ba.entry.js.map} +1 -1
- package/package.json +1 -1
|
@@ -2316,8 +2316,8 @@ const JaakStamps$1 = /*@__PURE__*/ proxyCustomElement(class JaakStamps extends H
|
|
|
2316
2316
|
if (captureState.step === 'front') {
|
|
2317
2317
|
this.stateManager.setCapturedImages({
|
|
2318
2318
|
front: {
|
|
2319
|
-
fullFrame: captureCanvas.toDataURL('image/
|
|
2320
|
-
cropped: croppedCanvas.toDataURL('image/
|
|
2319
|
+
fullFrame: captureCanvas.toDataURL('image/jpeg'),
|
|
2320
|
+
cropped: croppedCanvas.toDataURL('image/jpeg')
|
|
2321
2321
|
}
|
|
2322
2322
|
});
|
|
2323
2323
|
// Check if document classification is enabled (independent of detector)
|
|
@@ -2357,8 +2357,8 @@ const JaakStamps$1 = /*@__PURE__*/ proxyCustomElement(class JaakStamps extends H
|
|
|
2357
2357
|
else if (captureState.step === 'back') {
|
|
2358
2358
|
this.stateManager.setCapturedImages({
|
|
2359
2359
|
back: {
|
|
2360
|
-
fullFrame: captureCanvas.toDataURL('image/
|
|
2361
|
-
cropped: croppedCanvas.toDataURL('image/
|
|
2360
|
+
fullFrame: captureCanvas.toDataURL('image/jpeg'),
|
|
2361
|
+
cropped: croppedCanvas.toDataURL('image/jpeg')
|
|
2362
2362
|
}
|
|
2363
2363
|
});
|
|
2364
2364
|
this.completeProcess(false);
|
|
@@ -2396,8 +2396,8 @@ const JaakStamps$1 = /*@__PURE__*/ proxyCustomElement(class JaakStamps extends H
|
|
|
2396
2396
|
if (captureState.step === 'front') {
|
|
2397
2397
|
this.stateManager.setCapturedImages({
|
|
2398
2398
|
front: {
|
|
2399
|
-
fullFrame: captureCanvas.toDataURL('image/
|
|
2400
|
-
cropped: croppedCanvas.toDataURL('image/
|
|
2399
|
+
fullFrame: captureCanvas.toDataURL('image/jpeg'),
|
|
2400
|
+
cropped: croppedCanvas.toDataURL('image/jpeg')
|
|
2401
2401
|
}
|
|
2402
2402
|
});
|
|
2403
2403
|
// Check if document classification is enabled
|
|
@@ -2429,8 +2429,8 @@ const JaakStamps$1 = /*@__PURE__*/ proxyCustomElement(class JaakStamps extends H
|
|
|
2429
2429
|
else if (captureState.step === 'back') {
|
|
2430
2430
|
this.stateManager.setCapturedImages({
|
|
2431
2431
|
back: {
|
|
2432
|
-
fullFrame: captureCanvas.toDataURL('image/
|
|
2433
|
-
cropped: croppedCanvas.toDataURL('image/
|
|
2432
|
+
fullFrame: captureCanvas.toDataURL('image/jpeg'),
|
|
2433
|
+
cropped: croppedCanvas.toDataURL('image/jpeg')
|
|
2434
2434
|
}
|
|
2435
2435
|
});
|
|
2436
2436
|
this.completeProcess(false);
|
|
@@ -2556,10 +2556,13 @@ const JaakStamps$1 = /*@__PURE__*/ proxyCustomElement(class JaakStamps extends H
|
|
|
2556
2556
|
this.useDocumentDetector = false; // Desactivar detector automático
|
|
2557
2557
|
// Actualizar el estado con mensaje de error
|
|
2558
2558
|
this.updateStatus('Modo manual activado', errorMessage, 'error');
|
|
2559
|
-
//
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2559
|
+
// Continuar con la configuración de cámara para mostrar el video
|
|
2560
|
+
this.continueWithCameraSetup().catch(() => {
|
|
2561
|
+
// Si falla la configuración de cámara, mantener el mensaje de error pero cambiar el estado
|
|
2562
|
+
setTimeout(() => {
|
|
2563
|
+
this.updateStatus('Captura manual', 'Use el botón para capturar', 'ready');
|
|
2564
|
+
}, 5000);
|
|
2565
|
+
});
|
|
2563
2566
|
}
|
|
2564
2567
|
stopPerformanceMonitoring() {
|
|
2565
2568
|
// Nota: No necesitamos limpiar más variables porque ya no se usarán
|