@taxbit/react-sdk 1.2.0-beta.7 → 2.0.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 (96) hide show
  1. package/README.md +6 -1
  2. package/dist/src/contexts/QuestionnaireStep/useQuestionnaireStep.d.ts +1 -0
  3. package/dist/src/contexts/QuestionnaireStep/useQuestionnaireStepContext.d.ts +2 -0
  4. package/dist/src/contexts/TaxDocumentation/TaxbitQuestionnaireProvider.d.ts +1 -1
  5. package/dist/src/contexts/TaxDocumentation/useTaxDocumentation.d.ts +6 -3
  6. package/dist/src/contexts/TaxDocumentation/useTaxDocumentationContext.d.ts +6 -4
  7. package/dist/src/hooks/useTaxbit/types/w8.d.ts +0 -1
  8. package/dist/src/i18n/locales/bg.d.ts +4 -1
  9. package/dist/src/i18n/locales/cs.d.ts +3 -1
  10. package/dist/src/i18n/locales/da.d.ts +3 -1
  11. package/dist/src/i18n/locales/de-at.d.ts +3 -1
  12. package/dist/src/i18n/locales/de.d.ts +2 -3
  13. package/dist/src/i18n/locales/el-cy.d.ts +4 -3
  14. package/dist/src/i18n/locales/el.d.ts +2 -3
  15. package/dist/src/i18n/locales/en-gb.d.ts +2 -1
  16. package/dist/src/i18n/locales/en-nz.d.ts +2 -1
  17. package/dist/src/i18n/locales/en-us.d.ts +2 -1
  18. package/dist/src/i18n/locales/en.d.ts +2 -1
  19. package/dist/src/i18n/locales/es.d.ts +2 -1
  20. package/dist/src/i18n/locales/et.d.ts +3 -1
  21. package/dist/src/i18n/locales/fi.d.ts +3 -1
  22. package/dist/src/i18n/locales/fr-ca.d.ts +2 -1
  23. package/dist/src/i18n/locales/fr-lu.d.ts +3 -1
  24. package/dist/src/i18n/locales/fr.d.ts +2 -1
  25. package/dist/src/i18n/locales/ga.d.ts +3 -1
  26. package/dist/src/i18n/locales/hr.d.ts +3 -1
  27. package/dist/src/i18n/locales/hu.d.ts +3 -1
  28. package/dist/src/i18n/locales/it.d.ts +3 -1
  29. package/dist/src/i18n/locales/lt.d.ts +3 -2
  30. package/dist/src/i18n/locales/lv.d.ts +3 -1
  31. package/dist/src/i18n/locales/mt.d.ts +3 -1
  32. package/dist/src/i18n/locales/nl-be.d.ts +4 -3
  33. package/dist/src/i18n/locales/nl.d.ts +4 -1
  34. package/dist/src/i18n/locales/no.d.ts +3 -1
  35. package/dist/src/i18n/locales/pl.d.ts +2 -3
  36. package/dist/src/i18n/locales/pt.d.ts +3 -1
  37. package/dist/src/i18n/locales/ro.d.ts +3 -1
  38. package/dist/src/i18n/locales/sk.d.ts +3 -1
  39. package/dist/src/i18n/locales/sl.d.ts +3 -1
  40. package/dist/src/i18n/locales/sv.d.ts +3 -1
  41. package/dist/src/i18n/localizationFileMap.d.ts +2 -2
  42. package/dist/src/i18n/types/LocalizationKey.d.ts +5 -5
  43. package/dist/src/i18n/types/PropertyFile.d.ts +1 -1
  44. package/dist/src/i18n/utils/getText.d.ts +10 -10
  45. package/dist/src/lookups/accountHolderEntityAccountTypeOptions.d.ts +3 -0
  46. package/dist/src/lookups/accountOwnerTypeOptions.d.ts +3 -0
  47. package/dist/src/lookups/index.d.ts +4 -3
  48. package/dist/src/lookups/intermediaryAccountTypeOptions.d.ts +3 -0
  49. package/dist/src/lookups/regardedOwnerEntityAccountTypeOptions.d.ts +3 -0
  50. package/dist/src/test/utils/helpers.d.ts +5 -0
  51. package/dist/src/types/InputStep.d.ts +1 -1
  52. package/dist/src/types/StepId.d.ts +1 -1
  53. package/dist/src/types/TaxDocumentation.d.ts +56 -8
  54. package/dist/src/ui/DateOfBirthInput/__tests__/DateOfBirthInput.test.d.ts +1 -0
  55. package/dist/src/utils/getFieldsState.d.ts +13 -1
  56. package/dist/src/utils/getKeysByValue.d.ts +1 -0
  57. package/dist/src/utils/index.d.ts +0 -2
  58. package/dist/src/utils/transformForClient/transformCertifications.d.ts +22 -0
  59. package/dist/src/utils/transformInbound/getAccountOwnerType.d.ts +3 -0
  60. package/dist/src/utils/transformInbound/getEntityAccountType.d.ts +4 -0
  61. package/dist/src/utils/transformInbound/getIntermediaryAccountType.d.ts +3 -0
  62. package/dist/src/utils/transformInbound/index.d.ts +3 -3
  63. package/dist/src/utils/transformInbound/transformInboundControllingPersons.d.ts +50 -6
  64. package/dist/src/validations/getSteps.d.ts +1 -1
  65. package/dist/src/validations/supportedFields/__tests__/generateStrings.d.ts +3 -6
  66. package/dist/src/validations/utils.d.ts +3 -0
  67. package/dist/src/validations/visibleFields/__tests__/utils.d.ts +3 -0
  68. package/dist/src/widgets/TaxbitQuestionnaire/TaxbitQuestionnaire.d.ts +2 -1
  69. package/dist/src/widgets/TaxbitQuestionnairePersist/TaxbitQuestionnairePersist.d.ts +1 -1
  70. package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderCertifications/AccountHolderCertifications.d.ts +3 -0
  71. package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderCertifications/index.d.ts +1 -0
  72. package/dist/src/wizard/TaxbitQuestionnaireUI/RegardedOwnerCertifications/RegardedOwnerCertifications.d.ts +3 -0
  73. package/dist/src/wizard/TaxbitQuestionnaireUI/RegardedOwnerCertifications/index.d.ts +1 -0
  74. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/AccountHolder/AccountHolderForeignClassificationSummary.d.ts +3 -3
  75. package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/RegardedOwner/RegardedOwnerForeignClassificationSummary.d.ts +3 -3
  76. package/dist/src/wizard/TaxbitQuestionnaireUI/TaxbitQuestionnaireUI.d.ts +1 -1
  77. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.DepthFirst.DPS.test.d.ts +1 -0
  78. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.DepthFirst.SelfCert.test.d.ts +1 -0
  79. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.DepthFirst.W8.test.d.ts +1 -0
  80. package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.DepthFirst.W9.test.d.ts +1 -0
  81. package/dist/src/wizard/TaxbitQuestionnaireUI/steps.d.ts +2 -1
  82. package/dist/taxbit-react-sdk.js +5069 -3160
  83. package/dist/taxbit-react-sdk.umd.cjs +1 -1
  84. package/package.json +2 -2
  85. package/style/basic.css +2 -1
  86. package/style/inline.css +2 -1
  87. package/dist/src/lookups/foreignAccountHolderAccountTypeOptions.d.ts +0 -3
  88. package/dist/src/lookups/foreignOtherClassificationOptions.d.ts +0 -3
  89. package/dist/src/lookups/foreignTrustClassificationOptions.d.ts +0 -3
  90. package/dist/src/utils/camelCaseKeys.d.ts +0 -4
  91. package/dist/src/utils/snakeCaseKeys.d.ts +0 -1
  92. package/dist/src/utils/transformInbound/getForeignAccountType.d.ts +0 -4
  93. package/dist/src/utils/transformInbound/getForeignOtherClassification.d.ts +0 -3
  94. package/dist/src/utils/transformInbound/getForeignTrustClassification.d.ts +0 -3
  95. package/dist/src/wizard/TaxbitQuestionnaireUI/W8imyInstructions/W8imyInstructions.d.ts +0 -3
  96. package/dist/src/wizard/TaxbitQuestionnaireUI/W8imyInstructions/index.d.ts +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taxbit/react-sdk",
3
- "version": "1.2.0-beta.7",
3
+ "version": "2.0.0-beta.0",
4
4
  "description": "Taxbit Tax Documentation",
5
5
  "author": "Taxbit",
6
6
  "type": "module",
@@ -34,7 +34,7 @@
34
34
  "test": "vitest"
35
35
  },
36
36
  "dependencies": {
37
- "@taxbit/utilities": "0.3.2"
37
+ "@taxbit/utilities": "3.0.0"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "react": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
package/style/basic.css CHANGED
@@ -134,7 +134,8 @@ button.taxbit-button:focus-visible {
134
134
  line-height: 1.25em;
135
135
  }
136
136
  .taxbit-sub-label p,
137
- .taxbit-sub-label ol {
137
+ .taxbit-sub-label ol,
138
+ .taxbit-sub-label ul {
138
139
  margin: 0;
139
140
  margin-bottom: 5px;
140
141
  }
package/style/inline.css CHANGED
@@ -143,7 +143,8 @@ button.taxbit-button:focus-visible {
143
143
  line-height: 1.25em;
144
144
  }
145
145
  .taxbit-sub-label p,
146
- .taxbit-sub-label ol {
146
+ .taxbit-sub-label ol,
147
+ .taxbit-sub-label ul {
147
148
  margin: 0;
148
149
  margin-bottom: 5px;
149
150
  }
@@ -1,3 +0,0 @@
1
- export declare const foreignAccountHolderAccountTypeOptions: {
2
- value: T;
3
- }[];
@@ -1,3 +0,0 @@
1
- export declare const foreignOtherClassificationOptions: {
2
- value: T;
3
- }[];
@@ -1,3 +0,0 @@
1
- export declare const foreignTrustClassificationOptions: {
2
- value: T;
3
- }[];
@@ -1,4 +0,0 @@
1
- import { CamelCase, CamelCaseKeys } from '../types';
2
-
3
- export declare const camelCase: (str: string) => CamelCase<string>;
4
- export declare const camelCaseKeys: <T, U>(item: T) => CamelCaseKeys<T>;
@@ -1 +0,0 @@
1
- export declare const snakeCaseKeys: (item: unknown) => unknown;
@@ -1,4 +0,0 @@
1
- import { ForeignRegardedOwnerAccountType, ForeignAccountHolderAccountType } from '@taxbit/utilities';
2
-
3
- export declare const getAccountHolderForeignAccountType: (accountType: string | undefined) => ForeignAccountHolderAccountType | undefined;
4
- export declare const getRegardedOwnerForeignAccountType: (accountType: string | undefined) => ForeignRegardedOwnerAccountType | undefined;
@@ -1,3 +0,0 @@
1
- import { ForeignOtherClassification } from '@taxbit/utilities';
2
-
3
- export declare const getForeignOtherClassification: (classification: string | undefined) => ForeignOtherClassification | undefined;
@@ -1,3 +0,0 @@
1
- import { ForeignTrustClassification } from '@taxbit/utilities';
2
-
3
- export declare const getForeignTrustClassification: (classification: string | undefined) => ForeignTrustClassification | undefined;
@@ -1,3 +0,0 @@
1
- import { default as React } from 'react';
2
-
3
- export declare const W8imyInstructions: () => React.JSX.Element;
@@ -1 +0,0 @@
1
- export * from './W8imyInstructions';