@taxbit/react-sdk 1.2.0-beta.0 → 1.2.0-beta.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.
package/README.md CHANGED
@@ -322,6 +322,10 @@ type QuestionnaireType = 'DPS' | 'W-FORM' | 'SELF-CERT';
322
322
 
323
323
  ## Changelog
324
324
 
325
+ ### Version 1.2.0-beta.2
326
+
327
+ 1. React 17 issue fixed.
328
+
325
329
  ### Version 1.2.0-beta.0
326
330
 
327
331
  1. Self-Certification support
@@ -3,4 +3,4 @@ import { default as React } from 'react';
3
3
 
4
4
  export declare const AccountHolderForeignClassificationSummary: ({ classification, }: {
5
5
  classification: ForeignAccountHolderAccountType;
6
- }) => React.JSX.Element | undefined;
6
+ }) => React.JSX.Element | null;
@@ -3,4 +3,4 @@ import { default as React } from 'react';
3
3
 
4
4
  export declare const AccountHolderSelfCertificationClassificationSummary: ({ classification, }: {
5
5
  classification: SelfCertificationAccountType;
6
- }) => React.JSX.Element | undefined;
6
+ }) => React.JSX.Element | null;
@@ -3,4 +3,4 @@ import { default as React } from 'react';
3
3
 
4
4
  export declare const AccountHolderUsClassificationSummary: ({ classification, }: {
5
5
  classification: UsAccountHolderAccountType;
6
- }) => React.JSX.Element | undefined;
6
+ }) => React.JSX.Element | null;
@@ -1,3 +1,3 @@
1
1
  import { default as React } from 'react';
2
2
 
3
- export declare const RegardedOwnerClassificationSummary: () => React.JSX.Element | undefined;
3
+ export declare const RegardedOwnerClassificationSummary: () => React.JSX.Element | null;
@@ -3,4 +3,4 @@ import { default as React } from 'react';
3
3
 
4
4
  export declare const RegardedOwnerForeignClassificationSummary: ({ classification, }: {
5
5
  classification: ForeignRegardedOwnerAccountType;
6
- }) => React.JSX.Element | undefined;
6
+ }) => React.JSX.Element | null;
@@ -3,4 +3,4 @@ import { default as React } from 'react';
3
3
 
4
4
  export declare const RegardedOwnerUsClassificationSummary: ({ classification, }: {
5
5
  classification: UsRegardedOwnerAccountType;
6
- }) => React.JSX.Element | undefined;
6
+ }) => React.JSX.Element | null;
@@ -3732,7 +3732,7 @@ const oe = (e) => e === void 0 || e === "" || e === null, _ = (e) => !oe(e), V =
3732
3732
  oi(n)
3733
3733
  ]
3734
3734
  )
3735
- ), Ps = "1.2.0-beta.0", di = (e) => e === "yes", $ = (e) => e === void 0 ? void 0 : e === "yes", Ss = (e) => {
3735
+ ), Ps = "1.2.0-beta.2", di = (e) => e === "yes", $ = (e) => e === void 0 ? void 0 : e === "yes", Ss = (e) => {
3736
3736
  const i = {
3737
3737
  city: e.accountHolderAddressCity,
3738
3738
  country: e.accountHolderAddressCountry,
@@ -14015,14 +14015,13 @@ const H = ({ name: e }) => {
14015
14015
  }
14016
14016
  );
14017
14017
  }
14018
- if (e)
14019
- return /* @__PURE__ */ t(
14020
- f,
14021
- {
14022
- name: "accountHolderForeignAccountType",
14023
- value: n(e)
14024
- }
14025
- );
14018
+ return e ? /* @__PURE__ */ t(
14019
+ f,
14020
+ {
14021
+ name: "accountHolderForeignAccountType",
14022
+ value: n(e)
14023
+ }
14024
+ ) : null;
14026
14025
  }, kc = ({
14027
14026
  classification: e
14028
14027
  }) => {
@@ -14077,6 +14076,7 @@ const H = ({ name: e }) => {
14077
14076
  }
14078
14077
  );
14079
14078
  }
14079
+ return null;
14080
14080
  }, Ac = ({
14081
14081
  classification: e
14082
14082
  }) => {
@@ -14149,14 +14149,13 @@ const H = ({ name: e }) => {
14149
14149
  }
14150
14150
  );
14151
14151
  }
14152
- if (e)
14153
- return /* @__PURE__ */ t(
14154
- f,
14155
- {
14156
- name: "accountHolderUsAccountType",
14157
- value: n(e)
14158
- }
14159
- );
14152
+ return e ? /* @__PURE__ */ t(
14153
+ f,
14154
+ {
14155
+ name: "accountHolderUsAccountType",
14156
+ value: n(e)
14157
+ }
14158
+ ) : null;
14160
14159
  }, bc = () => {
14161
14160
  const { fields: e, getLocalOption: i } = b(), { goTo: n } = B(), a = e.accountHolderUsAccountType, o = e.accountHolderForeignAccountType, r = e.accountHolderSelfCertificationAccountType;
14162
14161
  return a ? /* @__PURE__ */ t(
@@ -14433,14 +14432,13 @@ const H = ({ name: e }) => {
14433
14432
  }
14434
14433
  );
14435
14434
  }
14436
- if (e)
14437
- return /* @__PURE__ */ t(
14438
- f,
14439
- {
14440
- name: "regardedOwnerForeignAccountType",
14441
- value: n(e)
14442
- }
14443
- );
14435
+ return e ? /* @__PURE__ */ t(
14436
+ f,
14437
+ {
14438
+ name: "regardedOwnerForeignAccountType",
14439
+ value: n(e)
14440
+ }
14441
+ ) : null;
14444
14442
  }, jc = ({
14445
14443
  classification: e
14446
14444
  }) => {
@@ -14469,46 +14467,42 @@ const H = ({ name: e }) => {
14469
14467
  }
14470
14468
  );
14471
14469
  }
14472
- if (e)
14473
- return /* @__PURE__ */ t(
14474
- f,
14475
- {
14476
- name: "regardedOwnerUsAccountType",
14477
- value: n(e)
14478
- }
14479
- );
14470
+ return e ? /* @__PURE__ */ t(
14471
+ f,
14472
+ {
14473
+ name: "regardedOwnerUsAccountType",
14474
+ value: n(e)
14475
+ }
14476
+ ) : null;
14480
14477
  }, Lc = () => {
14481
14478
  const { fields: e } = b(), { goTo: i } = B(), n = e.regardedOwnerUsAccountType, a = e.regardedOwnerForeignAccountType;
14482
- if (n)
14483
- return /* @__PURE__ */ t(
14484
- h,
14485
- {
14486
- label: !0,
14487
- name: "regardedOwnerUsAccountType",
14488
- onEdit: () => i("AccountHolderClassification"),
14489
- children: /* @__PURE__ */ t(
14490
- jc,
14491
- {
14492
- classification: n
14493
- }
14494
- )
14495
- }
14496
- );
14497
- if (a)
14498
- return /* @__PURE__ */ t(
14499
- h,
14500
- {
14501
- label: !0,
14502
- name: "regardedOwnerForeignAccountType",
14503
- onEdit: () => i("AccountHolderClassification"),
14504
- children: /* @__PURE__ */ t(
14505
- Sc,
14506
- {
14507
- classification: a
14508
- }
14509
- )
14510
- }
14511
- );
14479
+ return n ? /* @__PURE__ */ t(
14480
+ h,
14481
+ {
14482
+ label: !0,
14483
+ name: "regardedOwnerUsAccountType",
14484
+ onEdit: () => i("AccountHolderClassification"),
14485
+ children: /* @__PURE__ */ t(
14486
+ jc,
14487
+ {
14488
+ classification: n
14489
+ }
14490
+ )
14491
+ }
14492
+ ) : a ? /* @__PURE__ */ t(
14493
+ h,
14494
+ {
14495
+ label: !0,
14496
+ name: "regardedOwnerForeignAccountType",
14497
+ onEdit: () => i("AccountHolderClassification"),
14498
+ children: /* @__PURE__ */ t(
14499
+ Sc,
14500
+ {
14501
+ classification: a
14502
+ }
14503
+ )
14504
+ }
14505
+ ) : null;
14512
14506
  }, zc = () => {
14513
14507
  const { data: e, goTo: i, isBuildingW8: n, treatyClaims: a } = B(), {
14514
14508
  getLocalAddressTitle: o,