idmission-web-sdk 1.0.146 → 1.0.147

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.
@@ -31,6 +31,10 @@ export interface DocumentCaptureProps extends PropsWithChildren {
31
31
  theme?: ThemeInput;
32
32
  /** Object containing any classNames for inner components. **/
33
33
  classNames?: DocumentCaptureClassNames;
34
+ /** Boolean flag to indicate whether users should be prompted to share their location. Default is `true`. */
35
+ geolocationEnabled?: boolean;
36
+ /** Boolean flag to indicate whether users should be blocked from proceeding if they block location access. Default is `false`. */
37
+ geolocationRequired?: boolean;
34
38
  }
35
39
  /**
36
40
  * Render a fullscreen capture component that instructs the user to photograph their document.
@@ -47,7 +47,7 @@ var LanguageDetector__default = /*#__PURE__*/_interopDefaultLegacy(LanguageDetec
47
47
  var i18n__default = /*#__PURE__*/_interopDefaultLegacy(i18n);
48
48
  var SignatureCanvas__default = /*#__PURE__*/_interopDefaultLegacy(SignatureCanvas);
49
49
 
50
- var webSdkVersion = '1.0.146';
50
+ var webSdkVersion = '1.0.147';
51
51
 
52
52
  function getPlatform() {
53
53
  if (typeof window === 'undefined') return;
@@ -17154,7 +17154,11 @@ var DocumentCapture = function DocumentCapture(_a) {
17154
17154
  _c = _a.theme,
17155
17155
  theme = _c === void 0 ? 'default' : _c,
17156
17156
  _d = _a.classNames,
17157
- classNames = _d === void 0 ? {} : _d;
17157
+ classNames = _d === void 0 ? {} : _d,
17158
+ _e = _a.geolocationEnabled,
17159
+ geolocationEnabled = _e === void 0 ? true : _e,
17160
+ _f = _a.geolocationRequired,
17161
+ geolocationRequired = _f === void 0 ? false : _f;
17158
17162
  useLanguage(lang);
17159
17163
  return /*#__PURE__*/React__default['default'].createElement(ThemeProvider, {
17160
17164
  theme: theme
@@ -17164,7 +17168,9 @@ var DocumentCapture = function DocumentCapture(_a) {
17164
17168
  token: submissionToken,
17165
17169
  documentServiceUrl: documentServiceUrl,
17166
17170
  onBeforeSubmit: onBeforeSubmit,
17167
- onSubmit: onSubmit
17171
+ onSubmit: onSubmit,
17172
+ geolocationEnabled: geolocationEnabled,
17173
+ geolocationRequired: geolocationRequired
17168
17174
  }, /*#__PURE__*/React__default['default'].createElement(CameraProvider, {
17169
17175
  preferContinuityCamera: true
17170
17176
  }, /*#__PURE__*/React__default['default'].createElement(DocumentCaptureWizard, {