scandoc-ai-components 0.0.15 → 0.0.16
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 +8 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -43,7 +43,10 @@ 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
|
-
const extractionVideo = getExtractionVideo(function (data) {
|
|
46
|
+
const extractionVideo = window.getExtractionVideo(function (data) {
|
|
47
|
+
console.log("Extraction result:", data);
|
|
48
|
+
// extractionVideo.stopVideo(); // Stop automatically after first result
|
|
49
|
+
});
|
|
47
50
|
//
|
|
48
51
|
const html = extractionVideo.getHTML();
|
|
49
52
|
document.getElementById('test').innerHTML = html;
|
|
@@ -63,7 +66,10 @@ import "scandoc-ai-components/dist/index"
|
|
|
63
66
|
|
|
64
67
|
const key = ""; // Use the key provided by our team
|
|
65
68
|
window.createScanDocAIConfig(key, "test");
|
|
66
|
-
const extractionVideo = window.getExtractionVideo(data=>console.log(data));
|
|
69
|
+
const extractionVideo = window.getExtractionVideo(data=>console.log(data));const extractionVideo = window.getExtractionVideo(data => {
|
|
70
|
+
console.log("Extracted:", data);
|
|
71
|
+
// extractionVideo.stopVideo(); // Stop automatically after first result
|
|
72
|
+
});
|
|
67
73
|
|
|
68
74
|
function App() {
|
|
69
75
|
const html = useMemo(()=>extractionVideo.getHTML(), []);
|