idmission-web-sdk 0.0.5 → 0.0.7

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/README.md CHANGED
@@ -14,7 +14,17 @@ render(<IdValidation submissionToken={YOUR_TOKEN} />, document.getElementById('r
14
14
 
15
15
  Add the following script tag to your page's `<head>`:
16
16
  ```html
17
- <script type="module" src="https://websdk-cdn-dev.idmission.com/assets/loader.js"></script>
17
+ <script type="module" src="https://websdk-cdn-dev.idmission.com/websdk/latest/loader.js"></script>
18
+ ```
19
+
20
+ You may subscribe to the `idmission-web-sdk.ready` event to be notified when loading has completed.
21
+
22
+ ```html
23
+ <script type="module">
24
+ document.addEventListener('idmission-web-sdk.ready', () => {
25
+ // this code fires when the sdk has finished loading.
26
+ })
27
+ </script>
18
28
  ```
19
29
 
20
30
  Then you may call any render method below, for example `renderIdValidation`, like so:
@@ -1825,7 +1825,6 @@ var FlipIdPrompt = function FlipIdPrompt(_a) {
1825
1825
  height: height
1826
1826
  });
1827
1827
  }, [height, setDimensions, width]);
1828
- console.log(imageAspectRatio);
1829
1828
  var imageStyle = {
1830
1829
  height: wrapperHeight - padding * 2 - borderWidth * 2
1831
1830
  };
@@ -10779,11 +10778,6 @@ var useHighestResCaptureDevice = function useHighestResCaptureDevice(_a) {
10779
10778
  case 0:
10780
10779
  canvas = document.createElement('canvas');
10781
10780
  ctx = canvas.getContext('2d');
10782
- console.log({
10783
- ctx: ctx,
10784
- cameraRef: cameraRef.current,
10785
- videoRef: videoRef.current
10786
- });
10787
10781
  if (!ctx || !cameraRef.current || !videoRef.current) return [2, null];
10788
10782
  canvas.width = (_a = videoRef.current) === null || _a === void 0 ? void 0 : _a.videoWidth;
10789
10783
  canvas.height = (_b = videoRef.current) === null || _b === void 0 ? void 0 : _b.videoHeight;