@jaak.ai/stamps 2.1.0-dev.6 → 2.1.0-dev.8
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-webcomponent.cjs.js +1 -1
- package/dist/cjs/jaak-stamps.cjs.entry.js +623 -31
- package/dist/cjs/jaak-stamps.cjs.entry.js.map +1 -1
- package/dist/cjs/jaak-stamps.entry.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/my-component/my-component.css +36 -11
- package/dist/collection/components/my-component/my-component.js +484 -24
- package/dist/collection/components/my-component/my-component.js.map +1 -1
- package/dist/collection/services/DetectionService.js +176 -9
- package/dist/collection/services/DetectionService.js.map +1 -1
- package/dist/collection/services/interfaces/IDetectionService.js.map +1 -1
- package/dist/components/jaak-stamps.js +627 -32
- package/dist/components/jaak-stamps.js.map +1 -1
- package/dist/esm/jaak-stamps-webcomponent.js +1 -1
- package/dist/esm/jaak-stamps.entry.js +623 -31
- package/dist/esm/jaak-stamps.entry.js.map +1 -1
- package/dist/esm/loader.js +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-8e25497e.entry.js +2 -0
- package/dist/jaak-stamps-webcomponent/p-8e25497e.entry.js.map +1 -0
- package/dist/types/components/my-component/my-component.d.ts +32 -0
- package/dist/types/components.d.ts +3 -1
- package/dist/types/services/DetectionService.d.ts +9 -1
- package/dist/types/services/interfaces/IDetectionService.d.ts +6 -0
- package/package.json +1 -1
- package/dist/jaak-stamps-webcomponent/p-d05dc382.entry.js +0 -2
- package/dist/jaak-stamps-webcomponent/p-d05dc382.entry.js.map +0 -1
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -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"],"useDocumentDetector":[4,"use-document-detector"],"preferredCamera":[1,"preferred-camera"],"captureDelay":[2,"capture-delay"],"enableBackDocumentTimer":[4,"enable-back-document-timer"],"backDocumentTimerDuration":[2,"back-document-timer-duration"],"detectionBoxes":[32],"sideAlignment":[32],"isMaskReady":[32],"shouldMirrorVideo":[32],"showCameraSelector":[32],"isSwitchingCamera":[32],"hasDocumentDetected":[32],"cameraInfoWithAutofocus":[32],"currentStatus":[32],"performanceData":[32],"backDocumentTimerRemaining":[32],"showManualCaptureButton":[32],"performanceDegradedMode":[32],"showPerformanceMessage":[32],"captureStateVersion":[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]}]]]], 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"],"useDocumentDetector":[4,"use-document-detector"],"preferredCamera":[1,"preferred-camera"],"captureDelay":[2,"capture-delay"],"enableBackDocumentTimer":[4,"enable-back-document-timer"],"backDocumentTimerDuration":[2,"back-document-timer-duration"],"detectionBoxes":[32],"sideAlignment":[32],"isMaskReady":[32],"shouldMirrorVideo":[32],"showCameraSelector":[32],"isSwitchingCamera":[32],"hasDocumentDetected":[32],"cameraInfoWithAutofocus":[32],"currentStatus":[32],"performanceData":[32],"backDocumentTimerRemaining":[32],"showManualCaptureButton":[32],"performanceDegradedMode":[32],"showPerformanceMessage":[32],"captureStateVersion":[32],"processingButton":[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],"getResourceReport":[64],"forceResourceCleanup":[64]}]]]], options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
exports.setNonce = index.setNonce;
|
|
@@ -571,11 +571,12 @@ video {
|
|
|
571
571
|
transform: translateY(1px);
|
|
572
572
|
}
|
|
573
573
|
|
|
574
|
-
.capture-button:disabled
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
574
|
+
.capture-button:disabled,
|
|
575
|
+
.capture-button.primary-button:disabled {
|
|
576
|
+
cursor: not-allowed !important;
|
|
577
|
+
transform: none !important;
|
|
578
|
+
opacity: 0.7 !important;
|
|
579
|
+
transition: none !important;
|
|
579
580
|
}
|
|
580
581
|
|
|
581
582
|
/* Responsive para móviles */
|
|
@@ -599,6 +600,14 @@ video {
|
|
|
599
600
|
padding: 10px 20px;
|
|
600
601
|
font-size: 13px;
|
|
601
602
|
}
|
|
603
|
+
|
|
604
|
+
/* Ensure disabled styles work on mobile too */
|
|
605
|
+
.capture-button:disabled,
|
|
606
|
+
.capture-button.primary-button:disabled,
|
|
607
|
+
.skip-button:disabled {
|
|
608
|
+
opacity: 0.7 !important;
|
|
609
|
+
cursor: not-allowed !important;
|
|
610
|
+
}
|
|
602
611
|
}
|
|
603
612
|
|
|
604
613
|
.skip-explanation {
|
|
@@ -663,6 +672,13 @@ video {
|
|
|
663
672
|
transform: translateY(1px);
|
|
664
673
|
}
|
|
665
674
|
|
|
675
|
+
.skip-button:disabled {
|
|
676
|
+
cursor: not-allowed !important;
|
|
677
|
+
transform: none !important;
|
|
678
|
+
opacity: 0.7 !important;
|
|
679
|
+
transition: none !important;
|
|
680
|
+
}
|
|
681
|
+
|
|
666
682
|
/* Camera controls */
|
|
667
683
|
.camera-controls {
|
|
668
684
|
position: absolute;
|
|
@@ -724,10 +740,13 @@ video {
|
|
|
724
740
|
.button-spinner {
|
|
725
741
|
width: 16px;
|
|
726
742
|
height: 16px;
|
|
727
|
-
border: 2px solid rgba(
|
|
728
|
-
border-top: 2px solid #
|
|
743
|
+
border: 2px solid rgba(0, 0, 0, 0.2);
|
|
744
|
+
border-top: 2px solid #333333;
|
|
729
745
|
border-radius: 50%;
|
|
730
746
|
animation: spin 1s linear infinite;
|
|
747
|
+
display: inline-block;
|
|
748
|
+
margin-right: 8px;
|
|
749
|
+
vertical-align: middle;
|
|
731
750
|
}
|
|
732
751
|
|
|
733
752
|
@keyframes spin {
|
|
@@ -1282,10 +1301,10 @@ video {
|
|
|
1282
1301
|
}
|
|
1283
1302
|
|
|
1284
1303
|
.manual-capture-button:disabled {
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1304
|
+
cursor: not-allowed !important;
|
|
1305
|
+
transform: none !important;
|
|
1306
|
+
opacity: 0.7 !important;
|
|
1307
|
+
transition: none !important;
|
|
1289
1308
|
}
|
|
1290
1309
|
|
|
1291
1310
|
/* Responsive para móviles */
|
|
@@ -1300,4 +1319,10 @@ video {
|
|
|
1300
1319
|
padding: 10px 20px;
|
|
1301
1320
|
font-size: 13px;
|
|
1302
1321
|
}
|
|
1322
|
+
|
|
1323
|
+
/* Ensure disabled styles work on mobile too */
|
|
1324
|
+
.manual-capture-button:disabled {
|
|
1325
|
+
opacity: 0.7 !important;
|
|
1326
|
+
cursor: not-allowed !important;
|
|
1327
|
+
}
|
|
1303
1328
|
}
|