@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.
@@ -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/png'),
2320
- cropped: croppedCanvas.toDataURL('image/png')
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/png'),
2361
- cropped: croppedCanvas.toDataURL('image/png')
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/png'),
2400
- cropped: croppedCanvas.toDataURL('image/png')
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/png'),
2433
- cropped: croppedCanvas.toDataURL('image/png')
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
- // Ocultar mensaje después de 5 segundos
2560
- setTimeout(() => {
2561
- this.updateStatus('Captura manual', 'Use el botón para capturar', 'ready');
2562
- }, 5000);
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