@justifi/webcomponents 4.2.2 → 4.5.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 (603) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/{Api-11362403.js → Api-d2df6e84.js} +17 -4
  3. package/dist/cjs/Api-d2df6e84.js.map +1 -0
  4. package/dist/cjs/{Payment-ac4dea02.js → Payout-4906a445.js} +44 -1
  5. package/dist/cjs/Payout-4906a445.js.map +1 -0
  6. package/dist/cjs/business-form-schema-725ec6f5.js +150 -0
  7. package/dist/cjs/business-form-schema-725ec6f5.js.map +1 -0
  8. package/dist/cjs/form-control-datepart_2.cjs.entry.js +107 -0
  9. package/dist/cjs/form-control-datepart_2.cjs.entry.js.map +1 -0
  10. package/dist/cjs/form-control-monetary.cjs.entry.js +65 -0
  11. package/dist/cjs/form-control-monetary.cjs.entry.js.map +1 -0
  12. package/dist/cjs/form-control-number_3.cjs.entry.js +148 -0
  13. package/dist/cjs/form-control-number_3.cjs.entry.js.map +1 -0
  14. package/dist/cjs/form-control-select.cjs.entry.js +47 -0
  15. package/dist/cjs/form-control-select.cjs.entry.js.map +1 -0
  16. package/dist/cjs/{index-34312a38.js → index-4ffc90c0.js} +145 -20
  17. package/dist/cjs/index-4ffc90c0.js.map +1 -0
  18. package/dist/cjs/index-5a880722.js +3233 -0
  19. package/dist/cjs/index-5a880722.js.map +1 -0
  20. package/dist/cjs/{index.esm-bcf90c56.js → index.esm-84a0a7a8.js} +283 -14
  21. package/dist/cjs/index.esm-84a0a7a8.js.map +1 -0
  22. package/dist/cjs/justifi-additional-questions_5.cjs.entry.js +396 -0
  23. package/dist/cjs/justifi-additional-questions_5.cjs.entry.js.map +1 -0
  24. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +8 -3
  25. package/dist/cjs/justifi-bank-account-form.cjs.entry.js.map +1 -1
  26. package/dist/cjs/justifi-billing-form_2.cjs.entry.js +5 -5
  27. package/dist/cjs/justifi-billing-form_2.cjs.entry.js.map +1 -1
  28. package/dist/cjs/justifi-business-form.cjs.entry.js +833 -0
  29. package/dist/cjs/justifi-business-form.cjs.entry.js.map +1 -0
  30. package/dist/cjs/justifi-business-list.cjs.entry.js +189 -0
  31. package/dist/cjs/justifi-business-list.cjs.entry.js.map +1 -0
  32. package/dist/cjs/justifi-card-form.cjs.entry.js +8 -3
  33. package/dist/cjs/justifi-card-form.cjs.entry.js.map +1 -1
  34. package/dist/cjs/justifi-details.cjs.entry.js +30 -0
  35. package/dist/cjs/justifi-details.cjs.entry.js.map +1 -0
  36. package/dist/cjs/justifi-payment-details.cjs.entry.js +63 -0
  37. package/dist/cjs/justifi-payment-details.cjs.entry.js.map +1 -0
  38. package/dist/cjs/justifi-payment-form.cjs.entry.js +25 -7
  39. package/dist/cjs/justifi-payment-form.cjs.entry.js.map +1 -1
  40. package/dist/cjs/justifi-payment-method-form.cjs.entry.js +26 -19
  41. package/dist/cjs/justifi-payment-method-form.cjs.entry.js.map +1 -1
  42. package/dist/cjs/justifi-payments-list.cjs.entry.js +78 -4039
  43. package/dist/cjs/justifi-payments-list.cjs.entry.js.map +1 -1
  44. package/dist/cjs/justifi-payout-details.cjs.entry.js +61 -0
  45. package/dist/cjs/justifi-payout-details.cjs.entry.js.map +1 -0
  46. package/dist/cjs/justifi-payouts-list.cjs.entry.js +123 -0
  47. package/dist/cjs/justifi-payouts-list.cjs.entry.js.map +1 -0
  48. package/dist/cjs/justifi-proceeds-list.cjs.entry.js +156 -0
  49. package/dist/cjs/justifi-proceeds-list.cjs.entry.js.map +1 -0
  50. package/dist/cjs/justifi-table.cjs.entry.js +68 -0
  51. package/dist/cjs/justifi-table.cjs.entry.js.map +1 -0
  52. package/dist/cjs/loader.cjs.js +3 -12
  53. package/dist/cjs/loader.cjs.js.map +1 -1
  54. package/dist/cjs/select-input_2.cjs.entry.js +6 -6
  55. package/dist/cjs/select-input_2.cjs.entry.js.map +1 -1
  56. package/dist/cjs/{state-options-efeaa587.js → state-options-83b52cd1.js} +1 -1
  57. package/dist/{esm/state-options-188acc34.js.map → cjs/state-options-83b52cd1.js.map} +1 -1
  58. package/dist/cjs/table-utils-617126e5.js +13 -0
  59. package/dist/cjs/table-utils-617126e5.js.map +1 -0
  60. package/dist/cjs/utils-0fd61dbd.js +3918 -0
  61. package/dist/cjs/utils-0fd61dbd.js.map +1 -0
  62. package/dist/cjs/utils-a5b5bfdf.js +35 -0
  63. package/dist/cjs/utils-a5b5bfdf.js.map +1 -0
  64. package/dist/cjs/webcomponents.cjs.js +3 -6
  65. package/dist/cjs/webcomponents.cjs.js.map +1 -1
  66. package/dist/collection/api/Api.js +17 -4
  67. package/dist/collection/api/Api.js.map +1 -1
  68. package/dist/collection/api/Business.js +50 -0
  69. package/dist/collection/api/Business.js.map +1 -0
  70. package/dist/collection/api/Payment.js.map +1 -1
  71. package/dist/collection/api/Payout.js +42 -0
  72. package/dist/collection/api/Payout.js.map +1 -0
  73. package/dist/collection/api/Proceed.js +42 -0
  74. package/dist/collection/api/Proceed.js.map +1 -0
  75. package/dist/collection/api/index.js +1 -0
  76. package/dist/collection/api/index.js.map +1 -1
  77. package/dist/collection/api/mockData/MockPayments.js +1 -1
  78. package/dist/collection/api/shared.js +2 -0
  79. package/dist/collection/api/shared.js.map +1 -0
  80. package/dist/collection/collection-manifest.json +30 -12
  81. package/dist/collection/components/bank-account-form/bank-account-form.js +38 -10
  82. package/dist/collection/components/bank-account-form/bank-account-form.js.map +1 -1
  83. package/dist/collection/components/bank-account-form/bank-account-form.stories.js +2 -0
  84. package/dist/collection/components/bank-account-form/bank-account-form.stories.js.map +1 -1
  85. package/dist/collection/components/bank-account-form/test/bank-account-form.e2e.js +1 -1
  86. package/dist/collection/components/bank-account-form/test/bank-account-form.spec.js +3 -3
  87. package/dist/collection/components/billing-form/billing-form-schema.js +1 -1
  88. package/dist/collection/components/billing-form/billing-form.css +212 -39
  89. package/dist/collection/components/billing-form/billing-form.js +16 -10
  90. package/dist/collection/components/billing-form/billing-form.js.map +1 -1
  91. package/dist/collection/components/billing-form/test/billing-form.spec.js +51 -24
  92. package/dist/collection/components/billing-form/test/billing-form.spec.js.map +1 -1
  93. package/dist/collection/components/business-form/additional-questions/additional-questions.js +59 -0
  94. package/dist/collection/components/business-form/additional-questions/additional-questions.js.map +1 -0
  95. package/dist/collection/components/{business-address/business-address-schema.js → business-form/business-address/business-address-form-schema.js} +2 -2
  96. package/dist/collection/components/business-form/business-address/business-address-form-schema.js.map +1 -0
  97. package/dist/collection/components/business-form/business-address/business-address-form.css +2532 -0
  98. package/dist/collection/components/business-form/business-address/business-address-form.js +98 -0
  99. package/dist/collection/components/business-form/business-address/business-address-form.js.map +1 -0
  100. package/dist/collection/components/business-form/business-address/test/business-address.e2e.js +10 -0
  101. package/dist/collection/components/business-form/business-address/test/business-address.e2e.js.map +1 -0
  102. package/dist/collection/components/business-form/business-address/test/business-address.spec.js +76 -0
  103. package/dist/collection/components/business-form/business-address/test/business-address.spec.js.map +1 -0
  104. package/dist/collection/components/business-form/business-form-schema.js +160 -0
  105. package/dist/collection/components/business-form/business-form-schema.js.map +1 -0
  106. package/dist/collection/components/business-form/business-form.css +7772 -0
  107. package/dist/collection/components/business-form/business-form.js +153 -0
  108. package/dist/collection/components/business-form/business-form.js.map +1 -0
  109. package/dist/collection/components/business-form/business-form.stories.js +115 -0
  110. package/dist/collection/components/business-form/business-form.stories.js.map +1 -0
  111. package/dist/collection/components/{business-info/business-info.css → business-form/business-generic-info/business-generic-info.css} +745 -530
  112. package/dist/collection/components/business-form/business-generic-info/business-generic-info.js +72 -0
  113. package/dist/collection/components/business-form/business-generic-info/business-generic-info.js.map +1 -0
  114. package/dist/collection/components/business-form/business-owners/business-owners.css +7772 -0
  115. package/dist/collection/components/business-form/business-owners/business-owners.js +131 -0
  116. package/dist/collection/components/business-form/business-owners/business-owners.js.map +1 -0
  117. package/dist/collection/components/business-form/business-representative/business-representative-schema.js +2 -0
  118. package/dist/collection/components/business-form/business-representative/business-representative-schema.js.map +1 -0
  119. package/dist/collection/components/business-form/business-representative/business-representative.css +2489 -0
  120. package/dist/collection/components/business-form/business-representative/business-representative.js +71 -0
  121. package/dist/collection/components/business-form/business-representative/business-representative.js.map +1 -0
  122. package/dist/collection/components/business-form/test/business-form.spec.js +44 -0
  123. package/dist/collection/components/business-form/test/business-form.spec.js.map +1 -0
  124. package/dist/collection/components/business-list/business-list.css +576 -0
  125. package/dist/collection/components/business-list/business-list.js +209 -0
  126. package/dist/collection/components/business-list/business-list.js.map +1 -0
  127. package/dist/collection/components/business-list/business-list.stories.js +68 -0
  128. package/dist/collection/components/business-list/business-list.stories.js.map +1 -0
  129. package/dist/collection/components/business-list/example.js +12 -0
  130. package/dist/collection/components/card-form/card-form.js +38 -10
  131. package/dist/collection/components/card-form/card-form.js.map +1 -1
  132. package/dist/collection/components/card-form/card-form.stories.js +5 -2
  133. package/dist/collection/components/card-form/card-form.stories.js.map +1 -1
  134. package/dist/collection/components/card-form/test/card-form.e2e.js +1 -1
  135. package/dist/collection/components/card-form/test/card-form.spec.js +3 -3
  136. package/dist/collection/components/details/details.css +7983 -0
  137. package/dist/collection/components/details/details.js +66 -0
  138. package/dist/collection/components/details/details.js.map +1 -0
  139. package/dist/collection/components/details/utils.js +10 -0
  140. package/dist/collection/components/details/utils.js.map +1 -0
  141. package/dist/collection/components/form/form-control-datepart.js +233 -0
  142. package/dist/collection/components/form/form-control-datepart.js.map +1 -0
  143. package/dist/collection/components/form/form-control-monetary.js +186 -0
  144. package/dist/collection/components/form/form-control-monetary.js.map +1 -0
  145. package/dist/collection/components/form/form-control-number-masked.js +217 -0
  146. package/dist/collection/components/form/form-control-number-masked.js.map +1 -0
  147. package/dist/collection/components/form/form-control-number.css +1818 -0
  148. package/dist/collection/components/form/form-control-number.js +194 -0
  149. package/dist/collection/components/form/form-control-number.js.map +1 -0
  150. package/dist/collection/components/{business-address/business-address.css → form/form-control-select.css} +350 -1212
  151. package/dist/collection/components/form/form-control-select.js +200 -0
  152. package/dist/collection/components/form/form-control-select.js.map +1 -0
  153. package/dist/collection/components/form/form-control-text.css +1801 -0
  154. package/dist/collection/components/form/form-control-text.js +194 -0
  155. package/dist/collection/components/form/form-control-text.js.map +1 -0
  156. package/dist/collection/components/form/form.js +93 -0
  157. package/dist/collection/components/form/form.js.map +1 -0
  158. package/dist/collection/components/legal-address-form/legal-address-form-schema.js +11 -0
  159. package/dist/collection/components/legal-address-form/legal-address-form-schema.js.map +1 -0
  160. package/dist/collection/components/legal-address-form/legal-address-form.css +2489 -0
  161. package/dist/collection/components/legal-address-form/legal-address-form.js +90 -0
  162. package/dist/collection/components/legal-address-form/legal-address-form.js.map +1 -0
  163. package/dist/collection/components/payment-details/example.js +12 -0
  164. package/dist/collection/components/payment-details/payment-details.css +7983 -0
  165. package/dist/collection/components/payment-details/payment-details.js +129 -0
  166. package/dist/collection/components/payment-details/payment-details.js.map +1 -0
  167. package/dist/collection/components/payment-details/payment-details.stories.js +47 -0
  168. package/dist/collection/components/payment-details/payment-details.stories.js.map +1 -0
  169. package/dist/collection/components/payment-form/payment-form.css +220 -45
  170. package/dist/collection/components/payment-form/payment-form.js +47 -7
  171. package/dist/collection/components/payment-form/payment-form.js.map +1 -1
  172. package/dist/collection/components/payment-form/payment-form.stories.js +3 -2
  173. package/dist/collection/components/payment-form/payment-form.stories.js.map +1 -1
  174. package/dist/collection/components/payment-form/payment-method-selector.css +348 -145
  175. package/dist/collection/components/payment-form/payment-method-selector.js +5 -3
  176. package/dist/collection/components/payment-form/payment-method-selector.js.map +1 -1
  177. package/dist/collection/components/payment-form/test/payment-form.e2e.js +1 -1
  178. package/dist/collection/components/payment-form/test/payment-form.spec.js +4 -3
  179. package/dist/collection/components/payment-form/test/payment-form.spec.js.map +1 -1
  180. package/dist/collection/components/payment-method-form/get-computed-theme.js +2 -0
  181. package/dist/collection/components/payment-method-form/get-computed-theme.js.map +1 -1
  182. package/dist/collection/components/payment-method-form/payment-method-form.js +19 -11
  183. package/dist/collection/components/payment-method-form/payment-method-form.js.map +1 -1
  184. package/dist/collection/components/payment-method-form/test/payment-method-form.e2e.js +1 -1
  185. package/dist/collection/components/payment-method-form/test/payment-method-form.spec.js +3 -3
  186. package/dist/collection/components/payment-method-form/theme.js.map +1 -1
  187. package/dist/collection/components/payments-list/example.js +12 -0
  188. package/dist/collection/components/payments-list/payments-list.css +574 -1
  189. package/dist/collection/components/payments-list/payments-list.js +130 -27
  190. package/dist/collection/components/payments-list/payments-list.js.map +1 -1
  191. package/dist/collection/components/payments-list/payments-list.stories.js +78 -0
  192. package/dist/collection/components/payments-list/payments-list.stories.js.map +1 -0
  193. package/dist/collection/components/payments-list/test/payments-list.spec.js +31 -18
  194. package/dist/collection/components/payments-list/test/payments-list.spec.js.map +1 -1
  195. package/dist/collection/components/payout-details/example.js +12 -0
  196. package/dist/collection/components/payout-details/payout-details.css +7983 -0
  197. package/dist/collection/components/payout-details/payout-details.js +126 -0
  198. package/dist/collection/components/payout-details/payout-details.js.map +1 -0
  199. package/dist/collection/components/payout-details/payout-details.stories.js +47 -0
  200. package/dist/collection/components/payout-details/payout-details.stories.js.map +1 -0
  201. package/dist/collection/components/payouts-list/example.js +12 -0
  202. package/dist/collection/components/payouts-list/payouts-list.css +576 -0
  203. package/dist/collection/components/payouts-list/payouts-list.js +215 -0
  204. package/dist/collection/components/payouts-list/payouts-list.js.map +1 -0
  205. package/dist/collection/components/payouts-list/payouts-list.stories.js +69 -0
  206. package/dist/collection/components/payouts-list/payouts-list.stories.js.map +1 -0
  207. package/dist/collection/components/proceeds-list/example.js +12 -0
  208. package/dist/collection/components/proceeds-list/proceeds-list.css +576 -0
  209. package/dist/collection/components/proceeds-list/proceeds-list.js +207 -0
  210. package/dist/collection/components/proceeds-list/proceeds-list.js.map +1 -0
  211. package/dist/collection/components/proceeds-list/proceeds-list.stories.js +69 -0
  212. package/dist/collection/components/proceeds-list/proceeds-list.stories.js.map +1 -0
  213. package/dist/collection/components/select-input/select-input.css +344 -141
  214. package/dist/collection/components/select-input/select-input.js +5 -4
  215. package/dist/collection/components/select-input/select-input.js.map +1 -1
  216. package/dist/collection/components/select-input/test/select-input.spec.js +72 -28
  217. package/dist/collection/components/select-input/test/select-input.spec.js.map +1 -1
  218. package/dist/collection/components/table/table-utils.js +8 -0
  219. package/dist/collection/components/table/table-utils.js.map +1 -0
  220. package/dist/collection/components/table/table.css +8077 -0
  221. package/dist/collection/components/table/table.js +215 -0
  222. package/dist/collection/components/table/table.js.map +1 -0
  223. package/dist/collection/components/table/test/table.spec.js +59 -0
  224. package/dist/collection/components/table/test/table.spec.js.map +1 -0
  225. package/dist/collection/components/text-input/test/text-input.spec.js +47 -5
  226. package/dist/collection/components/text-input/test/text-input.spec.js.map +1 -1
  227. package/dist/collection/components/text-input/text-input.css +344 -141
  228. package/dist/collection/components/text-input/text-input.js +2 -2
  229. package/dist/collection/components/text-input/text-input.js.map +1 -1
  230. package/dist/collection/utils/country-options.js +202 -0
  231. package/dist/collection/utils/country-options.js.map +1 -0
  232. package/dist/collection/utils/phone-masks.js +4 -0
  233. package/dist/collection/utils/phone-masks.js.map +1 -0
  234. package/dist/collection/utils/utils.js +47 -2
  235. package/dist/collection/utils/utils.js.map +1 -1
  236. package/dist/components/Api.js +16 -3
  237. package/dist/components/Api.js.map +1 -1
  238. package/dist/{esm/Payment-c86e1e84.js → components/Payout.js} +44 -2
  239. package/dist/components/Payout.js.map +1 -0
  240. package/dist/components/additional-questions.js +51 -0
  241. package/dist/components/additional-questions.js.map +1 -0
  242. package/dist/components/billing-form.js +2 -2
  243. package/dist/components/billing-form.js.map +1 -1
  244. package/dist/components/business-address-form.js +71 -0
  245. package/dist/components/business-address-form.js.map +1 -0
  246. package/dist/components/business-generic-info.js +216 -0
  247. package/dist/components/business-generic-info.js.map +1 -0
  248. package/dist/components/business-owners.js +118 -0
  249. package/dist/components/business-owners.js.map +1 -0
  250. package/dist/components/business-representative.js +91 -0
  251. package/dist/components/business-representative.js.map +1 -0
  252. package/dist/components/details.js +66 -0
  253. package/dist/components/details.js.map +1 -0
  254. package/dist/components/{justifi-business-info.d.ts → form-control-datepart.d.ts} +4 -4
  255. package/dist/components/form-control-datepart.js +8 -0
  256. package/dist/components/form-control-datepart.js.map +1 -0
  257. package/dist/components/form-control-datepart2.js +97 -0
  258. package/dist/components/form-control-datepart2.js.map +1 -0
  259. package/dist/components/form-control-monetary.d.ts +11 -0
  260. package/dist/components/form-control-monetary.js +8 -0
  261. package/dist/components/form-control-monetary.js.map +1 -0
  262. package/dist/components/form-control-monetary2.js +82 -0
  263. package/dist/components/form-control-monetary2.js.map +1 -0
  264. package/dist/components/form-control-number-masked.d.ts +11 -0
  265. package/dist/components/form-control-number-masked.js +8 -0
  266. package/dist/components/form-control-number-masked.js.map +1 -0
  267. package/dist/components/form-control-number-masked2.js +81 -0
  268. package/dist/components/form-control-number-masked2.js.map +1 -0
  269. package/dist/components/form-control-number.d.ts +11 -0
  270. package/dist/components/form-control-number.js +8 -0
  271. package/dist/components/form-control-number.js.map +1 -0
  272. package/dist/components/form-control-number2.js +70 -0
  273. package/dist/components/form-control-number2.js.map +1 -0
  274. package/dist/components/form-control-select.d.ts +11 -0
  275. package/dist/components/form-control-select.js +8 -0
  276. package/dist/components/form-control-select.js.map +1 -0
  277. package/dist/components/form-control-select2.js +66 -0
  278. package/dist/components/form-control-select2.js.map +1 -0
  279. package/dist/components/form-control-text.d.ts +11 -0
  280. package/dist/components/form-control-text.js +8 -0
  281. package/dist/components/form-control-text.js.map +1 -0
  282. package/dist/components/form-control-text2.js +70 -0
  283. package/dist/components/form-control-text2.js.map +1 -0
  284. package/dist/components/index.d.ts +6 -0
  285. package/dist/components/index.esm.js +281 -14
  286. package/dist/components/index.esm.js.map +1 -1
  287. package/dist/components/index.js +1 -1
  288. package/dist/components/index2.js +3231 -0
  289. package/dist/components/index2.js.map +1 -0
  290. package/dist/components/justifi-additional-questions.d.ts +11 -0
  291. package/dist/components/justifi-additional-questions.js +8 -0
  292. package/dist/components/justifi-additional-questions.js.map +1 -0
  293. package/dist/components/justifi-bank-account-form.js +7 -2
  294. package/dist/components/justifi-bank-account-form.js.map +1 -1
  295. package/dist/components/justifi-business-address-form.d.ts +11 -0
  296. package/dist/components/justifi-business-address-form.js +8 -0
  297. package/dist/components/justifi-business-address-form.js.map +1 -0
  298. package/dist/components/justifi-business-form.d.ts +11 -0
  299. package/dist/components/justifi-business-form.js +920 -0
  300. package/dist/components/justifi-business-form.js.map +1 -0
  301. package/dist/components/justifi-business-generic-info.d.ts +11 -0
  302. package/dist/components/justifi-business-generic-info.js +8 -0
  303. package/dist/components/justifi-business-generic-info.js.map +1 -0
  304. package/dist/components/justifi-business-list.d.ts +11 -0
  305. package/dist/components/justifi-business-list.js +215 -0
  306. package/dist/components/justifi-business-list.js.map +1 -0
  307. package/dist/components/justifi-business-owners.d.ts +11 -0
  308. package/dist/components/justifi-business-owners.js +8 -0
  309. package/dist/components/justifi-business-owners.js.map +1 -0
  310. package/dist/components/justifi-business-representative.d.ts +11 -0
  311. package/dist/components/justifi-business-representative.js +8 -0
  312. package/dist/components/justifi-business-representative.js.map +1 -0
  313. package/dist/components/justifi-card-form.js +7 -2
  314. package/dist/components/justifi-card-form.js.map +1 -1
  315. package/dist/components/justifi-details.d.ts +11 -0
  316. package/dist/components/justifi-details.js +8 -0
  317. package/dist/components/justifi-details.js.map +1 -0
  318. package/dist/components/justifi-legal-address-form.d.ts +11 -0
  319. package/dist/components/justifi-legal-address-form.js +8 -0
  320. package/dist/components/justifi-legal-address-form.js.map +1 -0
  321. package/dist/components/justifi-payment-details.d.ts +11 -0
  322. package/dist/components/justifi-payment-details.js +88 -0
  323. package/dist/components/justifi-payment-details.js.map +1 -0
  324. package/dist/components/justifi-payment-form.js +24 -4
  325. package/dist/components/justifi-payment-form.js.map +1 -1
  326. package/dist/components/justifi-payments-list.js +88 -4041
  327. package/dist/components/justifi-payments-list.js.map +1 -1
  328. package/dist/components/justifi-payout-details.d.ts +11 -0
  329. package/dist/components/justifi-payout-details.js +86 -0
  330. package/dist/components/justifi-payout-details.js.map +1 -0
  331. package/dist/components/justifi-payouts-list.d.ts +11 -0
  332. package/dist/components/justifi-payouts-list.js +149 -0
  333. package/dist/components/justifi-payouts-list.js.map +1 -0
  334. package/dist/components/justifi-proceeds-list.d.ts +11 -0
  335. package/dist/components/justifi-proceeds-list.js +182 -0
  336. package/dist/components/justifi-proceeds-list.js.map +1 -0
  337. package/dist/components/justifi-table.d.ts +11 -0
  338. package/dist/components/justifi-table.js +8 -0
  339. package/dist/components/justifi-table.js.map +1 -0
  340. package/dist/components/legal-address-form.js +271 -0
  341. package/dist/components/legal-address-form.js.map +1 -0
  342. package/dist/components/payment-method-form.js +25 -18
  343. package/dist/components/payment-method-form.js.map +1 -1
  344. package/dist/components/payment-method-selector.js +1 -1
  345. package/dist/components/payment-method-selector.js.map +1 -1
  346. package/dist/components/phone-masks.js +7 -0
  347. package/dist/components/phone-masks.js.map +1 -0
  348. package/dist/components/select-input2.js +3 -3
  349. package/dist/components/select-input2.js.map +1 -1
  350. package/dist/components/state-options.js.map +1 -1
  351. package/dist/components/table.js +94 -0
  352. package/dist/components/table.js.map +1 -0
  353. package/dist/components/text-input2.js +2 -2
  354. package/dist/components/text-input2.js.map +1 -1
  355. package/dist/components/utils.js +3911 -0
  356. package/dist/components/utils.js.map +1 -0
  357. package/dist/esm/{Api-a07f0057.js → Api-a95f17ac.js} +17 -4
  358. package/dist/esm/Api-a95f17ac.js.map +1 -0
  359. package/dist/{components/Payment.js → esm/Payout-9a1f2859.js} +44 -2
  360. package/dist/esm/Payout-9a1f2859.js.map +1 -0
  361. package/dist/esm/business-form-schema-5885d3d6.js +146 -0
  362. package/dist/esm/business-form-schema-5885d3d6.js.map +1 -0
  363. package/dist/esm/form-control-datepart_2.entry.js +102 -0
  364. package/dist/esm/form-control-datepart_2.entry.js.map +1 -0
  365. package/dist/esm/form-control-monetary.entry.js +61 -0
  366. package/dist/esm/form-control-monetary.entry.js.map +1 -0
  367. package/dist/esm/form-control-number_3.entry.js +142 -0
  368. package/dist/esm/form-control-number_3.entry.js.map +1 -0
  369. package/dist/esm/form-control-select.entry.js +43 -0
  370. package/dist/esm/form-control-select.entry.js.map +1 -0
  371. package/dist/esm/index-5ed53c20.js +3231 -0
  372. package/dist/esm/index-5ed53c20.js.map +1 -0
  373. package/dist/esm/{index-044f93fc.js → index-609a2c67.js} +145 -21
  374. package/dist/esm/index-609a2c67.js.map +1 -0
  375. package/dist/esm/{index.esm-5624a5ed.js → index.esm-89fe6af9.js} +282 -15
  376. package/dist/esm/index.esm-89fe6af9.js.map +1 -0
  377. package/dist/esm/justifi-additional-questions_5.entry.js +388 -0
  378. package/dist/esm/justifi-additional-questions_5.entry.js.map +1 -0
  379. package/dist/esm/justifi-bank-account-form.entry.js +8 -3
  380. package/dist/esm/justifi-bank-account-form.entry.js.map +1 -1
  381. package/dist/esm/justifi-billing-form_2.entry.js +5 -5
  382. package/dist/esm/justifi-billing-form_2.entry.js.map +1 -1
  383. package/dist/esm/justifi-business-form.entry.js +829 -0
  384. package/dist/esm/justifi-business-form.entry.js.map +1 -0
  385. package/dist/esm/justifi-business-list.entry.js +185 -0
  386. package/dist/esm/justifi-business-list.entry.js.map +1 -0
  387. package/dist/esm/justifi-card-form.entry.js +8 -3
  388. package/dist/esm/justifi-card-form.entry.js.map +1 -1
  389. package/dist/esm/justifi-details.entry.js +26 -0
  390. package/dist/esm/justifi-details.entry.js.map +1 -0
  391. package/dist/esm/justifi-payment-details.entry.js +59 -0
  392. package/dist/esm/justifi-payment-details.entry.js.map +1 -0
  393. package/dist/esm/justifi-payment-form.entry.js +22 -4
  394. package/dist/esm/justifi-payment-form.entry.js.map +1 -1
  395. package/dist/esm/justifi-payment-method-form.entry.js +26 -19
  396. package/dist/esm/justifi-payment-method-form.entry.js.map +1 -1
  397. package/dist/esm/justifi-payments-list.entry.js +78 -4039
  398. package/dist/esm/justifi-payments-list.entry.js.map +1 -1
  399. package/dist/esm/justifi-payout-details.entry.js +57 -0
  400. package/dist/esm/justifi-payout-details.entry.js.map +1 -0
  401. package/dist/esm/justifi-payouts-list.entry.js +119 -0
  402. package/dist/esm/justifi-payouts-list.entry.js.map +1 -0
  403. package/dist/esm/justifi-proceeds-list.entry.js +152 -0
  404. package/dist/esm/justifi-proceeds-list.entry.js.map +1 -0
  405. package/dist/esm/justifi-table.entry.js +64 -0
  406. package/dist/esm/justifi-table.entry.js.map +1 -0
  407. package/dist/esm/loader.js +4 -13
  408. package/dist/esm/loader.js.map +1 -1
  409. package/dist/esm/select-input_2.entry.js +6 -6
  410. package/dist/esm/select-input_2.entry.js.map +1 -1
  411. package/dist/esm/{state-options-188acc34.js → state-options-ece00aa2.js} +1 -1
  412. package/dist/esm/state-options-ece00aa2.js.map +1 -0
  413. package/dist/esm/table-utils-6cdcaa8c.js +11 -0
  414. package/dist/esm/table-utils-6cdcaa8c.js.map +1 -0
  415. package/dist/esm/utils-ad0bbe03.js +3911 -0
  416. package/dist/esm/utils-ad0bbe03.js.map +1 -0
  417. package/dist/esm/utils-cdf0b984.js +28 -0
  418. package/dist/esm/utils-cdf0b984.js.map +1 -0
  419. package/dist/esm/webcomponents.js +4 -7
  420. package/dist/esm/webcomponents.js.map +1 -1
  421. package/dist/types/api/Api.d.ts +1 -1
  422. package/dist/types/api/Business.d.ts +133 -0
  423. package/dist/types/api/Payment.d.ts +1 -0
  424. package/dist/types/api/Payout.d.ts +60 -0
  425. package/dist/types/api/Proceed.d.ts +60 -0
  426. package/dist/types/api/index.d.ts +1 -0
  427. package/dist/types/api/shared.d.ts +11 -0
  428. package/dist/types/components/business-form/additional-questions/additional-questions.d.ts +15 -0
  429. package/dist/types/components/business-form/business-address/business-address-form.d.ts +9 -0
  430. package/dist/types/components/business-form/business-form-schema.d.ts +119 -0
  431. package/dist/types/components/business-form/business-form.d.ts +19 -0
  432. package/dist/types/components/business-form/business-form.stories.d.ts +21 -0
  433. package/dist/types/components/business-form/business-generic-info/business-generic-info.d.ts +15 -0
  434. package/dist/types/components/business-form/business-owners/business-owners.d.ts +33 -0
  435. package/dist/types/components/business-form/business-representative/business-representative-schema.d.ts +15 -0
  436. package/dist/types/components/business-form/business-representative/business-representative.d.ts +11 -0
  437. package/dist/types/components/business-list/business-list.d.ts +35 -0
  438. package/dist/types/components/business-list/business-list.stories.d.ts +9 -0
  439. package/dist/types/components/details/details.d.ts +7 -0
  440. package/dist/types/components/details/utils.d.ts +19 -0
  441. package/dist/types/components/form/form-control-datepart.d.ts +19 -0
  442. package/dist/types/components/form/form-control-monetary.d.ts +17 -0
  443. package/dist/types/components/form/form-control-number-masked.d.ts +19 -0
  444. package/dist/types/components/form/form-control-number.d.ts +18 -0
  445. package/dist/types/components/form/form-control-select.d.ts +21 -0
  446. package/dist/types/components/form/form-control-text.d.ts +18 -0
  447. package/dist/types/components/form/form.d.ts +22 -0
  448. package/dist/types/components/legal-address-form/legal-address-form-schema.d.ts +17 -0
  449. package/dist/types/components/legal-address-form/legal-address-form.d.ts +16 -0
  450. package/dist/types/components/payment-details/payment-details.d.ts +28 -0
  451. package/dist/types/components/payment-details/payment-details.stories.d.ts +8 -0
  452. package/dist/types/components/payment-form/payment-form.d.ts +2 -0
  453. package/dist/types/components/payment-method-form/theme.d.ts +2 -0
  454. package/dist/types/components/payments-list/payments-list.d.ts +30 -5
  455. package/dist/types/components/payments-list/payments-list.stories.d.ts +10 -0
  456. package/dist/types/components/payout-details/payout-details.d.ts +28 -0
  457. package/dist/types/components/payout-details/payout-details.stories.d.ts +8 -0
  458. package/dist/types/components/payouts-list/payouts-list.d.ts +37 -0
  459. package/dist/types/components/payouts-list/payouts-list.stories.d.ts +9 -0
  460. package/dist/types/components/proceeds-list/proceeds-list.d.ts +37 -0
  461. package/dist/types/components/proceeds-list/proceeds-list.stories.d.ts +9 -0
  462. package/dist/types/components/table/table-utils.d.ts +14 -0
  463. package/dist/types/components/table/table.d.ts +28 -0
  464. package/dist/types/components.d.ts +964 -28
  465. package/dist/types/stencil-public-runtime.d.ts +16 -2
  466. package/dist/types/utils/country-options.d.ts +5 -0
  467. package/dist/types/utils/phone-masks.d.ts +3 -0
  468. package/dist/types/utils/utils.d.ts +3 -0
  469. package/dist/webcomponents/p-0237a6bc.entry.js +2 -0
  470. package/dist/webcomponents/p-0237a6bc.entry.js.map +1 -0
  471. package/dist/webcomponents/p-0d6e9f76.entry.js +2 -0
  472. package/dist/webcomponents/p-0d6e9f76.entry.js.map +1 -0
  473. package/dist/webcomponents/p-126146d4.js +2 -0
  474. package/dist/webcomponents/p-126146d4.js.map +1 -0
  475. package/dist/webcomponents/p-239564c6.entry.js +2 -0
  476. package/dist/webcomponents/p-239564c6.entry.js.map +1 -0
  477. package/dist/webcomponents/p-27b15fe8.entry.js +2 -0
  478. package/dist/webcomponents/p-27b15fe8.entry.js.map +1 -0
  479. package/dist/webcomponents/p-2c2cde2d.js +2 -0
  480. package/dist/webcomponents/p-2c2cde2d.js.map +1 -0
  481. package/dist/webcomponents/p-308b6784.js +3 -0
  482. package/dist/webcomponents/p-308b6784.js.map +1 -0
  483. package/dist/webcomponents/p-391b8f1d.entry.js +2 -0
  484. package/dist/webcomponents/p-391b8f1d.entry.js.map +1 -0
  485. package/dist/webcomponents/p-439fc294.entry.js +2 -0
  486. package/dist/webcomponents/p-439fc294.entry.js.map +1 -0
  487. package/dist/webcomponents/{p-0ea23153.js → p-47bc59b5.js} +1 -1
  488. package/dist/webcomponents/p-47bc59b5.js.map +1 -0
  489. package/dist/webcomponents/p-66f010e5.entry.js +2 -0
  490. package/dist/webcomponents/p-66f010e5.entry.js.map +1 -0
  491. package/dist/webcomponents/p-7abb092c.entry.js +2 -0
  492. package/dist/webcomponents/p-7abb092c.entry.js.map +1 -0
  493. package/dist/webcomponents/p-7e3bbe32.entry.js +2 -0
  494. package/dist/webcomponents/p-7e3bbe32.entry.js.map +1 -0
  495. package/dist/webcomponents/p-86464cab.entry.js +2 -0
  496. package/dist/webcomponents/p-86464cab.entry.js.map +1 -0
  497. package/dist/webcomponents/p-8f421dc6.js +2 -0
  498. package/dist/webcomponents/p-8f421dc6.js.map +1 -0
  499. package/dist/webcomponents/p-9346ae33.js +2 -0
  500. package/dist/webcomponents/p-9346ae33.js.map +1 -0
  501. package/dist/webcomponents/p-ab0756ff.js +2 -0
  502. package/dist/webcomponents/p-ab0756ff.js.map +1 -0
  503. package/dist/webcomponents/p-b042bf80.entry.js +2 -0
  504. package/dist/webcomponents/p-b042bf80.entry.js.map +1 -0
  505. package/dist/webcomponents/p-b967262f.entry.js +2 -0
  506. package/dist/webcomponents/p-b967262f.entry.js.map +1 -0
  507. package/dist/webcomponents/p-bf9c2be2.entry.js +2 -0
  508. package/dist/webcomponents/p-bf9c2be2.entry.js.map +1 -0
  509. package/dist/webcomponents/p-c18d876e.entry.js +2 -0
  510. package/dist/webcomponents/p-c18d876e.entry.js.map +1 -0
  511. package/dist/webcomponents/p-c1e4288d.entry.js +2 -0
  512. package/dist/webcomponents/p-c1e4288d.entry.js.map +1 -0
  513. package/dist/webcomponents/p-c46241ba.js +2 -0
  514. package/dist/webcomponents/p-c46241ba.js.map +1 -0
  515. package/dist/webcomponents/p-ccb0e1c5.js +2 -0
  516. package/dist/webcomponents/p-ccb0e1c5.js.map +1 -0
  517. package/dist/webcomponents/p-d1bbf409.entry.js +2 -0
  518. package/dist/webcomponents/p-d1bbf409.entry.js.map +1 -0
  519. package/dist/webcomponents/p-e26d7eea.entry.js +2 -0
  520. package/dist/webcomponents/p-e26d7eea.entry.js.map +1 -0
  521. package/dist/webcomponents/p-e77d8c6e.entry.js +2 -0
  522. package/dist/webcomponents/p-e77d8c6e.entry.js.map +1 -0
  523. package/dist/webcomponents/p-f0acb27e.entry.js +2 -0
  524. package/dist/webcomponents/p-f0acb27e.entry.js.map +1 -0
  525. package/dist/webcomponents/p-f8d49acb.entry.js +2 -0
  526. package/dist/webcomponents/p-f8d49acb.entry.js.map +1 -0
  527. package/dist/webcomponents/p-f9e127a5.js +2 -0
  528. package/dist/webcomponents/p-f9e127a5.js.map +1 -0
  529. package/dist/webcomponents/webcomponents.css +1 -1
  530. package/dist/webcomponents/webcomponents.esm.js +1 -1
  531. package/dist/webcomponents/webcomponents.esm.js.map +1 -1
  532. package/loader/index.d.ts +1 -1
  533. package/package.json +16 -16
  534. package/CHANGELOG.md +0 -208
  535. package/changelog-template.hbs +0 -10
  536. package/dist/cjs/Api-11362403.js.map +0 -1
  537. package/dist/cjs/Payment-ac4dea02.js.map +0 -1
  538. package/dist/cjs/index-34312a38.js.map +0 -1
  539. package/dist/cjs/index.esm-bcf90c56.js.map +0 -1
  540. package/dist/cjs/justifi-business-address.cjs.entry.js +0 -69
  541. package/dist/cjs/justifi-business-address.cjs.entry.js.map +0 -1
  542. package/dist/cjs/justifi-business-info.cjs.entry.js +0 -174
  543. package/dist/cjs/justifi-business-info.cjs.entry.js.map +0 -1
  544. package/dist/cjs/state-options-efeaa587.js.map +0 -1
  545. package/dist/collection/components/business-address/business-address-schema.js.map +0 -1
  546. package/dist/collection/components/business-address/business-address.js +0 -100
  547. package/dist/collection/components/business-address/business-address.js.map +0 -1
  548. package/dist/collection/components/business-address/test/business-address.e2e.js +0 -10
  549. package/dist/collection/components/business-address/test/business-address.e2e.js.map +0 -1
  550. package/dist/collection/components/business-address/test/business-address.spec.js +0 -18
  551. package/dist/collection/components/business-address/test/business-address.spec.js.map +0 -1
  552. package/dist/collection/components/business-info/business-info-schema.js +0 -94
  553. package/dist/collection/components/business-info/business-info-schema.js.map +0 -1
  554. package/dist/collection/components/business-info/business-info.js +0 -168
  555. package/dist/collection/components/business-info/business-info.js.map +0 -1
  556. package/dist/components/Payment.js.map +0 -1
  557. package/dist/components/justifi-business-address.d.ts +0 -11
  558. package/dist/components/justifi-business-address.js +0 -99
  559. package/dist/components/justifi-business-address.js.map +0 -1
  560. package/dist/components/justifi-business-info.js +0 -207
  561. package/dist/components/justifi-business-info.js.map +0 -1
  562. package/dist/esm/Api-a07f0057.js.map +0 -1
  563. package/dist/esm/Payment-c86e1e84.js.map +0 -1
  564. package/dist/esm/index-044f93fc.js.map +0 -1
  565. package/dist/esm/index.esm-5624a5ed.js.map +0 -1
  566. package/dist/esm/justifi-business-address.entry.js +0 -65
  567. package/dist/esm/justifi-business-address.entry.js.map +0 -1
  568. package/dist/esm/justifi-business-info.entry.js +0 -170
  569. package/dist/esm/justifi-business-info.entry.js.map +0 -1
  570. package/dist/esm/polyfills/css-shim.js +0 -1
  571. package/dist/types/components/bank-account-form/bank-account-form.d.ts +0 -56
  572. package/dist/types/components/business-address/business-address.d.ts +0 -11
  573. package/dist/types/components/business-info/business-info-schema.d.ts +0 -42
  574. package/dist/types/components/business-info/business-info.d.ts +0 -20
  575. package/dist/types/components/card-form/card-form.d.ts +0 -62
  576. package/dist/webcomponents/p-0969db8f.entry.js +0 -2
  577. package/dist/webcomponents/p-0969db8f.entry.js.map +0 -1
  578. package/dist/webcomponents/p-0ea23153.js.map +0 -1
  579. package/dist/webcomponents/p-1ca0646b.js +0 -2
  580. package/dist/webcomponents/p-1ca0646b.js.map +0 -1
  581. package/dist/webcomponents/p-1f151d49.js +0 -2
  582. package/dist/webcomponents/p-1f151d49.js.map +0 -1
  583. package/dist/webcomponents/p-255b1284.entry.js +0 -2
  584. package/dist/webcomponents/p-255b1284.entry.js.map +0 -1
  585. package/dist/webcomponents/p-3aa91155.js +0 -3
  586. package/dist/webcomponents/p-3aa91155.js.map +0 -1
  587. package/dist/webcomponents/p-4ecc9860.entry.js +0 -2
  588. package/dist/webcomponents/p-4ecc9860.entry.js.map +0 -1
  589. package/dist/webcomponents/p-90c0d9e1.entry.js +0 -2
  590. package/dist/webcomponents/p-90c0d9e1.entry.js.map +0 -1
  591. package/dist/webcomponents/p-bd5352d6.entry.js +0 -2
  592. package/dist/webcomponents/p-bd5352d6.entry.js.map +0 -1
  593. package/dist/webcomponents/p-c903cc5a.entry.js +0 -2
  594. package/dist/webcomponents/p-c903cc5a.entry.js.map +0 -1
  595. package/dist/webcomponents/p-d87b0711.entry.js +0 -2
  596. package/dist/webcomponents/p-d87b0711.entry.js.map +0 -1
  597. package/dist/webcomponents/p-dbf7100f.entry.js +0 -2
  598. package/dist/webcomponents/p-dbf7100f.entry.js.map +0 -1
  599. package/dist/webcomponents/p-e0054bc3.js +0 -2
  600. package/dist/webcomponents/p-e0054bc3.js.map +0 -1
  601. package/dist/webcomponents/p-f30d1567.entry.js +0 -2
  602. package/dist/webcomponents/p-f30d1567.entry.js.map +0 -1
  603. /package/dist/types/components/{business-address/business-address-schema.d.ts → business-form/business-address/business-address-form-schema.d.ts} +0 -0
@@ -1 +1 @@
1
- {"version":3,"names":["patchBrowser","importMeta","url","opts","resourcesUrl","URL","href","promiseResolve","then","options","bootstrapLazy","bankAccount","card","email","iframeOrigin","clientId","accountId","submitButtonText","submitButtonEnabled","isLoading","selectedPaymentMethodType","allowedPaymentMethodTypes","fillBillingForm","enableSubmitButton","businessAddress","businessAddressErrors","submit","authToken","businessId","businessInfoPrefillData","businessInfo","businessInfoFieldsErrors","paymentMethodFormType","paymentMethodFormValidationMode","singleLine","height","tokenize","validate","resize","validationMode","internalStyleOverrides","auth","payments","name","label","defaultValue","error","internalValue","legend","billingFields","billingFieldsErrors","fill","getValues","paymentMethodTypes"],"sources":["./node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v3.3.0 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, plt, win, doc, promiseResolve, H } from '@stencil/core';\n/**\n * Helper method for querying a `meta` tag that contains a nonce value\n * out of a DOM's head.\n *\n * @param doc The DOM containing the `head` to query against\n * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag\n * exists or the tag has no content.\n */\nfunction queryNonceMetaTagContent(doc) {\n var _a, _b, _c;\n return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name=\"csp-nonce\"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;\n}\n// TODO(STENCIL-661): Remove code related to the dynamic import shim\nconst getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\\s|-/g, '_')}`;\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n // TODO(STENCIL-659): Remove code implementing the CSS variable shim\n if (BUILD.cssVarShim) {\n // shim css vars\n // TODO(STENCIL-659): Remove code implementing the CSS variable shim\n plt.$cssShim$ = win.__cssshim;\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n if (BUILD.profile && !performance.mark) {\n // not all browsers support performance.mark/measure (Safari 10)\n // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,\n // simply stub the implementations out.\n // TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)\n // @ts-ignore\n performance.mark = performance.measure = () => {\n /*noop*/\n };\n performance.getEntriesByName = () => [];\n }\n // @ts-ignore\n const scriptElm = \n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {};\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n if (BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {\n // Safari < v11 support: This IF is true if it's Safari below v11.\n // This fn cannot use async/await since Safari didn't support it until v11,\n // however, Safari 10 did support modules. Safari 10 also didn't support \"nomodule\",\n // so both the ESM file and nomodule file would get downloaded. Only Safari\n // has 'onbeforeload' in the script, and \"history.scrollRestoration\" was added\n // to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.\n // IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.\n return {\n then() {\n /* promise noop */\n },\n };\n }\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n if (!BUILD.safari10 && importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n // TODO(STENCIL-663): Remove code related to deprecated `safari10` field.\n }\n else if (BUILD.dynamicImportShim || BUILD.safari10) {\n opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href;\n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n if (BUILD.dynamicImportShim) {\n patchDynamicImport(opts.resourcesUrl, scriptElm);\n }\n // TODO(STENCIL-661): Remove code related to the dynamic import shim\n if (BUILD.dynamicImportShim && !win.customElements) {\n // module support, but no custom elements support (Old Edge)\n // @ts-ignore\n return import(/* webpackChunkName: \"polyfills-dom\" */ './dom.js').then(() => opts);\n }\n }\n return promiseResolve(opts);\n};\n// TODO(STENCIL-661): Remove code related to the dynamic import shim\nconst patchDynamicImport = (base, orgScriptElm) => {\n const importFunctionName = getDynamicImportFunction(NAMESPACE);\n try {\n // test if this browser supports dynamic imports\n // There is a caching issue in V8, that breaks using import() in Function\n // By generating a random string, we can workaround it\n // Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info\n win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);\n }\n catch (e) {\n // this shim is specifically for browsers that do support \"esm\" imports\n // however, they do NOT support \"dynamic\" imports\n // basically this code is for old Edge, v18 and below\n const moduleMap = new Map();\n win[importFunctionName] = (src) => {\n var _a;\n const url = new URL(src, base).href;\n let mod = moduleMap.get(url);\n if (!mod) {\n const script = doc.createElement('script');\n script.type = 'module';\n script.crossOrigin = orgScriptElm.crossOrigin;\n script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {\n type: 'application/javascript',\n }));\n // Apply CSP nonce to the script tag if it exists\n const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);\n if (nonce != null) {\n script.setAttribute('nonce', nonce);\n }\n mod = new Promise((resolve) => {\n script.onload = () => {\n resolve(win[importFunctionName].m);\n script.remove();\n };\n });\n moduleMap.set(url, mod);\n doc.head.appendChild(script);\n }\n return mod;\n };\n }\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"mappings":"sFAmBA,MAAMA,EAAe,KAkCjB,MAAMC,cAAyBC,IAC/B,MAAMC,EAAqE,GAiB3E,GAAuBF,IAAe,GAAI,CACtCE,EAAKC,aAAe,IAAIC,IAAI,IAAKJ,GAAYK,IAGrD,CAcI,OAAOC,EAAeJ,EAAK,ECrF/BH,IAAeQ,MAAKC,GAEXC,EAAc,0CAAuC,CAAAC,YAAA,mBAAAC,KAAA,IAAAC,MAAA,IAAAC,aAAA,oBAAAC,SAAA,gBAAAC,UAAA,iBAAAC,iBAAA,yBAAAC,oBAAA,KAAAC,UAAA,KAAAC,0BAAA,KAAAC,0BAAA,KAAAC,gBAAA,KAAAC,mBAAA,oHAAAC,gBAAA,KAAAC,sBAAA,KAAAC,OAAA,8FAAAC,UAAA,iBAAAC,WAAA,kBAAAC,wBAAA,KAAAC,aAAA,KAAAC,yBAAA,KAAAL,OAAA,oGAAAM,sBAAA,+BAAAC,gCAAA,6CAAAnB,aAAA,oBAAAoB,WAAA,kBAAAC,OAAA,KAAAC,SAAA,KAAAC,SAAA,KAAAC,OAAA,wDAAAC,eAAA,yBAAAzB,aAAA,uBAAA0B,uBAAA,KAAAJ,SAAA,KAAAC,SAAA,KAAAC,OAAA,kMAAAC,eAAA,yBAAAzB,aAAA,uBAAAoB,WAAA,kBAAAM,uBAAA,KAAAJ,SAAA,KAAAC,SAAA,KAAAC,OAAA,sMAAAtB,UAAA,iBAAAyB,KAAA,KAAAC,SAAA,2CAAAC,KAAA,IAAAC,MAAA,IAAAC,aAAA,oBAAAC,MAAA,IAAArC,QAAA,KAAAsC,cAAA,wBAAAJ,KAAA,IAAAC,MAAA,IAAAC,aAAA,oBAAAC,MAAA,IAAAC,cAAA,mDAAAC,OAAA,IAAAC,cAAA,KAAAC,oBAAA,KAAAC,KAAA,KAAAd,SAAA,KAAAe,UAAA,uFAAAC,mBAAA,KAAAjC,0BAAA,wCAAAX"}
1
+ {"version":3,"names":["patchBrowser","importMeta","url","opts","resourcesUrl","URL","href","promiseResolve","then","options","bootstrapLazy","authToken","businessId","isLoading","bankAccount","card","email","iframeOrigin","clientId","accountId","submitButtonText","submitButtonEnabled","hasLoadedFonts","selectedPaymentMethodType","allowedPaymentMethodTypes","fillBillingForm","enableSubmitButton","loadFontsOnParent","validationMode","internalStyleOverrides","tokenize","validate","resize","businesses","loading","errorMessage","paging","singleLine","entity","paymentId","payment","rowData","columnData","entityId","rowClickHandler","payments","payoutId","payout","payouts","proceeds","name","label","defaultValue","error","internalValue","legend","billingFields","billingFieldsErrors","fill","getValues","paymentMethodTypes","inputHandler","paymentMethodFormType","paymentMethodFormValidationMode","height","disabled","mask","input","onFormUpdate","errors","defaultValues","address","type","formController","representative","business","isEditing","owners","legal_address","additional_questions"],"sources":["../node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.1.0 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, doc, promiseResolve, H } from '@stencil/core';\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n if (BUILD.profile && !performance.mark) {\n // not all browsers support performance.mark/measure (Safari 10)\n // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,\n // simply stub the implementations out.\n // TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)\n // @ts-ignore\n performance.mark = performance.measure = () => {\n /*noop*/\n };\n performance.getEntriesByName = () => [];\n }\n // @ts-ignore\n const scriptElm = BUILD.scriptDataOpts\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {};\n if (importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n }\n return promiseResolve(opts);\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"mappings":"sFAKA,MAAMA,EAAe,KAyBjB,MAAMC,cAAyBC,IAC/B,MAAMC,EAAqE,GAC3E,GAAIF,IAAe,GAAI,CACnBE,EAAKC,aAAe,IAAIC,IAAI,IAAKJ,GAAYK,IACrD,CACI,OAAOC,EAAeJ,EAAK,EC/B/BH,IAAeQ,MAAKC,GAEXC,EAAc,2CAAuC,CAAAC,UAAA,iBAAAC,WAAA,kBAAAC,UAAA,mDAAAC,YAAA,mBAAAC,KAAA,IAAAC,MAAA,IAAAC,aAAA,oBAAAC,SAAA,gBAAAC,UAAA,iBAAAC,iBAAA,yBAAAC,oBAAA,KAAAC,eAAA,KAAAT,UAAA,KAAAU,0BAAA,KAAAC,0BAAA,KAAAC,gBAAA,KAAAC,mBAAA,KAAAC,kBAAA,qHAAAC,eAAA,yBAAAX,aAAA,uBAAAY,uBAAA,KAAAC,SAAA,KAAAC,SAAA,KAAAC,OAAA,sMAAAb,UAAA,iBAAAR,UAAA,iBAAAsB,WAAA,KAAAC,QAAA,KAAAC,aAAA,KAAAC,OAAA,gDAAAR,eAAA,yBAAAX,aAAA,uBAAAoB,WAAA,kBAAAR,uBAAA,KAAAC,SAAA,KAAAC,SAAA,KAA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,aAAA,oBAAAS,aAAA,KAAAI,SAAA,IAAAE,MAAA,+BAAAhB,MAAA,IAAAD,KAAA,IAAAG,MAAA,IAAAD,aAAA,oBAAAa,SAAA,IAAAJ,aAAA,KAAAM,MAAA,4DAAAC,aAAA,KAAAC,OAAA,IAAAC,cAAA,qBAAAC,QAAA,mCAAApB,MAAA,IAAAD,KAAA,IAAAG,MAAA,IAAAD,aAAA,oBAAAoB,KAAA,IAAAX,aAAA,KAAAI,SAAA,6DAAAQ,eAAA,KAAAJ,OAAA,KAAAK,eAAA,2CAAAD,eAAA,KAAAJ,OAAA,KAAAM,SAAA,qCAAAF,eAAA,KAAAG,UAAA,iBAAAP,OAAA,KAAAQ,OAAA,wCAAAJ,eAAA,KAAAlB,OAAA,IAAAc,OAAA,KAAAS,cAAA,0CAAAL,eAAA,KAAAJ,OAAA,KAAAU,qBAAA,UAAAtE"}
package/loader/index.d.ts CHANGED
@@ -8,7 +8,7 @@ export interface CustomElementsDefineOptions {
8
8
  ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
9
9
  rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
10
10
  }
11
- export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): Promise<void>;
11
+ export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): void;
12
12
  export declare function applyPolyfills(): Promise<void>;
13
13
 
14
14
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@justifi/webcomponents",
3
- "version": "4.2.2",
3
+ "version": "4.5.0",
4
4
  "description": "JustiFi Web Components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/components/index.js",
@@ -21,30 +21,26 @@
21
21
  "loader/"
22
22
  ],
23
23
  "scripts": {
24
- "auto-changelog": "auto-changelog",
24
+ "build": "npm run build:prod",
25
25
  "build:dev": "NODE_ENV=dev stencil build --docs",
26
26
  "build:staging": "NODE_ENV=staging stencil build --docs",
27
27
  "build:prod": "NODE_ENV=prod stencil build --docs",
28
- "start": "NODE_ENV=dev concurrently -c \"bgBlue.bold,bgMagenta.bold,bgGreen.bold\" \"yarn run start-stencil\" \"yarn run storybook\"",
29
- "start-stencil": "stencil build --watch --serve --no-open",
28
+ "start": "concurrently --restart-tries 3 -c \"bgBlue.bold,bgMagenta.bold,bgGreen.bold\" \"npm run start-stencil\" \"npm run storybook\"",
29
+ "start-stencil": "NODE_ENV=dev stencil build --watch --serve --no-open",
30
30
  "test": "stencil test --spec",
31
31
  "test:watch": "stencil test --spec --watchAll",
32
32
  "test:e2e": "stencil test --e2e",
33
33
  "generate": "stencil generate",
34
- "storybook": "storybook dev -p 6006 --quiet",
34
+ "storybook": "NODE_ENV=dev storybook dev -p 6006 --quiet",
35
35
  "build-storybook": "storybook build -o ../docs"
36
36
  },
37
- "auto-changelog": {
38
- "output": "../CHANGELOG.md",
39
- "hideCredtis": "true",
40
- "commitLimit": "true"
41
- },
42
37
  "dependencies": {
43
- "@stencil/core": "^3.3.0",
44
- "@stencil/react-output-target": "^0.3.1",
38
+ "@stencil/core": "^4.0.5",
45
39
  "bootstrap": "^5.2.3",
46
40
  "date-fns": "^2.29.3",
47
41
  "dinero.js": "^1.9.1",
42
+ "imask": "^7.1.3",
43
+ "rxjs": "^7.8.1",
48
44
  "ts-dedent": "^2.2.0",
49
45
  "uuid": "^9.0.0",
50
46
  "yup": "^1.0.0"
@@ -54,7 +50,11 @@
54
50
  "@babel/preset-react": "^7.18.6",
55
51
  "@babel/preset-typescript": "^7.21.5",
56
52
  "@pxtrn/storybook-addon-docs-stencil": "^6.4.1",
53
+ "@stencil/angular-output-target": "^0.7.1",
54
+ "@stencil/react-output-target": "^0.5.3",
57
55
  "@stencil/sass": "^3.0.1",
56
+ "@stencil/store": "^2.0.8",
57
+ "@stencil/vue-output-target": "^0.8.6",
58
58
  "@storybook/addon-actions": "^7.0.4",
59
59
  "@storybook/addon-essentials": "^7.0.4",
60
60
  "@storybook/addon-interactions": "^7.0.4",
@@ -67,16 +67,16 @@
67
67
  "@types/node": "^20.1.4",
68
68
  "@types/react": "^18.0.37",
69
69
  "@types/react-dom": "^18.0.11",
70
- "auto-changelog": "^2.4.0",
71
70
  "concurrently": "^7.6.0",
71
+ "dotenv": "^16.3.1",
72
72
  "jest": "^27.4.5",
73
73
  "jest-cli": "^27.4.5",
74
74
  "puppeteer": "^10.0.0",
75
75
  "react": "^18.2.0",
76
76
  "react-dom": "^18.2.0",
77
- "release-it": "^15.6.0",
78
77
  "rollup-plugin-replace": "^2.2.0",
79
78
  "storybook": "^7.0.4"
80
79
  },
81
- "license": "MIT"
82
- }
80
+ "license": "MIT",
81
+ "gitHead": "915ae507cf0233c564b6e0689edb55e313ee7993"
82
+ }
package/CHANGELOG.md DELETED
@@ -1,208 +0,0 @@
1
- ### Changelog
2
-
3
- All notable changes to this project will be documented in this file. Dates are displayed in UTC.
4
-
5
- Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
-
7
- #### 4.2.2
8
-
9
- > 03 July 2023
10
-
11
- - Hardcode production fallback `iframeOrigin` as it is not being set as intended via environment variables
12
-
13
- #### 4.2.1
14
-
15
- > 30 June 2023
16
-
17
- - Use environment variables to set `iframeOrigin` in production build
18
-
19
- #### 4.2.0
20
-
21
- > 27 June 2023
22
-
23
- - Add `resize` method to `CardForm` and `BankAccountForm`
24
-
25
- #### 4.1.6
26
-
27
- > 23 June 2023
28
-
29
- - Add spinner indicator when `PaymmentForm` is submitting.
30
- - Add `--jfi-submit-button-color-loading`, `--jfi-submit-button-background-color-loading` and `--jfi-submit-button-border-color-loading` variables to style the new loading state.
31
-
32
- #### 4.0.0
33
-
34
- > 08 May 2023
35
-
36
- - Changed: `CardForm.tokenize`, `BankAccountForm.tokenize` and `PaymentForm.submitted` will now return the full response from the `payment_methods` endpoint instead of just `errors` or `token`. See the API documentation to see payment method CREATE sample responses: https://developer.justifi.ai/tag/Payment-Methods#operation/CreatePaymentMethod
37
-
38
- Migration notes:
39
-
40
- - Errors - instead of getting errors via `data.errors[0]`, which was an error code, you will now need to use `data.error.code`. There is also now a human readable message (`data.error.message`)
41
- - Success/created payment method - instead of getting the token via `data.token`, it is nested within a full payment method response. In order to get the token you will need to use `data.card.token` or `data.bank_account.token` depending on what payment method type is being tokenized
42
-
43
- #### 3.3.5
44
-
45
- > 11 May 2023
46
-
47
- - Add `:active` state to Submit button for `PaymentForm`
48
-
49
- #### 3.2.5
50
-
51
- > 11 May 2023
52
-
53
- - Add styling and variables for radio buttons and submit button in `PaymentForm`
54
-
55
- #### 3.1.5
56
-
57
- > 04 May 2023
58
-
59
- - Add missing dependencies.
60
-
61
- #### 3.1.4
62
-
63
- > 04 May 2023
64
-
65
- - Fix missing url to show recently added introduction page.
66
-
67
- #### 3.0.4
68
-
69
- > 08 May 2023
70
-
71
- - Add Storybook landing page with general info
72
-
73
- #### 3.0.3
74
-
75
- > 04 May 2023
76
-
77
- - Fix unscoped reset styles issue, where bootstrap \_reboot.scss was being included in webcomponents.css
78
-
79
- #### 3.0.2
80
-
81
- > 04 May 2023
82
-
83
- - Fix output pointing to empty file for stencil dist.
84
-
85
- #### 3.0.1
86
-
87
- > 3 May 2023
88
-
89
- - Fix type error where `contentWindow` is `undefined`
90
-
91
- #### 3.0.0
92
-
93
- > 27 April 2023
94
-
95
- - Remove `submit` method
96
- - Add internal submit button with disabled state
97
- - Add `submitted` event and emit when form is submitted and a response comes back from payment methods endpoint
98
-
99
- #### 2.0.2
100
-
101
- > 25 April 2023
102
-
103
- - Improved documentation for `BankAccountForm`
104
- - Improved documentation for `CardForm`
105
- - Fix how controls and props are displayed and work for `CardForm`
106
-
107
- #### 2.0.1
108
-
109
- > 24 April 2023
110
-
111
- - Fix: PaymentForm submit action in storybook
112
- - Fix: include input-invalid css parts, and export them
113
-
114
- #### 2.0.0
115
-
116
- > 24 April 2023
117
-
118
- - Remove prop `styleOverrides` from `CardForm`, `BankAccountForm` and `PaymentMethodForm` components
119
- - Add CSS variable theming for `CardForm`, `BankAccountForm`, `PaymentMethodForm` and `PaymentForm`
120
- - Add CSS `part` and `exportparts` to `TextInput` and `SelectInput`
121
- - Add `exportparts` to `BillingForm` so that `TextInput` and `SelectInput` CSS `exportparts` are forwarded
122
-
123
- #### 1.0.0
124
-
125
- > 24 April 2023
126
-
127
- - Fix broken prop controller in Storybook UI for card-form component
128
- - rename variable `validationStrategy` and prop `validation-strategy` to `validationMode` and `validation-mode` respectively
129
-
130
- #### 0.6.1
131
-
132
- > 24 April 2023
133
-
134
- - Remove hardcoded `iframeOrigin` from `PaymentForm` story
135
-
136
- #### 0.6.0
137
-
138
- > 21 April 2023
139
-
140
- - Add `@stencil/sass` plugin `stencil-library`
141
- - Add Twitter Bootstrap to `stencil-library`
142
- - Add Bootstrap styling to `TextInput`, `SelectInput`, `BillingForm`, `PaymentForm`, and `PaymentMethodSelector`
143
-
144
- #### 0.5.0
145
-
146
- > 21 April 2023
147
-
148
- - Allow `singleLine` to be passed to `CardForm` to render a single-line variant of `CardForm`
149
-
150
- #### 0.4.0
151
-
152
- > 18 April 2023
153
-
154
- - Allow `legend` to be passed and conditionally rendered for `BillingForm`
155
-
156
- #### 0.3.2
157
-
158
- > 12 April 2023
159
-
160
- - Add `PaymentForm` component
161
- - Allow `iframeOrigin` to be passed to `PaymentForm`, `CardForm`, `BankAccountForm`, and `PaymentMethodForm`
162
-
163
- #### 0.2.2
164
-
165
- > 6 April 2023
166
-
167
- - Update documentation and documentation examples to use cdn.jsdelivr instead of unpkg
168
-
169
- #### 0.2.1
170
-
171
- > 28 March 2023
172
-
173
- - Pass component version along to tokenize calls so that it can be used in error reporting
174
-
175
- #### 0.2.0
176
-
177
- > 13 March 2023
178
-
179
- - Add BillingForm component poc
180
- - Add TextInput component
181
- - Add SelectInput component
182
-
183
- #### 0.1.15
184
-
185
- > 14 February 2023
186
-
187
- - FE-48 Add the LICENSE [`#26`](https://github.com/justifi-tech/web-component-library/pull/26)
188
- - update PR templates main README, and add changelogs [`#23`](https://github.com/justifi-tech/web-component-library/pull/23)
189
- - Yarn upgrade [`#22`](https://github.com/justifi-tech/web-component-library/pull/22)
190
- - Add missing properties to theme [`#21`](https://github.com/justifi-tech/web-component-library/pull/21)
191
- - Bump decode-uri-component from 0.2.0 to 0.2.2 in /react-library [`#6`](https://github.com/justifi-tech/web-component-library/pull/6)
192
- - Update examples to include payment method metadata and code comments [`#19`](https://github.com/justifi-tech/web-component-library/pull/19)
193
- - Check for styleOverrides before attempting to parse [`#18`](https://github.com/justifi-tech/web-component-library/pull/18)
194
- - Update README files [`#17`](https://github.com/justifi-tech/web-component-library/pull/17)
195
- - Update READMEs and release new react-library version [`#16`](https://github.com/justifi-tech/web-component-library/pull/16)
196
- - Allow styleOverrides to be passed into cardForm and bankAccountForm [`#15`](https://github.com/justifi-tech/web-component-library/pull/15)
197
- - FE-18: Iframe content height reporting [`#14`](https://github.com/justifi-tech/web-component-library/pull/14)
198
- - Update web component props for `v2` payments-js [`#13`](https://github.com/justifi-tech/web-component-library/pull/13)
199
- - Fix react components [`#11`](https://github.com/justifi-tech/web-component-library/pull/11)
200
- - Fix card form component events [`#10`](https://github.com/justifi-tech/web-component-library/pull/10)
201
- - Eng-2080: Add bank account web component [`#7`](https://github.com/justifi-tech/web-component-library/pull/7)
202
- - ENG-1960 publish libraries to npmjs.org [`#4`](https://github.com/justifi-tech/web-component-library/pull/4)
203
- - Package & Publish libraries [`#3`](https://github.com/justifi-tech/web-component-library/pull/3)
204
- - Restructure project and link react and stencil libraries [`#2`](https://github.com/justifi-tech/web-component-library/pull/2)
205
- - Terraform and GitHub Actions [`#1`](https://github.com/justifi-tech/web-component-library/pull/1)
206
- - init [`27806f7`](https://github.com/justifi-tech/web-component-library/commit/27806f7bff97247033800c7743570ebeec4080d7)
207
- - add: release-it package [`e0b3711`](https://github.com/justifi-tech/web-component-library/commit/e0b371184774dd7dead0243cd645640175d6b87f)
208
- - initial commit [`c147b58`](https://github.com/justifi-tech/web-component-library/commit/c147b580aaf95eb22ffe6ad9b0217954890dd1d4)
@@ -1,10 +0,0 @@
1
- {{#each releases}}
2
- # {{title}}
3
- [{{isoDate}}]
4
-
5
- {{#commit-list commits heading='### Commits'}}
6
- - {{subject}} {{#if href}}[`{{shorthash}}`]({{href}}){{/if}}
7
- {{/commit-list}}
8
-
9
- {{/each}}
10
-
@@ -1 +0,0 @@
1
- {"file":"Api-11362403.js","mappings":";;AAAA;AACA;AACA;AACA,IAAI,eAAe,CAAC;AACpB,MAAM,KAAK,GAAG,IAAI,UAAU,CAAC,EAAE,CAAC,CAAC;AAClB,SAAS,GAAG,GAAG;AAC9B;AACA,EAAE,IAAI,CAAC,eAAe,EAAE;AACxB;AACA,IAAI,eAAe,GAAG,OAAO,MAAM,KAAK,WAAW,IAAI,MAAM,CAAC,eAAe,IAAI,MAAM,CAAC,eAAe,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AACrH;AACA,IAAI,IAAI,CAAC,eAAe,EAAE;AAC1B,MAAM,MAAM,IAAI,KAAK,CAAC,0GAA0G,CAAC,CAAC;AAClI,KAAK;AACL,GAAG;AACH;AACA,EAAE,OAAO,eAAe,CAAC,KAAK,CAAC,CAAC;AAChC;;AChBA;AACA;AACA;AACA;AACA;AACA,MAAM,SAAS,GAAG,EAAE,CAAC;AACrB;AACA,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,EAAE,CAAC,EAAE;AAC9B,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,KAAK,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AACpD,CAAC;AACD;AACO,SAAS,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,EAAE;AACjD;AACA;AACA,EAAE,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,GAAG,SA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AAE,CAAC,CAAC;AACrD;;;;","names":["uuidv4"],"sources":["./node_modules/uuid/dist/esm-browser/rng.js","./node_modules/uuid/dist/esm-browser/stringify.js","./node_modules/uuid/dist/esm-browser/native.js","./node_modules/uuid/dist/esm-browser/v4.js","./src/api/Api.ts"],"sourcesContent":["// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\nlet getRandomValues;\nconst rnds8 = new Uint8Array(16);\nexport default function rng() {\n // lazy load so that environments that need to polyfill have a chance to do so\n if (!getRandomValues) {\n // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation.\n getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);\n\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n }\n\n return getRandomValues(rnds8);\n}","import validate from './validate.js';\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nconst byteToHex = [];\n\nfor (let i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).slice(1));\n}\n\nexport function unsafeStringify(arr, offset = 0) {\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();\n}\n\nfunction stringify(arr, offset = 0) {\n const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n\n return uuid;\n}\n\nexport default stringify;","const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);\nexport default {\n randomUUID\n};","import native from './native.js';\nimport rng from './rng.js';\nimport { unsafeStringify } from './stringify.js';\n\nfunction v4(options, buf, offset) {\n if (native.randomUUID && !buf && !options) {\n return native.randomUUID();\n }\n\n options = options || {};\n const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (let i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return unsafeStringify(rnds);\n}\n\nexport default v4;","import { v4 as uuidv4 } from 'uuid';\nimport { IPagination } from './Pagination';\n\nexport interface IApiResponse<T> {\n data: T;\n error?: IErrorObject | IServerError;\n page_info?: IPagination;\n errors?: string[];\n id: number;\n type: string;\n}\n\nexport type IServerError = string;\n\nexport interface IErrorObject {\n message: string;\n code: string;\n param?: string;\n}\n\nexport interface IApiResponseCollection<T> extends IApiResponse<T> {\n page_info: IPagination;\n}\n\nconst Api = (authToken: string) => {\n const apiOrigin = 'https://justifi.ai';\n\n async function getAuthorizationHeader() {\n return {\n 'Authorization': `Bearer ${authToken}`,\n 'Idempotency-Key': uuidv4(),\n 'Content-Type': 'application/json',\n };\n }\n\n async function makeRequest(endpoint: string, method: string, params?: any, body?: any, signal?: AbortSignal) {\n const url = `${apiOrigin}/v1/${endpoint}`;\n const requestUrl = params ? `${url}?${new URLSearchParams(params)}` : url;\n const response = await fetch(requestUrl, {\n method: method,\n headers: await getAuthorizationHeader(),\n body: body,\n signal: signal,\n });\n\n if (response) {\n return response.status === 204 ? {} : response.json();\n }\n handleError(requestUrl);\n }\n\n async function get(endpoint: string, params?: any, signal?: AbortSignal) {\n return makeRequest(endpoint, 'GET', params, null, signal);\n }\n\n async function post(endpoint: string, body?: any, params?: any, signal?: AbortSignal) {\n return makeRequest(endpoint, 'POST', params, body, signal);\n }\n\n async function patch(endpoint: string, body?: any, params?: any, signal?: AbortSignal) {\n return makeRequest(endpoint, 'PATCH', params, body, signal);\n }\n\n async function destroy(endpoint: string, params?: any, signal?: AbortSignal) {\n return makeRequest(endpoint, 'DELETE', params, null, signal);\n }\n\n return { get, post, patch, destroy };\n};\n\nfunction handleError(requestUrl: string): void {\n console.error(`Error fetching from ${requestUrl}`);\n}\n\nexport default Api;\n"],"version":3}
@@ -1 +0,0 @@
1
- {"file":"Payment-ac4dea02.js","mappings":";;AAAA,IAAY,eAGX;AAHD,WAAY,eAAe;EACzB,0CAAuB,CAAA;EACvB,oCAAiB,CAAA;AACnB,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B;AAEWA;AAAZ,WAAY,kBAAkB;EAC5B,mCAAa,CAAA;EACb,iDAA2B,CAAA;AAC7B,CAAC,EAHWA,0BAAkB,KAAlBA,0BAAkB,QAG7B;AAED,IAAY,eAQX;AARD,WAAY,eAAe;EACzB,sCAAmB,CAAA;EACnB,4CAAyB,CAAA;EACzB,0CAAuB,CAAA;EACvB,oCAAiB,CAAA;EACjB,wCAAqB,CAAA;EACrB,oDAAiC,CAAA;EACjC,4DAAyC,CAAA;AAC3C,CAAC,EARW,eAAe,KAAf,eAAe,QAQ1B;AAED,IAAY,uBAIX;AAJD,WAAY,uBAAuB;;EAEjC,wCAAa,CAAA;EACb,wCAAa,CAAA;AACf,CAAC,EAJW,uBAAuB,KAAvB,uBAAuB,QAIlC;MAyDY,OAAO;EA0BlB,YAAY,OAAiB;IA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AC7B,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;IACrC,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;GACtC;EAED,IAAI,cAAc;IAChB,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,IAAI,OAAO,CAAC,MAAM,KAAK,uBAAuB,CAAC,IAAI,CAAC,CAAC;;IAE5F,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;MAClB,OAAO,IAAI,CAAC;KACb;SAAM,IAAI,IAAI,EAAE;MACf,OAAO,uBAAuB,CAAC,IAAI,CAAC;KACrC;SAAM;MACL,OAAO,uBAAuB,CAAC,IAAI,CAAC;KACrC;GACF;;;;;","names":["PaymentMethodTypes"],"sources":["./src/api/Payment.ts"],"sourcesContent":["export enum CaptureStrategy {\n automatic = 'automatic',\n manual = 'manual',\n}\n\nexport enum PaymentMethodTypes {\n card = 'card',\n bankAccount = 'bankAccount',\n}\n\nexport enum PaymentStatuses {\n pending = 'pending',\n authorized = 'authorized',\n succeeded = 'succeeded',\n failed = 'failed',\n disputed = 'disputed',\n fully_refunded = 'fully_refunded',\n partially_refunded = 'partially_refunded',\n}\n\nexport enum PaymentDisputedStatuses {\n // if a dispute is 'won', we don't show a dispute status, just general status\n lost = 'lost',\n open = 'open',\n}\n\nexport interface IPaymentMethod {\n card?: ICard;\n}\n\nexport type CardBrand = 'american_express' | 'diners_club' | 'discover' | 'jcb' | 'mastercard' | 'china_unionpay' | 'visa' | 'unknown';\n\nexport interface ICard {\n id: string;\n acct_last_four: string;\n name: string;\n brand: CardBrand;\n token: string;\n created_at: string;\n updated_at: string;\n}\n\nexport interface IDispute {\n amount_cents: number;\n created_at: string;\n currency: string;\n gateway_ref_id: string;\n id: string;\n payment_id: string;\n reason: null;\n status: string;\n updated_at: string;\n}\n\nexport interface IPayment {\n id: string;\n account_id: string;\n amount: number;\n amount_disputed: number;\n amount_refundable: number;\n amount_refunded: number;\n balance: number;\n captured: boolean;\n capture_strategy: CaptureStrategy;\n currency: 'usd';\n description: string;\n disputed: boolean;\n disputes: IDispute[];\n error_code: string | null;\n error_description: string | null;\n fee_amount: number;\n is_test: boolean;\n metadata: Object | null;\n payment_method: IPaymentMethod;\n payment_intent_id: string | null;\n refunded: boolean;\n status: PaymentStatuses;\n created_at: string;\n updated_at: string;\n}\n\nexport class Payment implements IPayment {\n public id: string;\n public account_id: string;\n public amount: number;\n public amount_disputed: number;\n public amount_refundable: number;\n public amount_refunded: number;\n public balance: number;\n public captured: boolean;\n public capture_strategy: CaptureStrategy;\n public currency: 'usd';\n public description: string;\n public disputed: boolean;\n public disputes: IDispute[];\n public error_code: string | null;\n public error_description: string | null;\n public fee_amount: number;\n public is_test: boolean;\n public metadata: Object | null;\n public payment_method: IPaymentMethod;\n public payment_intent_id: string | null;\n public refunded: boolean;\n public status: PaymentStatuses;\n public created_at: string;\n public updated_at: string;\n\n constructor(payment: IPayment) {\n this.id = payment.id;\n this.account_id = payment.account_id;\n this.amount = payment.amount;\n this.amount_disputed = payment.amount_disputed;\n this.amount_refundable = payment.amount_refundable;\n this.amount_refunded = payment.amount_refunded;\n this.balance = payment.balance;\n this.captured = payment.captured;\n this.capture_strategy = payment.capture_strategy;\n this.currency = payment.currency;\n this.description = payment.description;\n this.disputed = payment.disputed;\n this.disputes = payment.disputes;\n this.error_code = payment.error_code;\n this.error_description = payment.error_description;\n this.fee_amount = payment.fee_amount;\n this.is_test = payment.is_test;\n this.metadata = payment.metadata;\n this.payment_method = payment.payment_method;\n this.payment_intent_id = payment.payment_intent_id;\n this.refunded = payment.refunded;\n this.status = payment.status;\n this.created_at = payment.created_at;\n this.updated_at = payment.updated_at;\n }\n\n get disputedStatus(): PaymentDisputedStatuses | null {\n const lost = this.disputes.some(dispute => dispute.status === PaymentDisputedStatuses.lost);\n // if a dispute is 'won', we don't show a dispute status, just general status\n if (!this.disputed) {\n return null;\n } else if (lost) {\n return PaymentDisputedStatuses.lost;\n } else {\n return PaymentDisputedStatuses.open;\n }\n }\n}\n"],"version":3}