@justifi/webcomponents 4.2.2 → 4.4.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.
- package/LICENSE +21 -0
- package/dist/cjs/{Api-11362403.js → Api-7303478d.js} +3 -2
- package/dist/cjs/Api-7303478d.js.map +1 -0
- package/dist/cjs/business-form-schema-63b311b2.js +132 -0
- package/dist/cjs/business-form-schema-63b311b2.js.map +1 -0
- package/dist/cjs/form-control-select_2.cjs.entry.js +61 -0
- package/dist/cjs/form-control-select_2.cjs.entry.js.map +1 -0
- package/dist/cjs/{index-34312a38.js → index-83b2ec02.js} +136 -20
- package/dist/cjs/index-83b2ec02.js.map +1 -0
- package/dist/cjs/{index.esm-bcf90c56.js → index.esm-7e12ce07.js} +301 -14
- package/dist/cjs/index.esm-7e12ce07.js.map +1 -0
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +8 -3
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +5 -5
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-business-address-form.cjs.entry.js +37 -0
- package/dist/cjs/justifi-business-address-form.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-business-form.cjs.entry.js +751 -0
- package/dist/cjs/justifi-business-form.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-business-generic-info_3.cjs.entry.js +148 -0
- package/dist/cjs/justifi-business-generic-info_3.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-card-form.cjs.entry.js +8 -3
- package/dist/cjs/justifi-card-form.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-payment-form.cjs.entry.js +24 -7
- package/dist/cjs/justifi-payment-form.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +22 -17
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-payments-list.cjs.entry.js +75 -4038
- package/dist/cjs/justifi-payments-list.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +113 -0
- package/dist/cjs/justifi-payouts-list.cjs.entry.js.map +1 -0
- package/dist/cjs/loader.cjs.js +3 -12
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/select-input_2.cjs.entry.js +6 -6
- package/dist/cjs/select-input_2.cjs.entry.js.map +1 -1
- package/dist/cjs/{state-options-efeaa587.js → state-options-83b52cd1.js} +1 -1
- package/dist/{esm/state-options-188acc34.js.map → cjs/state-options-83b52cd1.js.map} +1 -1
- package/dist/cjs/utils-4ee7e080.js +3979 -0
- package/dist/cjs/utils-4ee7e080.js.map +1 -0
- package/dist/cjs/webcomponents.cjs.js +3 -6
- package/dist/cjs/webcomponents.cjs.js.map +1 -1
- package/dist/collection/api/Api.js +3 -2
- package/dist/collection/api/Api.js.map +1 -1
- package/dist/collection/api/Payout.js +33 -0
- package/dist/collection/api/Payout.js.map +1 -0
- package/dist/collection/api/index.js +1 -0
- package/dist/collection/api/index.js.map +1 -1
- package/dist/collection/api/mockData/MockPayments.js +1 -1
- package/dist/collection/collection-manifest.json +18 -12
- package/dist/collection/components/bank-account-form/bank-account-form.js +38 -10
- package/dist/collection/components/bank-account-form/bank-account-form.js.map +1 -1
- package/dist/collection/components/bank-account-form/bank-account-form.stories.js +2 -0
- package/dist/collection/components/bank-account-form/bank-account-form.stories.js.map +1 -1
- package/dist/collection/components/bank-account-form/test/bank-account-form.e2e.js +1 -1
- package/dist/collection/components/bank-account-form/test/bank-account-form.spec.js +3 -3
- package/dist/collection/components/billing-form/billing-form-schema.js +1 -1
- package/dist/collection/components/billing-form/billing-form.css +212 -39
- package/dist/collection/components/billing-form/billing-form.js +16 -10
- package/dist/collection/components/billing-form/billing-form.js.map +1 -1
- package/dist/collection/components/billing-form/test/billing-form.spec.js +51 -24
- package/dist/collection/components/billing-form/test/billing-form.spec.js.map +1 -1
- package/dist/collection/components/{business-address/business-address-schema.js → business-form/business-address/business-address-form-schema.js} +2 -2
- package/dist/collection/components/business-form/business-address/business-address-form-schema.js.map +1 -0
- package/dist/collection/components/business-form/business-address/business-address-form.css +2532 -0
- package/dist/collection/components/business-form/business-address/business-address-form.js +98 -0
- package/dist/collection/components/business-form/business-address/business-address-form.js.map +1 -0
- package/dist/collection/components/business-form/business-address/test/business-address.e2e.js +10 -0
- package/dist/collection/components/business-form/business-address/test/business-address.e2e.js.map +1 -0
- package/dist/collection/components/business-form/business-address/test/business-address.spec.js +72 -0
- package/dist/collection/components/business-form/business-address/test/business-address.spec.js.map +1 -0
- package/dist/collection/components/business-form/business-form-schema.js +149 -0
- package/dist/collection/components/business-form/business-form-schema.js.map +1 -0
- package/dist/collection/components/business-form/business-form.css +2532 -0
- package/dist/collection/components/business-form/business-form.js +76 -0
- package/dist/collection/components/business-form/business-form.js.map +1 -0
- package/dist/collection/components/{business-info/business-info.css → business-form/business-generic-info/business-generic-info.css} +745 -530
- package/dist/collection/components/business-form/business-generic-info/business-generic-info.js +79 -0
- package/dist/collection/components/business-form/business-generic-info/business-generic-info.js.map +1 -0
- package/dist/collection/components/business-form/business-owners/business-owners.css +2489 -0
- package/dist/collection/components/business-form/business-owners/business-owners.js +120 -0
- package/dist/collection/components/business-form/business-owners/business-owners.js.map +1 -0
- package/dist/collection/components/business-form/business-representative/business-representative-schema.js +2 -0
- package/dist/collection/components/business-form/business-representative/business-representative-schema.js.map +1 -0
- package/dist/collection/components/business-form/business-representative/business-representative.css +2489 -0
- package/dist/collection/components/business-form/business-representative/business-representative.js +76 -0
- package/dist/collection/components/business-form/business-representative/business-representative.js.map +1 -0
- package/dist/collection/components/business-form/businessForm.stories.js +115 -0
- package/dist/collection/components/business-form/businessForm.stories.js.map +1 -0
- package/dist/collection/components/card-form/card-form.js +38 -10
- package/dist/collection/components/card-form/card-form.js.map +1 -1
- package/dist/collection/components/card-form/card-form.stories.js +5 -2
- package/dist/collection/components/card-form/card-form.stories.js.map +1 -1
- package/dist/collection/components/card-form/test/card-form.e2e.js +1 -1
- package/dist/collection/components/card-form/test/card-form.spec.js +3 -3
- package/dist/collection/components/{business-address/business-address.css → form/form-control-select.css} +344 -1212
- package/dist/collection/components/form/form-control-select.js +168 -0
- package/dist/collection/components/form/form-control-select.js.map +1 -0
- package/dist/collection/components/form/form-control-text.css +1794 -0
- package/dist/collection/components/form/form-control-text.js +152 -0
- package/dist/collection/components/form/form-control-text.js.map +1 -0
- package/dist/collection/components/form/form.js +85 -0
- package/dist/collection/components/form/form.js.map +1 -0
- package/dist/collection/components/payment-form/payment-form.css +220 -45
- package/dist/collection/components/payment-form/payment-form.js +47 -7
- package/dist/collection/components/payment-form/payment-form.js.map +1 -1
- package/dist/collection/components/payment-form/payment-form.stories.js +3 -2
- package/dist/collection/components/payment-form/payment-form.stories.js.map +1 -1
- package/dist/collection/components/payment-form/payment-method-selector.css +348 -145
- package/dist/collection/components/payment-form/payment-method-selector.js +5 -3
- package/dist/collection/components/payment-form/payment-method-selector.js.map +1 -1
- package/dist/collection/components/payment-form/test/payment-form.e2e.js +1 -1
- package/dist/collection/components/payment-form/test/payment-form.spec.js +4 -3
- package/dist/collection/components/payment-form/test/payment-form.spec.js.map +1 -1
- package/dist/collection/components/payment-method-form/get-computed-theme.js +2 -0
- package/dist/collection/components/payment-method-form/get-computed-theme.js.map +1 -1
- package/dist/collection/components/payment-method-form/payment-method-form.js +19 -11
- package/dist/collection/components/payment-method-form/payment-method-form.js.map +1 -1
- package/dist/collection/components/payment-method-form/test/payment-method-form.e2e.js +1 -1
- package/dist/collection/components/payment-method-form/test/payment-method-form.spec.js +3 -3
- package/dist/collection/components/payment-method-form/theme.js.map +1 -1
- package/dist/collection/components/payments-list/example.js +12 -0
- package/dist/collection/components/payments-list/payments-list.css +7954 -1
- package/dist/collection/components/payments-list/payments-list.js +104 -27
- package/dist/collection/components/payments-list/payments-list.js.map +1 -1
- package/dist/collection/components/payments-list/payments-list.stories.js +78 -0
- package/dist/collection/components/payments-list/payments-list.stories.js.map +1 -0
- package/dist/collection/components/payments-list/test/payments-list.spec.js +82 -18
- package/dist/collection/components/payments-list/test/payments-list.spec.js.map +1 -1
- package/dist/collection/components/payouts-list/payouts-list.css +7983 -0
- package/dist/collection/components/payouts-list/payouts-list.js +181 -0
- package/dist/collection/components/payouts-list/payouts-list.js.map +1 -0
- package/dist/collection/components/payouts-list/payouts-list.stories.js +69 -0
- package/dist/collection/components/payouts-list/payouts-list.stories.js.map +1 -0
- package/dist/collection/components/select-input/select-input.css +344 -141
- package/dist/collection/components/select-input/select-input.js +5 -4
- package/dist/collection/components/select-input/select-input.js.map +1 -1
- package/dist/collection/components/select-input/test/select-input.spec.js +72 -28
- package/dist/collection/components/select-input/test/select-input.spec.js.map +1 -1
- package/dist/collection/components/text-input/test/text-input.spec.js +47 -5
- package/dist/collection/components/text-input/test/text-input.spec.js.map +1 -1
- package/dist/collection/components/text-input/text-input.css +344 -141
- package/dist/collection/components/text-input/text-input.js +2 -2
- package/dist/collection/components/text-input/text-input.js.map +1 -1
- package/dist/collection/utils/utils.js +7 -2
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/Api.js +2 -1
- package/dist/components/Api.js.map +1 -1
- package/dist/components/billing-form.js +2 -2
- package/dist/components/billing-form.js.map +1 -1
- package/dist/components/business-address-form.js +65 -0
- package/dist/components/business-address-form.js.map +1 -0
- package/dist/components/business-generic-info.js +190 -0
- package/dist/components/business-generic-info.js.map +1 -0
- package/dist/components/business-owners.js +102 -0
- package/dist/components/business-owners.js.map +1 -0
- package/dist/components/business-representative.js +75 -0
- package/dist/components/business-representative.js.map +1 -0
- package/dist/components/{justifi-business-info.d.ts → form-control-select.d.ts} +4 -4
- package/dist/components/form-control-select.js +8 -0
- package/dist/components/form-control-select.js.map +1 -0
- package/dist/components/form-control-select2.js +53 -0
- package/dist/components/form-control-select2.js.map +1 -0
- package/dist/components/form-control-text.d.ts +11 -0
- package/dist/components/form-control-text.js +8 -0
- package/dist/components/form-control-text.js.map +1 -0
- package/dist/components/form-control-text2.js +51 -0
- package/dist/components/form-control-text2.js.map +1 -0
- package/dist/components/index.esm.js +298 -14
- package/dist/components/index.esm.js.map +1 -1
- package/dist/components/justifi-bank-account-form.js +7 -2
- package/dist/components/justifi-bank-account-form.js.map +1 -1
- package/dist/components/justifi-business-address-form.d.ts +11 -0
- package/dist/components/justifi-business-address-form.js +8 -0
- package/dist/components/justifi-business-address-form.js.map +1 -0
- package/dist/components/justifi-business-form.d.ts +11 -0
- package/dist/components/justifi-business-form.js +802 -0
- package/dist/components/justifi-business-form.js.map +1 -0
- package/dist/components/justifi-business-generic-info.d.ts +11 -0
- package/dist/components/justifi-business-generic-info.js +8 -0
- package/dist/components/justifi-business-generic-info.js.map +1 -0
- package/dist/components/justifi-business-owners.d.ts +11 -0
- package/dist/components/justifi-business-owners.js +8 -0
- package/dist/components/justifi-business-owners.js.map +1 -0
- package/dist/components/justifi-business-representative.d.ts +11 -0
- package/dist/components/justifi-business-representative.js +8 -0
- package/dist/components/justifi-business-representative.js.map +1 -0
- package/dist/components/justifi-card-form.js +7 -2
- package/dist/components/justifi-card-form.js.map +1 -1
- package/dist/components/justifi-payment-form.js +23 -4
- package/dist/components/justifi-payment-form.js.map +1 -1
- package/dist/components/justifi-payments-list.js +78 -4038
- package/dist/components/justifi-payments-list.js.map +1 -1
- package/dist/components/justifi-payouts-list.d.ts +11 -0
- package/dist/components/justifi-payouts-list.js +134 -0
- package/dist/components/justifi-payouts-list.js.map +1 -0
- package/dist/components/payment-method-form.js +21 -16
- package/dist/components/payment-method-form.js.map +1 -1
- package/dist/components/payment-method-selector.js +1 -1
- package/dist/components/payment-method-selector.js.map +1 -1
- package/dist/components/select-input2.js +3 -3
- package/dist/components/select-input2.js.map +1 -1
- package/dist/components/state-options.js.map +1 -1
- package/dist/components/text-input2.js +2 -2
- package/dist/components/text-input2.js.map +1 -1
- package/dist/components/utils.js +3972 -0
- package/dist/components/utils.js.map +1 -0
- package/dist/esm/{Api-a07f0057.js → Api-436dfa09.js} +3 -2
- package/dist/esm/Api-436dfa09.js.map +1 -0
- package/dist/esm/business-form-schema-30c48693.js +128 -0
- package/dist/esm/business-form-schema-30c48693.js.map +1 -0
- package/dist/esm/form-control-select_2.entry.js +56 -0
- package/dist/esm/form-control-select_2.entry.js.map +1 -0
- package/dist/esm/{index-044f93fc.js → index-c8f391de.js} +136 -20
- package/dist/esm/index-c8f391de.js.map +1 -0
- package/dist/esm/{index.esm-5624a5ed.js → index.esm-be2cd327.js} +299 -15
- package/dist/esm/index.esm-be2cd327.js.map +1 -0
- package/dist/esm/justifi-bank-account-form.entry.js +8 -3
- package/dist/esm/justifi-bank-account-form.entry.js.map +1 -1
- package/dist/esm/justifi-billing-form_2.entry.js +5 -5
- package/dist/esm/justifi-billing-form_2.entry.js.map +1 -1
- package/dist/esm/justifi-business-address-form.entry.js +33 -0
- package/dist/esm/justifi-business-address-form.entry.js.map +1 -0
- package/dist/esm/justifi-business-form.entry.js +747 -0
- package/dist/esm/justifi-business-form.entry.js.map +1 -0
- package/dist/esm/justifi-business-generic-info_3.entry.js +142 -0
- package/dist/esm/justifi-business-generic-info_3.entry.js.map +1 -0
- package/dist/esm/justifi-card-form.entry.js +8 -3
- package/dist/esm/justifi-card-form.entry.js.map +1 -1
- package/dist/esm/justifi-payment-form.entry.js +21 -4
- package/dist/esm/justifi-payment-form.entry.js.map +1 -1
- package/dist/esm/justifi-payment-method-form.entry.js +22 -17
- package/dist/esm/justifi-payment-method-form.entry.js.map +1 -1
- package/dist/esm/justifi-payments-list.entry.js +75 -4038
- package/dist/esm/justifi-payments-list.entry.js.map +1 -1
- package/dist/esm/justifi-payouts-list.entry.js +109 -0
- package/dist/esm/justifi-payouts-list.entry.js.map +1 -0
- package/dist/esm/loader.js +4 -13
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/select-input_2.entry.js +6 -6
- package/dist/esm/select-input_2.entry.js.map +1 -1
- package/dist/esm/{state-options-188acc34.js → state-options-ece00aa2.js} +1 -1
- package/dist/esm/state-options-ece00aa2.js.map +1 -0
- package/dist/esm/utils-e7782126.js +3972 -0
- package/dist/esm/utils-e7782126.js.map +1 -0
- package/dist/esm/webcomponents.js +4 -7
- package/dist/esm/webcomponents.js.map +1 -1
- package/dist/types/api/Payout.d.ts +62 -0
- package/dist/types/api/index.d.ts +1 -0
- package/dist/types/components/business-form/business-address/business-address-form.d.ts +9 -0
- package/dist/types/components/{business-info/business-info-schema.d.ts → business-form/business-form-schema.d.ts} +55 -4
- package/dist/types/components/business-form/business-form.d.ts +14 -0
- package/dist/types/components/business-form/business-generic-info/business-generic-info.d.ts +16 -0
- package/dist/types/components/business-form/business-owners/business-owners.d.ts +32 -0
- package/dist/types/components/business-form/business-representative/business-representative-schema.d.ts +15 -0
- package/dist/types/components/business-form/business-representative/business-representative.d.ts +12 -0
- package/dist/types/components/business-form/businessForm.stories.d.ts +21 -0
- package/dist/types/components/form/form-control-select.d.ts +16 -0
- package/dist/types/components/form/form-control-text.d.ts +12 -0
- package/dist/types/components/form/form.d.ts +21 -0
- package/dist/types/components/payment-form/payment-form.d.ts +2 -0
- package/dist/types/components/payment-method-form/theme.d.ts +2 -0
- package/dist/types/components/payments-list/payments-list.d.ts +38 -5
- package/dist/types/components/payments-list/payments-list.stories.d.ts +17 -0
- package/dist/types/components/payouts-list/payouts-list.d.ts +45 -0
- package/dist/types/components/payouts-list/payouts-list.stories.d.ts +16 -0
- package/dist/types/components.d.ts +339 -26
- package/dist/types/stencil-public-runtime.d.ts +14 -2
- package/dist/types/utils/utils.d.ts +1 -0
- package/dist/webcomponents/p-0fd4aae2.js +2 -0
- package/dist/webcomponents/p-0fd4aae2.js.map +1 -0
- package/dist/webcomponents/p-1953797f.entry.js +2 -0
- package/dist/webcomponents/p-1953797f.entry.js.map +1 -0
- package/dist/webcomponents/p-1a1f2196.js +2 -0
- package/dist/webcomponents/p-1a1f2196.js.map +1 -0
- package/dist/webcomponents/p-23e9c7d4.entry.js +2 -0
- package/dist/webcomponents/p-23e9c7d4.entry.js.map +1 -0
- package/dist/webcomponents/p-309a886f.entry.js +2 -0
- package/dist/webcomponents/p-309a886f.entry.js.map +1 -0
- package/dist/webcomponents/p-33d69eb5.entry.js +2 -0
- package/dist/webcomponents/p-33d69eb5.entry.js.map +1 -0
- package/dist/webcomponents/p-3a80a2ec.entry.js +2 -0
- package/dist/webcomponents/p-3a80a2ec.entry.js.map +1 -0
- package/dist/webcomponents/p-45fea6a8.entry.js +2 -0
- package/dist/webcomponents/p-45fea6a8.entry.js.map +1 -0
- package/dist/webcomponents/{p-0ea23153.js → p-47bc59b5.js} +1 -1
- package/dist/webcomponents/p-47bc59b5.js.map +1 -0
- package/dist/webcomponents/p-7041a637.entry.js +2 -0
- package/dist/webcomponents/p-7041a637.entry.js.map +1 -0
- package/dist/webcomponents/p-79456add.js +2 -0
- package/dist/webcomponents/p-79456add.js.map +1 -0
- package/dist/webcomponents/{p-1f151d49.js → p-af080b21.js} +2 -2
- package/dist/webcomponents/p-af080b21.js.map +1 -0
- package/dist/webcomponents/p-bc969904.js +3 -0
- package/dist/webcomponents/p-bc969904.js.map +1 -0
- package/dist/webcomponents/p-cd097ce9.entry.js +2 -0
- package/dist/webcomponents/p-cd097ce9.entry.js.map +1 -0
- package/dist/webcomponents/p-d5bc9f22.entry.js +2 -0
- package/dist/webcomponents/p-d5bc9f22.entry.js.map +1 -0
- package/dist/webcomponents/p-d5cadc78.entry.js +2 -0
- package/dist/webcomponents/p-d5cadc78.entry.js.map +1 -0
- package/dist/webcomponents/p-dd1ebc0b.entry.js +2 -0
- package/dist/webcomponents/p-dd1ebc0b.entry.js.map +1 -0
- package/dist/webcomponents/p-e05e0c6b.entry.js +2 -0
- package/dist/webcomponents/p-e05e0c6b.entry.js.map +1 -0
- package/dist/webcomponents/webcomponents.css +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/dist/webcomponents/webcomponents.esm.js.map +1 -1
- package/loader/index.d.ts +1 -1
- package/package.json +12 -14
- package/CHANGELOG.md +0 -208
- package/changelog-template.hbs +0 -10
- package/dist/cjs/Api-11362403.js.map +0 -1
- package/dist/cjs/Payment-ac4dea02.js +0 -73
- package/dist/cjs/Payment-ac4dea02.js.map +0 -1
- package/dist/cjs/index-34312a38.js.map +0 -1
- package/dist/cjs/index.esm-bcf90c56.js.map +0 -1
- package/dist/cjs/justifi-business-address.cjs.entry.js +0 -69
- package/dist/cjs/justifi-business-address.cjs.entry.js.map +0 -1
- package/dist/cjs/justifi-business-info.cjs.entry.js +0 -174
- package/dist/cjs/justifi-business-info.cjs.entry.js.map +0 -1
- package/dist/cjs/state-options-efeaa587.js.map +0 -1
- package/dist/collection/components/business-address/business-address-schema.js.map +0 -1
- package/dist/collection/components/business-address/business-address.js +0 -100
- package/dist/collection/components/business-address/business-address.js.map +0 -1
- package/dist/collection/components/business-address/test/business-address.e2e.js +0 -10
- package/dist/collection/components/business-address/test/business-address.e2e.js.map +0 -1
- package/dist/collection/components/business-address/test/business-address.spec.js +0 -18
- package/dist/collection/components/business-address/test/business-address.spec.js.map +0 -1
- package/dist/collection/components/business-info/business-info-schema.js +0 -94
- package/dist/collection/components/business-info/business-info-schema.js.map +0 -1
- package/dist/collection/components/business-info/business-info.js +0 -168
- package/dist/collection/components/business-info/business-info.js.map +0 -1
- package/dist/components/Payment.js +0 -71
- package/dist/components/Payment.js.map +0 -1
- package/dist/components/justifi-business-address.d.ts +0 -11
- package/dist/components/justifi-business-address.js +0 -99
- package/dist/components/justifi-business-address.js.map +0 -1
- package/dist/components/justifi-business-info.js +0 -207
- package/dist/components/justifi-business-info.js.map +0 -1
- package/dist/esm/Api-a07f0057.js.map +0 -1
- package/dist/esm/Payment-c86e1e84.js +0 -71
- package/dist/esm/Payment-c86e1e84.js.map +0 -1
- package/dist/esm/index-044f93fc.js.map +0 -1
- package/dist/esm/index.esm-5624a5ed.js.map +0 -1
- package/dist/esm/justifi-business-address.entry.js +0 -65
- package/dist/esm/justifi-business-address.entry.js.map +0 -1
- package/dist/esm/justifi-business-info.entry.js +0 -170
- package/dist/esm/justifi-business-info.entry.js.map +0 -1
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/types/components/bank-account-form/bank-account-form.d.ts +0 -56
- package/dist/types/components/business-address/business-address.d.ts +0 -11
- package/dist/types/components/business-info/business-info.d.ts +0 -20
- package/dist/types/components/card-form/card-form.d.ts +0 -62
- package/dist/webcomponents/p-0969db8f.entry.js +0 -2
- package/dist/webcomponents/p-0969db8f.entry.js.map +0 -1
- package/dist/webcomponents/p-0ea23153.js.map +0 -1
- package/dist/webcomponents/p-1ca0646b.js +0 -2
- package/dist/webcomponents/p-1ca0646b.js.map +0 -1
- package/dist/webcomponents/p-1f151d49.js.map +0 -1
- package/dist/webcomponents/p-255b1284.entry.js +0 -2
- package/dist/webcomponents/p-255b1284.entry.js.map +0 -1
- package/dist/webcomponents/p-3aa91155.js +0 -3
- package/dist/webcomponents/p-3aa91155.js.map +0 -1
- package/dist/webcomponents/p-4ecc9860.entry.js +0 -2
- package/dist/webcomponents/p-4ecc9860.entry.js.map +0 -1
- package/dist/webcomponents/p-90c0d9e1.entry.js +0 -2
- package/dist/webcomponents/p-90c0d9e1.entry.js.map +0 -1
- package/dist/webcomponents/p-bd5352d6.entry.js +0 -2
- package/dist/webcomponents/p-bd5352d6.entry.js.map +0 -1
- package/dist/webcomponents/p-c903cc5a.entry.js +0 -2
- package/dist/webcomponents/p-c903cc5a.entry.js.map +0 -1
- package/dist/webcomponents/p-d87b0711.entry.js +0 -2
- package/dist/webcomponents/p-d87b0711.entry.js.map +0 -1
- package/dist/webcomponents/p-dbf7100f.entry.js +0 -2
- package/dist/webcomponents/p-dbf7100f.entry.js.map +0 -1
- package/dist/webcomponents/p-e0054bc3.js +0 -2
- package/dist/webcomponents/p-e0054bc3.js.map +0 -1
- package/dist/webcomponents/p-f30d1567.entry.js +0 -2
- package/dist/webcomponents/p-f30d1567.entry.js.map +0 -1
- /package/dist/types/components/{business-address/business-address-schema.d.ts → business-form/business-address/business-address-form-schema.d.ts} +0 -0
|
@@ -888,10 +888,10 @@ class Schema {
|
|
|
888
888
|
}
|
|
889
889
|
return result;
|
|
890
890
|
}
|
|
891
|
-
_cast(rawValue,
|
|
891
|
+
_cast(rawValue, options) {
|
|
892
892
|
let value = rawValue === undefined ? rawValue : this.transforms.reduce((prevValue, fn) => fn.call(this, prevValue, rawValue, this), rawValue);
|
|
893
893
|
if (value === undefined) {
|
|
894
|
-
value = this.getDefault();
|
|
894
|
+
value = this.getDefault(options);
|
|
895
895
|
}
|
|
896
896
|
return value;
|
|
897
897
|
}
|
|
@@ -1050,18 +1050,18 @@ class Schema {
|
|
|
1050
1050
|
throw err;
|
|
1051
1051
|
}
|
|
1052
1052
|
}
|
|
1053
|
-
_getDefault() {
|
|
1053
|
+
_getDefault(options) {
|
|
1054
1054
|
let defaultValue = this.spec.default;
|
|
1055
1055
|
if (defaultValue == null) {
|
|
1056
1056
|
return defaultValue;
|
|
1057
1057
|
}
|
|
1058
|
-
return typeof defaultValue === 'function' ? defaultValue.call(this) : clone(defaultValue);
|
|
1058
|
+
return typeof defaultValue === 'function' ? defaultValue.call(this, options) : clone(defaultValue);
|
|
1059
1059
|
}
|
|
1060
1060
|
getDefault(options
|
|
1061
1061
|
// If schema is defaulted we know it's at least not undefined
|
|
1062
1062
|
) {
|
|
1063
1063
|
let schema = this.resolve(options || {});
|
|
1064
|
-
return schema._getDefault();
|
|
1064
|
+
return schema._getDefault(options);
|
|
1065
1065
|
}
|
|
1066
1066
|
default(def) {
|
|
1067
1067
|
if (arguments.length === 0) {
|
|
@@ -1201,8 +1201,9 @@ class Schema {
|
|
|
1201
1201
|
next.internalTests.typeError = createValidation({
|
|
1202
1202
|
message,
|
|
1203
1203
|
name: 'typeError',
|
|
1204
|
+
skipAbsent: true,
|
|
1204
1205
|
test(value) {
|
|
1205
|
-
if (!
|
|
1206
|
+
if (!this.schema._typeCheck(value)) return this.createError({
|
|
1206
1207
|
params: {
|
|
1207
1208
|
type: this.schema.type
|
|
1208
1209
|
}
|
|
@@ -1310,6 +1311,98 @@ for (const method of ['validate', 'validateSync']) Schema.prototype[`${method}At
|
|
|
1310
1311
|
for (const alias of ['equals', 'is']) Schema.prototype[alias] = Schema.prototype.oneOf;
|
|
1311
1312
|
for (const alias of ['not', 'nope']) Schema.prototype[alias] = Schema.prototype.notOneOf;
|
|
1312
1313
|
|
|
1314
|
+
const returnsTrue = () => true;
|
|
1315
|
+
function create$8(spec) {
|
|
1316
|
+
return new MixedSchema(spec);
|
|
1317
|
+
}
|
|
1318
|
+
class MixedSchema extends Schema {
|
|
1319
|
+
constructor(spec) {
|
|
1320
|
+
super(typeof spec === 'function' ? {
|
|
1321
|
+
type: 'mixed',
|
|
1322
|
+
check: spec
|
|
1323
|
+
} : Object.assign({
|
|
1324
|
+
type: 'mixed',
|
|
1325
|
+
check: returnsTrue
|
|
1326
|
+
}, spec));
|
|
1327
|
+
}
|
|
1328
|
+
}
|
|
1329
|
+
create$8.prototype = MixedSchema.prototype;
|
|
1330
|
+
|
|
1331
|
+
function create$7() {
|
|
1332
|
+
return new BooleanSchema();
|
|
1333
|
+
}
|
|
1334
|
+
class BooleanSchema extends Schema {
|
|
1335
|
+
constructor() {
|
|
1336
|
+
super({
|
|
1337
|
+
type: 'boolean',
|
|
1338
|
+
check(v) {
|
|
1339
|
+
if (v instanceof Boolean) v = v.valueOf();
|
|
1340
|
+
return typeof v === 'boolean';
|
|
1341
|
+
}
|
|
1342
|
+
});
|
|
1343
|
+
this.withMutation(() => {
|
|
1344
|
+
this.transform((value, _raw, ctx) => {
|
|
1345
|
+
if (ctx.spec.coerce && !ctx.isType(value)) {
|
|
1346
|
+
if (/^(true|1)$/i.test(String(value))) return true;
|
|
1347
|
+
if (/^(false|0)$/i.test(String(value))) return false;
|
|
1348
|
+
}
|
|
1349
|
+
return value;
|
|
1350
|
+
});
|
|
1351
|
+
});
|
|
1352
|
+
}
|
|
1353
|
+
isTrue(message = boolean.isValue) {
|
|
1354
|
+
return this.test({
|
|
1355
|
+
message,
|
|
1356
|
+
name: 'is-value',
|
|
1357
|
+
exclusive: true,
|
|
1358
|
+
params: {
|
|
1359
|
+
value: 'true'
|
|
1360
|
+
},
|
|
1361
|
+
test(value) {
|
|
1362
|
+
return isAbsent(value) || value === true;
|
|
1363
|
+
}
|
|
1364
|
+
});
|
|
1365
|
+
}
|
|
1366
|
+
isFalse(message = boolean.isValue) {
|
|
1367
|
+
return this.test({
|
|
1368
|
+
message,
|
|
1369
|
+
name: 'is-value',
|
|
1370
|
+
exclusive: true,
|
|
1371
|
+
params: {
|
|
1372
|
+
value: 'false'
|
|
1373
|
+
},
|
|
1374
|
+
test(value) {
|
|
1375
|
+
return isAbsent(value) || value === false;
|
|
1376
|
+
}
|
|
1377
|
+
});
|
|
1378
|
+
}
|
|
1379
|
+
default(def) {
|
|
1380
|
+
return super.default(def);
|
|
1381
|
+
}
|
|
1382
|
+
defined(msg) {
|
|
1383
|
+
return super.defined(msg);
|
|
1384
|
+
}
|
|
1385
|
+
optional() {
|
|
1386
|
+
return super.optional();
|
|
1387
|
+
}
|
|
1388
|
+
required(msg) {
|
|
1389
|
+
return super.required(msg);
|
|
1390
|
+
}
|
|
1391
|
+
notRequired() {
|
|
1392
|
+
return super.notRequired();
|
|
1393
|
+
}
|
|
1394
|
+
nullable() {
|
|
1395
|
+
return super.nullable();
|
|
1396
|
+
}
|
|
1397
|
+
nonNullable(msg) {
|
|
1398
|
+
return super.nonNullable(msg);
|
|
1399
|
+
}
|
|
1400
|
+
strip(v) {
|
|
1401
|
+
return super.strip(v);
|
|
1402
|
+
}
|
|
1403
|
+
}
|
|
1404
|
+
create$7.prototype = BooleanSchema.prototype;
|
|
1405
|
+
|
|
1313
1406
|
// Taken from HTML spec: https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address
|
|
1314
1407
|
let rEmail =
|
|
1315
1408
|
// eslint-disable-next-line
|
|
@@ -1594,7 +1687,7 @@ class ObjectSchema extends Schema {
|
|
|
1594
1687
|
let value = super._cast(_value, options);
|
|
1595
1688
|
|
|
1596
1689
|
//should ignore nulls here
|
|
1597
|
-
if (value === undefined) return this.getDefault();
|
|
1690
|
+
if (value === undefined) return this.getDefault(options);
|
|
1598
1691
|
if (!this._typeCheck(value)) return value;
|
|
1599
1692
|
let fields = this.fields;
|
|
1600
1693
|
let strip = (_options$stripUnknown = options.stripUnknown) != null ? _options$stripUnknown : this.spec.noUnknown;
|
|
@@ -1699,11 +1792,13 @@ class ObjectSchema extends Schema {
|
|
|
1699
1792
|
const target = nextFields[field];
|
|
1700
1793
|
nextFields[field] = target === undefined ? schemaOrRef : target;
|
|
1701
1794
|
}
|
|
1702
|
-
return next.withMutation(s =>
|
|
1795
|
+
return next.withMutation(s =>
|
|
1796
|
+
// XXX: excludes here is wrong
|
|
1797
|
+
s.setFields(nextFields, [...this._excludedEdges, ...schema._excludedEdges]));
|
|
1703
1798
|
}
|
|
1704
|
-
_getDefault() {
|
|
1799
|
+
_getDefault(options) {
|
|
1705
1800
|
if ('default' in this.spec) {
|
|
1706
|
-
return super._getDefault();
|
|
1801
|
+
return super._getDefault(options);
|
|
1707
1802
|
}
|
|
1708
1803
|
|
|
1709
1804
|
// if there is no default set invent one
|
|
@@ -1712,8 +1807,16 @@ class ObjectSchema extends Schema {
|
|
|
1712
1807
|
}
|
|
1713
1808
|
let dft = {};
|
|
1714
1809
|
this._nodes.forEach(key => {
|
|
1810
|
+
var _innerOptions;
|
|
1715
1811
|
const field = this.fields[key];
|
|
1716
|
-
|
|
1812
|
+
let innerOptions = options;
|
|
1813
|
+
if ((_innerOptions = innerOptions) != null && _innerOptions.value) {
|
|
1814
|
+
innerOptions = Object.assign({}, innerOptions, {
|
|
1815
|
+
parent: innerOptions.value,
|
|
1816
|
+
value: innerOptions.value[key]
|
|
1817
|
+
});
|
|
1818
|
+
}
|
|
1819
|
+
dft[key] = field && 'getDefault' in field ? field.getDefault(innerOptions) : undefined;
|
|
1717
1820
|
});
|
|
1718
1821
|
return dft;
|
|
1719
1822
|
}
|
|
@@ -1827,9 +1930,9 @@ class ObjectSchema extends Schema {
|
|
|
1827
1930
|
let base = super.describe(options);
|
|
1828
1931
|
base.fields = {};
|
|
1829
1932
|
for (const [key, value] of Object.entries(this.fields)) {
|
|
1830
|
-
var
|
|
1933
|
+
var _innerOptions2;
|
|
1831
1934
|
let innerOptions = options;
|
|
1832
|
-
if ((
|
|
1935
|
+
if ((_innerOptions2 = innerOptions) != null && _innerOptions2.value) {
|
|
1833
1936
|
innerOptions = Object.assign({}, innerOptions, {
|
|
1834
1937
|
parent: innerOptions.value,
|
|
1835
1938
|
value: innerOptions.value[key]
|
|
@@ -1842,6 +1945,187 @@ class ObjectSchema extends Schema {
|
|
|
1842
1945
|
}
|
|
1843
1946
|
create$3.prototype = ObjectSchema.prototype;
|
|
1844
1947
|
|
|
1845
|
-
|
|
1948
|
+
function create$2(type) {
|
|
1949
|
+
return new ArraySchema(type);
|
|
1950
|
+
}
|
|
1951
|
+
class ArraySchema extends Schema {
|
|
1952
|
+
constructor(type) {
|
|
1953
|
+
super({
|
|
1954
|
+
type: 'array',
|
|
1955
|
+
spec: {
|
|
1956
|
+
types: type
|
|
1957
|
+
},
|
|
1958
|
+
check(v) {
|
|
1959
|
+
return Array.isArray(v);
|
|
1960
|
+
}
|
|
1961
|
+
});
|
|
1962
|
+
|
|
1963
|
+
// `undefined` specifically means uninitialized, as opposed to "no subtype"
|
|
1964
|
+
this.innerType = void 0;
|
|
1965
|
+
this.innerType = type;
|
|
1966
|
+
}
|
|
1967
|
+
_cast(_value, _opts) {
|
|
1968
|
+
const value = super._cast(_value, _opts);
|
|
1969
|
+
|
|
1970
|
+
// should ignore nulls here
|
|
1971
|
+
if (!this._typeCheck(value) || !this.innerType) {
|
|
1972
|
+
return value;
|
|
1973
|
+
}
|
|
1974
|
+
let isChanged = false;
|
|
1975
|
+
const castArray = value.map((v, idx) => {
|
|
1976
|
+
const castElement = this.innerType.cast(v, Object.assign({}, _opts, {
|
|
1977
|
+
path: `${_opts.path || ''}[${idx}]`
|
|
1978
|
+
}));
|
|
1979
|
+
if (castElement !== v) {
|
|
1980
|
+
isChanged = true;
|
|
1981
|
+
}
|
|
1982
|
+
return castElement;
|
|
1983
|
+
});
|
|
1984
|
+
return isChanged ? castArray : value;
|
|
1985
|
+
}
|
|
1986
|
+
_validate(_value, options = {}, panic, next) {
|
|
1987
|
+
var _options$recursive;
|
|
1988
|
+
// let sync = options.sync;
|
|
1989
|
+
// let path = options.path;
|
|
1990
|
+
let innerType = this.innerType;
|
|
1991
|
+
// let endEarly = options.abortEarly ?? this.spec.abortEarly;
|
|
1992
|
+
let recursive = (_options$recursive = options.recursive) != null ? _options$recursive : this.spec.recursive;
|
|
1993
|
+
super._validate(_value, options, panic, (arrayErrors, value) => {
|
|
1994
|
+
var _options$originalValu2;
|
|
1995
|
+
if (!recursive || !innerType || !this._typeCheck(value)) {
|
|
1996
|
+
next(arrayErrors, value);
|
|
1997
|
+
return;
|
|
1998
|
+
}
|
|
1999
|
+
|
|
2000
|
+
// #950 Ensure that sparse array empty slots are validated
|
|
2001
|
+
let tests = new Array(value.length);
|
|
2002
|
+
for (let index = 0; index < value.length; index++) {
|
|
2003
|
+
var _options$originalValu;
|
|
2004
|
+
tests[index] = innerType.asNestedTest({
|
|
2005
|
+
options,
|
|
2006
|
+
index,
|
|
2007
|
+
parent: value,
|
|
2008
|
+
parentPath: options.path,
|
|
2009
|
+
originalParent: (_options$originalValu = options.originalValue) != null ? _options$originalValu : _value
|
|
2010
|
+
});
|
|
2011
|
+
}
|
|
2012
|
+
this.runTests({
|
|
2013
|
+
value,
|
|
2014
|
+
tests,
|
|
2015
|
+
originalValue: (_options$originalValu2 = options.originalValue) != null ? _options$originalValu2 : _value,
|
|
2016
|
+
options
|
|
2017
|
+
}, panic, innerTypeErrors => next(innerTypeErrors.concat(arrayErrors), value));
|
|
2018
|
+
});
|
|
2019
|
+
}
|
|
2020
|
+
clone(spec) {
|
|
2021
|
+
const next = super.clone(spec);
|
|
2022
|
+
// @ts-expect-error readonly
|
|
2023
|
+
next.innerType = this.innerType;
|
|
2024
|
+
return next;
|
|
2025
|
+
}
|
|
2026
|
+
|
|
2027
|
+
/** Parse an input JSON string to an object */
|
|
2028
|
+
json() {
|
|
2029
|
+
return this.transform(parseJson);
|
|
2030
|
+
}
|
|
2031
|
+
concat(schema) {
|
|
2032
|
+
let next = super.concat(schema);
|
|
2033
|
+
|
|
2034
|
+
// @ts-expect-error readonly
|
|
2035
|
+
next.innerType = this.innerType;
|
|
2036
|
+
if (schema.innerType)
|
|
2037
|
+
// @ts-expect-error readonly
|
|
2038
|
+
next.innerType = next.innerType ?
|
|
2039
|
+
// @ts-expect-error Lazy doesn't have concat and will break
|
|
2040
|
+
next.innerType.concat(schema.innerType) : schema.innerType;
|
|
2041
|
+
return next;
|
|
2042
|
+
}
|
|
2043
|
+
of(schema) {
|
|
2044
|
+
// FIXME: this should return a new instance of array without the default to be
|
|
2045
|
+
let next = this.clone();
|
|
2046
|
+
if (!isSchema(schema)) throw new TypeError('`array.of()` sub-schema must be a valid yup schema not: ' + printValue(schema));
|
|
2047
|
+
|
|
2048
|
+
// @ts-expect-error readonly
|
|
2049
|
+
next.innerType = schema;
|
|
2050
|
+
next.spec = Object.assign({}, next.spec, {
|
|
2051
|
+
types: schema
|
|
2052
|
+
});
|
|
2053
|
+
return next;
|
|
2054
|
+
}
|
|
2055
|
+
length(length, message = array.length) {
|
|
2056
|
+
return this.test({
|
|
2057
|
+
message,
|
|
2058
|
+
name: 'length',
|
|
2059
|
+
exclusive: true,
|
|
2060
|
+
params: {
|
|
2061
|
+
length
|
|
2062
|
+
},
|
|
2063
|
+
skipAbsent: true,
|
|
2064
|
+
test(value) {
|
|
2065
|
+
return value.length === this.resolve(length);
|
|
2066
|
+
}
|
|
2067
|
+
});
|
|
2068
|
+
}
|
|
2069
|
+
min(min, message) {
|
|
2070
|
+
message = message || array.min;
|
|
2071
|
+
return this.test({
|
|
2072
|
+
message,
|
|
2073
|
+
name: 'min',
|
|
2074
|
+
exclusive: true,
|
|
2075
|
+
params: {
|
|
2076
|
+
min
|
|
2077
|
+
},
|
|
2078
|
+
skipAbsent: true,
|
|
2079
|
+
// FIXME(ts): Array<typeof T>
|
|
2080
|
+
test(value) {
|
|
2081
|
+
return value.length >= this.resolve(min);
|
|
2082
|
+
}
|
|
2083
|
+
});
|
|
2084
|
+
}
|
|
2085
|
+
max(max, message) {
|
|
2086
|
+
message = message || array.max;
|
|
2087
|
+
return this.test({
|
|
2088
|
+
message,
|
|
2089
|
+
name: 'max',
|
|
2090
|
+
exclusive: true,
|
|
2091
|
+
params: {
|
|
2092
|
+
max
|
|
2093
|
+
},
|
|
2094
|
+
skipAbsent: true,
|
|
2095
|
+
test(value) {
|
|
2096
|
+
return value.length <= this.resolve(max);
|
|
2097
|
+
}
|
|
2098
|
+
});
|
|
2099
|
+
}
|
|
2100
|
+
ensure() {
|
|
2101
|
+
return this.default(() => []).transform((val, original) => {
|
|
2102
|
+
// We don't want to return `null` for nullable schema
|
|
2103
|
+
if (this._typeCheck(val)) return val;
|
|
2104
|
+
return original == null ? [] : [].concat(original);
|
|
2105
|
+
});
|
|
2106
|
+
}
|
|
2107
|
+
compact(rejector) {
|
|
2108
|
+
let reject = !rejector ? v => !!v : (v, i, a) => !rejector(v, i, a);
|
|
2109
|
+
return this.transform(values => values != null ? values.filter(reject) : values);
|
|
2110
|
+
}
|
|
2111
|
+
describe(options) {
|
|
2112
|
+
let base = super.describe(options);
|
|
2113
|
+
if (this.innerType) {
|
|
2114
|
+
var _innerOptions;
|
|
2115
|
+
let innerOptions = options;
|
|
2116
|
+
if ((_innerOptions = innerOptions) != null && _innerOptions.value) {
|
|
2117
|
+
innerOptions = Object.assign({}, innerOptions, {
|
|
2118
|
+
parent: innerOptions.value,
|
|
2119
|
+
value: innerOptions.value[0]
|
|
2120
|
+
});
|
|
2121
|
+
}
|
|
2122
|
+
base.innerType = this.innerType.describe(innerOptions);
|
|
2123
|
+
}
|
|
2124
|
+
return base;
|
|
2125
|
+
}
|
|
2126
|
+
}
|
|
2127
|
+
create$2.prototype = ArraySchema.prototype;
|
|
2128
|
+
|
|
2129
|
+
export { create$6 as a, create$7 as b, create$3 as c, create$8 as d, create$2 as e };
|
|
1846
2130
|
|
|
1847
|
-
//# sourceMappingURL=index.esm-
|
|
2131
|
+
//# sourceMappingURL=index.esm-be2cd327.js.map
|