scandoc-ai-components 0.0.17 → 0.0.19

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 (2) hide show
  1. package/README.md +20 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -43,11 +43,20 @@ An example HTML page integration:
43
43
  <script>
44
44
  const key = ""; // Use the key provided by our team
45
45
  createScanDocAIConfig(key, "test");
46
+ setScanDocAIConfig({
47
+ SHOULD_RETURN_DOCUMENT_IMAGE: true,
48
+ SHOULD_RETURN_FACE_IF_DETECTED: true,
49
+ SHOULD_RETURN_SIGNATURE_IF_DETECTED: true,
50
+ SKIP_DOCUMENT_SIZE_CHECK: true,
51
+ DONT_USE_VALIDATION: true,
52
+ CAN_STORE_IMAGES: true,
53
+ });
54
+
46
55
  const extractionVideo = window.getExtractionVideo(function (data) {
47
56
  console.log("Extraction result:", data);
48
57
  // extractionVideo.stopVideo(); // Stop automatically after first result
49
58
  });
50
- //
59
+
51
60
  const html = extractionVideo.getHTML();
52
61
  document.getElementById('test').innerHTML = html;
53
62
  extractionVideo.startVideo();
@@ -66,6 +75,16 @@ import "scandoc-ai-components/dist/index"
66
75
 
67
76
  const key = ""; // Use the key provided by our team
68
77
  window.createScanDocAIConfig(key, "test");
78
+ window.setScanDocAIConfig({
79
+ SCAN_APP_URL: "https://api.scandoc.ai/ss/",
80
+ SHOULD_RETURN_DOCUMENT_IMAGE: true,
81
+ SHOULD_RETURN_FACE_IF_DETECTED: true,
82
+ SHOULD_RETURN_SIGNATURE_IF_DETECTED: true,
83
+ SKIP_DOCUMENT_SIZE_CHECK: true,
84
+ DONT_USE_VALIDATION: true,
85
+ CAN_STORE_IMAGES: true,
86
+ });
87
+
69
88
  const extractionVideo = window.getExtractionVideo(data=>console.log(data));const extractionVideo = window.getExtractionVideo(data => {
70
89
  console.log("Extracted:", data);
71
90
  // extractionVideo.stopVideo(); // Stop automatically after first result
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "scandoc-ai-components",
3
3
  "author": "ScanDoc-AI",
4
- "version": "0.0.17",
4
+ "version": "0.0.19",
5
5
  "private": false,
6
6
  "description": "Pure JavaScript package for integrating ScanDoc-AI services.",
7
7
  "keywords": [