@ha_tecno/live-id-sdk 2.17.0 → 2.17.2

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 (151) hide show
  1. package/lib/commonjs/components/Gabarito/gabarito.js +1 -1
  2. package/lib/commonjs/components/Gabarito/gabarito.js.map +1 -1
  3. package/lib/commonjs/components/HACaptureInstructions/HACaptureInstructions.js +4 -2
  4. package/lib/commonjs/components/HACaptureInstructions/HACaptureInstructions.js.map +1 -1
  5. package/lib/commonjs/components/HACaptureInstructions/HACard/HACard.js +6 -2
  6. package/lib/commonjs/components/HACaptureInstructions/HACard/HACard.js.map +1 -1
  7. package/lib/commonjs/components/HACaptureInstructions/data.js +2 -2
  8. package/lib/commonjs/components/HACaptureInstructions/data.js.map +1 -1
  9. package/lib/commonjs/components/HACarouselCalibration/HACarouselItem/HACarouselItem.js +3 -3
  10. package/lib/commonjs/components/HACarouselCalibration/HACarouselItem/HACarouselItem.js.map +1 -1
  11. package/lib/commonjs/components/HACarouselCalibration/HACarouselItem/styles.js.map +1 -1
  12. package/lib/commonjs/components/HACarouselCalibration/HAPagination/styles.js +0 -1
  13. package/lib/commonjs/components/HACarouselCalibration/HAPagination/styles.js.map +1 -1
  14. package/lib/commonjs/components/HARecordButton/HARecordButton.js +1 -1
  15. package/lib/commonjs/components/HARecordButton/HARecordButton.js.map +1 -1
  16. package/lib/commonjs/components/HARecordInstructions/HARecordInstructions.js +3 -3
  17. package/lib/commonjs/components/HARecordInstructions/HARecordInstructions.js.map +1 -1
  18. package/lib/commonjs/components/index.js +10 -10
  19. package/lib/commonjs/components/index.js.map +1 -1
  20. package/lib/commonjs/screens/FingerAuth/FingerAuth.js +14 -4
  21. package/lib/commonjs/screens/FingerAuth/FingerAuth.js.map +1 -1
  22. package/lib/commonjs/screens/FingerRegister/FingerRegister.js +14 -4
  23. package/lib/commonjs/screens/FingerRegister/FingerRegister.js.map +1 -1
  24. package/lib/commonjs/screens/LifeCertificate/LifeCertificate.js +12 -2
  25. package/lib/commonjs/screens/LifeCertificate/LifeCertificate.js.map +1 -1
  26. package/lib/commonjs/screens/RegisterOperations/registerOperationPointsBiometrics.js +26 -29
  27. package/lib/commonjs/screens/RegisterOperations/registerOperationPointsBiometrics.js.map +1 -1
  28. package/lib/commonjs/screens/RegisterOperations/styles.js +2 -11
  29. package/lib/commonjs/screens/RegisterOperations/styles.js.map +1 -1
  30. package/lib/commonjs/services/services.js +5 -3
  31. package/lib/commonjs/services/services.js.map +1 -1
  32. package/lib/commonjs/store/modules/operationPoints/slice.js +17 -17
  33. package/lib/commonjs/store/modules/operationPoints/slice.js.map +1 -1
  34. package/lib/commonjs/utils/index.js +1 -1
  35. package/lib/commonjs/utils/index.js.map +1 -1
  36. package/lib/module/components/Gabarito/gabarito.js +2 -2
  37. package/lib/module/components/Gabarito/gabarito.js.map +1 -1
  38. package/lib/module/components/HAButton/HAButton.js +1 -1
  39. package/lib/module/components/HAButton/HAButton.js.map +1 -1
  40. package/lib/module/components/HAButton/styles.js +1 -1
  41. package/lib/module/components/HAButton/styles.js.map +1 -1
  42. package/lib/module/components/HACaptureInstructions/HACaptureInstructions.js +5 -3
  43. package/lib/module/components/HACaptureInstructions/HACaptureInstructions.js.map +1 -1
  44. package/lib/module/components/HACaptureInstructions/HACard/HACard.js +7 -3
  45. package/lib/module/components/HACaptureInstructions/HACard/HACard.js.map +1 -1
  46. package/lib/module/components/HACaptureInstructions/HACard/styles.js +1 -1
  47. package/lib/module/components/HACaptureInstructions/HACard/styles.js.map +1 -1
  48. package/lib/module/components/HACaptureInstructions/data.js +2 -2
  49. package/lib/module/components/HACaptureInstructions/data.js.map +1 -1
  50. package/lib/module/components/HACaptureInstructions/style.js +1 -1
  51. package/lib/module/components/HACaptureInstructions/style.js.map +1 -1
  52. package/lib/module/components/HACarouselCalibration/HACarouselCalibration.js.map +1 -1
  53. package/lib/module/components/HACarouselCalibration/HACarouselItem/HACarouselItem.js +4 -4
  54. package/lib/module/components/HACarouselCalibration/HACarouselItem/HACarouselItem.js.map +1 -1
  55. package/lib/module/components/HACarouselCalibration/HACarouselItem/styles.js +1 -2
  56. package/lib/module/components/HACarouselCalibration/HACarouselItem/styles.js.map +1 -1
  57. package/lib/module/components/HACarouselCalibration/HAPagination/styles.js +0 -1
  58. package/lib/module/components/HACarouselCalibration/HAPagination/styles.js.map +1 -1
  59. package/lib/module/components/HARecordButton/HARecordButton.js +1 -1
  60. package/lib/module/components/HARecordButton/HARecordButton.js.map +1 -1
  61. package/lib/module/components/HARecordInstructions/HARecordInstructions.js +4 -4
  62. package/lib/module/components/HARecordInstructions/HARecordInstructions.js.map +1 -1
  63. package/lib/module/components/HARecordInstructions/styles.js +1 -1
  64. package/lib/module/components/HARecordInstructions/styles.js.map +1 -1
  65. package/lib/module/components/Toast/Toast.js +1 -1
  66. package/lib/module/components/Toast/Toast.js.map +1 -1
  67. package/lib/module/components/index.js +11 -11
  68. package/lib/module/components/index.js.map +1 -1
  69. package/lib/module/index.js +3 -3
  70. package/lib/module/index.js.map +1 -1
  71. package/lib/module/screens/FingerAuth/FingerAuth.js +17 -6
  72. package/lib/module/screens/FingerAuth/FingerAuth.js.map +1 -1
  73. package/lib/module/screens/FingerRegister/FingerRegister.js +16 -5
  74. package/lib/module/screens/FingerRegister/FingerRegister.js.map +1 -1
  75. package/lib/module/screens/LifeCertificate/LifeCertificate.js +13 -3
  76. package/lib/module/screens/LifeCertificate/LifeCertificate.js.map +1 -1
  77. package/lib/module/screens/RegisterOperations/registerOperationPointsBiometrics.js +28 -30
  78. package/lib/module/screens/RegisterOperations/registerOperationPointsBiometrics.js.map +1 -1
  79. package/lib/module/screens/RegisterOperations/styles.js +3 -12
  80. package/lib/module/screens/RegisterOperations/styles.js.map +1 -1
  81. package/lib/module/services/services.js +5 -3
  82. package/lib/module/services/services.js.map +1 -1
  83. package/lib/module/store/modules/operationPoints/slice.js +17 -17
  84. package/lib/module/store/modules/operationPoints/slice.js.map +1 -1
  85. package/lib/module/theme/theme.js +1 -1
  86. package/lib/module/theme/theme.js.map +1 -1
  87. package/lib/module/utils/hooks/useIsForeground.js +1 -1
  88. package/lib/module/utils/hooks/useIsForeground.js.map +1 -1
  89. package/lib/module/utils/index.js +2 -2
  90. package/lib/module/utils/index.js.map +1 -1
  91. package/lib/module/utils/utils.js +1 -1
  92. package/lib/module/utils/utils.js.map +1 -1
  93. package/lib/typescript/src/components/HACaptureInstructions/HACard/HACard.d.ts +3 -1
  94. package/lib/typescript/src/components/HACaptureInstructions/HACard/HACard.d.ts.map +1 -1
  95. package/lib/typescript/src/components/HACarouselCalibration/HACarouselItem/styles.d.ts.map +1 -1
  96. package/lib/typescript/src/components/HACarouselCalibration/HAPagination/styles.d.ts.map +1 -1
  97. package/lib/typescript/src/components/index.d.ts +11 -11
  98. package/lib/typescript/src/components/index.d.ts.map +1 -1
  99. package/lib/typescript/src/index.d.ts +3 -3
  100. package/lib/typescript/src/index.d.ts.map +1 -1
  101. package/lib/typescript/src/screens/FingerAuth/FingerAuth.d.ts.map +1 -1
  102. package/lib/typescript/src/screens/FingerRegister/FingerRegister.d.ts.map +1 -1
  103. package/lib/typescript/src/screens/LifeCertificate/LifeCertificate.d.ts.map +1 -1
  104. package/lib/typescript/src/screens/RegisterOperations/registerOperationPointsBiometrics.d.ts.map +1 -1
  105. package/lib/typescript/src/screens/RegisterOperations/styles.d.ts +2 -8
  106. package/lib/typescript/src/screens/RegisterOperations/styles.d.ts.map +1 -1
  107. package/lib/typescript/src/services/services.d.ts +2 -2
  108. package/lib/typescript/src/services/services.d.ts.map +1 -1
  109. package/lib/typescript/src/services/types.d.ts +1 -0
  110. package/lib/typescript/src/services/types.d.ts.map +1 -1
  111. package/lib/typescript/src/store/modules/operationPoints/selectors.d.ts +2 -1
  112. package/lib/typescript/src/store/modules/operationPoints/selectors.d.ts.map +1 -1
  113. package/lib/typescript/src/store/modules/operationPoints/slice.d.ts.map +1 -1
  114. package/lib/typescript/src/store/modules/operationPoints/types.d.ts +4 -1
  115. package/lib/typescript/src/store/modules/operationPoints/types.d.ts.map +1 -1
  116. package/lib/typescript/src/utils/index.d.ts +2 -2
  117. package/lib/typescript/src/utils/index.d.ts.map +1 -1
  118. package/lib/typescript/src/utils/utils.d.ts +1 -1
  119. package/package.json +3 -3
  120. package/src/@types/declarations.d.ts +2 -0
  121. package/src/components/Gabarito/gabarito.tsx +2 -2
  122. package/src/components/HAButton/HAButton.tsx +1 -1
  123. package/src/components/HAButton/styles.ts +1 -1
  124. package/src/components/HACaptureInstructions/HACaptureInstructions.tsx +3 -3
  125. package/src/components/HACaptureInstructions/HACard/HACard.tsx +12 -3
  126. package/src/components/HACaptureInstructions/HACard/styles.ts +1 -1
  127. package/src/components/HACaptureInstructions/data.ts +2 -2
  128. package/src/components/HACaptureInstructions/style.ts +1 -1
  129. package/src/components/HACarouselCalibration/HACarouselCalibration.tsx +1 -1
  130. package/src/components/HACarouselCalibration/HACarouselItem/HACarouselItem.tsx +4 -4
  131. package/src/components/HACarouselCalibration/HACarouselItem/styles.ts +1 -3
  132. package/src/components/HACarouselCalibration/HAPagination/styles.ts +0 -1
  133. package/src/components/HARecordButton/HARecordButton.tsx +1 -1
  134. package/src/components/HARecordInstructions/HARecordInstructions.tsx +6 -6
  135. package/src/components/HARecordInstructions/styles.ts +1 -1
  136. package/src/components/Toast/Toast.tsx +1 -1
  137. package/src/components/index.ts +20 -20
  138. package/src/index.tsx +9 -9
  139. package/src/screens/FingerAuth/FingerAuth.tsx +19 -6
  140. package/src/screens/FingerRegister/FingerRegister.tsx +17 -5
  141. package/src/screens/LifeCertificate/LifeCertificate.tsx +14 -3
  142. package/src/screens/RegisterOperations/registerOperationPointsBiometrics.tsx +25 -28
  143. package/src/screens/RegisterOperations/styles.ts +3 -12
  144. package/src/services/services.ts +11 -9
  145. package/src/services/types.ts +1 -0
  146. package/src/store/modules/operationPoints/slice.ts +24 -24
  147. package/src/store/modules/operationPoints/types.ts +9 -1
  148. package/src/theme/theme.ts +1 -1
  149. package/src/utils/hooks/useIsForeground.ts +1 -1
  150. package/src/utils/index.ts +2 -2
  151. package/src/utils/utils.ts +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"FingerRegister.d.ts","sourceRoot":"","sources":["../../../../../src/screens/FingerRegister/FingerRegister.tsx"],"names":[],"mappings":";AAmCA,KAAK,KAAK,GAAG;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC9B,CAAC;AAEF,QAAA,MAAM,mBAAmB,yEAA0E,KAAK,gBA4MvG,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"FingerRegister.d.ts","sourceRoot":"","sources":["../../../../../src/screens/FingerRegister/FingerRegister.tsx"],"names":[],"mappings":";AAoCA,KAAK,KAAK,GAAG;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC9B,CAAC;AAEF,QAAA,MAAM,mBAAmB,yEAA0E,KAAK,gBAuNvG,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"LifeCertificate.d.ts","sourceRoot":"","sources":["../../../../../src/screens/LifeCertificate/LifeCertificate.tsx"],"names":[],"mappings":";AASA,KAAK,KAAK,GAAG;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,QAAA,MAAM,eAAe,kBAAmB,KAAK,gBAoJ5C,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"LifeCertificate.d.ts","sourceRoot":"","sources":["../../../../../src/screens/LifeCertificate/LifeCertificate.tsx"],"names":[],"mappings":";AASA,KAAK,KAAK,GAAG;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,QAAA,MAAM,eAAe,kBAAmB,KAAK,gBA+J5C,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"registerOperationPointsBiometrics.d.ts","sourceRoot":"","sources":["../../../../../src/screens/RegisterOperations/registerOperationPointsBiometrics.tsx"],"names":[],"mappings":";AAeA,KAAK,KAAK,GAAG;IACX,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB,CAAC;AAEF,QAAA,MAAM,iCAAiC,kBAAmB,KAAK,gBAmL9D,CAAC;AAEF,eAAe,iCAAiC,CAAC"}
1
+ {"version":3,"file":"registerOperationPointsBiometrics.d.ts","sourceRoot":"","sources":["../../../../../src/screens/RegisterOperations/registerOperationPointsBiometrics.tsx"],"names":[],"mappings":";AAeA,KAAK,KAAK,GAAG;IACX,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB,CAAC;AAEF,QAAA,MAAM,iCAAiC,kBAAmB,KAAK,gBAgL9D,CAAC;AAEF,eAAe,iCAAiC,CAAC"}
@@ -32,16 +32,10 @@ export declare const styles: {
32
32
  bottom: number;
33
33
  };
34
34
  marginTabSelector: {
35
+ alignSelf: "center";
36
+ width: "100%";
35
37
  marginHorizontal: number | undefined;
36
38
  };
37
- containerRuler: {
38
- paddingTop: number;
39
- };
40
- textStyleRuler: {
41
- color: string;
42
- fontSize: number | undefined;
43
- fontWeight: "bold";
44
- };
45
39
  containerButton: {
46
40
  marginTop: number;
47
41
  alignSelf: "center";
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/screens/RegisterOperations/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiFjB,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/screens/RegisterOperations/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwEjB,CAAC"}
@@ -1,9 +1,9 @@
1
- import type { GetConfigApiResponse, LifeCertificateResponse, LifeCertificateType, RegisterFingerResponse, RegisterFingerImagesType, AuthFingerType, AuthFingerResponse, SendImagesForRegisterOperationPointsType, SendImagesForRegisterOperationPointsResponse, SendVideoForRegisterOperationPointsType, SendVideoForRegisterOperationPointsResponse } from "./types";
1
+ import type { AuthFingerResponse, AuthFingerType, GetConfigApiResponse, LifeCertificateResponse, LifeCertificateType, RegisterFingerImagesType, RegisterFingerResponse, SendImagesForRegisterOperationPointsResponse, SendImagesForRegisterOperationPointsType, SendVideoForRegisterOperationPointsResponse, SendVideoForRegisterOperationPointsType } from "./types";
2
2
  export declare const getConfigsApi: () => Promise<GetConfigApiResponse>;
3
3
  export declare const registerFingerImages: ({ UID, images, finger, exposure, zoom }: RegisterFingerImagesType) => Promise<RegisterFingerResponse>;
4
4
  export declare const authFinger: ({ UID, image, exposure, zoom }: AuthFingerType) => Promise<AuthFingerResponse>;
5
5
  export declare const lifeCertificate: ({ videoPath, exposure, UID }: LifeCertificateType) => Promise<LifeCertificateResponse>;
6
6
  export declare const getConfigOperationPoints: () => Promise<GetConfigApiResponse>;
7
- export declare const sendImagesForRegisterOperationPoints: ({ deviceModel, exposure, exposureMax, exposureMin, exposureScaleZeroToOneBiometrics, images, zoom, zoomMax, zoomMin, zoomScaleZeroToOne }: SendImagesForRegisterOperationPointsType) => Promise<SendImagesForRegisterOperationPointsResponse>;
7
+ export declare const sendImagesForRegisterOperationPoints: ({ deviceModel, exposure, exposureMax, exposureMin, exposureScaleZeroToOneBiometrics, images, zoom, zoomMax, zoomMin, zoomScaleZeroToOne, step }: SendImagesForRegisterOperationPointsType) => Promise<SendImagesForRegisterOperationPointsResponse>;
8
8
  export declare const sendVideoForRegisterOperationPoints: ({ deviceModel, exposure, exposureMax, exposureMin, exposureScaleZeroToOneLifeCertificate, videoPath }: SendVideoForRegisterOperationPointsType) => Promise<SendVideoForRegisterOperationPointsResponse>;
9
9
  //# sourceMappingURL=services.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../../../src/services/services.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,oBAAoB,EACpB,uBAAuB,EACvB,mBAAmB,EACnB,sBAAsB,EACtB,wBAAwB,EACxB,cAAc,EACd,kBAAkB,EAClB,wCAAwC,EACxC,4CAA4C,EAC5C,uCAAuC,EACvC,2CAA2C,EAC5C,MAAM,SAAS,CAAC;AAajB,eAAO,MAAM,aAAa,QAAa,QAAQ,oBAAoB,CAQlE,CAAC;AAEF,eAAO,MAAM,oBAAoB,4CAM9B,wBAAwB,KAAG,QAAQ,sBAAsB,CA8B3D,CAAC;AAEF,eAAO,MAAM,UAAU,mCAA0C,cAAc,KAAG,QAAQ,kBAAkB,CAwB3G,CAAC;AAEF,eAAO,MAAM,eAAe,iCAIzB,mBAAmB,KAAG,QAAQ,uBAAuB,CAmCvD,CAAC;AAEF,eAAO,MAAM,wBAAwB,QAAa,QAAQ,oBAAoB,CAQ7E,CAAC;AAEF,eAAO,MAAM,oCAAoC,8IAW9C,wCAAwC,KAAG,QAAQ,4CAA4C,CAkCjG,CAAC;AAEF,eAAO,MAAM,mCAAmC,0GAO7C,uCAAuC,KAAG,QAAQ,2CAA2C,CA0C/F,CAAC"}
1
+ {"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../../../src/services/services.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,kBAAkB,EAClB,cAAc,EACd,oBAAoB,EACpB,uBAAuB,EACvB,mBAAmB,EACnB,wBAAwB,EACxB,sBAAsB,EACtB,4CAA4C,EAC5C,wCAAwC,EACxC,2CAA2C,EAC3C,uCAAuC,EACxC,MAAM,SAAS,CAAC;AAYjB,eAAO,MAAM,aAAa,QAAa,QAAQ,oBAAoB,CAQlE,CAAC;AAEF,eAAO,MAAM,oBAAoB,4CAM9B,wBAAwB,KAAG,QAAQ,sBAAsB,CA8B3D,CAAC;AAEF,eAAO,MAAM,UAAU,mCAA0C,cAAc,KAAG,QAAQ,kBAAkB,CAwB3G,CAAC;AAEF,eAAO,MAAM,eAAe,iCAIzB,mBAAmB,KAAG,QAAQ,uBAAuB,CAmCvD,CAAC;AAEF,eAAO,MAAM,wBAAwB,QAAa,QAAQ,oBAAoB,CAQ7E,CAAC;AAEF,eAAO,MAAM,oCAAoC,oJAY9C,wCAAwC,KAAG,QAAQ,4CAA4C,CAmCjG,CAAC;AAEF,eAAO,MAAM,mCAAmC,0GAO7C,uCAAuC,KAAG,QAAQ,2CAA2C,CA0C/F,CAAC"}
@@ -62,6 +62,7 @@ export type SendImagesForRegisterOperationPointsType = {
62
62
  zoomMax: number;
63
63
  zoomMin: number;
64
64
  zoomScaleZeroToOne: number;
65
+ step: number;
65
66
  };
66
67
  export type SendImagesForRegisterOperationPointsResponse = {
67
68
  status: number;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/services/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,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AAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,4CAA4C,GAAG;IACzD,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,uCAAuC,GAAG;IACpD,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,qCAAqC,EAAE,MAAM,CAAC;IAC9C,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,2CAA2C,GAAG;IACxD,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC"}
@@ -1,6 +1,7 @@
1
1
  export declare const useSelector: () => {
2
- exposureScaleZeroToOneBiometrics: 0.5 | 0.12 | 0.2 | 0.35 | 0.65 | 0.8 | 0.3 | 0.4 | 0.6 | 0.7;
2
+ exposureScaleZeroToOneBiometrics: 0.5 | 0.4 | 0.6 | 0.45 | 0.55;
3
3
  exposureScaleZeroToOneLifeCertificate: 0.5 | 0.12 | 0.2 | 0.35 | 0.65 | 0.8 | 0.3 | 0.4 | 0.6 | 0.7;
4
+ step: number;
4
5
  loading: "idle" | "pending" | "succeeded" | "failed";
5
6
  hasConfigOperationPointsBiometrics: "empty" | "notEmpty" | "idle";
6
7
  hasConfigOperationPointsLifeCertificate: "empty" | "notEmpty" | "idle";
@@ -1 +1 @@
1
- {"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../../../../../src/store/modules/operationPoints/selectors.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;CAAqB,CAAC;AAC9C,eAAO,MAAM,WAAW;;;;;;;;;;;;;CAAwB,CAAC"}
1
+ {"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../../../../../src/store/modules/operationPoints/selectors.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;CAAqB,CAAC;AAC9C,eAAO,MAAM,WAAW;;;;;;;;;;;;;CAAwB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"slice.d.ts","sourceRoot":"","sources":["../../../../../../src/store/modules/operationPoints/slice.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,oBAAoB,EAIrB,MAAM,SAAS,CAAC;AAwPjB,QAAA,MAAM,KAAK,mFAgBR,CAAC;AAEJ,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"slice.d.ts","sourceRoot":"","sources":["../../../../../../src/store/modules/operationPoints/slice.ts"],"names":[],"mappings":"AASA,OAAO,EAIL,oBAAoB,EAIrB,MAAM,SAAS,CAAC;AA+OjB,QAAA,MAAM,KAAK,mFAgBR,CAAC;AAEJ,eAAe,KAAK,CAAC"}
@@ -2,8 +2,9 @@ type ScaleZeroToOneAndroid = 0.12 | 0.2 | 0.35 | 0.5 | 0.65 | 0.8;
2
2
  type ScaleZeroToOneIOS = 0.3 | 0.4 | 0.5 | 0.6 | 0.7;
3
3
  type StatusConfigOperationPoints = "empty" | "notEmpty" | "idle";
4
4
  type State = {
5
- exposureScaleZeroToOneBiometrics: ScaleZeroToOneIOS | ScaleZeroToOneAndroid;
5
+ exposureScaleZeroToOneBiometrics: 0.4 | 0.45 | 0.5 | 0.55 | 0.6;
6
6
  exposureScaleZeroToOneLifeCertificate: ScaleZeroToOneIOS | ScaleZeroToOneAndroid;
7
+ step: number;
7
8
  loading: "idle" | "pending" | "succeeded" | "failed";
8
9
  hasConfigOperationPointsBiometrics: StatusConfigOperationPoints;
9
10
  hasConfigOperationPointsLifeCertificate: StatusConfigOperationPoints;
@@ -40,6 +41,7 @@ export type OperationPointsState = {
40
41
  dispatch: Dispatch;
41
42
  };
42
43
  export type ExposureMapOperationPoints = Record<State["exposureScaleZeroToOneBiometrics"], State["exposureScaleZeroToOneBiometrics"]>;
44
+ export type ExposureMapOperationPointsLifeCertificate = Record<State["exposureScaleZeroToOneLifeCertificate"], State["exposureScaleZeroToOneLifeCertificate"]>;
43
45
  export type SetImageBase64Payload = string;
44
46
  export type SendImagesBase64Payload = {
45
47
  base64Images: string[];
@@ -48,6 +50,7 @@ export type SendImagesBase64Payload = {
48
50
  exposureMax: number;
49
51
  zoomMin: number;
50
52
  zoomMax: number;
53
+ step: number;
51
54
  };
52
55
  export type sendVideosLifeCertificatePayload = {
53
56
  exposureMin: number;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/store/modules/operationPoints/types.ts"],"names":[],"mappings":"AAAA,KAAK,qBAAqB,GAAG,IAAI,GAAG,GAAG,GAAG,IAAI,GAAG,GAAG,GAAG,IAAI,GAAG,GAAG,CAAC;AAClE,KAAK,iBAAiB,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAErD,KAAK,2BAA2B,GAAG,OAAO,GAAG,UAAU,GAAG,MAAM,CAAC;AAEjE,KAAK,KAAK,GAAG;IACX,gCAAgC,EAAE,iBAAiB,GAAG,qBAAqB,CAAC;IAC5E,qCAAqC,EAAE,iBAAiB,GAAG,qBAAqB,CAAC;IACjF,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;IACrD,kCAAkC,EAAE,2BAA2B,CAAC;IAChE,uCAAuC,EAAE,2BAA2B,CAAC;IACrE,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,OAAO,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB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AAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG;IAC7C,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,qCAAqC,EAAE,MAAM,CAAC;CAC/C,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/store/modules/operationPoints/types.ts"],"names":[],"mappings":"AAAA,KAAK,qBAAqB,GAAG,IAAI,GAAG,GAAG,GAAG,IAAI,GAAG,GAAG,GAAG,IAAI,GAAG,GAAG,CAAC;AAClE,KAAK,iBAAiB,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAErD,KAAK,2BAA2B,GAAG,OAAO,GAAG,UAAU,GAAG,MAAM,CAAC;AAEjE,KAAK,KAAK,GAAG;IAEX,gCAAgC,EAAE,GAAG,GAAG,IAAI,GAAG,GAAG,GAAG,IAAI,GAAG,GAAG,CAAC;IAChE,qCAAqC,EAAE,iBAAiB,GAAG,qBAAqB,CAAC;IACjF,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;IACrD,kCAAkC,EAAE,2BAA2B,CAAC;IAChE,uCAAuC,EAAE,2BAA2B,CAAC;IACrE,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,OAAO,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE;QACL,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CACH,CAAC;AA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zC,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG;IAC7C,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,qCAAqC,EAAE,MAAM,CAAC;CAC/C,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import getConfigCamera from "./getConfigCamera";
2
- import { randomHeartRate, filteredFingers, scale0to1, scale0to1Inverse } from "./utils";
3
2
  import { useIsForeground } from "./hooks/useIsForeground";
4
- export { getConfigCamera, useIsForeground, randomHeartRate, filteredFingers, scale0to1, scale0to1Inverse };
3
+ import { filteredFingers, randomHeartRate, scale0to1, scale0to1Inverse } from "./utils";
4
+ export { filteredFingers, getConfigCamera, randomHeartRate, scale0to1, scale0to1Inverse, useIsForeground };
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AACxF,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,eAAe,EAAE,eAAe,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAExF,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,eAAe,EAAE,SAAS,EAAE,gBAAgB,EAAE,eAAe,EAAE,CAAC"}
@@ -9,5 +9,5 @@ declare const filteredFingers: (registeredFingers: string[], items: {
9
9
  }[];
10
10
  declare const scale0to1: (value: number, min: number, max: number) => number;
11
11
  declare const scale0to1Inverse: (scaledValue: number, min: number, max: number) => number;
12
- export { randomHeartRate, filteredFingers, scale0to1, scale0to1Inverse };
12
+ export { filteredFingers, randomHeartRate, scale0to1, scale0to1Inverse };
13
13
  //# sourceMappingURL=utils.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ha_tecno/live-id-sdk",
3
- "version": "2.17.0",
3
+ "version": "2.17.2",
4
4
  "description": "React Native SDK for Live ID",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -59,8 +59,8 @@
59
59
  "@types/react": "~17.0.21",
60
60
  "@types/react-native": "0.70.0",
61
61
  "@types/react-native-vector-icons": "^6.4.18",
62
- "@typescript-eslint/eslint-plugin": "^6.4.0",
63
- "@typescript-eslint/parser": "^7.5.0",
62
+ "@typescript-eslint/eslint-plugin": "^8.11.0",
63
+ "@typescript-eslint/parser": "^8.11.0",
64
64
  "del-cli": "^5.0.0",
65
65
  "eslint": "^8.0.1",
66
66
  "eslint-config-prettier": "^8.5.0",
@@ -3,3 +3,5 @@ declare module "*.svg" {
3
3
  const content: (props: SVGProps<SVGElement>) => ReactElement;
4
4
  export default content;
5
5
  }
6
+
7
+ declare module "react-native-tab-selector";
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
- import { View, Dimensions } from "react-native";
3
- import { styles } from "./styles";
2
+ import { Dimensions, View } from "react-native";
4
3
  import Rectangle from "../../assets/svg/rectangle.svg";
4
+ import { styles } from "./styles";
5
5
 
6
6
  export enum Finger {
7
7
  LEFT_THUMB = "LT",
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { TouchableOpacity, Text } from "react-native";
2
+ import { Text, TouchableOpacity } from "react-native";
3
3
  import { styles } from "./styles";
4
4
 
5
5
  type Props = {
@@ -1,4 +1,4 @@
1
- import { StyleSheet, Platform } from "react-native";
1
+ import { Platform, StyleSheet } from "react-native";
2
2
 
3
3
  export const styles = StyleSheet.create({
4
4
  container: {
@@ -1,9 +1,9 @@
1
1
  import React from "react";
2
- import { Text, TouchableOpacity, SafeAreaView } from "react-native";
2
+ import { SafeAreaView, Text, TouchableOpacity } from "react-native";
3
3
  import { useTheme } from "../../theme/theme";
4
4
  import { HACard } from "./HACard/HACard";
5
- import { styles } from "./style";
6
5
  import data from "./data";
6
+ import { styles } from "./style";
7
7
 
8
8
  type HACaptureInstructionsType = {
9
9
  onPress: () => void;
@@ -24,7 +24,7 @@ const HACaptureInstructions = ({ onPress, operation }: HACaptureInstructionsType
24
24
  <SafeAreaView style={containerStyle}>
25
25
  <Text style={titleStyle}>{textTitle}</Text>
26
26
  {data.map((item, index) => (
27
- <HACard item={item} key={index} />
27
+ <HACard item={item} key={index} index={index} operation={operation} />
28
28
  ))}
29
29
  <TouchableOpacity style={buttonStyle} onPress={onPress}>
30
30
  <Text style={styles.buttonText}>{textButton}</Text>
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { View, Text } from "react-native";
2
+ import { Text, View } from "react-native";
3
3
  import { useTheme } from "../../../theme/theme";
4
4
  import { styles } from "./styles";
5
5
 
@@ -9,9 +9,11 @@ type CardType = {
9
9
  text: string;
10
10
  ImageComponent?: React.FC<React.SVGProps<SVGSVGElement>>;
11
11
  };
12
+ operation: "login" | "register";
13
+ index: number;
12
14
  };
13
15
 
14
- export const HACard = ({ item }: CardType) => {
16
+ export const HACard = ({ item, index, operation }: CardType) => {
15
17
  const { gray, text } = useTheme();
16
18
 
17
19
  const subContainerStyle = { ...styles.subContainer, backgroundColor: gray };
@@ -25,7 +27,14 @@ export const HACard = ({ item }: CardType) => {
25
27
  {item.ImageComponent && <item.ImageComponent width={65} height={98} />}
26
28
  <View style={styles.containerTexts}>
27
29
  <Text style={subTitleStyle}>{item.title}</Text>
28
- <Text style={textStyle}>{item.text}</Text>
30
+
31
+ {index === 2 && operation === "login" ? (
32
+ <Text style={textStyle}>
33
+ Com o dedo posicionado, pressione o botão de captura. Aguarde um momento e pronto!"
34
+ </Text>
35
+ ) : (
36
+ <Text style={textStyle}>{item.text}</Text>
37
+ )}
29
38
  </View>
30
39
  </View>
31
40
  </View>
@@ -1,4 +1,4 @@
1
- import { StyleSheet, Dimensions, Platform } from "react-native";
1
+ import { Dimensions, Platform, StyleSheet } from "react-native";
2
2
 
3
3
  const { width } = Dimensions.get("screen");
4
4
 
@@ -1,6 +1,6 @@
1
- import SelfieStick from "../../assets/svg/selfieStick.svg";
2
- import FingerPrint from "../../assets/svg/fingerPrintWithMask.svg";
3
1
  import PhoneWithFinger from "../../assets//svg/exampleCalibration2.svg";
2
+ import FingerPrint from "../../assets/svg/fingerPrintWithMask.svg";
3
+ import SelfieStick from "../../assets/svg/selfieStick.svg";
4
4
 
5
5
  const data: { title: string; ImageComponent: React.FC<React.SVGProps<SVGSVGElement>>; text: string }[] = [
6
6
  {
@@ -1,4 +1,4 @@
1
- import { StyleSheet, Platform } from "react-native";
1
+ import { Platform, StyleSheet } from "react-native";
2
2
 
3
3
  export const styles = StyleSheet.create({
4
4
  container: {
@@ -1,5 +1,5 @@
1
1
  import React, { useRef, useState } from "react";
2
- import { ViewToken, Dimensions, FlatList } from "react-native";
2
+ import { Dimensions, FlatList, ViewToken } from "react-native";
3
3
  import Animated, { useAnimatedScrollHandler, useSharedValue } from "react-native-reanimated";
4
4
  import { HACarouselItem } from "./HACarouselItem/HACarouselItem";
5
5
  import { dataBiometrics, dataLiveness } from "./data";
@@ -1,5 +1,5 @@
1
1
  import React, { useEffect } from "react";
2
- import { View, Text, TouchableOpacity } from "react-native";
2
+ import { Text, TouchableOpacity, View } from "react-native";
3
3
  import Animated, {
4
4
  Easing,
5
5
  SharedValue,
@@ -10,12 +10,12 @@ import Animated, {
10
10
  withTiming
11
11
  } from "react-native-reanimated";
12
12
  import { RFValue } from "react-native-responsive-fontsize";
13
+ import Hand from "../../../assets/svg/hand.svg";
14
+ import Phone from "../../../assets/svg/phone.svg";
13
15
  import { useTheme } from "../../../theme/theme";
16
+ import Icon from "../../icon/icon";
14
17
  import { HAPagination } from "../HAPagination/HAPagination";
15
- import Phone from "../../../assets/svg/phone.svg";
16
- import Hand from "../../../assets/svg/hand.svg";
17
18
  import { styles } from "./styles";
18
- import Icon from "../../icon/icon";
19
19
 
20
20
  type HACarouselItemType = {
21
21
  index: number;
@@ -1,6 +1,4 @@
1
- import { Dimensions } from "react-native";
2
- import { StyleSheet } from "react-native";
3
-
1
+ import { Dimensions, StyleSheet } from "react-native";
4
2
  const { width } = Dimensions.get("window");
5
3
 
6
4
  export const styles = StyleSheet.create({
@@ -3,7 +3,6 @@ import { StyleSheet } from "react-native";
3
3
  export const styles = StyleSheet.create({
4
4
  container: {
5
5
  flexDirection: "row",
6
- // height: 60,
7
6
  marginTop: 50,
8
7
  justifyContent: "center",
9
8
  alignItems: "center"
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
- import RecordButton from "../../assets/svg/recordButton.svg";
3
2
  import { TouchableOpacity } from "react-native";
3
+ import RecordButton from "../../assets/svg/recordButton.svg";
4
4
 
5
5
  type HARecordButtonType = {
6
6
  onPress: () => void;
@@ -1,10 +1,5 @@
1
1
  import React, { useEffect } from "react";
2
- import { SafeAreaView, View, Text, TouchableOpacity } from "react-native";
3
- import { useTheme } from "../../theme/theme";
4
- import { data } from "./data";
5
- import { styles } from "./styles";
6
- import Phone from "../../assets/svg/phone.svg";
7
- import Hand from "../../assets/svg/hand.svg";
2
+ import { SafeAreaView, Text, TouchableOpacity, View } from "react-native";
8
3
  import Animated, {
9
4
  Easing,
10
5
  useAnimatedStyle,
@@ -13,6 +8,11 @@ import Animated, {
13
8
  withSequence,
14
9
  withTiming
15
10
  } from "react-native-reanimated";
11
+ import Hand from "../../assets/svg/hand.svg";
12
+ import Phone from "../../assets/svg/phone.svg";
13
+ import { useTheme } from "../../theme/theme";
14
+ import { data } from "./data";
15
+ import { styles } from "./styles";
16
16
 
17
17
  type HARecordInstructionsType = {
18
18
  onPress: () => void;
@@ -1,4 +1,4 @@
1
- import { StyleSheet, Platform } from "react-native";
1
+ import { Platform, StyleSheet } from "react-native";
2
2
 
3
3
  export const styles = StyleSheet.create({
4
4
  container: {
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { View, Modal, Text, StyleSheet, TouchableOpacity } from "react-native";
2
+ import { Modal, StyleSheet, Text, TouchableOpacity, View } from "react-native";
3
3
 
4
4
  interface ToastProps {
5
5
  isVisible: boolean;
@@ -1,33 +1,33 @@
1
- import DeviceNotFound from "./deviceNotFound/deviceNotFound";
2
- import HAModalMessage from "./HAModalMessage/HAModalMessage";
3
- import RecordButton from "./recordButton/recordButton";
4
- import CaptureButton from "./CaptureButton";
5
1
  import CameraConfigInfo from "./CameraConfigInfo";
2
+ import CaptureButton from "./CaptureButton";
6
3
  import Gabarito from "./Gabarito/gabarito";
7
- import HAText from "./Typograph/typograph";
8
- import Icon from "./icon/icon";
9
- import HACarouselCalibration from "./HACarouselCalibration/HACarouselCalibration";
4
+ import HAButton from "./HAButton/HAButton";
5
+ import HACaptureButton from "./HACaptureButton/HACaptureButton";
10
6
  import HACaptureInstructions from "./HACaptureInstructions/HACaptureInstructions";
11
- import HARecordInstructions from "./HARecordInstructions/HARecordInstructions";
7
+ import HACarouselCalibration from "./HACarouselCalibration/HACarouselCalibration";
8
+ import HAModalMessage from "./HAModalMessage/HAModalMessage";
12
9
  import HARecordButton from "./HARecordButton/HARecordButton";
13
- import HACaptureButton from "./HACaptureButton/HACaptureButton";
10
+ import HARecordInstructions from "./HARecordInstructions/HARecordInstructions";
14
11
  import HAStepProgress from "./HAStepIndicator/HAStepIndicator";
15
- import HAButton from "./HAButton/HAButton";
12
+ import HAText from "./Typograph/typograph";
13
+ import DeviceNotFound from "./deviceNotFound/deviceNotFound";
14
+ import Icon from "./icon/icon";
15
+ import RecordButton from "./recordButton/recordButton";
16
16
 
17
17
  export {
18
- DeviceNotFound,
19
- HAModalMessage,
20
- RecordButton,
21
- CaptureButton,
22
18
  CameraConfigInfo,
19
+ CaptureButton,
20
+ DeviceNotFound,
23
21
  Gabarito,
24
- HAText,
25
- Icon,
26
- HACarouselCalibration,
22
+ HAButton,
23
+ HACaptureButton,
27
24
  HACaptureInstructions,
28
- HARecordInstructions,
25
+ HACarouselCalibration,
26
+ HAModalMessage,
29
27
  HARecordButton,
30
- HACaptureButton,
28
+ HARecordInstructions,
31
29
  HAStepProgress,
32
- HAButton
30
+ HAText,
31
+ Icon,
32
+ RecordButton
33
33
  };
package/src/index.tsx CHANGED
@@ -1,20 +1,20 @@
1
1
  import {
2
- LifeCertificate,
3
- FingerRegister,
4
2
  FingerAuth,
3
+ FingerRegister,
4
+ LifeCertificate,
5
5
  RegisterOperationPointsBiometrics,
6
6
  RegisterOperationPointsLifeCertificate
7
7
  } from "./screens";
8
8
 
9
- import { HACarouselCalibration, HACaptureInstructions, HARecordInstructions } from "./components";
9
+ import { HACaptureInstructions, HACarouselCalibration, HARecordInstructions } from "./components";
10
10
 
11
11
  export {
12
- LifeCertificate,
13
- FingerRegister,
14
12
  FingerAuth,
15
- RegisterOperationPointsBiometrics,
16
- RegisterOperationPointsLifeCertificate,
17
- HACarouselCalibration,
13
+ FingerRegister,
18
14
  HACaptureInstructions,
19
- HARecordInstructions
15
+ HACarouselCalibration,
16
+ HARecordInstructions,
17
+ LifeCertificate,
18
+ RegisterOperationPointsBiometrics,
19
+ RegisterOperationPointsLifeCertificate
20
20
  };
@@ -1,14 +1,15 @@
1
1
  import React, { useCallback, useEffect, useRef, useState } from "react";
2
- import { View, StyleSheet, Text } from "react-native";
3
- import { Camera, useCameraFormat, Point, useCameraDevice, useCameraPermission } from "react-native-vision-camera";
4
- import Orientation from "react-native-orientation-locker";
2
+ import { StyleSheet, Text, View } from "react-native";
5
3
  import { Gesture, GestureDetector, GestureHandlerRootView } from "react-native-gesture-handler";
4
+ import Orientation from "react-native-orientation-locker";
6
5
  import { runOnJS } from "react-native-reanimated";
6
+ import { Camera, Point, useCameraDevice, useCameraFormat, useCameraPermission } from "react-native-vision-camera";
7
7
 
8
- import { styles } from "./styles";
9
- import { DeviceNotFound, Gabarito, HAModalMessage, HACaptureButton } from "../../components";
10
- import { useIsForeground } from "../../utils";
8
+ import { AppState } from "react-native";
9
+ import { DeviceNotFound, Gabarito, HACaptureButton, HAModalMessage } from "../../components";
11
10
  import { useDispatch, useSelector } from "../../store/modules/fingerAuth";
11
+ import { useIsForeground } from "../../utils";
12
+ import { styles } from "./styles";
12
13
 
13
14
  type Props = {
14
15
  UID: string;
@@ -34,6 +35,18 @@ const FingerAuth = ({ UID, onSuccess, isFocused, mock }: Props) => {
34
35
  };
35
36
  });
36
37
 
38
+ const appState = useRef(AppState.currentState);
39
+
40
+ useEffect(() => {
41
+ const subscription = AppState.addEventListener("change", (nextAppState) => {
42
+ if (appState.current.match(/inactive|background/) && nextAppState === "active") {
43
+ setTorch("on");
44
+ }
45
+ appState.current = nextAppState;
46
+ });
47
+ return () => subscription.remove();
48
+ }, []);
49
+
37
50
  const cameraPermission = useCallback(async () => {
38
51
  if (!hasPermission) {
39
52
  await requestPermission();
@@ -1,11 +1,12 @@
1
+ import { BottomSheetFlatList, BottomSheetModal, BottomSheetModalProvider } from "@gorhom/bottom-sheet";
1
2
  import React, { useCallback, useEffect, useMemo, useRef, useState } from "react";
2
- import { View, Text, StyleSheet, TouchableOpacity } from "react-native";
3
- import { Camera, Point, useCameraDevice, useCameraFormat, useCameraPermission } from "react-native-vision-camera";
4
- import Orientation from "react-native-orientation-locker";
3
+ import { StyleSheet, Text, TouchableOpacity, View } from "react-native";
5
4
  import { Gesture, GestureDetector, GestureHandlerRootView } from "react-native-gesture-handler";
5
+ import Orientation from "react-native-orientation-locker";
6
6
  import { runOnJS } from "react-native-reanimated";
7
- import { BottomSheetModal, BottomSheetModalProvider, BottomSheetFlatList } from "@gorhom/bottom-sheet";
7
+ import { Camera, Point, useCameraDevice, useCameraFormat, useCameraPermission } from "react-native-vision-camera";
8
8
 
9
+ import { AppState } from "react-native";
9
10
  import {
10
11
  DeviceNotFound,
11
12
  Gabarito,
@@ -17,8 +18,8 @@ import {
17
18
  } from "../../components";
18
19
  import { useDispatch, useSelector } from "../../store/modules/fingerRegister";
19
20
  import { useIsForeground } from "../../utils";
20
- import { styles } from "./styles";
21
21
  import data from "./data";
22
+ import { styles } from "./styles";
22
23
 
23
24
  enum Finger {
24
25
  LEFT_THUMB = "LT",
@@ -52,6 +53,7 @@ const MultiFingerRegister = ({ UID, onSuccess, isFocused, mock, registerUser, re
52
53
  const device = useCameraDevice("back");
53
54
  const state = useSelector();
54
55
  const dispatch = useDispatch();
56
+ const appState = useRef(AppState.currentState);
55
57
 
56
58
  const containerCaptureStyled = [styles.containerCapture, { bottom: state.showButtonInfo ? 75 : 20 }];
57
59
 
@@ -70,6 +72,16 @@ const MultiFingerRegister = ({ UID, onSuccess, isFocused, mock, registerUser, re
70
72
 
71
73
  const fingerName = itemsPicker.find((i) => i.value === state.currentFinger)?.label;
72
74
 
75
+ useEffect(() => {
76
+ const subscription = AppState.addEventListener("change", (nextAppState) => {
77
+ if (appState.current.match(/inactive|background/) && nextAppState === "active") {
78
+ setTorch("on");
79
+ }
80
+ appState.current = nextAppState;
81
+ });
82
+ return () => subscription.remove();
83
+ }, []);
84
+
73
85
  useEffect(() => {
74
86
  Orientation.lockToPortrait();
75
87
  return () => {
@@ -1,11 +1,11 @@
1
1
  import React, { useCallback, useEffect, useRef, useState } from "react";
2
- import { View, Text } from "react-native";
2
+ import { AppState, Text, View } from "react-native";
3
3
  import Orientation from "react-native-orientation-locker";
4
4
  import { Camera, VideoFile, useCameraDevice, useCameraFormat, useCameraPermission } from "react-native-vision-camera";
5
- import { useDispatch, useSelector } from "../../store/modules/lifeCertificate";
6
5
  import { DeviceNotFound, HAModalMessage, HARecordButton } from "../../components";
7
- import { styles } from "./styles";
6
+ import { useDispatch, useSelector } from "../../store/modules/lifeCertificate";
8
7
  import { useIsForeground } from "../../utils";
8
+ import { styles } from "./styles";
9
9
 
10
10
  type Props = {
11
11
  UID: string;
@@ -22,6 +22,7 @@ const LifeCertificate = ({ UID, mock }: Props) => {
22
22
  const [intervalState, setIntervalState] = useState<NodeJS.Timeout | null>(null);
23
23
  const [timer, setTimer] = useState(10);
24
24
  const device = useCameraDevice("back");
25
+ const appState = useRef(AppState.currentState);
25
26
 
26
27
  const format = useCameraFormat(device, [
27
28
  {
@@ -43,6 +44,16 @@ const LifeCertificate = ({ UID, mock }: Props) => {
43
44
  dispatch.getConfig("liveness");
44
45
  }, [cameraPermission, dispatch.getConfig]);
45
46
 
47
+ useEffect(() => {
48
+ const subscription = AppState.addEventListener("change", (nextAppState) => {
49
+ if (appState.current.match(/inactive|background/) && nextAppState === "active") {
50
+ setTorch("on");
51
+ }
52
+ appState.current = nextAppState;
53
+ });
54
+ return () => subscription.remove();
55
+ }, []);
56
+
46
57
  useEffect(() => {
47
58
  Orientation.lockToPortrait();
48
59
  }, []);