@tsocial/tvweb-sdk.platform 5.35.0 → 5.36.0

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.
@@ -7,9 +7,9 @@ declare const AlertErrors: {
7
7
  readonly wrong_orientation: {
8
8
  readonly code: "wrong_orientation";
9
9
  readonly msg: {
10
- readonly en: "You are using landscape mode. Please rotate screen to portrait mode and retry.";
11
- readonly vi: "Bạn đang sử dụng chế độ màn hình xoay ngang. Vui lòng quay màn hình theo chiều dọc và thực hiện lại.";
12
- readonly 'es-mx': "Estás usando el modo horizontal. Gira la pantalla al modo vertical y vuelve a intentarlo.";
10
+ readonly en: "Please do not change the screen orientation while in progress.";
11
+ readonly vi: "Vui lòng không thay đổi hướng xoay màn hình khi đang thực hiện.";
12
+ readonly 'es-mx': "Por favor, no cambies la orientación de la pantalla durante el proceso.";
13
13
  };
14
14
  };
15
15
  readonly no_face: {
@@ -319,9 +319,9 @@ declare const Errors: {
319
319
  readonly wrong_orientation: {
320
320
  readonly code: "wrong_orientation";
321
321
  readonly msg: {
322
- readonly en: "You are using landscape mode. Please rotate screen to portrait mode and retry.";
323
- readonly vi: "Bạn đang sử dụng chế độ màn hình xoay ngang. Vui lòng quay màn hình theo chiều dọc và thực hiện lại.";
324
- readonly 'es-mx': "Estás usando el modo horizontal. Gira la pantalla al modo vertical y vuelve a intentarlo.";
322
+ readonly en: "Please do not change the screen orientation while in progress.";
323
+ readonly vi: "Vui lòng không thay đổi hướng xoay màn hình khi đang thực hiện.";
324
+ readonly 'es-mx': "Por favor, no cambies la orientación de la pantalla durante el proceso.";
325
325
  };
326
326
  };
327
327
  readonly no_face: {
@@ -1154,6 +1154,8 @@ declare const _default: {
1154
1154
  id_detector_error_blurry: string;
1155
1155
  not_frontal_face: string;
1156
1156
  not_allowed_card_types: string;
1157
+ id_detector_invalid_front_card: string;
1158
+ id_detector_invalid_back_card: string;
1157
1159
  warmup_intro: string;
1158
1160
  btn_ok: string;
1159
1161
  btn_use_this_picture: string;
@@ -1339,6 +1341,7 @@ type ReadIDCardResult = {
1339
1341
  error?: any;
1340
1342
  qrScannedResult?: {
1341
1343
  result: string;
1344
+ results: string[];
1342
1345
  validateResult: {
1343
1346
  valid: boolean;
1344
1347
  };
@@ -1566,6 +1569,13 @@ declare class BaseTVWebSDK {
1566
1569
  component: Record<string, any>;
1567
1570
  commonSettings: Record<string, any>;
1568
1571
  constructor(constructorProps: BaseTVWebSDKProps);
1572
+ /**
1573
+ * Resolve a component by name. Checks eager components first (from constructor
1574
+ * `component` / `baseComponent` overrides), then falls back to lazy loaders
1575
+ * defined in `lazyLoaders`. Results from lazy loaders are cached so the
1576
+ * dynamic import only happens once per component.
1577
+ */
1578
+ protected resolveComponent(name: string): Promise<any>;
1569
1579
  /**
1570
1580
  * Check the ability to open the camera of the current device.
1571
1581
  * @deprecated
@@ -1586,11 +1596,11 @@ declare class BaseTVWebSDK {
1586
1596
  * @private
1587
1597
  */
1588
1598
  setupBeforeRender: () => void;
1589
- readIDCardWithApiCall(props: ReadIDCardWithApiCallOptions): void;
1590
- readIDCardUIOnly(props: ReadIDCardOptions): void;
1591
- livenessDetection(props: LivenessDetectionOptions): void;
1592
- ekycFlow(props: any): void;
1593
- faceAuthentication(props: FaceAuthenticationOptions): void;
1599
+ readIDCardWithApiCall(props: ReadIDCardWithApiCallOptions): Promise<void>;
1600
+ readIDCardUIOnly(props: ReadIDCardOptions): Promise<void>;
1601
+ livenessDetection(props: LivenessDetectionOptions): Promise<void>;
1602
+ ekycFlow(props: any): Promise<void>;
1603
+ faceAuthentication(props: FaceAuthenticationOptions): Promise<void>;
1594
1604
  compareFaces({ accessKey, secretKey, apiUrl, image1, image2, onSuccess, onError }: any): void;
1595
1605
  destroyView: () => void;
1596
1606
  closeSDK: () => void;
@@ -1807,6 +1817,7 @@ declare namespace defaultClientSettings {
1807
1817
  let enable_13: boolean;
1808
1818
  export { enable_13 as enable };
1809
1819
  export let enable_validation: boolean;
1820
+ export let enable_scan_background: boolean;
1810
1821
  let limit_time_second_1: number;
1811
1822
  export { limit_time_second_1 as limit_time_second };
1812
1823
  let non_stoppable_1: boolean;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@tsocial/tvweb-sdk.platform",
3
- "version": "5.35.0",
3
+ "version": "5.36.0",
4
4
  "description": "TV Web SDK - The Standalone SDK",
5
5
  "keywords": [],
6
6
  "author": "Nha Hoang <nha.hoang@trustingsocial.com>",
7
7
  "license": "ISC",
8
8
  "main": "build/tvweb-sdk.platform.cjs.min.js",
9
- "module": "build/tvweb-sdk.platform.esm.min.js",
9
+ "module": "build/esm/tvweb-sdk.platform.esm.min.js",
10
10
  "src": "src/index.ts",
11
11
  "types": "build/types/index.d.ts",
12
12
  "publishConfig": {
@@ -19,7 +19,7 @@
19
19
  "exports": {
20
20
  ".": {
21
21
  "types": "./build/types/index.d.ts",
22
- "import": "./build/tvweb-sdk.platform.esm.min.js",
22
+ "import": "./build/esm/tvweb-sdk.platform.esm.min.js",
23
23
  "require": "./build/tvweb-sdk.platform.cjs.min.js"
24
24
  }
25
25
  },
@@ -29,14 +29,14 @@
29
29
  "test": "echo \"Error: run tests from root\" && exit 1"
30
30
  },
31
31
  "devDependencies": {
32
- "@tsocial/tvweb-builder": "5.35.0",
33
- "@tsocial/tvweb-core": "5.35.0",
34
- "@tsocial/tvweb-ui": "5.35.0",
32
+ "@tsocial/tvweb-builder": "5.36.0",
33
+ "@tsocial/tvweb-core": "5.36.0",
34
+ "@tsocial/tvweb-ui": "5.36.0",
35
35
  "invariant": "^2.2.4",
36
36
  "react": "^16.14.0",
37
37
  "react-app-polyfill": "^2.0.0",
38
38
  "react-dom": "^16.14.0",
39
39
  "styled-components": "^6.1.12"
40
40
  },
41
- "gitHead": "bc5525e8d203f4b642a73db392dd6bcaf19011dc"
41
+ "gitHead": "f6afaf3370b5144beb6eff6196824ea2d9180340"
42
42
  }