@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
|
@@ -2314,8 +2314,8 @@ const JaakStamps = class {
|
|
|
2314
2314
|
if (captureState.step === 'front') {
|
|
2315
2315
|
this.stateManager.setCapturedImages({
|
|
2316
2316
|
front: {
|
|
2317
|
-
fullFrame: captureCanvas.toDataURL('image/
|
|
2318
|
-
cropped: croppedCanvas.toDataURL('image/
|
|
2317
|
+
fullFrame: captureCanvas.toDataURL('image/jpeg'),
|
|
2318
|
+
cropped: croppedCanvas.toDataURL('image/jpeg')
|
|
2319
2319
|
}
|
|
2320
2320
|
});
|
|
2321
2321
|
// Check if document classification is enabled (independent of detector)
|
|
@@ -2355,8 +2355,8 @@ const JaakStamps = class {
|
|
|
2355
2355
|
else if (captureState.step === 'back') {
|
|
2356
2356
|
this.stateManager.setCapturedImages({
|
|
2357
2357
|
back: {
|
|
2358
|
-
fullFrame: captureCanvas.toDataURL('image/
|
|
2359
|
-
cropped: croppedCanvas.toDataURL('image/
|
|
2358
|
+
fullFrame: captureCanvas.toDataURL('image/jpeg'),
|
|
2359
|
+
cropped: croppedCanvas.toDataURL('image/jpeg')
|
|
2360
2360
|
}
|
|
2361
2361
|
});
|
|
2362
2362
|
this.completeProcess(false);
|
|
@@ -2394,8 +2394,8 @@ const JaakStamps = class {
|
|
|
2394
2394
|
if (captureState.step === 'front') {
|
|
2395
2395
|
this.stateManager.setCapturedImages({
|
|
2396
2396
|
front: {
|
|
2397
|
-
fullFrame: captureCanvas.toDataURL('image/
|
|
2398
|
-
cropped: croppedCanvas.toDataURL('image/
|
|
2397
|
+
fullFrame: captureCanvas.toDataURL('image/jpeg'),
|
|
2398
|
+
cropped: croppedCanvas.toDataURL('image/jpeg')
|
|
2399
2399
|
}
|
|
2400
2400
|
});
|
|
2401
2401
|
// Check if document classification is enabled
|
|
@@ -2427,8 +2427,8 @@ const JaakStamps = class {
|
|
|
2427
2427
|
else if (captureState.step === 'back') {
|
|
2428
2428
|
this.stateManager.setCapturedImages({
|
|
2429
2429
|
back: {
|
|
2430
|
-
fullFrame: captureCanvas.toDataURL('image/
|
|
2431
|
-
cropped: croppedCanvas.toDataURL('image/
|
|
2430
|
+
fullFrame: captureCanvas.toDataURL('image/jpeg'),
|
|
2431
|
+
cropped: croppedCanvas.toDataURL('image/jpeg')
|
|
2432
2432
|
}
|
|
2433
2433
|
});
|
|
2434
2434
|
this.completeProcess(false);
|
|
@@ -2554,10 +2554,13 @@ const JaakStamps = class {
|
|
|
2554
2554
|
this.useDocumentDetector = false; // Desactivar detector automático
|
|
2555
2555
|
// Actualizar el estado con mensaje de error
|
|
2556
2556
|
this.updateStatus('Modo manual activado', errorMessage, 'error');
|
|
2557
|
-
//
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2557
|
+
// Continuar con la configuración de cámara para mostrar el video
|
|
2558
|
+
this.continueWithCameraSetup().catch(() => {
|
|
2559
|
+
// Si falla la configuración de cámara, mantener el mensaje de error pero cambiar el estado
|
|
2560
|
+
setTimeout(() => {
|
|
2561
|
+
this.updateStatus('Captura manual', 'Use el botón para capturar', 'ready');
|
|
2562
|
+
}, 5000);
|
|
2563
|
+
});
|
|
2561
2564
|
}
|
|
2562
2565
|
stopPerformanceMonitoring() {
|
|
2563
2566
|
// Nota: No necesitamos limpiar más variables porque ya no se usarán
|