scandoc-ai-components 0.0.49 → 0.0.51

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/dist/index.js +15 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -11174,12 +11174,13 @@ class ExtractorVideo {
11174
11174
  static VALIDATION_IMG_HEIGHT = 384;
11175
11175
  static VIDEO_SETTINGS = Object.freeze({
11176
11176
  width: {
11177
- ideal: 1920
11177
+ ideal: 1024
11178
11178
  },
11179
11179
  height: {
11180
- ideal: 1080
11180
+ ideal: 768
11181
11181
  },
11182
- facingMode: "environment"
11182
+ // 4:3
11183
+ facingMode: "user"
11183
11184
  });
11184
11185
  constructor(onExtractedResults) {
11185
11186
  this.candidateImages = [];
@@ -11613,13 +11614,22 @@ let internalConfig = {
11613
11614
  FACE_IMAGE_RESIZE: null,
11614
11615
  // timeout settings:
11615
11616
  MAX_SCAN_DURATION_MS: 10000,
11616
- MAX_UNSUPPORTED_ATTEMPTS: 5
11617
+ MAX_UNSUPPORTED_ATTEMPTS: 5,
11618
+ // design settings
11619
+ VIDEO_COLORS: {
11620
+ borderColor: "#5078bb",
11621
+ messageColor: "#5078bb"
11622
+ }
11617
11623
  };
11618
11624
  //
11619
11625
  function setScanDocAIConfig(newConfig = {}) {
11620
11626
  internalConfig = {
11621
11627
  ...internalConfig,
11622
- ...newConfig
11628
+ ...newConfig,
11629
+ COLORS: {
11630
+ ...internalConfig.COLORS,
11631
+ ...newConfig.COLORS
11632
+ }
11623
11633
  };
11624
11634
  }
11625
11635
  function getScanDocAIConfigValues() {
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.49",
4
+ "version": "0.0.51",
5
5
  "private": false,
6
6
  "description": "Pure JavaScript package for integrating ScanDoc-AI services.",
7
7
  "keywords": [