@ha_tecno/live-id-sdk 2.1.0 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -107,7 +107,7 @@ const FingerAuth = ({
107
107
  torch: "on",
108
108
  focusable: true,
109
109
  exposure: state.exposure,
110
- zoom: 2,
110
+ zoom: state.exposure,
111
111
  photo: true,
112
112
  enableHighQualityPhotos: true
113
113
  }), /*#__PURE__*/_react.default.createElement(_components.Gabarito, null))), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeVisionCamera","_reactNativeOrientationLocker","_interopRequireDefault","_reactNativeGestureHandler","_reactNativeReanimated","_styles","_components","_fingerAuth","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","FingerAuth","UID","qualityPrioritization","onSuccess","cameraRef","useRef","hasPermission","requestPermission","useCameraPermission","device","useCameraDevice","dispatch","useDispatch","state","useSelector","useEffect","Orientation","lockToPortrait","unlockAllOrientations","cameraPermission","useCallback","getConfig","containerCaptureStyled","useMemo","styles","containerCapture","bottom","showButtonInfo","cameraFormat","useCameraFormat","photoResolution","height","width","code","setModal","handleLoading","message","resetState","takePhoto","_cameraRef$current","photo","current","flash","sendImage","path","focus","point","camera","gesture","Gesture","Tap","onBegin","x","y","runOnJS","createElement","DeviceNotFound","GestureHandlerRootView","style","root","GestureDetector","View","cameraContainer","Camera","ref","isActive","format","torch","focusable","exposure","zoom","enableHighQualityPhotos","Gabarito","CaptureButton","authFinger","onPress","loading","CameraConfigInfo","ModalMessage","isLoading","modal","_default","exports"],"sourceRoot":"../../../../src","sources":["screens/FingerAuth/FingerAuth.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,wBAAA,GAAAF,OAAA;AACA,IAAAG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ACfyD,MAAM,EAAEtC,YAAa;IACrBuC,KAAK,EAAE,IAAK;IACZC,SAAS,EAAE,IAAK;IAChBC,QAAQ,EAAExD,KAAK,CAACwD,QAAS;IACzBC,IAAI,EAAE,CAAE;IACR9B,KAAK,EAAE,IAAK;IACZ+B,uBAAuB,EAAE;EAAK,CAC/B,CAAC,eACFzG,MAAA,CAAAc,OAAA,CAAA2E,aAAA,CAAC/E,WAAA,CAAAgG,QAAQ,MAAE,CACP,CACS,CAAC,eAClB1G,MAAA,CAAAc,OAAA,CAAA2E,aAAA,CAACtF,YAAA,CAAA4F,IAAI;IAACH,KAAK,EAAEpC;EAAuB,gBAClCxD,MAAA,CAAAc,OAAA,CAAA2E,aAAA,CAAC/E,WAAA,CAAAiG,aAAa;IAACC,UAAU;IAACC,OAAO,EAAErC,SAAU;IAACsC,OAAO,EAAE/D,KAAK,CAAC+D;EAAQ,CAAE,CACnE,CAAC,EACN/D,KAAK,CAACc,cAAc,iBAAI7D,MAAA,CAAAc,OAAA,CAAA2E,aAAA,CAAC/E,WAAA,CAAAqG,gBAAgB;IAACR,QAAQ,EAAExD,KAAK,CAACwD,QAAS;IAACC,IAAI,EAAEzD,KAAK,CAACwD;EAAS,CAAE,CAAC,eAC7FvG,MAAA,CAAAc,OAAA,CAAA2E,aAAA,CAAC/E,WAAA,CAAAsG,YAAY;IAACC,SAAS,EAAElE,KAAK,CAAC+D,OAAQ;IAACI,KAAK,EAAEnE,KAAK,CAACmE;EAAM,CAAE,CACvC,CAAC;AAE7B,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAtG,OAAA,GAEaoB,UAAU"}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeVisionCamera","_reactNativeOrientationLocker","_interopRequireDefault","_reactNativeGestureHandler","_reactNativeReanimated","_styles","_components","_fingerAuth","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","FingerAuth","UID","qualityPrioritization","onSuccess","cameraRef","useRef","hasPermission","requestPermission","useCameraPermission","device","useCameraDevice","dispatch","useDispatch","state","useSelector","useEffect","Orientation","lockToPortrait","unlockAllOrientations","cameraPermission","useCallback","getConfig","containerCaptureStyled","useMemo","styles","containerCapture","bottom","showButtonInfo","cameraFormat","useCameraFormat","photoResolution","height","width","code","setModal","handleLoading","message","resetState","takePhoto","_cameraRef$current","photo","current","flash","sendImage","path","focus","point","camera","gesture","Gesture","Tap","onBegin","x","y","runOnJS","createElement","DeviceNotFound","GestureHandlerRootView","style","root","GestureDetector","View","cameraContainer","Camera","ref","isActive","format","torch","focusable","exposure","zoom","enableHighQualityPhotos","Gabarito","CaptureButton","authFinger","onPress","loading","CameraConfigInfo","ModalMessage","isLoading","modal","_default","exports"],"sourceRoot":"../../../../src","sources":["screens/FingerAuth/FingerAuth.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,wBAAA,GAAAF,OAAA;AACA,IAAAG,6BAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,0BAAA,GAAAL,OAAA;AACA,IAAAM,sBAAA,GAAAN,OAAA;AAEA,IAAAO,OAAA,GAAAP,OAAA;AACA,IAAAQ,WAAA,GAAAR,OAAA;AACA,IAAAS,WAAA,GAAAT,OAAA;AAA0E,SAAAI,uBAAAM,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAf,wBAAAe,CAAA,EAAAE,C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IAACsC,OAAO,EAAE/D,KAAK,CAAC+D;EAAQ,CAAE,CACnE,CAAC,EACN/D,KAAK,CAACc,cAAc,iBAAI7D,MAAA,CAAAc,OAAA,CAAA2E,aAAA,CAAC/E,WAAA,CAAAqG,gBAAgB;IAACR,QAAQ,EAAExD,KAAK,CAACwD,QAAS;IAACC,IAAI,EAAEzD,KAAK,CAACwD;EAAS,CAAE,CAAC,eAC7FvG,MAAA,CAAAc,OAAA,CAAA2E,aAAA,CAAC/E,WAAA,CAAAsG,YAAY;IAACC,SAAS,EAAElE,KAAK,CAAC+D,OAAQ;IAACI,KAAK,EAAEnE,KAAK,CAACmE;EAAM,CAAE,CACvC,CAAC;AAE7B,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAtG,OAAA,GAEaoB,UAAU"}
@@ -18,7 +18,8 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
18
18
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
19
19
  const FingerRegister = ({
20
20
  UID,
21
- qualityPrioritization
21
+ qualityPrioritization,
22
+ onSuccess
22
23
  }) => {
23
24
  const cameraRef = (0, _react.useRef)(null);
24
25
  const {
@@ -47,6 +48,7 @@ const FingerRegister = ({
47
48
  (0, _react.useEffect)(() => {
48
49
  if (state.code === 0) {
49
50
  dispatch.setModal("Sucesso!", "Cadastro de digital realizado com sucesso!");
51
+ onSuccess && (onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(state.code));
50
52
  dispatch.handleLoading();
51
53
  }
52
54
  if (state.code !== 0 && state.code !== null) {
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeVisionCamera","_reactNativeOrientationLocker","_interopRequireDefault","_reactNativeGestureHandler","_reactNativeReanimated","_styles","_fingerRegister","_components","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","FingerRegister","UID","qualityPrioritization","cameraRef","useRef","hasPermission","requestPermission","useCameraPermission","state","useSelector","dispatch","useDispatch","device","useCameraDevice","base64ImagesCount","base64Images","length","useEffect","Orientation","lockToPortrait","unlockAllOrientations","undefined","setModal","handleLoading","sendImages","code","message","resetState","cameraPermission","useCallback","getConfig","containerCaptureStyled","useMemo","styles","containerCapture","bottom","showButtonInfo","cameraFormat","useCameraFormat","photoResolution","width","height","pixelFormat","takePhoto","_cameraRef$current","photo","current","flash","setImagePath","path","focus","point","camera","gesture","Gesture","Tap","onBegin","x","y","runOnJS","createElement","DeviceNotFound","GestureHandlerRootView","style","root","HelpRegister","GestureDetector","View","cameraContainer","Camera","ref","isActive","format","torch","focusable","exposure","zoom","enableHighQualityPhotos","Gabarito","CaptureButton","onPress","imagesCount","CameraConfigInfo","ModalMessage","isLoading","loading","modal","_default","exports"],"sourceRoot":"../../../../src","sources":["screens/FingerRegister/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,wBAAA,GAAAF,OAAA;AACA,IAAAG,6BAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,0BAAA,GAAAL,OAAA;AACA,IAAAM,sBAAA,GAAAN,OAAA;AAEA,IAAAO,OAAA,GAAAP,OAAA;AACA,IAAAQ,eAAA,GAAAR,OAAA;AACA,IAAAS,WAAA,GAAAT,OAAA;AAO0B,SAAAI,uBAAAM,GAAA,W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AAAC,OAAA,CAAA5G,OAAA,GAEaoB,cAAc"}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeVisionCamera","_reactNativeOrientationLocker","_interopRequireDefault","_reactNativeGestureHandler","_reactNativeReanimated","_styles","_fingerRegister","_components","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","FingerRegister","UID","qualityPrioritization","onSuccess","cameraRef","useRef","hasPermission","requestPermission","useCameraPermission","state","useSelector","dispatch","useDispatch","device","useCameraDevice","base64ImagesCount","base64Images","length","useEffect","Orientation","lockToPortrait","unlockAllOrientations","undefined","setModal","handleLoading","sendImages","code","message","resetState","cameraPermission","useCallback","getConfig","containerCaptureStyled","useMemo","styles","containerCapture","bottom","showButtonInfo","cameraFormat","useCameraFormat","photoResolution","width","height","pixelFormat","takePhoto","_cameraRef$current","photo","current","flash","setImagePath","path","focus","point","camera","gesture","Gesture","Tap","onBegin","x","y","runOnJS","createElement","DeviceNotFound","GestureHandlerRootView","style","root","HelpRegister","GestureDetector","View","cameraContainer","Camera","ref","isActive","format","torch","focusable","exposure","zoom","enableHighQualityPhotos","Gabarito","CaptureButton","onPress","imagesCount","CameraConfigInfo","ModalMessage","isLoading","loading","modal","_default","exports"],"sourceRoot":"../../../../src","sources":["screens/FingerRegister/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,wBAAA,GAAAF,OAAA;AACA,IAAAG,6BAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,0BAAA,GAAAL,OAAA;AACA,IAAAM,sBAAA,GAAAN,OAAA;AAEA,IAAAO,OAAA,GAAAP,OAAA;AACA,IAAAQ,eAAA,GAAAR,OAAA;AACA,IAAAS,WAAA,GAAAT,OAAA;AAO0B,SAAAI,uBAAA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AAK,CAAC6E,OAAQ;IAACC,KAAK,EAAE9E,KAAK,CAAC8E;EAAM,CAAE,CACvC,CAAC;AAE7B,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAA7G,OAAA,GAEaoB,cAAc"}
@@ -98,7 +98,7 @@ const FingerAuth = ({
98
98
  torch: "on",
99
99
  focusable: true,
100
100
  exposure: state.exposure,
101
- zoom: 2,
101
+ zoom: state.exposure,
102
102
  photo: true,
103
103
  enableHighQualityPhotos: true
104
104
  }), /*#__PURE__*/React.createElement(Gabarito, null))), /*#__PURE__*/React.createElement(View, {
@@ -1 +1 @@
1
- {"version":3,"names":["React","useCallback","useEffect","useMemo","useRef","View","Camera","useCameraFormat","useCameraDevice","useCameraPermission","Orientation","Gesture","GestureDetector","GestureHandlerRootView","runOnJS","styles","DeviceNotFound","Gabarito","CameraConfigInfo","ModalMessage","CaptureButton","useDispatch","useSelector","FingerAuth","UID","qualityPrioritization","onSuccess","cameraRef","hasPermission","requestPermission","device","dispatch","state","lockToPortrait","unlockAllOrientations","cameraPermission","getConfig","containerCaptureStyled","containerCapture","bottom","showButtonInfo","cameraFormat","photoResolution","height","width","code","setModal","handleLoading","message","resetState","takePhoto","_cameraRef$current","photo","current","flash","sendImage","path","focus","point","camera","gesture","Tap","onBegin","x","y","createElement","style","root","cameraContainer","ref","isActive","format","torch","focusable","exposure","zoom","enableHighQualityPhotos","authFinger","onPress","loading","isLoading","modal"],"sourceRoot":"../../../../src","sources":["screens/FingerAuth/FingerAuth.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,SAAS,EAAEC,OAAO,EAAEC,MAAM,QAAQ,OAAO;AACtE,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,MAAM,EAAEC,eAAe,EAASC,eAAe,EAAEC,mBAAmB,QAAQ,4BAA4B;AACjH,OAAOC,WAAW,MAAM,iCAAiC;AACzD,SAASC,OAAO,EAAEC,eAAe,EAAEC,sBAAsB,QAAQ,8BAA8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uBAAuB,EAAE;EAAK,CAC/B,CAAC,eACF5E,KAAA,CAAAiE,aAAA,CAAChD,QAAQ,MAAE,CACP,CACS,CAAC,eAClBjB,KAAA,CAAAiE,aAAA,CAAC5D,IAAI;IAAC6D,KAAK,EAAE7B;EAAuB,gBAClCrC,KAAA,CAAAiE,aAAA,CAAC7C,aAAa;IAACyD,UAAU;IAACC,OAAO,EAAE5B,SAAU;IAAC6B,OAAO,EAAE/C,KAAK,CAAC+C;EAAQ,CAAE,CACnE,CAAC,EACN/C,KAAK,CAACQ,cAAc,iBAAIxC,KAAA,CAAAiE,aAAA,CAAC/C,gBAAgB;IAACwD,QAAQ,EAAE1C,KAAK,CAAC0C,QAAS;IAACC,IAAI,EAAE3C,KAAK,CAAC0C;EAAS,CAAE,CAAC,eAC7F1E,KAAA,CAAAiE,aAAA,CAAC9C,YAAY;IAAC6D,SAAS,EAAEhD,KAAK,CAAC+C,OAAQ;IAACE,KAAK,EAAEjD,KAAK,CAACiD;EAAM,CAAE,CACvC,CAAC;AAE7B,CAAC;AAED,eAAe1D,UAAU"}
1
+ {"version":3,"names":["React","useCallback","useEffect","useMemo","useRef","View","Camera","useCameraFormat","useCameraDevice","useCameraPermission","Orientation","Gesture","GestureDetector","GestureHandlerRootView","runOnJS","styles","DeviceNotFound","Gabarito","CameraConfigInfo","ModalMessage","CaptureButton","useDispatch","useSelector","FingerAuth","UID","qualityPrioritization","onSuccess","cameraRef","hasPermission","requestPermission","device","dispatch","state","lockToPortrait","unlockAllOrientations","cameraPermission","getConfig","containerCaptureStyled","containerCapture","bottom","showButtonInfo","cameraFormat","photoResolution","height","width","code","setModal","handleLoading","message","resetState","takePhoto","_cameraRef$current","photo","current","flash","sendImage","path","focus","point","camera","gesture","Tap","onBegin","x","y","createElement","style","root","cameraContainer","ref","isActive","format","torch","focusable","exposure","zoom","enableHighQualityPhotos","authFinger","onPress","loading","isLoading","modal"],"sourceRoot":"../../../../src","sources":["screens/FingerAuth/FingerAuth.tsx"],"mapp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EAAE1C,SAAU;IACfuC,KAAK,EAAEnD,MAAM,CAAC4C,MAAO;IACrBW,QAAQ,EAAE,IAAK;IACfxC,MAAM,EAAEA,MAAO;IACfyC,MAAM,EAAE9B,YAAa;IACrB+B,KAAK,EAAE,IAAK;IACZC,SAAS,EAAE,IAAK;IAChBC,QAAQ,EAAE1C,KAAK,CAAC0C,QAAS;IACzBC,IAAI,EAAE3C,KAAK,CAAC0C,QAAS;IACrBtB,KAAK,EAAE,IAAK;IACZwB,uBAAuB,EAAE;EAAK,CAC/B,CAAC,eACF5E,KAAA,CAAAiE,aAAA,CAAChD,QAAQ,MAAE,CACP,CACS,CAAC,eAClBjB,KAAA,CAAAiE,aAAA,CAAC5D,IAAI;IAAC6D,KAAK,EAAE7B;EAAuB,gBAClCrC,KAAA,CAAAiE,aAAA,CAAC7C,aAAa;IAACyD,UAAU;IAACC,OAAO,EAAE5B,SAAU;IAAC6B,OAAO,EAAE/C,KAAK,CAAC+C;EAAQ,CAAE,CACnE,CAAC,EACN/C,KAAK,CAACQ,cAAc,iBAAIxC,KAAA,CAAAiE,aAAA,CAAC/C,gBAAgB;IAACwD,QAAQ,EAAE1C,KAAK,CAAC0C,QAAS;IAACC,IAAI,EAAE3C,KAAK,CAAC0C;EAAS,CAAE,CAAC,eAC7F1E,KAAA,CAAAiE,aAAA,CAAC9C,YAAY;IAAC6D,SAAS,EAAEhD,KAAK,CAAC+C,OAAQ;IAACE,KAAK,EAAEjD,KAAK,CAACiD;EAAM,CAAE,CACvC,CAAC;AAE7B,CAAC;AAED,eAAe1D,UAAU"}
@@ -9,7 +9,8 @@ import { useSelector, useDispatch } from "../../store/modules/fingerRegister";
9
9
  import { CaptureButton, DeviceNotFound, HelpRegister, ModalMessage, CameraConfigInfo, Gabarito } from "../../components";
10
10
  const FingerRegister = ({
11
11
  UID,
12
- qualityPrioritization
12
+ qualityPrioritization,
13
+ onSuccess
13
14
  }) => {
14
15
  const cameraRef = useRef(null);
15
16
  const {
@@ -38,6 +39,7 @@ const FingerRegister = ({
38
39
  useEffect(() => {
39
40
  if (state.code === 0) {
40
41
  dispatch.setModal("Sucesso!", "Cadastro de digital realizado com sucesso!");
42
+ onSuccess && (onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(state.code));
41
43
  dispatch.handleLoading();
42
44
  }
43
45
  if (state.code !== 0 && state.code !== null) {
@@ -1 +1 @@
1
- {"version":3,"names":["React","useCallback","useEffect","useMemo","useRef","View","Camera","useCameraFormat","useCameraDevice","useCameraPermission","Orientation","Gesture","GestureDetector","GestureHandlerRootView","runOnJS","styles","useSelector","useDispatch","CaptureButton","DeviceNotFound","HelpRegister","ModalMessage","CameraConfigInfo","Gabarito","FingerRegister","UID","qualityPrioritization","cameraRef","hasPermission","requestPermission","state","dispatch","device","base64ImagesCount","base64Images","length","lockToPortrait","unlockAllOrientations","undefined","setModal","handleLoading","sendImages","code","message","resetState","cameraPermission","getConfig","containerCaptureStyled","containerCapture","bottom","showButtonInfo","cameraFormat","photoResolution","width","height","pixelFormat","takePhoto","_cameraRef$current","photo","current","flash","setImagePath","path","focus","point","camera","gesture","Tap","onBegin","x","y","createElement","style","root","cameraContainer","ref","isActive","format","torch","focusable","exposure","zoom","enableHighQualityPhotos","onPress","imagesCount","isLoading","loading","modal"],"sourceRoot":"../../../../src","sources":["screens/FingerRegister/index.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,SAAS,EAAEC,OAAO,EAAEC,MAAM,QAAQ,OAAO;AACtE,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,MAAM,EAAEC,eAAe,EAAcC,eAAe,EAAEC,mBAAmB,QAAQ,4BAA4B;AACtH,OAAOC,WAAW,MAAM,iCAAiC;AACzD,SAASC,OAAO,EAAEC,eAAe,EAAEC,sBAAsB,QAAQ,8BAA8B;AAC/F,SAASC,OAAO,QAAQ,yBAAyB;AAEjD,SAASC,MAAM,QAAQ,UAAU;AACjC,SAASC,WAAW,EAAEC,WAAW,QAAQ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C2D;EAAgB,gBAClC1E,KAAA,CAAAuE,aAAA,CAACjE,MAAM;IACLqE,GAAG,EAAEhD,SAAU;IACf6C,KAAK,EAAEzD,MAAM,CAACkD,MAAO;IACrBW,QAAQ,EAAE,IAAK;IACf5C,MAAM,EAAEA,MAAO;IACf6C,MAAM,EAAE1B,YAAa;IACrB2B,KAAK,EAAE,IAAK;IACZC,SAAS,EAAE,IAAK;IAChBC,QAAQ,EAAElD,KAAK,CAACkD,QAAS;IACzBC,IAAI,EAAEnD,KAAK,CAACkD,QAAS;IACrBtB,KAAK,EAAE,IAAK;IACZwB,uBAAuB,EAAE;EAAK,CAC/B,CAAC,eACFlF,KAAA,CAAAuE,aAAA,CAAChD,QAAQ,MAAE,CACP,CACS,CAAC,eAClBvB,KAAA,CAAAuE,aAAA,CAAClE,IAAI;IAACmE,KAAK,EAAEzB;EAAuB,gBAClC/C,KAAA,CAAAuE,aAAA,CAACrD,aAAa;IAACiE,OAAO,EAAE3B,SAAU;IAAC4B,WAAW,EAAEnD;EAAkB,CAAE,CAChE,CAAC,EACNH,KAAK,CAACoB,cAAc,iBAAIlD,KAAA,CAAAuE,aAAA,CAACjD,gBAAgB;IAAC0D,QAAQ,EAAElD,KAAK,CAACkD,QAAS;IAACC,IAAI,EAAEnD,KAAK,CAACmD;EAAK,CAAE,CAAC,eACzFjF,KAAA,CAAAuE,aAAA,CAAClD,YAAY;IAACgE,SAAS,EAAEvD,KAAK,CAACwD,OAAQ;IAACC,KAAK,EAAEzD,KAAK,CAACyD;EAAM,CAAE,CACvC,CAAC;AAE7B,CAAC;AAED,eAAe/D,cAAc"}
1
+ {"version":3,"names":["React","useCallback","useEffect","useMemo","useRef","View","Camera","useCameraFormat","useCameraDevice","useCameraPermission","Orientation","Gesture","GestureDetector","GestureHandlerRootView","runOnJS","styles","useSelector","useDispatch","CaptureButton","DeviceNotFound","HelpRegister","ModalMessage","CameraConfigInfo","Gabarito","FingerRegister","UID","qualityPrioritization","onSuccess","cameraRef","hasPermission","requestPermission","state","dispatch","device","base64ImagesCount","base64Images","length","lockToPortrait","unlockAllOrientations","undefined","setModal","handleLoading","sendImages","code","message","resetState","cameraPermission","getConfig","containerCaptureStyled","containerCapture","bottom","showButtonInfo","cameraFormat","photoResolution","width","height","pixelFormat","takePhoto","_cameraRef$current","photo","current","flash","setImagePath","path","focus","point","camera","gesture","Tap","onBegin","x","y","createElement","style","root","cameraContainer","ref","isActive","format","torch","focusable","exposure","zoom","enableHighQualityPhotos","onPress","imagesCount","isLoading","loading","modal"],"sourceRoot":"../../../../src","sources":["screens/FingerRegister/index.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,SAAS,EAAEC,OAAO,EAAEC,MAAM,QAAQ,OAAO;AACtE,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,MAAM,EAAEC,eAAe,EAAcC,eAAe,EAAEC,mBAAmB,QAAQ,4BAA4B;AACtH,OAAOC,WAAW,MAAM,iCAAiC;AACzD,SAASC,OAAO,EAAEC,eAAe,EAAEC,sBAAsB,QAAQ,8BAA8B;AAC/F,SAASC,OAAO,QAAQ,yBAAyB;AAEjD,SAASC,MAAM,QAAQ,UAAU;AACjC,SAASC,WAAW,EAAEC,WAAW,QAAQ,oCAAoC;AAC7E,SACEC,aAAa,EACbC,cAAc,EACdC,YAAY,EACZC,YAAY,EACZC,gBAAgB,EAChBC,QAAQ,QACH,kBAAkB;AAQzB,MAAMC,cAAc,GAAGA,CAAC;EAAEC,GAAG;EAAEC,qBAAqB;EAAEC;AAAiB,CAAC,KAAK;EAC3E,MAAMC,SAAS,GAAGxB,MAAM,CAAS,IAAI,CAAC;EACtC,MAAM;IAAEyB,aAAa;IAAEC;EAAkB,CAAC,GAAGrB,mBAAmB,CAAC,CAAC;EAClE,MAAMsB,KAAK,GAAGf,WAAW,CAAC,CAAC;EAC3B,MAAMgB,QAAQ,GAAGf,WAAW,CAAC,CAAC;EAC9B,MAAMgB,MAAM,GAAGzB,eAAe,CAAC,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AE,IAAK;IACZwB,uBAAuB,EAAE;EAAK,CAC/B,CAAC,eACFnF,KAAA,CAAAwE,aAAA,CAACjD,QAAQ,MAAE,CACP,CACS,CAAC,eAClBvB,KAAA,CAAAwE,aAAA,CAACnE,IAAI;IAACoE,KAAK,EAAEzB;EAAuB,gBAClChD,KAAA,CAAAwE,aAAA,CAACtD,aAAa;IAACkE,OAAO,EAAE3B,SAAU;IAAC4B,WAAW,EAAEnD;EAAkB,CAAE,CAChE,CAAC,EACNH,KAAK,CAACoB,cAAc,iBAAInD,KAAA,CAAAwE,aAAA,CAAClD,gBAAgB;IAAC2D,QAAQ,EAAElD,KAAK,CAACkD,QAAS;IAACC,IAAI,EAAEnD,KAAK,CAACmD;EAAK,CAAE,CAAC,eACzFlF,KAAA,CAAAwE,aAAA,CAACnD,YAAY;IAACiE,SAAS,EAAEvD,KAAK,CAACwD,OAAQ;IAACC,KAAK,EAAEzD,KAAK,CAACyD;EAAM,CAAE,CACvC,CAAC;AAE7B,CAAC;AAED,eAAehE,cAAc"}
@@ -2,7 +2,8 @@
2
2
  type Props = {
3
3
  UID: string;
4
4
  qualityPrioritization: "speed" | "quality" | "balanced";
5
+ onSuccess: (code: number) => void;
5
6
  };
6
- declare const FingerRegister: ({ UID, qualityPrioritization }: Props) => JSX.Element;
7
+ declare const FingerRegister: ({ UID, qualityPrioritization, onSuccess }: Props) => JSX.Element;
7
8
  export default FingerRegister;
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/screens/FingerRegister/index.tsx"],"names":[],"mappings":";AAkBA,KAAK,KAAK,GAAG;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,qBAAqB,EAAE,OAAO,GAAG,SAAS,GAAG,UAAU,CAAC;CACzD,CAAC;AAEF,QAAA,MAAM,cAAc,mCAAoC,KAAK,gBAiH5D,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/screens/FingerRegister/index.tsx"],"names":[],"mappings":";AAkBA,KAAK,KAAK,GAAG;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,qBAAqB,EAAE,OAAO,GAAG,SAAS,GAAG,UAAU,CAAC;IACxD,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,CAAC;AAEF,QAAA,MAAM,cAAc,8CAA+C,KAAK,gBAkHvE,CAAC;AAEF,eAAe,cAAc,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ha_tecno/live-id-sdk",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "description": "React Native SDK for Live ID",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -102,7 +102,7 @@ const FingerAuth = ({ UID, qualityPrioritization, onSuccess }: Props) => {
102
102
  torch={"on"}
103
103
  focusable={true}
104
104
  exposure={state.exposure}
105
- zoom={2}
105
+ zoom={state.exposure}
106
106
  photo={true}
107
107
  enableHighQualityPhotos={true}
108
108
  />
@@ -19,9 +19,10 @@ import {
19
19
  type Props = {
20
20
  UID: string;
21
21
  qualityPrioritization: "speed" | "quality" | "balanced";
22
+ onSuccess: (code: number) => void;
22
23
  };
23
24
 
24
- const FingerRegister = ({ UID, qualityPrioritization }: Props) => {
25
+ const FingerRegister = ({ UID, qualityPrioritization, onSuccess }: Props) => {
25
26
  const cameraRef = useRef<Camera>(null);
26
27
  const { hasPermission, requestPermission } = useCameraPermission();
27
28
  const state = useSelector();
@@ -49,6 +50,7 @@ const FingerRegister = ({ UID, qualityPrioritization }: Props) => {
49
50
  useEffect(() => {
50
51
  if (state.code === 0) {
51
52
  dispatch.setModal("Sucesso!", "Cadastro de digital realizado com sucesso!");
53
+ onSuccess && onSuccess?.(state.code);
52
54
  dispatch.handleLoading();
53
55
  }
54
56
  if (state.code !== 0 && state.code !== null) {