@jaak.ai/stamps 2.0.0-dev.39 → 2.0.0-dev.41

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.
Files changed (43) hide show
  1. package/README.md +4 -1
  2. package/dist/cjs/jaak-stamps-webcomponent.cjs.js +1 -1
  3. package/dist/cjs/jaak-stamps.cjs.entry.js +875 -13
  4. package/dist/cjs/jaak-stamps.cjs.entry.js.map +1 -1
  5. package/dist/cjs/jaak-stamps.entry.cjs.js.map +1 -1
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/collection/components/my-component/my-component.css +66 -0
  8. package/dist/collection/components/my-component/my-component.js +501 -10
  9. package/dist/collection/components/my-component/my-component.js.map +1 -1
  10. package/dist/collection/services/CameraService.js +161 -0
  11. package/dist/collection/services/CameraService.js.map +1 -1
  12. package/dist/collection/services/DetectionService.js +164 -1
  13. package/dist/collection/services/DetectionService.js.map +1 -1
  14. package/dist/collection/services/ImageQualityService.js +329 -0
  15. package/dist/collection/services/ImageQualityService.js.map +1 -0
  16. package/dist/collection/services/ServiceContainer.js +6 -1
  17. package/dist/collection/services/ServiceContainer.js.map +1 -1
  18. package/dist/collection/services/interfaces/ICameraService.js.map +1 -1
  19. package/dist/collection/services/interfaces/IDetectionService.js.map +1 -1
  20. package/dist/collection/services/interfaces/IImageQualityService.js +2 -0
  21. package/dist/collection/services/interfaces/IImageQualityService.js.map +1 -0
  22. package/dist/components/jaak-stamps.js +892 -14
  23. package/dist/components/jaak-stamps.js.map +1 -1
  24. package/dist/esm/jaak-stamps-webcomponent.js +1 -1
  25. package/dist/esm/jaak-stamps.entry.js +875 -13
  26. package/dist/esm/jaak-stamps.entry.js.map +1 -1
  27. package/dist/esm/loader.js +1 -1
  28. package/dist/jaak-stamps-webcomponent/jaak-stamps-webcomponent.esm.js +1 -1
  29. package/dist/jaak-stamps-webcomponent/jaak-stamps.entry.esm.js.map +1 -1
  30. package/dist/jaak-stamps-webcomponent/p-47f37982.entry.js +2 -0
  31. package/dist/jaak-stamps-webcomponent/p-47f37982.entry.js.map +1 -0
  32. package/dist/types/components/my-component/my-component.d.ts +48 -0
  33. package/dist/types/components.d.ts +65 -0
  34. package/dist/types/services/CameraService.d.ts +5 -0
  35. package/dist/types/services/DetectionService.d.ts +22 -2
  36. package/dist/types/services/ImageQualityService.d.ts +31 -0
  37. package/dist/types/services/ServiceContainer.d.ts +7 -0
  38. package/dist/types/services/interfaces/ICameraService.d.ts +2 -0
  39. package/dist/types/services/interfaces/IDetectionService.d.ts +13 -0
  40. package/dist/types/services/interfaces/IImageQualityService.d.ts +58 -0
  41. package/package.json +1 -1
  42. package/dist/jaak-stamps-webcomponent/p-043b1cfd.entry.js +0 -2
  43. package/dist/jaak-stamps-webcomponent/p-043b1cfd.entry.js.map +0 -1
@@ -5,7 +5,7 @@ var index = require('./index-BfhtOB0D.js');
5
5
  const defineCustomElements = async (win, options) => {
6
6
  if (typeof window === 'undefined') return undefined;
7
7
  await index.globalScripts();
8
- return index.bootstrapLazy([["jaak-stamps.cjs",[[1,"jaak-stamps",{"debug":[4],"alignmentTolerance":[2,"alignment-tolerance"],"maskSize":[2,"mask-size"],"cropMargin":[2,"crop-margin"],"useDocumentClassification":[4,"use-document-classification"],"preferredCamera":[1,"preferred-camera"],"detectionBoxes":[32],"sideAlignment":[32],"isMaskReady":[32],"shouldMirrorVideo":[32],"showCameraSelector":[32],"isSwitchingCamera":[32],"currentStatus":[32],"performanceData":[32],"getCapturedImages":[64],"isProcessCompleted":[64],"startCapture":[64],"stopCapture":[64],"resetCapture":[64],"skipBackCapture":[64],"getStatus":[64],"preloadModel":[64],"getCameraInfo":[64],"setPreferredCamera":[64]}]]]], options);
8
+ return index.bootstrapLazy([["jaak-stamps.cjs",[[1,"jaak-stamps",{"debug":[4],"alignmentTolerance":[2,"alignment-tolerance"],"maskSize":[2,"mask-size"],"cropMargin":[2,"crop-margin"],"useDocumentClassification":[4,"use-document-classification"],"preferredCamera":[1,"preferred-camera"],"captureDelay":[2,"capture-delay"],"enableQualityValidation":[4,"enable-quality-validation"],"qualityThreshold":[2,"quality-threshold"],"minQualityScore":[2,"min-quality-score"],"minFocusScore":[2,"min-focus-score"],"minBlurScore":[2,"min-blur-score"],"maxReflectionScore":[2,"max-reflection-score"],"detectionBoxes":[32],"sideAlignment":[32],"isMaskReady":[32],"shouldMirrorVideo":[32],"showCameraSelector":[32],"isSwitchingCamera":[32],"hasDocumentDetected":[32],"currentStatus":[32],"qualityFeedback":[32],"performanceData":[32],"getCapturedImages":[64],"isProcessCompleted":[64],"startCapture":[64],"stopCapture":[64],"resetCapture":[64],"skipBackCapture":[64],"getStatus":[64],"preloadModel":[64],"getCameraInfo":[64],"setPreferredCamera":[64],"setCaptureDelay":[64],"getCaptureDelay":[64],"setTorchEnabled":[64],"focusAtPoint":[64],"getImageQuality":[64],"setQualityThresholds":[64],"getQualityThresholds":[64]}]]]], options);
9
9
  };
10
10
 
11
11
  exports.setNonce = index.setNonce;
@@ -182,6 +182,72 @@ video {
182
182
  z-index: 20;
183
183
  }
184
184
 
185
+ /* Quality indicator */
186
+ .quality-indicator {
187
+ position: absolute;
188
+ top: 20px;
189
+ right: 20px;
190
+ display: flex;
191
+ align-items: center;
192
+ gap: 8px;
193
+ background: rgba(0, 0, 0, 0.8);
194
+ padding: 8px 12px;
195
+ border-radius: 20px;
196
+ z-index: 25;
197
+ transition: all 0.3s ease;
198
+ }
199
+
200
+ .quality-indicator.warning {
201
+ background: rgba(255, 152, 0, 0.9);
202
+ }
203
+
204
+ .quality-indicator.good {
205
+ background: rgba(76, 175, 80, 0.9);
206
+ }
207
+
208
+ .quality-score {
209
+ color: #fff;
210
+ font-size: 12px;
211
+ font-weight: 600;
212
+ min-width: 30px;
213
+ text-align: center;
214
+ }
215
+
216
+ .quality-status {
217
+ width: 20px;
218
+ height: 20px;
219
+ border-radius: 50%;
220
+ display: flex;
221
+ align-items: center;
222
+ justify-content: center;
223
+ font-size: 14px;
224
+ font-weight: bold;
225
+ color: #fff;
226
+ transition: all 0.3s ease;
227
+ }
228
+
229
+ .quality-status.ready {
230
+ background: #4CAF50;
231
+ }
232
+
233
+ .quality-status.not-ready {
234
+ background: #f44336;
235
+ }
236
+
237
+ /* Enhanced card outline for quality warnings */
238
+ .card-outline.quality-warning {
239
+ animation: qualityWarning 1s ease-in-out infinite alternate;
240
+ }
241
+
242
+ @keyframes qualityWarning {
243
+ 0% {
244
+ box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.6);
245
+ }
246
+ 100% {
247
+ box-shadow: 0 0 0 6px rgba(255, 152, 0, 0.3);
248
+ }
249
+ }
250
+
185
251
 
186
252
  /* Animación de captura */
187
253
  .capture-animation {