gbc-kyc-kit 1.9.0 → 1.9.1

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 CHANGED
@@ -103,6 +103,7 @@ If you use this components with TypeScript, you should create a customType.d.ts
103
103
  | authorize | promise | () => Promise() | This Function verify clientId vs TOKEN and return accessToken. |
104
104
  | picBase64 | string | | Is required. It would be used to compare the selfie image with this picture |
105
105
  | countryCodeAllowed | array of string | | Isn't required. If exist this props, the component will validate the client geolocation vs the code country thay is used as country allowed. You can use several countries but remember to use the country code aording to the ISO |
106
+ | successMessage | string | | Isn't required. If exist this props, the component will take this message, else we use the default values for each component |
106
107
 
107
108
  ## Document Reader Component
108
109
 
@@ -130,6 +131,7 @@ const getDataDocument = async (info) => {
130
131
  clientId={clientId}
131
132
  authorize={getAccessToken}
132
133
  inProduction="prd"
134
+ successMessage="Documento agregado con éxito"
133
135
  />;
134
136
  ```
135
137
 
@@ -178,6 +180,7 @@ useEffect(() => {
178
180
  dataLiveness={getDataLiveness}
179
181
  inProduction="prd"
180
182
  faceMatch={base64Image}
183
+ successMessage="Selfie procesada con éxito"
181
184
  />
182
185
  ```
183
186
 
@@ -199,6 +202,8 @@ Props Available:
199
202
  authorize={getAccessToken}
200
203
  inProduction="prd" // Default value is prd, not is required
201
204
  mode="dark" // Default value is light, not is required
205
+ successMessage="Persona no encontrada en lista de sanciones"
206
+ alertMessage="Persona existente en lista de sanciones"
202
207
  />
203
208
  ```
204
209
 
@@ -232,5 +237,6 @@ const picbase64 = " ...This is the base64 image to be compared with the selfie.
232
237
  inProduction="prd"
233
238
  picBase64={picbase64}
234
239
  countryCodeAllowed={["PY"]}
240
+ successMessage="Comparación de rostro procesado exitosamente"
235
241
  />;
236
242
  ```
@@ -16820,9 +16820,6 @@ async function request2({
16820
16820
  }
16821
16821
  let environment = "";
16822
16822
  switch (inProduction) {
16823
- case "prd":
16824
- environment = VITE_ASSET_URL;
16825
- break;
16826
16823
  case "stg":
16827
16824
  environment = VITE_ASSET_URL_STAGING;
16828
16825
  break;