@smileid/web-components 10.0.5 → 11.0.0

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 (31) hide show
  1. package/README.md +15 -15
  2. package/dist/esm/{DocumentCaptureScreens-BIJUlWLB.js → DocumentCaptureScreens-RECPb0wH.js} +3 -3
  3. package/dist/esm/{DocumentCaptureScreens-BIJUlWLB.js.map → DocumentCaptureScreens-RECPb0wH.js.map} +1 -1
  4. package/dist/esm/EndUserConsent-D4fd1ovG.js.map +1 -1
  5. package/dist/esm/Navigation-CTjK6tLU.js.map +1 -1
  6. package/dist/esm/PoweredBySmileId-CxbaihMu.js.map +1 -1
  7. package/dist/esm/SelfieCaptureScreens-CqBVGEJk.js +7901 -0
  8. package/dist/esm/SelfieCaptureScreens-CqBVGEJk.js.map +1 -0
  9. package/dist/esm/SignaturePad-C7MtmT8m.js.map +1 -1
  10. package/dist/esm/TotpConsent-CQU5jQi4.js.map +1 -1
  11. package/dist/esm/combobox.js.map +1 -1
  12. package/dist/esm/document.js +1 -1
  13. package/dist/esm/main.js +2 -2
  14. package/dist/esm/{package-PZvRbm5J.js → package-BDJnoIAU.js} +2 -2
  15. package/dist/esm/{package-PZvRbm5J.js.map → package-BDJnoIAU.js.map} +1 -1
  16. package/dist/esm/selfie.js +1 -1
  17. package/dist/esm/smart-camera-web.js +3 -3
  18. package/dist/esm/smart-camera-web.js.map +1 -1
  19. package/dist/smart-camera-web.js +72 -98
  20. package/dist/smart-camera-web.js.map +1 -1
  21. package/lib/components/document/src/DocumentCaptureScreens.js +1 -0
  22. package/lib/components/selfie/src/SelfieCaptureScreens.js +7 -18
  23. package/lib/components/selfie/src/selfie-capture/SelfieCapture.js +15 -0
  24. package/lib/components/selfie/src/selfie-capture-wrapper/SelfieCaptureWrapper.tsx +19 -2
  25. package/lib/components/selfie/src/smartselfie-capture/SmartSelfieCapture.tsx +2 -20
  26. package/lib/components/selfie/src/smartselfie-capture/components/CaptureControls.tsx +2 -0
  27. package/lib/components/selfie/src/smartselfie-capture/hooks/useFaceCapture.ts +5 -4
  28. package/lib/components/signature-pad/package.json +1 -1
  29. package/package.json +2 -2
  30. package/dist/esm/SelfieCaptureScreens-CnMaKUmP.js +0 -11361
  31. package/dist/esm/SelfieCaptureScreens-CnMaKUmP.js.map +0 -1
package/README.md CHANGED
@@ -1,15 +1,15 @@
1
- # Instructions
2
-
3
- These components can be used to capture id document or liveness images
4
-
5
- 1. [`smart-camera-web`](./components/smart-camera-web/src/)
6
- 2. [`document-capture-screens`](./components/document/src/README.md)
7
- 3. [`selfie-capture-screens`](./components/selfie/README.md)
8
-
9
- ## Orchestration
10
-
11
- To build your own flow, we have several components that can be used together
12
-
13
- ### document-capture-instructions
14
-
15
- This is the screen used to instruct the user how to capture document using both the camera and/or upload.
1
+ # Instructions
2
+
3
+ These components can be used to capture id document or liveness images
4
+
5
+ 1. [`smart-camera-web`](./components/smart-camera-web/src/)
6
+ 2. [`document-capture-screens`](./components/document/src/README.md)
7
+ 3. [`selfie-capture-screens`](./components/selfie/README.md)
8
+
9
+ ## Orchestration
10
+
11
+ To build your own flow, we have several components that can be used together.
12
+
13
+ ### document-capture-instructions
14
+
15
+ This is the screen used to instruct the user how to capture document using both the camera and/or upload.
@@ -1,4 +1,4 @@
1
- import { S as c, p as M, I as w } from "./package-PZvRbm5J.js";
1
+ import { S as c, p as M, I as w } from "./package-BDJnoIAU.js";
2
2
  import { s as C } from "./styles-BOEZtbuc.js";
3
3
  import "./Navigation-CTjK6tLU.js";
4
4
  function A(l, e = 16) {
@@ -1388,7 +1388,7 @@ class O extends HTMLElement {
1388
1388
  ), this.thankYouScreen = this.querySelector("thank-you"), this.hideInstructions ? (p(this.idCapture), this.setActiveScreen(this.idCapture)) : this.setActiveScreen(this.documentInstruction), this.setUpEventListeners();
1389
1389
  }
1390
1390
  disconnectedCallback() {
1391
- c.stopMedia(), this.activeScreen && this.activeScreen.removeAttribute("hidden"), this.activeScreen = null, this.innerHTML = "";
1391
+ c.stopMedia(), u?.dispatchEvent(new CustomEvent("metadata.cleanup")), this.activeScreen && this.activeScreen.removeAttribute("hidden"), this.activeScreen = null, this.innerHTML = "";
1392
1392
  }
1393
1393
  setUpEventListeners() {
1394
1394
  this.documentInstruction.addEventListener(
@@ -1571,4 +1571,4 @@ class O extends HTMLElement {
1571
1571
  export {
1572
1572
  O as D
1573
1573
  };
1574
- //# sourceMappingURL=DocumentCaptureScreens-BIJUlWLB.js.map
1574
+ //# sourceMappingURL=DocumentCaptureScreens-RECPb0wH.js.map