@jaak.ai/stamps 2.1.0-dev.2 → 2.1.0-dev.20
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/app-globals-V2Kpy_OQ.js +8 -0
- package/dist/cjs/app-globals-V2Kpy_OQ.js.map +1 -0
- package/dist/cjs/{index-BfhtOB0D.js → index-Ga0t6BMe.js} +176 -119
- package/dist/cjs/index-Ga0t6BMe.js.map +1 -0
- package/dist/cjs/jaak-stamps-webcomponent.cjs.js +5 -4
- package/dist/cjs/jaak-stamps-webcomponent.cjs.js.map +1 -1
- package/dist/cjs/jaak-stamps.cjs.entry.js +542 -68
- 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 +4 -3
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/my-component/my-component.css +56 -12
- package/dist/collection/components/my-component/my-component.js +429 -67
- package/dist/collection/components/my-component/my-component.js.map +1 -1
- package/dist/collection/services/CameraService.js +84 -2
- package/dist/collection/services/CameraService.js.map +1 -1
- package/dist/collection/services/DetectionService.js +32 -4
- package/dist/collection/services/DetectionService.js.map +1 -1
- package/dist/components/index.js +165 -113
- package/dist/components/index.js.map +1 -1
- package/dist/components/jaak-stamps.js +546 -68
- package/dist/components/jaak-stamps.js.map +1 -1
- package/dist/esm/app-globals-DQuL1Twl.js +6 -0
- package/dist/esm/app-globals-DQuL1Twl.js.map +1 -0
- package/dist/esm/{index-BP1Q4KOg.js → index-Drbzcuq-.js} +177 -119
- package/dist/esm/index-Drbzcuq-.js.map +1 -0
- package/dist/esm/jaak-stamps-webcomponent.js +5 -4
- package/dist/esm/jaak-stamps-webcomponent.js.map +1 -1
- package/dist/esm/jaak-stamps.entry.js +542 -68
- package/dist/esm/jaak-stamps.entry.js.map +1 -1
- package/dist/esm/loader.js +4 -3
- package/dist/esm/loader.js.map +1 -1
- package/dist/jaak-stamps-webcomponent/jaak-stamps-webcomponent.esm.js +1 -1
- package/dist/jaak-stamps-webcomponent/jaak-stamps-webcomponent.esm.js.map +1 -1
- package/dist/jaak-stamps-webcomponent/jaak-stamps.entry.esm.js.map +1 -1
- package/dist/jaak-stamps-webcomponent/loader.esm.js.map +1 -1
- package/dist/jaak-stamps-webcomponent/p-DQuL1Twl.js +2 -0
- package/dist/jaak-stamps-webcomponent/p-DQuL1Twl.js.map +1 -0
- package/dist/jaak-stamps-webcomponent/p-Drbzcuq-.js +3 -0
- package/dist/jaak-stamps-webcomponent/p-Drbzcuq-.js.map +1 -0
- package/dist/jaak-stamps-webcomponent/p-c06e5d7b.entry.js +2 -0
- package/dist/jaak-stamps-webcomponent/p-c06e5d7b.entry.js.map +1 -0
- package/dist/types/components/my-component/my-component.d.ts +19 -0
- package/dist/types/services/CameraService.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +12 -5
- package/package.json +3 -1
- package/dist/cjs/index-BfhtOB0D.js.map +0 -1
- package/dist/esm/index-BP1Q4KOg.js.map +0 -1
- package/dist/jaak-stamps-webcomponent/p-41e88688.entry.js +0 -2
- package/dist/jaak-stamps-webcomponent/p-41e88688.entry.js.map +0 -1
- package/dist/jaak-stamps-webcomponent/p-BP1Q4KOg.js +0 -3
- package/dist/jaak-stamps-webcomponent/p-BP1Q4KOg.js.map +0 -1
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Ga0t6BMe.js');
|
|
4
|
+
var appGlobals = require('./app-globals-V2Kpy_OQ.js');
|
|
4
5
|
|
|
5
6
|
const defineCustomElements = async (win, options) => {
|
|
6
7
|
if (typeof window === 'undefined') return undefined;
|
|
7
|
-
await
|
|
8
|
-
return index.bootstrapLazy([["jaak-stamps.cjs",[[
|
|
8
|
+
await appGlobals.globalScripts();
|
|
9
|
+
return index.bootstrapLazy([["jaak-stamps.cjs",[[257,"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]}]]]], options);
|
|
9
10
|
};
|
|
10
11
|
|
|
11
12
|
exports.setNonce = index.setNonce;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loader.cjs.js","sources":["@lazy-external-entrypoint?app-data=conditional"],"sourcesContent":["export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\nexport const defineCustomElements = async (win, options) => {\n if (typeof window === 'undefined') return undefined;\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n};\n"],"names":["globalScripts","bootstrapLazy"],"mappings":"
|
|
1
|
+
{"version":3,"file":"loader.cjs.js","sources":["@lazy-external-entrypoint?app-data=conditional"],"sourcesContent":["export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\nexport const defineCustomElements = async (win, options) => {\n if (typeof window === 'undefined') return undefined;\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n};\n"],"names":["globalScripts","bootstrapLazy"],"mappings":";;;;;AAGY,MAAC,oBAAoB,GAAG,OAAO,GAAG,EAAE,OAAO,KAAK;AAC5D,EAAE,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,OAAO,SAAS;AACrD,EAAE,MAAMA,wBAAa,EAAE;AACvB,EAAE,OAAOC,mBAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC;AAC7D;;;;;"}
|
|
@@ -439,7 +439,7 @@ video {
|
|
|
439
439
|
border-top: none;
|
|
440
440
|
border-left: none;
|
|
441
441
|
transform: rotate(45deg);
|
|
442
|
-
animation: drawCheck 0.4s ease-out 0.2s both;
|
|
442
|
+
/* animation: drawCheck 0.4s ease-out 0.2s both; */ /* Deshabilitado - check aparece completo */
|
|
443
443
|
}
|
|
444
444
|
|
|
445
445
|
.success-text {
|
|
@@ -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 {
|
|
@@ -621,6 +630,25 @@ video {
|
|
|
621
630
|
to { opacity: 1; transform: translateY(0); }
|
|
622
631
|
}
|
|
623
632
|
|
|
633
|
+
/* Performance warning animation for guide-text */
|
|
634
|
+
.guide-text.performance-warning-text {
|
|
635
|
+
animation: gentlePulse 2s ease-in-out infinite;
|
|
636
|
+
background: rgba(255, 107, 107, 0.3);
|
|
637
|
+
border: 1px solid rgba(255, 107, 107, 0.5);
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
@keyframes gentlePulse {
|
|
641
|
+
0%, 100% {
|
|
642
|
+
transform: translate(-50%, -50%) scale(1);
|
|
643
|
+
background: rgba(255, 107, 107, 0.3);
|
|
644
|
+
}
|
|
645
|
+
50% {
|
|
646
|
+
transform: translate(-50%, -50%) scale(1.02);
|
|
647
|
+
background: rgba(255, 107, 107, 0.4);
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
|
|
624
652
|
/* Botón para saltar reverso */
|
|
625
653
|
.skip-button {
|
|
626
654
|
pointer-events: auto;
|
|
@@ -644,6 +672,13 @@ video {
|
|
|
644
672
|
transform: translateY(1px);
|
|
645
673
|
}
|
|
646
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
|
+
|
|
647
682
|
/* Camera controls */
|
|
648
683
|
.camera-controls {
|
|
649
684
|
position: absolute;
|
|
@@ -705,10 +740,13 @@ video {
|
|
|
705
740
|
.button-spinner {
|
|
706
741
|
width: 16px;
|
|
707
742
|
height: 16px;
|
|
708
|
-
border: 2px solid rgba(
|
|
709
|
-
border-top: 2px solid #
|
|
743
|
+
border: 2px solid rgba(0, 0, 0, 0.2);
|
|
744
|
+
border-top: 2px solid #333333;
|
|
710
745
|
border-radius: 50%;
|
|
711
746
|
animation: spin 1s linear infinite;
|
|
747
|
+
display: inline-block;
|
|
748
|
+
margin-right: 8px;
|
|
749
|
+
vertical-align: middle;
|
|
712
750
|
}
|
|
713
751
|
|
|
714
752
|
@keyframes spin {
|
|
@@ -1263,10 +1301,10 @@ video {
|
|
|
1263
1301
|
}
|
|
1264
1302
|
|
|
1265
1303
|
.manual-capture-button:disabled {
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1304
|
+
cursor: not-allowed !important;
|
|
1305
|
+
transform: none !important;
|
|
1306
|
+
opacity: 0.7 !important;
|
|
1307
|
+
transition: none !important;
|
|
1270
1308
|
}
|
|
1271
1309
|
|
|
1272
1310
|
/* Responsive para móviles */
|
|
@@ -1281,4 +1319,10 @@ video {
|
|
|
1281
1319
|
padding: 10px 20px;
|
|
1282
1320
|
font-size: 13px;
|
|
1283
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
|
+
}
|
|
1284
1328
|
}
|