@justifi/webcomponents 2.0.1 → 3.0.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 (48) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +7 -1
  3. package/dist/cjs/justifi-billing-form_2.cjs.entry.js +3 -2
  4. package/dist/cjs/justifi-card-form.cjs.entry.js +8 -1
  5. package/dist/cjs/justifi-payment-form.cjs.entry.js +17 -5
  6. package/dist/cjs/justifi-payment-method-form.cjs.entry.js +1 -1
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/cjs/webcomponents.cjs.js +1 -1
  9. package/dist/collection/components/bank-account-form/bank-account-form.js +31 -28
  10. package/dist/collection/components/bank-account-form/bank-account-form.stories.js +68 -0
  11. package/dist/collection/components/billing-form/billing-form-schema.js +1 -1
  12. package/dist/collection/components/billing-form/billing-form.js +2 -1
  13. package/dist/collection/components/card-form/card-form.js +37 -15
  14. package/dist/collection/components/card-form/card-form.stories.js +16 -49
  15. package/dist/collection/components/payment-form/payment-form.css +384 -0
  16. package/dist/collection/components/payment-form/payment-form.js +106 -11
  17. package/dist/collection/components/payment-form/payment-form.stories.js +23 -43
  18. package/dist/components/billing-form.js +3 -2
  19. package/dist/components/justifi-bank-account-form.js +8 -2
  20. package/dist/components/justifi-card-form.js +9 -1
  21. package/dist/components/justifi-payment-form.js +24 -7
  22. package/dist/components/payment-method-form.js +1 -1
  23. package/dist/esm/justifi-bank-account-form.entry.js +7 -1
  24. package/dist/esm/justifi-billing-form_2.entry.js +3 -2
  25. package/dist/esm/justifi-card-form.entry.js +8 -1
  26. package/dist/esm/justifi-payment-form.entry.js +18 -6
  27. package/dist/esm/justifi-payment-method-form.entry.js +1 -1
  28. package/dist/esm/loader.js +1 -1
  29. package/dist/esm/webcomponents.js +1 -1
  30. package/dist/types/components/bank-account-form/bank-account-form.d.ts +27 -2
  31. package/dist/types/components/bank-account-form/bank-account-form.stories.d.ts +16 -0
  32. package/dist/types/components/billing-form/billing-form-schema.d.ts +3 -0
  33. package/dist/types/components/card-form/card-form.d.ts +32 -1
  34. package/dist/types/components/card-form/card-form.stories.d.ts +2 -22
  35. package/dist/types/components/payment-form/payment-form.d.ts +11 -5
  36. package/dist/types/components/payment-form/payment-form.stories.d.ts +2 -25
  37. package/dist/types/components.d.ts +81 -4
  38. package/dist/webcomponents/{p-e3de1db1.entry.js → p-17d2674c.entry.js} +1 -1
  39. package/dist/webcomponents/p-282af003.entry.js +1 -0
  40. package/dist/webcomponents/p-87a342be.entry.js +1 -0
  41. package/dist/webcomponents/p-af8d98bb.entry.js +1 -0
  42. package/dist/webcomponents/p-f3211155.entry.js +1 -0
  43. package/dist/webcomponents/webcomponents.esm.js +1 -1
  44. package/package.json +1 -1
  45. package/dist/webcomponents/p-33fa7295.entry.js +0 -1
  46. package/dist/webcomponents/p-388b2c5f.entry.js +0 -1
  47. package/dist/webcomponents/p-3d53bd97.entry.js +0 -1
  48. package/dist/webcomponents/p-884b845d.entry.js +0 -1
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as e}from"./p-48c17d38.js";const r=class{constructor(e){t(this,e),this.cardFormReady=i(this,"cardFormReady",7),this.cardFormTokenize=i(this,"cardFormTokenize",7),this.cardFormValidate=i(this,"cardFormValidate",7),this.validationMode=void 0,this.iframeOrigin=void 0,this.singleLine=void 0}readyHandler(t){this.cardFormReady.emit(t)}tokenizeHandler(t){this.cardFormTokenize.emit(t)}validateHandler(t){this.cardFormValidate.emit(t)}async tokenize(...t){if(!this.childRef)throw new Error("Cannot call tokenize");return this.childRef.tokenize(...t)}async validate(){if(!this.childRef)throw new Error("Cannot call validate");return this.childRef.validate()}render(){return e("justifi-payment-method-form",{ref:t=>{t&&(this.childRef=t)},"iframe-origin":this.iframeOrigin,"payment-method-form-type":"card","single-line":this.singleLine,"payment-method-form-ready":this.cardFormReady,"payment-method-form-tokenize":this.cardFormTokenize,"payment-method-form-validation-mode":this.validationMode||"onSubmit"})}};export{r as justifi_card_form}