@justifi/webcomponents 4.10.0-rc.0 → 4.11.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 (386) hide show
  1. package/dist/cjs/{Business-79361c8a.js → Business-7ae04d4f.js} +58 -2
  2. package/dist/cjs/{SubAccount-b3902202.js → SubAccount-05867651.js} +1 -1
  3. package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -1
  4. package/dist/cjs/business-additional-questions-schema-18a82d19.js +47 -0
  5. package/dist/cjs/business-details-core.cjs.entry.js +7 -2
  6. package/dist/cjs/{business-form-types-3cdd5447.js → business-form-types-29b2bad9.js} +7 -0
  7. package/dist/cjs/{form-control-datepart_3.cjs.entry.js → form-control-datepart_4.cjs.entry.js} +97 -46
  8. package/dist/cjs/form-control-monetary.cjs.entry.js +19 -17
  9. package/dist/cjs/{form-control-number_3.cjs.entry.js → form-control-select_2.cjs.entry.js} +7 -45
  10. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +9 -2
  11. package/dist/cjs/justifi-additional-questions-form-step_5.cjs.entry.js +29 -24
  12. package/dist/cjs/justifi-additional-questions_4.cjs.entry.js +7 -7
  13. package/dist/cjs/justifi-billing-form_4.cjs.entry.js +3 -3
  14. package/dist/cjs/justifi-business-details.cjs.entry.js +23 -4
  15. package/dist/cjs/justifi-business-form.cjs.entry.js +62 -51
  16. package/dist/cjs/justifi-business-list.cjs.entry.js +3 -2
  17. package/dist/cjs/justifi-checkout-core.cjs.entry.js +5 -4
  18. package/dist/cjs/justifi-checkout.cjs.entry.js +1 -1
  19. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +29 -5
  20. package/dist/cjs/justifi-owner-form.cjs.entry.js +22 -12
  21. package/dist/cjs/justifi-payment-balance-transactions.cjs.entry.js +2 -1
  22. package/dist/cjs/justifi-payment-details.cjs.entry.js +25 -4
  23. package/dist/cjs/justifi-payment-form.cjs.entry.js +18 -4
  24. package/dist/cjs/{justifi-business-form-stepped.cjs.entry.js → justifi-payment-provisioning.cjs.entry.js} +20 -20
  25. package/dist/cjs/justifi-payments-list.cjs.entry.js +25 -5
  26. package/dist/cjs/justifi-payout-details.cjs.entry.js +27 -7
  27. package/dist/cjs/justifi-payouts-list.cjs.entry.js +26 -6
  28. package/dist/cjs/justifi-proceeds-list.cjs.entry.js +2 -1
  29. package/dist/cjs/justifi-subaccount-details.cjs.entry.js +3 -2
  30. package/dist/cjs/justifi-subaccounts-list.cjs.entry.js +3 -2
  31. package/dist/cjs/loader.cjs.js +1 -1
  32. package/dist/cjs/payload-parsers-f437272e.js +132 -0
  33. package/dist/cjs/payment-details-core.cjs.entry.js +9 -2
  34. package/dist/cjs/payments-list-core.cjs.entry.js +10 -3
  35. package/dist/cjs/payout-details-core.cjs.entry.js +10 -4
  36. package/dist/cjs/payouts-list-core.cjs.entry.js +10 -3
  37. package/dist/cjs/subaccount-account-details_4.cjs.entry.js +2 -1
  38. package/dist/cjs/{utils-6f62f7a1.js → utils-2b9940e1.js} +7 -0
  39. package/dist/cjs/{utils-df5167a8.js → utils-87435719.js} +7 -0
  40. package/dist/cjs/utils-f8079741.js +41 -0
  41. package/dist/cjs/webcomponents.cjs.js +1 -1
  42. package/dist/collection/api/Business.js +12 -2
  43. package/dist/collection/api/ComponentError.js +14 -0
  44. package/dist/collection/api/services/utils.js +11 -0
  45. package/dist/collection/api/shared.js +11 -1
  46. package/dist/collection/collection-manifest.json +7 -8
  47. package/dist/collection/components/billing-form/billing-form.js +1 -1
  48. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +4 -4
  49. package/dist/collection/components/business-details/additional-questions-details/test/additional-questions.spec.js +1 -1
  50. package/dist/collection/components/business-details/business-details-core.js +30 -2
  51. package/dist/collection/components/business-details/business-details.js +30 -0
  52. package/dist/collection/components/business-details/generic-info-details/test/generic-info-details.spec.js +1 -1
  53. package/dist/collection/components/business-details/get-business.js +15 -3
  54. package/dist/collection/components/business-details/legal-address-details/test/legal-address-details.spec.js +1 -1
  55. package/dist/collection/components/business-details/owner-details/test/owner-details.spec.js +1 -1
  56. package/dist/collection/components/business-details/representative-details/test/representative-details.spec.js +1 -1
  57. package/dist/collection/components/business-details/test/busines-details-core.spec.js +56 -16
  58. package/dist/collection/components/business-details/test/business-details.spec.js +20 -4
  59. package/dist/collection/components/business-details/test/get-business.spec.js +13 -6
  60. package/dist/collection/components/business-forms/business-form/business-form.js +79 -50
  61. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +1 -4
  62. package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +4 -2
  63. package/dist/collection/components/business-forms/{business-form-stepped/business-address/business-address-form-step.js → owner-form/identity-address/identity-address-form.js} +14 -11
  64. package/dist/collection/components/business-forms/owner-form/identity-address/test/identity-address.e2e.js +9 -0
  65. package/dist/collection/components/business-forms/{business-form/business-address/test/business-address.spec.js → owner-form/identity-address/test/identity-address.spec.js} +21 -14
  66. package/dist/collection/components/business-forms/owner-form/owner-form.js +54 -8
  67. package/dist/collection/components/business-forms/{business-form-stepped → payment-provisioning}/additional-questions/business-additional-questions-form-step.js +23 -4
  68. package/dist/collection/components/business-forms/{business-form-stepped → payment-provisioning}/business-core-info/business-core-info-form-step.js +19 -1
  69. package/dist/collection/components/business-forms/{business-form-stepped → payment-provisioning}/business-owners/business-owners-form-step.js +44 -4
  70. package/dist/collection/components/business-forms/{business-form-stepped → payment-provisioning}/business-representative/business-representative-form-step.js +24 -8
  71. package/dist/collection/components/business-forms/{business-form-stepped → payment-provisioning}/legal-address-form/legal-address-form-step.js +24 -4
  72. package/dist/collection/components/business-forms/{business-form-stepped/business-form-stepped.js → payment-provisioning/payment-provisioning.js} +36 -18
  73. package/dist/collection/components/business-forms/payment-provisioning/test/payment-provisioning.spec.js +61 -0
  74. package/dist/collection/components/business-forms/schemas/business-additional-questions-schema.js +15 -6
  75. package/dist/collection/components/business-forms/schemas/business-address-schema.js +49 -13
  76. package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +24 -12
  77. package/dist/collection/components/business-forms/schemas/business-form-schema.js +4 -4
  78. package/dist/collection/components/business-forms/schemas/business-identity-schema.js +29 -34
  79. package/dist/collection/components/business-forms/utils/business-form-types.js +7 -0
  80. package/dist/collection/components/business-forms/utils/helpers.js +2 -0
  81. package/dist/collection/components/checkout/checkout-core.js +4 -4
  82. package/dist/collection/components/form/form-control-datepart.js +39 -34
  83. package/dist/collection/components/form/form-control-monetary.js +22 -20
  84. package/dist/collection/components/form/form-control-number.js +1 -0
  85. package/dist/collection/components/form/form-control-select.js +3 -1
  86. package/dist/collection/components/form/form-control-text.js +36 -1
  87. package/dist/collection/components/form/test/form-control-datepart.spec.js +88 -0
  88. package/dist/collection/components/form/test/form-control-monetary.spec.js +69 -0
  89. package/dist/collection/components/form/test/form-control-number.spec.js +77 -0
  90. package/dist/collection/components/form/test/form-control-select.spec.js +84 -0
  91. package/dist/collection/components/form/test/form-control-text.spec.js +104 -0
  92. package/dist/collection/components/form/test/form.spec.js +60 -0
  93. package/dist/collection/components/form/utils.js +6 -0
  94. package/dist/collection/components/gross-payment-chart/get-gross-payment-chart-data.js +17 -2
  95. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +30 -1
  96. package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +35 -1
  97. package/dist/collection/components/gross-payment-chart/test/get-gross-payment-chart-data.spec.js +26 -8
  98. package/dist/collection/components/gross-payment-chart/test/gross-payment-chart-core.spec.js +51 -11
  99. package/dist/collection/components/gross-payment-chart/test/gross-payment-chart.spec.js +55 -3
  100. package/dist/collection/components/payment-details/get-payment-details.js +15 -3
  101. package/dist/collection/components/payment-details/payment-details-core.js +30 -1
  102. package/dist/collection/components/payment-details/payment-details.js +35 -1
  103. package/dist/collection/components/payment-details/test/get-payment-details.spec.js +11 -3
  104. package/dist/collection/components/payment-details/test/payment-details-core.spec.js +55 -12
  105. package/dist/collection/components/payment-details/test/payment-details.spec.js +69 -3
  106. package/dist/collection/components/payment-form/payment-form.js +54 -3
  107. package/dist/collection/components/payment-form/test/payment-form.spec.js +60 -1
  108. package/dist/collection/components/payments-list/get-payments.js +15 -4
  109. package/dist/collection/components/payments-list/payments-list-core.js +28 -2
  110. package/dist/collection/components/payments-list/payments-list.js +35 -1
  111. package/dist/collection/components/payments-list/test/get-payments.spec.js +11 -3
  112. package/dist/collection/components/payments-list/test/payments-list-core.spec.js +43 -28
  113. package/dist/collection/components/payments-list/test/payments-list.spec.js +31 -3
  114. package/dist/collection/components/payout-details/get-payout-details.js +17 -6
  115. package/dist/collection/components/payout-details/payout-details-core.js +31 -3
  116. package/dist/collection/components/payout-details/payout-details.js +35 -1
  117. package/dist/collection/components/payout-details/test/get-payout-details.spec.js +15 -5
  118. package/dist/collection/components/payout-details/test/payout-details-core.spec.js +54 -16
  119. package/dist/collection/components/payout-details/test/payout-details.spec.js +50 -1
  120. package/dist/collection/components/payouts-list/get-payouts.js +17 -5
  121. package/dist/collection/components/payouts-list/payouts-list-core.js +28 -2
  122. package/dist/collection/components/payouts-list/payouts-list.js +34 -1
  123. package/dist/collection/components/payouts-list/test/get-payouts.spec.js +11 -3
  124. package/dist/collection/components/payouts-list/test/payouts-list-core.spec.js +42 -29
  125. package/dist/collection/components/payouts-list/test/payouts-list.spec.js +33 -0
  126. package/dist/collection/utils/utils.js +5 -0
  127. package/dist/docs.json +1018 -618
  128. package/dist/esm/{Business-1df362e0.js → Business-91caaccb.js} +56 -3
  129. package/dist/esm/{SubAccount-f4ae9809.js → SubAccount-61ac70eb.js} +1 -1
  130. package/dist/esm/additional-questions-details_5.entry.js +2 -1
  131. package/dist/esm/business-additional-questions-schema-b642a2b7.js +44 -0
  132. package/dist/esm/business-details-core.entry.js +8 -3
  133. package/dist/esm/{business-form-types-de9f38cd.js → business-form-types-0d76133c.js} +8 -1
  134. package/dist/esm/{form-control-datepart_3.entry.js → form-control-datepart_4.entry.js} +97 -47
  135. package/dist/esm/form-control-monetary.entry.js +19 -17
  136. package/dist/esm/{form-control-number_3.entry.js → form-control-select_2.entry.js} +8 -45
  137. package/dist/esm/gross-payment-chart-core.entry.js +10 -3
  138. package/dist/esm/justifi-additional-questions-form-step_5.entry.js +28 -23
  139. package/dist/esm/justifi-additional-questions_4.entry.js +7 -7
  140. package/dist/esm/justifi-billing-form_4.entry.js +3 -3
  141. package/dist/esm/justifi-business-details.entry.js +24 -5
  142. package/dist/esm/justifi-business-form.entry.js +62 -51
  143. package/dist/esm/justifi-business-list.entry.js +3 -2
  144. package/dist/esm/justifi-checkout-core.entry.js +5 -4
  145. package/dist/esm/justifi-checkout.entry.js +1 -1
  146. package/dist/esm/justifi-gross-payment-chart.entry.js +28 -4
  147. package/dist/esm/justifi-owner-form.entry.js +21 -11
  148. package/dist/esm/justifi-payment-balance-transactions.entry.js +2 -1
  149. package/dist/esm/justifi-payment-details.entry.js +26 -5
  150. package/dist/esm/justifi-payment-form.entry.js +18 -4
  151. package/dist/esm/{justifi-business-form-stepped.entry.js → justifi-payment-provisioning.entry.js} +20 -20
  152. package/dist/esm/justifi-payments-list.entry.js +26 -6
  153. package/dist/esm/justifi-payout-details.entry.js +28 -8
  154. package/dist/esm/justifi-payouts-list.entry.js +27 -7
  155. package/dist/esm/justifi-proceeds-list.entry.js +2 -1
  156. package/dist/esm/justifi-subaccount-details.entry.js +3 -2
  157. package/dist/esm/justifi-subaccounts-list.entry.js +3 -2
  158. package/dist/esm/loader.js +1 -1
  159. package/dist/esm/payload-parsers-920f49dd.js +123 -0
  160. package/dist/esm/payment-details-core.entry.js +10 -3
  161. package/dist/esm/payments-list-core.entry.js +10 -3
  162. package/dist/esm/payout-details-core.entry.js +11 -5
  163. package/dist/esm/payouts-list-core.entry.js +10 -3
  164. package/dist/esm/subaccount-account-details_4.entry.js +2 -1
  165. package/dist/esm/utils-4609f32c.js +38 -0
  166. package/dist/esm/{utils-2828201a.js → utils-684d2e47.js} +7 -1
  167. package/dist/esm/{utils-243abdb4.js → utils-d9e90399.js} +7 -1
  168. package/dist/esm/webcomponents.js +1 -1
  169. package/dist/module/Business.js +56 -3
  170. package/dist/module/SubAccount.js +1 -1
  171. package/dist/module/business-additional-questions-form-step.js +7 -4
  172. package/dist/module/business-additional-questions-schema.js +16 -7
  173. package/dist/module/business-address-schema.js +50 -14
  174. package/dist/module/business-core-info-form-step.js +3 -1
  175. package/dist/module/business-core-info-schema.js +24 -12
  176. package/dist/module/business-details-core2.js +8 -3
  177. package/dist/module/business-form-types.js +8 -1
  178. package/dist/module/business-identity-schema.js +30 -35
  179. package/dist/module/business-owners-form-step.js +13 -8
  180. package/dist/module/business-representative-form-step.js +11 -11
  181. package/dist/module/business-representative.js +4 -7
  182. package/dist/module/checkout-core.js +4 -4
  183. package/dist/module/form-control-datepart2.js +37 -33
  184. package/dist/module/form-control-monetary2.js +20 -18
  185. package/dist/module/form-control-number2.js +1 -0
  186. package/dist/module/form-control-select2.js +3 -1
  187. package/dist/module/form-control-text2.js +6 -1
  188. package/dist/module/gross-payment-chart-core2.js +8 -2
  189. package/dist/module/helpers.js +4 -0
  190. package/dist/module/{business-address-form.js → identity-address-form.js} +17 -20
  191. package/dist/module/justifi-business-details.js +21 -4
  192. package/dist/module/justifi-business-form.js +65 -56
  193. package/dist/module/justifi-gross-payment-chart.js +28 -4
  194. package/dist/module/justifi-identity-address-form.d.ts +11 -0
  195. package/dist/module/justifi-identity-address-form.js +6 -0
  196. package/dist/module/justifi-payment-balance-transactions.js +1 -1
  197. package/dist/module/justifi-payment-details.js +26 -5
  198. package/dist/module/justifi-payment-form.js +18 -4
  199. package/dist/module/justifi-payment-provisioning.d.ts +11 -0
  200. package/dist/module/{justifi-business-form-stepped.js → justifi-payment-provisioning.js} +32 -31
  201. package/dist/module/justifi-payments-list.js +26 -6
  202. package/dist/module/justifi-payout-details.js +28 -8
  203. package/dist/module/justifi-payouts-list.js +27 -7
  204. package/dist/module/justifi-subaccount-details.js +1 -1
  205. package/dist/module/justifi-subaccounts-list.js +1 -1
  206. package/dist/module/legal-address-form-step.js +10 -12
  207. package/dist/module/legal-address-form.js +5 -9
  208. package/dist/module/owner-form.js +23 -35
  209. package/dist/module/payment-details-core2.js +9 -3
  210. package/dist/module/payment-method-form.js +1 -1
  211. package/dist/module/payments-list-core2.js +9 -3
  212. package/dist/module/payout-details-core2.js +10 -5
  213. package/dist/module/payouts-list-core2.js +9 -3
  214. package/dist/module/subaccount-merchant-details2.js +1 -1
  215. package/dist/module/utils2.js +7 -1
  216. package/dist/module/utils3.js +31 -1
  217. package/dist/module/utils4.js +7 -1
  218. package/dist/types/api/Business.d.ts +10 -3
  219. package/dist/types/api/ComponentError.d.ts +18 -0
  220. package/dist/types/api/services/utils.d.ts +2 -0
  221. package/dist/types/api/shared.d.ts +9 -0
  222. package/dist/types/components/business-details/additional-questions-details/additional-questions-details.d.ts +2 -2
  223. package/dist/types/components/business-details/business-details-core.d.ts +3 -0
  224. package/dist/types/components/business-details/business-details.d.ts +3 -0
  225. package/dist/types/components/business-forms/business-form/business-form.d.ts +4 -2
  226. package/dist/types/components/business-forms/owner-form/identity-address/identity-address-form.d.ts +10 -0
  227. package/dist/types/components/business-forms/owner-form/owner-form.d.ts +5 -1
  228. package/dist/types/components/business-forms/{business-form-stepped → payment-provisioning}/additional-questions/business-additional-questions-form-step.d.ts +3 -1
  229. package/dist/types/components/business-forms/{business-form-stepped → payment-provisioning}/business-core-info/business-core-info-form-step.d.ts +1 -0
  230. package/dist/types/components/business-forms/{business-form-stepped → payment-provisioning}/business-owners/business-owners-form-step.d.ts +3 -1
  231. package/dist/types/components/business-forms/{business-form-stepped → payment-provisioning}/business-representative/business-representative-form-step.d.ts +3 -1
  232. package/dist/types/components/business-forms/{business-form-stepped → payment-provisioning}/legal-address-form/legal-address-form-step.d.ts +1 -0
  233. package/dist/types/components/business-forms/{business-form-stepped/business-form-stepped.d.ts → payment-provisioning/payment-provisioning.d.ts} +4 -3
  234. package/dist/types/components/business-forms/schemas/business-additional-questions-schema.d.ts +1 -1
  235. package/dist/types/components/business-forms/schemas/business-address-schema.d.ts +1 -12
  236. package/dist/types/components/business-forms/schemas/business-core-info-schema.d.ts +1 -1
  237. package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +7 -3
  238. package/dist/types/components/business-forms/schemas/business-identity-schema.d.ts +5 -31
  239. package/dist/types/components/business-forms/utils/business-form-types.d.ts +10 -0
  240. package/dist/types/components/business-forms/utils/helpers.d.ts +2 -0
  241. package/dist/types/components/form/form-control-datepart.d.ts +2 -1
  242. package/dist/types/components/form/form-control-monetary.d.ts +2 -1
  243. package/dist/types/components/form/form-control-text.d.ts +2 -0
  244. package/dist/types/components/form/utils.d.ts +1 -0
  245. package/dist/types/components/gross-payment-chart/get-gross-payment-chart-data.d.ts +5 -8
  246. package/dist/types/components/gross-payment-chart/gross-payment-chart-core.d.ts +3 -0
  247. package/dist/types/components/gross-payment-chart/gross-payment-chart.d.ts +4 -0
  248. package/dist/types/components/payment-details/payment-details-core.d.ts +3 -0
  249. package/dist/types/components/payment-details/payment-details.d.ts +4 -0
  250. package/dist/types/components/payment-form/payment-form.d.ts +4 -1
  251. package/dist/types/components/payments-list/payments-list-core.d.ts +2 -0
  252. package/dist/types/components/payments-list/payments-list.d.ts +4 -0
  253. package/dist/types/components/payout-details/payout-details-core.d.ts +3 -0
  254. package/dist/types/components/payout-details/payout-details.d.ts +4 -0
  255. package/dist/types/components/payouts-list/payouts-list-core.d.ts +2 -0
  256. package/dist/types/components/payouts-list/payouts-list.d.ts +4 -0
  257. package/dist/types/components.d.ts +278 -104
  258. package/dist/types/utils/utils.d.ts +1 -0
  259. package/dist/webcomponents/p-091f9732.entry.js +1 -0
  260. package/dist/webcomponents/p-0b76c770.entry.js +1 -0
  261. package/dist/webcomponents/p-0d81883d.entry.js +1 -0
  262. package/dist/webcomponents/p-102b593a.entry.js +1 -0
  263. package/dist/webcomponents/p-221b9504.entry.js +1 -0
  264. package/dist/webcomponents/p-28cd23c8.entry.js +1 -0
  265. package/dist/webcomponents/p-2b8368d2.js +1 -0
  266. package/dist/webcomponents/p-2df32b4a.entry.js +1 -0
  267. package/dist/webcomponents/p-3d4aaa4a.entry.js +1 -0
  268. package/dist/webcomponents/p-436d27b9.entry.js +1 -0
  269. package/dist/webcomponents/p-448063ba.entry.js +1 -0
  270. package/dist/webcomponents/p-5341321d.entry.js +1 -0
  271. package/dist/webcomponents/{p-0399f02b.entry.js → p-5b262705.entry.js} +1 -1
  272. package/dist/webcomponents/p-5e503d7d.entry.js +1 -0
  273. package/dist/webcomponents/p-6047b960.entry.js +1 -0
  274. package/dist/webcomponents/p-60b2344a.js +1 -0
  275. package/dist/webcomponents/p-6d39b8bc.entry.js +1 -0
  276. package/dist/webcomponents/p-6f294d5d.js +1 -0
  277. package/dist/webcomponents/p-7294eb89.entry.js +1 -0
  278. package/dist/webcomponents/p-746bfba6.entry.js +1 -0
  279. package/dist/webcomponents/p-7c6a355f.entry.js +1 -0
  280. package/dist/webcomponents/p-817211f2.entry.js +1 -0
  281. package/dist/webcomponents/{p-65510838.js → p-8482c23f.js} +1 -1
  282. package/dist/webcomponents/p-935d6f55.js +1 -0
  283. package/dist/webcomponents/{p-e924f2e1.entry.js → p-959250e3.entry.js} +1 -1
  284. package/dist/webcomponents/p-a130a884.entry.js +1 -0
  285. package/dist/webcomponents/p-a4122c35.entry.js +1 -0
  286. package/dist/webcomponents/p-ac670a3e.js +1 -0
  287. package/dist/webcomponents/p-ae21ed6f.entry.js +19 -0
  288. package/dist/webcomponents/p-c071d8c1.entry.js +1 -0
  289. package/dist/webcomponents/p-c340b60f.js +1 -0
  290. package/dist/webcomponents/p-d5aab6b5.entry.js +1 -0
  291. package/dist/webcomponents/p-d5c80489.entry.js +1 -0
  292. package/dist/webcomponents/p-d776fe10.entry.js +1 -0
  293. package/dist/webcomponents/p-d8679fad.entry.js +1 -0
  294. package/dist/webcomponents/p-e84b3616.entry.js +1 -0
  295. package/dist/webcomponents/p-ea03b424.entry.js +1 -0
  296. package/dist/webcomponents/p-ea2cca2a.js +1 -0
  297. package/dist/webcomponents/p-ec230480.entry.js +1 -0
  298. package/dist/webcomponents/webcomponents.esm.js +1 -1
  299. package/package.json +1 -1
  300. package/dist/cjs/Identity-b6364aee.js +0 -27
  301. package/dist/cjs/business-additional-questions-schema-cbac27f2.js +0 -26
  302. package/dist/cjs/justifi-business-address-form-step.cjs.entry.js +0 -35
  303. package/dist/cjs/payload-parsers-25ed3936.js +0 -98
  304. package/dist/cjs/utils-f5d82f21.js +0 -10
  305. package/dist/collection/api/mockData/MockOnboardingData.js +0 -117
  306. package/dist/collection/api/mockData/MockPayments.js +0 -243
  307. package/dist/collection/api/mockData/MockSubAccount.js +0 -102
  308. package/dist/collection/api/mockData/mockGrossVolumeReport.js +0 -125
  309. package/dist/collection/components/business-forms/business-form/business-address/business-address-form.css +0 -2536
  310. package/dist/collection/components/business-forms/business-form/business-address/business-address-form.js +0 -97
  311. package/dist/collection/components/business-forms/business-form/business-address/test/business-address.e2e.js +0 -9
  312. package/dist/collection/components/business-forms/business-form-stepped/business-address/test/business-address-form-step.spec.js +0 -97
  313. package/dist/collection/components/business-forms/business-form-stepped/test/business-form-stepped.spec.js +0 -61
  314. package/dist/collection/components/business-forms/schemas/business-owners-schema.js +0 -16
  315. package/dist/collection/components/card-form/test/card-form.e2e.js +0 -13
  316. package/dist/esm/Identity-774788c0.js +0 -25
  317. package/dist/esm/business-additional-questions-schema-2cb80f70.js +0 -23
  318. package/dist/esm/justifi-business-address-form-step.entry.js +0 -31
  319. package/dist/esm/payload-parsers-1dd7474f.js +0 -90
  320. package/dist/esm/utils-546ca6aa.js +0 -8
  321. package/dist/module/justifi-business-address-form-step.d.ts +0 -11
  322. package/dist/module/justifi-business-address-form-step.js +0 -75
  323. package/dist/module/justifi-business-address-form.d.ts +0 -11
  324. package/dist/module/justifi-business-address-form.js +0 -6
  325. package/dist/module/justifi-business-form-stepped.d.ts +0 -11
  326. package/dist/types/api/mockData/MockOnboardingData.d.ts +0 -8
  327. package/dist/types/api/mockData/MockPayments.d.ts +0 -3
  328. package/dist/types/api/mockData/MockSubAccount.d.ts +0 -3
  329. package/dist/types/components/business-forms/business-form/business-address/business-address-form.d.ts +0 -9
  330. package/dist/types/components/business-forms/business-form-stepped/business-address/business-address-form-step.d.ts +0 -9
  331. package/dist/types/components/business-forms/schemas/business-owners-schema.d.ts +0 -33
  332. package/dist/webcomponents/p-04a98c63.js +0 -1
  333. package/dist/webcomponents/p-06888c2e.entry.js +0 -1
  334. package/dist/webcomponents/p-0811bc77.entry.js +0 -1
  335. package/dist/webcomponents/p-17d72f4a.js +0 -1
  336. package/dist/webcomponents/p-17f64853.entry.js +0 -1
  337. package/dist/webcomponents/p-22085999.entry.js +0 -1
  338. package/dist/webcomponents/p-252835df.entry.js +0 -1
  339. package/dist/webcomponents/p-28b38699.js +0 -1
  340. package/dist/webcomponents/p-374c44e6.entry.js +0 -1
  341. package/dist/webcomponents/p-4697ccfa.entry.js +0 -1
  342. package/dist/webcomponents/p-4781cd06.js +0 -1
  343. package/dist/webcomponents/p-4d806131.entry.js +0 -1
  344. package/dist/webcomponents/p-4e0b3206.entry.js +0 -1
  345. package/dist/webcomponents/p-583dd5a2.entry.js +0 -1
  346. package/dist/webcomponents/p-5be4e217.entry.js +0 -1
  347. package/dist/webcomponents/p-5da4fbe7.entry.js +0 -1
  348. package/dist/webcomponents/p-6103c20d.entry.js +0 -1
  349. package/dist/webcomponents/p-6ed680e9.js +0 -1
  350. package/dist/webcomponents/p-7654c70d.entry.js +0 -1
  351. package/dist/webcomponents/p-847441ce.entry.js +0 -1
  352. package/dist/webcomponents/p-861ba3fc.entry.js +0 -1
  353. package/dist/webcomponents/p-9207ccb2.entry.js +0 -1
  354. package/dist/webcomponents/p-9ce8d98c.entry.js +0 -1
  355. package/dist/webcomponents/p-9e4b81ad.entry.js +0 -1
  356. package/dist/webcomponents/p-a141c531.js +0 -1
  357. package/dist/webcomponents/p-a2dbe90f.entry.js +0 -1
  358. package/dist/webcomponents/p-a98eea84.entry.js +0 -1
  359. package/dist/webcomponents/p-b1bc23af.entry.js +0 -1
  360. package/dist/webcomponents/p-b27c9b0d.entry.js +0 -1
  361. package/dist/webcomponents/p-b8f22856.js +0 -1
  362. package/dist/webcomponents/p-c8d62072.entry.js +0 -1
  363. package/dist/webcomponents/p-e3748ea4.entry.js +0 -1
  364. package/dist/webcomponents/p-eef5ed19.entry.js +0 -1
  365. package/dist/webcomponents/p-efc7025c.entry.js +0 -1
  366. package/dist/webcomponents/p-f3453ca2.js +0 -1
  367. package/dist/webcomponents/p-f3ca6fda.entry.js +0 -1
  368. package/dist/webcomponents/p-fe2af0cf.entry.js +0 -19
  369. package/dist/webcomponents/p-fe8a94c1.entry.js +0 -1
  370. /package/dist/cjs/{state-options-96d05a98.js → state-options-4fbcb48a.js} +0 -0
  371. /package/dist/collection/components/business-forms/{business-form-stepped/business-address/business-address-form-step.css → owner-form/identity-address/identity-address-form.css} +0 -0
  372. /package/dist/collection/components/business-forms/{business-form-stepped → payment-provisioning}/additional-questions/test/business-additional-questions-form-step.spec.js +0 -0
  373. /package/dist/collection/components/business-forms/{business-form-stepped → payment-provisioning}/business-core-info/business-core-info-form-step.css +0 -0
  374. /package/dist/collection/components/business-forms/{business-form-stepped → payment-provisioning}/business-core-info/test/business-core-info-form-step.spec.js +0 -0
  375. /package/dist/collection/components/business-forms/{business-form-stepped → payment-provisioning}/business-owners/business-owners-form-step.css +0 -0
  376. /package/dist/collection/components/business-forms/{business-form-stepped → payment-provisioning}/business-owners/test/business-owners-form-step.spec.js +0 -0
  377. /package/dist/collection/components/business-forms/{business-form-stepped → payment-provisioning}/business-representative/business-representative-form-step.css +0 -0
  378. /package/dist/collection/components/business-forms/{business-form-stepped → payment-provisioning}/business-representative/test/business-representative-form-step.spec.js +0 -0
  379. /package/dist/collection/components/business-forms/{business-form-stepped → payment-provisioning}/legal-address-form/legal-address-form-step.css +0 -0
  380. /package/dist/collection/components/business-forms/{business-form-stepped/business-form-stepped.css → payment-provisioning/payment-provisioning.css} +0 -0
  381. /package/dist/collection/{components/billing-form → utils}/state-options.js +0 -0
  382. /package/dist/esm/{state-options-fc1daf67.js → state-options-a356fb11.js} +0 -0
  383. /package/dist/types/{api → home/runner/work/web-component-library/web-component-library/packages/webcomponents/.stencil}/mockData/mockGrossVolumeReport.d.ts +0 -0
  384. /package/dist/types/home/runner/work/web-component-library/web-component-library/packages/webcomponents/.stencil/{config.d.ts → packages/webcomponents/config.d.ts} +0 -0
  385. /package/dist/types/{components/billing-form → utils}/state-options.d.ts +0 -0
  386. /package/dist/webcomponents/{p-8e2a88a8.js → p-6078a370.js} +0 -0
@@ -1,18 +1,54 @@
1
- import { c as create$3, a as create$6 } from './index.esm.js';
1
+ import { a as create$6, c as create$3 } from './index.esm.js';
2
+ import { S as StateOptions } from './state-options.js';
2
3
 
3
- const legalAddressSchema = create$3({
4
- line1: create$6().required('Enter street address'),
5
- line2: create$6().nullable(),
6
- city: create$6().required('Enter city'),
7
- state: create$6().required('Select state'),
8
- postal_code: create$6().required('Enter postal code'),
9
- country: create$6().required('Select country'),
4
+ const lineOneValidation = create$6()
5
+ .min(5, 'Address must be at least 5 characters')
6
+ .max(100, 'Address must be less than 100 characters')
7
+ .matches(/^(?!^\s+$)[a-zA-Z0-9\s,.'-]*$/, 'Invalid characters in address')
8
+ .transform((value) => {
9
+ return value === '' ? null : value;
10
10
  });
11
- const identityAddressSchema = create$3({
12
- line1: create$6().required('Enter street address'),
13
- city: create$6().required('Enter city'),
14
- state: create$6().required('Select state'),
15
- postal_code: create$6().required('Enter postal code'),
11
+ const lineTwoValidation = create$6()
12
+ .max(100, 'Address must be less than 100 characters')
13
+ .matches(/^(?!^\s+$)[a-zA-Z0-9\s,.'-]*$/, 'Invalid characters in address')
14
+ .transform((value) => {
15
+ return value === '' ? null : value;
16
16
  });
17
+ const cityValidation = create$6()
18
+ .min(2, 'City must be at least 2 characters')
19
+ .max(50, 'City must be less than 50 characters')
20
+ .matches(/^(?!^\s+$)[a-zA-Z\s]*$/, 'Invalid characters in city')
21
+ .transform((value) => {
22
+ return value === '' ? null : value;
23
+ });
24
+ const stateValidation = create$6()
25
+ .oneOf(StateOptions.map((option) => option.value), 'Select state')
26
+ .transform((value) => {
27
+ return value === '' ? null : value;
28
+ });
29
+ const postalValidation = create$6()
30
+ .matches(/^[0-9]{5}$/, 'Enter valid postal code')
31
+ .transform((value) => {
32
+ return value === '' ? null : value;
33
+ });
34
+ const addressSchema = (allowOptionalFields) => {
35
+ const schema = create$3({
36
+ line1: lineOneValidation.required('Enter street address'),
37
+ line2: lineTwoValidation.nullable(),
38
+ city: cityValidation.required('Enter city'),
39
+ state: stateValidation.required('Select state'),
40
+ postal_code: postalValidation.required('Enter postal code'),
41
+ country: create$6().required('Select country')
42
+ });
43
+ const easySchema = create$3({
44
+ line1: lineOneValidation.nullable(),
45
+ line2: lineTwoValidation.nullable(),
46
+ city: cityValidation.nullable(),
47
+ state: stateValidation.nullable(),
48
+ postal_code: postalValidation.nullable(),
49
+ country: create$6().required('Select country')
50
+ });
51
+ return allowOptionalFields ? easySchema : schema;
52
+ };
17
53
 
18
- export { identityAddressSchema as i, legalAddressSchema as l };
54
+ export { addressSchema as a };
@@ -58,6 +58,7 @@ const BusinessCoreInfoFormStep = /*@__PURE__*/ proxyCustomElement(class Business
58
58
  };
59
59
  this.authToken = undefined;
60
60
  this.businessId = undefined;
61
+ this.allowOptionalFields = undefined;
61
62
  this.formController = undefined;
62
63
  this.errors = {};
63
64
  this.coreInfo = {};
@@ -85,7 +86,7 @@ const BusinessCoreInfoFormStep = /*@__PURE__*/ proxyCustomElement(class Business
85
86
  console.error(missingAuthTokenMessage);
86
87
  if (!this.businessId)
87
88
  console.error(missingBusinessIdMessage);
88
- this.formController = new FormController(businessCoreInfoSchema);
89
+ this.formController = new FormController(businessCoreInfoSchema(this.allowOptionalFields));
89
90
  this.api = Api(this.authToken, config.proxyApiOrigin);
90
91
  this.fetchData();
91
92
  }
@@ -103,6 +104,7 @@ const BusinessCoreInfoFormStep = /*@__PURE__*/ proxyCustomElement(class Business
103
104
  }, [0, "justifi-business-core-info-form-step", {
104
105
  "authToken": [1, "auth-token"],
105
106
  "businessId": [1, "business-id"],
107
+ "allowOptionalFields": [4, "allow-optional-fields"],
106
108
  "formController": [32],
107
109
  "errors": [32],
108
110
  "coreInfo": [32],
@@ -1,16 +1,28 @@
1
1
  import { c as create$3, a as create$6 } from './index.esm.js';
2
+ import { u as urlRegex, p as phoneRegex } from './helpers.js';
2
3
 
3
- const businessCoreInfoSchema = create$3({
4
- legal_name: create$6().required('Enter legal name'),
5
- website_url: create$6()
6
- .url('Enter valid website url')
7
- .required('Enter website url'),
8
- email: create$6().email('Enter valid email').required('Enter email'),
9
- phone: create$6().required('Enter phone number'),
10
- doing_business_as: create$6().required('Enter doing business as'),
11
- business_type: create$6().required('Select business type'),
12
- business_structure: create$6().required('Select business structure'),
13
- industry: create$6().required('Enter a business industry'),
14
- });
4
+ const businessCoreInfoSchema = (allowOptionalFields) => {
5
+ const schema = create$3({
6
+ legal_name: create$6().required('Enter legal name'),
7
+ website_url: create$6().matches(urlRegex, 'Enter valid website url').required('Enter website url'),
8
+ email: create$6().email('Enter valid email').required('Enter email'),
9
+ phone: create$6().matches(phoneRegex, 'Enter valid phone number').required('Enter phone number'),
10
+ doing_business_as: create$6().required('Enter doing business as'),
11
+ business_type: create$6().required('Select business type'),
12
+ business_structure: create$6().required('Select business structure'),
13
+ industry: create$6().required('Enter a business industry'),
14
+ });
15
+ const easySchema = create$3({
16
+ legal_name: create$6().required('Enter legal name'),
17
+ website_url: create$6().matches(urlRegex, 'Enter valid website url').nullable(),
18
+ email: create$6().email('Enter valid email').nullable(),
19
+ phone: create$6().matches(phoneRegex, 'Enter valid phone number').nullable(),
20
+ doing_business_as: create$6().nullable(),
21
+ business_type: create$6().nullable(),
22
+ business_structure: create$6().nullable(),
23
+ industry: create$6().nullable(),
24
+ });
25
+ return allowOptionalFields ? easySchema : schema;
26
+ };
15
27
 
16
28
  export { businessCoreInfoSchema as b };
@@ -1,4 +1,4 @@
1
- import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
1
+ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
2
  import { L as LoadingState, E as ErrorState } from './utils.js';
3
3
  import { d as defineCustomElement$5 } from './additional-questions-details2.js';
4
4
  import { d as defineCustomElement$4 } from './generic-info-details2.js';
@@ -18,6 +18,7 @@ const BusinessDetailsCore = /*@__PURE__*/ proxyCustomElement(class BusinessDetai
18
18
  constructor() {
19
19
  super();
20
20
  this.__registerHost();
21
+ this.errorEvent = createEvent(this, "error-event", 7);
21
22
  this.getBusiness = undefined;
22
23
  this.business = undefined;
23
24
  this.renderState = RENDER_STATES.LOADING;
@@ -35,10 +36,14 @@ const BusinessDetailsCore = /*@__PURE__*/ proxyCustomElement(class BusinessDetai
35
36
  this.business = business;
36
37
  this.renderState = RENDER_STATES.READY;
37
38
  },
38
- onError: ({ error }) => {
39
- console.error(error);
39
+ onError: ({ error, code, severity }) => {
40
40
  this.errorMessage = error;
41
41
  this.renderState = RENDER_STATES.ERROR;
42
+ this.errorEvent.emit({
43
+ errorCode: code,
44
+ message: error,
45
+ severity,
46
+ });
42
47
  }
43
48
  });
44
49
  }
@@ -15,5 +15,12 @@ var OwnerFormServerErrors;
15
15
  OwnerFormServerErrors["patchData"] = "Error updating owner data";
16
16
  OwnerFormServerErrors["postData"] = "Error adding owner data";
17
17
  })(OwnerFormServerErrors || (OwnerFormServerErrors = {}));
18
+ var OwnerFormClickActions;
19
+ (function (OwnerFormClickActions) {
20
+ OwnerFormClickActions["removeOwner"] = "removeOwner";
21
+ OwnerFormClickActions["addOwner"] = "addOwner";
22
+ OwnerFormClickActions["addOwnerForm"] = "addOwnerForm";
23
+ OwnerFormClickActions["updateOwner"] = "updateOwner";
24
+ })(OwnerFormClickActions || (OwnerFormClickActions = {}));
18
25
 
19
- export { BusinessFormServerErrors as B, OwnerFormServerErrors as O, BusinessFormClickActions as a };
26
+ export { BusinessFormServerErrors as B, OwnerFormClickActions as O, BusinessFormClickActions as a, OwnerFormServerErrors as b };
@@ -1,38 +1,33 @@
1
1
  import { c as create$3, a as create$6 } from './index.esm.js';
2
- import { i as identityAddressSchema } from './business-address-schema.js';
2
+ import { a as addressSchema } from './business-address-schema.js';
3
+ import { p as phoneRegex } from './helpers.js';
3
4
 
4
- const phoneRegex = /^[0-9]+$/;
5
- const representativeSchema = create$3({
6
- name: create$6().required('Enter representative name'),
7
- email: create$6()
8
- .email('Enter valid representative email')
9
- .required('Enter representative email'),
10
- phone: create$6()
11
- .required('Enter representative phone number')
12
- .matches(phoneRegex, 'Phone number must contain only numbers')
13
- .min(10, 'Phone number must contain 10 digits')
14
- .max(10, 'Phone number must contain 10 digits'),
15
- dob_day: create$6().required('Enter representative birth day'),
16
- dob_month: create$6().required('Enter representative birth month'),
17
- dob_year: create$6().required('Enter representative birth year'),
18
- identification_number: create$6(),
19
- address: identityAddressSchema,
20
- });
21
- const ownerSchema = create$3({
22
- name: create$6().required('Enter owner name'),
23
- email: create$6()
24
- .email('Enter valid owner email')
25
- .required('Enter owner email'),
26
- phone: create$6()
27
- .required('Enter owner phone number')
28
- .matches(phoneRegex, 'Phone number must contain only numbers')
29
- .min(10, 'Phone number must contain 10 digits')
30
- .max(10, 'Phone number must contain 10 digits'),
31
- dob_day: create$6().required('Enter owner birth day'),
32
- dob_month: create$6().required('Enter owner birth month'),
33
- dob_year: create$6().required('Enter owner birth year'),
34
- identification_number: create$6(),
35
- address: identityAddressSchema,
36
- });
5
+ const identitySchema = (title, allowOptionalFields) => {
6
+ const schema = create$3({
7
+ name: create$6().required(`Enter ${title} name`),
8
+ email: create$6()
9
+ .email(`Enter valid ${title} email`)
10
+ .required(`Enter ${title} email`),
11
+ phone: create$6().matches(phoneRegex, 'Enter valid phone number').required('Enter phone number'),
12
+ dob_day: create$6().required(`Enter ${title} birth day`),
13
+ dob_month: create$6().required(`Enter ${title} birth month`),
14
+ dob_year: create$6().required(`Enter ${title} birth year`),
15
+ identification_number: create$6(),
16
+ address: addressSchema(allowOptionalFields),
17
+ });
18
+ const easySchema = create$3({
19
+ name: create$6().required(`Enter ${title} name`),
20
+ email: create$6()
21
+ .email(`Enter valid ${title} email`)
22
+ .nullable(),
23
+ phone: create$6().matches(phoneRegex, 'Enter valid phone number').nullable(),
24
+ dob_day: create$6().nullable(),
25
+ dob_month: create$6().nullable(),
26
+ dob_year: create$6().nullable(),
27
+ identification_number: create$6().nullable(),
28
+ address: addressSchema(allowOptionalFields),
29
+ });
30
+ return allowOptionalFields ? easySchema : schema;
31
+ };
37
32
 
38
- export { ownerSchema as o, representativeSchema as r };
33
+ export { identitySchema as i };