gbc-kyc-kit 3.4.6 → 3.4.8

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
@@ -16,7 +16,7 @@ or
16
16
  Import CSS component with:
17
17
 
18
18
  ```js
19
- import '../node_modules/gbc-kyc-kit/dist/style.css';
19
+ import 'gbc-kyc-kit/dist/styles.css';
20
20
  ```
21
21
 
22
22
  ## Style customization
@@ -74,7 +74,7 @@ async function getAccessToken() {
74
74
 
75
75
  const parseReq = {
76
76
  method: 'POST',
77
- url: 'https://services.globalbridgeconnections.com.py/oauth/access-token',
77
+ url: 'https://gbc-py-core-sandbox-api-products-rtm3lv2joa-uc.a.run.app/api-hub/oauth2/v1/generate_access_token',
78
78
  headers: customHeaders,
79
79
  data: {
80
80
  grant_type: 'client_credentials',
@@ -18536,75 +18536,75 @@ const BlackListController = (clientId, authorize, inProduction, source2, eventId
18536
18536
  copyFunction
18537
18537
  };
18538
18538
  };
18539
- const ocr = "_ocr_qlen3_55";
18540
- const tabpanel = "_tabpanel_qlen3_58";
18541
- const button = "_button_qlen3_119";
18542
- const outlined = "_outlined_qlen3_151";
18543
- const contained = "_contained_qlen3_160";
18544
- const small = "_small_qlen3_168";
18545
- const large = "_large_qlen3_177";
18546
- const sub = "_sub_qlen3_183";
18547
- const ready = "_ready_qlen3_205";
18548
- const front = "_front_qlen3_205";
18549
- const back = "_back_qlen3_98";
18550
- const icon$1 = "_icon_qlen3_334";
18551
- const accordion = "_accordion_qlen3_401";
18552
- const description$1 = "_description_qlen3_405";
18553
- const birth_place_section = "_birth_place_section_qlen3_419";
18554
- const authority = "_authority_qlen3_420";
18555
- const others = "_others_qlen3_421";
18556
- const dark$1 = "_dark_qlen3_434";
18557
- const spin$1 = "_spin_qlen3_1";
18539
+ const ocr = "_ocr_1io0m_55";
18540
+ const tabpanel = "_tabpanel_1io0m_58";
18541
+ const button = "_button_1io0m_119";
18542
+ const outlined = "_outlined_1io0m_151";
18543
+ const contained = "_contained_1io0m_160";
18544
+ const small = "_small_1io0m_168";
18545
+ const large = "_large_1io0m_177";
18546
+ const sub = "_sub_1io0m_183";
18547
+ const ready = "_ready_1io0m_205";
18548
+ const front = "_front_1io0m_205";
18549
+ const back = "_back_1io0m_98";
18550
+ const icon$1 = "_icon_1io0m_334";
18551
+ const accordion = "_accordion_1io0m_401";
18552
+ const description$1 = "_description_1io0m_405";
18553
+ const birth_place_section = "_birth_place_section_1io0m_419";
18554
+ const authority = "_authority_1io0m_420";
18555
+ const others = "_others_1io0m_421";
18556
+ const dark$1 = "_dark_1io0m_434";
18557
+ const spin$1 = "_spin_1io0m_1";
18558
18558
  var styles$a = {
18559
- "kit-gbc": "_kit-gbc_qlen3_2",
18560
- "px-2": "_px-2_qlen3_32",
18561
- "m-0": "_m-0_qlen3_36",
18562
- "my-1": "_my-1_qlen3_39",
18563
- "col-12": "_col-12_qlen3_43",
18564
- "col-6": "_col-6_qlen3_46",
18565
- "without-shadow": "_without-shadow_qlen3_49",
18559
+ "kit-gbc": "_kit-gbc_1io0m_2",
18560
+ "px-2": "_px-2_1io0m_32",
18561
+ "m-0": "_m-0_1io0m_36",
18562
+ "my-1": "_my-1_1io0m_39",
18563
+ "col-12": "_col-12_1io0m_43",
18564
+ "col-6": "_col-6_1io0m_46",
18565
+ "without-shadow": "_without-shadow_1io0m_49",
18566
18566
  ocr,
18567
18567
  tabpanel,
18568
- "first-animation": "_first-animation_qlen3_94",
18569
- "back-button-container": "_back-button-container_qlen3_98",
18570
- "back-button": "_back-button_qlen3_98",
18571
- "button-container": "_button-container_qlen3_119",
18568
+ "first-animation": "_first-animation_1io0m_94",
18569
+ "back-button-container": "_back-button-container_1io0m_98",
18570
+ "back-button": "_back-button_1io0m_98",
18571
+ "button-container": "_button-container_1io0m_119",
18572
18572
  button,
18573
18573
  outlined,
18574
18574
  contained,
18575
18575
  small,
18576
18576
  large,
18577
18577
  sub,
18578
- "header-component": "_header-component_qlen3_192",
18579
- "body-id-doc": "_body-id-doc_qlen3_199",
18578
+ "header-component": "_header-component_1io0m_192",
18579
+ "body-id-doc": "_body-id-doc_1io0m_199",
18580
18580
  ready,
18581
18581
  front,
18582
18582
  back,
18583
- "upload-document": "_upload-document_qlen3_213",
18584
- "pics-container": "_pics-container_qlen3_253",
18585
- "box-image": "_box-image_qlen3_259",
18586
- "without-image": "_without-image_qlen3_319",
18587
- "bg-img-container": "_bg-img-container_qlen3_319",
18583
+ "upload-document": "_upload-document_1io0m_213",
18584
+ "pics-container": "_pics-container_1io0m_253",
18585
+ "box-image": "_box-image_1io0m_259",
18586
+ "without-image": "_without-image_1io0m_319",
18587
+ "bg-img-container": "_bg-img-container_1io0m_319",
18588
18588
  icon: icon$1,
18589
- "detail-component": "_detail-component_qlen3_339",
18590
- "country-select": "_country-select_qlen3_362",
18589
+ "detail-component": "_detail-component_1io0m_339",
18590
+ "country-select": "_country-select_1io0m_362",
18591
18591
  accordion,
18592
18592
  description: description$1,
18593
- "accordion-body": "_accordion-body_qlen3_413",
18594
- "name-section": "_name-section_qlen3_418",
18593
+ "accordion-body": "_accordion-body_1io0m_413",
18594
+ "name-section": "_name-section_1io0m_418",
18595
18595
  birth_place_section,
18596
18596
  authority,
18597
18597
  others,
18598
18598
  dark: dark$1,
18599
- "input-container": "_input-container_qlen3_444",
18600
- "custom-input-container": "_custom-input-container_qlen3_456",
18601
- "liveness-container": "_liveness-container_qlen3_459",
18602
- "processing-container": "_processing-container_qlen3_462",
18603
- "processing-spinner": "_processing-spinner_qlen3_474",
18599
+ "input-container": "_input-container_1io0m_444",
18600
+ "custom-input-container": "_custom-input-container_1io0m_456",
18601
+ "liveness-container": "_liveness-container_1io0m_459",
18602
+ "processing-container": "_processing-container_1io0m_462",
18603
+ "processing-spinner": "_processing-spinner_1io0m_474",
18604
18604
  spin: spin$1,
18605
- "MuiTab-root": "_MuiTab-root_qlen3_489",
18606
- "Mui-selected": "_Mui-selected_qlen3_493",
18607
- "MuiTabs-indicator": "_MuiTabs-indicator_qlen3_501"
18605
+ "MuiTab-root": "_MuiTab-root_1io0m_489",
18606
+ "Mui-selected": "_Mui-selected_1io0m_493",
18607
+ "MuiTabs-indicator": "_MuiTabs-indicator_1io0m_501"
18608
18608
  };
18609
18609
  var jsxRuntime = { exports: {} };
18610
18610
  var reactJsxRuntime_production_min = {};
@@ -38726,7 +38726,15 @@ const DocumentReaderController = (dataDocument, clientId, authorize, eventId, so
38726
38726
  };
38727
38727
  try {
38728
38728
  const res2 = await request2(parseReq);
38729
- const fullData = res2.data.data;
38729
+ const {
38730
+ documents_image,
38731
+ ...rest
38732
+ } = res2.data.data;
38733
+ const fullData = {
38734
+ ...rest,
38735
+ first_image: (documents_image == null ? void 0 : documents_image.first_image) || "",
38736
+ second_image: (documents_image == null ? void 0 : documents_image.second_image) || ""
38737
+ };
38730
38738
  const dataOcrSaved = await saveDataToDB({
38731
38739
  data: {
38732
38740
  ...fullData,
@@ -42661,7 +42669,7 @@ const V2OcrComponent = ({
42661
42669
  });
42662
42670
  };
42663
42671
  const name = "gbc-kyc-kit";
42664
- const version = "3.4.6";
42672
+ const version = "3.4.8";
42665
42673
  const description = "Componentes para el desarrollo de un Onboarding";
42666
42674
  const license = "MIT";
42667
42675
  const author = "Global Bridge Connections";
@@ -42732,7 +42740,7 @@ const dependencies = {
42732
42740
  "comma-separated-values": "^3.6.4",
42733
42741
  eslint: "^8.18.0",
42734
42742
  "eslint-plugin-react": "^7.30.1",
42735
- "gbc-kyc-kit": "^3.4.1",
42743
+ "gbc-kyc-kit": "^3.4.7",
42736
42744
  "image-compressor.js": "^1.1.4",
42737
42745
  "image-js": "^0.37.0",
42738
42746
  "is-empty": "^1.2.0",
@@ -45131,15 +45139,12 @@ function LivenessCheck({
45131
45139
  setIsLoading(true);
45132
45140
  try {
45133
45141
  const token2 = await authorize();
45134
- console.log("token", token2);
45135
45142
  const {
45136
45143
  url
45137
45144
  } = await getDiditSessionUrl(workflowId, inProduction, token2);
45138
45145
  setSessionUrl(url);
45139
45146
  setStarted(true);
45140
- console.log("url", url);
45141
45147
  } catch (e2) {
45142
- console.log(e2);
45143
45148
  Q.error("Error al iniciar la verificaci\xF3n");
45144
45149
  } finally {
45145
45150
  setIsLoading(false);