@taxbit/react-sdk 1.0.0-beta.7 → 1.1.0-beta.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.
Files changed (232) hide show
  1. package/README.md +19 -3
  2. package/dist/index.d.ts +1 -1
  3. package/dist/src/App.d.ts +2 -1
  4. package/dist/src/components/Address/Address.d.ts +2 -1
  5. package/dist/src/components/Address/index.d.ts +1 -1
  6. package/dist/src/components/ErrorAlert/ErrorAlert.d.ts +3 -2
  7. package/dist/src/components/ErrorBoundary/ErrorBoundary.d.ts +2 -1
  8. package/dist/src/components/ErrorMessage/ErrorMessage.d.ts +2 -1
  9. package/dist/src/components/ErrorMessage/index.d.ts +1 -1
  10. package/dist/src/components/Form/Form.d.ts +2 -1
  11. package/dist/src/components/InputStatus/InputStatus.d.ts +3 -2
  12. package/dist/src/components/InputStatus/index.d.ts +1 -1
  13. package/dist/src/components/JsxFromString/JsxFromString.d.ts +5 -0
  14. package/dist/src/components/JsxFromString/index.d.ts +1 -0
  15. package/dist/src/components/ProgressStatus/ProgressStatus.d.ts +3 -2
  16. package/dist/src/components/Row/Row.d.ts +2 -1
  17. package/dist/src/components/Row/index.d.ts +1 -1
  18. package/dist/src/components/Section/Section.d.ts +2 -1
  19. package/dist/src/components/Section/index.d.ts +1 -1
  20. package/dist/src/components/index.d.ts +1 -0
  21. package/dist/src/contexts/QuestionnaireStep/QuestionnaireStepProvider.d.ts +7 -0
  22. package/dist/src/contexts/{QuestionnaireUI → QuestionnaireStep}/getLocal.d.ts +1 -0
  23. package/dist/src/contexts/QuestionnaireStep/index.d.ts +5 -0
  24. package/dist/src/contexts/{QuestionnaireUI → QuestionnaireStep}/shiftResidence.d.ts +2 -1
  25. package/dist/src/contexts/{QuestionnaireUI/useQuestionnaireUI.d.ts → QuestionnaireStep/useQuestionnaireStep.d.ts} +11 -16
  26. package/dist/src/contexts/QuestionnaireStep/useQuestionnaireStepContext.d.ts +63 -0
  27. package/dist/src/contexts/TaxDocumentation/TaxbitQuestionnaireProvider.d.ts +4 -2
  28. package/dist/src/contexts/TaxDocumentation/useTaxDocumentation.d.ts +8 -9
  29. package/dist/src/contexts/TaxDocumentation/useTaxDocumentationContext.d.ts +29 -34
  30. package/dist/src/contexts/createCtx.d.ts +1 -2
  31. package/dist/src/contexts/index.d.ts +1 -1
  32. package/dist/src/entry/TaxbitQuestionnaire/TaxbitQuestionnaire.d.ts +5 -3
  33. package/dist/src/hooks/useHandleError.d.ts +1 -0
  34. package/dist/src/hooks/useTaxbit/__tests__/clientTaxDocumentation.d.ts +1 -0
  35. package/dist/src/hooks/useTaxbit/__tests__/serverTaxDocumentation.d.ts +1 -0
  36. package/dist/src/hooks/useTaxbit/types/comprehensive.d.ts +1 -0
  37. package/dist/src/hooks/useTaxbit/types/w8.d.ts +1 -0
  38. package/dist/src/hooks/useTaxbit/types/w9.d.ts +1 -0
  39. package/dist/src/hooks/useTaxbit/useTaxbit.d.ts +3 -2
  40. package/dist/src/hooks/useTaxbit/useTaxbitStatus.d.ts +3 -2
  41. package/dist/src/i18n/__tests__/JsxFromString.test.d.ts +1 -0
  42. package/dist/src/i18n/locales/bg.d.ts +1 -1
  43. package/dist/src/i18n/locales/cs.d.ts +1 -1
  44. package/dist/src/i18n/locales/da.d.ts +1 -1
  45. package/dist/src/i18n/locales/de-at.d.ts +1 -1
  46. package/dist/src/i18n/locales/de.d.ts +2 -1
  47. package/dist/src/i18n/locales/el-cy.d.ts +2 -1
  48. package/dist/src/i18n/locales/el.d.ts +2 -1
  49. package/dist/src/i18n/locales/en-gb.d.ts +1 -0
  50. package/dist/src/i18n/locales/en-nz.d.ts +1 -0
  51. package/dist/src/i18n/locales/en-us.d.ts +1 -0
  52. package/dist/src/i18n/locales/en.d.ts +1 -0
  53. package/dist/src/i18n/locales/es.d.ts +1 -0
  54. package/dist/src/i18n/locales/et.d.ts +1 -1
  55. package/dist/src/i18n/locales/fi.d.ts +1 -1
  56. package/dist/src/i18n/locales/fr-ca.d.ts +1 -0
  57. package/dist/src/i18n/locales/fr-lu.d.ts +1 -1
  58. package/dist/src/i18n/locales/fr.d.ts +1 -0
  59. package/dist/src/i18n/locales/ga.d.ts +1 -0
  60. package/dist/src/i18n/locales/hr.d.ts +1 -1
  61. package/dist/src/i18n/locales/hu.d.ts +1 -1
  62. package/dist/src/i18n/locales/it.d.ts +1 -1
  63. package/dist/src/i18n/locales/lt.d.ts +2 -1
  64. package/dist/src/i18n/locales/lv.d.ts +1 -1
  65. package/dist/src/i18n/locales/mergePropertyFiles.d.ts +1 -0
  66. package/dist/src/i18n/locales/mt.d.ts +1 -1
  67. package/dist/src/i18n/locales/nl-be.d.ts +2 -1
  68. package/dist/src/i18n/locales/nl.d.ts +1 -1
  69. package/dist/src/i18n/locales/no.d.ts +1 -1
  70. package/dist/src/i18n/locales/pl.d.ts +2 -1
  71. package/dist/src/i18n/locales/pt.d.ts +1 -1
  72. package/dist/src/i18n/locales/ro.d.ts +1 -1
  73. package/dist/src/i18n/locales/sk.d.ts +1 -1
  74. package/dist/src/i18n/locales/sl.d.ts +1 -1
  75. package/dist/src/i18n/locales/sv.d.ts +1 -1
  76. package/dist/src/i18n/locales/translation-missing.d.ts +1 -0
  77. package/dist/src/i18n/localizationFileMap.d.ts +3 -2
  78. package/dist/src/i18n/types/LocalizationKey.d.ts +10 -6
  79. package/dist/src/i18n/types/PropertyFile.d.ts +1 -0
  80. package/dist/src/i18n/types/index.d.ts +1 -1
  81. package/dist/src/i18n/utils/getText.d.ts +1 -0
  82. package/dist/src/i18n/utils/index.d.ts +1 -1
  83. package/dist/src/index.d.ts +9 -0
  84. package/dist/src/lookups/countryOptions.d.ts +4 -0
  85. package/dist/src/lookups/dayOptions.d.ts +1 -1
  86. package/dist/src/lookups/fatcaCodeOptions.d.ts +1 -1
  87. package/dist/src/lookups/foreignAccountHolderAccountTypeOptions.d.ts +1 -1
  88. package/dist/src/lookups/foreignOtherClassificationOptions.d.ts +1 -1
  89. package/dist/src/lookups/foreignRegardedOwnerAccountTypeOptions.d.ts +1 -1
  90. package/dist/src/lookups/foreignTrustClassificationOptions.d.ts +1 -1
  91. package/dist/src/lookups/index.d.ts +1 -0
  92. package/dist/src/lookups/localeOptions.d.ts +1 -0
  93. package/dist/src/lookups/payeeCodeOptions.d.ts +2 -2
  94. package/dist/src/lookups/toOptions.d.ts +1 -1
  95. package/dist/src/lookups/treatyCountries.json.d.ts +2195 -0
  96. package/dist/src/lookups/typeOfIncomeOptions.d.ts +8 -0
  97. package/dist/src/lookups/usAccountHolderAccountTypeOptions.d.ts +1 -1
  98. package/dist/src/lookups/usLlcAccountTypeOptions.d.ts +1 -1
  99. package/dist/src/lookups/usRegardedOwnerAccountTypeOptions.d.ts +1 -1
  100. package/dist/src/services/api.d.ts +6 -5
  101. package/dist/src/test/Wrapper.d.ts +2 -1
  102. package/dist/src/test/getWrapper.d.ts +2 -1
  103. package/dist/src/test/utils/helpers.d.ts +2 -0
  104. package/dist/src/types/InputStep.d.ts +2 -2
  105. package/dist/src/types/Progress.d.ts +1 -0
  106. package/dist/src/types/StepId.d.ts +1 -1
  107. package/dist/src/types/TaxDocumentation.d.ts +29 -4
  108. package/dist/src/ui/ActionButton/ActionButton.d.ts +2 -1
  109. package/dist/src/ui/Actions/Actions.d.ts +3 -3
  110. package/dist/src/ui/Actions/index.d.ts +1 -1
  111. package/dist/src/ui/CheckBox/CheckBox.d.ts +4 -2
  112. package/dist/src/ui/CheckBox/index.d.ts +1 -1
  113. package/dist/src/ui/DateOfBirthInput/DateOfBirthInput.d.ts +2 -1
  114. package/dist/src/ui/DateOfBirthInput/useDateOfBirthInput.d.ts +3 -2
  115. package/dist/src/ui/FormattedInput/FormattedInput.d.ts +2 -1
  116. package/dist/src/ui/HideShowButton/HideShowButton.d.ts +2 -1
  117. package/dist/src/ui/HideShowButton/index.d.ts +1 -1
  118. package/dist/src/ui/InputValue/InputValue.d.ts +2 -1
  119. package/dist/src/ui/MaskedContent/MaskedContent.d.ts +2 -1
  120. package/dist/src/ui/MaskedContent/index.d.ts +1 -1
  121. package/dist/src/ui/PasswordInput/PasswordInput.d.ts +2 -1
  122. package/dist/src/ui/RadioButtons/RadioButtons.d.ts +8 -5
  123. package/dist/src/ui/RadioButtons/__tests__/RadioButtons.test.d.ts +1 -0
  124. package/dist/src/ui/Select/Select.d.ts +2 -1
  125. package/dist/src/ui/ShowHideInput/ShowHideInput.d.ts +2 -1
  126. package/dist/src/ui/TextArea/TextArea.d.ts +12 -0
  127. package/dist/src/ui/TextArea/__tests__/TextInput.test.d.ts +1 -0
  128. package/dist/src/ui/TextArea/index.d.ts +1 -0
  129. package/dist/src/ui/TextInput/TextInput.d.ts +2 -1
  130. package/dist/src/ui/TextInput/__tests__/TextInput.test.d.ts +1 -0
  131. package/dist/src/ui/ToggleButton/ToggleButton.d.ts +2 -1
  132. package/dist/src/ui/ToggleButton/index.d.ts +1 -1
  133. package/dist/src/ui/WithholdingInput/WithholdingInput.d.ts +9 -0
  134. package/dist/src/ui/WithholdingInput/index.d.ts +1 -0
  135. package/dist/src/ui/index.d.ts +2 -0
  136. package/dist/src/utils/camelCaseKeys.d.ts +3 -1
  137. package/dist/src/utils/getFieldsState.d.ts +3 -0
  138. package/dist/src/utils/getFormStatus.d.ts +1 -0
  139. package/dist/src/utils/getLanguage.d.ts +1 -0
  140. package/dist/src/utils/getPromptKeyMap.d.ts +2 -111
  141. package/dist/src/utils/getTreatyClaimDetails.d.ts +2 -0
  142. package/dist/src/utils/getTreatyCountry.d.ts +38 -0
  143. package/dist/src/utils/index.d.ts +2 -0
  144. package/dist/src/utils/isBlank.d.ts +2 -1
  145. package/dist/src/utils/mergeClientTaxDocumentationData.d.ts +1 -0
  146. package/dist/src/utils/transformForClient/convertYesNoToBoolean.d.ts +1 -0
  147. package/dist/src/utils/transformForClient/convertYesNoToBooleanOrUndefined.d.ts +1 -0
  148. package/dist/src/utils/transformForClient/transformForClient.d.ts +1 -0
  149. package/dist/src/utils/transformForClient/transformForClientAccountHolder.d.ts +4 -0
  150. package/dist/src/utils/transformForClient/transformForClientAddress.d.ts +25 -24
  151. package/dist/src/utils/transformForClient/transformForClientRegardedOwner.d.ts +3 -1
  152. package/dist/src/utils/transformForClient/transformForClientTaxResidenceFields.d.ts +4 -3
  153. package/dist/src/utils/transformInbound/getForeignAccountType.d.ts +2 -1
  154. package/dist/src/utils/transformInbound/getForeignOtherClassification.d.ts +2 -1
  155. package/dist/src/utils/transformInbound/getForeignTrustClassification.d.ts +2 -1
  156. package/dist/src/utils/transformInbound/getLLCClassification.d.ts +2 -1
  157. package/dist/src/utils/transformInbound/getUsAccountType.d.ts +2 -1
  158. package/dist/src/utils/transformInbound/transformInbound.d.ts +2 -1
  159. package/dist/src/validations/getInvalidFields.d.ts +1 -0
  160. package/dist/src/validations/getRequiredFields.d.ts +2 -1
  161. package/dist/src/validations/getSteps.d.ts +3 -0
  162. package/dist/src/validations/getSupportedFields.d.ts +3 -2
  163. package/dist/src/validations/getVisibleFields.d.ts +3 -2
  164. package/dist/src/validations/index.d.ts +1 -0
  165. package/dist/src/validations/invalidFieldRules.d.ts +1 -0
  166. package/dist/src/widgets/TaxbitQuestionnairePersist/TaxbitQuestionnairePersist.d.ts +5 -3
  167. package/dist/src/widgets/TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.complete.test.d.ts +1 -0
  168. package/dist/src/widgets/TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.error.test.d.ts +1 -0
  169. package/dist/src/widgets/TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.loaded.test.d.ts +1 -0
  170. package/dist/src/widgets/TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.loading.test.d.ts +1 -0
  171. package/dist/src/widgets/TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.missingBearerToken.test.d.ts +1 -0
  172. package/dist/src/widgets/TaxbitQuestionnairePersist/useTaxbitPersist.d.ts +1 -0
  173. package/dist/src/wizard/AddressInput/AddressInput.d.ts +2 -1
  174. package/dist/src/wizard/AddressInput/index.d.ts +1 -1
  175. package/dist/src/wizard/LanguageSelector/LanguageSelector.d.ts +3 -2
  176. package/dist/src/wizard/LanguageSelector/index.d.ts +1 -1
  177. package/dist/src/wizard/ResidenceInput/ResidenceInput.d.ts +2 -1
  178. package/dist/src/wizard/ResidenceInput/index.d.ts +1 -1
  179. package/dist/src/wizard/RowInput/AddressRow/AddressRow.d.ts +2 -1
  180. package/dist/src/wizard/RowInput/CheckBoxRow/CheckBoxRow.d.ts +4 -2
  181. package/dist/src/wizard/RowInput/CheckBoxRow/index.d.ts +1 -1
  182. package/dist/src/wizard/RowInput/DateOfBirthRow/DateOfBirthRow.d.ts +4 -3
  183. package/dist/src/wizard/RowInput/ErrorRow/ErrorRow.d.ts +4 -3
  184. package/dist/src/wizard/RowInput/HiddenInputRow/HiddenInputRow.d.ts +6 -0
  185. package/dist/src/wizard/RowInput/HiddenInputRow/index.d.ts +1 -0
  186. package/dist/src/wizard/RowInput/RadioButtonRow/RadioButtonRow.d.ts +4 -2
  187. package/dist/src/wizard/RowInput/RadioButtonRow/index.d.ts +1 -1
  188. package/dist/src/wizard/RowInput/SelectRow/SelectRow.d.ts +2 -1
  189. package/dist/src/wizard/RowInput/SelectRow/index.d.ts +1 -1
  190. package/dist/src/wizard/RowInput/ShowHideInputRow/ShowHideInputRow.d.ts +2 -1
  191. package/dist/src/wizard/RowInput/TextAreaRow/TextAreaRow.d.ts +10 -0
  192. package/dist/src/wizard/RowInput/TextAreaRow/index.d.ts +1 -0
  193. package/dist/src/wizard/RowInput/TextInputRow/TextInputRow.d.ts +2 -1
  194. package/dist/src/wizard/RowInput/TextInputRow/index.d.ts +1 -1
  195. package/dist/src/wizard/RowInput/ToggleButtonRow/ToggleButtonRow.d.ts +2 -1
  196. package/dist/src/wizard/RowInput/ToggleButtonRow/index.d.ts +1 -1
  197. package/dist/src/wizard/RowInput/VisibleRow/VisibleRow.d.ts +7 -5
  198. package/dist/src/wizard/RowInput/VisibleRow/index.d.ts +1 -1
  199. package/dist/src/wizard/RowInput/index.d.ts +1 -0
  200. package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderClassification/AccountHolderClassification.d.ts +2 -1
  201. package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderContact/AccountHolderContact.d.ts +2 -1
  202. package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderTax/AccountHolderTax.d.ts +2 -1
  203. package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderTaxClarification/AccountHolderTaxClarification.d.ts +2 -1
  204. package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderTreatyClaims/AccountHolderTreatyClaims.d.ts +3 -0
  205. package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderTreatyClaims/index.d.ts +1 -0
  206. package/dist/src/wizard/TaxbitQuestionnaireUI/AppError/AppError.d.ts +2 -1
  207. package/dist/src/wizard/TaxbitQuestionnaireUI/Exemptions/Exemptions.d.ts +2 -1
  208. package/dist/src/wizard/TaxbitQuestionnaireUI/RegardedOwnerContact/RegardedOwnerContact.d.ts +2 -1
  209. package/dist/src/wizard/TaxbitQuestionnaireUI/RegardedOwnerTax/RegardedOwnerTax.d.ts +2 -1
  210. package/dist/src/wizard/TaxbitQuestionnaireUI/RegardedOwnerTreatyClaims/RegardedOwnerTreatyClaims.d.ts +3 -0
  211. package/dist/src/wizard/TaxbitQuestionnaireUI/RegardedOwnerTreatyClaims/index.d.ts +1 -0
  212. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/Recap.d.ts +2 -1
  213. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/Summary.d.ts +2 -1
  214. package/dist/src/wizard/TaxbitQuestionnaireUI/TaxbitQuestionnaireUI.d.ts +4 -2
  215. package/dist/src/wizard/TaxbitQuestionnaireUI/W8imyInstructions/W8imyInstructions.d.ts +3 -0
  216. package/dist/src/wizard/TaxbitQuestionnaireUI/W8imyInstructions/index.d.ts +1 -0
  217. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitDPSQuestionnaireUI.test.d.ts +1 -0
  218. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.test.d.ts +1 -0
  219. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitWFormQuestionnaireUI.test.d.ts +1 -0
  220. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitWFormQuestionnaireUI.treatyClaims.test.d.ts +1 -0
  221. package/dist/src/wizard/TaxbitQuestionnaireUI/steps.d.ts +3 -0
  222. package/dist/taxbit-react-sdk.js +7979 -5307
  223. package/dist/taxbit-react-sdk.umd.cjs +14 -11
  224. package/package.json +8 -7
  225. package/style/basic.css +26 -10
  226. package/style/inline.css +26 -10
  227. package/style/minimal.css +4 -0
  228. package/dist/src/contexts/QuestionnaireUI/QuestionnaireUIProvider.d.ts +0 -6
  229. package/dist/src/contexts/QuestionnaireUI/index.d.ts +0 -4
  230. package/dist/src/contexts/QuestionnaireUI/useQuestionnaireUIContext.d.ts +0 -74
  231. package/dist/src/entry/index.d.ts +0 -8
  232. package/dist/src/utils/transformForClient/transformForClientAccoutHolder.d.ts +0 -2

There are too many changes on this page to be displayed.


The amount of changes on this page would crash your brower.

You can still verify the content by downloading the package file manually.